configure 366 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.34 .
  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 GCC3 SET_MAKE HEAD_1 AWK BASENAME OBJCOPY STRIP UNAME DISTCC RESLIB RESINCLUDE CCDEBUG ZLIB LIBOBJS VERSION NUMVER WRAP MOD_UPDIR LTLIBOBJS'
  281. ac_subst_files=''
  282. # Initialize some variables set by options.
  283. ac_init_help=
  284. ac_init_version=false
  285. # The variables have the same names as the options, with
  286. # dashes changed to underlines.
  287. cache_file=./config.cache
  288. exec_prefix=NONE
  289. no_create=
  290. no_recursion=
  291. prefix=NONE
  292. program_prefix=NONE
  293. program_suffix=NONE
  294. program_transform_name=s,x,x,
  295. silent=
  296. site=
  297. srcdir=
  298. verbose=
  299. x_includes=NONE
  300. x_libraries=NONE
  301. # Installation directory options.
  302. # These are left unexpanded so users can "make install exec_prefix=/foo"
  303. # and all the variables that are supposed to be based on exec_prefix
  304. # by default will actually change.
  305. # Use braces instead of parens because sh, perl, etc. also accept them.
  306. bindir='${exec_prefix}/bin'
  307. sbindir='${exec_prefix}/sbin'
  308. libexecdir='${exec_prefix}/libexec'
  309. datadir='${prefix}/share'
  310. sysconfdir='${prefix}/etc'
  311. sharedstatedir='${prefix}/com'
  312. localstatedir='${prefix}/var'
  313. libdir='${exec_prefix}/lib'
  314. includedir='${prefix}/include'
  315. oldincludedir='/usr/include'
  316. infodir='${prefix}/info'
  317. mandir='${prefix}/man'
  318. ac_prev=
  319. for ac_option
  320. do
  321. # If the previous option needs an argument, assign it.
  322. if test -n "$ac_prev"; then
  323. eval "$ac_prev=\$ac_option"
  324. ac_prev=
  325. continue
  326. fi
  327. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  328. # Accept the important Cygnus configure options, so we can diagnose typos.
  329. case $ac_option in
  330. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  331. ac_prev=bindir ;;
  332. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  333. bindir=$ac_optarg ;;
  334. -build | --build | --buil | --bui | --bu)
  335. ac_prev=build_alias ;;
  336. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  337. build_alias=$ac_optarg ;;
  338. -cache-file | --cache-file | --cache-fil | --cache-fi \
  339. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  340. ac_prev=cache_file ;;
  341. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  342. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  343. cache_file=$ac_optarg ;;
  344. --config-cache | -C)
  345. cache_file=config.cache ;;
  346. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  347. ac_prev=datadir ;;
  348. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  349. | --da=*)
  350. datadir=$ac_optarg ;;
  351. -disable-* | --disable-*)
  352. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  353. # Reject names that are not valid shell variable names.
  354. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  355. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  356. { (exit 1); exit 1; }; }
  357. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  358. eval "enable_$ac_feature=no" ;;
  359. -enable-* | --enable-*)
  360. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  361. # Reject names that are not valid shell variable names.
  362. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  363. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  364. { (exit 1); exit 1; }; }
  365. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  366. case $ac_option in
  367. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  368. *) ac_optarg=yes ;;
  369. esac
  370. eval "enable_$ac_feature='$ac_optarg'" ;;
  371. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  372. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  373. | --exec | --exe | --ex)
  374. ac_prev=exec_prefix ;;
  375. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  376. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  377. | --exec=* | --exe=* | --ex=*)
  378. exec_prefix=$ac_optarg ;;
  379. -gas | --gas | --ga | --g)
  380. # Obsolete; use --with-gas.
  381. with_gas=yes ;;
  382. -help | --help | --hel | --he | -h)
  383. ac_init_help=long ;;
  384. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  385. ac_init_help=recursive ;;
  386. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  387. ac_init_help=short ;;
  388. -host | --host | --hos | --ho)
  389. ac_prev=host_alias ;;
  390. -host=* | --host=* | --hos=* | --ho=*)
  391. host_alias=$ac_optarg ;;
  392. -includedir | --includedir | --includedi | --included | --include \
  393. | --includ | --inclu | --incl | --inc)
  394. ac_prev=includedir ;;
  395. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  396. | --includ=* | --inclu=* | --incl=* | --inc=*)
  397. includedir=$ac_optarg ;;
  398. -infodir | --infodir | --infodi | --infod | --info | --inf)
  399. ac_prev=infodir ;;
  400. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  401. infodir=$ac_optarg ;;
  402. -libdir | --libdir | --libdi | --libd)
  403. ac_prev=libdir ;;
  404. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  405. libdir=$ac_optarg ;;
  406. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  407. | --libexe | --libex | --libe)
  408. ac_prev=libexecdir ;;
  409. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  410. | --libexe=* | --libex=* | --libe=*)
  411. libexecdir=$ac_optarg ;;
  412. -localstatedir | --localstatedir | --localstatedi | --localstated \
  413. | --localstate | --localstat | --localsta | --localst \
  414. | --locals | --local | --loca | --loc | --lo)
  415. ac_prev=localstatedir ;;
  416. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  417. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  418. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  419. localstatedir=$ac_optarg ;;
  420. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  421. ac_prev=mandir ;;
  422. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  423. mandir=$ac_optarg ;;
  424. -nfp | --nfp | --nf)
  425. # Obsolete; use --without-fp.
  426. with_fp=no ;;
  427. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  428. | --no-cr | --no-c | -n)
  429. no_create=yes ;;
  430. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  431. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  432. no_recursion=yes ;;
  433. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  434. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  435. | --oldin | --oldi | --old | --ol | --o)
  436. ac_prev=oldincludedir ;;
  437. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  438. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  439. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  440. oldincludedir=$ac_optarg ;;
  441. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  442. ac_prev=prefix ;;
  443. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  444. prefix=$ac_optarg ;;
  445. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  446. | --program-pre | --program-pr | --program-p)
  447. ac_prev=program_prefix ;;
  448. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  449. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  450. program_prefix=$ac_optarg ;;
  451. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  452. | --program-suf | --program-su | --program-s)
  453. ac_prev=program_suffix ;;
  454. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  455. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  456. program_suffix=$ac_optarg ;;
  457. -program-transform-name | --program-transform-name \
  458. | --program-transform-nam | --program-transform-na \
  459. | --program-transform-n | --program-transform- \
  460. | --program-transform | --program-transfor \
  461. | --program-transfo | --program-transf \
  462. | --program-trans | --program-tran \
  463. | --progr-tra | --program-tr | --program-t)
  464. ac_prev=program_transform_name ;;
  465. -program-transform-name=* | --program-transform-name=* \
  466. | --program-transform-nam=* | --program-transform-na=* \
  467. | --program-transform-n=* | --program-transform-=* \
  468. | --program-transform=* | --program-transfor=* \
  469. | --program-transfo=* | --program-transf=* \
  470. | --program-trans=* | --program-tran=* \
  471. | --progr-tra=* | --program-tr=* | --program-t=*)
  472. program_transform_name=$ac_optarg ;;
  473. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  474. | -silent | --silent | --silen | --sile | --sil)
  475. silent=yes ;;
  476. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  477. ac_prev=sbindir ;;
  478. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  479. | --sbi=* | --sb=*)
  480. sbindir=$ac_optarg ;;
  481. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  482. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  483. | --sharedst | --shareds | --shared | --share | --shar \
  484. | --sha | --sh)
  485. ac_prev=sharedstatedir ;;
  486. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  487. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  488. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  489. | --sha=* | --sh=*)
  490. sharedstatedir=$ac_optarg ;;
  491. -site | --site | --sit)
  492. ac_prev=site ;;
  493. -site=* | --site=* | --sit=*)
  494. site=$ac_optarg ;;
  495. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  496. ac_prev=srcdir ;;
  497. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  498. srcdir=$ac_optarg ;;
  499. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  500. | --syscon | --sysco | --sysc | --sys | --sy)
  501. ac_prev=sysconfdir ;;
  502. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  503. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  504. sysconfdir=$ac_optarg ;;
  505. -target | --target | --targe | --targ | --tar | --ta | --t)
  506. ac_prev=target_alias ;;
  507. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  508. target_alias=$ac_optarg ;;
  509. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  510. verbose=yes ;;
  511. -version | --version | --versio | --versi | --vers | -V)
  512. ac_init_version=: ;;
  513. -with-* | --with-*)
  514. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  515. # Reject names that are not valid shell variable names.
  516. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  517. { echo "$as_me: error: invalid package name: $ac_package" >&2
  518. { (exit 1); exit 1; }; }
  519. ac_package=`echo $ac_package| sed 's/-/_/g'`
  520. case $ac_option in
  521. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  522. *) ac_optarg=yes ;;
  523. esac
  524. eval "with_$ac_package='$ac_optarg'" ;;
  525. -without-* | --without-*)
  526. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  527. # Reject names that are not valid shell variable names.
  528. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  529. { echo "$as_me: error: invalid package name: $ac_package" >&2
  530. { (exit 1); exit 1; }; }
  531. ac_package=`echo $ac_package | sed 's/-/_/g'`
  532. eval "with_$ac_package=no" ;;
  533. --x)
  534. # Obsolete; use --with-x.
  535. with_x=yes ;;
  536. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  537. | --x-incl | --x-inc | --x-in | --x-i)
  538. ac_prev=x_includes ;;
  539. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  540. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  541. x_includes=$ac_optarg ;;
  542. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  543. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  544. ac_prev=x_libraries ;;
  545. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  546. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  547. x_libraries=$ac_optarg ;;
  548. -*) { echo "$as_me: error: unrecognized option: $ac_option
  549. Try \`$0 --help' for more information." >&2
  550. { (exit 1); exit 1; }; }
  551. ;;
  552. *=*)
  553. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  554. # Reject names that are not valid shell variable names.
  555. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  556. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  557. { (exit 1); exit 1; }; }
  558. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  559. eval "$ac_envvar='$ac_optarg'"
  560. export $ac_envvar ;;
  561. *)
  562. # FIXME: should be removed in autoconf 3.0.
  563. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  564. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  565. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  566. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  567. ;;
  568. esac
  569. done
  570. if test -n "$ac_prev"; then
  571. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  572. { echo "$as_me: error: missing argument to $ac_option" >&2
  573. { (exit 1); exit 1; }; }
  574. fi
  575. # Be sure to have absolute paths.
  576. for ac_var in exec_prefix prefix
  577. do
  578. eval ac_val=$`echo $ac_var`
  579. case $ac_val in
  580. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  581. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  582. { (exit 1); exit 1; }; };;
  583. esac
  584. done
  585. # Be sure to have absolute paths.
  586. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  587. localstatedir libdir includedir oldincludedir infodir mandir
  588. do
  589. eval ac_val=$`echo $ac_var`
  590. case $ac_val in
  591. [\\/$]* | ?:[\\/]* ) ;;
  592. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  593. { (exit 1); exit 1; }; };;
  594. esac
  595. done
  596. # There might be people who depend on the old broken behavior: `$host'
  597. # used to hold the argument of --host etc.
  598. # FIXME: To remove some day.
  599. build=$build_alias
  600. host=$host_alias
  601. target=$target_alias
  602. # FIXME: To remove some day.
  603. if test "x$host_alias" != x; then
  604. if test "x$build_alias" = x; then
  605. cross_compiling=maybe
  606. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  607. If a cross compiler is detected then cross compile mode will be used." >&2
  608. elif test "x$build_alias" != "x$host_alias"; then
  609. cross_compiling=yes
  610. fi
  611. fi
  612. ac_tool_prefix=
  613. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  614. test "$silent" = yes && exec 6>/dev/null
  615. # Find the source files, if location was not specified.
  616. if test -z "$srcdir"; then
  617. ac_srcdir_defaulted=yes
  618. # Try the directory containing this script, then its parent.
  619. ac_confdir=`(dirname "$0") 2>/dev/null ||
  620. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  621. X"$0" : 'X\(//\)[^/]' \| \
  622. X"$0" : 'X\(//\)$' \| \
  623. X"$0" : 'X\(/\)' \| \
  624. . : '\(.\)' 2>/dev/null ||
  625. echo X"$0" |
  626. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  627. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  628. /^X\(\/\/\)$/{ s//\1/; q; }
  629. /^X\(\/\).*/{ s//\1/; q; }
  630. s/.*/./; q'`
  631. srcdir=$ac_confdir
  632. if test ! -r $srcdir/$ac_unique_file; then
  633. srcdir=..
  634. fi
  635. else
  636. ac_srcdir_defaulted=no
  637. fi
  638. if test ! -r $srcdir/$ac_unique_file; then
  639. if test "$ac_srcdir_defaulted" = yes; then
  640. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  641. { (exit 1); exit 1; }; }
  642. else
  643. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  644. { (exit 1); exit 1; }; }
  645. fi
  646. fi
  647. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  648. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  649. { (exit 1); exit 1; }; }
  650. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  651. ac_env_build_alias_set=${build_alias+set}
  652. ac_env_build_alias_value=$build_alias
  653. ac_cv_env_build_alias_set=${build_alias+set}
  654. ac_cv_env_build_alias_value=$build_alias
  655. ac_env_host_alias_set=${host_alias+set}
  656. ac_env_host_alias_value=$host_alias
  657. ac_cv_env_host_alias_set=${host_alias+set}
  658. ac_cv_env_host_alias_value=$host_alias
  659. ac_env_target_alias_set=${target_alias+set}
  660. ac_env_target_alias_value=$target_alias
  661. ac_cv_env_target_alias_set=${target_alias+set}
  662. ac_cv_env_target_alias_value=$target_alias
  663. ac_env_CC_set=${CC+set}
  664. ac_env_CC_value=$CC
  665. ac_cv_env_CC_set=${CC+set}
  666. ac_cv_env_CC_value=$CC
  667. ac_env_CFLAGS_set=${CFLAGS+set}
  668. ac_env_CFLAGS_value=$CFLAGS
  669. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  670. ac_cv_env_CFLAGS_value=$CFLAGS
  671. ac_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_env_LDFLAGS_value=$LDFLAGS
  673. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  674. ac_cv_env_LDFLAGS_value=$LDFLAGS
  675. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  678. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  679. ac_env_CPP_set=${CPP+set}
  680. ac_env_CPP_value=$CPP
  681. ac_cv_env_CPP_set=${CPP+set}
  682. ac_cv_env_CPP_value=$CPP
  683. #
  684. # Report the --help message.
  685. #
  686. if test "$ac_init_help" = "long"; then
  687. # Omit some internal or obsolete options to make the list less imposing.
  688. # This message is too long to be a string in the A/UX 3.1 sh.
  689. cat <<_ACEOF
  690. \`configure' configures this package to adapt to many kinds of systems.
  691. Usage: $0 [OPTION]... [VAR=VALUE]...
  692. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  693. VAR=VALUE. See below for descriptions of some of the useful variables.
  694. Defaults for the options are specified in brackets.
  695. Configuration:
  696. -h, --help display this help and exit
  697. --help=short display options specific to this package
  698. --help=recursive display the short help of all the included packages
  699. -V, --version display version information and exit
  700. -q, --quiet, --silent do not print \`checking...' messages
  701. --cache-file=FILE cache test results in FILE [disabled]
  702. -C, --config-cache alias for \`--cache-file=config.cache'
  703. -n, --no-create do not create output files
  704. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  705. _ACEOF
  706. cat <<_ACEOF
  707. Installation directories:
  708. --prefix=PREFIX install architecture-independent files in PREFIX
  709. [$ac_default_prefix]
  710. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  711. [PREFIX]
  712. By default, \`make install' will install all the files in
  713. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  714. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  715. for instance \`--prefix=\$HOME'.
  716. For better control, use the options below.
  717. Fine tuning of the installation directories:
  718. --bindir=DIR user executables [EPREFIX/bin]
  719. --sbindir=DIR system admin executables [EPREFIX/sbin]
  720. --libexecdir=DIR program executables [EPREFIX/libexec]
  721. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  722. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  723. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  724. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  725. --libdir=DIR object code libraries [EPREFIX/lib]
  726. --includedir=DIR C header files [PREFIX/include]
  727. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  728. --infodir=DIR info documentation [PREFIX/info]
  729. --mandir=DIR man documentation [PREFIX/man]
  730. _ACEOF
  731. cat <<\_ACEOF
  732. _ACEOF
  733. fi
  734. if test -n "$ac_init_help"; then
  735. cat <<\_ACEOF
  736. Optional Features:
  737. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  738. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  739. --disable-ipv6 disable IPv6 support
  740. Some influential environment variables:
  741. CC C compiler command
  742. CFLAGS C compiler flags
  743. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  744. nonstandard directory <lib dir>
  745. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  746. headers in a nonstandard directory <include dir>
  747. CPP C preprocessor
  748. Use these variables to override the choices made by `configure' or to help
  749. it to find libraries and programs with nonstandard names/locations.
  750. _ACEOF
  751. fi
  752. if test "$ac_init_help" = "recursive"; then
  753. # If there are subdirs, report their specific --help.
  754. ac_popdir=`pwd`
  755. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  756. test -d $ac_dir || continue
  757. ac_builddir=.
  758. if test "$ac_dir" != .; then
  759. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  760. # A "../" for each directory in $ac_dir_suffix.
  761. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  762. else
  763. ac_dir_suffix= ac_top_builddir=
  764. fi
  765. case $srcdir in
  766. .) # No --srcdir option. We are building in place.
  767. ac_srcdir=.
  768. if test -z "$ac_top_builddir"; then
  769. ac_top_srcdir=.
  770. else
  771. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  772. fi ;;
  773. [\\/]* | ?:[\\/]* ) # Absolute path.
  774. ac_srcdir=$srcdir$ac_dir_suffix;
  775. ac_top_srcdir=$srcdir ;;
  776. *) # Relative path.
  777. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  778. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  779. esac
  780. # Do not use `cd foo && pwd` to compute absolute paths, because
  781. # the directories may not exist.
  782. case `pwd` in
  783. .) ac_abs_builddir="$ac_dir";;
  784. *)
  785. case "$ac_dir" in
  786. .) ac_abs_builddir=`pwd`;;
  787. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  788. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  789. esac;;
  790. esac
  791. case $ac_abs_builddir in
  792. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  793. *)
  794. case ${ac_top_builddir}. in
  795. .) ac_abs_top_builddir=$ac_abs_builddir;;
  796. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  797. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  798. esac;;
  799. esac
  800. case $ac_abs_builddir in
  801. .) ac_abs_srcdir=$ac_srcdir;;
  802. *)
  803. case $ac_srcdir in
  804. .) ac_abs_srcdir=$ac_abs_builddir;;
  805. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  806. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  807. esac;;
  808. esac
  809. case $ac_abs_builddir in
  810. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  811. *)
  812. case $ac_top_srcdir in
  813. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  814. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  815. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  816. esac;;
  817. esac
  818. cd $ac_dir
  819. # Check for guested configure; otherwise get Cygnus style configure.
  820. if test -f $ac_srcdir/configure.gnu; then
  821. echo
  822. $SHELL $ac_srcdir/configure.gnu --help=recursive
  823. elif test -f $ac_srcdir/configure; then
  824. echo
  825. $SHELL $ac_srcdir/configure --help=recursive
  826. elif test -f $ac_srcdir/configure.ac ||
  827. test -f $ac_srcdir/configure.in; then
  828. echo
  829. $ac_configure --help
  830. else
  831. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  832. fi
  833. cd "$ac_popdir"
  834. done
  835. fi
  836. test -n "$ac_init_help" && exit 0
  837. if $ac_init_version; then
  838. cat <<\_ACEOF
  839. Copyright (C) 2003 Free Software Foundation, Inc.
  840. This configure script is free software; the Free Software Foundation
  841. gives unlimited permission to copy, distribute and modify it.
  842. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  843. _ACEOF
  844. exit 0
  845. fi
  846. exec 5>config.log
  847. cat >&5 <<_ACEOF
  848. This file contains any messages produced by compilers while
  849. running configure, to aid debugging if configure makes a mistake.
  850. It was created by $as_me, which was
  851. generated by GNU Autoconf 2.59. Invocation command line was
  852. $ $0 $@
  853. _ACEOF
  854. {
  855. cat <<_ASUNAME
  856. ## --------- ##
  857. ## Platform. ##
  858. ## --------- ##
  859. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  860. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  861. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  862. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  863. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  864. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  865. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  866. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  867. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  868. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  869. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  870. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  871. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  872. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  873. _ASUNAME
  874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  875. for as_dir in $PATH
  876. do
  877. IFS=$as_save_IFS
  878. test -z "$as_dir" && as_dir=.
  879. echo "PATH: $as_dir"
  880. done
  881. } >&5
  882. cat >&5 <<_ACEOF
  883. ## ----------- ##
  884. ## Core tests. ##
  885. ## ----------- ##
  886. _ACEOF
  887. # Keep a trace of the command line.
  888. # Strip out --no-create and --no-recursion so they do not pile up.
  889. # Strip out --silent because we don't want to record it for future runs.
  890. # Also quote any args containing shell meta-characters.
  891. # Make two passes to allow for proper duplicate-argument suppression.
  892. ac_configure_args=
  893. ac_configure_args0=
  894. ac_configure_args1=
  895. ac_sep=
  896. ac_must_keep_next=false
  897. for ac_pass in 1 2
  898. do
  899. for ac_arg
  900. do
  901. case $ac_arg in
  902. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  903. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  904. | -silent | --silent | --silen | --sile | --sil)
  905. continue ;;
  906. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  907. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  908. esac
  909. case $ac_pass in
  910. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  911. 2)
  912. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  913. if test $ac_must_keep_next = true; then
  914. ac_must_keep_next=false # Got value, back to normal.
  915. else
  916. case $ac_arg in
  917. *=* | --config-cache | -C | -disable-* | --disable-* \
  918. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  919. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  920. | -with-* | --with-* | -without-* | --without-* | --x)
  921. case "$ac_configure_args0 " in
  922. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  923. esac
  924. ;;
  925. -* ) ac_must_keep_next=true ;;
  926. esac
  927. fi
  928. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  929. # Get rid of the leading space.
  930. ac_sep=" "
  931. ;;
  932. esac
  933. done
  934. done
  935. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  936. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  937. # When interrupted or exit'd, cleanup temporary files, and complete
  938. # config.log. We remove comments because anyway the quotes in there
  939. # would cause problems or look ugly.
  940. # WARNING: Be sure not to use single quotes in there, as some shells,
  941. # such as our DU 5.0 friend, will then `close' the trap.
  942. trap 'exit_status=$?
  943. # Save into config.log some information that might help in debugging.
  944. {
  945. echo
  946. cat <<\_ASBOX
  947. ## ---------------- ##
  948. ## Cache variables. ##
  949. ## ---------------- ##
  950. _ASBOX
  951. echo
  952. # The following way of writing the cache mishandles newlines in values,
  953. {
  954. (set) 2>&1 |
  955. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  956. *ac_space=\ *)
  957. sed -n \
  958. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  959. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  960. ;;
  961. *)
  962. sed -n \
  963. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  964. ;;
  965. esac;
  966. }
  967. echo
  968. cat <<\_ASBOX
  969. ## ----------------- ##
  970. ## Output variables. ##
  971. ## ----------------- ##
  972. _ASBOX
  973. echo
  974. for ac_var in $ac_subst_vars
  975. do
  976. eval ac_val=$`echo $ac_var`
  977. echo "$ac_var='"'"'$ac_val'"'"'"
  978. done | sort
  979. echo
  980. if test -n "$ac_subst_files"; then
  981. cat <<\_ASBOX
  982. ## ------------- ##
  983. ## Output files. ##
  984. ## ------------- ##
  985. _ASBOX
  986. echo
  987. for ac_var in $ac_subst_files
  988. do
  989. eval ac_val=$`echo $ac_var`
  990. echo "$ac_var='"'"'$ac_val'"'"'"
  991. done | sort
  992. echo
  993. fi
  994. if test -s confdefs.h; then
  995. cat <<\_ASBOX
  996. ## ----------- ##
  997. ## confdefs.h. ##
  998. ## ----------- ##
  999. _ASBOX
  1000. echo
  1001. sed "/^$/d" confdefs.h | sort
  1002. echo
  1003. fi
  1004. test "$ac_signal" != 0 &&
  1005. echo "$as_me: caught signal $ac_signal"
  1006. echo "$as_me: exit $exit_status"
  1007. } >&5
  1008. rm -f core *.core &&
  1009. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1010. exit $exit_status
  1011. ' 0
  1012. for ac_signal in 1 2 13 15; do
  1013. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1014. done
  1015. ac_signal=0
  1016. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1017. rm -rf conftest* confdefs.h
  1018. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1019. echo >confdefs.h
  1020. # Predefined preprocessor variables.
  1021. cat >>confdefs.h <<_ACEOF
  1022. #define PACKAGE_NAME "$PACKAGE_NAME"
  1023. _ACEOF
  1024. cat >>confdefs.h <<_ACEOF
  1025. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1026. _ACEOF
  1027. cat >>confdefs.h <<_ACEOF
  1028. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1029. _ACEOF
  1030. cat >>confdefs.h <<_ACEOF
  1031. #define PACKAGE_STRING "$PACKAGE_STRING"
  1032. _ACEOF
  1033. cat >>confdefs.h <<_ACEOF
  1034. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1035. _ACEOF
  1036. # Let the site file select an alternate cache file if it wants to.
  1037. # Prefer explicitly selected file to automatically selected ones.
  1038. if test -z "$CONFIG_SITE"; then
  1039. if test "x$prefix" != xNONE; then
  1040. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1041. else
  1042. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1043. fi
  1044. fi
  1045. for ac_site_file in $CONFIG_SITE; do
  1046. if test -r "$ac_site_file"; then
  1047. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1048. echo "$as_me: loading site script $ac_site_file" >&6;}
  1049. sed 's/^/| /' "$ac_site_file" >&5
  1050. . "$ac_site_file"
  1051. fi
  1052. done
  1053. if test -r "$cache_file"; then
  1054. # Some versions of bash will fail to source /dev/null (special
  1055. # files actually), so we avoid doing that.
  1056. if test -f "$cache_file"; then
  1057. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1058. echo "$as_me: loading cache $cache_file" >&6;}
  1059. case $cache_file in
  1060. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1061. *) . ./$cache_file;;
  1062. esac
  1063. fi
  1064. else
  1065. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1066. echo "$as_me: creating cache $cache_file" >&6;}
  1067. >$cache_file
  1068. fi
  1069. # Check that the precious variables saved in the cache have kept the same
  1070. # value.
  1071. ac_cache_corrupted=false
  1072. for ac_var in `(set) 2>&1 |
  1073. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1074. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1075. eval ac_new_set=\$ac_env_${ac_var}_set
  1076. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1077. eval ac_new_val="\$ac_env_${ac_var}_value"
  1078. case $ac_old_set,$ac_new_set in
  1079. set,)
  1080. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1081. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1082. ac_cache_corrupted=: ;;
  1083. ,set)
  1084. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1085. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1086. ac_cache_corrupted=: ;;
  1087. ,);;
  1088. *)
  1089. if test "x$ac_old_val" != "x$ac_new_val"; then
  1090. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1091. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1092. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1093. echo "$as_me: former value: $ac_old_val" >&2;}
  1094. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1095. echo "$as_me: current value: $ac_new_val" >&2;}
  1096. ac_cache_corrupted=:
  1097. fi;;
  1098. esac
  1099. # Pass precious variables to config.status.
  1100. if test "$ac_new_set" = set; then
  1101. case $ac_new_val in
  1102. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1103. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1104. *) ac_arg=$ac_var=$ac_new_val ;;
  1105. esac
  1106. case " $ac_configure_args " in
  1107. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1108. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1109. esac
  1110. fi
  1111. done
  1112. if $ac_cache_corrupted; then
  1113. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1114. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1115. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1116. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1117. { (exit 1); exit 1; }; }
  1118. fi
  1119. ac_ext=c
  1120. ac_cpp='$CPP $CPPFLAGS'
  1121. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1122. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1123. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1124. ac_config_headers="$ac_config_headers config.h"
  1125. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1126. egg_ac_parameters=
  1127. ac_prev=
  1128. for ac_arg in $ac_configure_args; do
  1129. if test -n "$ac_prev"; then
  1130. ac_prev=
  1131. continue
  1132. fi
  1133. case $ac_arg in
  1134. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1135. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1136. ac_prev=cache_file ;;
  1137. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1138. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1139. | --c=*)
  1140. ;;
  1141. --config-cache | -C)
  1142. ;;
  1143. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1144. ac_prev=srcdir ;;
  1145. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1146. ;;
  1147. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1148. esac
  1149. done
  1150. # Setup build environment
  1151. ac_ext=c
  1152. ac_cpp='$CPP $CPPFLAGS'
  1153. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1154. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1155. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1156. if test -n "$ac_tool_prefix"; then
  1157. for ac_prog in gcc34 gcc33 gcc3 gcc-3.4 gcc-3.3 gcc cc c1
  1158. do
  1159. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1160. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1161. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1162. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1163. if test "${ac_cv_prog_CC+set}" = set; then
  1164. echo $ECHO_N "(cached) $ECHO_C" >&6
  1165. else
  1166. if test -n "$CC"; then
  1167. ac_cv_prog_CC="$CC" # Let the user override the test.
  1168. else
  1169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1170. for as_dir in $PATH
  1171. do
  1172. IFS=$as_save_IFS
  1173. test -z "$as_dir" && as_dir=.
  1174. for ac_exec_ext in '' $ac_executable_extensions; do
  1175. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1176. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1177. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1178. break 2
  1179. fi
  1180. done
  1181. done
  1182. fi
  1183. fi
  1184. CC=$ac_cv_prog_CC
  1185. if test -n "$CC"; then
  1186. echo "$as_me:$LINENO: result: $CC" >&5
  1187. echo "${ECHO_T}$CC" >&6
  1188. else
  1189. echo "$as_me:$LINENO: result: no" >&5
  1190. echo "${ECHO_T}no" >&6
  1191. fi
  1192. test -n "$CC" && break
  1193. done
  1194. fi
  1195. if test -z "$CC"; then
  1196. ac_ct_CC=$CC
  1197. for ac_prog in gcc34 gcc33 gcc3 gcc-3.4 gcc-3.3 gcc cc c1
  1198. do
  1199. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1200. set dummy $ac_prog; ac_word=$2
  1201. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1202. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1203. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1204. echo $ECHO_N "(cached) $ECHO_C" >&6
  1205. else
  1206. if test -n "$ac_ct_CC"; then
  1207. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1208. else
  1209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1210. for as_dir in $PATH
  1211. do
  1212. IFS=$as_save_IFS
  1213. test -z "$as_dir" && as_dir=.
  1214. for ac_exec_ext in '' $ac_executable_extensions; do
  1215. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1216. ac_cv_prog_ac_ct_CC="$ac_prog"
  1217. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1218. break 2
  1219. fi
  1220. done
  1221. done
  1222. fi
  1223. fi
  1224. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1225. if test -n "$ac_ct_CC"; then
  1226. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1227. echo "${ECHO_T}$ac_ct_CC" >&6
  1228. else
  1229. echo "$as_me:$LINENO: result: no" >&5
  1230. echo "${ECHO_T}no" >&6
  1231. fi
  1232. test -n "$ac_ct_CC" && break
  1233. done
  1234. CC=$ac_ct_CC
  1235. fi
  1236. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1237. See \`config.log' for more details." >&5
  1238. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1239. See \`config.log' for more details." >&2;}
  1240. { (exit 1); exit 1; }; }
  1241. # Provide some information about the compiler.
  1242. echo "$as_me:$LINENO:" \
  1243. "checking for C compiler version" >&5
  1244. ac_compiler=`set X $ac_compile; echo $2`
  1245. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1246. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1247. ac_status=$?
  1248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1249. (exit $ac_status); }
  1250. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1251. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1252. ac_status=$?
  1253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1254. (exit $ac_status); }
  1255. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1256. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1257. ac_status=$?
  1258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1259. (exit $ac_status); }
  1260. cat >conftest.$ac_ext <<_ACEOF
  1261. /* confdefs.h. */
  1262. _ACEOF
  1263. cat confdefs.h >>conftest.$ac_ext
  1264. cat >>conftest.$ac_ext <<_ACEOF
  1265. /* end confdefs.h. */
  1266. int
  1267. main ()
  1268. {
  1269. ;
  1270. return 0;
  1271. }
  1272. _ACEOF
  1273. ac_clean_files_save=$ac_clean_files
  1274. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1275. # Try to create an executable without -o first, disregard a.out.
  1276. # It will help us diagnose broken compilers, and finding out an intuition
  1277. # of exeext.
  1278. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1279. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1280. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1281. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1282. (eval $ac_link_default) 2>&5
  1283. ac_status=$?
  1284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1285. (exit $ac_status); }; then
  1286. # Find the output, starting from the most likely. This scheme is
  1287. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1288. # resort.
  1289. # Be careful to initialize this variable, since it used to be cached.
  1290. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1291. ac_cv_exeext=
  1292. # b.out is created by i960 compilers.
  1293. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1294. do
  1295. test -f "$ac_file" || continue
  1296. case $ac_file in
  1297. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1298. ;;
  1299. conftest.$ac_ext )
  1300. # This is the source file.
  1301. ;;
  1302. [ab].out )
  1303. # We found the default executable, but exeext='' is most
  1304. # certainly right.
  1305. break;;
  1306. *.* )
  1307. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1308. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1309. # but it would be cool to find out if it's true. Does anybody
  1310. # maintain Libtool? --akim.
  1311. export ac_cv_exeext
  1312. break;;
  1313. * )
  1314. break;;
  1315. esac
  1316. done
  1317. else
  1318. echo "$as_me: failed program was:" >&5
  1319. sed 's/^/| /' conftest.$ac_ext >&5
  1320. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1321. See \`config.log' for more details." >&5
  1322. echo "$as_me: error: C compiler cannot create executables
  1323. See \`config.log' for more details." >&2;}
  1324. { (exit 77); exit 77; }; }
  1325. fi
  1326. ac_exeext=$ac_cv_exeext
  1327. echo "$as_me:$LINENO: result: $ac_file" >&5
  1328. echo "${ECHO_T}$ac_file" >&6
  1329. # Check the compiler produces executables we can run. If not, either
  1330. # the compiler is broken, or we cross compile.
  1331. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1332. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1333. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1334. # If not cross compiling, check that we can run a simple program.
  1335. if test "$cross_compiling" != yes; then
  1336. if { ac_try='./$ac_file'
  1337. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1338. (eval $ac_try) 2>&5
  1339. ac_status=$?
  1340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1341. (exit $ac_status); }; }; then
  1342. cross_compiling=no
  1343. else
  1344. if test "$cross_compiling" = maybe; then
  1345. cross_compiling=yes
  1346. else
  1347. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1348. If you meant to cross compile, use \`--host'.
  1349. See \`config.log' for more details." >&5
  1350. echo "$as_me: error: cannot run C compiled programs.
  1351. If you meant to cross compile, use \`--host'.
  1352. See \`config.log' for more details." >&2;}
  1353. { (exit 1); exit 1; }; }
  1354. fi
  1355. fi
  1356. fi
  1357. echo "$as_me:$LINENO: result: yes" >&5
  1358. echo "${ECHO_T}yes" >&6
  1359. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1360. ac_clean_files=$ac_clean_files_save
  1361. # Check the compiler produces executables we can run. If not, either
  1362. # the compiler is broken, or we cross compile.
  1363. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1364. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1365. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1366. echo "${ECHO_T}$cross_compiling" >&6
  1367. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1368. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1369. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1370. (eval $ac_link) 2>&5
  1371. ac_status=$?
  1372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1373. (exit $ac_status); }; then
  1374. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1375. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1376. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1377. # `rm'.
  1378. for ac_file in conftest.exe conftest conftest.*; do
  1379. test -f "$ac_file" || continue
  1380. case $ac_file in
  1381. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1382. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1383. export ac_cv_exeext
  1384. break;;
  1385. * ) break;;
  1386. esac
  1387. done
  1388. else
  1389. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1390. See \`config.log' for more details." >&5
  1391. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1392. See \`config.log' for more details." >&2;}
  1393. { (exit 1); exit 1; }; }
  1394. fi
  1395. rm -f conftest$ac_cv_exeext
  1396. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1397. echo "${ECHO_T}$ac_cv_exeext" >&6
  1398. rm -f conftest.$ac_ext
  1399. EXEEXT=$ac_cv_exeext
  1400. ac_exeext=$EXEEXT
  1401. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1402. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1403. if test "${ac_cv_objext+set}" = set; then
  1404. echo $ECHO_N "(cached) $ECHO_C" >&6
  1405. else
  1406. cat >conftest.$ac_ext <<_ACEOF
  1407. /* confdefs.h. */
  1408. _ACEOF
  1409. cat confdefs.h >>conftest.$ac_ext
  1410. cat >>conftest.$ac_ext <<_ACEOF
  1411. /* end confdefs.h. */
  1412. int
  1413. main ()
  1414. {
  1415. ;
  1416. return 0;
  1417. }
  1418. _ACEOF
  1419. rm -f conftest.o conftest.obj
  1420. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1421. (eval $ac_compile) 2>&5
  1422. ac_status=$?
  1423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1424. (exit $ac_status); }; then
  1425. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1426. case $ac_file in
  1427. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1428. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1429. break;;
  1430. esac
  1431. done
  1432. else
  1433. echo "$as_me: failed program was:" >&5
  1434. sed 's/^/| /' conftest.$ac_ext >&5
  1435. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1436. See \`config.log' for more details." >&5
  1437. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1438. See \`config.log' for more details." >&2;}
  1439. { (exit 1); exit 1; }; }
  1440. fi
  1441. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1442. fi
  1443. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1444. echo "${ECHO_T}$ac_cv_objext" >&6
  1445. OBJEXT=$ac_cv_objext
  1446. ac_objext=$OBJEXT
  1447. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1448. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1449. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1450. echo $ECHO_N "(cached) $ECHO_C" >&6
  1451. else
  1452. cat >conftest.$ac_ext <<_ACEOF
  1453. /* confdefs.h. */
  1454. _ACEOF
  1455. cat confdefs.h >>conftest.$ac_ext
  1456. cat >>conftest.$ac_ext <<_ACEOF
  1457. /* end confdefs.h. */
  1458. int
  1459. main ()
  1460. {
  1461. #ifndef __GNUC__
  1462. choke me
  1463. #endif
  1464. ;
  1465. return 0;
  1466. }
  1467. _ACEOF
  1468. rm -f conftest.$ac_objext
  1469. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1470. (eval $ac_compile) 2>conftest.er1
  1471. ac_status=$?
  1472. grep -v '^ *+' conftest.er1 >conftest.err
  1473. rm -f conftest.er1
  1474. cat conftest.err >&5
  1475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1476. (exit $ac_status); } &&
  1477. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1478. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1479. (eval $ac_try) 2>&5
  1480. ac_status=$?
  1481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1482. (exit $ac_status); }; } &&
  1483. { ac_try='test -s conftest.$ac_objext'
  1484. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1485. (eval $ac_try) 2>&5
  1486. ac_status=$?
  1487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1488. (exit $ac_status); }; }; then
  1489. ac_compiler_gnu=yes
  1490. else
  1491. echo "$as_me: failed program was:" >&5
  1492. sed 's/^/| /' conftest.$ac_ext >&5
  1493. ac_compiler_gnu=no
  1494. fi
  1495. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1496. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1497. fi
  1498. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1499. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1500. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1501. ac_test_CFLAGS=${CFLAGS+set}
  1502. ac_save_CFLAGS=$CFLAGS
  1503. CFLAGS="-g"
  1504. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1505. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1506. if test "${ac_cv_prog_cc_g+set}" = set; then
  1507. echo $ECHO_N "(cached) $ECHO_C" >&6
  1508. else
  1509. cat >conftest.$ac_ext <<_ACEOF
  1510. /* confdefs.h. */
  1511. _ACEOF
  1512. cat confdefs.h >>conftest.$ac_ext
  1513. cat >>conftest.$ac_ext <<_ACEOF
  1514. /* end confdefs.h. */
  1515. int
  1516. main ()
  1517. {
  1518. ;
  1519. return 0;
  1520. }
  1521. _ACEOF
  1522. rm -f conftest.$ac_objext
  1523. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1524. (eval $ac_compile) 2>conftest.er1
  1525. ac_status=$?
  1526. grep -v '^ *+' conftest.er1 >conftest.err
  1527. rm -f conftest.er1
  1528. cat conftest.err >&5
  1529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1530. (exit $ac_status); } &&
  1531. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1532. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1533. (eval $ac_try) 2>&5
  1534. ac_status=$?
  1535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1536. (exit $ac_status); }; } &&
  1537. { ac_try='test -s conftest.$ac_objext'
  1538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1539. (eval $ac_try) 2>&5
  1540. ac_status=$?
  1541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1542. (exit $ac_status); }; }; then
  1543. ac_cv_prog_cc_g=yes
  1544. else
  1545. echo "$as_me: failed program was:" >&5
  1546. sed 's/^/| /' conftest.$ac_ext >&5
  1547. ac_cv_prog_cc_g=no
  1548. fi
  1549. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1550. fi
  1551. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1552. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1553. if test "$ac_test_CFLAGS" = set; then
  1554. CFLAGS=$ac_save_CFLAGS
  1555. elif test $ac_cv_prog_cc_g = yes; then
  1556. if test "$GCC" = yes; then
  1557. CFLAGS="-g -O2"
  1558. else
  1559. CFLAGS="-g"
  1560. fi
  1561. else
  1562. if test "$GCC" = yes; then
  1563. CFLAGS="-O2"
  1564. else
  1565. CFLAGS=
  1566. fi
  1567. fi
  1568. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1569. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1570. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1571. echo $ECHO_N "(cached) $ECHO_C" >&6
  1572. else
  1573. ac_cv_prog_cc_stdc=no
  1574. ac_save_CC=$CC
  1575. cat >conftest.$ac_ext <<_ACEOF
  1576. /* confdefs.h. */
  1577. _ACEOF
  1578. cat confdefs.h >>conftest.$ac_ext
  1579. cat >>conftest.$ac_ext <<_ACEOF
  1580. /* end confdefs.h. */
  1581. #include <stdarg.h>
  1582. #include <stdio.h>
  1583. #include <sys/types.h>
  1584. #include <sys/stat.h>
  1585. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1586. struct buf { int x; };
  1587. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1588. static char *e (p, i)
  1589. char **p;
  1590. int i;
  1591. {
  1592. return p[i];
  1593. }
  1594. static char *f (char * (*g) (char **, int), char **p, ...)
  1595. {
  1596. char *s;
  1597. va_list v;
  1598. va_start (v,p);
  1599. s = g (p, va_arg (v,int));
  1600. va_end (v);
  1601. return s;
  1602. }
  1603. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1604. function prototypes and stuff, but not '\xHH' hex character constants.
  1605. These don't provoke an error unfortunately, instead are silently treated
  1606. as 'x'. The following induces an error, until -std1 is added to get
  1607. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1608. array size at least. It's necessary to write '\x00'==0 to get something
  1609. that's true only with -std1. */
  1610. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1611. int test (int i, double x);
  1612. struct s1 {int (*f) (int a);};
  1613. struct s2 {int (*f) (double a);};
  1614. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1615. int argc;
  1616. char **argv;
  1617. int
  1618. main ()
  1619. {
  1620. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1621. ;
  1622. return 0;
  1623. }
  1624. _ACEOF
  1625. # Don't try gcc -ansi; that turns off useful extensions and
  1626. # breaks some systems' header files.
  1627. # AIX -qlanglvl=ansi
  1628. # Ultrix and OSF/1 -std1
  1629. # HP-UX 10.20 and later -Ae
  1630. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1631. # SVR4 -Xc -D__EXTENSIONS__
  1632. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1633. do
  1634. CC="$ac_save_CC $ac_arg"
  1635. rm -f conftest.$ac_objext
  1636. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1637. (eval $ac_compile) 2>conftest.er1
  1638. ac_status=$?
  1639. grep -v '^ *+' conftest.er1 >conftest.err
  1640. rm -f conftest.er1
  1641. cat conftest.err >&5
  1642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1643. (exit $ac_status); } &&
  1644. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1645. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1646. (eval $ac_try) 2>&5
  1647. ac_status=$?
  1648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1649. (exit $ac_status); }; } &&
  1650. { ac_try='test -s conftest.$ac_objext'
  1651. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1652. (eval $ac_try) 2>&5
  1653. ac_status=$?
  1654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1655. (exit $ac_status); }; }; then
  1656. ac_cv_prog_cc_stdc=$ac_arg
  1657. break
  1658. else
  1659. echo "$as_me: failed program was:" >&5
  1660. sed 's/^/| /' conftest.$ac_ext >&5
  1661. fi
  1662. rm -f conftest.err conftest.$ac_objext
  1663. done
  1664. rm -f conftest.$ac_ext conftest.$ac_objext
  1665. CC=$ac_save_CC
  1666. fi
  1667. case "x$ac_cv_prog_cc_stdc" in
  1668. x|xno)
  1669. echo "$as_me:$LINENO: result: none needed" >&5
  1670. echo "${ECHO_T}none needed" >&6 ;;
  1671. *)
  1672. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1673. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1674. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1675. esac
  1676. # Some people use a C++ compiler to compile C. Since we use `exit',
  1677. # in C++ we need to declare it. In case someone uses the same compiler
  1678. # for both compiling C and C++ we need to have the C++ compiler decide
  1679. # the declaration of exit, since it's the most demanding environment.
  1680. cat >conftest.$ac_ext <<_ACEOF
  1681. #ifndef __cplusplus
  1682. choke me
  1683. #endif
  1684. _ACEOF
  1685. rm -f conftest.$ac_objext
  1686. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1687. (eval $ac_compile) 2>conftest.er1
  1688. ac_status=$?
  1689. grep -v '^ *+' conftest.er1 >conftest.err
  1690. rm -f conftest.er1
  1691. cat conftest.err >&5
  1692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1693. (exit $ac_status); } &&
  1694. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1695. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1696. (eval $ac_try) 2>&5
  1697. ac_status=$?
  1698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1699. (exit $ac_status); }; } &&
  1700. { ac_try='test -s conftest.$ac_objext'
  1701. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1702. (eval $ac_try) 2>&5
  1703. ac_status=$?
  1704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1705. (exit $ac_status); }; }; then
  1706. for ac_declaration in \
  1707. '' \
  1708. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1709. 'extern "C" void std::exit (int); using std::exit;' \
  1710. 'extern "C" void exit (int) throw ();' \
  1711. 'extern "C" void exit (int);' \
  1712. 'void exit (int);'
  1713. do
  1714. cat >conftest.$ac_ext <<_ACEOF
  1715. /* confdefs.h. */
  1716. _ACEOF
  1717. cat confdefs.h >>conftest.$ac_ext
  1718. cat >>conftest.$ac_ext <<_ACEOF
  1719. /* end confdefs.h. */
  1720. $ac_declaration
  1721. #include <stdlib.h>
  1722. int
  1723. main ()
  1724. {
  1725. exit (42);
  1726. ;
  1727. return 0;
  1728. }
  1729. _ACEOF
  1730. rm -f conftest.$ac_objext
  1731. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1732. (eval $ac_compile) 2>conftest.er1
  1733. ac_status=$?
  1734. grep -v '^ *+' conftest.er1 >conftest.err
  1735. rm -f conftest.er1
  1736. cat conftest.err >&5
  1737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1738. (exit $ac_status); } &&
  1739. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1740. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1741. (eval $ac_try) 2>&5
  1742. ac_status=$?
  1743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1744. (exit $ac_status); }; } &&
  1745. { ac_try='test -s conftest.$ac_objext'
  1746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1747. (eval $ac_try) 2>&5
  1748. ac_status=$?
  1749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1750. (exit $ac_status); }; }; then
  1751. :
  1752. else
  1753. echo "$as_me: failed program was:" >&5
  1754. sed 's/^/| /' conftest.$ac_ext >&5
  1755. continue
  1756. fi
  1757. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1758. cat >conftest.$ac_ext <<_ACEOF
  1759. /* confdefs.h. */
  1760. _ACEOF
  1761. cat confdefs.h >>conftest.$ac_ext
  1762. cat >>conftest.$ac_ext <<_ACEOF
  1763. /* end confdefs.h. */
  1764. $ac_declaration
  1765. int
  1766. main ()
  1767. {
  1768. exit (42);
  1769. ;
  1770. return 0;
  1771. }
  1772. _ACEOF
  1773. rm -f conftest.$ac_objext
  1774. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1775. (eval $ac_compile) 2>conftest.er1
  1776. ac_status=$?
  1777. grep -v '^ *+' conftest.er1 >conftest.err
  1778. rm -f conftest.er1
  1779. cat conftest.err >&5
  1780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1781. (exit $ac_status); } &&
  1782. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1783. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1784. (eval $ac_try) 2>&5
  1785. ac_status=$?
  1786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1787. (exit $ac_status); }; } &&
  1788. { ac_try='test -s conftest.$ac_objext'
  1789. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1790. (eval $ac_try) 2>&5
  1791. ac_status=$?
  1792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1793. (exit $ac_status); }; }; then
  1794. break
  1795. else
  1796. echo "$as_me: failed program was:" >&5
  1797. sed 's/^/| /' conftest.$ac_ext >&5
  1798. fi
  1799. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1800. done
  1801. rm -f conftest*
  1802. if test -n "$ac_declaration"; then
  1803. echo '#ifdef __cplusplus' >>confdefs.h
  1804. echo $ac_declaration >>confdefs.h
  1805. echo '#endif' >>confdefs.h
  1806. fi
  1807. else
  1808. echo "$as_me: failed program was:" >&5
  1809. sed 's/^/| /' conftest.$ac_ext >&5
  1810. fi
  1811. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1812. ac_ext=c
  1813. ac_cpp='$CPP $CPPFLAGS'
  1814. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1815. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1816. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1817. if test "${cross_compiling-x}" = "x"
  1818. then
  1819. cat << 'EOF' >&2
  1820. configure: error:
  1821. This system does not appear to have a working C compiler.
  1822. A working C compiler is required to compile Eggdrop.
  1823. EOF
  1824. exit 1
  1825. fi
  1826. if test -n "$GCC"; then
  1827. CFLAGS="$CFLAGS -O3"
  1828. fi
  1829. # Crazy machines
  1830. ac_ext=c
  1831. ac_cpp='$CPP $CPPFLAGS'
  1832. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1833. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1834. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1835. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  1836. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  1837. # On Suns, sometimes $CPP names a directory.
  1838. if test -n "$CPP" && test -d "$CPP"; then
  1839. CPP=
  1840. fi
  1841. if test -z "$CPP"; then
  1842. if test "${ac_cv_prog_CPP+set}" = set; then
  1843. echo $ECHO_N "(cached) $ECHO_C" >&6
  1844. else
  1845. # Double quotes because CPP needs to be expanded
  1846. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  1847. do
  1848. ac_preproc_ok=false
  1849. for ac_c_preproc_warn_flag in '' yes
  1850. do
  1851. # Use a header file that comes with gcc, so configuring glibc
  1852. # with a fresh cross-compiler works.
  1853. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1854. # <limits.h> exists even on freestanding compilers.
  1855. # On the NeXT, cc -E runs the code through the compiler's parser,
  1856. # not just through cpp. "Syntax error" is here to catch this case.
  1857. cat >conftest.$ac_ext <<_ACEOF
  1858. /* confdefs.h. */
  1859. _ACEOF
  1860. cat confdefs.h >>conftest.$ac_ext
  1861. cat >>conftest.$ac_ext <<_ACEOF
  1862. /* end confdefs.h. */
  1863. #ifdef __STDC__
  1864. # include <limits.h>
  1865. #else
  1866. # include <assert.h>
  1867. #endif
  1868. Syntax error
  1869. _ACEOF
  1870. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1871. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1872. ac_status=$?
  1873. grep -v '^ *+' conftest.er1 >conftest.err
  1874. rm -f conftest.er1
  1875. cat conftest.err >&5
  1876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1877. (exit $ac_status); } >/dev/null; then
  1878. if test -s conftest.err; then
  1879. ac_cpp_err=$ac_c_preproc_warn_flag
  1880. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  1881. else
  1882. ac_cpp_err=
  1883. fi
  1884. else
  1885. ac_cpp_err=yes
  1886. fi
  1887. if test -z "$ac_cpp_err"; then
  1888. :
  1889. else
  1890. echo "$as_me: failed program was:" >&5
  1891. sed 's/^/| /' conftest.$ac_ext >&5
  1892. # Broken: fails on valid input.
  1893. continue
  1894. fi
  1895. rm -f conftest.err conftest.$ac_ext
  1896. # OK, works on sane cases. Now check whether non-existent headers
  1897. # can be detected and how.
  1898. cat >conftest.$ac_ext <<_ACEOF
  1899. /* confdefs.h. */
  1900. _ACEOF
  1901. cat confdefs.h >>conftest.$ac_ext
  1902. cat >>conftest.$ac_ext <<_ACEOF
  1903. /* end confdefs.h. */
  1904. #include <ac_nonexistent.h>
  1905. _ACEOF
  1906. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1907. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1908. ac_status=$?
  1909. grep -v '^ *+' conftest.er1 >conftest.err
  1910. rm -f conftest.er1
  1911. cat conftest.err >&5
  1912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1913. (exit $ac_status); } >/dev/null; then
  1914. if test -s conftest.err; then
  1915. ac_cpp_err=$ac_c_preproc_warn_flag
  1916. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  1917. else
  1918. ac_cpp_err=
  1919. fi
  1920. else
  1921. ac_cpp_err=yes
  1922. fi
  1923. if test -z "$ac_cpp_err"; then
  1924. # Broken: success on invalid input.
  1925. continue
  1926. else
  1927. echo "$as_me: failed program was:" >&5
  1928. sed 's/^/| /' conftest.$ac_ext >&5
  1929. # Passes both tests.
  1930. ac_preproc_ok=:
  1931. break
  1932. fi
  1933. rm -f conftest.err conftest.$ac_ext
  1934. done
  1935. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  1936. rm -f conftest.err conftest.$ac_ext
  1937. if $ac_preproc_ok; then
  1938. break
  1939. fi
  1940. done
  1941. ac_cv_prog_CPP=$CPP
  1942. fi
  1943. CPP=$ac_cv_prog_CPP
  1944. else
  1945. ac_cv_prog_CPP=$CPP
  1946. fi
  1947. echo "$as_me:$LINENO: result: $CPP" >&5
  1948. echo "${ECHO_T}$CPP" >&6
  1949. ac_preproc_ok=false
  1950. for ac_c_preproc_warn_flag in '' yes
  1951. do
  1952. # Use a header file that comes with gcc, so configuring glibc
  1953. # with a fresh cross-compiler works.
  1954. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1955. # <limits.h> exists even on freestanding compilers.
  1956. # On the NeXT, cc -E runs the code through the compiler's parser,
  1957. # not just through cpp. "Syntax error" is here to catch this case.
  1958. cat >conftest.$ac_ext <<_ACEOF
  1959. /* confdefs.h. */
  1960. _ACEOF
  1961. cat confdefs.h >>conftest.$ac_ext
  1962. cat >>conftest.$ac_ext <<_ACEOF
  1963. /* end confdefs.h. */
  1964. #ifdef __STDC__
  1965. # include <limits.h>
  1966. #else
  1967. # include <assert.h>
  1968. #endif
  1969. Syntax error
  1970. _ACEOF
  1971. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1972. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1973. ac_status=$?
  1974. grep -v '^ *+' conftest.er1 >conftest.err
  1975. rm -f conftest.er1
  1976. cat conftest.err >&5
  1977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1978. (exit $ac_status); } >/dev/null; then
  1979. if test -s conftest.err; then
  1980. ac_cpp_err=$ac_c_preproc_warn_flag
  1981. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  1982. else
  1983. ac_cpp_err=
  1984. fi
  1985. else
  1986. ac_cpp_err=yes
  1987. fi
  1988. if test -z "$ac_cpp_err"; then
  1989. :
  1990. else
  1991. echo "$as_me: failed program was:" >&5
  1992. sed 's/^/| /' conftest.$ac_ext >&5
  1993. # Broken: fails on valid input.
  1994. continue
  1995. fi
  1996. rm -f conftest.err conftest.$ac_ext
  1997. # OK, works on sane cases. Now check whether non-existent headers
  1998. # can be detected and how.
  1999. cat >conftest.$ac_ext <<_ACEOF
  2000. /* confdefs.h. */
  2001. _ACEOF
  2002. cat confdefs.h >>conftest.$ac_ext
  2003. cat >>conftest.$ac_ext <<_ACEOF
  2004. /* end confdefs.h. */
  2005. #include <ac_nonexistent.h>
  2006. _ACEOF
  2007. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2008. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2009. ac_status=$?
  2010. grep -v '^ *+' conftest.er1 >conftest.err
  2011. rm -f conftest.er1
  2012. cat conftest.err >&5
  2013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2014. (exit $ac_status); } >/dev/null; then
  2015. if test -s conftest.err; then
  2016. ac_cpp_err=$ac_c_preproc_warn_flag
  2017. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2018. else
  2019. ac_cpp_err=
  2020. fi
  2021. else
  2022. ac_cpp_err=yes
  2023. fi
  2024. if test -z "$ac_cpp_err"; then
  2025. # Broken: success on invalid input.
  2026. continue
  2027. else
  2028. echo "$as_me: failed program was:" >&5
  2029. sed 's/^/| /' conftest.$ac_ext >&5
  2030. # Passes both tests.
  2031. ac_preproc_ok=:
  2032. break
  2033. fi
  2034. rm -f conftest.err conftest.$ac_ext
  2035. done
  2036. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2037. rm -f conftest.err conftest.$ac_ext
  2038. if $ac_preproc_ok; then
  2039. :
  2040. else
  2041. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2042. See \`config.log' for more details." >&5
  2043. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2044. See \`config.log' for more details." >&2;}
  2045. { (exit 1); exit 1; }; }
  2046. fi
  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 for egrep" >&5
  2053. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2054. if test "${ac_cv_prog_egrep+set}" = set; then
  2055. echo $ECHO_N "(cached) $ECHO_C" >&6
  2056. else
  2057. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2058. then ac_cv_prog_egrep='grep -E'
  2059. else ac_cv_prog_egrep='egrep'
  2060. fi
  2061. fi
  2062. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2063. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2064. EGREP=$ac_cv_prog_egrep
  2065. echo "$as_me:$LINENO: checking for AIX" >&5
  2066. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2067. cat >conftest.$ac_ext <<_ACEOF
  2068. /* confdefs.h. */
  2069. _ACEOF
  2070. cat confdefs.h >>conftest.$ac_ext
  2071. cat >>conftest.$ac_ext <<_ACEOF
  2072. /* end confdefs.h. */
  2073. #ifdef _AIX
  2074. yes
  2075. #endif
  2076. _ACEOF
  2077. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2078. $EGREP "yes" >/dev/null 2>&1; then
  2079. echo "$as_me:$LINENO: result: yes" >&5
  2080. echo "${ECHO_T}yes" >&6
  2081. cat >>confdefs.h <<\_ACEOF
  2082. #define _ALL_SOURCE 1
  2083. _ACEOF
  2084. else
  2085. echo "$as_me:$LINENO: result: no" >&5
  2086. echo "${ECHO_T}no" >&6
  2087. fi
  2088. rm -f conftest*
  2089. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2090. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  2091. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2092. echo $ECHO_N "(cached) $ECHO_C" >&6
  2093. else
  2094. ac_check_lib_save_LIBS=$LIBS
  2095. LIBS="-lcposix $LIBS"
  2096. cat >conftest.$ac_ext <<_ACEOF
  2097. /* confdefs.h. */
  2098. _ACEOF
  2099. cat confdefs.h >>conftest.$ac_ext
  2100. cat >>conftest.$ac_ext <<_ACEOF
  2101. /* end confdefs.h. */
  2102. /* Override any gcc2 internal prototype to avoid an error. */
  2103. #ifdef __cplusplus
  2104. extern "C"
  2105. #endif
  2106. /* We use char because int might match the return type of a gcc2
  2107. builtin and then its argument prototype would still apply. */
  2108. char strerror ();
  2109. int
  2110. main ()
  2111. {
  2112. strerror ();
  2113. ;
  2114. return 0;
  2115. }
  2116. _ACEOF
  2117. rm -f conftest.$ac_objext conftest$ac_exeext
  2118. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2119. (eval $ac_link) 2>conftest.er1
  2120. ac_status=$?
  2121. grep -v '^ *+' conftest.er1 >conftest.err
  2122. rm -f conftest.er1
  2123. cat conftest.err >&5
  2124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2125. (exit $ac_status); } &&
  2126. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2127. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2128. (eval $ac_try) 2>&5
  2129. ac_status=$?
  2130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2131. (exit $ac_status); }; } &&
  2132. { ac_try='test -s conftest$ac_exeext'
  2133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2134. (eval $ac_try) 2>&5
  2135. ac_status=$?
  2136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2137. (exit $ac_status); }; }; then
  2138. ac_cv_lib_cposix_strerror=yes
  2139. else
  2140. echo "$as_me: failed program was:" >&5
  2141. sed 's/^/| /' conftest.$ac_ext >&5
  2142. ac_cv_lib_cposix_strerror=no
  2143. fi
  2144. rm -f conftest.err conftest.$ac_objext \
  2145. conftest$ac_exeext conftest.$ac_ext
  2146. LIBS=$ac_check_lib_save_LIBS
  2147. fi
  2148. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2149. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2150. if test $ac_cv_lib_cposix_strerror = yes; then
  2151. LIBS="$LIBS -lcposix"
  2152. fi
  2153. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2154. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2155. if test "${ac_cv_header_stdc+set}" = set; then
  2156. echo $ECHO_N "(cached) $ECHO_C" >&6
  2157. else
  2158. cat >conftest.$ac_ext <<_ACEOF
  2159. /* confdefs.h. */
  2160. _ACEOF
  2161. cat confdefs.h >>conftest.$ac_ext
  2162. cat >>conftest.$ac_ext <<_ACEOF
  2163. /* end confdefs.h. */
  2164. #include <stdlib.h>
  2165. #include <stdarg.h>
  2166. #include <string.h>
  2167. #include <float.h>
  2168. int
  2169. main ()
  2170. {
  2171. ;
  2172. return 0;
  2173. }
  2174. _ACEOF
  2175. rm -f conftest.$ac_objext
  2176. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2177. (eval $ac_compile) 2>conftest.er1
  2178. ac_status=$?
  2179. grep -v '^ *+' conftest.er1 >conftest.err
  2180. rm -f conftest.er1
  2181. cat conftest.err >&5
  2182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2183. (exit $ac_status); } &&
  2184. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2185. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2186. (eval $ac_try) 2>&5
  2187. ac_status=$?
  2188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2189. (exit $ac_status); }; } &&
  2190. { ac_try='test -s conftest.$ac_objext'
  2191. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2192. (eval $ac_try) 2>&5
  2193. ac_status=$?
  2194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2195. (exit $ac_status); }; }; then
  2196. ac_cv_header_stdc=yes
  2197. else
  2198. echo "$as_me: failed program was:" >&5
  2199. sed 's/^/| /' conftest.$ac_ext >&5
  2200. ac_cv_header_stdc=no
  2201. fi
  2202. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2203. if test $ac_cv_header_stdc = yes; then
  2204. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2205. cat >conftest.$ac_ext <<_ACEOF
  2206. /* confdefs.h. */
  2207. _ACEOF
  2208. cat confdefs.h >>conftest.$ac_ext
  2209. cat >>conftest.$ac_ext <<_ACEOF
  2210. /* end confdefs.h. */
  2211. #include <string.h>
  2212. _ACEOF
  2213. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2214. $EGREP "memchr" >/dev/null 2>&1; then
  2215. :
  2216. else
  2217. ac_cv_header_stdc=no
  2218. fi
  2219. rm -f conftest*
  2220. fi
  2221. if test $ac_cv_header_stdc = yes; then
  2222. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2223. cat >conftest.$ac_ext <<_ACEOF
  2224. /* confdefs.h. */
  2225. _ACEOF
  2226. cat confdefs.h >>conftest.$ac_ext
  2227. cat >>conftest.$ac_ext <<_ACEOF
  2228. /* end confdefs.h. */
  2229. #include <stdlib.h>
  2230. _ACEOF
  2231. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2232. $EGREP "free" >/dev/null 2>&1; then
  2233. :
  2234. else
  2235. ac_cv_header_stdc=no
  2236. fi
  2237. rm -f conftest*
  2238. fi
  2239. if test $ac_cv_header_stdc = yes; then
  2240. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2241. if test "$cross_compiling" = yes; then
  2242. :
  2243. else
  2244. cat >conftest.$ac_ext <<_ACEOF
  2245. /* confdefs.h. */
  2246. _ACEOF
  2247. cat confdefs.h >>conftest.$ac_ext
  2248. cat >>conftest.$ac_ext <<_ACEOF
  2249. /* end confdefs.h. */
  2250. #include <ctype.h>
  2251. #if ((' ' & 0x0FF) == 0x020)
  2252. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2253. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2254. #else
  2255. # define ISLOWER(c) \
  2256. (('a' <= (c) && (c) <= 'i') \
  2257. || ('j' <= (c) && (c) <= 'r') \
  2258. || ('s' <= (c) && (c) <= 'z'))
  2259. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2260. #endif
  2261. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2262. int
  2263. main ()
  2264. {
  2265. int i;
  2266. for (i = 0; i < 256; i++)
  2267. if (XOR (islower (i), ISLOWER (i))
  2268. || toupper (i) != TOUPPER (i))
  2269. exit(2);
  2270. exit (0);
  2271. }
  2272. _ACEOF
  2273. rm -f conftest$ac_exeext
  2274. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2275. (eval $ac_link) 2>&5
  2276. ac_status=$?
  2277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2278. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2279. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2280. (eval $ac_try) 2>&5
  2281. ac_status=$?
  2282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2283. (exit $ac_status); }; }; then
  2284. :
  2285. else
  2286. echo "$as_me: program exited with status $ac_status" >&5
  2287. echo "$as_me: failed program was:" >&5
  2288. sed 's/^/| /' conftest.$ac_ext >&5
  2289. ( exit $ac_status )
  2290. ac_cv_header_stdc=no
  2291. fi
  2292. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2293. fi
  2294. fi
  2295. fi
  2296. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2297. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2298. if test $ac_cv_header_stdc = yes; then
  2299. cat >>confdefs.h <<\_ACEOF
  2300. #define STDC_HEADERS 1
  2301. _ACEOF
  2302. fi
  2303. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2304. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2305. inttypes.h stdint.h unistd.h
  2306. do
  2307. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2308. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2309. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2310. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2311. echo $ECHO_N "(cached) $ECHO_C" >&6
  2312. else
  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. $ac_includes_default
  2320. #include <$ac_header>
  2321. _ACEOF
  2322. rm -f conftest.$ac_objext
  2323. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2324. (eval $ac_compile) 2>conftest.er1
  2325. ac_status=$?
  2326. grep -v '^ *+' conftest.er1 >conftest.err
  2327. rm -f conftest.er1
  2328. cat conftest.err >&5
  2329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2330. (exit $ac_status); } &&
  2331. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2332. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2333. (eval $ac_try) 2>&5
  2334. ac_status=$?
  2335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2336. (exit $ac_status); }; } &&
  2337. { ac_try='test -s conftest.$ac_objext'
  2338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2339. (eval $ac_try) 2>&5
  2340. ac_status=$?
  2341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2342. (exit $ac_status); }; }; then
  2343. eval "$as_ac_Header=yes"
  2344. else
  2345. echo "$as_me: failed program was:" >&5
  2346. sed 's/^/| /' conftest.$ac_ext >&5
  2347. eval "$as_ac_Header=no"
  2348. fi
  2349. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2350. fi
  2351. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2352. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2353. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2354. cat >>confdefs.h <<_ACEOF
  2355. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2356. _ACEOF
  2357. fi
  2358. done
  2359. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2360. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2361. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2362. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2363. echo $ECHO_N "(cached) $ECHO_C" >&6
  2364. fi
  2365. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2366. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2367. else
  2368. # Is the header compilable?
  2369. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2370. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2371. cat >conftest.$ac_ext <<_ACEOF
  2372. /* confdefs.h. */
  2373. _ACEOF
  2374. cat confdefs.h >>conftest.$ac_ext
  2375. cat >>conftest.$ac_ext <<_ACEOF
  2376. /* end confdefs.h. */
  2377. $ac_includes_default
  2378. #include <minix/config.h>
  2379. _ACEOF
  2380. rm -f conftest.$ac_objext
  2381. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2382. (eval $ac_compile) 2>conftest.er1
  2383. ac_status=$?
  2384. grep -v '^ *+' conftest.er1 >conftest.err
  2385. rm -f conftest.er1
  2386. cat conftest.err >&5
  2387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2388. (exit $ac_status); } &&
  2389. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2390. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2391. (eval $ac_try) 2>&5
  2392. ac_status=$?
  2393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2394. (exit $ac_status); }; } &&
  2395. { ac_try='test -s conftest.$ac_objext'
  2396. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2397. (eval $ac_try) 2>&5
  2398. ac_status=$?
  2399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2400. (exit $ac_status); }; }; then
  2401. ac_header_compiler=yes
  2402. else
  2403. echo "$as_me: failed program was:" >&5
  2404. sed 's/^/| /' conftest.$ac_ext >&5
  2405. ac_header_compiler=no
  2406. fi
  2407. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2408. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2409. echo "${ECHO_T}$ac_header_compiler" >&6
  2410. # Is the header present?
  2411. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2412. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2413. cat >conftest.$ac_ext <<_ACEOF
  2414. /* confdefs.h. */
  2415. _ACEOF
  2416. cat confdefs.h >>conftest.$ac_ext
  2417. cat >>conftest.$ac_ext <<_ACEOF
  2418. /* end confdefs.h. */
  2419. #include <minix/config.h>
  2420. _ACEOF
  2421. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2422. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2423. ac_status=$?
  2424. grep -v '^ *+' conftest.er1 >conftest.err
  2425. rm -f conftest.er1
  2426. cat conftest.err >&5
  2427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2428. (exit $ac_status); } >/dev/null; then
  2429. if test -s conftest.err; then
  2430. ac_cpp_err=$ac_c_preproc_warn_flag
  2431. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2432. else
  2433. ac_cpp_err=
  2434. fi
  2435. else
  2436. ac_cpp_err=yes
  2437. fi
  2438. if test -z "$ac_cpp_err"; then
  2439. ac_header_preproc=yes
  2440. else
  2441. echo "$as_me: failed program was:" >&5
  2442. sed 's/^/| /' conftest.$ac_ext >&5
  2443. ac_header_preproc=no
  2444. fi
  2445. rm -f conftest.err conftest.$ac_ext
  2446. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2447. echo "${ECHO_T}$ac_header_preproc" >&6
  2448. # So? What about this header?
  2449. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2450. yes:no: )
  2451. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2452. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2453. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2454. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2455. ac_header_preproc=yes
  2456. ;;
  2457. no:yes:* )
  2458. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2459. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2460. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2461. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2462. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2463. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2464. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2465. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2466. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2467. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2468. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2469. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2470. (
  2471. cat <<\_ASBOX
  2472. ## ------------------------------------------ ##
  2473. ## Report this to the AC_PACKAGE_NAME lists. ##
  2474. ## ------------------------------------------ ##
  2475. _ASBOX
  2476. ) |
  2477. sed "s/^/$as_me: WARNING: /" >&2
  2478. ;;
  2479. esac
  2480. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2481. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2482. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2483. echo $ECHO_N "(cached) $ECHO_C" >&6
  2484. else
  2485. ac_cv_header_minix_config_h=$ac_header_preproc
  2486. fi
  2487. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2488. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2489. fi
  2490. if test $ac_cv_header_minix_config_h = yes; then
  2491. MINIX=yes
  2492. else
  2493. MINIX=
  2494. fi
  2495. if test "$MINIX" = yes; then
  2496. cat >>confdefs.h <<\_ACEOF
  2497. #define _POSIX_SOURCE 1
  2498. _ACEOF
  2499. cat >>confdefs.h <<\_ACEOF
  2500. #define _POSIX_1_SOURCE 2
  2501. _ACEOF
  2502. cat >>confdefs.h <<\_ACEOF
  2503. #define _MINIX 1
  2504. _ACEOF
  2505. fi
  2506. #checkpoint
  2507. cat >confcache <<\_ACEOF
  2508. # This file is a shell script that caches the results of configure
  2509. # tests run on this system so they can be shared between configure
  2510. # scripts and configure runs, see configure's option --config-cache.
  2511. # It is not useful on other systems. If it contains results you don't
  2512. # want to keep, you may remove or edit it.
  2513. #
  2514. # config.status only pays attention to the cache file if you give it
  2515. # the --recheck option to rerun configure.
  2516. #
  2517. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2518. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2519. # following values.
  2520. _ACEOF
  2521. # The following way of writing the cache mishandles newlines in values,
  2522. # but we know of no workaround that is simple, portable, and efficient.
  2523. # So, don't put newlines in cache variables' values.
  2524. # Ultrix sh set writes to stderr and can't be redirected directly,
  2525. # and sets the high bit in the cache file unless we assign to the vars.
  2526. {
  2527. (set) 2>&1 |
  2528. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2529. *ac_space=\ *)
  2530. # `set' does not quote correctly, so add quotes (double-quote
  2531. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2532. sed -n \
  2533. "s/'/'\\\\''/g;
  2534. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2535. ;;
  2536. *)
  2537. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2538. sed -n \
  2539. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2540. ;;
  2541. esac;
  2542. } |
  2543. sed '
  2544. t clear
  2545. : clear
  2546. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2547. t end
  2548. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2549. : end' >>confcache
  2550. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2551. if test -w $cache_file; then
  2552. test "x$cache_file" != "x/dev/null"
  2553. cat confcache >$cache_file
  2554. else
  2555. echo "not updating unwritable cache $cache_file"
  2556. fi
  2557. fi
  2558. rm -f confcache
  2559. # Speedup compile
  2560. if test -n "$GCC" && test -z "$no_wall"; then
  2561. echo "$as_me:$LINENO: checking whether the compiler understands -Wall" >&5
  2562. echo $ECHO_N "checking whether the compiler understands -Wall... $ECHO_C" >&6
  2563. if test "${egg_cv_var_ccwall+set}" = set; then
  2564. echo $ECHO_N "(cached) $ECHO_C" >&6
  2565. else
  2566. ac_old_CFLAGS="$CFLAGS"
  2567. CFLAGS="$CFLAGS -Wall"
  2568. cat >conftest.$ac_ext <<_ACEOF
  2569. int main ()
  2570. {
  2571. return(0);
  2572. }
  2573. _ACEOF
  2574. rm -f conftest.$ac_objext
  2575. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2576. (eval $ac_compile) 2>conftest.er1
  2577. ac_status=$?
  2578. grep -v '^ *+' conftest.er1 >conftest.err
  2579. rm -f conftest.er1
  2580. cat conftest.err >&5
  2581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2582. (exit $ac_status); } &&
  2583. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2584. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2585. (eval $ac_try) 2>&5
  2586. ac_status=$?
  2587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2588. (exit $ac_status); }; } &&
  2589. { ac_try='test -s conftest.$ac_objext'
  2590. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2591. (eval $ac_try) 2>&5
  2592. ac_status=$?
  2593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2594. (exit $ac_status); }; }; then
  2595. egg_cv_var_ccwall="yes"
  2596. else
  2597. echo "$as_me: failed program was:" >&5
  2598. sed 's/^/| /' conftest.$ac_ext >&5
  2599. egg_cv_var_ccwall="no"
  2600. fi
  2601. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2602. CFLAGS="$ac_old_CFLAGS"
  2603. fi
  2604. echo "$as_me:$LINENO: result: $egg_cv_var_ccwall" >&5
  2605. echo "${ECHO_T}$egg_cv_var_ccwall" >&6
  2606. if test "$egg_cv_var_ccwall" = "yes"; then
  2607. CFLAGS="$CFLAGS -Wall"
  2608. fi
  2609. fi
  2610. if test -n "$GCC" && test -z "$no_pipe"; then
  2611. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2612. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2613. if test "${egg_cv_var_ccpipe+set}" = set; then
  2614. echo $ECHO_N "(cached) $ECHO_C" >&6
  2615. else
  2616. ac_old_CC="$CC"
  2617. CC="$CC -pipe"
  2618. cat >conftest.$ac_ext <<_ACEOF
  2619. int main ()
  2620. {
  2621. return(0);
  2622. }
  2623. _ACEOF
  2624. rm -f conftest.$ac_objext
  2625. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2626. (eval $ac_compile) 2>conftest.er1
  2627. ac_status=$?
  2628. grep -v '^ *+' conftest.er1 >conftest.err
  2629. rm -f conftest.er1
  2630. cat conftest.err >&5
  2631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2632. (exit $ac_status); } &&
  2633. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2634. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2635. (eval $ac_try) 2>&5
  2636. ac_status=$?
  2637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2638. (exit $ac_status); }; } &&
  2639. { ac_try='test -s conftest.$ac_objext'
  2640. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2641. (eval $ac_try) 2>&5
  2642. ac_status=$?
  2643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2644. (exit $ac_status); }; }; then
  2645. egg_cv_var_ccpipe="yes"
  2646. else
  2647. echo "$as_me: failed program was:" >&5
  2648. sed 's/^/| /' conftest.$ac_ext >&5
  2649. egg_cv_var_ccpipe="no"
  2650. fi
  2651. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2652. CC="$ac_old_CC"
  2653. fi
  2654. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2655. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2656. if test "$egg_cv_var_ccpipe" = "yes"; then
  2657. CC="$CC -pipe"
  2658. fi
  2659. fi
  2660. CCDEPMODE=gcc
  2661. num=`$CC -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2662. if test $num = "3"; then
  2663. CCDEPMODE=gcc3
  2664. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  2665. GCC3="-Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  2666. fi
  2667. #checkpoint
  2668. cat >confcache <<\_ACEOF
  2669. # This file is a shell script that caches the results of configure
  2670. # tests run on this system so they can be shared between configure
  2671. # scripts and configure runs, see configure's option --config-cache.
  2672. # It is not useful on other systems. If it contains results you don't
  2673. # want to keep, you may remove or edit it.
  2674. #
  2675. # config.status only pays attention to the cache file if you give it
  2676. # the --recheck option to rerun configure.
  2677. #
  2678. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2679. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2680. # following values.
  2681. _ACEOF
  2682. # The following way of writing the cache mishandles newlines in values,
  2683. # but we know of no workaround that is simple, portable, and efficient.
  2684. # So, don't put newlines in cache variables' values.
  2685. # Ultrix sh set writes to stderr and can't be redirected directly,
  2686. # and sets the high bit in the cache file unless we assign to the vars.
  2687. {
  2688. (set) 2>&1 |
  2689. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2690. *ac_space=\ *)
  2691. # `set' does not quote correctly, so add quotes (double-quote
  2692. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2693. sed -n \
  2694. "s/'/'\\\\''/g;
  2695. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2696. ;;
  2697. *)
  2698. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2699. sed -n \
  2700. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2701. ;;
  2702. esac;
  2703. } |
  2704. sed '
  2705. t clear
  2706. : clear
  2707. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2708. t end
  2709. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2710. : end' >>confcache
  2711. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2712. if test -w $cache_file; then
  2713. test "x$cache_file" != "x/dev/null"
  2714. cat confcache >$cache_file
  2715. else
  2716. echo "not updating unwritable cache $cache_file"
  2717. fi
  2718. fi
  2719. rm -f confcache
  2720. # Checks for programs
  2721. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2722. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2723. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2724. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2725. echo $ECHO_N "(cached) $ECHO_C" >&6
  2726. else
  2727. cat >conftest.make <<\_ACEOF
  2728. all:
  2729. @echo 'ac_maketemp="$(MAKE)"'
  2730. _ACEOF
  2731. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2732. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2733. if test -n "$ac_maketemp"; then
  2734. eval ac_cv_prog_make_${ac_make}_set=yes
  2735. else
  2736. eval ac_cv_prog_make_${ac_make}_set=no
  2737. fi
  2738. rm -f conftest.make
  2739. fi
  2740. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2741. echo "$as_me:$LINENO: result: yes" >&5
  2742. echo "${ECHO_T}yes" >&6
  2743. SET_MAKE=
  2744. else
  2745. echo "$as_me:$LINENO: result: no" >&5
  2746. echo "${ECHO_T}no" >&6
  2747. SET_MAKE="MAKE=${MAKE-make}"
  2748. fi
  2749. cat << 'EOF' > conftest.head
  2750. a
  2751. b
  2752. c
  2753. EOF
  2754. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2755. do
  2756. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2757. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2758. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2759. echo $ECHO_N "(cached) $ECHO_C" >&6
  2760. else
  2761. if test -n "$HEAD_1"
  2762. then
  2763. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2764. else
  2765. if test "`cat conftest.head | $ac_prog`" = "a";
  2766. then
  2767. echo "$as_me:$LINENO: result: yes" >&5
  2768. echo "${ECHO_T}yes" >&6
  2769. ac_cv_prog_HEAD_1=$ac_prog
  2770. else
  2771. echo "$as_me:$LINENO: result: no" >&5
  2772. echo "${ECHO_T}no" >&6
  2773. fi
  2774. fi
  2775. fi
  2776. test -n "$ac_cv_prog_HEAD_1" && break
  2777. done
  2778. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2779. then
  2780. cat << 'EOF' >&2
  2781. configure: error:
  2782. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2783. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2784. EOF
  2785. exit 1
  2786. fi
  2787. rm -f conftest.head
  2788. HEAD_1=$ac_cv_prog_HEAD_1
  2789. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2790. for ac_prog in gawk mawk nawk awk
  2791. do
  2792. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2793. set dummy $ac_prog; ac_word=$2
  2794. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2795. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2796. if test "${ac_cv_prog_AWK+set}" = set; then
  2797. echo $ECHO_N "(cached) $ECHO_C" >&6
  2798. else
  2799. if test -n "$AWK"; then
  2800. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2801. else
  2802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2803. for as_dir in $PATH
  2804. do
  2805. IFS=$as_save_IFS
  2806. test -z "$as_dir" && as_dir=.
  2807. for ac_exec_ext in '' $ac_executable_extensions; do
  2808. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2809. ac_cv_prog_AWK="$ac_prog"
  2810. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2811. break 2
  2812. fi
  2813. done
  2814. done
  2815. fi
  2816. fi
  2817. AWK=$ac_cv_prog_AWK
  2818. if test -n "$AWK"; then
  2819. echo "$as_me:$LINENO: result: $AWK" >&5
  2820. echo "${ECHO_T}$AWK" >&6
  2821. else
  2822. echo "$as_me:$LINENO: result: no" >&5
  2823. echo "${ECHO_T}no" >&6
  2824. fi
  2825. test -n "$AWK" && break
  2826. done
  2827. if test "${AWK-x}" = "x"
  2828. then
  2829. cat << 'EOF' >&2
  2830. configure: error:
  2831. This system seems to lack a working 'awk' command.
  2832. A working 'awk' command is required to compile Eggdrop.
  2833. EOF
  2834. exit 1
  2835. fi
  2836. # basename is needed for Tcl library and header checks
  2837. # Extract the first word of "basename", so it can be a program name with args.
  2838. set dummy basename; ac_word=$2
  2839. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2840. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2841. if test "${ac_cv_prog_BASENAME+set}" = set; then
  2842. echo $ECHO_N "(cached) $ECHO_C" >&6
  2843. else
  2844. if test -n "$BASENAME"; then
  2845. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  2846. else
  2847. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2848. for as_dir in $PATH
  2849. do
  2850. IFS=$as_save_IFS
  2851. test -z "$as_dir" && as_dir=.
  2852. for ac_exec_ext in '' $ac_executable_extensions; do
  2853. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2854. ac_cv_prog_BASENAME="basename"
  2855. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2856. break 2
  2857. fi
  2858. done
  2859. done
  2860. fi
  2861. fi
  2862. BASENAME=$ac_cv_prog_BASENAME
  2863. if test -n "$BASENAME"; then
  2864. echo "$as_me:$LINENO: result: $BASENAME" >&5
  2865. echo "${ECHO_T}$BASENAME" >&6
  2866. else
  2867. echo "$as_me:$LINENO: result: no" >&5
  2868. echo "${ECHO_T}no" >&6
  2869. fi
  2870. if test "${BASENAME-x}" = "x"
  2871. then
  2872. cat << 'EOF' >&2
  2873. configure: error:
  2874. This system seems to lack a working 'basename' command.
  2875. A working 'basename' command is required to compile Eggdrop.
  2876. EOF
  2877. exit 1
  2878. fi
  2879. # Extract the first word of "objcopy", so it can be a program name with args.
  2880. set dummy objcopy; ac_word=$2
  2881. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2882. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2883. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  2884. echo $ECHO_N "(cached) $ECHO_C" >&6
  2885. else
  2886. if test -n "$OBJCOPY"; then
  2887. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  2888. else
  2889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2890. for as_dir in $PATH
  2891. do
  2892. IFS=$as_save_IFS
  2893. test -z "$as_dir" && as_dir=.
  2894. for ac_exec_ext in '' $ac_executable_extensions; do
  2895. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2896. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  2897. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2898. break 2
  2899. fi
  2900. done
  2901. done
  2902. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  2903. fi
  2904. fi
  2905. OBJCOPY=$ac_cv_prog_OBJCOPY
  2906. if test -n "$OBJCOPY"; then
  2907. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  2908. echo "${ECHO_T}$OBJCOPY" >&6
  2909. else
  2910. echo "$as_me:$LINENO: result: no" >&5
  2911. echo "${ECHO_T}no" >&6
  2912. fi
  2913. # Extract the first word of "strip", so it can be a program name with args.
  2914. set dummy strip; ac_word=$2
  2915. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2916. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2917. if test "${ac_cv_prog_STRIP+set}" = set; then
  2918. echo $ECHO_N "(cached) $ECHO_C" >&6
  2919. else
  2920. if test -n "$STRIP"; then
  2921. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2922. else
  2923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2924. for as_dir in $PATH
  2925. do
  2926. IFS=$as_save_IFS
  2927. test -z "$as_dir" && as_dir=.
  2928. for ac_exec_ext in '' $ac_executable_extensions; do
  2929. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2930. ac_cv_prog_STRIP="strip"
  2931. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2932. break 2
  2933. fi
  2934. done
  2935. done
  2936. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  2937. fi
  2938. fi
  2939. STRIP=$ac_cv_prog_STRIP
  2940. if test -n "$STRIP"; then
  2941. echo "$as_me:$LINENO: result: $STRIP" >&5
  2942. echo "${ECHO_T}$STRIP" >&6
  2943. else
  2944. echo "$as_me:$LINENO: result: no" >&5
  2945. echo "${ECHO_T}no" >&6
  2946. fi
  2947. # Extract the first word of "uname", so it can be a program name with args.
  2948. set dummy uname; ac_word=$2
  2949. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2950. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2951. if test "${ac_cv_prog_UNAME+set}" = set; then
  2952. echo $ECHO_N "(cached) $ECHO_C" >&6
  2953. else
  2954. if test -n "$UNAME"; then
  2955. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  2956. else
  2957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2958. for as_dir in $PATH
  2959. do
  2960. IFS=$as_save_IFS
  2961. test -z "$as_dir" && as_dir=.
  2962. for ac_exec_ext in '' $ac_executable_extensions; do
  2963. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2964. ac_cv_prog_UNAME="uname"
  2965. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2966. break 2
  2967. fi
  2968. done
  2969. done
  2970. fi
  2971. fi
  2972. UNAME=$ac_cv_prog_UNAME
  2973. if test -n "$UNAME"; then
  2974. echo "$as_me:$LINENO: result: $UNAME" >&5
  2975. echo "${ECHO_T}$UNAME" >&6
  2976. else
  2977. echo "$as_me:$LINENO: result: no" >&5
  2978. echo "${ECHO_T}no" >&6
  2979. fi
  2980. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  2981. # Extract the first word of "distcc", so it can be a program name with args.
  2982. set dummy distcc; ac_word=$2
  2983. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2984. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2985. if test "${ac_cv_prog_DISTCC+set}" = set; then
  2986. echo $ECHO_N "(cached) $ECHO_C" >&6
  2987. else
  2988. if test -n "$DISTCC"; then
  2989. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  2990. else
  2991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2992. for as_dir in $PATH
  2993. do
  2994. IFS=$as_save_IFS
  2995. test -z "$as_dir" && as_dir=.
  2996. for ac_exec_ext in '' $ac_executable_extensions; do
  2997. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2998. ac_cv_prog_DISTCC="distcc"
  2999. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3000. break 2
  3001. fi
  3002. done
  3003. done
  3004. fi
  3005. fi
  3006. DISTCC=$ac_cv_prog_DISTCC
  3007. if test -n "$DISTCC"; then
  3008. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3009. echo "${ECHO_T}$DISTCC" >&6
  3010. else
  3011. echo "$as_me:$LINENO: result: no" >&5
  3012. echo "${ECHO_T}no" >&6
  3013. fi
  3014. # Test the os and set the module linking settings
  3015. EGG_CYGWIN=no
  3016. echo "$as_me:$LINENO: checking system type" >&5
  3017. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3018. if test "${egg_cv_var_system_type+set}" = set; then
  3019. echo $ECHO_N "(cached) $ECHO_C" >&6
  3020. else
  3021. egg_cv_var_system_type=`$UNAME -s`
  3022. fi
  3023. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3024. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3025. echo "$as_me:$LINENO: checking system release" >&5
  3026. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3027. if test "${egg_cv_var_system_release+set}" = set; then
  3028. echo $ECHO_N "(cached) $ECHO_C" >&6
  3029. else
  3030. egg_cv_var_system_release=`$UNAME -r`
  3031. fi
  3032. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3033. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3034. case "$egg_cv_var_system_type" in
  3035. BSD/OS)
  3036. ;;
  3037. CYGWI*)
  3038. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3039. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3040. WIN32FLAGS=
  3041. cat >conftest.$ac_ext <<_ACEOF
  3042. /* confdefs.h. */
  3043. _ACEOF
  3044. cat confdefs.h >>conftest.$ac_ext
  3045. cat >>conftest.$ac_ext <<_ACEOF
  3046. /* end confdefs.h. */
  3047. int
  3048. main ()
  3049. {
  3050. #ifndef WIN32
  3051. # ifndef _WIN32
  3052. # error WIN32 or _WIN32 not defined
  3053. # endif
  3054. #endif
  3055. ;
  3056. return 0;
  3057. }
  3058. _ACEOF
  3059. rm -f conftest.$ac_objext
  3060. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3061. (eval $ac_compile) 2>conftest.er1
  3062. ac_status=$?
  3063. grep -v '^ *+' conftest.er1 >conftest.err
  3064. rm -f conftest.er1
  3065. cat conftest.err >&5
  3066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3067. (exit $ac_status); } &&
  3068. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3069. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3070. (eval $ac_try) 2>&5
  3071. ac_status=$?
  3072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3073. (exit $ac_status); }; } &&
  3074. { ac_try='test -s conftest.$ac_objext'
  3075. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3076. (eval $ac_try) 2>&5
  3077. ac_status=$?
  3078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3079. (exit $ac_status); }; }; then
  3080. echo "$as_me:$LINENO: result: present by default" >&5
  3081. echo "${ECHO_T}present by default" >&6
  3082. else
  3083. echo "$as_me: failed program was:" >&5
  3084. sed 's/^/| /' conftest.$ac_ext >&5
  3085. ac_compile_save="$ac_compile"
  3086. save_CC="$CC"
  3087. ac_compile="$ac_compile -mwin32"
  3088. CC="$CC -mwin32"
  3089. cat >conftest.$ac_ext <<_ACEOF
  3090. /* confdefs.h. */
  3091. _ACEOF
  3092. cat confdefs.h >>conftest.$ac_ext
  3093. cat >>conftest.$ac_ext <<_ACEOF
  3094. /* end confdefs.h. */
  3095. int
  3096. main ()
  3097. {
  3098. #ifndef WIN32
  3099. # ifndef _WIN32
  3100. # error WIN32 or _WIN32 not defined
  3101. # endif
  3102. #endif
  3103. ;
  3104. return 0;
  3105. }
  3106. _ACEOF
  3107. rm -f conftest.$ac_objext
  3108. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3109. (eval $ac_compile) 2>conftest.er1
  3110. ac_status=$?
  3111. grep -v '^ *+' conftest.er1 >conftest.err
  3112. rm -f conftest.er1
  3113. cat conftest.err >&5
  3114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3115. (exit $ac_status); } &&
  3116. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3117. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3118. (eval $ac_try) 2>&5
  3119. ac_status=$?
  3120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3121. (exit $ac_status); }; } &&
  3122. { ac_try='test -s conftest.$ac_objext'
  3123. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3124. (eval $ac_try) 2>&5
  3125. ac_status=$?
  3126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3127. (exit $ac_status); }; }; then
  3128. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3129. echo "${ECHO_T}found via -mwin32" >&6
  3130. ac_compile="$ac_compile_save"
  3131. CC="$save_CC"
  3132. WIN32FLAGS="-mwin32"
  3133. else
  3134. echo "$as_me: failed program was:" >&5
  3135. sed 's/^/| /' conftest.$ac_ext >&5
  3136. ac_compile="$ac_compile_save"
  3137. CC="$save_CC"
  3138. echo "$as_me:$LINENO: result: not found" >&5
  3139. echo "${ECHO_T}not found" >&6
  3140. fi
  3141. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3142. fi
  3143. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3144. CC="$CC $WIN32FLAGS"
  3145. EGG_CYGWIN="yes"
  3146. if test $EGG_CYGWIN = "yes"; then
  3147. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3148. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3149. if test -r /usr/lib/binmode.o; then
  3150. echo "$as_me:$LINENO: result: yes" >&5
  3151. echo "${ECHO_T}yes" >&6
  3152. LIBS="$LIBS /usr/lib/binmode.o"
  3153. else
  3154. echo "$as_me:$LINENO: result: no" >&5
  3155. echo "${ECHO_T}no" >&6
  3156. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3157. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3158. fi
  3159. fi
  3160. cat >>confdefs.h <<\_ACEOF
  3161. #define CYGWIN_HACKS 1
  3162. _ACEOF
  3163. cat >>confdefs.h <<\_ACEOF
  3164. #define WIN32_LEAN_AND_MEAN 1
  3165. _ACEOF
  3166. ;;
  3167. IRIX)
  3168. ;;
  3169. Ultrix)
  3170. SHELL=/bin/sh5
  3171. ;;
  3172. SINIX*)
  3173. ;;
  3174. BeOS)
  3175. ;;
  3176. Linux)
  3177. ;;
  3178. Lynx)
  3179. ;;
  3180. QNX)
  3181. ;;
  3182. OSF1)
  3183. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3184. V*)
  3185. if test "$AWK" = "gawk"
  3186. then
  3187. AWK=awk
  3188. fi
  3189. ;;
  3190. 1.0|1.1|1.2)
  3191. cat >>confdefs.h <<\_ACEOF
  3192. #define OSF1_HACKS 1
  3193. _ACEOF
  3194. ;;
  3195. 1.*)
  3196. cat >>confdefs.h <<\_ACEOF
  3197. #define OSF1_HACKS 1
  3198. _ACEOF
  3199. ;;
  3200. *)
  3201. ;;
  3202. esac
  3203. cat >>confdefs.h <<\_ACEOF
  3204. #define STOP_UAC 1
  3205. _ACEOF
  3206. cat >>confdefs.h <<\_ACEOF
  3207. #define BROKEN_SNPRINTF 1
  3208. _ACEOF
  3209. ;;
  3210. SunOS)
  3211. ;;
  3212. *BSD)
  3213. # FreeBSD/OpenBSD/NetBSD
  3214. ;;
  3215. *)
  3216. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3217. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3218. if test -r /mach
  3219. then
  3220. echo "$as_me:$LINENO: result: yes" >&5
  3221. echo "${ECHO_T}yes" >&6
  3222. cat >>confdefs.h <<\_ACEOF
  3223. #define BORGCUBES 1
  3224. _ACEOF
  3225. else
  3226. echo "$as_me:$LINENO: result: no" >&5
  3227. echo "${ECHO_T}no" >&6
  3228. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3229. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3230. if test -r /cmds
  3231. then
  3232. echo "$as_me:$LINENO: result: yes" >&5
  3233. echo "${ECHO_T}yes" >&6
  3234. else
  3235. echo "$as_me:$LINENO: result: no" >&5
  3236. echo "${ECHO_T}no" >&6
  3237. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3238. echo "${ECHO_T}Something unknown!" >&6
  3239. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3240. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3241. fi
  3242. fi
  3243. ;;
  3244. esac
  3245. dns_reslib_avail="true"
  3246. echo "$as_me:$LINENO: checking for res_init" >&5
  3247. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3248. if test "${ac_cv_func_res_init+set}" = set; then
  3249. echo $ECHO_N "(cached) $ECHO_C" >&6
  3250. else
  3251. cat >conftest.$ac_ext <<_ACEOF
  3252. /* confdefs.h. */
  3253. _ACEOF
  3254. cat confdefs.h >>conftest.$ac_ext
  3255. cat >>conftest.$ac_ext <<_ACEOF
  3256. /* end confdefs.h. */
  3257. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3258. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3259. #define res_init innocuous_res_init
  3260. /* System header to define __stub macros and hopefully few prototypes,
  3261. which can conflict with char res_init (); below.
  3262. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3263. <limits.h> exists even on freestanding compilers. */
  3264. #ifdef __STDC__
  3265. # include <limits.h>
  3266. #else
  3267. # include <assert.h>
  3268. #endif
  3269. #undef res_init
  3270. /* Override any gcc2 internal prototype to avoid an error. */
  3271. #ifdef __cplusplus
  3272. extern "C"
  3273. {
  3274. #endif
  3275. /* We use char because int might match the return type of a gcc2
  3276. builtin and then its argument prototype would still apply. */
  3277. char res_init ();
  3278. /* The GNU C library defines this for functions which it implements
  3279. to always fail with ENOSYS. Some functions are actually named
  3280. something starting with __ and the normal name is an alias. */
  3281. #if defined (__stub_res_init) || defined (__stub___res_init)
  3282. choke me
  3283. #else
  3284. char (*f) () = res_init;
  3285. #endif
  3286. #ifdef __cplusplus
  3287. }
  3288. #endif
  3289. int
  3290. main ()
  3291. {
  3292. return f != res_init;
  3293. ;
  3294. return 0;
  3295. }
  3296. _ACEOF
  3297. rm -f conftest.$ac_objext conftest$ac_exeext
  3298. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3299. (eval $ac_link) 2>conftest.er1
  3300. ac_status=$?
  3301. grep -v '^ *+' conftest.er1 >conftest.err
  3302. rm -f conftest.er1
  3303. cat conftest.err >&5
  3304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3305. (exit $ac_status); } &&
  3306. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3307. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3308. (eval $ac_try) 2>&5
  3309. ac_status=$?
  3310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3311. (exit $ac_status); }; } &&
  3312. { ac_try='test -s conftest$ac_exeext'
  3313. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3314. (eval $ac_try) 2>&5
  3315. ac_status=$?
  3316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3317. (exit $ac_status); }; }; then
  3318. ac_cv_func_res_init=yes
  3319. else
  3320. echo "$as_me: failed program was:" >&5
  3321. sed 's/^/| /' conftest.$ac_ext >&5
  3322. ac_cv_func_res_init=no
  3323. fi
  3324. rm -f conftest.err conftest.$ac_objext \
  3325. conftest$ac_exeext conftest.$ac_ext
  3326. fi
  3327. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3328. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3329. if test $ac_cv_func_res_init = yes; then
  3330. :
  3331. else
  3332. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3333. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3334. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3335. echo $ECHO_N "(cached) $ECHO_C" >&6
  3336. else
  3337. ac_check_lib_save_LIBS=$LIBS
  3338. LIBS="-lresolv $LIBS"
  3339. cat >conftest.$ac_ext <<_ACEOF
  3340. /* confdefs.h. */
  3341. _ACEOF
  3342. cat confdefs.h >>conftest.$ac_ext
  3343. cat >>conftest.$ac_ext <<_ACEOF
  3344. /* end confdefs.h. */
  3345. /* Override any gcc2 internal prototype to avoid an error. */
  3346. #ifdef __cplusplus
  3347. extern "C"
  3348. #endif
  3349. /* We use char because int might match the return type of a gcc2
  3350. builtin and then its argument prototype would still apply. */
  3351. char res_init ();
  3352. int
  3353. main ()
  3354. {
  3355. res_init ();
  3356. ;
  3357. return 0;
  3358. }
  3359. _ACEOF
  3360. rm -f conftest.$ac_objext conftest$ac_exeext
  3361. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3362. (eval $ac_link) 2>conftest.er1
  3363. ac_status=$?
  3364. grep -v '^ *+' conftest.er1 >conftest.err
  3365. rm -f conftest.er1
  3366. cat conftest.err >&5
  3367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3368. (exit $ac_status); } &&
  3369. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3370. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3371. (eval $ac_try) 2>&5
  3372. ac_status=$?
  3373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3374. (exit $ac_status); }; } &&
  3375. { ac_try='test -s conftest$ac_exeext'
  3376. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3377. (eval $ac_try) 2>&5
  3378. ac_status=$?
  3379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3380. (exit $ac_status); }; }; then
  3381. ac_cv_lib_resolv_res_init=yes
  3382. else
  3383. echo "$as_me: failed program was:" >&5
  3384. sed 's/^/| /' conftest.$ac_ext >&5
  3385. ac_cv_lib_resolv_res_init=no
  3386. fi
  3387. rm -f conftest.err conftest.$ac_objext \
  3388. conftest$ac_exeext conftest.$ac_ext
  3389. LIBS=$ac_check_lib_save_LIBS
  3390. fi
  3391. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3392. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3393. if test $ac_cv_lib_resolv_res_init = yes; then
  3394. RESLIB="-lresolv"
  3395. else
  3396. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3397. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3398. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3399. echo $ECHO_N "(cached) $ECHO_C" >&6
  3400. else
  3401. ac_check_lib_save_LIBS=$LIBS
  3402. LIBS="-lbind $LIBS"
  3403. cat >conftest.$ac_ext <<_ACEOF
  3404. /* confdefs.h. */
  3405. _ACEOF
  3406. cat confdefs.h >>conftest.$ac_ext
  3407. cat >>conftest.$ac_ext <<_ACEOF
  3408. /* end confdefs.h. */
  3409. /* Override any gcc2 internal prototype to avoid an error. */
  3410. #ifdef __cplusplus
  3411. extern "C"
  3412. #endif
  3413. /* We use char because int might match the return type of a gcc2
  3414. builtin and then its argument prototype would still apply. */
  3415. char res_init ();
  3416. int
  3417. main ()
  3418. {
  3419. res_init ();
  3420. ;
  3421. return 0;
  3422. }
  3423. _ACEOF
  3424. rm -f conftest.$ac_objext conftest$ac_exeext
  3425. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3426. (eval $ac_link) 2>conftest.er1
  3427. ac_status=$?
  3428. grep -v '^ *+' conftest.er1 >conftest.err
  3429. rm -f conftest.er1
  3430. cat conftest.err >&5
  3431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3432. (exit $ac_status); } &&
  3433. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3434. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3435. (eval $ac_try) 2>&5
  3436. ac_status=$?
  3437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3438. (exit $ac_status); }; } &&
  3439. { ac_try='test -s conftest$ac_exeext'
  3440. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3441. (eval $ac_try) 2>&5
  3442. ac_status=$?
  3443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3444. (exit $ac_status); }; }; then
  3445. ac_cv_lib_bind_res_init=yes
  3446. else
  3447. echo "$as_me: failed program was:" >&5
  3448. sed 's/^/| /' conftest.$ac_ext >&5
  3449. ac_cv_lib_bind_res_init=no
  3450. fi
  3451. rm -f conftest.err conftest.$ac_objext \
  3452. conftest$ac_exeext conftest.$ac_ext
  3453. LIBS=$ac_check_lib_save_LIBS
  3454. fi
  3455. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3456. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3457. if test $ac_cv_lib_bind_res_init = yes; then
  3458. RESLIB="-lbind"
  3459. else
  3460. dns_reslib_avail="false";
  3461. fi
  3462. fi
  3463. fi
  3464. if test "${dns_reslib_avail}" = false; then
  3465. dns_reslib_avail="true"
  3466. echo "$as_me:$LINENO: checking for __res_init" >&5
  3467. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3468. if test "${ac_cv_func___res_init+set}" = set; then
  3469. echo $ECHO_N "(cached) $ECHO_C" >&6
  3470. else
  3471. cat >conftest.$ac_ext <<_ACEOF
  3472. /* confdefs.h. */
  3473. _ACEOF
  3474. cat confdefs.h >>conftest.$ac_ext
  3475. cat >>conftest.$ac_ext <<_ACEOF
  3476. /* end confdefs.h. */
  3477. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3478. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3479. #define __res_init innocuous___res_init
  3480. /* System header to define __stub macros and hopefully few prototypes,
  3481. which can conflict with char __res_init (); below.
  3482. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3483. <limits.h> exists even on freestanding compilers. */
  3484. #ifdef __STDC__
  3485. # include <limits.h>
  3486. #else
  3487. # include <assert.h>
  3488. #endif
  3489. #undef __res_init
  3490. /* Override any gcc2 internal prototype to avoid an error. */
  3491. #ifdef __cplusplus
  3492. extern "C"
  3493. {
  3494. #endif
  3495. /* We use char because int might match the return type of a gcc2
  3496. builtin and then its argument prototype would still apply. */
  3497. char __res_init ();
  3498. /* The GNU C library defines this for functions which it implements
  3499. to always fail with ENOSYS. Some functions are actually named
  3500. something starting with __ and the normal name is an alias. */
  3501. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3502. choke me
  3503. #else
  3504. char (*f) () = __res_init;
  3505. #endif
  3506. #ifdef __cplusplus
  3507. }
  3508. #endif
  3509. int
  3510. main ()
  3511. {
  3512. return f != __res_init;
  3513. ;
  3514. return 0;
  3515. }
  3516. _ACEOF
  3517. rm -f conftest.$ac_objext conftest$ac_exeext
  3518. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3519. (eval $ac_link) 2>conftest.er1
  3520. ac_status=$?
  3521. grep -v '^ *+' conftest.er1 >conftest.err
  3522. rm -f conftest.er1
  3523. cat conftest.err >&5
  3524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3525. (exit $ac_status); } &&
  3526. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3527. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3528. (eval $ac_try) 2>&5
  3529. ac_status=$?
  3530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3531. (exit $ac_status); }; } &&
  3532. { ac_try='test -s conftest$ac_exeext'
  3533. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3534. (eval $ac_try) 2>&5
  3535. ac_status=$?
  3536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3537. (exit $ac_status); }; }; then
  3538. ac_cv_func___res_init=yes
  3539. else
  3540. echo "$as_me: failed program was:" >&5
  3541. sed 's/^/| /' conftest.$ac_ext >&5
  3542. ac_cv_func___res_init=no
  3543. fi
  3544. rm -f conftest.err conftest.$ac_objext \
  3545. conftest$ac_exeext conftest.$ac_ext
  3546. fi
  3547. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3548. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3549. if test $ac_cv_func___res_init = yes; then
  3550. :
  3551. else
  3552. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3553. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3554. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3555. echo $ECHO_N "(cached) $ECHO_C" >&6
  3556. else
  3557. ac_check_lib_save_LIBS=$LIBS
  3558. LIBS="-lresolv $LIBS"
  3559. cat >conftest.$ac_ext <<_ACEOF
  3560. /* confdefs.h. */
  3561. _ACEOF
  3562. cat confdefs.h >>conftest.$ac_ext
  3563. cat >>conftest.$ac_ext <<_ACEOF
  3564. /* end confdefs.h. */
  3565. /* Override any gcc2 internal prototype to avoid an error. */
  3566. #ifdef __cplusplus
  3567. extern "C"
  3568. #endif
  3569. /* We use char because int might match the return type of a gcc2
  3570. builtin and then its argument prototype would still apply. */
  3571. char __res_init ();
  3572. int
  3573. main ()
  3574. {
  3575. __res_init ();
  3576. ;
  3577. return 0;
  3578. }
  3579. _ACEOF
  3580. rm -f conftest.$ac_objext conftest$ac_exeext
  3581. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3582. (eval $ac_link) 2>conftest.er1
  3583. ac_status=$?
  3584. grep -v '^ *+' conftest.er1 >conftest.err
  3585. rm -f conftest.er1
  3586. cat conftest.err >&5
  3587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3588. (exit $ac_status); } &&
  3589. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3590. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3591. (eval $ac_try) 2>&5
  3592. ac_status=$?
  3593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3594. (exit $ac_status); }; } &&
  3595. { ac_try='test -s conftest$ac_exeext'
  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); }; }; then
  3601. ac_cv_lib_resolv___res_init=yes
  3602. else
  3603. echo "$as_me: failed program was:" >&5
  3604. sed 's/^/| /' conftest.$ac_ext >&5
  3605. ac_cv_lib_resolv___res_init=no
  3606. fi
  3607. rm -f conftest.err conftest.$ac_objext \
  3608. conftest$ac_exeext conftest.$ac_ext
  3609. LIBS=$ac_check_lib_save_LIBS
  3610. fi
  3611. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3612. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3613. if test $ac_cv_lib_resolv___res_init = yes; then
  3614. RESLIB="-lresolv"
  3615. else
  3616. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3617. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3618. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3619. echo $ECHO_N "(cached) $ECHO_C" >&6
  3620. else
  3621. ac_check_lib_save_LIBS=$LIBS
  3622. LIBS="-lbind $LIBS"
  3623. cat >conftest.$ac_ext <<_ACEOF
  3624. /* confdefs.h. */
  3625. _ACEOF
  3626. cat confdefs.h >>conftest.$ac_ext
  3627. cat >>conftest.$ac_ext <<_ACEOF
  3628. /* end confdefs.h. */
  3629. /* Override any gcc2 internal prototype to avoid an error. */
  3630. #ifdef __cplusplus
  3631. extern "C"
  3632. #endif
  3633. /* We use char because int might match the return type of a gcc2
  3634. builtin and then its argument prototype would still apply. */
  3635. char __res_init ();
  3636. int
  3637. main ()
  3638. {
  3639. __res_init ();
  3640. ;
  3641. return 0;
  3642. }
  3643. _ACEOF
  3644. rm -f conftest.$ac_objext conftest$ac_exeext
  3645. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3646. (eval $ac_link) 2>conftest.er1
  3647. ac_status=$?
  3648. grep -v '^ *+' conftest.er1 >conftest.err
  3649. rm -f conftest.er1
  3650. cat conftest.err >&5
  3651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3652. (exit $ac_status); } &&
  3653. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3654. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3655. (eval $ac_try) 2>&5
  3656. ac_status=$?
  3657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3658. (exit $ac_status); }; } &&
  3659. { ac_try='test -s conftest$ac_exeext'
  3660. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3661. (eval $ac_try) 2>&5
  3662. ac_status=$?
  3663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3664. (exit $ac_status); }; }; then
  3665. ac_cv_lib_bind___res_init=yes
  3666. else
  3667. echo "$as_me: failed program was:" >&5
  3668. sed 's/^/| /' conftest.$ac_ext >&5
  3669. ac_cv_lib_bind___res_init=no
  3670. fi
  3671. rm -f conftest.err conftest.$ac_objext \
  3672. conftest$ac_exeext conftest.$ac_ext
  3673. LIBS=$ac_check_lib_save_LIBS
  3674. fi
  3675. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3676. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3677. if test $ac_cv_lib_bind___res_init = yes; then
  3678. RESLIB="-lbind"
  3679. else
  3680. dns_reslib_avail="false";
  3681. fi
  3682. fi
  3683. fi
  3684. fi
  3685. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3686. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3687. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3688. echo $ECHO_N "(cached) $ECHO_C" >&6
  3689. else
  3690. cat >conftest.$ac_ext <<_ACEOF
  3691. /* confdefs.h. */
  3692. _ACEOF
  3693. cat confdefs.h >>conftest.$ac_ext
  3694. cat >>conftest.$ac_ext <<_ACEOF
  3695. /* end confdefs.h. */
  3696. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3697. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3698. #define res_mkquery innocuous_res_mkquery
  3699. /* System header to define __stub macros and hopefully few prototypes,
  3700. which can conflict with char res_mkquery (); below.
  3701. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3702. <limits.h> exists even on freestanding compilers. */
  3703. #ifdef __STDC__
  3704. # include <limits.h>
  3705. #else
  3706. # include <assert.h>
  3707. #endif
  3708. #undef res_mkquery
  3709. /* Override any gcc2 internal prototype to avoid an error. */
  3710. #ifdef __cplusplus
  3711. extern "C"
  3712. {
  3713. #endif
  3714. /* We use char because int might match the return type of a gcc2
  3715. builtin and then its argument prototype would still apply. */
  3716. char res_mkquery ();
  3717. /* The GNU C library defines this for functions which it implements
  3718. to always fail with ENOSYS. Some functions are actually named
  3719. something starting with __ and the normal name is an alias. */
  3720. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3721. choke me
  3722. #else
  3723. char (*f) () = res_mkquery;
  3724. #endif
  3725. #ifdef __cplusplus
  3726. }
  3727. #endif
  3728. int
  3729. main ()
  3730. {
  3731. return f != res_mkquery;
  3732. ;
  3733. return 0;
  3734. }
  3735. _ACEOF
  3736. rm -f conftest.$ac_objext conftest$ac_exeext
  3737. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3738. (eval $ac_link) 2>conftest.er1
  3739. ac_status=$?
  3740. grep -v '^ *+' conftest.er1 >conftest.err
  3741. rm -f conftest.er1
  3742. cat conftest.err >&5
  3743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3744. (exit $ac_status); } &&
  3745. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3747. (eval $ac_try) 2>&5
  3748. ac_status=$?
  3749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3750. (exit $ac_status); }; } &&
  3751. { ac_try='test -s conftest$ac_exeext'
  3752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3753. (eval $ac_try) 2>&5
  3754. ac_status=$?
  3755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3756. (exit $ac_status); }; }; then
  3757. ac_cv_func_res_mkquery=yes
  3758. else
  3759. echo "$as_me: failed program was:" >&5
  3760. sed 's/^/| /' conftest.$ac_ext >&5
  3761. ac_cv_func_res_mkquery=no
  3762. fi
  3763. rm -f conftest.err conftest.$ac_objext \
  3764. conftest$ac_exeext conftest.$ac_ext
  3765. fi
  3766. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  3767. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  3768. if test $ac_cv_func_res_mkquery = yes; then
  3769. :
  3770. else
  3771. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  3772. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  3773. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  3774. echo $ECHO_N "(cached) $ECHO_C" >&6
  3775. else
  3776. ac_check_lib_save_LIBS=$LIBS
  3777. LIBS="-lresolv $LIBS"
  3778. cat >conftest.$ac_ext <<_ACEOF
  3779. /* confdefs.h. */
  3780. _ACEOF
  3781. cat confdefs.h >>conftest.$ac_ext
  3782. cat >>conftest.$ac_ext <<_ACEOF
  3783. /* end confdefs.h. */
  3784. /* Override any gcc2 internal prototype to avoid an error. */
  3785. #ifdef __cplusplus
  3786. extern "C"
  3787. #endif
  3788. /* We use char because int might match the return type of a gcc2
  3789. builtin and then its argument prototype would still apply. */
  3790. char res_mkquery ();
  3791. int
  3792. main ()
  3793. {
  3794. res_mkquery ();
  3795. ;
  3796. return 0;
  3797. }
  3798. _ACEOF
  3799. rm -f conftest.$ac_objext conftest$ac_exeext
  3800. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3801. (eval $ac_link) 2>conftest.er1
  3802. ac_status=$?
  3803. grep -v '^ *+' conftest.er1 >conftest.err
  3804. rm -f conftest.er1
  3805. cat conftest.err >&5
  3806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3807. (exit $ac_status); } &&
  3808. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3810. (eval $ac_try) 2>&5
  3811. ac_status=$?
  3812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3813. (exit $ac_status); }; } &&
  3814. { ac_try='test -s conftest$ac_exeext'
  3815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3816. (eval $ac_try) 2>&5
  3817. ac_status=$?
  3818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3819. (exit $ac_status); }; }; then
  3820. ac_cv_lib_resolv_res_mkquery=yes
  3821. else
  3822. echo "$as_me: failed program was:" >&5
  3823. sed 's/^/| /' conftest.$ac_ext >&5
  3824. ac_cv_lib_resolv_res_mkquery=no
  3825. fi
  3826. rm -f conftest.err conftest.$ac_objext \
  3827. conftest$ac_exeext conftest.$ac_ext
  3828. LIBS=$ac_check_lib_save_LIBS
  3829. fi
  3830. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  3831. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  3832. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  3833. if test "x${RESLIB}" != "x-lresolv"; then
  3834. RESLIB="${RESLIB} -lresolv"
  3835. fi
  3836. else
  3837. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  3838. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  3839. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  3840. echo $ECHO_N "(cached) $ECHO_C" >&6
  3841. else
  3842. ac_check_lib_save_LIBS=$LIBS
  3843. LIBS="-lbind $LIBS"
  3844. cat >conftest.$ac_ext <<_ACEOF
  3845. /* confdefs.h. */
  3846. _ACEOF
  3847. cat confdefs.h >>conftest.$ac_ext
  3848. cat >>conftest.$ac_ext <<_ACEOF
  3849. /* end confdefs.h. */
  3850. /* Override any gcc2 internal prototype to avoid an error. */
  3851. #ifdef __cplusplus
  3852. extern "C"
  3853. #endif
  3854. /* We use char because int might match the return type of a gcc2
  3855. builtin and then its argument prototype would still apply. */
  3856. char res_mkquery ();
  3857. int
  3858. main ()
  3859. {
  3860. res_mkquery ();
  3861. ;
  3862. return 0;
  3863. }
  3864. _ACEOF
  3865. rm -f conftest.$ac_objext conftest$ac_exeext
  3866. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3867. (eval $ac_link) 2>conftest.er1
  3868. ac_status=$?
  3869. grep -v '^ *+' conftest.er1 >conftest.err
  3870. rm -f conftest.er1
  3871. cat conftest.err >&5
  3872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3873. (exit $ac_status); } &&
  3874. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3875. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3876. (eval $ac_try) 2>&5
  3877. ac_status=$?
  3878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3879. (exit $ac_status); }; } &&
  3880. { ac_try='test -s conftest$ac_exeext'
  3881. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3882. (eval $ac_try) 2>&5
  3883. ac_status=$?
  3884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3885. (exit $ac_status); }; }; then
  3886. ac_cv_lib_bind_res_mkquery=yes
  3887. else
  3888. echo "$as_me: failed program was:" >&5
  3889. sed 's/^/| /' conftest.$ac_ext >&5
  3890. ac_cv_lib_bind_res_mkquery=no
  3891. fi
  3892. rm -f conftest.err conftest.$ac_objext \
  3893. conftest$ac_exeext conftest.$ac_ext
  3894. LIBS=$ac_check_lib_save_LIBS
  3895. fi
  3896. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  3897. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  3898. if test $ac_cv_lib_bind_res_mkquery = yes; then
  3899. if test "x${RESLIB}" != "x-lbind"; then
  3900. RESLIB="${RESLIB} -lbind"
  3901. fi
  3902. else
  3903. dns_reslib_avail="false";
  3904. fi
  3905. fi
  3906. fi
  3907. if test "${dns_reslib_avail}" = false; then
  3908. dns_reslib_avail="true"
  3909. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  3910. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  3911. if test "${ac_cv_func___res_mkquery+set}" = set; then
  3912. echo $ECHO_N "(cached) $ECHO_C" >&6
  3913. else
  3914. cat >conftest.$ac_ext <<_ACEOF
  3915. /* confdefs.h. */
  3916. _ACEOF
  3917. cat confdefs.h >>conftest.$ac_ext
  3918. cat >>conftest.$ac_ext <<_ACEOF
  3919. /* end confdefs.h. */
  3920. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  3921. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3922. #define __res_mkquery innocuous___res_mkquery
  3923. /* System header to define __stub macros and hopefully few prototypes,
  3924. which can conflict with char __res_mkquery (); below.
  3925. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3926. <limits.h> exists even on freestanding compilers. */
  3927. #ifdef __STDC__
  3928. # include <limits.h>
  3929. #else
  3930. # include <assert.h>
  3931. #endif
  3932. #undef __res_mkquery
  3933. /* Override any gcc2 internal prototype to avoid an error. */
  3934. #ifdef __cplusplus
  3935. extern "C"
  3936. {
  3937. #endif
  3938. /* We use char because int might match the return type of a gcc2
  3939. builtin and then its argument prototype would still apply. */
  3940. char __res_mkquery ();
  3941. /* The GNU C library defines this for functions which it implements
  3942. to always fail with ENOSYS. Some functions are actually named
  3943. something starting with __ and the normal name is an alias. */
  3944. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  3945. choke me
  3946. #else
  3947. char (*f) () = __res_mkquery;
  3948. #endif
  3949. #ifdef __cplusplus
  3950. }
  3951. #endif
  3952. int
  3953. main ()
  3954. {
  3955. return f != __res_mkquery;
  3956. ;
  3957. return 0;
  3958. }
  3959. _ACEOF
  3960. rm -f conftest.$ac_objext conftest$ac_exeext
  3961. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3962. (eval $ac_link) 2>conftest.er1
  3963. ac_status=$?
  3964. grep -v '^ *+' conftest.er1 >conftest.err
  3965. rm -f conftest.er1
  3966. cat conftest.err >&5
  3967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3968. (exit $ac_status); } &&
  3969. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3970. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3971. (eval $ac_try) 2>&5
  3972. ac_status=$?
  3973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3974. (exit $ac_status); }; } &&
  3975. { ac_try='test -s conftest$ac_exeext'
  3976. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3977. (eval $ac_try) 2>&5
  3978. ac_status=$?
  3979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3980. (exit $ac_status); }; }; then
  3981. ac_cv_func___res_mkquery=yes
  3982. else
  3983. echo "$as_me: failed program was:" >&5
  3984. sed 's/^/| /' conftest.$ac_ext >&5
  3985. ac_cv_func___res_mkquery=no
  3986. fi
  3987. rm -f conftest.err conftest.$ac_objext \
  3988. conftest$ac_exeext conftest.$ac_ext
  3989. fi
  3990. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  3991. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  3992. if test $ac_cv_func___res_mkquery = yes; then
  3993. :
  3994. else
  3995. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  3996. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  3997. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  3998. echo $ECHO_N "(cached) $ECHO_C" >&6
  3999. else
  4000. ac_check_lib_save_LIBS=$LIBS
  4001. LIBS="-lresolv $LIBS"
  4002. cat >conftest.$ac_ext <<_ACEOF
  4003. /* confdefs.h. */
  4004. _ACEOF
  4005. cat confdefs.h >>conftest.$ac_ext
  4006. cat >>conftest.$ac_ext <<_ACEOF
  4007. /* end confdefs.h. */
  4008. /* Override any gcc2 internal prototype to avoid an error. */
  4009. #ifdef __cplusplus
  4010. extern "C"
  4011. #endif
  4012. /* We use char because int might match the return type of a gcc2
  4013. builtin and then its argument prototype would still apply. */
  4014. char __res_mkquery ();
  4015. int
  4016. main ()
  4017. {
  4018. __res_mkquery ();
  4019. ;
  4020. return 0;
  4021. }
  4022. _ACEOF
  4023. rm -f conftest.$ac_objext conftest$ac_exeext
  4024. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4025. (eval $ac_link) 2>conftest.er1
  4026. ac_status=$?
  4027. grep -v '^ *+' conftest.er1 >conftest.err
  4028. rm -f conftest.er1
  4029. cat conftest.err >&5
  4030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4031. (exit $ac_status); } &&
  4032. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4033. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4034. (eval $ac_try) 2>&5
  4035. ac_status=$?
  4036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4037. (exit $ac_status); }; } &&
  4038. { ac_try='test -s conftest$ac_exeext'
  4039. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4040. (eval $ac_try) 2>&5
  4041. ac_status=$?
  4042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4043. (exit $ac_status); }; }; then
  4044. ac_cv_lib_resolv___res_mkquery=yes
  4045. else
  4046. echo "$as_me: failed program was:" >&5
  4047. sed 's/^/| /' conftest.$ac_ext >&5
  4048. ac_cv_lib_resolv___res_mkquery=no
  4049. fi
  4050. rm -f conftest.err conftest.$ac_objext \
  4051. conftest$ac_exeext conftest.$ac_ext
  4052. LIBS=$ac_check_lib_save_LIBS
  4053. fi
  4054. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  4055. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  4056. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  4057. if test "x${RESLIB}" != "x-lresolv"; then
  4058. RESLIB="${RESLIB} -lresolv"
  4059. fi
  4060. else
  4061. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  4062. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  4063. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  4064. echo $ECHO_N "(cached) $ECHO_C" >&6
  4065. else
  4066. ac_check_lib_save_LIBS=$LIBS
  4067. LIBS="-lbind $LIBS"
  4068. cat >conftest.$ac_ext <<_ACEOF
  4069. /* confdefs.h. */
  4070. _ACEOF
  4071. cat confdefs.h >>conftest.$ac_ext
  4072. cat >>conftest.$ac_ext <<_ACEOF
  4073. /* end confdefs.h. */
  4074. /* Override any gcc2 internal prototype to avoid an error. */
  4075. #ifdef __cplusplus
  4076. extern "C"
  4077. #endif
  4078. /* We use char because int might match the return type of a gcc2
  4079. builtin and then its argument prototype would still apply. */
  4080. char __res_mkquery ();
  4081. int
  4082. main ()
  4083. {
  4084. __res_mkquery ();
  4085. ;
  4086. return 0;
  4087. }
  4088. _ACEOF
  4089. rm -f conftest.$ac_objext conftest$ac_exeext
  4090. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4091. (eval $ac_link) 2>conftest.er1
  4092. ac_status=$?
  4093. grep -v '^ *+' conftest.er1 >conftest.err
  4094. rm -f conftest.er1
  4095. cat conftest.err >&5
  4096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4097. (exit $ac_status); } &&
  4098. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4099. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4100. (eval $ac_try) 2>&5
  4101. ac_status=$?
  4102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4103. (exit $ac_status); }; } &&
  4104. { ac_try='test -s conftest$ac_exeext'
  4105. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4106. (eval $ac_try) 2>&5
  4107. ac_status=$?
  4108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4109. (exit $ac_status); }; }; then
  4110. ac_cv_lib_bind___res_mkquery=yes
  4111. else
  4112. echo "$as_me: failed program was:" >&5
  4113. sed 's/^/| /' conftest.$ac_ext >&5
  4114. ac_cv_lib_bind___res_mkquery=no
  4115. fi
  4116. rm -f conftest.err conftest.$ac_objext \
  4117. conftest$ac_exeext conftest.$ac_ext
  4118. LIBS=$ac_check_lib_save_LIBS
  4119. fi
  4120. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4121. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4122. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4123. if test "x${RESLIB}" != "x-lbind"; then
  4124. RESLIB="${RESLIB} -lbind"
  4125. fi
  4126. else
  4127. dns_reslib_avail="false";
  4128. fi
  4129. fi
  4130. fi
  4131. fi
  4132. if test "${dns_reslib_avail}" = false; then
  4133. if test "$ac_cv_cygwin" = "yes"; then
  4134. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4135. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4136. if test -r /usr/local/bind/lib/libbind.a; then
  4137. echo "$as_me:$LINENO: result: yes" >&5
  4138. echo "${ECHO_T}yes" >&6
  4139. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4140. RESINCLUDE="-I/usr/local/bind/include"
  4141. dns_reslib_avail="true"
  4142. else
  4143. echo "$as_me:$LINENO: result: no" >&5
  4144. echo "${ECHO_T}no" >&6
  4145. fi
  4146. fi
  4147. fi
  4148. if test "${dns_reslib_avail}" = false; then
  4149. cat >&2 <<EOF
  4150. configure: warning:
  4151. Your system provides no functional resolver library.
  4152. One is required for buld.
  4153. EOF
  4154. exit 1
  4155. fi
  4156. # Check for IPv6 support
  4157. #EGG_IPV6_SUPPORTED
  4158. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  4159. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  4160. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  4161. if test "${enable_ipv6+set}" = set; then
  4162. enableval="$enable_ipv6"
  4163. ac_cv_dipv6="yes"
  4164. echo "$as_me:$LINENO: result: yes" >&5
  4165. echo "${ECHO_T}yes" >&6
  4166. else
  4167. ac_cv_dipv6="no"
  4168. if test "$egg_cv_ipv6_supported" = "no"; then
  4169. ac_cv_dipv6="no"
  4170. fi
  4171. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  4172. echo "${ECHO_T}$ac_cv_dipv6" >&6
  4173. fi;
  4174. if ! test "$EGG_CYGWIN" = "yes"; then
  4175. if test "$ac_cv_dipv6" = "no"; then
  4176. cat >>confdefs.h <<\_ACEOF
  4177. #define USE_IPV6 1
  4178. _ACEOF
  4179. fi
  4180. fi
  4181. echo "$as_me:$LINENO: checking for socklen_t" >&5
  4182. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  4183. if test "${egg_cv_socklen_t+set}" = set; then
  4184. echo $ECHO_N "(cached) $ECHO_C" >&6
  4185. else
  4186. if test "$cross_compiling" = yes; then
  4187. egg_cv_socklen_t=no
  4188. else
  4189. cat >conftest.$ac_ext <<_ACEOF
  4190. /* confdefs.h. */
  4191. _ACEOF
  4192. cat confdefs.h >>conftest.$ac_ext
  4193. cat >>conftest.$ac_ext <<_ACEOF
  4194. /* end confdefs.h. */
  4195. #include <unistd.h>
  4196. #include <sys/types.h>
  4197. #include <sys/socket.h>
  4198. #include <netinet/in.h>
  4199. #include <arpa/inet.h>
  4200. int main()
  4201. {
  4202. socklen_t test = sizeof(int);
  4203. return 0;
  4204. }
  4205. _ACEOF
  4206. rm -f conftest$ac_exeext
  4207. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4208. (eval $ac_link) 2>&5
  4209. ac_status=$?
  4210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4211. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4212. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4213. (eval $ac_try) 2>&5
  4214. ac_status=$?
  4215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4216. (exit $ac_status); }; }; then
  4217. egg_cv_socklen_t=yes
  4218. else
  4219. echo "$as_me: program exited with status $ac_status" >&5
  4220. echo "$as_me: failed program was:" >&5
  4221. sed 's/^/| /' conftest.$ac_ext >&5
  4222. ( exit $ac_status )
  4223. egg_cv_socklen_t=no
  4224. fi
  4225. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4226. fi
  4227. fi
  4228. if test "$egg_cv_socklen_t" = "yes"; then
  4229. cat >>confdefs.h <<\_ACEOF
  4230. #define HAVE_SOCKLEN_T 1
  4231. _ACEOF
  4232. echo "$as_me:$LINENO: result: yes" >&5
  4233. echo "${ECHO_T}yes" >&6
  4234. else
  4235. echo "$as_me:$LINENO: result: no" >&5
  4236. echo "${ECHO_T}no" >&6
  4237. fi
  4238. # Create static binaries
  4239. if test -z "$no_static"
  4240. then
  4241. if test -n "$GCC"
  4242. then
  4243. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  4244. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  4245. if test "${egg_cv_var_ccstatic+set}" = set; then
  4246. echo $ECHO_N "(cached) $ECHO_C" >&6
  4247. else
  4248. ac_old_CC="$CC"
  4249. CC="$CC -static"
  4250. cat >conftest.$ac_ext <<_ACEOF
  4251. /* confdefs.h. */
  4252. _ACEOF
  4253. cat confdefs.h >>conftest.$ac_ext
  4254. cat >>conftest.$ac_ext <<_ACEOF
  4255. /* end confdefs.h. */
  4256. int
  4257. main ()
  4258. {
  4259. ;
  4260. return 0;
  4261. }
  4262. _ACEOF
  4263. rm -f conftest.$ac_objext
  4264. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4265. (eval $ac_compile) 2>conftest.er1
  4266. ac_status=$?
  4267. grep -v '^ *+' conftest.er1 >conftest.err
  4268. rm -f conftest.er1
  4269. cat conftest.err >&5
  4270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4271. (exit $ac_status); } &&
  4272. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4273. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4274. (eval $ac_try) 2>&5
  4275. ac_status=$?
  4276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4277. (exit $ac_status); }; } &&
  4278. { ac_try='test -s conftest.$ac_objext'
  4279. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4280. (eval $ac_try) 2>&5
  4281. ac_status=$?
  4282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4283. (exit $ac_status); }; }; then
  4284. egg_cv_var_ccstatic="yes"
  4285. else
  4286. echo "$as_me: failed program was:" >&5
  4287. sed 's/^/| /' conftest.$ac_ext >&5
  4288. egg_cv_var_ccstatic="no"
  4289. fi
  4290. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4291. CC="$ac_old_CC"
  4292. fi
  4293. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  4294. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  4295. if test "$egg_cv_var_ccstatic" = "yes"
  4296. then
  4297. CCDEBUG="$CC"
  4298. CC="$CC -static"
  4299. else
  4300. cat << 'EOF' >&2
  4301. configure: error:
  4302. Your C compiler does not support -static.
  4303. This compile flag is required for the botpack.
  4304. EOF
  4305. exit 1
  4306. fi
  4307. fi
  4308. fi
  4309. #checkpoint
  4310. cat >confcache <<\_ACEOF
  4311. # This file is a shell script that caches the results of configure
  4312. # tests run on this system so they can be shared between configure
  4313. # scripts and configure runs, see configure's option --config-cache.
  4314. # It is not useful on other systems. If it contains results you don't
  4315. # want to keep, you may remove or edit it.
  4316. #
  4317. # config.status only pays attention to the cache file if you give it
  4318. # the --recheck option to rerun configure.
  4319. #
  4320. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4321. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4322. # following values.
  4323. _ACEOF
  4324. # The following way of writing the cache mishandles newlines in values,
  4325. # but we know of no workaround that is simple, portable, and efficient.
  4326. # So, don't put newlines in cache variables' values.
  4327. # Ultrix sh set writes to stderr and can't be redirected directly,
  4328. # and sets the high bit in the cache file unless we assign to the vars.
  4329. {
  4330. (set) 2>&1 |
  4331. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4332. *ac_space=\ *)
  4333. # `set' does not quote correctly, so add quotes (double-quote
  4334. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4335. sed -n \
  4336. "s/'/'\\\\''/g;
  4337. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4338. ;;
  4339. *)
  4340. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4341. sed -n \
  4342. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4343. ;;
  4344. esac;
  4345. } |
  4346. sed '
  4347. t clear
  4348. : clear
  4349. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4350. t end
  4351. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4352. : end' >>confcache
  4353. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4354. if test -w $cache_file; then
  4355. test "x$cache_file" != "x/dev/null"
  4356. cat confcache >$cache_file
  4357. else
  4358. echo "not updating unwritable cache $cache_file"
  4359. fi
  4360. fi
  4361. rm -f confcache
  4362. # Checks for system libraries
  4363. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4364. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4365. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4366. echo $ECHO_N "(cached) $ECHO_C" >&6
  4367. else
  4368. ac_check_lib_save_LIBS=$LIBS
  4369. LIBS="-lsocket $LIBS"
  4370. cat >conftest.$ac_ext <<_ACEOF
  4371. /* confdefs.h. */
  4372. _ACEOF
  4373. cat confdefs.h >>conftest.$ac_ext
  4374. cat >>conftest.$ac_ext <<_ACEOF
  4375. /* end confdefs.h. */
  4376. /* Override any gcc2 internal prototype to avoid an error. */
  4377. #ifdef __cplusplus
  4378. extern "C"
  4379. #endif
  4380. /* We use char because int might match the return type of a gcc2
  4381. builtin and then its argument prototype would still apply. */
  4382. char socket ();
  4383. int
  4384. main ()
  4385. {
  4386. socket ();
  4387. ;
  4388. return 0;
  4389. }
  4390. _ACEOF
  4391. rm -f conftest.$ac_objext conftest$ac_exeext
  4392. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4393. (eval $ac_link) 2>conftest.er1
  4394. ac_status=$?
  4395. grep -v '^ *+' conftest.er1 >conftest.err
  4396. rm -f conftest.er1
  4397. cat conftest.err >&5
  4398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4399. (exit $ac_status); } &&
  4400. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4401. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4402. (eval $ac_try) 2>&5
  4403. ac_status=$?
  4404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4405. (exit $ac_status); }; } &&
  4406. { ac_try='test -s conftest$ac_exeext'
  4407. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4408. (eval $ac_try) 2>&5
  4409. ac_status=$?
  4410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4411. (exit $ac_status); }; }; then
  4412. ac_cv_lib_socket_socket=yes
  4413. else
  4414. echo "$as_me: failed program was:" >&5
  4415. sed 's/^/| /' conftest.$ac_ext >&5
  4416. ac_cv_lib_socket_socket=no
  4417. fi
  4418. rm -f conftest.err conftest.$ac_objext \
  4419. conftest$ac_exeext conftest.$ac_ext
  4420. LIBS=$ac_check_lib_save_LIBS
  4421. fi
  4422. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4423. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4424. if test $ac_cv_lib_socket_socket = yes; then
  4425. cat >>confdefs.h <<_ACEOF
  4426. #define HAVE_LIBSOCKET 1
  4427. _ACEOF
  4428. LIBS="-lsocket $LIBS"
  4429. fi
  4430. # AC_CHECK_LIB(nsl, connect)
  4431. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4432. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4433. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4434. echo $ECHO_N "(cached) $ECHO_C" >&6
  4435. else
  4436. ac_check_lib_save_LIBS=$LIBS
  4437. LIBS="-ldns $LIBS"
  4438. cat >conftest.$ac_ext <<_ACEOF
  4439. /* confdefs.h. */
  4440. _ACEOF
  4441. cat confdefs.h >>conftest.$ac_ext
  4442. cat >>conftest.$ac_ext <<_ACEOF
  4443. /* end confdefs.h. */
  4444. /* Override any gcc2 internal prototype to avoid an error. */
  4445. #ifdef __cplusplus
  4446. extern "C"
  4447. #endif
  4448. /* We use char because int might match the return type of a gcc2
  4449. builtin and then its argument prototype would still apply. */
  4450. char gethostbyname ();
  4451. int
  4452. main ()
  4453. {
  4454. gethostbyname ();
  4455. ;
  4456. return 0;
  4457. }
  4458. _ACEOF
  4459. rm -f conftest.$ac_objext conftest$ac_exeext
  4460. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4461. (eval $ac_link) 2>conftest.er1
  4462. ac_status=$?
  4463. grep -v '^ *+' conftest.er1 >conftest.err
  4464. rm -f conftest.er1
  4465. cat conftest.err >&5
  4466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4467. (exit $ac_status); } &&
  4468. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4469. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4470. (eval $ac_try) 2>&5
  4471. ac_status=$?
  4472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4473. (exit $ac_status); }; } &&
  4474. { ac_try='test -s conftest$ac_exeext'
  4475. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4476. (eval $ac_try) 2>&5
  4477. ac_status=$?
  4478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4479. (exit $ac_status); }; }; then
  4480. ac_cv_lib_dns_gethostbyname=yes
  4481. else
  4482. echo "$as_me: failed program was:" >&5
  4483. sed 's/^/| /' conftest.$ac_ext >&5
  4484. ac_cv_lib_dns_gethostbyname=no
  4485. fi
  4486. rm -f conftest.err conftest.$ac_objext \
  4487. conftest$ac_exeext conftest.$ac_ext
  4488. LIBS=$ac_check_lib_save_LIBS
  4489. fi
  4490. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4491. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4492. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4493. cat >>confdefs.h <<_ACEOF
  4494. #define HAVE_LIBDNS 1
  4495. _ACEOF
  4496. LIBS="-ldns $LIBS"
  4497. fi
  4498. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4499. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4500. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4501. # This is needed for Tcl libraries compiled with thread support
  4502. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4503. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4504. # ac_cv_lib_pthread="-lpthread"], [dnl
  4505. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4506. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4507. # ac_cv_lib_pthread="-lpthread"], [dnl
  4508. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4509. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4510. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4511. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4512. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4513. # ac_cv_lib_pthread=""],
  4514. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4515. # Checks for header files
  4516. ac_header_dirent=no
  4517. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4518. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4519. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4520. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4521. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4522. echo $ECHO_N "(cached) $ECHO_C" >&6
  4523. else
  4524. cat >conftest.$ac_ext <<_ACEOF
  4525. /* confdefs.h. */
  4526. _ACEOF
  4527. cat confdefs.h >>conftest.$ac_ext
  4528. cat >>conftest.$ac_ext <<_ACEOF
  4529. /* end confdefs.h. */
  4530. #include <sys/types.h>
  4531. #include <$ac_hdr>
  4532. int
  4533. main ()
  4534. {
  4535. if ((DIR *) 0)
  4536. return 0;
  4537. ;
  4538. return 0;
  4539. }
  4540. _ACEOF
  4541. rm -f conftest.$ac_objext
  4542. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4543. (eval $ac_compile) 2>conftest.er1
  4544. ac_status=$?
  4545. grep -v '^ *+' conftest.er1 >conftest.err
  4546. rm -f conftest.er1
  4547. cat conftest.err >&5
  4548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4549. (exit $ac_status); } &&
  4550. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4552. (eval $ac_try) 2>&5
  4553. ac_status=$?
  4554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4555. (exit $ac_status); }; } &&
  4556. { ac_try='test -s conftest.$ac_objext'
  4557. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4558. (eval $ac_try) 2>&5
  4559. ac_status=$?
  4560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4561. (exit $ac_status); }; }; then
  4562. eval "$as_ac_Header=yes"
  4563. else
  4564. echo "$as_me: failed program was:" >&5
  4565. sed 's/^/| /' conftest.$ac_ext >&5
  4566. eval "$as_ac_Header=no"
  4567. fi
  4568. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4569. fi
  4570. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4571. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4572. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4573. cat >>confdefs.h <<_ACEOF
  4574. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4575. _ACEOF
  4576. ac_header_dirent=$ac_hdr; break
  4577. fi
  4578. done
  4579. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4580. if test $ac_header_dirent = dirent.h; then
  4581. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4582. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4583. if test "${ac_cv_search_opendir+set}" = set; then
  4584. echo $ECHO_N "(cached) $ECHO_C" >&6
  4585. else
  4586. ac_func_search_save_LIBS=$LIBS
  4587. ac_cv_search_opendir=no
  4588. cat >conftest.$ac_ext <<_ACEOF
  4589. /* confdefs.h. */
  4590. _ACEOF
  4591. cat confdefs.h >>conftest.$ac_ext
  4592. cat >>conftest.$ac_ext <<_ACEOF
  4593. /* end confdefs.h. */
  4594. /* Override any gcc2 internal prototype to avoid an error. */
  4595. #ifdef __cplusplus
  4596. extern "C"
  4597. #endif
  4598. /* We use char because int might match the return type of a gcc2
  4599. builtin and then its argument prototype would still apply. */
  4600. char opendir ();
  4601. int
  4602. main ()
  4603. {
  4604. opendir ();
  4605. ;
  4606. return 0;
  4607. }
  4608. _ACEOF
  4609. rm -f conftest.$ac_objext conftest$ac_exeext
  4610. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4611. (eval $ac_link) 2>conftest.er1
  4612. ac_status=$?
  4613. grep -v '^ *+' conftest.er1 >conftest.err
  4614. rm -f conftest.er1
  4615. cat conftest.err >&5
  4616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4617. (exit $ac_status); } &&
  4618. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4619. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4620. (eval $ac_try) 2>&5
  4621. ac_status=$?
  4622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4623. (exit $ac_status); }; } &&
  4624. { ac_try='test -s conftest$ac_exeext'
  4625. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4626. (eval $ac_try) 2>&5
  4627. ac_status=$?
  4628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4629. (exit $ac_status); }; }; then
  4630. ac_cv_search_opendir="none required"
  4631. else
  4632. echo "$as_me: failed program was:" >&5
  4633. sed 's/^/| /' conftest.$ac_ext >&5
  4634. fi
  4635. rm -f conftest.err conftest.$ac_objext \
  4636. conftest$ac_exeext conftest.$ac_ext
  4637. if test "$ac_cv_search_opendir" = no; then
  4638. for ac_lib in dir; do
  4639. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4640. cat >conftest.$ac_ext <<_ACEOF
  4641. /* confdefs.h. */
  4642. _ACEOF
  4643. cat confdefs.h >>conftest.$ac_ext
  4644. cat >>conftest.$ac_ext <<_ACEOF
  4645. /* end confdefs.h. */
  4646. /* Override any gcc2 internal prototype to avoid an error. */
  4647. #ifdef __cplusplus
  4648. extern "C"
  4649. #endif
  4650. /* We use char because int might match the return type of a gcc2
  4651. builtin and then its argument prototype would still apply. */
  4652. char opendir ();
  4653. int
  4654. main ()
  4655. {
  4656. opendir ();
  4657. ;
  4658. return 0;
  4659. }
  4660. _ACEOF
  4661. rm -f conftest.$ac_objext conftest$ac_exeext
  4662. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4663. (eval $ac_link) 2>conftest.er1
  4664. ac_status=$?
  4665. grep -v '^ *+' conftest.er1 >conftest.err
  4666. rm -f conftest.er1
  4667. cat conftest.err >&5
  4668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4669. (exit $ac_status); } &&
  4670. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4671. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4672. (eval $ac_try) 2>&5
  4673. ac_status=$?
  4674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4675. (exit $ac_status); }; } &&
  4676. { ac_try='test -s conftest$ac_exeext'
  4677. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4678. (eval $ac_try) 2>&5
  4679. ac_status=$?
  4680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4681. (exit $ac_status); }; }; then
  4682. ac_cv_search_opendir="-l$ac_lib"
  4683. break
  4684. else
  4685. echo "$as_me: failed program was:" >&5
  4686. sed 's/^/| /' conftest.$ac_ext >&5
  4687. fi
  4688. rm -f conftest.err conftest.$ac_objext \
  4689. conftest$ac_exeext conftest.$ac_ext
  4690. done
  4691. fi
  4692. LIBS=$ac_func_search_save_LIBS
  4693. fi
  4694. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4695. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4696. if test "$ac_cv_search_opendir" != no; then
  4697. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4698. fi
  4699. else
  4700. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4701. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4702. if test "${ac_cv_search_opendir+set}" = set; then
  4703. echo $ECHO_N "(cached) $ECHO_C" >&6
  4704. else
  4705. ac_func_search_save_LIBS=$LIBS
  4706. ac_cv_search_opendir=no
  4707. cat >conftest.$ac_ext <<_ACEOF
  4708. /* confdefs.h. */
  4709. _ACEOF
  4710. cat confdefs.h >>conftest.$ac_ext
  4711. cat >>conftest.$ac_ext <<_ACEOF
  4712. /* end confdefs.h. */
  4713. /* Override any gcc2 internal prototype to avoid an error. */
  4714. #ifdef __cplusplus
  4715. extern "C"
  4716. #endif
  4717. /* We use char because int might match the return type of a gcc2
  4718. builtin and then its argument prototype would still apply. */
  4719. char opendir ();
  4720. int
  4721. main ()
  4722. {
  4723. opendir ();
  4724. ;
  4725. return 0;
  4726. }
  4727. _ACEOF
  4728. rm -f conftest.$ac_objext conftest$ac_exeext
  4729. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4730. (eval $ac_link) 2>conftest.er1
  4731. ac_status=$?
  4732. grep -v '^ *+' conftest.er1 >conftest.err
  4733. rm -f conftest.er1
  4734. cat conftest.err >&5
  4735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4736. (exit $ac_status); } &&
  4737. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4738. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4739. (eval $ac_try) 2>&5
  4740. ac_status=$?
  4741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4742. (exit $ac_status); }; } &&
  4743. { ac_try='test -s conftest$ac_exeext'
  4744. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4745. (eval $ac_try) 2>&5
  4746. ac_status=$?
  4747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4748. (exit $ac_status); }; }; then
  4749. ac_cv_search_opendir="none required"
  4750. else
  4751. echo "$as_me: failed program was:" >&5
  4752. sed 's/^/| /' conftest.$ac_ext >&5
  4753. fi
  4754. rm -f conftest.err conftest.$ac_objext \
  4755. conftest$ac_exeext conftest.$ac_ext
  4756. if test "$ac_cv_search_opendir" = no; then
  4757. for ac_lib in x; do
  4758. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4759. cat >conftest.$ac_ext <<_ACEOF
  4760. /* confdefs.h. */
  4761. _ACEOF
  4762. cat confdefs.h >>conftest.$ac_ext
  4763. cat >>conftest.$ac_ext <<_ACEOF
  4764. /* end confdefs.h. */
  4765. /* Override any gcc2 internal prototype to avoid an error. */
  4766. #ifdef __cplusplus
  4767. extern "C"
  4768. #endif
  4769. /* We use char because int might match the return type of a gcc2
  4770. builtin and then its argument prototype would still apply. */
  4771. char opendir ();
  4772. int
  4773. main ()
  4774. {
  4775. opendir ();
  4776. ;
  4777. return 0;
  4778. }
  4779. _ACEOF
  4780. rm -f conftest.$ac_objext conftest$ac_exeext
  4781. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4782. (eval $ac_link) 2>conftest.er1
  4783. ac_status=$?
  4784. grep -v '^ *+' conftest.er1 >conftest.err
  4785. rm -f conftest.er1
  4786. cat conftest.err >&5
  4787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4788. (exit $ac_status); } &&
  4789. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4790. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4791. (eval $ac_try) 2>&5
  4792. ac_status=$?
  4793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4794. (exit $ac_status); }; } &&
  4795. { ac_try='test -s conftest$ac_exeext'
  4796. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4797. (eval $ac_try) 2>&5
  4798. ac_status=$?
  4799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4800. (exit $ac_status); }; }; then
  4801. ac_cv_search_opendir="-l$ac_lib"
  4802. break
  4803. else
  4804. echo "$as_me: failed program was:" >&5
  4805. sed 's/^/| /' conftest.$ac_ext >&5
  4806. fi
  4807. rm -f conftest.err conftest.$ac_objext \
  4808. conftest$ac_exeext conftest.$ac_ext
  4809. done
  4810. fi
  4811. LIBS=$ac_func_search_save_LIBS
  4812. fi
  4813. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4814. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4815. if test "$ac_cv_search_opendir" != no; then
  4816. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4817. fi
  4818. fi
  4819. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4820. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4821. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4822. echo $ECHO_N "(cached) $ECHO_C" >&6
  4823. else
  4824. cat >conftest.$ac_ext <<_ACEOF
  4825. /* confdefs.h. */
  4826. _ACEOF
  4827. cat confdefs.h >>conftest.$ac_ext
  4828. cat >>conftest.$ac_ext <<_ACEOF
  4829. /* end confdefs.h. */
  4830. #include <sys/types.h>
  4831. #include <sys/wait.h>
  4832. #ifndef WEXITSTATUS
  4833. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4834. #endif
  4835. #ifndef WIFEXITED
  4836. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4837. #endif
  4838. int
  4839. main ()
  4840. {
  4841. int s;
  4842. wait (&s);
  4843. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4844. ;
  4845. return 0;
  4846. }
  4847. _ACEOF
  4848. rm -f conftest.$ac_objext
  4849. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4850. (eval $ac_compile) 2>conftest.er1
  4851. ac_status=$?
  4852. grep -v '^ *+' conftest.er1 >conftest.err
  4853. rm -f conftest.er1
  4854. cat conftest.err >&5
  4855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4856. (exit $ac_status); } &&
  4857. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4858. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4859. (eval $ac_try) 2>&5
  4860. ac_status=$?
  4861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4862. (exit $ac_status); }; } &&
  4863. { ac_try='test -s conftest.$ac_objext'
  4864. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4865. (eval $ac_try) 2>&5
  4866. ac_status=$?
  4867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4868. (exit $ac_status); }; }; then
  4869. ac_cv_header_sys_wait_h=yes
  4870. else
  4871. echo "$as_me: failed program was:" >&5
  4872. sed 's/^/| /' conftest.$ac_ext >&5
  4873. ac_cv_header_sys_wait_h=no
  4874. fi
  4875. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4876. fi
  4877. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4878. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  4879. if test $ac_cv_header_sys_wait_h = yes; then
  4880. cat >>confdefs.h <<\_ACEOF
  4881. #define HAVE_SYS_WAIT_H 1
  4882. _ACEOF
  4883. fi
  4884. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4885. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  4886. if test "${ac_cv_header_time+set}" = set; then
  4887. echo $ECHO_N "(cached) $ECHO_C" >&6
  4888. else
  4889. cat >conftest.$ac_ext <<_ACEOF
  4890. /* confdefs.h. */
  4891. _ACEOF
  4892. cat confdefs.h >>conftest.$ac_ext
  4893. cat >>conftest.$ac_ext <<_ACEOF
  4894. /* end confdefs.h. */
  4895. #include <sys/types.h>
  4896. #include <sys/time.h>
  4897. #include <time.h>
  4898. int
  4899. main ()
  4900. {
  4901. if ((struct tm *) 0)
  4902. return 0;
  4903. ;
  4904. return 0;
  4905. }
  4906. _ACEOF
  4907. rm -f conftest.$ac_objext
  4908. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4909. (eval $ac_compile) 2>conftest.er1
  4910. ac_status=$?
  4911. grep -v '^ *+' conftest.er1 >conftest.err
  4912. rm -f conftest.er1
  4913. cat conftest.err >&5
  4914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4915. (exit $ac_status); } &&
  4916. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4917. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4918. (eval $ac_try) 2>&5
  4919. ac_status=$?
  4920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4921. (exit $ac_status); }; } &&
  4922. { ac_try='test -s conftest.$ac_objext'
  4923. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4924. (eval $ac_try) 2>&5
  4925. ac_status=$?
  4926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4927. (exit $ac_status); }; }; then
  4928. ac_cv_header_time=yes
  4929. else
  4930. echo "$as_me: failed program was:" >&5
  4931. sed 's/^/| /' conftest.$ac_ext >&5
  4932. ac_cv_header_time=no
  4933. fi
  4934. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4935. fi
  4936. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4937. echo "${ECHO_T}$ac_cv_header_time" >&6
  4938. if test $ac_cv_header_time = yes; then
  4939. cat >>confdefs.h <<\_ACEOF
  4940. #define TIME_WITH_SYS_TIME 1
  4941. _ACEOF
  4942. fi
  4943. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4944. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  4945. if test "${ac_cv_header_stat_broken+set}" = set; then
  4946. echo $ECHO_N "(cached) $ECHO_C" >&6
  4947. else
  4948. cat >conftest.$ac_ext <<_ACEOF
  4949. /* confdefs.h. */
  4950. _ACEOF
  4951. cat confdefs.h >>conftest.$ac_ext
  4952. cat >>conftest.$ac_ext <<_ACEOF
  4953. /* end confdefs.h. */
  4954. #include <sys/types.h>
  4955. #include <sys/stat.h>
  4956. #if defined(S_ISBLK) && defined(S_IFDIR)
  4957. # if S_ISBLK (S_IFDIR)
  4958. You lose.
  4959. # endif
  4960. #endif
  4961. #if defined(S_ISBLK) && defined(S_IFCHR)
  4962. # if S_ISBLK (S_IFCHR)
  4963. You lose.
  4964. # endif
  4965. #endif
  4966. #if defined(S_ISLNK) && defined(S_IFREG)
  4967. # if S_ISLNK (S_IFREG)
  4968. You lose.
  4969. # endif
  4970. #endif
  4971. #if defined(S_ISSOCK) && defined(S_IFREG)
  4972. # if S_ISSOCK (S_IFREG)
  4973. You lose.
  4974. # endif
  4975. #endif
  4976. _ACEOF
  4977. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4978. $EGREP "You lose" >/dev/null 2>&1; then
  4979. ac_cv_header_stat_broken=yes
  4980. else
  4981. ac_cv_header_stat_broken=no
  4982. fi
  4983. rm -f conftest*
  4984. fi
  4985. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  4986. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  4987. if test $ac_cv_header_stat_broken = yes; then
  4988. cat >>confdefs.h <<\_ACEOF
  4989. #define STAT_MACROS_BROKEN 1
  4990. _ACEOF
  4991. fi
  4992. #checkpoint
  4993. cat >confcache <<\_ACEOF
  4994. # This file is a shell script that caches the results of configure
  4995. # tests run on this system so they can be shared between configure
  4996. # scripts and configure runs, see configure's option --config-cache.
  4997. # It is not useful on other systems. If it contains results you don't
  4998. # want to keep, you may remove or edit it.
  4999. #
  5000. # config.status only pays attention to the cache file if you give it
  5001. # the --recheck option to rerun configure.
  5002. #
  5003. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5004. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5005. # following values.
  5006. _ACEOF
  5007. # The following way of writing the cache mishandles newlines in values,
  5008. # but we know of no workaround that is simple, portable, and efficient.
  5009. # So, don't put newlines in cache variables' values.
  5010. # Ultrix sh set writes to stderr and can't be redirected directly,
  5011. # and sets the high bit in the cache file unless we assign to the vars.
  5012. {
  5013. (set) 2>&1 |
  5014. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5015. *ac_space=\ *)
  5016. # `set' does not quote correctly, so add quotes (double-quote
  5017. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5018. sed -n \
  5019. "s/'/'\\\\''/g;
  5020. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5021. ;;
  5022. *)
  5023. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5024. sed -n \
  5025. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5026. ;;
  5027. esac;
  5028. } |
  5029. sed '
  5030. t clear
  5031. : clear
  5032. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5033. t end
  5034. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5035. : end' >>confcache
  5036. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5037. if test -w $cache_file; then
  5038. test "x$cache_file" != "x/dev/null"
  5039. cat confcache >$cache_file
  5040. else
  5041. echo "not updating unwritable cache $cache_file"
  5042. fi
  5043. fi
  5044. rm -f confcache
  5045. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5046. do
  5047. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5048. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5049. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5050. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5051. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5052. echo $ECHO_N "(cached) $ECHO_C" >&6
  5053. fi
  5054. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5055. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5056. else
  5057. # Is the header compilable?
  5058. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5059. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5060. cat >conftest.$ac_ext <<_ACEOF
  5061. /* confdefs.h. */
  5062. _ACEOF
  5063. cat confdefs.h >>conftest.$ac_ext
  5064. cat >>conftest.$ac_ext <<_ACEOF
  5065. /* end confdefs.h. */
  5066. $ac_includes_default
  5067. #include <$ac_header>
  5068. _ACEOF
  5069. rm -f conftest.$ac_objext
  5070. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5071. (eval $ac_compile) 2>conftest.er1
  5072. ac_status=$?
  5073. grep -v '^ *+' conftest.er1 >conftest.err
  5074. rm -f conftest.er1
  5075. cat conftest.err >&5
  5076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5077. (exit $ac_status); } &&
  5078. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5079. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5080. (eval $ac_try) 2>&5
  5081. ac_status=$?
  5082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5083. (exit $ac_status); }; } &&
  5084. { ac_try='test -s conftest.$ac_objext'
  5085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5086. (eval $ac_try) 2>&5
  5087. ac_status=$?
  5088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5089. (exit $ac_status); }; }; then
  5090. ac_header_compiler=yes
  5091. else
  5092. echo "$as_me: failed program was:" >&5
  5093. sed 's/^/| /' conftest.$ac_ext >&5
  5094. ac_header_compiler=no
  5095. fi
  5096. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5097. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5098. echo "${ECHO_T}$ac_header_compiler" >&6
  5099. # Is the header present?
  5100. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5101. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5102. cat >conftest.$ac_ext <<_ACEOF
  5103. /* confdefs.h. */
  5104. _ACEOF
  5105. cat confdefs.h >>conftest.$ac_ext
  5106. cat >>conftest.$ac_ext <<_ACEOF
  5107. /* end confdefs.h. */
  5108. #include <$ac_header>
  5109. _ACEOF
  5110. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5111. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5112. ac_status=$?
  5113. grep -v '^ *+' conftest.er1 >conftest.err
  5114. rm -f conftest.er1
  5115. cat conftest.err >&5
  5116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5117. (exit $ac_status); } >/dev/null; then
  5118. if test -s conftest.err; then
  5119. ac_cpp_err=$ac_c_preproc_warn_flag
  5120. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5121. else
  5122. ac_cpp_err=
  5123. fi
  5124. else
  5125. ac_cpp_err=yes
  5126. fi
  5127. if test -z "$ac_cpp_err"; then
  5128. ac_header_preproc=yes
  5129. else
  5130. echo "$as_me: failed program was:" >&5
  5131. sed 's/^/| /' conftest.$ac_ext >&5
  5132. ac_header_preproc=no
  5133. fi
  5134. rm -f conftest.err conftest.$ac_ext
  5135. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5136. echo "${ECHO_T}$ac_header_preproc" >&6
  5137. # So? What about this header?
  5138. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5139. yes:no: )
  5140. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5141. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5142. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5143. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5144. ac_header_preproc=yes
  5145. ;;
  5146. no:yes:* )
  5147. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5148. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5149. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5150. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5151. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5152. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5153. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5154. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5155. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5156. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5157. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5158. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5159. (
  5160. cat <<\_ASBOX
  5161. ## ------------------------------------------ ##
  5162. ## Report this to the AC_PACKAGE_NAME lists. ##
  5163. ## ------------------------------------------ ##
  5164. _ASBOX
  5165. ) |
  5166. sed "s/^/$as_me: WARNING: /" >&2
  5167. ;;
  5168. esac
  5169. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5170. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5171. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5172. echo $ECHO_N "(cached) $ECHO_C" >&6
  5173. else
  5174. eval "$as_ac_Header=\$ac_header_preproc"
  5175. fi
  5176. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5177. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5178. fi
  5179. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5180. cat >>confdefs.h <<_ACEOF
  5181. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5182. _ACEOF
  5183. fi
  5184. done
  5185. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5186. do
  5187. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5188. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5189. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5190. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5191. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5192. echo $ECHO_N "(cached) $ECHO_C" >&6
  5193. fi
  5194. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5195. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5196. else
  5197. # Is the header compilable?
  5198. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5199. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5200. cat >conftest.$ac_ext <<_ACEOF
  5201. /* confdefs.h. */
  5202. _ACEOF
  5203. cat confdefs.h >>conftest.$ac_ext
  5204. cat >>conftest.$ac_ext <<_ACEOF
  5205. /* end confdefs.h. */
  5206. $ac_includes_default
  5207. #include <$ac_header>
  5208. _ACEOF
  5209. rm -f conftest.$ac_objext
  5210. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5211. (eval $ac_compile) 2>conftest.er1
  5212. ac_status=$?
  5213. grep -v '^ *+' conftest.er1 >conftest.err
  5214. rm -f conftest.er1
  5215. cat conftest.err >&5
  5216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5217. (exit $ac_status); } &&
  5218. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5219. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5220. (eval $ac_try) 2>&5
  5221. ac_status=$?
  5222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5223. (exit $ac_status); }; } &&
  5224. { ac_try='test -s conftest.$ac_objext'
  5225. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5226. (eval $ac_try) 2>&5
  5227. ac_status=$?
  5228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5229. (exit $ac_status); }; }; then
  5230. ac_header_compiler=yes
  5231. else
  5232. echo "$as_me: failed program was:" >&5
  5233. sed 's/^/| /' conftest.$ac_ext >&5
  5234. ac_header_compiler=no
  5235. fi
  5236. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5237. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5238. echo "${ECHO_T}$ac_header_compiler" >&6
  5239. # Is the header present?
  5240. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5241. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5242. cat >conftest.$ac_ext <<_ACEOF
  5243. /* confdefs.h. */
  5244. _ACEOF
  5245. cat confdefs.h >>conftest.$ac_ext
  5246. cat >>conftest.$ac_ext <<_ACEOF
  5247. /* end confdefs.h. */
  5248. #include <$ac_header>
  5249. _ACEOF
  5250. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5251. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5252. ac_status=$?
  5253. grep -v '^ *+' conftest.er1 >conftest.err
  5254. rm -f conftest.er1
  5255. cat conftest.err >&5
  5256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5257. (exit $ac_status); } >/dev/null; then
  5258. if test -s conftest.err; then
  5259. ac_cpp_err=$ac_c_preproc_warn_flag
  5260. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5261. else
  5262. ac_cpp_err=
  5263. fi
  5264. else
  5265. ac_cpp_err=yes
  5266. fi
  5267. if test -z "$ac_cpp_err"; then
  5268. ac_header_preproc=yes
  5269. else
  5270. echo "$as_me: failed program was:" >&5
  5271. sed 's/^/| /' conftest.$ac_ext >&5
  5272. ac_header_preproc=no
  5273. fi
  5274. rm -f conftest.err conftest.$ac_ext
  5275. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5276. echo "${ECHO_T}$ac_header_preproc" >&6
  5277. # So? What about this header?
  5278. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5279. yes:no: )
  5280. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5281. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5282. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5283. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5284. ac_header_preproc=yes
  5285. ;;
  5286. no:yes:* )
  5287. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5288. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5289. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5290. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5291. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5292. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5293. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5294. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5295. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5296. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5297. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5298. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5299. (
  5300. cat <<\_ASBOX
  5301. ## ------------------------------------------ ##
  5302. ## Report this to the AC_PACKAGE_NAME lists. ##
  5303. ## ------------------------------------------ ##
  5304. _ASBOX
  5305. ) |
  5306. sed "s/^/$as_me: WARNING: /" >&2
  5307. ;;
  5308. esac
  5309. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5310. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5311. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5312. echo $ECHO_N "(cached) $ECHO_C" >&6
  5313. else
  5314. eval "$as_ac_Header=\$ac_header_preproc"
  5315. fi
  5316. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5317. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5318. fi
  5319. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5320. cat >>confdefs.h <<_ACEOF
  5321. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5322. _ACEOF
  5323. fi
  5324. done
  5325. #checkpoint
  5326. cat >confcache <<\_ACEOF
  5327. # This file is a shell script that caches the results of configure
  5328. # tests run on this system so they can be shared between configure
  5329. # scripts and configure runs, see configure's option --config-cache.
  5330. # It is not useful on other systems. If it contains results you don't
  5331. # want to keep, you may remove or edit it.
  5332. #
  5333. # config.status only pays attention to the cache file if you give it
  5334. # the --recheck option to rerun configure.
  5335. #
  5336. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5337. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5338. # following values.
  5339. _ACEOF
  5340. # The following way of writing the cache mishandles newlines in values,
  5341. # but we know of no workaround that is simple, portable, and efficient.
  5342. # So, don't put newlines in cache variables' values.
  5343. # Ultrix sh set writes to stderr and can't be redirected directly,
  5344. # and sets the high bit in the cache file unless we assign to the vars.
  5345. {
  5346. (set) 2>&1 |
  5347. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5348. *ac_space=\ *)
  5349. # `set' does not quote correctly, so add quotes (double-quote
  5350. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5351. sed -n \
  5352. "s/'/'\\\\''/g;
  5353. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5354. ;;
  5355. *)
  5356. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5357. sed -n \
  5358. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5359. ;;
  5360. esac;
  5361. } |
  5362. sed '
  5363. t clear
  5364. : clear
  5365. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5366. t end
  5367. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5368. : end' >>confcache
  5369. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5370. if test -w $cache_file; then
  5371. test "x$cache_file" != "x/dev/null"
  5372. cat confcache >$cache_file
  5373. else
  5374. echo "not updating unwritable cache $cache_file"
  5375. fi
  5376. fi
  5377. rm -f confcache
  5378. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5379. #AC_CHECK_HEADERS(zlib.h)
  5380. #EGG_CHECK_ZLIB
  5381. #EGG_CHECK_SSL
  5382. #AC_SUBST(SSL)dnl
  5383. # Checks for typedefs, structures, and compiler characteristics
  5384. echo "$as_me:$LINENO: checking for pid_t" >&5
  5385. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5386. if test "${ac_cv_type_pid_t+set}" = set; then
  5387. echo $ECHO_N "(cached) $ECHO_C" >&6
  5388. else
  5389. cat >conftest.$ac_ext <<_ACEOF
  5390. /* confdefs.h. */
  5391. _ACEOF
  5392. cat confdefs.h >>conftest.$ac_ext
  5393. cat >>conftest.$ac_ext <<_ACEOF
  5394. /* end confdefs.h. */
  5395. $ac_includes_default
  5396. int
  5397. main ()
  5398. {
  5399. if ((pid_t *) 0)
  5400. return 0;
  5401. if (sizeof (pid_t))
  5402. return 0;
  5403. ;
  5404. return 0;
  5405. }
  5406. _ACEOF
  5407. rm -f conftest.$ac_objext
  5408. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5409. (eval $ac_compile) 2>conftest.er1
  5410. ac_status=$?
  5411. grep -v '^ *+' conftest.er1 >conftest.err
  5412. rm -f conftest.er1
  5413. cat conftest.err >&5
  5414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5415. (exit $ac_status); } &&
  5416. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5417. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5418. (eval $ac_try) 2>&5
  5419. ac_status=$?
  5420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5421. (exit $ac_status); }; } &&
  5422. { ac_try='test -s conftest.$ac_objext'
  5423. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5424. (eval $ac_try) 2>&5
  5425. ac_status=$?
  5426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5427. (exit $ac_status); }; }; then
  5428. ac_cv_type_pid_t=yes
  5429. else
  5430. echo "$as_me: failed program was:" >&5
  5431. sed 's/^/| /' conftest.$ac_ext >&5
  5432. ac_cv_type_pid_t=no
  5433. fi
  5434. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5435. fi
  5436. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5437. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5438. if test $ac_cv_type_pid_t = yes; then
  5439. :
  5440. else
  5441. cat >>confdefs.h <<_ACEOF
  5442. #define pid_t int
  5443. _ACEOF
  5444. fi
  5445. echo "$as_me:$LINENO: checking for size_t" >&5
  5446. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5447. if test "${ac_cv_type_size_t+set}" = set; then
  5448. echo $ECHO_N "(cached) $ECHO_C" >&6
  5449. else
  5450. cat >conftest.$ac_ext <<_ACEOF
  5451. /* confdefs.h. */
  5452. _ACEOF
  5453. cat confdefs.h >>conftest.$ac_ext
  5454. cat >>conftest.$ac_ext <<_ACEOF
  5455. /* end confdefs.h. */
  5456. $ac_includes_default
  5457. int
  5458. main ()
  5459. {
  5460. if ((size_t *) 0)
  5461. return 0;
  5462. if (sizeof (size_t))
  5463. return 0;
  5464. ;
  5465. return 0;
  5466. }
  5467. _ACEOF
  5468. rm -f conftest.$ac_objext
  5469. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5470. (eval $ac_compile) 2>conftest.er1
  5471. ac_status=$?
  5472. grep -v '^ *+' conftest.er1 >conftest.err
  5473. rm -f conftest.er1
  5474. cat conftest.err >&5
  5475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5476. (exit $ac_status); } &&
  5477. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5478. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5479. (eval $ac_try) 2>&5
  5480. ac_status=$?
  5481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5482. (exit $ac_status); }; } &&
  5483. { ac_try='test -s conftest.$ac_objext'
  5484. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5485. (eval $ac_try) 2>&5
  5486. ac_status=$?
  5487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5488. (exit $ac_status); }; }; then
  5489. ac_cv_type_size_t=yes
  5490. else
  5491. echo "$as_me: failed program was:" >&5
  5492. sed 's/^/| /' conftest.$ac_ext >&5
  5493. ac_cv_type_size_t=no
  5494. fi
  5495. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5496. fi
  5497. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5498. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5499. if test $ac_cv_type_size_t = yes; then
  5500. :
  5501. else
  5502. cat >>confdefs.h <<_ACEOF
  5503. #define size_t unsigned
  5504. _ACEOF
  5505. fi
  5506. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5507. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5508. if test "${ac_cv_type_uid_t+set}" = set; then
  5509. echo $ECHO_N "(cached) $ECHO_C" >&6
  5510. else
  5511. cat >conftest.$ac_ext <<_ACEOF
  5512. /* confdefs.h. */
  5513. _ACEOF
  5514. cat confdefs.h >>conftest.$ac_ext
  5515. cat >>conftest.$ac_ext <<_ACEOF
  5516. /* end confdefs.h. */
  5517. #include <sys/types.h>
  5518. _ACEOF
  5519. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5520. $EGREP "uid_t" >/dev/null 2>&1; then
  5521. ac_cv_type_uid_t=yes
  5522. else
  5523. ac_cv_type_uid_t=no
  5524. fi
  5525. rm -f conftest*
  5526. fi
  5527. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5528. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5529. if test $ac_cv_type_uid_t = no; then
  5530. cat >>confdefs.h <<\_ACEOF
  5531. #define uid_t int
  5532. _ACEOF
  5533. cat >>confdefs.h <<\_ACEOF
  5534. #define gid_t int
  5535. _ACEOF
  5536. fi
  5537. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5538. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5539. if test "${ac_cv_c_const+set}" = set; then
  5540. echo $ECHO_N "(cached) $ECHO_C" >&6
  5541. else
  5542. cat >conftest.$ac_ext <<_ACEOF
  5543. /* confdefs.h. */
  5544. _ACEOF
  5545. cat confdefs.h >>conftest.$ac_ext
  5546. cat >>conftest.$ac_ext <<_ACEOF
  5547. /* end confdefs.h. */
  5548. int
  5549. main ()
  5550. {
  5551. /* FIXME: Include the comments suggested by Paul. */
  5552. #ifndef __cplusplus
  5553. /* Ultrix mips cc rejects this. */
  5554. typedef int charset[2];
  5555. const charset x;
  5556. /* SunOS 4.1.1 cc rejects this. */
  5557. char const *const *ccp;
  5558. char **p;
  5559. /* NEC SVR4.0.2 mips cc rejects this. */
  5560. struct point {int x, y;};
  5561. static struct point const zero = {0,0};
  5562. /* AIX XL C 1.02.0.0 rejects this.
  5563. It does not let you subtract one const X* pointer from another in
  5564. an arm of an if-expression whose if-part is not a constant
  5565. expression */
  5566. const char *g = "string";
  5567. ccp = &g + (g ? g-g : 0);
  5568. /* HPUX 7.0 cc rejects these. */
  5569. ++ccp;
  5570. p = (char**) ccp;
  5571. ccp = (char const *const *) p;
  5572. { /* SCO 3.2v4 cc rejects this. */
  5573. char *t;
  5574. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5575. *t++ = 0;
  5576. }
  5577. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5578. int x[] = {25, 17};
  5579. const int *foo = &x[0];
  5580. ++foo;
  5581. }
  5582. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5583. typedef const int *iptr;
  5584. iptr p = 0;
  5585. ++p;
  5586. }
  5587. { /* AIX XL C 1.02.0.0 rejects this saying
  5588. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5589. struct s { int j; const int *ap[3]; };
  5590. struct s *b; b->j = 5;
  5591. }
  5592. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5593. const int foo = 10;
  5594. }
  5595. #endif
  5596. ;
  5597. return 0;
  5598. }
  5599. _ACEOF
  5600. rm -f conftest.$ac_objext
  5601. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5602. (eval $ac_compile) 2>conftest.er1
  5603. ac_status=$?
  5604. grep -v '^ *+' conftest.er1 >conftest.err
  5605. rm -f conftest.er1
  5606. cat conftest.err >&5
  5607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5608. (exit $ac_status); } &&
  5609. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5610. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5611. (eval $ac_try) 2>&5
  5612. ac_status=$?
  5613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5614. (exit $ac_status); }; } &&
  5615. { ac_try='test -s conftest.$ac_objext'
  5616. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5617. (eval $ac_try) 2>&5
  5618. ac_status=$?
  5619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5620. (exit $ac_status); }; }; then
  5621. ac_cv_c_const=yes
  5622. else
  5623. echo "$as_me: failed program was:" >&5
  5624. sed 's/^/| /' conftest.$ac_ext >&5
  5625. ac_cv_c_const=no
  5626. fi
  5627. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5628. fi
  5629. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5630. echo "${ECHO_T}$ac_cv_c_const" >&6
  5631. if test $ac_cv_c_const = no; then
  5632. cat >>confdefs.h <<\_ACEOF
  5633. #define const
  5634. _ACEOF
  5635. fi
  5636. echo "$as_me:$LINENO: checking for working volatile" >&5
  5637. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  5638. if test "${ac_cv_c_volatile+set}" = set; then
  5639. echo $ECHO_N "(cached) $ECHO_C" >&6
  5640. else
  5641. cat >conftest.$ac_ext <<_ACEOF
  5642. /* confdefs.h. */
  5643. _ACEOF
  5644. cat confdefs.h >>conftest.$ac_ext
  5645. cat >>conftest.$ac_ext <<_ACEOF
  5646. /* end confdefs.h. */
  5647. int
  5648. main ()
  5649. {
  5650. volatile int x;
  5651. int * volatile y;
  5652. ;
  5653. return 0;
  5654. }
  5655. _ACEOF
  5656. rm -f conftest.$ac_objext
  5657. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5658. (eval $ac_compile) 2>conftest.er1
  5659. ac_status=$?
  5660. grep -v '^ *+' conftest.er1 >conftest.err
  5661. rm -f conftest.er1
  5662. cat conftest.err >&5
  5663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5664. (exit $ac_status); } &&
  5665. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5666. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5667. (eval $ac_try) 2>&5
  5668. ac_status=$?
  5669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5670. (exit $ac_status); }; } &&
  5671. { ac_try='test -s conftest.$ac_objext'
  5672. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5673. (eval $ac_try) 2>&5
  5674. ac_status=$?
  5675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5676. (exit $ac_status); }; }; then
  5677. ac_cv_c_volatile=yes
  5678. else
  5679. echo "$as_me: failed program was:" >&5
  5680. sed 's/^/| /' conftest.$ac_ext >&5
  5681. ac_cv_c_volatile=no
  5682. fi
  5683. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5684. fi
  5685. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5686. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  5687. if test $ac_cv_c_volatile = no; then
  5688. cat >>confdefs.h <<\_ACEOF
  5689. #define volatile
  5690. _ACEOF
  5691. fi
  5692. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5693. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5694. if test "${ac_cv_c_bigendian+set}" = set; then
  5695. echo $ECHO_N "(cached) $ECHO_C" >&6
  5696. else
  5697. # See if sys/param.h defines the BYTE_ORDER macro.
  5698. cat >conftest.$ac_ext <<_ACEOF
  5699. /* confdefs.h. */
  5700. _ACEOF
  5701. cat confdefs.h >>conftest.$ac_ext
  5702. cat >>conftest.$ac_ext <<_ACEOF
  5703. /* end confdefs.h. */
  5704. #include <sys/types.h>
  5705. #include <sys/param.h>
  5706. int
  5707. main ()
  5708. {
  5709. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5710. bogus endian macros
  5711. #endif
  5712. ;
  5713. return 0;
  5714. }
  5715. _ACEOF
  5716. rm -f conftest.$ac_objext
  5717. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5718. (eval $ac_compile) 2>conftest.er1
  5719. ac_status=$?
  5720. grep -v '^ *+' conftest.er1 >conftest.err
  5721. rm -f conftest.er1
  5722. cat conftest.err >&5
  5723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5724. (exit $ac_status); } &&
  5725. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5726. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5727. (eval $ac_try) 2>&5
  5728. ac_status=$?
  5729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5730. (exit $ac_status); }; } &&
  5731. { ac_try='test -s conftest.$ac_objext'
  5732. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5733. (eval $ac_try) 2>&5
  5734. ac_status=$?
  5735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5736. (exit $ac_status); }; }; then
  5737. # It does; now see whether it defined to BIG_ENDIAN or not.
  5738. cat >conftest.$ac_ext <<_ACEOF
  5739. /* confdefs.h. */
  5740. _ACEOF
  5741. cat confdefs.h >>conftest.$ac_ext
  5742. cat >>conftest.$ac_ext <<_ACEOF
  5743. /* end confdefs.h. */
  5744. #include <sys/types.h>
  5745. #include <sys/param.h>
  5746. int
  5747. main ()
  5748. {
  5749. #if BYTE_ORDER != BIG_ENDIAN
  5750. not big endian
  5751. #endif
  5752. ;
  5753. return 0;
  5754. }
  5755. _ACEOF
  5756. rm -f conftest.$ac_objext
  5757. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5758. (eval $ac_compile) 2>conftest.er1
  5759. ac_status=$?
  5760. grep -v '^ *+' conftest.er1 >conftest.err
  5761. rm -f conftest.er1
  5762. cat conftest.err >&5
  5763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5764. (exit $ac_status); } &&
  5765. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5766. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5767. (eval $ac_try) 2>&5
  5768. ac_status=$?
  5769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5770. (exit $ac_status); }; } &&
  5771. { ac_try='test -s conftest.$ac_objext'
  5772. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5773. (eval $ac_try) 2>&5
  5774. ac_status=$?
  5775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5776. (exit $ac_status); }; }; then
  5777. ac_cv_c_bigendian=yes
  5778. else
  5779. echo "$as_me: failed program was:" >&5
  5780. sed 's/^/| /' conftest.$ac_ext >&5
  5781. ac_cv_c_bigendian=no
  5782. fi
  5783. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5784. else
  5785. echo "$as_me: failed program was:" >&5
  5786. sed 's/^/| /' conftest.$ac_ext >&5
  5787. # It does not; compile a test program.
  5788. if test "$cross_compiling" = yes; then
  5789. # try to guess the endianness by grepping values into an object file
  5790. ac_cv_c_bigendian=unknown
  5791. cat >conftest.$ac_ext <<_ACEOF
  5792. /* confdefs.h. */
  5793. _ACEOF
  5794. cat confdefs.h >>conftest.$ac_ext
  5795. cat >>conftest.$ac_ext <<_ACEOF
  5796. /* end confdefs.h. */
  5797. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5798. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5799. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5800. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5801. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5802. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5803. int
  5804. main ()
  5805. {
  5806. _ascii (); _ebcdic ();
  5807. ;
  5808. return 0;
  5809. }
  5810. _ACEOF
  5811. rm -f conftest.$ac_objext
  5812. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5813. (eval $ac_compile) 2>conftest.er1
  5814. ac_status=$?
  5815. grep -v '^ *+' conftest.er1 >conftest.err
  5816. rm -f conftest.er1
  5817. cat conftest.err >&5
  5818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5819. (exit $ac_status); } &&
  5820. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5821. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5822. (eval $ac_try) 2>&5
  5823. ac_status=$?
  5824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5825. (exit $ac_status); }; } &&
  5826. { ac_try='test -s conftest.$ac_objext'
  5827. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5828. (eval $ac_try) 2>&5
  5829. ac_status=$?
  5830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5831. (exit $ac_status); }; }; then
  5832. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5833. ac_cv_c_bigendian=yes
  5834. fi
  5835. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5836. if test "$ac_cv_c_bigendian" = unknown; then
  5837. ac_cv_c_bigendian=no
  5838. else
  5839. # finding both strings is unlikely to happen, but who knows?
  5840. ac_cv_c_bigendian=unknown
  5841. fi
  5842. fi
  5843. else
  5844. echo "$as_me: failed program was:" >&5
  5845. sed 's/^/| /' conftest.$ac_ext >&5
  5846. fi
  5847. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5848. else
  5849. cat >conftest.$ac_ext <<_ACEOF
  5850. /* confdefs.h. */
  5851. _ACEOF
  5852. cat confdefs.h >>conftest.$ac_ext
  5853. cat >>conftest.$ac_ext <<_ACEOF
  5854. /* end confdefs.h. */
  5855. int
  5856. main ()
  5857. {
  5858. /* Are we little or big endian? From Harbison&Steele. */
  5859. union
  5860. {
  5861. long l;
  5862. char c[sizeof (long)];
  5863. } u;
  5864. u.l = 1;
  5865. exit (u.c[sizeof (long) - 1] == 1);
  5866. }
  5867. _ACEOF
  5868. rm -f conftest$ac_exeext
  5869. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5870. (eval $ac_link) 2>&5
  5871. ac_status=$?
  5872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5873. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5875. (eval $ac_try) 2>&5
  5876. ac_status=$?
  5877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5878. (exit $ac_status); }; }; then
  5879. ac_cv_c_bigendian=no
  5880. else
  5881. echo "$as_me: program exited with status $ac_status" >&5
  5882. echo "$as_me: failed program was:" >&5
  5883. sed 's/^/| /' conftest.$ac_ext >&5
  5884. ( exit $ac_status )
  5885. ac_cv_c_bigendian=yes
  5886. fi
  5887. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5888. fi
  5889. fi
  5890. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5891. fi
  5892. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  5893. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  5894. case $ac_cv_c_bigendian in
  5895. yes)
  5896. cat >>confdefs.h <<\_ACEOF
  5897. #define WORDS_BIGENDIAN 1
  5898. _ACEOF
  5899. ;;
  5900. no)
  5901. ;;
  5902. *)
  5903. { { echo "$as_me:$LINENO: error: unknown endianness
  5904. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  5905. echo "$as_me: error: unknown endianness
  5906. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  5907. { (exit 1); exit 1; }; } ;;
  5908. esac
  5909. echo "$as_me:$LINENO: checking for inline" >&5
  5910. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  5911. if test "${ac_cv_c_inline+set}" = set; then
  5912. echo $ECHO_N "(cached) $ECHO_C" >&6
  5913. else
  5914. ac_cv_c_inline=no
  5915. for ac_kw in inline __inline__ __inline; do
  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. #ifndef __cplusplus
  5923. typedef int foo_t;
  5924. static $ac_kw foo_t static_foo () {return 0; }
  5925. $ac_kw foo_t foo () {return 0; }
  5926. #endif
  5927. _ACEOF
  5928. rm -f conftest.$ac_objext
  5929. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5930. (eval $ac_compile) 2>conftest.er1
  5931. ac_status=$?
  5932. grep -v '^ *+' conftest.er1 >conftest.err
  5933. rm -f conftest.er1
  5934. cat conftest.err >&5
  5935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5936. (exit $ac_status); } &&
  5937. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5938. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5939. (eval $ac_try) 2>&5
  5940. ac_status=$?
  5941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5942. (exit $ac_status); }; } &&
  5943. { ac_try='test -s conftest.$ac_objext'
  5944. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5945. (eval $ac_try) 2>&5
  5946. ac_status=$?
  5947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5948. (exit $ac_status); }; }; then
  5949. ac_cv_c_inline=$ac_kw; break
  5950. else
  5951. echo "$as_me: failed program was:" >&5
  5952. sed 's/^/| /' conftest.$ac_ext >&5
  5953. fi
  5954. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5955. done
  5956. fi
  5957. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  5958. echo "${ECHO_T}$ac_cv_c_inline" >&6
  5959. case $ac_cv_c_inline in
  5960. inline | yes) ;;
  5961. *)
  5962. case $ac_cv_c_inline in
  5963. no) ac_val=;;
  5964. *) ac_val=$ac_cv_c_inline;;
  5965. esac
  5966. cat >>confdefs.h <<_ACEOF
  5967. #ifndef __cplusplus
  5968. #define inline $ac_val
  5969. #endif
  5970. _ACEOF
  5971. ;;
  5972. esac
  5973. echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  5974. echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
  5975. if test "${ac_cv_c_char_unsigned+set}" = set; then
  5976. echo $ECHO_N "(cached) $ECHO_C" >&6
  5977. else
  5978. cat >conftest.$ac_ext <<_ACEOF
  5979. /* confdefs.h. */
  5980. _ACEOF
  5981. cat confdefs.h >>conftest.$ac_ext
  5982. cat >>conftest.$ac_ext <<_ACEOF
  5983. /* end confdefs.h. */
  5984. $ac_includes_default
  5985. int
  5986. main ()
  5987. {
  5988. static int test_array [1 - 2 * !(((char) -1) < 0)];
  5989. test_array [0] = 0
  5990. ;
  5991. return 0;
  5992. }
  5993. _ACEOF
  5994. rm -f conftest.$ac_objext
  5995. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5996. (eval $ac_compile) 2>conftest.er1
  5997. ac_status=$?
  5998. grep -v '^ *+' conftest.er1 >conftest.err
  5999. rm -f conftest.er1
  6000. cat conftest.err >&5
  6001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6002. (exit $ac_status); } &&
  6003. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6005. (eval $ac_try) 2>&5
  6006. ac_status=$?
  6007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6008. (exit $ac_status); }; } &&
  6009. { ac_try='test -s conftest.$ac_objext'
  6010. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6011. (eval $ac_try) 2>&5
  6012. ac_status=$?
  6013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6014. (exit $ac_status); }; }; then
  6015. ac_cv_c_char_unsigned=no
  6016. else
  6017. echo "$as_me: failed program was:" >&5
  6018. sed 's/^/| /' conftest.$ac_ext >&5
  6019. ac_cv_c_char_unsigned=yes
  6020. fi
  6021. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6022. fi
  6023. echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  6024. echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
  6025. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6026. cat >>confdefs.h <<\_ACEOF
  6027. #define __CHAR_UNSIGNED__ 1
  6028. _ACEOF
  6029. fi
  6030. echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
  6031. echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
  6032. if test "${ac_cv_c_stringize+set}" = set; then
  6033. echo $ECHO_N "(cached) $ECHO_C" >&6
  6034. else
  6035. cat >conftest.$ac_ext <<_ACEOF
  6036. /* confdefs.h. */
  6037. _ACEOF
  6038. cat confdefs.h >>conftest.$ac_ext
  6039. cat >>conftest.$ac_ext <<_ACEOF
  6040. /* end confdefs.h. */
  6041. #define x(y) #y
  6042. char *s = x(teststring);
  6043. _ACEOF
  6044. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6045. $EGREP "#teststring" >/dev/null 2>&1; then
  6046. ac_cv_c_stringize=no
  6047. else
  6048. ac_cv_c_stringize=yes
  6049. fi
  6050. rm -f conftest*
  6051. fi
  6052. echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
  6053. echo "${ECHO_T}$ac_cv_c_stringize" >&6
  6054. if test $ac_cv_c_stringize = yes; then
  6055. cat >>confdefs.h <<\_ACEOF
  6056. #define HAVE_STRINGIZE 1
  6057. _ACEOF
  6058. fi
  6059. echo "$as_me:$LINENO: checking for function prototypes" >&5
  6060. echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
  6061. if test "$ac_cv_prog_cc_stdc" != no; then
  6062. echo "$as_me:$LINENO: result: yes" >&5
  6063. echo "${ECHO_T}yes" >&6
  6064. cat >>confdefs.h <<\_ACEOF
  6065. #define PROTOTYPES 1
  6066. _ACEOF
  6067. cat >>confdefs.h <<\_ACEOF
  6068. #define __PROTOTYPES 1
  6069. _ACEOF
  6070. else
  6071. echo "$as_me:$LINENO: result: no" >&5
  6072. echo "${ECHO_T}no" >&6
  6073. fi
  6074. #checkpoint
  6075. cat >confcache <<\_ACEOF
  6076. # This file is a shell script that caches the results of configure
  6077. # tests run on this system so they can be shared between configure
  6078. # scripts and configure runs, see configure's option --config-cache.
  6079. # It is not useful on other systems. If it contains results you don't
  6080. # want to keep, you may remove or edit it.
  6081. #
  6082. # config.status only pays attention to the cache file if you give it
  6083. # the --recheck option to rerun configure.
  6084. #
  6085. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6086. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6087. # following values.
  6088. _ACEOF
  6089. # The following way of writing the cache mishandles newlines in values,
  6090. # but we know of no workaround that is simple, portable, and efficient.
  6091. # So, don't put newlines in cache variables' values.
  6092. # Ultrix sh set writes to stderr and can't be redirected directly,
  6093. # and sets the high bit in the cache file unless we assign to the vars.
  6094. {
  6095. (set) 2>&1 |
  6096. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6097. *ac_space=\ *)
  6098. # `set' does not quote correctly, so add quotes (double-quote
  6099. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6100. sed -n \
  6101. "s/'/'\\\\''/g;
  6102. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6103. ;;
  6104. *)
  6105. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6106. sed -n \
  6107. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6108. ;;
  6109. esac;
  6110. } |
  6111. sed '
  6112. t clear
  6113. : clear
  6114. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6115. t end
  6116. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6117. : end' >>confcache
  6118. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6119. if test -w $cache_file; then
  6120. test "x$cache_file" != "x/dev/null"
  6121. cat confcache >$cache_file
  6122. else
  6123. echo "not updating unwritable cache $cache_file"
  6124. fi
  6125. fi
  6126. rm -f confcache
  6127. echo "$as_me:$LINENO: checking for int" >&5
  6128. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6129. if test "${ac_cv_type_int+set}" = set; then
  6130. echo $ECHO_N "(cached) $ECHO_C" >&6
  6131. else
  6132. cat >conftest.$ac_ext <<_ACEOF
  6133. /* confdefs.h. */
  6134. _ACEOF
  6135. cat confdefs.h >>conftest.$ac_ext
  6136. cat >>conftest.$ac_ext <<_ACEOF
  6137. /* end confdefs.h. */
  6138. $ac_includes_default
  6139. int
  6140. main ()
  6141. {
  6142. if ((int *) 0)
  6143. return 0;
  6144. if (sizeof (int))
  6145. return 0;
  6146. ;
  6147. return 0;
  6148. }
  6149. _ACEOF
  6150. rm -f conftest.$ac_objext
  6151. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6152. (eval $ac_compile) 2>conftest.er1
  6153. ac_status=$?
  6154. grep -v '^ *+' conftest.er1 >conftest.err
  6155. rm -f conftest.er1
  6156. cat conftest.err >&5
  6157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6158. (exit $ac_status); } &&
  6159. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6160. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6161. (eval $ac_try) 2>&5
  6162. ac_status=$?
  6163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6164. (exit $ac_status); }; } &&
  6165. { ac_try='test -s conftest.$ac_objext'
  6166. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6167. (eval $ac_try) 2>&5
  6168. ac_status=$?
  6169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6170. (exit $ac_status); }; }; then
  6171. ac_cv_type_int=yes
  6172. else
  6173. echo "$as_me: failed program was:" >&5
  6174. sed 's/^/| /' conftest.$ac_ext >&5
  6175. ac_cv_type_int=no
  6176. fi
  6177. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6178. fi
  6179. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6180. echo "${ECHO_T}$ac_cv_type_int" >&6
  6181. echo "$as_me:$LINENO: checking size of int" >&5
  6182. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6183. if test "${ac_cv_sizeof_int+set}" = set; then
  6184. echo $ECHO_N "(cached) $ECHO_C" >&6
  6185. else
  6186. if test "$ac_cv_type_int" = yes; then
  6187. # The cast to unsigned long works around a bug in the HP C Compiler
  6188. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6189. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6190. # This bug is HP SR number 8606223364.
  6191. if test "$cross_compiling" = yes; then
  6192. # Depending upon the size, compute the lo and hi bounds.
  6193. cat >conftest.$ac_ext <<_ACEOF
  6194. /* confdefs.h. */
  6195. _ACEOF
  6196. cat confdefs.h >>conftest.$ac_ext
  6197. cat >>conftest.$ac_ext <<_ACEOF
  6198. /* end confdefs.h. */
  6199. $ac_includes_default
  6200. int
  6201. main ()
  6202. {
  6203. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6204. test_array [0] = 0
  6205. ;
  6206. return 0;
  6207. }
  6208. _ACEOF
  6209. rm -f conftest.$ac_objext
  6210. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6211. (eval $ac_compile) 2>conftest.er1
  6212. ac_status=$?
  6213. grep -v '^ *+' conftest.er1 >conftest.err
  6214. rm -f conftest.er1
  6215. cat conftest.err >&5
  6216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6217. (exit $ac_status); } &&
  6218. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6219. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6220. (eval $ac_try) 2>&5
  6221. ac_status=$?
  6222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6223. (exit $ac_status); }; } &&
  6224. { ac_try='test -s conftest.$ac_objext'
  6225. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6226. (eval $ac_try) 2>&5
  6227. ac_status=$?
  6228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6229. (exit $ac_status); }; }; then
  6230. ac_lo=0 ac_mid=0
  6231. while :; do
  6232. cat >conftest.$ac_ext <<_ACEOF
  6233. /* confdefs.h. */
  6234. _ACEOF
  6235. cat confdefs.h >>conftest.$ac_ext
  6236. cat >>conftest.$ac_ext <<_ACEOF
  6237. /* end confdefs.h. */
  6238. $ac_includes_default
  6239. int
  6240. main ()
  6241. {
  6242. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6243. test_array [0] = 0
  6244. ;
  6245. return 0;
  6246. }
  6247. _ACEOF
  6248. rm -f conftest.$ac_objext
  6249. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6250. (eval $ac_compile) 2>conftest.er1
  6251. ac_status=$?
  6252. grep -v '^ *+' conftest.er1 >conftest.err
  6253. rm -f conftest.er1
  6254. cat conftest.err >&5
  6255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6256. (exit $ac_status); } &&
  6257. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6259. (eval $ac_try) 2>&5
  6260. ac_status=$?
  6261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6262. (exit $ac_status); }; } &&
  6263. { ac_try='test -s conftest.$ac_objext'
  6264. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6265. (eval $ac_try) 2>&5
  6266. ac_status=$?
  6267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6268. (exit $ac_status); }; }; then
  6269. ac_hi=$ac_mid; break
  6270. else
  6271. echo "$as_me: failed program was:" >&5
  6272. sed 's/^/| /' conftest.$ac_ext >&5
  6273. ac_lo=`expr $ac_mid + 1`
  6274. if test $ac_lo -le $ac_mid; then
  6275. ac_lo= ac_hi=
  6276. break
  6277. fi
  6278. ac_mid=`expr 2 '*' $ac_mid + 1`
  6279. fi
  6280. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6281. done
  6282. else
  6283. echo "$as_me: failed program was:" >&5
  6284. sed 's/^/| /' conftest.$ac_ext >&5
  6285. cat >conftest.$ac_ext <<_ACEOF
  6286. /* confdefs.h. */
  6287. _ACEOF
  6288. cat confdefs.h >>conftest.$ac_ext
  6289. cat >>conftest.$ac_ext <<_ACEOF
  6290. /* end confdefs.h. */
  6291. $ac_includes_default
  6292. int
  6293. main ()
  6294. {
  6295. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6296. test_array [0] = 0
  6297. ;
  6298. return 0;
  6299. }
  6300. _ACEOF
  6301. rm -f conftest.$ac_objext
  6302. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6303. (eval $ac_compile) 2>conftest.er1
  6304. ac_status=$?
  6305. grep -v '^ *+' conftest.er1 >conftest.err
  6306. rm -f conftest.er1
  6307. cat conftest.err >&5
  6308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6309. (exit $ac_status); } &&
  6310. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6311. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6312. (eval $ac_try) 2>&5
  6313. ac_status=$?
  6314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6315. (exit $ac_status); }; } &&
  6316. { ac_try='test -s conftest.$ac_objext'
  6317. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6318. (eval $ac_try) 2>&5
  6319. ac_status=$?
  6320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6321. (exit $ac_status); }; }; then
  6322. ac_hi=-1 ac_mid=-1
  6323. while :; do
  6324. cat >conftest.$ac_ext <<_ACEOF
  6325. /* confdefs.h. */
  6326. _ACEOF
  6327. cat confdefs.h >>conftest.$ac_ext
  6328. cat >>conftest.$ac_ext <<_ACEOF
  6329. /* end confdefs.h. */
  6330. $ac_includes_default
  6331. int
  6332. main ()
  6333. {
  6334. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6335. test_array [0] = 0
  6336. ;
  6337. return 0;
  6338. }
  6339. _ACEOF
  6340. rm -f conftest.$ac_objext
  6341. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6342. (eval $ac_compile) 2>conftest.er1
  6343. ac_status=$?
  6344. grep -v '^ *+' conftest.er1 >conftest.err
  6345. rm -f conftest.er1
  6346. cat conftest.err >&5
  6347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6348. (exit $ac_status); } &&
  6349. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6350. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6351. (eval $ac_try) 2>&5
  6352. ac_status=$?
  6353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6354. (exit $ac_status); }; } &&
  6355. { ac_try='test -s conftest.$ac_objext'
  6356. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6357. (eval $ac_try) 2>&5
  6358. ac_status=$?
  6359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6360. (exit $ac_status); }; }; then
  6361. ac_lo=$ac_mid; break
  6362. else
  6363. echo "$as_me: failed program was:" >&5
  6364. sed 's/^/| /' conftest.$ac_ext >&5
  6365. ac_hi=`expr '(' $ac_mid ')' - 1`
  6366. if test $ac_mid -le $ac_hi; then
  6367. ac_lo= ac_hi=
  6368. break
  6369. fi
  6370. ac_mid=`expr 2 '*' $ac_mid`
  6371. fi
  6372. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6373. done
  6374. else
  6375. echo "$as_me: failed program was:" >&5
  6376. sed 's/^/| /' conftest.$ac_ext >&5
  6377. ac_lo= ac_hi=
  6378. fi
  6379. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6380. fi
  6381. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6382. # Binary search between lo and hi bounds.
  6383. while test "x$ac_lo" != "x$ac_hi"; do
  6384. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6385. cat >conftest.$ac_ext <<_ACEOF
  6386. /* confdefs.h. */
  6387. _ACEOF
  6388. cat confdefs.h >>conftest.$ac_ext
  6389. cat >>conftest.$ac_ext <<_ACEOF
  6390. /* end confdefs.h. */
  6391. $ac_includes_default
  6392. int
  6393. main ()
  6394. {
  6395. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6396. test_array [0] = 0
  6397. ;
  6398. return 0;
  6399. }
  6400. _ACEOF
  6401. rm -f conftest.$ac_objext
  6402. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6403. (eval $ac_compile) 2>conftest.er1
  6404. ac_status=$?
  6405. grep -v '^ *+' conftest.er1 >conftest.err
  6406. rm -f conftest.er1
  6407. cat conftest.err >&5
  6408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6409. (exit $ac_status); } &&
  6410. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6411. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6412. (eval $ac_try) 2>&5
  6413. ac_status=$?
  6414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6415. (exit $ac_status); }; } &&
  6416. { ac_try='test -s conftest.$ac_objext'
  6417. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6418. (eval $ac_try) 2>&5
  6419. ac_status=$?
  6420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6421. (exit $ac_status); }; }; then
  6422. ac_hi=$ac_mid
  6423. else
  6424. echo "$as_me: failed program was:" >&5
  6425. sed 's/^/| /' conftest.$ac_ext >&5
  6426. ac_lo=`expr '(' $ac_mid ')' + 1`
  6427. fi
  6428. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6429. done
  6430. case $ac_lo in
  6431. ?*) ac_cv_sizeof_int=$ac_lo;;
  6432. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6433. See \`config.log' for more details." >&5
  6434. echo "$as_me: error: cannot compute sizeof (int), 77
  6435. See \`config.log' for more details." >&2;}
  6436. { (exit 1); exit 1; }; } ;;
  6437. esac
  6438. else
  6439. if test "$cross_compiling" = yes; then
  6440. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6441. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6442. { (exit 1); exit 1; }; }
  6443. else
  6444. cat >conftest.$ac_ext <<_ACEOF
  6445. /* confdefs.h. */
  6446. _ACEOF
  6447. cat confdefs.h >>conftest.$ac_ext
  6448. cat >>conftest.$ac_ext <<_ACEOF
  6449. /* end confdefs.h. */
  6450. $ac_includes_default
  6451. long longval () { return (long) (sizeof (int)); }
  6452. unsigned long ulongval () { return (long) (sizeof (int)); }
  6453. #include <stdio.h>
  6454. #include <stdlib.h>
  6455. int
  6456. main ()
  6457. {
  6458. FILE *f = fopen ("conftest.val", "w");
  6459. if (! f)
  6460. exit (1);
  6461. if (((long) (sizeof (int))) < 0)
  6462. {
  6463. long i = longval ();
  6464. if (i != ((long) (sizeof (int))))
  6465. exit (1);
  6466. fprintf (f, "%ld\n", i);
  6467. }
  6468. else
  6469. {
  6470. unsigned long i = ulongval ();
  6471. if (i != ((long) (sizeof (int))))
  6472. exit (1);
  6473. fprintf (f, "%lu\n", i);
  6474. }
  6475. exit (ferror (f) || fclose (f) != 0);
  6476. ;
  6477. return 0;
  6478. }
  6479. _ACEOF
  6480. rm -f conftest$ac_exeext
  6481. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6482. (eval $ac_link) 2>&5
  6483. ac_status=$?
  6484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6485. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6486. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6487. (eval $ac_try) 2>&5
  6488. ac_status=$?
  6489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6490. (exit $ac_status); }; }; then
  6491. ac_cv_sizeof_int=`cat conftest.val`
  6492. else
  6493. echo "$as_me: program exited with status $ac_status" >&5
  6494. echo "$as_me: failed program was:" >&5
  6495. sed 's/^/| /' conftest.$ac_ext >&5
  6496. ( exit $ac_status )
  6497. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6498. See \`config.log' for more details." >&5
  6499. echo "$as_me: error: cannot compute sizeof (int), 77
  6500. See \`config.log' for more details." >&2;}
  6501. { (exit 1); exit 1; }; }
  6502. fi
  6503. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6504. fi
  6505. fi
  6506. rm -f conftest.val
  6507. else
  6508. ac_cv_sizeof_int=0
  6509. fi
  6510. fi
  6511. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6512. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6513. cat >>confdefs.h <<_ACEOF
  6514. #define SIZEOF_INT $ac_cv_sizeof_int
  6515. _ACEOF
  6516. echo "$as_me:$LINENO: checking for short" >&5
  6517. echo $ECHO_N "checking for short... $ECHO_C" >&6
  6518. if test "${ac_cv_type_short+set}" = set; then
  6519. echo $ECHO_N "(cached) $ECHO_C" >&6
  6520. else
  6521. cat >conftest.$ac_ext <<_ACEOF
  6522. /* confdefs.h. */
  6523. _ACEOF
  6524. cat confdefs.h >>conftest.$ac_ext
  6525. cat >>conftest.$ac_ext <<_ACEOF
  6526. /* end confdefs.h. */
  6527. $ac_includes_default
  6528. int
  6529. main ()
  6530. {
  6531. if ((short *) 0)
  6532. return 0;
  6533. if (sizeof (short))
  6534. return 0;
  6535. ;
  6536. return 0;
  6537. }
  6538. _ACEOF
  6539. rm -f conftest.$ac_objext
  6540. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6541. (eval $ac_compile) 2>conftest.er1
  6542. ac_status=$?
  6543. grep -v '^ *+' conftest.er1 >conftest.err
  6544. rm -f conftest.er1
  6545. cat conftest.err >&5
  6546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6547. (exit $ac_status); } &&
  6548. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6550. (eval $ac_try) 2>&5
  6551. ac_status=$?
  6552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6553. (exit $ac_status); }; } &&
  6554. { ac_try='test -s conftest.$ac_objext'
  6555. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6556. (eval $ac_try) 2>&5
  6557. ac_status=$?
  6558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6559. (exit $ac_status); }; }; then
  6560. ac_cv_type_short=yes
  6561. else
  6562. echo "$as_me: failed program was:" >&5
  6563. sed 's/^/| /' conftest.$ac_ext >&5
  6564. ac_cv_type_short=no
  6565. fi
  6566. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6567. fi
  6568. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  6569. echo "${ECHO_T}$ac_cv_type_short" >&6
  6570. echo "$as_me:$LINENO: checking size of short" >&5
  6571. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  6572. if test "${ac_cv_sizeof_short+set}" = set; then
  6573. echo $ECHO_N "(cached) $ECHO_C" >&6
  6574. else
  6575. if test "$ac_cv_type_short" = yes; then
  6576. # The cast to unsigned long works around a bug in the HP C Compiler
  6577. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6578. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6579. # This bug is HP SR number 8606223364.
  6580. if test "$cross_compiling" = yes; then
  6581. # Depending upon the size, compute the lo and hi bounds.
  6582. cat >conftest.$ac_ext <<_ACEOF
  6583. /* confdefs.h. */
  6584. _ACEOF
  6585. cat confdefs.h >>conftest.$ac_ext
  6586. cat >>conftest.$ac_ext <<_ACEOF
  6587. /* end confdefs.h. */
  6588. $ac_includes_default
  6589. int
  6590. main ()
  6591. {
  6592. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  6593. test_array [0] = 0
  6594. ;
  6595. return 0;
  6596. }
  6597. _ACEOF
  6598. rm -f conftest.$ac_objext
  6599. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6600. (eval $ac_compile) 2>conftest.er1
  6601. ac_status=$?
  6602. grep -v '^ *+' conftest.er1 >conftest.err
  6603. rm -f conftest.er1
  6604. cat conftest.err >&5
  6605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6606. (exit $ac_status); } &&
  6607. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6608. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6609. (eval $ac_try) 2>&5
  6610. ac_status=$?
  6611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6612. (exit $ac_status); }; } &&
  6613. { ac_try='test -s conftest.$ac_objext'
  6614. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6615. (eval $ac_try) 2>&5
  6616. ac_status=$?
  6617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6618. (exit $ac_status); }; }; then
  6619. ac_lo=0 ac_mid=0
  6620. while :; do
  6621. cat >conftest.$ac_ext <<_ACEOF
  6622. /* confdefs.h. */
  6623. _ACEOF
  6624. cat confdefs.h >>conftest.$ac_ext
  6625. cat >>conftest.$ac_ext <<_ACEOF
  6626. /* end confdefs.h. */
  6627. $ac_includes_default
  6628. int
  6629. main ()
  6630. {
  6631. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6632. test_array [0] = 0
  6633. ;
  6634. return 0;
  6635. }
  6636. _ACEOF
  6637. rm -f conftest.$ac_objext
  6638. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6639. (eval $ac_compile) 2>conftest.er1
  6640. ac_status=$?
  6641. grep -v '^ *+' conftest.er1 >conftest.err
  6642. rm -f conftest.er1
  6643. cat conftest.err >&5
  6644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6645. (exit $ac_status); } &&
  6646. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6648. (eval $ac_try) 2>&5
  6649. ac_status=$?
  6650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6651. (exit $ac_status); }; } &&
  6652. { ac_try='test -s conftest.$ac_objext'
  6653. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6654. (eval $ac_try) 2>&5
  6655. ac_status=$?
  6656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6657. (exit $ac_status); }; }; then
  6658. ac_hi=$ac_mid; break
  6659. else
  6660. echo "$as_me: failed program was:" >&5
  6661. sed 's/^/| /' conftest.$ac_ext >&5
  6662. ac_lo=`expr $ac_mid + 1`
  6663. if test $ac_lo -le $ac_mid; then
  6664. ac_lo= ac_hi=
  6665. break
  6666. fi
  6667. ac_mid=`expr 2 '*' $ac_mid + 1`
  6668. fi
  6669. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6670. done
  6671. else
  6672. echo "$as_me: failed program was:" >&5
  6673. sed 's/^/| /' conftest.$ac_ext >&5
  6674. cat >conftest.$ac_ext <<_ACEOF
  6675. /* confdefs.h. */
  6676. _ACEOF
  6677. cat confdefs.h >>conftest.$ac_ext
  6678. cat >>conftest.$ac_ext <<_ACEOF
  6679. /* end confdefs.h. */
  6680. $ac_includes_default
  6681. int
  6682. main ()
  6683. {
  6684. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  6685. test_array [0] = 0
  6686. ;
  6687. return 0;
  6688. }
  6689. _ACEOF
  6690. rm -f conftest.$ac_objext
  6691. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6692. (eval $ac_compile) 2>conftest.er1
  6693. ac_status=$?
  6694. grep -v '^ *+' conftest.er1 >conftest.err
  6695. rm -f conftest.er1
  6696. cat conftest.err >&5
  6697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6698. (exit $ac_status); } &&
  6699. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6700. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6701. (eval $ac_try) 2>&5
  6702. ac_status=$?
  6703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6704. (exit $ac_status); }; } &&
  6705. { ac_try='test -s conftest.$ac_objext'
  6706. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6707. (eval $ac_try) 2>&5
  6708. ac_status=$?
  6709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6710. (exit $ac_status); }; }; then
  6711. ac_hi=-1 ac_mid=-1
  6712. while :; do
  6713. cat >conftest.$ac_ext <<_ACEOF
  6714. /* confdefs.h. */
  6715. _ACEOF
  6716. cat confdefs.h >>conftest.$ac_ext
  6717. cat >>conftest.$ac_ext <<_ACEOF
  6718. /* end confdefs.h. */
  6719. $ac_includes_default
  6720. int
  6721. main ()
  6722. {
  6723. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  6724. test_array [0] = 0
  6725. ;
  6726. return 0;
  6727. }
  6728. _ACEOF
  6729. rm -f conftest.$ac_objext
  6730. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6731. (eval $ac_compile) 2>conftest.er1
  6732. ac_status=$?
  6733. grep -v '^ *+' conftest.er1 >conftest.err
  6734. rm -f conftest.er1
  6735. cat conftest.err >&5
  6736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6737. (exit $ac_status); } &&
  6738. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6739. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6740. (eval $ac_try) 2>&5
  6741. ac_status=$?
  6742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6743. (exit $ac_status); }; } &&
  6744. { ac_try='test -s conftest.$ac_objext'
  6745. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6746. (eval $ac_try) 2>&5
  6747. ac_status=$?
  6748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6749. (exit $ac_status); }; }; then
  6750. ac_lo=$ac_mid; break
  6751. else
  6752. echo "$as_me: failed program was:" >&5
  6753. sed 's/^/| /' conftest.$ac_ext >&5
  6754. ac_hi=`expr '(' $ac_mid ')' - 1`
  6755. if test $ac_mid -le $ac_hi; then
  6756. ac_lo= ac_hi=
  6757. break
  6758. fi
  6759. ac_mid=`expr 2 '*' $ac_mid`
  6760. fi
  6761. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6762. done
  6763. else
  6764. echo "$as_me: failed program was:" >&5
  6765. sed 's/^/| /' conftest.$ac_ext >&5
  6766. ac_lo= ac_hi=
  6767. fi
  6768. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6769. fi
  6770. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6771. # Binary search between lo and hi bounds.
  6772. while test "x$ac_lo" != "x$ac_hi"; do
  6773. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6774. cat >conftest.$ac_ext <<_ACEOF
  6775. /* confdefs.h. */
  6776. _ACEOF
  6777. cat confdefs.h >>conftest.$ac_ext
  6778. cat >>conftest.$ac_ext <<_ACEOF
  6779. /* end confdefs.h. */
  6780. $ac_includes_default
  6781. int
  6782. main ()
  6783. {
  6784. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6785. test_array [0] = 0
  6786. ;
  6787. return 0;
  6788. }
  6789. _ACEOF
  6790. rm -f conftest.$ac_objext
  6791. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6792. (eval $ac_compile) 2>conftest.er1
  6793. ac_status=$?
  6794. grep -v '^ *+' conftest.er1 >conftest.err
  6795. rm -f conftest.er1
  6796. cat conftest.err >&5
  6797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6798. (exit $ac_status); } &&
  6799. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6801. (eval $ac_try) 2>&5
  6802. ac_status=$?
  6803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6804. (exit $ac_status); }; } &&
  6805. { ac_try='test -s conftest.$ac_objext'
  6806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6807. (eval $ac_try) 2>&5
  6808. ac_status=$?
  6809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6810. (exit $ac_status); }; }; then
  6811. ac_hi=$ac_mid
  6812. else
  6813. echo "$as_me: failed program was:" >&5
  6814. sed 's/^/| /' conftest.$ac_ext >&5
  6815. ac_lo=`expr '(' $ac_mid ')' + 1`
  6816. fi
  6817. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6818. done
  6819. case $ac_lo in
  6820. ?*) ac_cv_sizeof_short=$ac_lo;;
  6821. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  6822. See \`config.log' for more details." >&5
  6823. echo "$as_me: error: cannot compute sizeof (short), 77
  6824. See \`config.log' for more details." >&2;}
  6825. { (exit 1); exit 1; }; } ;;
  6826. esac
  6827. else
  6828. if test "$cross_compiling" = yes; then
  6829. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6830. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6831. { (exit 1); exit 1; }; }
  6832. else
  6833. cat >conftest.$ac_ext <<_ACEOF
  6834. /* confdefs.h. */
  6835. _ACEOF
  6836. cat confdefs.h >>conftest.$ac_ext
  6837. cat >>conftest.$ac_ext <<_ACEOF
  6838. /* end confdefs.h. */
  6839. $ac_includes_default
  6840. long longval () { return (long) (sizeof (short)); }
  6841. unsigned long ulongval () { return (long) (sizeof (short)); }
  6842. #include <stdio.h>
  6843. #include <stdlib.h>
  6844. int
  6845. main ()
  6846. {
  6847. FILE *f = fopen ("conftest.val", "w");
  6848. if (! f)
  6849. exit (1);
  6850. if (((long) (sizeof (short))) < 0)
  6851. {
  6852. long i = longval ();
  6853. if (i != ((long) (sizeof (short))))
  6854. exit (1);
  6855. fprintf (f, "%ld\n", i);
  6856. }
  6857. else
  6858. {
  6859. unsigned long i = ulongval ();
  6860. if (i != ((long) (sizeof (short))))
  6861. exit (1);
  6862. fprintf (f, "%lu\n", i);
  6863. }
  6864. exit (ferror (f) || fclose (f) != 0);
  6865. ;
  6866. return 0;
  6867. }
  6868. _ACEOF
  6869. rm -f conftest$ac_exeext
  6870. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6871. (eval $ac_link) 2>&5
  6872. ac_status=$?
  6873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6874. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6875. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6876. (eval $ac_try) 2>&5
  6877. ac_status=$?
  6878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6879. (exit $ac_status); }; }; then
  6880. ac_cv_sizeof_short=`cat conftest.val`
  6881. else
  6882. echo "$as_me: program exited with status $ac_status" >&5
  6883. echo "$as_me: failed program was:" >&5
  6884. sed 's/^/| /' conftest.$ac_ext >&5
  6885. ( exit $ac_status )
  6886. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  6887. See \`config.log' for more details." >&5
  6888. echo "$as_me: error: cannot compute sizeof (short), 77
  6889. See \`config.log' for more details." >&2;}
  6890. { (exit 1); exit 1; }; }
  6891. fi
  6892. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6893. fi
  6894. fi
  6895. rm -f conftest.val
  6896. else
  6897. ac_cv_sizeof_short=0
  6898. fi
  6899. fi
  6900. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  6901. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  6902. cat >>confdefs.h <<_ACEOF
  6903. #define SIZEOF_SHORT $ac_cv_sizeof_short
  6904. _ACEOF
  6905. echo "$as_me:$LINENO: checking for long" >&5
  6906. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6907. if test "${ac_cv_type_long+set}" = set; then
  6908. echo $ECHO_N "(cached) $ECHO_C" >&6
  6909. else
  6910. cat >conftest.$ac_ext <<_ACEOF
  6911. /* confdefs.h. */
  6912. _ACEOF
  6913. cat confdefs.h >>conftest.$ac_ext
  6914. cat >>conftest.$ac_ext <<_ACEOF
  6915. /* end confdefs.h. */
  6916. $ac_includes_default
  6917. int
  6918. main ()
  6919. {
  6920. if ((long *) 0)
  6921. return 0;
  6922. if (sizeof (long))
  6923. return 0;
  6924. ;
  6925. return 0;
  6926. }
  6927. _ACEOF
  6928. rm -f conftest.$ac_objext
  6929. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6930. (eval $ac_compile) 2>conftest.er1
  6931. ac_status=$?
  6932. grep -v '^ *+' conftest.er1 >conftest.err
  6933. rm -f conftest.er1
  6934. cat conftest.err >&5
  6935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6936. (exit $ac_status); } &&
  6937. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6938. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6939. (eval $ac_try) 2>&5
  6940. ac_status=$?
  6941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6942. (exit $ac_status); }; } &&
  6943. { ac_try='test -s conftest.$ac_objext'
  6944. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6945. (eval $ac_try) 2>&5
  6946. ac_status=$?
  6947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6948. (exit $ac_status); }; }; then
  6949. ac_cv_type_long=yes
  6950. else
  6951. echo "$as_me: failed program was:" >&5
  6952. sed 's/^/| /' conftest.$ac_ext >&5
  6953. ac_cv_type_long=no
  6954. fi
  6955. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6956. fi
  6957. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6958. echo "${ECHO_T}$ac_cv_type_long" >&6
  6959. echo "$as_me:$LINENO: checking size of long" >&5
  6960. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6961. if test "${ac_cv_sizeof_long+set}" = set; then
  6962. echo $ECHO_N "(cached) $ECHO_C" >&6
  6963. else
  6964. if test "$ac_cv_type_long" = yes; then
  6965. # The cast to unsigned long works around a bug in the HP C Compiler
  6966. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6967. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6968. # This bug is HP SR number 8606223364.
  6969. if test "$cross_compiling" = yes; then
  6970. # Depending upon the size, compute the lo and hi bounds.
  6971. cat >conftest.$ac_ext <<_ACEOF
  6972. /* confdefs.h. */
  6973. _ACEOF
  6974. cat confdefs.h >>conftest.$ac_ext
  6975. cat >>conftest.$ac_ext <<_ACEOF
  6976. /* end confdefs.h. */
  6977. $ac_includes_default
  6978. int
  6979. main ()
  6980. {
  6981. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6982. test_array [0] = 0
  6983. ;
  6984. return 0;
  6985. }
  6986. _ACEOF
  6987. rm -f conftest.$ac_objext
  6988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6989. (eval $ac_compile) 2>conftest.er1
  6990. ac_status=$?
  6991. grep -v '^ *+' conftest.er1 >conftest.err
  6992. rm -f conftest.er1
  6993. cat conftest.err >&5
  6994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6995. (exit $ac_status); } &&
  6996. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6998. (eval $ac_try) 2>&5
  6999. ac_status=$?
  7000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7001. (exit $ac_status); }; } &&
  7002. { ac_try='test -s conftest.$ac_objext'
  7003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7004. (eval $ac_try) 2>&5
  7005. ac_status=$?
  7006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7007. (exit $ac_status); }; }; then
  7008. ac_lo=0 ac_mid=0
  7009. while :; do
  7010. cat >conftest.$ac_ext <<_ACEOF
  7011. /* confdefs.h. */
  7012. _ACEOF
  7013. cat confdefs.h >>conftest.$ac_ext
  7014. cat >>conftest.$ac_ext <<_ACEOF
  7015. /* end confdefs.h. */
  7016. $ac_includes_default
  7017. int
  7018. main ()
  7019. {
  7020. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7021. test_array [0] = 0
  7022. ;
  7023. return 0;
  7024. }
  7025. _ACEOF
  7026. rm -f conftest.$ac_objext
  7027. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7028. (eval $ac_compile) 2>conftest.er1
  7029. ac_status=$?
  7030. grep -v '^ *+' conftest.er1 >conftest.err
  7031. rm -f conftest.er1
  7032. cat conftest.err >&5
  7033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7034. (exit $ac_status); } &&
  7035. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7037. (eval $ac_try) 2>&5
  7038. ac_status=$?
  7039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7040. (exit $ac_status); }; } &&
  7041. { ac_try='test -s conftest.$ac_objext'
  7042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7043. (eval $ac_try) 2>&5
  7044. ac_status=$?
  7045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7046. (exit $ac_status); }; }; then
  7047. ac_hi=$ac_mid; break
  7048. else
  7049. echo "$as_me: failed program was:" >&5
  7050. sed 's/^/| /' conftest.$ac_ext >&5
  7051. ac_lo=`expr $ac_mid + 1`
  7052. if test $ac_lo -le $ac_mid; then
  7053. ac_lo= ac_hi=
  7054. break
  7055. fi
  7056. ac_mid=`expr 2 '*' $ac_mid + 1`
  7057. fi
  7058. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7059. done
  7060. else
  7061. echo "$as_me: failed program was:" >&5
  7062. sed 's/^/| /' conftest.$ac_ext >&5
  7063. cat >conftest.$ac_ext <<_ACEOF
  7064. /* confdefs.h. */
  7065. _ACEOF
  7066. cat confdefs.h >>conftest.$ac_ext
  7067. cat >>conftest.$ac_ext <<_ACEOF
  7068. /* end confdefs.h. */
  7069. $ac_includes_default
  7070. int
  7071. main ()
  7072. {
  7073. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  7074. test_array [0] = 0
  7075. ;
  7076. return 0;
  7077. }
  7078. _ACEOF
  7079. rm -f conftest.$ac_objext
  7080. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7081. (eval $ac_compile) 2>conftest.er1
  7082. ac_status=$?
  7083. grep -v '^ *+' conftest.er1 >conftest.err
  7084. rm -f conftest.er1
  7085. cat conftest.err >&5
  7086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7087. (exit $ac_status); } &&
  7088. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7089. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7090. (eval $ac_try) 2>&5
  7091. ac_status=$?
  7092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7093. (exit $ac_status); }; } &&
  7094. { ac_try='test -s conftest.$ac_objext'
  7095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7096. (eval $ac_try) 2>&5
  7097. ac_status=$?
  7098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7099. (exit $ac_status); }; }; then
  7100. ac_hi=-1 ac_mid=-1
  7101. while :; do
  7102. cat >conftest.$ac_ext <<_ACEOF
  7103. /* confdefs.h. */
  7104. _ACEOF
  7105. cat confdefs.h >>conftest.$ac_ext
  7106. cat >>conftest.$ac_ext <<_ACEOF
  7107. /* end confdefs.h. */
  7108. $ac_includes_default
  7109. int
  7110. main ()
  7111. {
  7112. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  7113. test_array [0] = 0
  7114. ;
  7115. return 0;
  7116. }
  7117. _ACEOF
  7118. rm -f conftest.$ac_objext
  7119. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7120. (eval $ac_compile) 2>conftest.er1
  7121. ac_status=$?
  7122. grep -v '^ *+' conftest.er1 >conftest.err
  7123. rm -f conftest.er1
  7124. cat conftest.err >&5
  7125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7126. (exit $ac_status); } &&
  7127. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  7133. { ac_try='test -s conftest.$ac_objext'
  7134. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7135. (eval $ac_try) 2>&5
  7136. ac_status=$?
  7137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7138. (exit $ac_status); }; }; then
  7139. ac_lo=$ac_mid; break
  7140. else
  7141. echo "$as_me: failed program was:" >&5
  7142. sed 's/^/| /' conftest.$ac_ext >&5
  7143. ac_hi=`expr '(' $ac_mid ')' - 1`
  7144. if test $ac_mid -le $ac_hi; then
  7145. ac_lo= ac_hi=
  7146. break
  7147. fi
  7148. ac_mid=`expr 2 '*' $ac_mid`
  7149. fi
  7150. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7151. done
  7152. else
  7153. echo "$as_me: failed program was:" >&5
  7154. sed 's/^/| /' conftest.$ac_ext >&5
  7155. ac_lo= ac_hi=
  7156. fi
  7157. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7158. fi
  7159. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7160. # Binary search between lo and hi bounds.
  7161. while test "x$ac_lo" != "x$ac_hi"; do
  7162. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7163. cat >conftest.$ac_ext <<_ACEOF
  7164. /* confdefs.h. */
  7165. _ACEOF
  7166. cat confdefs.h >>conftest.$ac_ext
  7167. cat >>conftest.$ac_ext <<_ACEOF
  7168. /* end confdefs.h. */
  7169. $ac_includes_default
  7170. int
  7171. main ()
  7172. {
  7173. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7174. test_array [0] = 0
  7175. ;
  7176. return 0;
  7177. }
  7178. _ACEOF
  7179. rm -f conftest.$ac_objext
  7180. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7181. (eval $ac_compile) 2>conftest.er1
  7182. ac_status=$?
  7183. grep -v '^ *+' conftest.er1 >conftest.err
  7184. rm -f conftest.er1
  7185. cat conftest.err >&5
  7186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7187. (exit $ac_status); } &&
  7188. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7189. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7190. (eval $ac_try) 2>&5
  7191. ac_status=$?
  7192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7193. (exit $ac_status); }; } &&
  7194. { ac_try='test -s conftest.$ac_objext'
  7195. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7196. (eval $ac_try) 2>&5
  7197. ac_status=$?
  7198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7199. (exit $ac_status); }; }; then
  7200. ac_hi=$ac_mid
  7201. else
  7202. echo "$as_me: failed program was:" >&5
  7203. sed 's/^/| /' conftest.$ac_ext >&5
  7204. ac_lo=`expr '(' $ac_mid ')' + 1`
  7205. fi
  7206. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7207. done
  7208. case $ac_lo in
  7209. ?*) ac_cv_sizeof_long=$ac_lo;;
  7210. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7211. See \`config.log' for more details." >&5
  7212. echo "$as_me: error: cannot compute sizeof (long), 77
  7213. See \`config.log' for more details." >&2;}
  7214. { (exit 1); exit 1; }; } ;;
  7215. esac
  7216. else
  7217. if test "$cross_compiling" = yes; then
  7218. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7219. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7220. { (exit 1); exit 1; }; }
  7221. else
  7222. cat >conftest.$ac_ext <<_ACEOF
  7223. /* confdefs.h. */
  7224. _ACEOF
  7225. cat confdefs.h >>conftest.$ac_ext
  7226. cat >>conftest.$ac_ext <<_ACEOF
  7227. /* end confdefs.h. */
  7228. $ac_includes_default
  7229. long longval () { return (long) (sizeof (long)); }
  7230. unsigned long ulongval () { return (long) (sizeof (long)); }
  7231. #include <stdio.h>
  7232. #include <stdlib.h>
  7233. int
  7234. main ()
  7235. {
  7236. FILE *f = fopen ("conftest.val", "w");
  7237. if (! f)
  7238. exit (1);
  7239. if (((long) (sizeof (long))) < 0)
  7240. {
  7241. long i = longval ();
  7242. if (i != ((long) (sizeof (long))))
  7243. exit (1);
  7244. fprintf (f, "%ld\n", i);
  7245. }
  7246. else
  7247. {
  7248. unsigned long i = ulongval ();
  7249. if (i != ((long) (sizeof (long))))
  7250. exit (1);
  7251. fprintf (f, "%lu\n", i);
  7252. }
  7253. exit (ferror (f) || fclose (f) != 0);
  7254. ;
  7255. return 0;
  7256. }
  7257. _ACEOF
  7258. rm -f conftest$ac_exeext
  7259. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7260. (eval $ac_link) 2>&5
  7261. ac_status=$?
  7262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7263. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7264. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7265. (eval $ac_try) 2>&5
  7266. ac_status=$?
  7267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7268. (exit $ac_status); }; }; then
  7269. ac_cv_sizeof_long=`cat conftest.val`
  7270. else
  7271. echo "$as_me: program exited with status $ac_status" >&5
  7272. echo "$as_me: failed program was:" >&5
  7273. sed 's/^/| /' conftest.$ac_ext >&5
  7274. ( exit $ac_status )
  7275. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7276. See \`config.log' for more details." >&5
  7277. echo "$as_me: error: cannot compute sizeof (long), 77
  7278. See \`config.log' for more details." >&2;}
  7279. { (exit 1); exit 1; }; }
  7280. fi
  7281. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7282. fi
  7283. fi
  7284. rm -f conftest.val
  7285. else
  7286. ac_cv_sizeof_long=0
  7287. fi
  7288. fi
  7289. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7290. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  7291. cat >>confdefs.h <<_ACEOF
  7292. #define SIZEOF_LONG $ac_cv_sizeof_long
  7293. _ACEOF
  7294. echo "$as_me:$LINENO: checking for long long" >&5
  7295. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  7296. if test "${ac_cv_type_long_long+set}" = set; then
  7297. echo $ECHO_N "(cached) $ECHO_C" >&6
  7298. else
  7299. cat >conftest.$ac_ext <<_ACEOF
  7300. /* confdefs.h. */
  7301. _ACEOF
  7302. cat confdefs.h >>conftest.$ac_ext
  7303. cat >>conftest.$ac_ext <<_ACEOF
  7304. /* end confdefs.h. */
  7305. $ac_includes_default
  7306. int
  7307. main ()
  7308. {
  7309. if ((long long *) 0)
  7310. return 0;
  7311. if (sizeof (long long))
  7312. return 0;
  7313. ;
  7314. return 0;
  7315. }
  7316. _ACEOF
  7317. rm -f conftest.$ac_objext
  7318. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7319. (eval $ac_compile) 2>conftest.er1
  7320. ac_status=$?
  7321. grep -v '^ *+' conftest.er1 >conftest.err
  7322. rm -f conftest.er1
  7323. cat conftest.err >&5
  7324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7325. (exit $ac_status); } &&
  7326. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7327. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7328. (eval $ac_try) 2>&5
  7329. ac_status=$?
  7330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7331. (exit $ac_status); }; } &&
  7332. { ac_try='test -s conftest.$ac_objext'
  7333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7334. (eval $ac_try) 2>&5
  7335. ac_status=$?
  7336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7337. (exit $ac_status); }; }; then
  7338. ac_cv_type_long_long=yes
  7339. else
  7340. echo "$as_me: failed program was:" >&5
  7341. sed 's/^/| /' conftest.$ac_ext >&5
  7342. ac_cv_type_long_long=no
  7343. fi
  7344. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7345. fi
  7346. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  7347. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  7348. echo "$as_me:$LINENO: checking size of long long" >&5
  7349. echo $ECHO_N "checking size of long long... $ECHO_C" >&6
  7350. if test "${ac_cv_sizeof_long_long+set}" = set; then
  7351. echo $ECHO_N "(cached) $ECHO_C" >&6
  7352. else
  7353. if test "$ac_cv_type_long_long" = yes; then
  7354. # The cast to unsigned long works around a bug in the HP C Compiler
  7355. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7356. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7357. # This bug is HP SR number 8606223364.
  7358. if test "$cross_compiling" = yes; then
  7359. # Depending upon the size, compute the lo and hi bounds.
  7360. cat >conftest.$ac_ext <<_ACEOF
  7361. /* confdefs.h. */
  7362. _ACEOF
  7363. cat confdefs.h >>conftest.$ac_ext
  7364. cat >>conftest.$ac_ext <<_ACEOF
  7365. /* end confdefs.h. */
  7366. $ac_includes_default
  7367. int
  7368. main ()
  7369. {
  7370. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
  7371. test_array [0] = 0
  7372. ;
  7373. return 0;
  7374. }
  7375. _ACEOF
  7376. rm -f conftest.$ac_objext
  7377. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7378. (eval $ac_compile) 2>conftest.er1
  7379. ac_status=$?
  7380. grep -v '^ *+' conftest.er1 >conftest.err
  7381. rm -f conftest.er1
  7382. cat conftest.err >&5
  7383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7384. (exit $ac_status); } &&
  7385. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7386. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7387. (eval $ac_try) 2>&5
  7388. ac_status=$?
  7389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7390. (exit $ac_status); }; } &&
  7391. { ac_try='test -s conftest.$ac_objext'
  7392. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7393. (eval $ac_try) 2>&5
  7394. ac_status=$?
  7395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7396. (exit $ac_status); }; }; then
  7397. ac_lo=0 ac_mid=0
  7398. while :; do
  7399. cat >conftest.$ac_ext <<_ACEOF
  7400. /* confdefs.h. */
  7401. _ACEOF
  7402. cat confdefs.h >>conftest.$ac_ext
  7403. cat >>conftest.$ac_ext <<_ACEOF
  7404. /* end confdefs.h. */
  7405. $ac_includes_default
  7406. int
  7407. main ()
  7408. {
  7409. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7410. test_array [0] = 0
  7411. ;
  7412. return 0;
  7413. }
  7414. _ACEOF
  7415. rm -f conftest.$ac_objext
  7416. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7417. (eval $ac_compile) 2>conftest.er1
  7418. ac_status=$?
  7419. grep -v '^ *+' conftest.er1 >conftest.err
  7420. rm -f conftest.er1
  7421. cat conftest.err >&5
  7422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7423. (exit $ac_status); } &&
  7424. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7425. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7426. (eval $ac_try) 2>&5
  7427. ac_status=$?
  7428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7429. (exit $ac_status); }; } &&
  7430. { ac_try='test -s conftest.$ac_objext'
  7431. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7432. (eval $ac_try) 2>&5
  7433. ac_status=$?
  7434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7435. (exit $ac_status); }; }; then
  7436. ac_hi=$ac_mid; break
  7437. else
  7438. echo "$as_me: failed program was:" >&5
  7439. sed 's/^/| /' conftest.$ac_ext >&5
  7440. ac_lo=`expr $ac_mid + 1`
  7441. if test $ac_lo -le $ac_mid; then
  7442. ac_lo= ac_hi=
  7443. break
  7444. fi
  7445. ac_mid=`expr 2 '*' $ac_mid + 1`
  7446. fi
  7447. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7448. done
  7449. else
  7450. echo "$as_me: failed program was:" >&5
  7451. sed 's/^/| /' conftest.$ac_ext >&5
  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. $ac_includes_default
  7459. int
  7460. main ()
  7461. {
  7462. static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
  7463. test_array [0] = 0
  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" || test ! -s conftest.err'
  7478. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7479. (eval $ac_try) 2>&5
  7480. ac_status=$?
  7481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7482. (exit $ac_status); }; } &&
  7483. { ac_try='test -s conftest.$ac_objext'
  7484. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7485. (eval $ac_try) 2>&5
  7486. ac_status=$?
  7487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7488. (exit $ac_status); }; }; then
  7489. ac_hi=-1 ac_mid=-1
  7490. while :; do
  7491. cat >conftest.$ac_ext <<_ACEOF
  7492. /* confdefs.h. */
  7493. _ACEOF
  7494. cat confdefs.h >>conftest.$ac_ext
  7495. cat >>conftest.$ac_ext <<_ACEOF
  7496. /* end confdefs.h. */
  7497. $ac_includes_default
  7498. int
  7499. main ()
  7500. {
  7501. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
  7502. test_array [0] = 0
  7503. ;
  7504. return 0;
  7505. }
  7506. _ACEOF
  7507. rm -f conftest.$ac_objext
  7508. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7509. (eval $ac_compile) 2>conftest.er1
  7510. ac_status=$?
  7511. grep -v '^ *+' conftest.er1 >conftest.err
  7512. rm -f conftest.er1
  7513. cat conftest.err >&5
  7514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7515. (exit $ac_status); } &&
  7516. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7517. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7518. (eval $ac_try) 2>&5
  7519. ac_status=$?
  7520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7521. (exit $ac_status); }; } &&
  7522. { ac_try='test -s conftest.$ac_objext'
  7523. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7524. (eval $ac_try) 2>&5
  7525. ac_status=$?
  7526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7527. (exit $ac_status); }; }; then
  7528. ac_lo=$ac_mid; break
  7529. else
  7530. echo "$as_me: failed program was:" >&5
  7531. sed 's/^/| /' conftest.$ac_ext >&5
  7532. ac_hi=`expr '(' $ac_mid ')' - 1`
  7533. if test $ac_mid -le $ac_hi; then
  7534. ac_lo= ac_hi=
  7535. break
  7536. fi
  7537. ac_mid=`expr 2 '*' $ac_mid`
  7538. fi
  7539. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7540. done
  7541. else
  7542. echo "$as_me: failed program was:" >&5
  7543. sed 's/^/| /' conftest.$ac_ext >&5
  7544. ac_lo= ac_hi=
  7545. fi
  7546. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7547. fi
  7548. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7549. # Binary search between lo and hi bounds.
  7550. while test "x$ac_lo" != "x$ac_hi"; do
  7551. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7552. cat >conftest.$ac_ext <<_ACEOF
  7553. /* confdefs.h. */
  7554. _ACEOF
  7555. cat confdefs.h >>conftest.$ac_ext
  7556. cat >>conftest.$ac_ext <<_ACEOF
  7557. /* end confdefs.h. */
  7558. $ac_includes_default
  7559. int
  7560. main ()
  7561. {
  7562. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7563. test_array [0] = 0
  7564. ;
  7565. return 0;
  7566. }
  7567. _ACEOF
  7568. rm -f conftest.$ac_objext
  7569. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7570. (eval $ac_compile) 2>conftest.er1
  7571. ac_status=$?
  7572. grep -v '^ *+' conftest.er1 >conftest.err
  7573. rm -f conftest.er1
  7574. cat conftest.err >&5
  7575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7576. (exit $ac_status); } &&
  7577. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7578. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7579. (eval $ac_try) 2>&5
  7580. ac_status=$?
  7581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7582. (exit $ac_status); }; } &&
  7583. { ac_try='test -s conftest.$ac_objext'
  7584. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7585. (eval $ac_try) 2>&5
  7586. ac_status=$?
  7587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7588. (exit $ac_status); }; }; then
  7589. ac_hi=$ac_mid
  7590. else
  7591. echo "$as_me: failed program was:" >&5
  7592. sed 's/^/| /' conftest.$ac_ext >&5
  7593. ac_lo=`expr '(' $ac_mid ')' + 1`
  7594. fi
  7595. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7596. done
  7597. case $ac_lo in
  7598. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7599. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7600. See \`config.log' for more details." >&5
  7601. echo "$as_me: error: cannot compute sizeof (long long), 77
  7602. See \`config.log' for more details." >&2;}
  7603. { (exit 1); exit 1; }; } ;;
  7604. esac
  7605. else
  7606. if test "$cross_compiling" = yes; then
  7607. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7608. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7609. { (exit 1); exit 1; }; }
  7610. else
  7611. cat >conftest.$ac_ext <<_ACEOF
  7612. /* confdefs.h. */
  7613. _ACEOF
  7614. cat confdefs.h >>conftest.$ac_ext
  7615. cat >>conftest.$ac_ext <<_ACEOF
  7616. /* end confdefs.h. */
  7617. $ac_includes_default
  7618. long longval () { return (long) (sizeof (long long)); }
  7619. unsigned long ulongval () { return (long) (sizeof (long long)); }
  7620. #include <stdio.h>
  7621. #include <stdlib.h>
  7622. int
  7623. main ()
  7624. {
  7625. FILE *f = fopen ("conftest.val", "w");
  7626. if (! f)
  7627. exit (1);
  7628. if (((long) (sizeof (long long))) < 0)
  7629. {
  7630. long i = longval ();
  7631. if (i != ((long) (sizeof (long long))))
  7632. exit (1);
  7633. fprintf (f, "%ld\n", i);
  7634. }
  7635. else
  7636. {
  7637. unsigned long i = ulongval ();
  7638. if (i != ((long) (sizeof (long long))))
  7639. exit (1);
  7640. fprintf (f, "%lu\n", i);
  7641. }
  7642. exit (ferror (f) || fclose (f) != 0);
  7643. ;
  7644. return 0;
  7645. }
  7646. _ACEOF
  7647. rm -f conftest$ac_exeext
  7648. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7649. (eval $ac_link) 2>&5
  7650. ac_status=$?
  7651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7652. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7653. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7654. (eval $ac_try) 2>&5
  7655. ac_status=$?
  7656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7657. (exit $ac_status); }; }; then
  7658. ac_cv_sizeof_long_long=`cat conftest.val`
  7659. else
  7660. echo "$as_me: program exited with status $ac_status" >&5
  7661. echo "$as_me: failed program was:" >&5
  7662. sed 's/^/| /' conftest.$ac_ext >&5
  7663. ( exit $ac_status )
  7664. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7665. See \`config.log' for more details." >&5
  7666. echo "$as_me: error: cannot compute sizeof (long long), 77
  7667. See \`config.log' for more details." >&2;}
  7668. { (exit 1); exit 1; }; }
  7669. fi
  7670. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7671. fi
  7672. fi
  7673. rm -f conftest.val
  7674. else
  7675. ac_cv_sizeof_long_long=0
  7676. fi
  7677. fi
  7678. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  7679. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
  7680. cat >>confdefs.h <<_ACEOF
  7681. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  7682. _ACEOF
  7683. if test $ac_cv_c_compiler_gnu = yes; then
  7684. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7685. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7686. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7687. echo $ECHO_N "(cached) $ECHO_C" >&6
  7688. else
  7689. ac_pattern="Autoconf.*'x'"
  7690. cat >conftest.$ac_ext <<_ACEOF
  7691. /* confdefs.h. */
  7692. _ACEOF
  7693. cat confdefs.h >>conftest.$ac_ext
  7694. cat >>conftest.$ac_ext <<_ACEOF
  7695. /* end confdefs.h. */
  7696. #include <sgtty.h>
  7697. Autoconf TIOCGETP
  7698. _ACEOF
  7699. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7700. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7701. ac_cv_prog_gcc_traditional=yes
  7702. else
  7703. ac_cv_prog_gcc_traditional=no
  7704. fi
  7705. rm -f conftest*
  7706. if test $ac_cv_prog_gcc_traditional = no; then
  7707. cat >conftest.$ac_ext <<_ACEOF
  7708. /* confdefs.h. */
  7709. _ACEOF
  7710. cat confdefs.h >>conftest.$ac_ext
  7711. cat >>conftest.$ac_ext <<_ACEOF
  7712. /* end confdefs.h. */
  7713. #include <termio.h>
  7714. Autoconf TCGETA
  7715. _ACEOF
  7716. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7717. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7718. ac_cv_prog_gcc_traditional=yes
  7719. fi
  7720. rm -f conftest*
  7721. fi
  7722. fi
  7723. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7724. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7725. if test $ac_cv_prog_gcc_traditional = yes; then
  7726. CC="$CC -traditional"
  7727. fi
  7728. fi
  7729. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7730. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7731. if test "${ac_cv_struct_tm+set}" = set; then
  7732. echo $ECHO_N "(cached) $ECHO_C" >&6
  7733. else
  7734. cat >conftest.$ac_ext <<_ACEOF
  7735. /* confdefs.h. */
  7736. _ACEOF
  7737. cat confdefs.h >>conftest.$ac_ext
  7738. cat >>conftest.$ac_ext <<_ACEOF
  7739. /* end confdefs.h. */
  7740. #include <sys/types.h>
  7741. #include <time.h>
  7742. int
  7743. main ()
  7744. {
  7745. struct tm *tp; tp->tm_sec;
  7746. ;
  7747. return 0;
  7748. }
  7749. _ACEOF
  7750. rm -f conftest.$ac_objext
  7751. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7752. (eval $ac_compile) 2>conftest.er1
  7753. ac_status=$?
  7754. grep -v '^ *+' conftest.er1 >conftest.err
  7755. rm -f conftest.er1
  7756. cat conftest.err >&5
  7757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7758. (exit $ac_status); } &&
  7759. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7760. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7761. (eval $ac_try) 2>&5
  7762. ac_status=$?
  7763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7764. (exit $ac_status); }; } &&
  7765. { ac_try='test -s conftest.$ac_objext'
  7766. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7767. (eval $ac_try) 2>&5
  7768. ac_status=$?
  7769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7770. (exit $ac_status); }; }; then
  7771. ac_cv_struct_tm=time.h
  7772. else
  7773. echo "$as_me: failed program was:" >&5
  7774. sed 's/^/| /' conftest.$ac_ext >&5
  7775. ac_cv_struct_tm=sys/time.h
  7776. fi
  7777. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7778. fi
  7779. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7780. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7781. if test $ac_cv_struct_tm = sys/time.h; then
  7782. cat >>confdefs.h <<\_ACEOF
  7783. #define TM_IN_SYS_TIME 1
  7784. _ACEOF
  7785. fi
  7786. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7787. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7788. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7789. echo $ECHO_N "(cached) $ECHO_C" >&6
  7790. else
  7791. cat >conftest.$ac_ext <<_ACEOF
  7792. /* confdefs.h. */
  7793. _ACEOF
  7794. cat confdefs.h >>conftest.$ac_ext
  7795. cat >>conftest.$ac_ext <<_ACEOF
  7796. /* end confdefs.h. */
  7797. #include <sys/types.h>
  7798. #include <$ac_cv_struct_tm>
  7799. int
  7800. main ()
  7801. {
  7802. static struct tm ac_aggr;
  7803. if (ac_aggr.tm_zone)
  7804. return 0;
  7805. ;
  7806. return 0;
  7807. }
  7808. _ACEOF
  7809. rm -f conftest.$ac_objext
  7810. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7811. (eval $ac_compile) 2>conftest.er1
  7812. ac_status=$?
  7813. grep -v '^ *+' conftest.er1 >conftest.err
  7814. rm -f conftest.er1
  7815. cat conftest.err >&5
  7816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7817. (exit $ac_status); } &&
  7818. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7819. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7820. (eval $ac_try) 2>&5
  7821. ac_status=$?
  7822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7823. (exit $ac_status); }; } &&
  7824. { ac_try='test -s conftest.$ac_objext'
  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); }; }; then
  7830. ac_cv_member_struct_tm_tm_zone=yes
  7831. else
  7832. echo "$as_me: failed program was:" >&5
  7833. sed 's/^/| /' conftest.$ac_ext >&5
  7834. cat >conftest.$ac_ext <<_ACEOF
  7835. /* confdefs.h. */
  7836. _ACEOF
  7837. cat confdefs.h >>conftest.$ac_ext
  7838. cat >>conftest.$ac_ext <<_ACEOF
  7839. /* end confdefs.h. */
  7840. #include <sys/types.h>
  7841. #include <$ac_cv_struct_tm>
  7842. int
  7843. main ()
  7844. {
  7845. static struct tm ac_aggr;
  7846. if (sizeof ac_aggr.tm_zone)
  7847. return 0;
  7848. ;
  7849. return 0;
  7850. }
  7851. _ACEOF
  7852. rm -f conftest.$ac_objext
  7853. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7854. (eval $ac_compile) 2>conftest.er1
  7855. ac_status=$?
  7856. grep -v '^ *+' conftest.er1 >conftest.err
  7857. rm -f conftest.er1
  7858. cat conftest.err >&5
  7859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7860. (exit $ac_status); } &&
  7861. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7862. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7863. (eval $ac_try) 2>&5
  7864. ac_status=$?
  7865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7866. (exit $ac_status); }; } &&
  7867. { ac_try='test -s conftest.$ac_objext'
  7868. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7869. (eval $ac_try) 2>&5
  7870. ac_status=$?
  7871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7872. (exit $ac_status); }; }; then
  7873. ac_cv_member_struct_tm_tm_zone=yes
  7874. else
  7875. echo "$as_me: failed program was:" >&5
  7876. sed 's/^/| /' conftest.$ac_ext >&5
  7877. ac_cv_member_struct_tm_tm_zone=no
  7878. fi
  7879. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7880. fi
  7881. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7882. fi
  7883. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7884. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7885. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7886. cat >>confdefs.h <<_ACEOF
  7887. #define HAVE_STRUCT_TM_TM_ZONE 1
  7888. _ACEOF
  7889. fi
  7890. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7891. cat >>confdefs.h <<\_ACEOF
  7892. #define HAVE_TM_ZONE 1
  7893. _ACEOF
  7894. else
  7895. echo "$as_me:$LINENO: checking for tzname" >&5
  7896. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7897. if test "${ac_cv_var_tzname+set}" = set; then
  7898. echo $ECHO_N "(cached) $ECHO_C" >&6
  7899. else
  7900. cat >conftest.$ac_ext <<_ACEOF
  7901. /* confdefs.h. */
  7902. _ACEOF
  7903. cat confdefs.h >>conftest.$ac_ext
  7904. cat >>conftest.$ac_ext <<_ACEOF
  7905. /* end confdefs.h. */
  7906. #include <time.h>
  7907. #ifndef tzname /* For SGI. */
  7908. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7909. #endif
  7910. int
  7911. main ()
  7912. {
  7913. atoi(*tzname);
  7914. ;
  7915. return 0;
  7916. }
  7917. _ACEOF
  7918. rm -f conftest.$ac_objext conftest$ac_exeext
  7919. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7920. (eval $ac_link) 2>conftest.er1
  7921. ac_status=$?
  7922. grep -v '^ *+' conftest.er1 >conftest.err
  7923. rm -f conftest.er1
  7924. cat conftest.err >&5
  7925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7926. (exit $ac_status); } &&
  7927. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7928. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7929. (eval $ac_try) 2>&5
  7930. ac_status=$?
  7931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7932. (exit $ac_status); }; } &&
  7933. { ac_try='test -s conftest$ac_exeext'
  7934. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7935. (eval $ac_try) 2>&5
  7936. ac_status=$?
  7937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7938. (exit $ac_status); }; }; then
  7939. ac_cv_var_tzname=yes
  7940. else
  7941. echo "$as_me: failed program was:" >&5
  7942. sed 's/^/| /' conftest.$ac_ext >&5
  7943. ac_cv_var_tzname=no
  7944. fi
  7945. rm -f conftest.err conftest.$ac_objext \
  7946. conftest$ac_exeext conftest.$ac_ext
  7947. fi
  7948. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7949. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7950. if test $ac_cv_var_tzname = yes; then
  7951. cat >>confdefs.h <<\_ACEOF
  7952. #define HAVE_TZNAME 1
  7953. _ACEOF
  7954. fi
  7955. fi
  7956. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7957. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7958. if test "${ac_cv_struct_tm+set}" = set; then
  7959. echo $ECHO_N "(cached) $ECHO_C" >&6
  7960. else
  7961. cat >conftest.$ac_ext <<_ACEOF
  7962. /* confdefs.h. */
  7963. _ACEOF
  7964. cat confdefs.h >>conftest.$ac_ext
  7965. cat >>conftest.$ac_ext <<_ACEOF
  7966. /* end confdefs.h. */
  7967. #include <sys/types.h>
  7968. #include <time.h>
  7969. int
  7970. main ()
  7971. {
  7972. struct tm *tp; tp->tm_sec;
  7973. ;
  7974. return 0;
  7975. }
  7976. _ACEOF
  7977. rm -f conftest.$ac_objext
  7978. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7979. (eval $ac_compile) 2>conftest.er1
  7980. ac_status=$?
  7981. grep -v '^ *+' conftest.er1 >conftest.err
  7982. rm -f conftest.er1
  7983. cat conftest.err >&5
  7984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7985. (exit $ac_status); } &&
  7986. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7987. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7988. (eval $ac_try) 2>&5
  7989. ac_status=$?
  7990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7991. (exit $ac_status); }; } &&
  7992. { ac_try='test -s conftest.$ac_objext'
  7993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7994. (eval $ac_try) 2>&5
  7995. ac_status=$?
  7996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7997. (exit $ac_status); }; }; then
  7998. ac_cv_struct_tm=time.h
  7999. else
  8000. echo "$as_me: failed program was:" >&5
  8001. sed 's/^/| /' conftest.$ac_ext >&5
  8002. ac_cv_struct_tm=sys/time.h
  8003. fi
  8004. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8005. fi
  8006. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8007. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  8008. if test $ac_cv_struct_tm = sys/time.h; then
  8009. cat >>confdefs.h <<\_ACEOF
  8010. #define TM_IN_SYS_TIME 1
  8011. _ACEOF
  8012. fi
  8013. #checkpoint
  8014. cat >confcache <<\_ACEOF
  8015. # This file is a shell script that caches the results of configure
  8016. # tests run on this system so they can be shared between configure
  8017. # scripts and configure runs, see configure's option --config-cache.
  8018. # It is not useful on other systems. If it contains results you don't
  8019. # want to keep, you may remove or edit it.
  8020. #
  8021. # config.status only pays attention to the cache file if you give it
  8022. # the --recheck option to rerun configure.
  8023. #
  8024. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8025. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8026. # following values.
  8027. _ACEOF
  8028. # The following way of writing the cache mishandles newlines in values,
  8029. # but we know of no workaround that is simple, portable, and efficient.
  8030. # So, don't put newlines in cache variables' values.
  8031. # Ultrix sh set writes to stderr and can't be redirected directly,
  8032. # and sets the high bit in the cache file unless we assign to the vars.
  8033. {
  8034. (set) 2>&1 |
  8035. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8036. *ac_space=\ *)
  8037. # `set' does not quote correctly, so add quotes (double-quote
  8038. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8039. sed -n \
  8040. "s/'/'\\\\''/g;
  8041. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8042. ;;
  8043. *)
  8044. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8045. sed -n \
  8046. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8047. ;;
  8048. esac;
  8049. } |
  8050. sed '
  8051. t clear
  8052. : clear
  8053. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8054. t end
  8055. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8056. : end' >>confcache
  8057. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8058. if test -w $cache_file; then
  8059. test "x$cache_file" != "x/dev/null"
  8060. cat confcache >$cache_file
  8061. else
  8062. echo "not updating unwritable cache $cache_file"
  8063. fi
  8064. fi
  8065. rm -f confcache
  8066. # Checks for library functions
  8067. for ac_header in unistd.h vfork.h
  8068. do
  8069. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8070. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8071. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8072. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8073. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8074. echo $ECHO_N "(cached) $ECHO_C" >&6
  8075. fi
  8076. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8077. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8078. else
  8079. # Is the header compilable?
  8080. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8081. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8082. cat >conftest.$ac_ext <<_ACEOF
  8083. /* confdefs.h. */
  8084. _ACEOF
  8085. cat confdefs.h >>conftest.$ac_ext
  8086. cat >>conftest.$ac_ext <<_ACEOF
  8087. /* end confdefs.h. */
  8088. $ac_includes_default
  8089. #include <$ac_header>
  8090. _ACEOF
  8091. rm -f conftest.$ac_objext
  8092. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8093. (eval $ac_compile) 2>conftest.er1
  8094. ac_status=$?
  8095. grep -v '^ *+' conftest.er1 >conftest.err
  8096. rm -f conftest.er1
  8097. cat conftest.err >&5
  8098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8099. (exit $ac_status); } &&
  8100. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8101. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8102. (eval $ac_try) 2>&5
  8103. ac_status=$?
  8104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8105. (exit $ac_status); }; } &&
  8106. { ac_try='test -s conftest.$ac_objext'
  8107. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8108. (eval $ac_try) 2>&5
  8109. ac_status=$?
  8110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8111. (exit $ac_status); }; }; then
  8112. ac_header_compiler=yes
  8113. else
  8114. echo "$as_me: failed program was:" >&5
  8115. sed 's/^/| /' conftest.$ac_ext >&5
  8116. ac_header_compiler=no
  8117. fi
  8118. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8119. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8120. echo "${ECHO_T}$ac_header_compiler" >&6
  8121. # Is the header present?
  8122. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8123. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8124. cat >conftest.$ac_ext <<_ACEOF
  8125. /* confdefs.h. */
  8126. _ACEOF
  8127. cat confdefs.h >>conftest.$ac_ext
  8128. cat >>conftest.$ac_ext <<_ACEOF
  8129. /* end confdefs.h. */
  8130. #include <$ac_header>
  8131. _ACEOF
  8132. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8133. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8134. ac_status=$?
  8135. grep -v '^ *+' conftest.er1 >conftest.err
  8136. rm -f conftest.er1
  8137. cat conftest.err >&5
  8138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8139. (exit $ac_status); } >/dev/null; then
  8140. if test -s conftest.err; then
  8141. ac_cpp_err=$ac_c_preproc_warn_flag
  8142. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8143. else
  8144. ac_cpp_err=
  8145. fi
  8146. else
  8147. ac_cpp_err=yes
  8148. fi
  8149. if test -z "$ac_cpp_err"; then
  8150. ac_header_preproc=yes
  8151. else
  8152. echo "$as_me: failed program was:" >&5
  8153. sed 's/^/| /' conftest.$ac_ext >&5
  8154. ac_header_preproc=no
  8155. fi
  8156. rm -f conftest.err conftest.$ac_ext
  8157. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8158. echo "${ECHO_T}$ac_header_preproc" >&6
  8159. # So? What about this header?
  8160. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8161. yes:no: )
  8162. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8163. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8164. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8165. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8166. ac_header_preproc=yes
  8167. ;;
  8168. no:yes:* )
  8169. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8170. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8171. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8172. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8173. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8174. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8175. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8176. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8177. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8178. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8179. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8180. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8181. (
  8182. cat <<\_ASBOX
  8183. ## ------------------------------------------ ##
  8184. ## Report this to the AC_PACKAGE_NAME lists. ##
  8185. ## ------------------------------------------ ##
  8186. _ASBOX
  8187. ) |
  8188. sed "s/^/$as_me: WARNING: /" >&2
  8189. ;;
  8190. esac
  8191. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8192. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8193. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8194. echo $ECHO_N "(cached) $ECHO_C" >&6
  8195. else
  8196. eval "$as_ac_Header=\$ac_header_preproc"
  8197. fi
  8198. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8199. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8200. fi
  8201. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8202. cat >>confdefs.h <<_ACEOF
  8203. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8204. _ACEOF
  8205. fi
  8206. done
  8207. for ac_func in fork vfork
  8208. do
  8209. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8210. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8211. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8212. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8213. echo $ECHO_N "(cached) $ECHO_C" >&6
  8214. else
  8215. cat >conftest.$ac_ext <<_ACEOF
  8216. /* confdefs.h. */
  8217. _ACEOF
  8218. cat confdefs.h >>conftest.$ac_ext
  8219. cat >>conftest.$ac_ext <<_ACEOF
  8220. /* end confdefs.h. */
  8221. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8222. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8223. #define $ac_func innocuous_$ac_func
  8224. /* System header to define __stub macros and hopefully few prototypes,
  8225. which can conflict with char $ac_func (); below.
  8226. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8227. <limits.h> exists even on freestanding compilers. */
  8228. #ifdef __STDC__
  8229. # include <limits.h>
  8230. #else
  8231. # include <assert.h>
  8232. #endif
  8233. #undef $ac_func
  8234. /* Override any gcc2 internal prototype to avoid an error. */
  8235. #ifdef __cplusplus
  8236. extern "C"
  8237. {
  8238. #endif
  8239. /* We use char because int might match the return type of a gcc2
  8240. builtin and then its argument prototype would still apply. */
  8241. char $ac_func ();
  8242. /* The GNU C library defines this for functions which it implements
  8243. to always fail with ENOSYS. Some functions are actually named
  8244. something starting with __ and the normal name is an alias. */
  8245. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8246. choke me
  8247. #else
  8248. char (*f) () = $ac_func;
  8249. #endif
  8250. #ifdef __cplusplus
  8251. }
  8252. #endif
  8253. int
  8254. main ()
  8255. {
  8256. return f != $ac_func;
  8257. ;
  8258. return 0;
  8259. }
  8260. _ACEOF
  8261. rm -f conftest.$ac_objext conftest$ac_exeext
  8262. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8263. (eval $ac_link) 2>conftest.er1
  8264. ac_status=$?
  8265. grep -v '^ *+' conftest.er1 >conftest.err
  8266. rm -f conftest.er1
  8267. cat conftest.err >&5
  8268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8269. (exit $ac_status); } &&
  8270. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8271. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8272. (eval $ac_try) 2>&5
  8273. ac_status=$?
  8274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8275. (exit $ac_status); }; } &&
  8276. { ac_try='test -s conftest$ac_exeext'
  8277. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8278. (eval $ac_try) 2>&5
  8279. ac_status=$?
  8280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8281. (exit $ac_status); }; }; then
  8282. eval "$as_ac_var=yes"
  8283. else
  8284. echo "$as_me: failed program was:" >&5
  8285. sed 's/^/| /' conftest.$ac_ext >&5
  8286. eval "$as_ac_var=no"
  8287. fi
  8288. rm -f conftest.err conftest.$ac_objext \
  8289. conftest$ac_exeext conftest.$ac_ext
  8290. fi
  8291. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8292. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8293. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8294. cat >>confdefs.h <<_ACEOF
  8295. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8296. _ACEOF
  8297. fi
  8298. done
  8299. if test "x$ac_cv_func_fork" = xyes; then
  8300. echo "$as_me:$LINENO: checking for working fork" >&5
  8301. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  8302. if test "${ac_cv_func_fork_works+set}" = set; then
  8303. echo $ECHO_N "(cached) $ECHO_C" >&6
  8304. else
  8305. if test "$cross_compiling" = yes; then
  8306. ac_cv_func_fork_works=cross
  8307. else
  8308. cat >conftest.$ac_ext <<_ACEOF
  8309. /* By Ruediger Kuhlmann. */
  8310. #include <sys/types.h>
  8311. #if HAVE_UNISTD_H
  8312. # include <unistd.h>
  8313. #endif
  8314. /* Some systems only have a dummy stub for fork() */
  8315. int main ()
  8316. {
  8317. if (fork() < 0)
  8318. exit (1);
  8319. exit (0);
  8320. }
  8321. _ACEOF
  8322. rm -f conftest$ac_exeext
  8323. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8324. (eval $ac_link) 2>&5
  8325. ac_status=$?
  8326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8327. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8329. (eval $ac_try) 2>&5
  8330. ac_status=$?
  8331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8332. (exit $ac_status); }; }; then
  8333. ac_cv_func_fork_works=yes
  8334. else
  8335. echo "$as_me: program exited with status $ac_status" >&5
  8336. echo "$as_me: failed program was:" >&5
  8337. sed 's/^/| /' conftest.$ac_ext >&5
  8338. ( exit $ac_status )
  8339. ac_cv_func_fork_works=no
  8340. fi
  8341. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8342. fi
  8343. fi
  8344. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8345. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  8346. else
  8347. ac_cv_func_fork_works=$ac_cv_func_fork
  8348. fi
  8349. if test "x$ac_cv_func_fork_works" = xcross; then
  8350. case $host in
  8351. *-*-amigaos* | *-*-msdosdjgpp*)
  8352. # Override, as these systems have only a dummy fork() stub
  8353. ac_cv_func_fork_works=no
  8354. ;;
  8355. *)
  8356. ac_cv_func_fork_works=yes
  8357. ;;
  8358. esac
  8359. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8360. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8361. fi
  8362. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8363. if test "x$ac_cv_func_vfork" = xyes; then
  8364. echo "$as_me:$LINENO: checking for working vfork" >&5
  8365. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  8366. if test "${ac_cv_func_vfork_works+set}" = set; then
  8367. echo $ECHO_N "(cached) $ECHO_C" >&6
  8368. else
  8369. if test "$cross_compiling" = yes; then
  8370. ac_cv_func_vfork_works=cross
  8371. else
  8372. cat >conftest.$ac_ext <<_ACEOF
  8373. /* confdefs.h. */
  8374. _ACEOF
  8375. cat confdefs.h >>conftest.$ac_ext
  8376. cat >>conftest.$ac_ext <<_ACEOF
  8377. /* end confdefs.h. */
  8378. /* Thanks to Paul Eggert for this test. */
  8379. #include <stdio.h>
  8380. #include <stdlib.h>
  8381. #include <sys/types.h>
  8382. #include <sys/stat.h>
  8383. #include <sys/wait.h>
  8384. #if HAVE_UNISTD_H
  8385. # include <unistd.h>
  8386. #endif
  8387. #if HAVE_VFORK_H
  8388. # include <vfork.h>
  8389. #endif
  8390. /* On some sparc systems, changes by the child to local and incoming
  8391. argument registers are propagated back to the parent. The compiler
  8392. is told about this with #include <vfork.h>, but some compilers
  8393. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8394. static variable whose address is put into a register that is
  8395. clobbered by the vfork. */
  8396. static void
  8397. #ifdef __cplusplus
  8398. sparc_address_test (int arg)
  8399. # else
  8400. sparc_address_test (arg) int arg;
  8401. #endif
  8402. {
  8403. static pid_t child;
  8404. if (!child) {
  8405. child = vfork ();
  8406. if (child < 0) {
  8407. perror ("vfork");
  8408. _exit(2);
  8409. }
  8410. if (!child) {
  8411. arg = getpid();
  8412. write(-1, "", 0);
  8413. _exit (arg);
  8414. }
  8415. }
  8416. }
  8417. int
  8418. main ()
  8419. {
  8420. pid_t parent = getpid ();
  8421. pid_t child;
  8422. sparc_address_test (0);
  8423. child = vfork ();
  8424. if (child == 0) {
  8425. /* Here is another test for sparc vfork register problems. This
  8426. test uses lots of local variables, at least as many local
  8427. variables as main has allocated so far including compiler
  8428. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8429. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8430. reuse the register of parent for one of the local variables,
  8431. since it will think that parent can't possibly be used any more
  8432. in this routine. Assigning to the local variable will thus
  8433. munge parent in the parent process. */
  8434. pid_t
  8435. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8436. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8437. /* Convince the compiler that p..p7 are live; otherwise, it might
  8438. use the same hardware register for all 8 local variables. */
  8439. if (p != p1 || p != p2 || p != p3 || p != p4
  8440. || p != p5 || p != p6 || p != p7)
  8441. _exit(1);
  8442. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8443. from child file descriptors. If the child closes a descriptor
  8444. before it execs or exits, this munges the parent's descriptor
  8445. as well. Test for this by closing stdout in the child. */
  8446. _exit(close(fileno(stdout)) != 0);
  8447. } else {
  8448. int status;
  8449. struct stat st;
  8450. while (wait(&status) != child)
  8451. ;
  8452. exit(
  8453. /* Was there some problem with vforking? */
  8454. child < 0
  8455. /* Did the child fail? (This shouldn't happen.) */
  8456. || status
  8457. /* Did the vfork/compiler bug occur? */
  8458. || parent != getpid()
  8459. /* Did the file descriptor bug occur? */
  8460. || fstat(fileno(stdout), &st) != 0
  8461. );
  8462. }
  8463. }
  8464. _ACEOF
  8465. rm -f conftest$ac_exeext
  8466. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8467. (eval $ac_link) 2>&5
  8468. ac_status=$?
  8469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8470. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8471. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8472. (eval $ac_try) 2>&5
  8473. ac_status=$?
  8474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8475. (exit $ac_status); }; }; then
  8476. ac_cv_func_vfork_works=yes
  8477. else
  8478. echo "$as_me: program exited with status $ac_status" >&5
  8479. echo "$as_me: failed program was:" >&5
  8480. sed 's/^/| /' conftest.$ac_ext >&5
  8481. ( exit $ac_status )
  8482. ac_cv_func_vfork_works=no
  8483. fi
  8484. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8485. fi
  8486. fi
  8487. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8488. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8489. fi;
  8490. if test "x$ac_cv_func_fork_works" = xcross; then
  8491. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8492. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8493. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8494. fi
  8495. if test "x$ac_cv_func_vfork_works" = xyes; then
  8496. cat >>confdefs.h <<\_ACEOF
  8497. #define HAVE_WORKING_VFORK 1
  8498. _ACEOF
  8499. else
  8500. cat >>confdefs.h <<\_ACEOF
  8501. #define vfork fork
  8502. _ACEOF
  8503. fi
  8504. if test "x$ac_cv_func_fork_works" = xyes; then
  8505. cat >>confdefs.h <<\_ACEOF
  8506. #define HAVE_WORKING_FORK 1
  8507. _ACEOF
  8508. fi
  8509. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8510. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8511. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8512. echo $ECHO_N "(cached) $ECHO_C" >&6
  8513. else
  8514. rm -f conftest.sym conftest.file
  8515. echo >conftest.file
  8516. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8517. if test "$cross_compiling" = yes; then
  8518. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8519. else
  8520. cat >conftest.$ac_ext <<_ACEOF
  8521. /* confdefs.h. */
  8522. _ACEOF
  8523. cat confdefs.h >>conftest.$ac_ext
  8524. cat >>conftest.$ac_ext <<_ACEOF
  8525. /* end confdefs.h. */
  8526. $ac_includes_default
  8527. int
  8528. main ()
  8529. {
  8530. struct stat sbuf;
  8531. /* Linux will dereference the symlink and fail.
  8532. That is better in the sense that it means we will not
  8533. have to compile and use the lstat wrapper. */
  8534. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8535. ;
  8536. return 0;
  8537. }
  8538. _ACEOF
  8539. rm -f conftest$ac_exeext
  8540. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8541. (eval $ac_link) 2>&5
  8542. ac_status=$?
  8543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8544. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8545. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8546. (eval $ac_try) 2>&5
  8547. ac_status=$?
  8548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8549. (exit $ac_status); }; }; then
  8550. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8551. else
  8552. echo "$as_me: program exited with status $ac_status" >&5
  8553. echo "$as_me: failed program was:" >&5
  8554. sed 's/^/| /' conftest.$ac_ext >&5
  8555. ( exit $ac_status )
  8556. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8557. fi
  8558. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8559. fi
  8560. else
  8561. # If the `ln -s' command failed, then we probably don't even
  8562. # have an lstat function.
  8563. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8564. fi
  8565. rm -f conftest.sym conftest.file
  8566. fi
  8567. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8568. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8569. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8570. cat >>confdefs.h <<_ACEOF
  8571. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8572. _ACEOF
  8573. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8574. case $LIBOBJS in
  8575. "lstat.$ac_objext" | \
  8576. *" lstat.$ac_objext" | \
  8577. "lstat.$ac_objext "* | \
  8578. *" lstat.$ac_objext "* ) ;;
  8579. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8580. esac
  8581. fi
  8582. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8583. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8584. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8585. echo $ECHO_N "(cached) $ECHO_C" >&6
  8586. else
  8587. if test "$cross_compiling" = yes; then
  8588. ac_cv_func_lstat_empty_string_bug=yes
  8589. else
  8590. cat >conftest.$ac_ext <<_ACEOF
  8591. /* confdefs.h. */
  8592. _ACEOF
  8593. cat confdefs.h >>conftest.$ac_ext
  8594. cat >>conftest.$ac_ext <<_ACEOF
  8595. /* end confdefs.h. */
  8596. $ac_includes_default
  8597. int
  8598. main ()
  8599. {
  8600. struct stat sbuf;
  8601. exit (lstat ("", &sbuf) ? 1 : 0);
  8602. ;
  8603. return 0;
  8604. }
  8605. _ACEOF
  8606. rm -f conftest$ac_exeext
  8607. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8608. (eval $ac_link) 2>&5
  8609. ac_status=$?
  8610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8611. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8612. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8613. (eval $ac_try) 2>&5
  8614. ac_status=$?
  8615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8616. (exit $ac_status); }; }; then
  8617. ac_cv_func_lstat_empty_string_bug=yes
  8618. else
  8619. echo "$as_me: program exited with status $ac_status" >&5
  8620. echo "$as_me: failed program was:" >&5
  8621. sed 's/^/| /' conftest.$ac_ext >&5
  8622. ( exit $ac_status )
  8623. ac_cv_func_lstat_empty_string_bug=no
  8624. fi
  8625. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8626. fi
  8627. fi
  8628. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8629. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8630. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8631. case $LIBOBJS in
  8632. "lstat.$ac_objext" | \
  8633. *" lstat.$ac_objext" | \
  8634. "lstat.$ac_objext "* | \
  8635. *" lstat.$ac_objext "* ) ;;
  8636. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8637. esac
  8638. cat >>confdefs.h <<_ACEOF
  8639. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8640. _ACEOF
  8641. fi
  8642. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8643. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8644. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8645. echo $ECHO_N "(cached) $ECHO_C" >&6
  8646. else
  8647. rm -f conftest.sym conftest.file
  8648. echo >conftest.file
  8649. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8650. if test "$cross_compiling" = yes; then
  8651. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8652. else
  8653. cat >conftest.$ac_ext <<_ACEOF
  8654. /* confdefs.h. */
  8655. _ACEOF
  8656. cat confdefs.h >>conftest.$ac_ext
  8657. cat >>conftest.$ac_ext <<_ACEOF
  8658. /* end confdefs.h. */
  8659. $ac_includes_default
  8660. int
  8661. main ()
  8662. {
  8663. struct stat sbuf;
  8664. /* Linux will dereference the symlink and fail.
  8665. That is better in the sense that it means we will not
  8666. have to compile and use the lstat wrapper. */
  8667. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8668. ;
  8669. return 0;
  8670. }
  8671. _ACEOF
  8672. rm -f conftest$ac_exeext
  8673. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8674. (eval $ac_link) 2>&5
  8675. ac_status=$?
  8676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8677. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8678. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8679. (eval $ac_try) 2>&5
  8680. ac_status=$?
  8681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8682. (exit $ac_status); }; }; then
  8683. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8684. else
  8685. echo "$as_me: program exited with status $ac_status" >&5
  8686. echo "$as_me: failed program was:" >&5
  8687. sed 's/^/| /' conftest.$ac_ext >&5
  8688. ( exit $ac_status )
  8689. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8690. fi
  8691. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8692. fi
  8693. else
  8694. # If the `ln -s' command failed, then we probably don't even
  8695. # have an lstat function.
  8696. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8697. fi
  8698. rm -f conftest.sym conftest.file
  8699. fi
  8700. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8701. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8702. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8703. cat >>confdefs.h <<_ACEOF
  8704. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8705. _ACEOF
  8706. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8707. case $LIBOBJS in
  8708. "lstat.$ac_objext" | \
  8709. *" lstat.$ac_objext" | \
  8710. "lstat.$ac_objext "* | \
  8711. *" lstat.$ac_objext "* ) ;;
  8712. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8713. esac
  8714. fi
  8715. for ac_header in stdlib.h
  8716. do
  8717. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8718. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8719. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8720. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8721. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8722. echo $ECHO_N "(cached) $ECHO_C" >&6
  8723. fi
  8724. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8725. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8726. else
  8727. # Is the header compilable?
  8728. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8729. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8730. cat >conftest.$ac_ext <<_ACEOF
  8731. /* confdefs.h. */
  8732. _ACEOF
  8733. cat confdefs.h >>conftest.$ac_ext
  8734. cat >>conftest.$ac_ext <<_ACEOF
  8735. /* end confdefs.h. */
  8736. $ac_includes_default
  8737. #include <$ac_header>
  8738. _ACEOF
  8739. rm -f conftest.$ac_objext
  8740. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8741. (eval $ac_compile) 2>conftest.er1
  8742. ac_status=$?
  8743. grep -v '^ *+' conftest.er1 >conftest.err
  8744. rm -f conftest.er1
  8745. cat conftest.err >&5
  8746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8747. (exit $ac_status); } &&
  8748. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8749. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8750. (eval $ac_try) 2>&5
  8751. ac_status=$?
  8752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8753. (exit $ac_status); }; } &&
  8754. { ac_try='test -s conftest.$ac_objext'
  8755. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8756. (eval $ac_try) 2>&5
  8757. ac_status=$?
  8758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8759. (exit $ac_status); }; }; then
  8760. ac_header_compiler=yes
  8761. else
  8762. echo "$as_me: failed program was:" >&5
  8763. sed 's/^/| /' conftest.$ac_ext >&5
  8764. ac_header_compiler=no
  8765. fi
  8766. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8767. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8768. echo "${ECHO_T}$ac_header_compiler" >&6
  8769. # Is the header present?
  8770. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8771. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8772. cat >conftest.$ac_ext <<_ACEOF
  8773. /* confdefs.h. */
  8774. _ACEOF
  8775. cat confdefs.h >>conftest.$ac_ext
  8776. cat >>conftest.$ac_ext <<_ACEOF
  8777. /* end confdefs.h. */
  8778. #include <$ac_header>
  8779. _ACEOF
  8780. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8781. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8782. ac_status=$?
  8783. grep -v '^ *+' conftest.er1 >conftest.err
  8784. rm -f conftest.er1
  8785. cat conftest.err >&5
  8786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8787. (exit $ac_status); } >/dev/null; then
  8788. if test -s conftest.err; then
  8789. ac_cpp_err=$ac_c_preproc_warn_flag
  8790. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8791. else
  8792. ac_cpp_err=
  8793. fi
  8794. else
  8795. ac_cpp_err=yes
  8796. fi
  8797. if test -z "$ac_cpp_err"; then
  8798. ac_header_preproc=yes
  8799. else
  8800. echo "$as_me: failed program was:" >&5
  8801. sed 's/^/| /' conftest.$ac_ext >&5
  8802. ac_header_preproc=no
  8803. fi
  8804. rm -f conftest.err conftest.$ac_ext
  8805. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8806. echo "${ECHO_T}$ac_header_preproc" >&6
  8807. # So? What about this header?
  8808. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8809. yes:no: )
  8810. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8811. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8812. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8813. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8814. ac_header_preproc=yes
  8815. ;;
  8816. no:yes:* )
  8817. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8818. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8819. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8820. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8821. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8822. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8823. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8824. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8825. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8826. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8827. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8828. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8829. (
  8830. cat <<\_ASBOX
  8831. ## ------------------------------------------ ##
  8832. ## Report this to the AC_PACKAGE_NAME lists. ##
  8833. ## ------------------------------------------ ##
  8834. _ASBOX
  8835. ) |
  8836. sed "s/^/$as_me: WARNING: /" >&2
  8837. ;;
  8838. esac
  8839. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8840. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8841. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8842. echo $ECHO_N "(cached) $ECHO_C" >&6
  8843. else
  8844. eval "$as_ac_Header=\$ac_header_preproc"
  8845. fi
  8846. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8847. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8848. fi
  8849. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8850. cat >>confdefs.h <<_ACEOF
  8851. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8852. _ACEOF
  8853. fi
  8854. done
  8855. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8856. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8857. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8858. echo $ECHO_N "(cached) $ECHO_C" >&6
  8859. else
  8860. if test "$cross_compiling" = yes; then
  8861. ac_cv_func_malloc_0_nonnull=no
  8862. else
  8863. cat >conftest.$ac_ext <<_ACEOF
  8864. /* confdefs.h. */
  8865. _ACEOF
  8866. cat confdefs.h >>conftest.$ac_ext
  8867. cat >>conftest.$ac_ext <<_ACEOF
  8868. /* end confdefs.h. */
  8869. #if STDC_HEADERS || HAVE_STDLIB_H
  8870. # include <stdlib.h>
  8871. #else
  8872. char *malloc ();
  8873. #endif
  8874. int
  8875. main ()
  8876. {
  8877. exit (malloc (0) ? 0 : 1);
  8878. ;
  8879. return 0;
  8880. }
  8881. _ACEOF
  8882. rm -f conftest$ac_exeext
  8883. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8884. (eval $ac_link) 2>&5
  8885. ac_status=$?
  8886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8887. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8889. (eval $ac_try) 2>&5
  8890. ac_status=$?
  8891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8892. (exit $ac_status); }; }; then
  8893. ac_cv_func_malloc_0_nonnull=yes
  8894. else
  8895. echo "$as_me: program exited with status $ac_status" >&5
  8896. echo "$as_me: failed program was:" >&5
  8897. sed 's/^/| /' conftest.$ac_ext >&5
  8898. ( exit $ac_status )
  8899. ac_cv_func_malloc_0_nonnull=no
  8900. fi
  8901. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8902. fi
  8903. fi
  8904. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8905. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8906. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8907. cat >>confdefs.h <<\_ACEOF
  8908. #define HAVE_MALLOC 1
  8909. _ACEOF
  8910. else
  8911. cat >>confdefs.h <<\_ACEOF
  8912. #define HAVE_MALLOC 0
  8913. _ACEOF
  8914. case $LIBOBJS in
  8915. "malloc.$ac_objext" | \
  8916. *" malloc.$ac_objext" | \
  8917. "malloc.$ac_objext "* | \
  8918. *" malloc.$ac_objext "* ) ;;
  8919. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8920. esac
  8921. cat >>confdefs.h <<\_ACEOF
  8922. #define malloc rpl_malloc
  8923. _ACEOF
  8924. fi
  8925. for ac_header in stdlib.h sys/time.h unistd.h
  8926. do
  8927. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8928. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8929. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8930. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8931. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8932. echo $ECHO_N "(cached) $ECHO_C" >&6
  8933. fi
  8934. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8935. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8936. else
  8937. # Is the header compilable?
  8938. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8939. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8940. cat >conftest.$ac_ext <<_ACEOF
  8941. /* confdefs.h. */
  8942. _ACEOF
  8943. cat confdefs.h >>conftest.$ac_ext
  8944. cat >>conftest.$ac_ext <<_ACEOF
  8945. /* end confdefs.h. */
  8946. $ac_includes_default
  8947. #include <$ac_header>
  8948. _ACEOF
  8949. rm -f conftest.$ac_objext
  8950. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8951. (eval $ac_compile) 2>conftest.er1
  8952. ac_status=$?
  8953. grep -v '^ *+' conftest.er1 >conftest.err
  8954. rm -f conftest.er1
  8955. cat conftest.err >&5
  8956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8957. (exit $ac_status); } &&
  8958. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8959. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8960. (eval $ac_try) 2>&5
  8961. ac_status=$?
  8962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8963. (exit $ac_status); }; } &&
  8964. { ac_try='test -s conftest.$ac_objext'
  8965. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8966. (eval $ac_try) 2>&5
  8967. ac_status=$?
  8968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8969. (exit $ac_status); }; }; then
  8970. ac_header_compiler=yes
  8971. else
  8972. echo "$as_me: failed program was:" >&5
  8973. sed 's/^/| /' conftest.$ac_ext >&5
  8974. ac_header_compiler=no
  8975. fi
  8976. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8977. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8978. echo "${ECHO_T}$ac_header_compiler" >&6
  8979. # Is the header present?
  8980. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8981. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8982. cat >conftest.$ac_ext <<_ACEOF
  8983. /* confdefs.h. */
  8984. _ACEOF
  8985. cat confdefs.h >>conftest.$ac_ext
  8986. cat >>conftest.$ac_ext <<_ACEOF
  8987. /* end confdefs.h. */
  8988. #include <$ac_header>
  8989. _ACEOF
  8990. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8991. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8992. ac_status=$?
  8993. grep -v '^ *+' conftest.er1 >conftest.err
  8994. rm -f conftest.er1
  8995. cat conftest.err >&5
  8996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8997. (exit $ac_status); } >/dev/null; then
  8998. if test -s conftest.err; then
  8999. ac_cpp_err=$ac_c_preproc_warn_flag
  9000. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9001. else
  9002. ac_cpp_err=
  9003. fi
  9004. else
  9005. ac_cpp_err=yes
  9006. fi
  9007. if test -z "$ac_cpp_err"; then
  9008. ac_header_preproc=yes
  9009. else
  9010. echo "$as_me: failed program was:" >&5
  9011. sed 's/^/| /' conftest.$ac_ext >&5
  9012. ac_header_preproc=no
  9013. fi
  9014. rm -f conftest.err conftest.$ac_ext
  9015. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9016. echo "${ECHO_T}$ac_header_preproc" >&6
  9017. # So? What about this header?
  9018. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9019. yes:no: )
  9020. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9021. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9022. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9023. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9024. ac_header_preproc=yes
  9025. ;;
  9026. no:yes:* )
  9027. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9028. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9029. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9030. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9031. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9032. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9033. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9034. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9035. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9036. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9037. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9038. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9039. (
  9040. cat <<\_ASBOX
  9041. ## ------------------------------------------ ##
  9042. ## Report this to the AC_PACKAGE_NAME lists. ##
  9043. ## ------------------------------------------ ##
  9044. _ASBOX
  9045. ) |
  9046. sed "s/^/$as_me: WARNING: /" >&2
  9047. ;;
  9048. esac
  9049. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9050. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9051. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9052. echo $ECHO_N "(cached) $ECHO_C" >&6
  9053. else
  9054. eval "$as_ac_Header=\$ac_header_preproc"
  9055. fi
  9056. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9057. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9058. fi
  9059. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9060. cat >>confdefs.h <<_ACEOF
  9061. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9062. _ACEOF
  9063. fi
  9064. done
  9065. for ac_func in alarm
  9066. do
  9067. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9068. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9069. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9070. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9071. echo $ECHO_N "(cached) $ECHO_C" >&6
  9072. else
  9073. cat >conftest.$ac_ext <<_ACEOF
  9074. /* confdefs.h. */
  9075. _ACEOF
  9076. cat confdefs.h >>conftest.$ac_ext
  9077. cat >>conftest.$ac_ext <<_ACEOF
  9078. /* end confdefs.h. */
  9079. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9080. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9081. #define $ac_func innocuous_$ac_func
  9082. /* System header to define __stub macros and hopefully few prototypes,
  9083. which can conflict with char $ac_func (); below.
  9084. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9085. <limits.h> exists even on freestanding compilers. */
  9086. #ifdef __STDC__
  9087. # include <limits.h>
  9088. #else
  9089. # include <assert.h>
  9090. #endif
  9091. #undef $ac_func
  9092. /* Override any gcc2 internal prototype to avoid an error. */
  9093. #ifdef __cplusplus
  9094. extern "C"
  9095. {
  9096. #endif
  9097. /* We use char because int might match the return type of a gcc2
  9098. builtin and then its argument prototype would still apply. */
  9099. char $ac_func ();
  9100. /* The GNU C library defines this for functions which it implements
  9101. to always fail with ENOSYS. Some functions are actually named
  9102. something starting with __ and the normal name is an alias. */
  9103. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9104. choke me
  9105. #else
  9106. char (*f) () = $ac_func;
  9107. #endif
  9108. #ifdef __cplusplus
  9109. }
  9110. #endif
  9111. int
  9112. main ()
  9113. {
  9114. return f != $ac_func;
  9115. ;
  9116. return 0;
  9117. }
  9118. _ACEOF
  9119. rm -f conftest.$ac_objext conftest$ac_exeext
  9120. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9121. (eval $ac_link) 2>conftest.er1
  9122. ac_status=$?
  9123. grep -v '^ *+' conftest.er1 >conftest.err
  9124. rm -f conftest.er1
  9125. cat conftest.err >&5
  9126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9127. (exit $ac_status); } &&
  9128. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9129. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9130. (eval $ac_try) 2>&5
  9131. ac_status=$?
  9132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9133. (exit $ac_status); }; } &&
  9134. { ac_try='test -s conftest$ac_exeext'
  9135. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9136. (eval $ac_try) 2>&5
  9137. ac_status=$?
  9138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9139. (exit $ac_status); }; }; then
  9140. eval "$as_ac_var=yes"
  9141. else
  9142. echo "$as_me: failed program was:" >&5
  9143. sed 's/^/| /' conftest.$ac_ext >&5
  9144. eval "$as_ac_var=no"
  9145. fi
  9146. rm -f conftest.err conftest.$ac_objext \
  9147. conftest$ac_exeext conftest.$ac_ext
  9148. fi
  9149. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9150. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9151. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9152. cat >>confdefs.h <<_ACEOF
  9153. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9154. _ACEOF
  9155. fi
  9156. done
  9157. echo "$as_me:$LINENO: checking for working mktime" >&5
  9158. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  9159. if test "${ac_cv_func_working_mktime+set}" = set; then
  9160. echo $ECHO_N "(cached) $ECHO_C" >&6
  9161. else
  9162. if test "$cross_compiling" = yes; then
  9163. ac_cv_func_working_mktime=no
  9164. else
  9165. cat >conftest.$ac_ext <<_ACEOF
  9166. /* confdefs.h. */
  9167. _ACEOF
  9168. cat confdefs.h >>conftest.$ac_ext
  9169. cat >>conftest.$ac_ext <<_ACEOF
  9170. /* end confdefs.h. */
  9171. /* Test program from Paul Eggert and Tony Leneis. */
  9172. #if TIME_WITH_SYS_TIME
  9173. # include <sys/time.h>
  9174. # include <time.h>
  9175. #else
  9176. # if HAVE_SYS_TIME_H
  9177. # include <sys/time.h>
  9178. # else
  9179. # include <time.h>
  9180. # endif
  9181. #endif
  9182. #if HAVE_STDLIB_H
  9183. # include <stdlib.h>
  9184. #endif
  9185. #if HAVE_UNISTD_H
  9186. # include <unistd.h>
  9187. #endif
  9188. #if !HAVE_ALARM
  9189. # define alarm(X) /* empty */
  9190. #endif
  9191. /* Work around redefinition to rpl_putenv by other config tests. */
  9192. #undef putenv
  9193. static time_t time_t_max;
  9194. static time_t time_t_min;
  9195. /* Values we'll use to set the TZ environment variable. */
  9196. static char *tz_strings[] = {
  9197. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  9198. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  9199. };
  9200. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  9201. /* Fail if mktime fails to convert a date in the spring-forward gap.
  9202. Based on a problem report from Andreas Jaeger. */
  9203. static void
  9204. spring_forward_gap ()
  9205. {
  9206. /* glibc (up to about 1998-10-07) failed this test. */
  9207. struct tm tm;
  9208. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  9209. instead of "TZ=America/Vancouver" in order to detect the bug even
  9210. on systems that don't support the Olson extension, or don't have the
  9211. full zoneinfo tables installed. */
  9212. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  9213. tm.tm_year = 98;
  9214. tm.tm_mon = 3;
  9215. tm.tm_mday = 5;
  9216. tm.tm_hour = 2;
  9217. tm.tm_min = 0;
  9218. tm.tm_sec = 0;
  9219. tm.tm_isdst = -1;
  9220. if (mktime (&tm) == (time_t)-1)
  9221. exit (1);
  9222. }
  9223. static void
  9224. mktime_test1 (now)
  9225. time_t now;
  9226. {
  9227. struct tm *lt;
  9228. if ((lt = localtime (&now)) && mktime (lt) != now)
  9229. exit (1);
  9230. }
  9231. static void
  9232. mktime_test (now)
  9233. time_t now;
  9234. {
  9235. mktime_test1 (now);
  9236. mktime_test1 ((time_t) (time_t_max - now));
  9237. mktime_test1 ((time_t) (time_t_min + now));
  9238. }
  9239. static void
  9240. irix_6_4_bug ()
  9241. {
  9242. /* Based on code from Ariel Faigon. */
  9243. struct tm tm;
  9244. tm.tm_year = 96;
  9245. tm.tm_mon = 3;
  9246. tm.tm_mday = 0;
  9247. tm.tm_hour = 0;
  9248. tm.tm_min = 0;
  9249. tm.tm_sec = 0;
  9250. tm.tm_isdst = -1;
  9251. mktime (&tm);
  9252. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  9253. exit (1);
  9254. }
  9255. static void
  9256. bigtime_test (j)
  9257. int j;
  9258. {
  9259. struct tm tm;
  9260. time_t now;
  9261. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  9262. now = mktime (&tm);
  9263. if (now != (time_t) -1)
  9264. {
  9265. struct tm *lt = localtime (&now);
  9266. if (! (lt
  9267. && lt->tm_year == tm.tm_year
  9268. && lt->tm_mon == tm.tm_mon
  9269. && lt->tm_mday == tm.tm_mday
  9270. && lt->tm_hour == tm.tm_hour
  9271. && lt->tm_min == tm.tm_min
  9272. && lt->tm_sec == tm.tm_sec
  9273. && lt->tm_yday == tm.tm_yday
  9274. && lt->tm_wday == tm.tm_wday
  9275. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  9276. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  9277. exit (1);
  9278. }
  9279. }
  9280. int
  9281. main ()
  9282. {
  9283. time_t t, delta;
  9284. int i, j;
  9285. /* This test makes some buggy mktime implementations loop.
  9286. Give up after 60 seconds; a mktime slower than that
  9287. isn't worth using anyway. */
  9288. alarm (60);
  9289. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  9290. continue;
  9291. time_t_max--;
  9292. if ((time_t) -1 < 0)
  9293. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  9294. continue;
  9295. delta = time_t_max / 997; /* a suitable prime number */
  9296. for (i = 0; i < N_STRINGS; i++)
  9297. {
  9298. if (tz_strings[i])
  9299. putenv (tz_strings[i]);
  9300. for (t = 0; t <= time_t_max - delta; t += delta)
  9301. mktime_test (t);
  9302. mktime_test ((time_t) 1);
  9303. mktime_test ((time_t) (60 * 60));
  9304. mktime_test ((time_t) (60 * 60 * 24));
  9305. for (j = 1; 0 < j; j *= 2)
  9306. bigtime_test (j);
  9307. bigtime_test (j - 1);
  9308. }
  9309. irix_6_4_bug ();
  9310. spring_forward_gap ();
  9311. exit (0);
  9312. }
  9313. _ACEOF
  9314. rm -f conftest$ac_exeext
  9315. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9316. (eval $ac_link) 2>&5
  9317. ac_status=$?
  9318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9319. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9321. (eval $ac_try) 2>&5
  9322. ac_status=$?
  9323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9324. (exit $ac_status); }; }; then
  9325. ac_cv_func_working_mktime=yes
  9326. else
  9327. echo "$as_me: program exited with status $ac_status" >&5
  9328. echo "$as_me: failed program was:" >&5
  9329. sed 's/^/| /' conftest.$ac_ext >&5
  9330. ( exit $ac_status )
  9331. ac_cv_func_working_mktime=no
  9332. fi
  9333. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9334. fi
  9335. fi
  9336. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9337. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  9338. if test $ac_cv_func_working_mktime = no; then
  9339. case $LIBOBJS in
  9340. "mktime.$ac_objext" | \
  9341. *" mktime.$ac_objext" | \
  9342. "mktime.$ac_objext "* | \
  9343. *" mktime.$ac_objext "* ) ;;
  9344. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  9345. esac
  9346. fi
  9347. for ac_header in stdlib.h unistd.h
  9348. do
  9349. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9350. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9351. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9352. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9353. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9354. echo $ECHO_N "(cached) $ECHO_C" >&6
  9355. fi
  9356. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9357. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9358. else
  9359. # Is the header compilable?
  9360. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9361. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9362. cat >conftest.$ac_ext <<_ACEOF
  9363. /* confdefs.h. */
  9364. _ACEOF
  9365. cat confdefs.h >>conftest.$ac_ext
  9366. cat >>conftest.$ac_ext <<_ACEOF
  9367. /* end confdefs.h. */
  9368. $ac_includes_default
  9369. #include <$ac_header>
  9370. _ACEOF
  9371. rm -f conftest.$ac_objext
  9372. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9373. (eval $ac_compile) 2>conftest.er1
  9374. ac_status=$?
  9375. grep -v '^ *+' conftest.er1 >conftest.err
  9376. rm -f conftest.er1
  9377. cat conftest.err >&5
  9378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9379. (exit $ac_status); } &&
  9380. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9381. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9382. (eval $ac_try) 2>&5
  9383. ac_status=$?
  9384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9385. (exit $ac_status); }; } &&
  9386. { ac_try='test -s conftest.$ac_objext'
  9387. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9388. (eval $ac_try) 2>&5
  9389. ac_status=$?
  9390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9391. (exit $ac_status); }; }; then
  9392. ac_header_compiler=yes
  9393. else
  9394. echo "$as_me: failed program was:" >&5
  9395. sed 's/^/| /' conftest.$ac_ext >&5
  9396. ac_header_compiler=no
  9397. fi
  9398. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9399. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9400. echo "${ECHO_T}$ac_header_compiler" >&6
  9401. # Is the header present?
  9402. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9403. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9404. cat >conftest.$ac_ext <<_ACEOF
  9405. /* confdefs.h. */
  9406. _ACEOF
  9407. cat confdefs.h >>conftest.$ac_ext
  9408. cat >>conftest.$ac_ext <<_ACEOF
  9409. /* end confdefs.h. */
  9410. #include <$ac_header>
  9411. _ACEOF
  9412. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9413. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9414. ac_status=$?
  9415. grep -v '^ *+' conftest.er1 >conftest.err
  9416. rm -f conftest.er1
  9417. cat conftest.err >&5
  9418. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9419. (exit $ac_status); } >/dev/null; then
  9420. if test -s conftest.err; then
  9421. ac_cpp_err=$ac_c_preproc_warn_flag
  9422. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9423. else
  9424. ac_cpp_err=
  9425. fi
  9426. else
  9427. ac_cpp_err=yes
  9428. fi
  9429. if test -z "$ac_cpp_err"; then
  9430. ac_header_preproc=yes
  9431. else
  9432. echo "$as_me: failed program was:" >&5
  9433. sed 's/^/| /' conftest.$ac_ext >&5
  9434. ac_header_preproc=no
  9435. fi
  9436. rm -f conftest.err conftest.$ac_ext
  9437. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9438. echo "${ECHO_T}$ac_header_preproc" >&6
  9439. # So? What about this header?
  9440. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9441. yes:no: )
  9442. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9443. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9444. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9445. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9446. ac_header_preproc=yes
  9447. ;;
  9448. no:yes:* )
  9449. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9450. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9451. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9452. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9453. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9454. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9455. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9456. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9457. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9458. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9459. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9460. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9461. (
  9462. cat <<\_ASBOX
  9463. ## ------------------------------------------ ##
  9464. ## Report this to the AC_PACKAGE_NAME lists. ##
  9465. ## ------------------------------------------ ##
  9466. _ASBOX
  9467. ) |
  9468. sed "s/^/$as_me: WARNING: /" >&2
  9469. ;;
  9470. esac
  9471. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9472. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9473. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9474. echo $ECHO_N "(cached) $ECHO_C" >&6
  9475. else
  9476. eval "$as_ac_Header=\$ac_header_preproc"
  9477. fi
  9478. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9479. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9480. fi
  9481. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9482. cat >>confdefs.h <<_ACEOF
  9483. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9484. _ACEOF
  9485. fi
  9486. done
  9487. for ac_func in getpagesize
  9488. do
  9489. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9490. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9491. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9492. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9493. echo $ECHO_N "(cached) $ECHO_C" >&6
  9494. else
  9495. cat >conftest.$ac_ext <<_ACEOF
  9496. /* confdefs.h. */
  9497. _ACEOF
  9498. cat confdefs.h >>conftest.$ac_ext
  9499. cat >>conftest.$ac_ext <<_ACEOF
  9500. /* end confdefs.h. */
  9501. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9502. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9503. #define $ac_func innocuous_$ac_func
  9504. /* System header to define __stub macros and hopefully few prototypes,
  9505. which can conflict with char $ac_func (); below.
  9506. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9507. <limits.h> exists even on freestanding compilers. */
  9508. #ifdef __STDC__
  9509. # include <limits.h>
  9510. #else
  9511. # include <assert.h>
  9512. #endif
  9513. #undef $ac_func
  9514. /* Override any gcc2 internal prototype to avoid an error. */
  9515. #ifdef __cplusplus
  9516. extern "C"
  9517. {
  9518. #endif
  9519. /* We use char because int might match the return type of a gcc2
  9520. builtin and then its argument prototype would still apply. */
  9521. char $ac_func ();
  9522. /* The GNU C library defines this for functions which it implements
  9523. to always fail with ENOSYS. Some functions are actually named
  9524. something starting with __ and the normal name is an alias. */
  9525. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9526. choke me
  9527. #else
  9528. char (*f) () = $ac_func;
  9529. #endif
  9530. #ifdef __cplusplus
  9531. }
  9532. #endif
  9533. int
  9534. main ()
  9535. {
  9536. return f != $ac_func;
  9537. ;
  9538. return 0;
  9539. }
  9540. _ACEOF
  9541. rm -f conftest.$ac_objext conftest$ac_exeext
  9542. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9543. (eval $ac_link) 2>conftest.er1
  9544. ac_status=$?
  9545. grep -v '^ *+' conftest.er1 >conftest.err
  9546. rm -f conftest.er1
  9547. cat conftest.err >&5
  9548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9549. (exit $ac_status); } &&
  9550. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9552. (eval $ac_try) 2>&5
  9553. ac_status=$?
  9554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9555. (exit $ac_status); }; } &&
  9556. { ac_try='test -s conftest$ac_exeext'
  9557. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9558. (eval $ac_try) 2>&5
  9559. ac_status=$?
  9560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9561. (exit $ac_status); }; }; then
  9562. eval "$as_ac_var=yes"
  9563. else
  9564. echo "$as_me: failed program was:" >&5
  9565. sed 's/^/| /' conftest.$ac_ext >&5
  9566. eval "$as_ac_var=no"
  9567. fi
  9568. rm -f conftest.err conftest.$ac_objext \
  9569. conftest$ac_exeext conftest.$ac_ext
  9570. fi
  9571. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9572. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9573. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9574. cat >>confdefs.h <<_ACEOF
  9575. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9576. _ACEOF
  9577. fi
  9578. done
  9579. echo "$as_me:$LINENO: checking for working mmap" >&5
  9580. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9581. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9582. echo $ECHO_N "(cached) $ECHO_C" >&6
  9583. else
  9584. if test "$cross_compiling" = yes; then
  9585. ac_cv_func_mmap_fixed_mapped=no
  9586. else
  9587. cat >conftest.$ac_ext <<_ACEOF
  9588. /* confdefs.h. */
  9589. _ACEOF
  9590. cat confdefs.h >>conftest.$ac_ext
  9591. cat >>conftest.$ac_ext <<_ACEOF
  9592. /* end confdefs.h. */
  9593. $ac_includes_default
  9594. /* malloc might have been renamed as rpl_malloc. */
  9595. #undef malloc
  9596. /* Thanks to Mike Haertel and Jim Avera for this test.
  9597. Here is a matrix of mmap possibilities:
  9598. mmap private not fixed
  9599. mmap private fixed at somewhere currently unmapped
  9600. mmap private fixed at somewhere already mapped
  9601. mmap shared not fixed
  9602. mmap shared fixed at somewhere currently unmapped
  9603. mmap shared fixed at somewhere already mapped
  9604. For private mappings, we should verify that changes cannot be read()
  9605. back from the file, nor mmap's back from the file at a different
  9606. address. (There have been systems where private was not correctly
  9607. implemented like the infamous i386 svr4.0, and systems where the
  9608. VM page cache was not coherent with the file system buffer cache
  9609. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9610. For shared mappings, we should conversely verify that changes get
  9611. propagated back to all the places they're supposed to be.
  9612. Grep wants private fixed already mapped.
  9613. The main things grep needs to know about mmap are:
  9614. * does it exist and is it safe to write into the mmap'd area
  9615. * how to use it (BSD variants) */
  9616. #include <fcntl.h>
  9617. #include <sys/mman.h>
  9618. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9619. char *malloc ();
  9620. #endif
  9621. /* This mess was copied from the GNU getpagesize.h. */
  9622. #if !HAVE_GETPAGESIZE
  9623. /* Assume that all systems that can run configure have sys/param.h. */
  9624. # if !HAVE_SYS_PARAM_H
  9625. # define HAVE_SYS_PARAM_H 1
  9626. # endif
  9627. # ifdef _SC_PAGESIZE
  9628. # define getpagesize() sysconf(_SC_PAGESIZE)
  9629. # else /* no _SC_PAGESIZE */
  9630. # if HAVE_SYS_PARAM_H
  9631. # include <sys/param.h>
  9632. # ifdef EXEC_PAGESIZE
  9633. # define getpagesize() EXEC_PAGESIZE
  9634. # else /* no EXEC_PAGESIZE */
  9635. # ifdef NBPG
  9636. # define getpagesize() NBPG * CLSIZE
  9637. # ifndef CLSIZE
  9638. # define CLSIZE 1
  9639. # endif /* no CLSIZE */
  9640. # else /* no NBPG */
  9641. # ifdef NBPC
  9642. # define getpagesize() NBPC
  9643. # else /* no NBPC */
  9644. # ifdef PAGESIZE
  9645. # define getpagesize() PAGESIZE
  9646. # endif /* PAGESIZE */
  9647. # endif /* no NBPC */
  9648. # endif /* no NBPG */
  9649. # endif /* no EXEC_PAGESIZE */
  9650. # else /* no HAVE_SYS_PARAM_H */
  9651. # define getpagesize() 8192 /* punt totally */
  9652. # endif /* no HAVE_SYS_PARAM_H */
  9653. # endif /* no _SC_PAGESIZE */
  9654. #endif /* no HAVE_GETPAGESIZE */
  9655. int
  9656. main ()
  9657. {
  9658. char *data, *data2, *data3;
  9659. int i, pagesize;
  9660. int fd;
  9661. pagesize = getpagesize ();
  9662. /* First, make a file with some known garbage in it. */
  9663. data = (char *) malloc (pagesize);
  9664. if (!data)
  9665. exit (1);
  9666. for (i = 0; i < pagesize; ++i)
  9667. *(data + i) = rand ();
  9668. umask (0);
  9669. fd = creat ("conftest.mmap", 0600);
  9670. if (fd < 0)
  9671. exit (1);
  9672. if (write (fd, data, pagesize) != pagesize)
  9673. exit (1);
  9674. close (fd);
  9675. /* Next, try to mmap the file at a fixed address which already has
  9676. something else allocated at it. If we can, also make sure that
  9677. we see the same garbage. */
  9678. fd = open ("conftest.mmap", O_RDWR);
  9679. if (fd < 0)
  9680. exit (1);
  9681. data2 = (char *) malloc (2 * pagesize);
  9682. if (!data2)
  9683. exit (1);
  9684. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9685. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9686. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9687. exit (1);
  9688. for (i = 0; i < pagesize; ++i)
  9689. if (*(data + i) != *(data2 + i))
  9690. exit (1);
  9691. /* Finally, make sure that changes to the mapped area do not
  9692. percolate back to the file as seen by read(). (This is a bug on
  9693. some variants of i386 svr4.0.) */
  9694. for (i = 0; i < pagesize; ++i)
  9695. *(data2 + i) = *(data2 + i) + 1;
  9696. data3 = (char *) malloc (pagesize);
  9697. if (!data3)
  9698. exit (1);
  9699. if (read (fd, data3, pagesize) != pagesize)
  9700. exit (1);
  9701. for (i = 0; i < pagesize; ++i)
  9702. if (*(data + i) != *(data3 + i))
  9703. exit (1);
  9704. close (fd);
  9705. exit (0);
  9706. }
  9707. _ACEOF
  9708. rm -f conftest$ac_exeext
  9709. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9710. (eval $ac_link) 2>&5
  9711. ac_status=$?
  9712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9713. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  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); }; }; then
  9719. ac_cv_func_mmap_fixed_mapped=yes
  9720. else
  9721. echo "$as_me: program exited with status $ac_status" >&5
  9722. echo "$as_me: failed program was:" >&5
  9723. sed 's/^/| /' conftest.$ac_ext >&5
  9724. ( exit $ac_status )
  9725. ac_cv_func_mmap_fixed_mapped=no
  9726. fi
  9727. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9728. fi
  9729. fi
  9730. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9731. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9732. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9733. cat >>confdefs.h <<\_ACEOF
  9734. #define HAVE_MMAP 1
  9735. _ACEOF
  9736. fi
  9737. rm -f conftest.mmap
  9738. for ac_header in stdlib.h
  9739. do
  9740. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9741. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9742. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9743. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9744. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9745. echo $ECHO_N "(cached) $ECHO_C" >&6
  9746. fi
  9747. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9748. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9749. else
  9750. # Is the header compilable?
  9751. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9752. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9753. cat >conftest.$ac_ext <<_ACEOF
  9754. /* confdefs.h. */
  9755. _ACEOF
  9756. cat confdefs.h >>conftest.$ac_ext
  9757. cat >>conftest.$ac_ext <<_ACEOF
  9758. /* end confdefs.h. */
  9759. $ac_includes_default
  9760. #include <$ac_header>
  9761. _ACEOF
  9762. rm -f conftest.$ac_objext
  9763. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9764. (eval $ac_compile) 2>conftest.er1
  9765. ac_status=$?
  9766. grep -v '^ *+' conftest.er1 >conftest.err
  9767. rm -f conftest.er1
  9768. cat conftest.err >&5
  9769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9770. (exit $ac_status); } &&
  9771. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9772. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9773. (eval $ac_try) 2>&5
  9774. ac_status=$?
  9775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9776. (exit $ac_status); }; } &&
  9777. { ac_try='test -s conftest.$ac_objext'
  9778. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9779. (eval $ac_try) 2>&5
  9780. ac_status=$?
  9781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9782. (exit $ac_status); }; }; then
  9783. ac_header_compiler=yes
  9784. else
  9785. echo "$as_me: failed program was:" >&5
  9786. sed 's/^/| /' conftest.$ac_ext >&5
  9787. ac_header_compiler=no
  9788. fi
  9789. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9790. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9791. echo "${ECHO_T}$ac_header_compiler" >&6
  9792. # Is the header present?
  9793. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9794. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9795. cat >conftest.$ac_ext <<_ACEOF
  9796. /* confdefs.h. */
  9797. _ACEOF
  9798. cat confdefs.h >>conftest.$ac_ext
  9799. cat >>conftest.$ac_ext <<_ACEOF
  9800. /* end confdefs.h. */
  9801. #include <$ac_header>
  9802. _ACEOF
  9803. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9804. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9805. ac_status=$?
  9806. grep -v '^ *+' conftest.er1 >conftest.err
  9807. rm -f conftest.er1
  9808. cat conftest.err >&5
  9809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9810. (exit $ac_status); } >/dev/null; then
  9811. if test -s conftest.err; then
  9812. ac_cpp_err=$ac_c_preproc_warn_flag
  9813. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9814. else
  9815. ac_cpp_err=
  9816. fi
  9817. else
  9818. ac_cpp_err=yes
  9819. fi
  9820. if test -z "$ac_cpp_err"; then
  9821. ac_header_preproc=yes
  9822. else
  9823. echo "$as_me: failed program was:" >&5
  9824. sed 's/^/| /' conftest.$ac_ext >&5
  9825. ac_header_preproc=no
  9826. fi
  9827. rm -f conftest.err conftest.$ac_ext
  9828. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9829. echo "${ECHO_T}$ac_header_preproc" >&6
  9830. # So? What about this header?
  9831. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9832. yes:no: )
  9833. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9834. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9835. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9836. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9837. ac_header_preproc=yes
  9838. ;;
  9839. no:yes:* )
  9840. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9841. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9842. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9843. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9844. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9845. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9846. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9847. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9848. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9849. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9850. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9851. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9852. (
  9853. cat <<\_ASBOX
  9854. ## ------------------------------------------ ##
  9855. ## Report this to the AC_PACKAGE_NAME lists. ##
  9856. ## ------------------------------------------ ##
  9857. _ASBOX
  9858. ) |
  9859. sed "s/^/$as_me: WARNING: /" >&2
  9860. ;;
  9861. esac
  9862. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9863. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9864. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9865. echo $ECHO_N "(cached) $ECHO_C" >&6
  9866. else
  9867. eval "$as_ac_Header=\$ac_header_preproc"
  9868. fi
  9869. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9870. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9871. fi
  9872. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9873. cat >>confdefs.h <<_ACEOF
  9874. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9875. _ACEOF
  9876. fi
  9877. done
  9878. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9879. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9880. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9881. echo $ECHO_N "(cached) $ECHO_C" >&6
  9882. else
  9883. if test "$cross_compiling" = yes; then
  9884. ac_cv_func_realloc_0_nonnull=no
  9885. else
  9886. cat >conftest.$ac_ext <<_ACEOF
  9887. /* confdefs.h. */
  9888. _ACEOF
  9889. cat confdefs.h >>conftest.$ac_ext
  9890. cat >>conftest.$ac_ext <<_ACEOF
  9891. /* end confdefs.h. */
  9892. #if STDC_HEADERS || HAVE_STDLIB_H
  9893. # include <stdlib.h>
  9894. #else
  9895. char *realloc ();
  9896. #endif
  9897. int
  9898. main ()
  9899. {
  9900. exit (realloc (0, 0) ? 0 : 1);
  9901. ;
  9902. return 0;
  9903. }
  9904. _ACEOF
  9905. rm -f conftest$ac_exeext
  9906. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9907. (eval $ac_link) 2>&5
  9908. ac_status=$?
  9909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9910. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9911. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9912. (eval $ac_try) 2>&5
  9913. ac_status=$?
  9914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9915. (exit $ac_status); }; }; then
  9916. ac_cv_func_realloc_0_nonnull=yes
  9917. else
  9918. echo "$as_me: program exited with status $ac_status" >&5
  9919. echo "$as_me: failed program was:" >&5
  9920. sed 's/^/| /' conftest.$ac_ext >&5
  9921. ( exit $ac_status )
  9922. ac_cv_func_realloc_0_nonnull=no
  9923. fi
  9924. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9925. fi
  9926. fi
  9927. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9928. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9929. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9930. cat >>confdefs.h <<\_ACEOF
  9931. #define HAVE_REALLOC 1
  9932. _ACEOF
  9933. else
  9934. cat >>confdefs.h <<\_ACEOF
  9935. #define HAVE_REALLOC 0
  9936. _ACEOF
  9937. case $LIBOBJS in
  9938. "realloc.$ac_objext" | \
  9939. *" realloc.$ac_objext" | \
  9940. "realloc.$ac_objext "* | \
  9941. *" realloc.$ac_objext "* ) ;;
  9942. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9943. esac
  9944. cat >>confdefs.h <<\_ACEOF
  9945. #define realloc rpl_realloc
  9946. _ACEOF
  9947. fi
  9948. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9949. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9950. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9951. echo $ECHO_N "(cached) $ECHO_C" >&6
  9952. else
  9953. if test "$cross_compiling" = yes; then
  9954. ac_cv_func_stat_empty_string_bug=yes
  9955. else
  9956. cat >conftest.$ac_ext <<_ACEOF
  9957. /* confdefs.h. */
  9958. _ACEOF
  9959. cat confdefs.h >>conftest.$ac_ext
  9960. cat >>conftest.$ac_ext <<_ACEOF
  9961. /* end confdefs.h. */
  9962. $ac_includes_default
  9963. int
  9964. main ()
  9965. {
  9966. struct stat sbuf;
  9967. exit (stat ("", &sbuf) ? 1 : 0);
  9968. ;
  9969. return 0;
  9970. }
  9971. _ACEOF
  9972. rm -f conftest$ac_exeext
  9973. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9974. (eval $ac_link) 2>&5
  9975. ac_status=$?
  9976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9977. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9978. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9979. (eval $ac_try) 2>&5
  9980. ac_status=$?
  9981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9982. (exit $ac_status); }; }; then
  9983. ac_cv_func_stat_empty_string_bug=yes
  9984. else
  9985. echo "$as_me: program exited with status $ac_status" >&5
  9986. echo "$as_me: failed program was:" >&5
  9987. sed 's/^/| /' conftest.$ac_ext >&5
  9988. ( exit $ac_status )
  9989. ac_cv_func_stat_empty_string_bug=no
  9990. fi
  9991. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9992. fi
  9993. fi
  9994. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9995. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9996. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9997. case $LIBOBJS in
  9998. "stat.$ac_objext" | \
  9999. *" stat.$ac_objext" | \
  10000. "stat.$ac_objext "* | \
  10001. *" stat.$ac_objext "* ) ;;
  10002. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  10003. esac
  10004. cat >>confdefs.h <<_ACEOF
  10005. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10006. _ACEOF
  10007. fi
  10008. for ac_func in strftime
  10009. do
  10010. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10011. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10012. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10013. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10014. echo $ECHO_N "(cached) $ECHO_C" >&6
  10015. else
  10016. cat >conftest.$ac_ext <<_ACEOF
  10017. /* confdefs.h. */
  10018. _ACEOF
  10019. cat confdefs.h >>conftest.$ac_ext
  10020. cat >>conftest.$ac_ext <<_ACEOF
  10021. /* end confdefs.h. */
  10022. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10023. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10024. #define $ac_func innocuous_$ac_func
  10025. /* System header to define __stub macros and hopefully few prototypes,
  10026. which can conflict with char $ac_func (); below.
  10027. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10028. <limits.h> exists even on freestanding compilers. */
  10029. #ifdef __STDC__
  10030. # include <limits.h>
  10031. #else
  10032. # include <assert.h>
  10033. #endif
  10034. #undef $ac_func
  10035. /* Override any gcc2 internal prototype to avoid an error. */
  10036. #ifdef __cplusplus
  10037. extern "C"
  10038. {
  10039. #endif
  10040. /* We use char because int might match the return type of a gcc2
  10041. builtin and then its argument prototype would still apply. */
  10042. char $ac_func ();
  10043. /* The GNU C library defines this for functions which it implements
  10044. to always fail with ENOSYS. Some functions are actually named
  10045. something starting with __ and the normal name is an alias. */
  10046. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10047. choke me
  10048. #else
  10049. char (*f) () = $ac_func;
  10050. #endif
  10051. #ifdef __cplusplus
  10052. }
  10053. #endif
  10054. int
  10055. main ()
  10056. {
  10057. return f != $ac_func;
  10058. ;
  10059. return 0;
  10060. }
  10061. _ACEOF
  10062. rm -f conftest.$ac_objext conftest$ac_exeext
  10063. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10064. (eval $ac_link) 2>conftest.er1
  10065. ac_status=$?
  10066. grep -v '^ *+' conftest.er1 >conftest.err
  10067. rm -f conftest.er1
  10068. cat conftest.err >&5
  10069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10070. (exit $ac_status); } &&
  10071. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10072. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10073. (eval $ac_try) 2>&5
  10074. ac_status=$?
  10075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10076. (exit $ac_status); }; } &&
  10077. { ac_try='test -s conftest$ac_exeext'
  10078. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10079. (eval $ac_try) 2>&5
  10080. ac_status=$?
  10081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10082. (exit $ac_status); }; }; then
  10083. eval "$as_ac_var=yes"
  10084. else
  10085. echo "$as_me: failed program was:" >&5
  10086. sed 's/^/| /' conftest.$ac_ext >&5
  10087. eval "$as_ac_var=no"
  10088. fi
  10089. rm -f conftest.err conftest.$ac_objext \
  10090. conftest$ac_exeext conftest.$ac_ext
  10091. fi
  10092. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10093. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10094. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10095. cat >>confdefs.h <<_ACEOF
  10096. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10097. _ACEOF
  10098. else
  10099. # strftime is in -lintl on SCO UNIX.
  10100. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  10101. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  10102. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  10103. echo $ECHO_N "(cached) $ECHO_C" >&6
  10104. else
  10105. ac_check_lib_save_LIBS=$LIBS
  10106. LIBS="-lintl $LIBS"
  10107. cat >conftest.$ac_ext <<_ACEOF
  10108. /* confdefs.h. */
  10109. _ACEOF
  10110. cat confdefs.h >>conftest.$ac_ext
  10111. cat >>conftest.$ac_ext <<_ACEOF
  10112. /* end confdefs.h. */
  10113. /* Override any gcc2 internal prototype to avoid an error. */
  10114. #ifdef __cplusplus
  10115. extern "C"
  10116. #endif
  10117. /* We use char because int might match the return type of a gcc2
  10118. builtin and then its argument prototype would still apply. */
  10119. char strftime ();
  10120. int
  10121. main ()
  10122. {
  10123. strftime ();
  10124. ;
  10125. return 0;
  10126. }
  10127. _ACEOF
  10128. rm -f conftest.$ac_objext conftest$ac_exeext
  10129. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10130. (eval $ac_link) 2>conftest.er1
  10131. ac_status=$?
  10132. grep -v '^ *+' conftest.er1 >conftest.err
  10133. rm -f conftest.er1
  10134. cat conftest.err >&5
  10135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10136. (exit $ac_status); } &&
  10137. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10138. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10139. (eval $ac_try) 2>&5
  10140. ac_status=$?
  10141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10142. (exit $ac_status); }; } &&
  10143. { ac_try='test -s conftest$ac_exeext'
  10144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10145. (eval $ac_try) 2>&5
  10146. ac_status=$?
  10147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10148. (exit $ac_status); }; }; then
  10149. ac_cv_lib_intl_strftime=yes
  10150. else
  10151. echo "$as_me: failed program was:" >&5
  10152. sed 's/^/| /' conftest.$ac_ext >&5
  10153. ac_cv_lib_intl_strftime=no
  10154. fi
  10155. rm -f conftest.err conftest.$ac_objext \
  10156. conftest$ac_exeext conftest.$ac_ext
  10157. LIBS=$ac_check_lib_save_LIBS
  10158. fi
  10159. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  10160. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  10161. if test $ac_cv_lib_intl_strftime = yes; then
  10162. cat >>confdefs.h <<\_ACEOF
  10163. #define HAVE_STRFTIME 1
  10164. _ACEOF
  10165. LIBS="-lintl $LIBS"
  10166. fi
  10167. fi
  10168. done
  10169. #checkpoint
  10170. cat >confcache <<\_ACEOF
  10171. # This file is a shell script that caches the results of configure
  10172. # tests run on this system so they can be shared between configure
  10173. # scripts and configure runs, see configure's option --config-cache.
  10174. # It is not useful on other systems. If it contains results you don't
  10175. # want to keep, you may remove or edit it.
  10176. #
  10177. # config.status only pays attention to the cache file if you give it
  10178. # the --recheck option to rerun configure.
  10179. #
  10180. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10181. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10182. # following values.
  10183. _ACEOF
  10184. # The following way of writing the cache mishandles newlines in values,
  10185. # but we know of no workaround that is simple, portable, and efficient.
  10186. # So, don't put newlines in cache variables' values.
  10187. # Ultrix sh set writes to stderr and can't be redirected directly,
  10188. # and sets the high bit in the cache file unless we assign to the vars.
  10189. {
  10190. (set) 2>&1 |
  10191. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10192. *ac_space=\ *)
  10193. # `set' does not quote correctly, so add quotes (double-quote
  10194. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10195. sed -n \
  10196. "s/'/'\\\\''/g;
  10197. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10198. ;;
  10199. *)
  10200. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10201. sed -n \
  10202. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10203. ;;
  10204. esac;
  10205. } |
  10206. sed '
  10207. t clear
  10208. : clear
  10209. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10210. t end
  10211. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10212. : end' >>confcache
  10213. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10214. if test -w $cache_file; then
  10215. test "x$cache_file" != "x/dev/null"
  10216. cat confcache >$cache_file
  10217. else
  10218. echo "not updating unwritable cache $cache_file"
  10219. fi
  10220. fi
  10221. rm -f confcache
  10222. for ac_func in clock fsync getrusage isascii inet_aton gethostbyname2
  10223. do
  10224. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10225. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10226. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10227. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10228. echo $ECHO_N "(cached) $ECHO_C" >&6
  10229. else
  10230. cat >conftest.$ac_ext <<_ACEOF
  10231. /* confdefs.h. */
  10232. _ACEOF
  10233. cat confdefs.h >>conftest.$ac_ext
  10234. cat >>conftest.$ac_ext <<_ACEOF
  10235. /* end confdefs.h. */
  10236. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10237. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10238. #define $ac_func innocuous_$ac_func
  10239. /* System header to define __stub macros and hopefully few prototypes,
  10240. which can conflict with char $ac_func (); below.
  10241. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10242. <limits.h> exists even on freestanding compilers. */
  10243. #ifdef __STDC__
  10244. # include <limits.h>
  10245. #else
  10246. # include <assert.h>
  10247. #endif
  10248. #undef $ac_func
  10249. /* Override any gcc2 internal prototype to avoid an error. */
  10250. #ifdef __cplusplus
  10251. extern "C"
  10252. {
  10253. #endif
  10254. /* We use char because int might match the return type of a gcc2
  10255. builtin and then its argument prototype would still apply. */
  10256. char $ac_func ();
  10257. /* The GNU C library defines this for functions which it implements
  10258. to always fail with ENOSYS. Some functions are actually named
  10259. something starting with __ and the normal name is an alias. */
  10260. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10261. choke me
  10262. #else
  10263. char (*f) () = $ac_func;
  10264. #endif
  10265. #ifdef __cplusplus
  10266. }
  10267. #endif
  10268. int
  10269. main ()
  10270. {
  10271. return f != $ac_func;
  10272. ;
  10273. return 0;
  10274. }
  10275. _ACEOF
  10276. rm -f conftest.$ac_objext conftest$ac_exeext
  10277. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10278. (eval $ac_link) 2>conftest.er1
  10279. ac_status=$?
  10280. grep -v '^ *+' conftest.er1 >conftest.err
  10281. rm -f conftest.er1
  10282. cat conftest.err >&5
  10283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10284. (exit $ac_status); } &&
  10285. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10286. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10287. (eval $ac_try) 2>&5
  10288. ac_status=$?
  10289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10290. (exit $ac_status); }; } &&
  10291. { ac_try='test -s conftest$ac_exeext'
  10292. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10293. (eval $ac_try) 2>&5
  10294. ac_status=$?
  10295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10296. (exit $ac_status); }; }; then
  10297. eval "$as_ac_var=yes"
  10298. else
  10299. echo "$as_me: failed program was:" >&5
  10300. sed 's/^/| /' conftest.$ac_ext >&5
  10301. eval "$as_ac_var=no"
  10302. fi
  10303. rm -f conftest.err conftest.$ac_objext \
  10304. conftest$ac_exeext conftest.$ac_ext
  10305. fi
  10306. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10307. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10308. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10309. cat >>confdefs.h <<_ACEOF
  10310. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10311. _ACEOF
  10312. fi
  10313. done
  10314. for ac_func in getipnodebyname memcpy memset random rename snprintf srandom
  10315. do
  10316. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10317. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10318. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10319. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10320. echo $ECHO_N "(cached) $ECHO_C" >&6
  10321. else
  10322. cat >conftest.$ac_ext <<_ACEOF
  10323. /* confdefs.h. */
  10324. _ACEOF
  10325. cat confdefs.h >>conftest.$ac_ext
  10326. cat >>conftest.$ac_ext <<_ACEOF
  10327. /* end confdefs.h. */
  10328. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10329. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10330. #define $ac_func innocuous_$ac_func
  10331. /* System header to define __stub macros and hopefully few prototypes,
  10332. which can conflict with char $ac_func (); below.
  10333. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10334. <limits.h> exists even on freestanding compilers. */
  10335. #ifdef __STDC__
  10336. # include <limits.h>
  10337. #else
  10338. # include <assert.h>
  10339. #endif
  10340. #undef $ac_func
  10341. /* Override any gcc2 internal prototype to avoid an error. */
  10342. #ifdef __cplusplus
  10343. extern "C"
  10344. {
  10345. #endif
  10346. /* We use char because int might match the return type of a gcc2
  10347. builtin and then its argument prototype would still apply. */
  10348. char $ac_func ();
  10349. /* The GNU C library defines this for functions which it implements
  10350. to always fail with ENOSYS. Some functions are actually named
  10351. something starting with __ and the normal name is an alias. */
  10352. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10353. choke me
  10354. #else
  10355. char (*f) () = $ac_func;
  10356. #endif
  10357. #ifdef __cplusplus
  10358. }
  10359. #endif
  10360. int
  10361. main ()
  10362. {
  10363. return f != $ac_func;
  10364. ;
  10365. return 0;
  10366. }
  10367. _ACEOF
  10368. rm -f conftest.$ac_objext conftest$ac_exeext
  10369. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10370. (eval $ac_link) 2>conftest.er1
  10371. ac_status=$?
  10372. grep -v '^ *+' conftest.er1 >conftest.err
  10373. rm -f conftest.er1
  10374. cat conftest.err >&5
  10375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10376. (exit $ac_status); } &&
  10377. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10378. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10379. (eval $ac_try) 2>&5
  10380. ac_status=$?
  10381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10382. (exit $ac_status); }; } &&
  10383. { ac_try='test -s conftest$ac_exeext'
  10384. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10385. (eval $ac_try) 2>&5
  10386. ac_status=$?
  10387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10388. (exit $ac_status); }; }; then
  10389. eval "$as_ac_var=yes"
  10390. else
  10391. echo "$as_me: failed program was:" >&5
  10392. sed 's/^/| /' conftest.$ac_ext >&5
  10393. eval "$as_ac_var=no"
  10394. fi
  10395. rm -f conftest.err conftest.$ac_objext \
  10396. conftest$ac_exeext conftest.$ac_ext
  10397. fi
  10398. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10399. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10400. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10401. cat >>confdefs.h <<_ACEOF
  10402. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10403. _ACEOF
  10404. fi
  10405. done
  10406. #checkpoint
  10407. cat >confcache <<\_ACEOF
  10408. # This file is a shell script that caches the results of configure
  10409. # tests run on this system so they can be shared between configure
  10410. # scripts and configure runs, see configure's option --config-cache.
  10411. # It is not useful on other systems. If it contains results you don't
  10412. # want to keep, you may remove or edit it.
  10413. #
  10414. # config.status only pays attention to the cache file if you give it
  10415. # the --recheck option to rerun configure.
  10416. #
  10417. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10418. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10419. # following values.
  10420. _ACEOF
  10421. # The following way of writing the cache mishandles newlines in values,
  10422. # but we know of no workaround that is simple, portable, and efficient.
  10423. # So, don't put newlines in cache variables' values.
  10424. # Ultrix sh set writes to stderr and can't be redirected directly,
  10425. # and sets the high bit in the cache file unless we assign to the vars.
  10426. {
  10427. (set) 2>&1 |
  10428. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10429. *ac_space=\ *)
  10430. # `set' does not quote correctly, so add quotes (double-quote
  10431. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10432. sed -n \
  10433. "s/'/'\\\\''/g;
  10434. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10435. ;;
  10436. *)
  10437. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10438. sed -n \
  10439. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10440. ;;
  10441. esac;
  10442. } |
  10443. sed '
  10444. t clear
  10445. : clear
  10446. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10447. t end
  10448. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10449. : end' >>confcache
  10450. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10451. if test -w $cache_file; then
  10452. test "x$cache_file" != "x/dev/null"
  10453. cat confcache >$cache_file
  10454. else
  10455. echo "not updating unwritable cache $cache_file"
  10456. fi
  10457. fi
  10458. rm -f confcache
  10459. for ac_func in strcasecmp strncasecmp vsnprintf
  10460. do
  10461. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10462. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10463. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10464. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10465. echo $ECHO_N "(cached) $ECHO_C" >&6
  10466. else
  10467. cat >conftest.$ac_ext <<_ACEOF
  10468. /* confdefs.h. */
  10469. _ACEOF
  10470. cat confdefs.h >>conftest.$ac_ext
  10471. cat >>conftest.$ac_ext <<_ACEOF
  10472. /* end confdefs.h. */
  10473. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10474. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10475. #define $ac_func innocuous_$ac_func
  10476. /* System header to define __stub macros and hopefully few prototypes,
  10477. which can conflict with char $ac_func (); below.
  10478. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10479. <limits.h> exists even on freestanding compilers. */
  10480. #ifdef __STDC__
  10481. # include <limits.h>
  10482. #else
  10483. # include <assert.h>
  10484. #endif
  10485. #undef $ac_func
  10486. /* Override any gcc2 internal prototype to avoid an error. */
  10487. #ifdef __cplusplus
  10488. extern "C"
  10489. {
  10490. #endif
  10491. /* We use char because int might match the return type of a gcc2
  10492. builtin and then its argument prototype would still apply. */
  10493. char $ac_func ();
  10494. /* The GNU C library defines this for functions which it implements
  10495. to always fail with ENOSYS. Some functions are actually named
  10496. something starting with __ and the normal name is an alias. */
  10497. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10498. choke me
  10499. #else
  10500. char (*f) () = $ac_func;
  10501. #endif
  10502. #ifdef __cplusplus
  10503. }
  10504. #endif
  10505. int
  10506. main ()
  10507. {
  10508. return f != $ac_func;
  10509. ;
  10510. return 0;
  10511. }
  10512. _ACEOF
  10513. rm -f conftest.$ac_objext conftest$ac_exeext
  10514. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10515. (eval $ac_link) 2>conftest.er1
  10516. ac_status=$?
  10517. grep -v '^ *+' conftest.er1 >conftest.err
  10518. rm -f conftest.er1
  10519. cat conftest.err >&5
  10520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10521. (exit $ac_status); } &&
  10522. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10523. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10524. (eval $ac_try) 2>&5
  10525. ac_status=$?
  10526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10527. (exit $ac_status); }; } &&
  10528. { ac_try='test -s conftest$ac_exeext'
  10529. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10530. (eval $ac_try) 2>&5
  10531. ac_status=$?
  10532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10533. (exit $ac_status); }; }; then
  10534. eval "$as_ac_var=yes"
  10535. else
  10536. echo "$as_me: failed program was:" >&5
  10537. sed 's/^/| /' conftest.$ac_ext >&5
  10538. eval "$as_ac_var=no"
  10539. fi
  10540. rm -f conftest.err conftest.$ac_objext \
  10541. conftest$ac_exeext conftest.$ac_ext
  10542. fi
  10543. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10544. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10545. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10546. cat >>confdefs.h <<_ACEOF
  10547. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10548. _ACEOF
  10549. fi
  10550. done
  10551. #autoscan suggested this....
  10552. #These are recommended by autoscan, but no code supports it currently
  10553. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  10554. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10555. for ac_func in vsprintf
  10556. do
  10557. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10558. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10559. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10560. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10561. echo $ECHO_N "(cached) $ECHO_C" >&6
  10562. else
  10563. cat >conftest.$ac_ext <<_ACEOF
  10564. /* confdefs.h. */
  10565. _ACEOF
  10566. cat confdefs.h >>conftest.$ac_ext
  10567. cat >>conftest.$ac_ext <<_ACEOF
  10568. /* end confdefs.h. */
  10569. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10570. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10571. #define $ac_func innocuous_$ac_func
  10572. /* System header to define __stub macros and hopefully few prototypes,
  10573. which can conflict with char $ac_func (); below.
  10574. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10575. <limits.h> exists even on freestanding compilers. */
  10576. #ifdef __STDC__
  10577. # include <limits.h>
  10578. #else
  10579. # include <assert.h>
  10580. #endif
  10581. #undef $ac_func
  10582. /* Override any gcc2 internal prototype to avoid an error. */
  10583. #ifdef __cplusplus
  10584. extern "C"
  10585. {
  10586. #endif
  10587. /* We use char because int might match the return type of a gcc2
  10588. builtin and then its argument prototype would still apply. */
  10589. char $ac_func ();
  10590. /* The GNU C library defines this for functions which it implements
  10591. to always fail with ENOSYS. Some functions are actually named
  10592. something starting with __ and the normal name is an alias. */
  10593. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10594. choke me
  10595. #else
  10596. char (*f) () = $ac_func;
  10597. #endif
  10598. #ifdef __cplusplus
  10599. }
  10600. #endif
  10601. int
  10602. main ()
  10603. {
  10604. return f != $ac_func;
  10605. ;
  10606. return 0;
  10607. }
  10608. _ACEOF
  10609. rm -f conftest.$ac_objext conftest$ac_exeext
  10610. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10611. (eval $ac_link) 2>conftest.er1
  10612. ac_status=$?
  10613. grep -v '^ *+' conftest.er1 >conftest.err
  10614. rm -f conftest.er1
  10615. cat conftest.err >&5
  10616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10617. (exit $ac_status); } &&
  10618. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10619. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10620. (eval $ac_try) 2>&5
  10621. ac_status=$?
  10622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10623. (exit $ac_status); }; } &&
  10624. { ac_try='test -s conftest$ac_exeext'
  10625. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10626. (eval $ac_try) 2>&5
  10627. ac_status=$?
  10628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10629. (exit $ac_status); }; }; then
  10630. eval "$as_ac_var=yes"
  10631. else
  10632. echo "$as_me: failed program was:" >&5
  10633. sed 's/^/| /' conftest.$ac_ext >&5
  10634. eval "$as_ac_var=no"
  10635. fi
  10636. rm -f conftest.err conftest.$ac_objext \
  10637. conftest$ac_exeext conftest.$ac_ext
  10638. fi
  10639. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10640. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10641. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10642. cat >>confdefs.h <<_ACEOF
  10643. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10644. _ACEOF
  10645. fi
  10646. done
  10647. if test "$ac_cv_func_vsprintf" = "no"
  10648. then
  10649. cat << 'EOF' >&2
  10650. configure: error:
  10651. Your system does not have the sprintf/vsprintf libraries.
  10652. These are required to compile almost anything. Sorry.
  10653. EOF
  10654. exit 1
  10655. fi
  10656. for ac_func in uname
  10657. do
  10658. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10659. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10660. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10661. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10662. echo $ECHO_N "(cached) $ECHO_C" >&6
  10663. else
  10664. cat >conftest.$ac_ext <<_ACEOF
  10665. /* confdefs.h. */
  10666. _ACEOF
  10667. cat confdefs.h >>conftest.$ac_ext
  10668. cat >>conftest.$ac_ext <<_ACEOF
  10669. /* end confdefs.h. */
  10670. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10671. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10672. #define $ac_func innocuous_$ac_func
  10673. /* System header to define __stub macros and hopefully few prototypes,
  10674. which can conflict with char $ac_func (); below.
  10675. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10676. <limits.h> exists even on freestanding compilers. */
  10677. #ifdef __STDC__
  10678. # include <limits.h>
  10679. #else
  10680. # include <assert.h>
  10681. #endif
  10682. #undef $ac_func
  10683. /* Override any gcc2 internal prototype to avoid an error. */
  10684. #ifdef __cplusplus
  10685. extern "C"
  10686. {
  10687. #endif
  10688. /* We use char because int might match the return type of a gcc2
  10689. builtin and then its argument prototype would still apply. */
  10690. char $ac_func ();
  10691. /* The GNU C library defines this for functions which it implements
  10692. to always fail with ENOSYS. Some functions are actually named
  10693. something starting with __ and the normal name is an alias. */
  10694. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10695. choke me
  10696. #else
  10697. char (*f) () = $ac_func;
  10698. #endif
  10699. #ifdef __cplusplus
  10700. }
  10701. #endif
  10702. int
  10703. main ()
  10704. {
  10705. return f != $ac_func;
  10706. ;
  10707. return 0;
  10708. }
  10709. _ACEOF
  10710. rm -f conftest.$ac_objext conftest$ac_exeext
  10711. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10712. (eval $ac_link) 2>conftest.er1
  10713. ac_status=$?
  10714. grep -v '^ *+' conftest.er1 >conftest.err
  10715. rm -f conftest.er1
  10716. cat conftest.err >&5
  10717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10718. (exit $ac_status); } &&
  10719. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10720. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10721. (eval $ac_try) 2>&5
  10722. ac_status=$?
  10723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10724. (exit $ac_status); }; } &&
  10725. { ac_try='test -s conftest$ac_exeext'
  10726. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10727. (eval $ac_try) 2>&5
  10728. ac_status=$?
  10729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10730. (exit $ac_status); }; }; then
  10731. eval "$as_ac_var=yes"
  10732. else
  10733. echo "$as_me: failed program was:" >&5
  10734. sed 's/^/| /' conftest.$ac_ext >&5
  10735. eval "$as_ac_var=no"
  10736. fi
  10737. rm -f conftest.err conftest.$ac_objext \
  10738. conftest$ac_exeext conftest.$ac_ext
  10739. fi
  10740. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10741. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10742. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10743. cat >>confdefs.h <<_ACEOF
  10744. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10745. _ACEOF
  10746. fi
  10747. done
  10748. if test "$ac_cv_func_uname" = "no"
  10749. then
  10750. cat << 'EOF' >&2
  10751. configure: error:
  10752. Your system does not have the uname() function.
  10753. This is required for the botpack.
  10754. EOF
  10755. exit 1
  10756. fi
  10757. # Make sure we have stdc headers, since we can't compile without them
  10758. if test "$ac_cv_header_stdc" = "no"
  10759. then
  10760. cat << 'EOF' >&2
  10761. configure: error:
  10762. Your system must support ANSI C Header files.
  10763. These are required for the language support. Sorry.
  10764. EOF
  10765. exit 1
  10766. fi
  10767. #checkpoint
  10768. cat >confcache <<\_ACEOF
  10769. # This file is a shell script that caches the results of configure
  10770. # tests run on this system so they can be shared between configure
  10771. # scripts and configure runs, see configure's option --config-cache.
  10772. # It is not useful on other systems. If it contains results you don't
  10773. # want to keep, you may remove or edit it.
  10774. #
  10775. # config.status only pays attention to the cache file if you give it
  10776. # the --recheck option to rerun configure.
  10777. #
  10778. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10779. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10780. # following values.
  10781. _ACEOF
  10782. # The following way of writing the cache mishandles newlines in values,
  10783. # but we know of no workaround that is simple, portable, and efficient.
  10784. # So, don't put newlines in cache variables' values.
  10785. # Ultrix sh set writes to stderr and can't be redirected directly,
  10786. # and sets the high bit in the cache file unless we assign to the vars.
  10787. {
  10788. (set) 2>&1 |
  10789. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10790. *ac_space=\ *)
  10791. # `set' does not quote correctly, so add quotes (double-quote
  10792. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10793. sed -n \
  10794. "s/'/'\\\\''/g;
  10795. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10796. ;;
  10797. *)
  10798. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10799. sed -n \
  10800. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10801. ;;
  10802. esac;
  10803. } |
  10804. sed '
  10805. t clear
  10806. : clear
  10807. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10808. t end
  10809. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10810. : end' >>confcache
  10811. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10812. if test -w $cache_file; then
  10813. test "x$cache_file" != "x/dev/null"
  10814. cat confcache >$cache_file
  10815. else
  10816. echo "not updating unwritable cache $cache_file"
  10817. fi
  10818. fi
  10819. rm -f confcache
  10820. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  10821. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  10822. cat >>confdefs.h <<_ACEOF
  10823. #define EGG_VERSION $version_num
  10824. _ACEOF
  10825. ld_line="-Wl"
  10826. for func in `grep -hrsI __wrap_ src/compat/* | sed -e 's/^__wrap_\(.*\)(.*/\1/'`; do
  10827. ld_line="${ld_line},--wrap,${func}";
  10828. # echo "FUNC: $func :: $ld_line";
  10829. WRAP="$ld_line"
  10830. done
  10831. case "$srcdir" in
  10832. [\\/]* | ?:[\\/]*)
  10833. MOD_UPDIR=""
  10834. ;;
  10835. *)
  10836. MOD_UPDIR="../"
  10837. ;;
  10838. esac
  10839. 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"
  10840. for mf in $files; do
  10841. # Strip MF so we end up with the name of the file.
  10842. # echo "MF: $mf"
  10843. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10844. dirpart=`(dirname "$mf") 2>/dev/null ||
  10845. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10846. X"$mf" : 'X\(//\)[^/]' \| \
  10847. X"$mf" : 'X\(//\)$' \| \
  10848. X"$mf" : 'X\(/\)' \| \
  10849. . : '\(.\)' 2>/dev/null ||
  10850. echo X"$mf" |
  10851. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10852. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10853. /^X\(\/\/\)$/{ s//\1/; q; }
  10854. /^X\(\/\).*/{ s//\1/; q; }
  10855. s/.*/./; q'`
  10856. # echo "dirpart: $dirpart mf: $mf"
  10857. # rm -rf "$dirpart/.deps/"
  10858. rm -f "$dirpart/.deps/includes"
  10859. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  10860. for file in `sed -n -e '
  10861. /^OBJS = .*\\\\$/ {
  10862. s/^OBJS = //
  10863. :loop
  10864. s/\\\\$//
  10865. p
  10866. n
  10867. /\\\\$/ b loop
  10868. p
  10869. }
  10870. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  10871. do
  10872. base=`basename $file .o`
  10873. test -f "$dirpart/$base.c" || continue
  10874. if ! test -f "$dirpart/.deps/$base.Po"; then
  10875. echo '# dummy' > "$dirpart/.deps/$base.Po"
  10876. #Remove the .o file, because it needs to be recompiled for its dependancies.
  10877. if test -f "$dirpart/$base.o"; then
  10878. rm -f "$dirpart/$base.o"
  10879. fi
  10880. fi
  10881. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  10882. echo "_$base.c:" >> "$dirpart/.deps/includes"
  10883. done
  10884. done
  10885. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  10886. cat >confcache <<\_ACEOF
  10887. # This file is a shell script that caches the results of configure
  10888. # tests run on this system so they can be shared between configure
  10889. # scripts and configure runs, see configure's option --config-cache.
  10890. # It is not useful on other systems. If it contains results you don't
  10891. # want to keep, you may remove or edit it.
  10892. #
  10893. # config.status only pays attention to the cache file if you give it
  10894. # the --recheck option to rerun configure.
  10895. #
  10896. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10897. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10898. # following values.
  10899. _ACEOF
  10900. # The following way of writing the cache mishandles newlines in values,
  10901. # but we know of no workaround that is simple, portable, and efficient.
  10902. # So, don't put newlines in cache variables' values.
  10903. # Ultrix sh set writes to stderr and can't be redirected directly,
  10904. # and sets the high bit in the cache file unless we assign to the vars.
  10905. {
  10906. (set) 2>&1 |
  10907. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10908. *ac_space=\ *)
  10909. # `set' does not quote correctly, so add quotes (double-quote
  10910. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10911. sed -n \
  10912. "s/'/'\\\\''/g;
  10913. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10914. ;;
  10915. *)
  10916. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10917. sed -n \
  10918. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10919. ;;
  10920. esac;
  10921. } |
  10922. sed '
  10923. t clear
  10924. : clear
  10925. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10926. t end
  10927. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10928. : end' >>confcache
  10929. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10930. if test -w $cache_file; then
  10931. test "x$cache_file" != "x/dev/null"
  10932. cat confcache >$cache_file
  10933. else
  10934. echo "not updating unwritable cache $cache_file"
  10935. fi
  10936. fi
  10937. rm -f confcache
  10938. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10939. # Let make expand exec_prefix.
  10940. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10941. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10942. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10943. # trailing colons and then remove the whole line if VPATH becomes empty
  10944. # (actually we leave an empty line to preserve line numbers).
  10945. if test "x$srcdir" = x.; then
  10946. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10947. s/:*\$(srcdir):*/:/;
  10948. s/:*\${srcdir}:*/:/;
  10949. s/:*@srcdir@:*/:/;
  10950. s/^\([^=]*=[ ]*\):*/\1/;
  10951. s/:*$//;
  10952. s/^[^=]*=[ ]*$//;
  10953. }'
  10954. fi
  10955. DEFS=-DHAVE_CONFIG_H
  10956. ac_libobjs=
  10957. ac_ltlibobjs=
  10958. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10959. # 1. Remove the extension, and $U if already installed.
  10960. ac_i=`echo "$ac_i" |
  10961. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10962. # 2. Add them.
  10963. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10964. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10965. done
  10966. LIBOBJS=$ac_libobjs
  10967. LTLIBOBJS=$ac_ltlibobjs
  10968. : ${CONFIG_STATUS=./config.status}
  10969. ac_clean_files_save=$ac_clean_files
  10970. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10971. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10972. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10973. cat >$CONFIG_STATUS <<_ACEOF
  10974. #! $SHELL
  10975. # Generated by $as_me.
  10976. # Run this file to recreate the current configuration.
  10977. # Compiler output produced by configure, useful for debugging
  10978. # configure, is in config.log if it exists.
  10979. debug=false
  10980. ac_cs_recheck=false
  10981. ac_cs_silent=false
  10982. SHELL=\${CONFIG_SHELL-$SHELL}
  10983. _ACEOF
  10984. cat >>$CONFIG_STATUS <<\_ACEOF
  10985. ## --------------------- ##
  10986. ## M4sh Initialization. ##
  10987. ## --------------------- ##
  10988. # Be Bourne compatible
  10989. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10990. emulate sh
  10991. NULLCMD=:
  10992. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10993. # is contrary to our usage. Disable this feature.
  10994. alias -g '${1+"$@"}'='"$@"'
  10995. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10996. set -o posix
  10997. fi
  10998. DUALCASE=1; export DUALCASE # for MKS sh
  10999. # Support unset when possible.
  11000. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11001. as_unset=unset
  11002. else
  11003. as_unset=false
  11004. fi
  11005. # Work around bugs in pre-3.0 UWIN ksh.
  11006. $as_unset ENV MAIL MAILPATH
  11007. PS1='$ '
  11008. PS2='> '
  11009. PS4='+ '
  11010. # NLS nuisances.
  11011. for as_var in \
  11012. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11013. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11014. LC_TELEPHONE LC_TIME
  11015. do
  11016. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11017. eval $as_var=C; export $as_var
  11018. else
  11019. $as_unset $as_var
  11020. fi
  11021. done
  11022. # Required to use basename.
  11023. if expr a : '\(a\)' >/dev/null 2>&1; then
  11024. as_expr=expr
  11025. else
  11026. as_expr=false
  11027. fi
  11028. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  11029. as_basename=basename
  11030. else
  11031. as_basename=false
  11032. fi
  11033. # Name of the executable.
  11034. as_me=`$as_basename "$0" ||
  11035. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11036. X"$0" : 'X\(//\)$' \| \
  11037. X"$0" : 'X\(/\)$' \| \
  11038. . : '\(.\)' 2>/dev/null ||
  11039. echo X/"$0" |
  11040. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11041. /^X\/\(\/\/\)$/{ s//\1/; q; }
  11042. /^X\/\(\/\).*/{ s//\1/; q; }
  11043. s/.*/./; q'`
  11044. # PATH needs CR, and LINENO needs CR and PATH.
  11045. # Avoid depending upon Character Ranges.
  11046. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11047. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11048. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11049. as_cr_digits='0123456789'
  11050. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11051. # The user is always right.
  11052. if test "${PATH_SEPARATOR+set}" != set; then
  11053. echo "#! /bin/sh" >conf$$.sh
  11054. echo "exit 0" >>conf$$.sh
  11055. chmod +x conf$$.sh
  11056. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11057. PATH_SEPARATOR=';'
  11058. else
  11059. PATH_SEPARATOR=:
  11060. fi
  11061. rm -f conf$$.sh
  11062. fi
  11063. as_lineno_1=$LINENO
  11064. as_lineno_2=$LINENO
  11065. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11066. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11067. test "x$as_lineno_3" = "x$as_lineno_2" || {
  11068. # Find who we are. Look in the path if we contain no path at all
  11069. # relative or not.
  11070. case $0 in
  11071. *[\\/]* ) as_myself=$0 ;;
  11072. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11073. for as_dir in $PATH
  11074. do
  11075. IFS=$as_save_IFS
  11076. test -z "$as_dir" && as_dir=.
  11077. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11078. done
  11079. ;;
  11080. esac
  11081. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11082. # in which case we are not to be found in the path.
  11083. if test "x$as_myself" = x; then
  11084. as_myself=$0
  11085. fi
  11086. if test ! -f "$as_myself"; then
  11087. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11088. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11089. { (exit 1); exit 1; }; }
  11090. fi
  11091. case $CONFIG_SHELL in
  11092. '')
  11093. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11094. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11095. do
  11096. IFS=$as_save_IFS
  11097. test -z "$as_dir" && as_dir=.
  11098. for as_base in sh bash ksh sh5; do
  11099. case $as_dir in
  11100. /*)
  11101. if ("$as_dir/$as_base" -c '
  11102. as_lineno_1=$LINENO
  11103. as_lineno_2=$LINENO
  11104. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11105. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11106. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11107. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11108. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11109. CONFIG_SHELL=$as_dir/$as_base
  11110. export CONFIG_SHELL
  11111. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11112. fi;;
  11113. esac
  11114. done
  11115. done
  11116. ;;
  11117. esac
  11118. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11119. # uniformly replaced by the line number. The first 'sed' inserts a
  11120. # line-number line before each line; the second 'sed' does the real
  11121. # work. The second script uses 'N' to pair each line-number line
  11122. # with the numbered line, and appends trailing '-' during
  11123. # substitution so that $LINENO is not a special case at line end.
  11124. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11125. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11126. sed '=' <$as_myself |
  11127. sed '
  11128. N
  11129. s,$,-,
  11130. : loop
  11131. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11132. t loop
  11133. s,-$,,
  11134. s,^['$as_cr_digits']*\n,,
  11135. ' >$as_me.lineno &&
  11136. chmod +x $as_me.lineno ||
  11137. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11138. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11139. { (exit 1); exit 1; }; }
  11140. # Don't try to exec as it changes $[0], causing all sort of problems
  11141. # (the dirname of $[0] is not the place where we might find the
  11142. # original and so on. Autoconf is especially sensible to this).
  11143. . ./$as_me.lineno
  11144. # Exit status is that of the last command.
  11145. exit
  11146. }
  11147. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11148. *c*,-n*) ECHO_N= ECHO_C='
  11149. ' ECHO_T=' ' ;;
  11150. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11151. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11152. esac
  11153. if expr a : '\(a\)' >/dev/null 2>&1; then
  11154. as_expr=expr
  11155. else
  11156. as_expr=false
  11157. fi
  11158. rm -f conf$$ conf$$.exe conf$$.file
  11159. echo >conf$$.file
  11160. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11161. # We could just check for DJGPP; but this test a) works b) is more generic
  11162. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11163. if test -f conf$$.exe; then
  11164. # Don't use ln at all; we don't have any links
  11165. as_ln_s='cp -p'
  11166. else
  11167. as_ln_s='ln -s'
  11168. fi
  11169. elif ln conf$$.file conf$$ 2>/dev/null; then
  11170. as_ln_s=ln
  11171. else
  11172. as_ln_s='cp -p'
  11173. fi
  11174. rm -f conf$$ conf$$.exe conf$$.file
  11175. if mkdir -p . 2>/dev/null; then
  11176. as_mkdir_p=:
  11177. else
  11178. test -d ./-p && rmdir ./-p
  11179. as_mkdir_p=false
  11180. fi
  11181. as_executable_p="test -f"
  11182. # Sed expression to map a string onto a valid CPP name.
  11183. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11184. # Sed expression to map a string onto a valid variable name.
  11185. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11186. # IFS
  11187. # We need space, tab and new line, in precisely that order.
  11188. as_nl='
  11189. '
  11190. IFS=" $as_nl"
  11191. # CDPATH.
  11192. $as_unset CDPATH
  11193. exec 6>&1
  11194. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11195. # report actual input values of CONFIG_FILES etc. instead of their
  11196. # values after options handling. Logging --version etc. is OK.
  11197. exec 5>>config.log
  11198. {
  11199. echo
  11200. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11201. ## Running $as_me. ##
  11202. _ASBOX
  11203. } >&5
  11204. cat >&5 <<_CSEOF
  11205. This file was extended by $as_me, which was
  11206. generated by GNU Autoconf 2.59. Invocation command line was
  11207. CONFIG_FILES = $CONFIG_FILES
  11208. CONFIG_HEADERS = $CONFIG_HEADERS
  11209. CONFIG_LINKS = $CONFIG_LINKS
  11210. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11211. $ $0 $@
  11212. _CSEOF
  11213. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11214. echo >&5
  11215. _ACEOF
  11216. # Files that config.status was made for.
  11217. if test -n "$ac_config_files"; then
  11218. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11219. fi
  11220. if test -n "$ac_config_headers"; then
  11221. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11222. fi
  11223. if test -n "$ac_config_links"; then
  11224. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11225. fi
  11226. if test -n "$ac_config_commands"; then
  11227. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11228. fi
  11229. cat >>$CONFIG_STATUS <<\_ACEOF
  11230. ac_cs_usage="\
  11231. \`$as_me' instantiates files from templates according to the
  11232. current configuration.
  11233. Usage: $0 [OPTIONS] [FILE]...
  11234. -h, --help print this help, then exit
  11235. -V, --version print version number, then exit
  11236. -q, --quiet do not print progress messages
  11237. -d, --debug don't remove temporary files
  11238. --recheck update $as_me by reconfiguring in the same conditions
  11239. --file=FILE[:TEMPLATE]
  11240. instantiate the configuration file FILE
  11241. --header=FILE[:TEMPLATE]
  11242. instantiate the configuration header FILE
  11243. Configuration files:
  11244. $config_files
  11245. Configuration headers:
  11246. $config_headers
  11247. Report bugs to <bug-autoconf@gnu.org>."
  11248. _ACEOF
  11249. cat >>$CONFIG_STATUS <<_ACEOF
  11250. ac_cs_version="\\
  11251. config.status
  11252. configured by $0, generated by GNU Autoconf 2.59,
  11253. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11254. Copyright (C) 2003 Free Software Foundation, Inc.
  11255. This config.status script is free software; the Free Software Foundation
  11256. gives unlimited permission to copy, distribute and modify it."
  11257. srcdir=$srcdir
  11258. _ACEOF
  11259. cat >>$CONFIG_STATUS <<\_ACEOF
  11260. # If no file are specified by the user, then we need to provide default
  11261. # value. By we need to know if files were specified by the user.
  11262. ac_need_defaults=:
  11263. while test $# != 0
  11264. do
  11265. case $1 in
  11266. --*=*)
  11267. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11268. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11269. ac_shift=:
  11270. ;;
  11271. -*)
  11272. ac_option=$1
  11273. ac_optarg=$2
  11274. ac_shift=shift
  11275. ;;
  11276. *) # This is not an option, so the user has probably given explicit
  11277. # arguments.
  11278. ac_option=$1
  11279. ac_need_defaults=false;;
  11280. esac
  11281. case $ac_option in
  11282. # Handling of the options.
  11283. _ACEOF
  11284. cat >>$CONFIG_STATUS <<\_ACEOF
  11285. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11286. ac_cs_recheck=: ;;
  11287. --version | --vers* | -V )
  11288. echo "$ac_cs_version"; exit 0 ;;
  11289. --he | --h)
  11290. # Conflict between --help and --header
  11291. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11292. Try \`$0 --help' for more information." >&5
  11293. echo "$as_me: error: ambiguous option: $1
  11294. Try \`$0 --help' for more information." >&2;}
  11295. { (exit 1); exit 1; }; };;
  11296. --help | --hel | -h )
  11297. echo "$ac_cs_usage"; exit 0 ;;
  11298. --debug | --d* | -d )
  11299. debug=: ;;
  11300. --file | --fil | --fi | --f )
  11301. $ac_shift
  11302. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11303. ac_need_defaults=false;;
  11304. --header | --heade | --head | --hea )
  11305. $ac_shift
  11306. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11307. ac_need_defaults=false;;
  11308. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11309. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11310. ac_cs_silent=: ;;
  11311. # This is an error.
  11312. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11313. Try \`$0 --help' for more information." >&5
  11314. echo "$as_me: error: unrecognized option: $1
  11315. Try \`$0 --help' for more information." >&2;}
  11316. { (exit 1); exit 1; }; } ;;
  11317. *) ac_config_targets="$ac_config_targets $1" ;;
  11318. esac
  11319. shift
  11320. done
  11321. ac_configure_extra_args=
  11322. if $ac_cs_silent; then
  11323. exec 6>/dev/null
  11324. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11325. fi
  11326. _ACEOF
  11327. cat >>$CONFIG_STATUS <<_ACEOF
  11328. if \$ac_cs_recheck; then
  11329. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11330. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11331. fi
  11332. _ACEOF
  11333. cat >>$CONFIG_STATUS <<\_ACEOF
  11334. for ac_config_target in $ac_config_targets
  11335. do
  11336. case "$ac_config_target" in
  11337. # Handling of arguments.
  11338. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11339. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11340. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11341. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  11342. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11343. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  11344. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11345. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11346. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11347. { (exit 1); exit 1; }; };;
  11348. esac
  11349. done
  11350. # If the user did not use the arguments to specify the items to instantiate,
  11351. # then the envvar interface is used. Set only those that are not.
  11352. # We use the long form for the default assignment because of an extremely
  11353. # bizarre bug on SunOS 4.1.3.
  11354. if $ac_need_defaults; then
  11355. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11356. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11357. fi
  11358. # Have a temporary directory for convenience. Make it in the build tree
  11359. # simply because there is no reason to put it here, and in addition,
  11360. # creating and moving files from /tmp can sometimes cause problems.
  11361. # Create a temporary directory, and hook for its removal unless debugging.
  11362. $debug ||
  11363. {
  11364. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11365. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11366. }
  11367. # Create a (secure) tmp directory for tmp files.
  11368. {
  11369. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11370. test -n "$tmp" && test -d "$tmp"
  11371. } ||
  11372. {
  11373. tmp=./confstat$$-$RANDOM
  11374. (umask 077 && mkdir $tmp)
  11375. } ||
  11376. {
  11377. echo "$me: cannot create a temporary directory in ." >&2
  11378. { (exit 1); exit 1; }
  11379. }
  11380. _ACEOF
  11381. cat >>$CONFIG_STATUS <<_ACEOF
  11382. #
  11383. # CONFIG_FILES section.
  11384. #
  11385. # No need to generate the scripts if there are no CONFIG_FILES.
  11386. # This happens for instance when ./config.status config.h
  11387. if test -n "\$CONFIG_FILES"; then
  11388. # Protect against being on the right side of a sed subst in config.status.
  11389. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11390. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11391. s,@SHELL@,$SHELL,;t t
  11392. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11393. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11394. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11395. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11396. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11397. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11398. s,@exec_prefix@,$exec_prefix,;t t
  11399. s,@prefix@,$prefix,;t t
  11400. s,@program_transform_name@,$program_transform_name,;t t
  11401. s,@bindir@,$bindir,;t t
  11402. s,@sbindir@,$sbindir,;t t
  11403. s,@libexecdir@,$libexecdir,;t t
  11404. s,@datadir@,$datadir,;t t
  11405. s,@sysconfdir@,$sysconfdir,;t t
  11406. s,@sharedstatedir@,$sharedstatedir,;t t
  11407. s,@localstatedir@,$localstatedir,;t t
  11408. s,@libdir@,$libdir,;t t
  11409. s,@includedir@,$includedir,;t t
  11410. s,@oldincludedir@,$oldincludedir,;t t
  11411. s,@infodir@,$infodir,;t t
  11412. s,@mandir@,$mandir,;t t
  11413. s,@build_alias@,$build_alias,;t t
  11414. s,@host_alias@,$host_alias,;t t
  11415. s,@target_alias@,$target_alias,;t t
  11416. s,@DEFS@,$DEFS,;t t
  11417. s,@ECHO_C@,$ECHO_C,;t t
  11418. s,@ECHO_N@,$ECHO_N,;t t
  11419. s,@ECHO_T@,$ECHO_T,;t t
  11420. s,@LIBS@,$LIBS,;t t
  11421. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11422. s,@CC@,$CC,;t t
  11423. s,@CFLAGS@,$CFLAGS,;t t
  11424. s,@LDFLAGS@,$LDFLAGS,;t t
  11425. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11426. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11427. s,@EXEEXT@,$EXEEXT,;t t
  11428. s,@OBJEXT@,$OBJEXT,;t t
  11429. s,@CPP@,$CPP,;t t
  11430. s,@EGREP@,$EGREP,;t t
  11431. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11432. s,@GCC3@,$GCC3,;t t
  11433. s,@SET_MAKE@,$SET_MAKE,;t t
  11434. s,@HEAD_1@,$HEAD_1,;t t
  11435. s,@AWK@,$AWK,;t t
  11436. s,@BASENAME@,$BASENAME,;t t
  11437. s,@OBJCOPY@,$OBJCOPY,;t t
  11438. s,@STRIP@,$STRIP,;t t
  11439. s,@UNAME@,$UNAME,;t t
  11440. s,@DISTCC@,$DISTCC,;t t
  11441. s,@RESLIB@,$RESLIB,;t t
  11442. s,@RESINCLUDE@,$RESINCLUDE,;t t
  11443. s,@CCDEBUG@,$CCDEBUG,;t t
  11444. s,@ZLIB@,$ZLIB,;t t
  11445. s,@LIBOBJS@,$LIBOBJS,;t t
  11446. s,@VERSION@,$VERSION,;t t
  11447. s,@NUMVER@,$NUMVER,;t t
  11448. s,@WRAP@,$WRAP,;t t
  11449. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11450. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11451. CEOF
  11452. _ACEOF
  11453. cat >>$CONFIG_STATUS <<\_ACEOF
  11454. # Split the substitutions into bite-sized pieces for seds with
  11455. # small command number limits, like on Digital OSF/1 and HP-UX.
  11456. ac_max_sed_lines=48
  11457. ac_sed_frag=1 # Number of current file.
  11458. ac_beg=1 # First line for current file.
  11459. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11460. ac_more_lines=:
  11461. ac_sed_cmds=
  11462. while $ac_more_lines; do
  11463. if test $ac_beg -gt 1; then
  11464. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11465. else
  11466. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11467. fi
  11468. if test ! -s $tmp/subs.frag; then
  11469. ac_more_lines=false
  11470. else
  11471. # The purpose of the label and of the branching condition is to
  11472. # speed up the sed processing (if there are no `@' at all, there
  11473. # is no need to browse any of the substitutions).
  11474. # These are the two extra sed commands mentioned above.
  11475. (echo ':t
  11476. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11477. if test -z "$ac_sed_cmds"; then
  11478. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11479. else
  11480. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11481. fi
  11482. ac_sed_frag=`expr $ac_sed_frag + 1`
  11483. ac_beg=$ac_end
  11484. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11485. fi
  11486. done
  11487. if test -z "$ac_sed_cmds"; then
  11488. ac_sed_cmds=cat
  11489. fi
  11490. fi # test -n "$CONFIG_FILES"
  11491. _ACEOF
  11492. cat >>$CONFIG_STATUS <<\_ACEOF
  11493. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11494. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11495. case $ac_file in
  11496. - | *:- | *:-:* ) # input from stdin
  11497. cat >$tmp/stdin
  11498. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11499. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11500. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11501. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11502. * ) ac_file_in=$ac_file.in ;;
  11503. esac
  11504. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11505. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11506. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11507. X"$ac_file" : 'X\(//\)[^/]' \| \
  11508. X"$ac_file" : 'X\(//\)$' \| \
  11509. X"$ac_file" : 'X\(/\)' \| \
  11510. . : '\(.\)' 2>/dev/null ||
  11511. echo X"$ac_file" |
  11512. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11513. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11514. /^X\(\/\/\)$/{ s//\1/; q; }
  11515. /^X\(\/\).*/{ s//\1/; q; }
  11516. s/.*/./; q'`
  11517. { if $as_mkdir_p; then
  11518. mkdir -p "$ac_dir"
  11519. else
  11520. as_dir="$ac_dir"
  11521. as_dirs=
  11522. while test ! -d "$as_dir"; do
  11523. as_dirs="$as_dir $as_dirs"
  11524. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11525. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11526. X"$as_dir" : 'X\(//\)[^/]' \| \
  11527. X"$as_dir" : 'X\(//\)$' \| \
  11528. X"$as_dir" : 'X\(/\)' \| \
  11529. . : '\(.\)' 2>/dev/null ||
  11530. echo X"$as_dir" |
  11531. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11532. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11533. /^X\(\/\/\)$/{ s//\1/; q; }
  11534. /^X\(\/\).*/{ s//\1/; q; }
  11535. s/.*/./; q'`
  11536. done
  11537. test ! -n "$as_dirs" || mkdir $as_dirs
  11538. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11539. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11540. { (exit 1); exit 1; }; }; }
  11541. ac_builddir=.
  11542. if test "$ac_dir" != .; then
  11543. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11544. # A "../" for each directory in $ac_dir_suffix.
  11545. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11546. else
  11547. ac_dir_suffix= ac_top_builddir=
  11548. fi
  11549. case $srcdir in
  11550. .) # No --srcdir option. We are building in place.
  11551. ac_srcdir=.
  11552. if test -z "$ac_top_builddir"; then
  11553. ac_top_srcdir=.
  11554. else
  11555. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11556. fi ;;
  11557. [\\/]* | ?:[\\/]* ) # Absolute path.
  11558. ac_srcdir=$srcdir$ac_dir_suffix;
  11559. ac_top_srcdir=$srcdir ;;
  11560. *) # Relative path.
  11561. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11562. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11563. esac
  11564. # Do not use `cd foo && pwd` to compute absolute paths, because
  11565. # the directories may not exist.
  11566. case `pwd` in
  11567. .) ac_abs_builddir="$ac_dir";;
  11568. *)
  11569. case "$ac_dir" in
  11570. .) ac_abs_builddir=`pwd`;;
  11571. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11572. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11573. esac;;
  11574. esac
  11575. case $ac_abs_builddir in
  11576. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11577. *)
  11578. case ${ac_top_builddir}. in
  11579. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11580. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11581. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11582. esac;;
  11583. esac
  11584. case $ac_abs_builddir in
  11585. .) ac_abs_srcdir=$ac_srcdir;;
  11586. *)
  11587. case $ac_srcdir in
  11588. .) ac_abs_srcdir=$ac_abs_builddir;;
  11589. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11590. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11591. esac;;
  11592. esac
  11593. case $ac_abs_builddir in
  11594. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11595. *)
  11596. case $ac_top_srcdir in
  11597. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11598. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11599. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11600. esac;;
  11601. esac
  11602. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11603. # use $as_me), people would be surprised to read:
  11604. # /* config.h. Generated by config.status. */
  11605. if test x"$ac_file" = x-; then
  11606. configure_input=
  11607. else
  11608. configure_input="$ac_file. "
  11609. fi
  11610. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11611. sed 's,.*/,,'` by configure."
  11612. # First look for the input files in the build tree, otherwise in the
  11613. # src tree.
  11614. ac_file_inputs=`IFS=:
  11615. for f in $ac_file_in; do
  11616. case $f in
  11617. -) echo $tmp/stdin ;;
  11618. [\\/$]*)
  11619. # Absolute (can't be DOS-style, as IFS=:)
  11620. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11621. echo "$as_me: error: cannot find input file: $f" >&2;}
  11622. { (exit 1); exit 1; }; }
  11623. echo "$f";;
  11624. *) # Relative
  11625. if test -f "$f"; then
  11626. # Build tree
  11627. echo "$f"
  11628. elif test -f "$srcdir/$f"; then
  11629. # Source tree
  11630. echo "$srcdir/$f"
  11631. else
  11632. # /dev/null tree
  11633. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11634. echo "$as_me: error: cannot find input file: $f" >&2;}
  11635. { (exit 1); exit 1; }; }
  11636. fi;;
  11637. esac
  11638. done` || { (exit 1); exit 1; }
  11639. if test x"$ac_file" != x-; then
  11640. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11641. echo "$as_me: creating $ac_file" >&6;}
  11642. rm -f "$ac_file"
  11643. fi
  11644. _ACEOF
  11645. cat >>$CONFIG_STATUS <<_ACEOF
  11646. sed "$ac_vpsub
  11647. $extrasub
  11648. _ACEOF
  11649. cat >>$CONFIG_STATUS <<\_ACEOF
  11650. :t
  11651. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11652. s,@configure_input@,$configure_input,;t t
  11653. s,@srcdir@,$ac_srcdir,;t t
  11654. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11655. s,@top_srcdir@,$ac_top_srcdir,;t t
  11656. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11657. s,@builddir@,$ac_builddir,;t t
  11658. s,@abs_builddir@,$ac_abs_builddir,;t t
  11659. s,@top_builddir@,$ac_top_builddir,;t t
  11660. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11661. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11662. rm -f $tmp/stdin
  11663. if test x"$ac_file" != x-; then
  11664. mv $tmp/out $ac_file
  11665. else
  11666. cat $tmp/out
  11667. rm -f $tmp/out
  11668. fi
  11669. done
  11670. _ACEOF
  11671. cat >>$CONFIG_STATUS <<\_ACEOF
  11672. #
  11673. # CONFIG_HEADER section.
  11674. #
  11675. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11676. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11677. #
  11678. # ac_d sets the value in "#define NAME VALUE" lines.
  11679. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11680. ac_dB='[ ].*$,\1#\2'
  11681. ac_dC=' '
  11682. ac_dD=',;t'
  11683. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11684. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11685. ac_uB='$,\1#\2define\3'
  11686. ac_uC=' '
  11687. ac_uD=',;t'
  11688. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11689. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11690. case $ac_file in
  11691. - | *:- | *:-:* ) # input from stdin
  11692. cat >$tmp/stdin
  11693. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11694. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11695. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11696. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11697. * ) ac_file_in=$ac_file.in ;;
  11698. esac
  11699. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11700. echo "$as_me: creating $ac_file" >&6;}
  11701. # First look for the input files in the build tree, otherwise in the
  11702. # src tree.
  11703. ac_file_inputs=`IFS=:
  11704. for f in $ac_file_in; do
  11705. case $f in
  11706. -) echo $tmp/stdin ;;
  11707. [\\/$]*)
  11708. # Absolute (can't be DOS-style, as IFS=:)
  11709. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11710. echo "$as_me: error: cannot find input file: $f" >&2;}
  11711. { (exit 1); exit 1; }; }
  11712. # Do quote $f, to prevent DOS paths from being IFS'd.
  11713. echo "$f";;
  11714. *) # Relative
  11715. if test -f "$f"; then
  11716. # Build tree
  11717. echo "$f"
  11718. elif test -f "$srcdir/$f"; then
  11719. # Source tree
  11720. echo "$srcdir/$f"
  11721. else
  11722. # /dev/null tree
  11723. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11724. echo "$as_me: error: cannot find input file: $f" >&2;}
  11725. { (exit 1); exit 1; }; }
  11726. fi;;
  11727. esac
  11728. done` || { (exit 1); exit 1; }
  11729. # Remove the trailing spaces.
  11730. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11731. _ACEOF
  11732. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11733. # `conftest.undefs', that substitutes the proper values into
  11734. # config.h.in to produce config.h. The first handles `#define'
  11735. # templates, and the second `#undef' templates.
  11736. # And first: Protect against being on the right side of a sed subst in
  11737. # config.status. Protect against being in an unquoted here document
  11738. # in config.status.
  11739. rm -f conftest.defines conftest.undefs
  11740. # Using a here document instead of a string reduces the quoting nightmare.
  11741. # Putting comments in sed scripts is not portable.
  11742. #
  11743. # `end' is used to avoid that the second main sed command (meant for
  11744. # 0-ary CPP macros) applies to n-ary macro definitions.
  11745. # See the Autoconf documentation for `clear'.
  11746. cat >confdef2sed.sed <<\_ACEOF
  11747. s/[\\&,]/\\&/g
  11748. s,[\\$`],\\&,g
  11749. t clear
  11750. : clear
  11751. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11752. t end
  11753. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11754. : end
  11755. _ACEOF
  11756. # If some macros were called several times there might be several times
  11757. # the same #defines, which is useless. Nevertheless, we may not want to
  11758. # sort them, since we want the *last* AC-DEFINE to be honored.
  11759. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11760. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11761. rm -f confdef2sed.sed
  11762. # This sed command replaces #undef with comments. This is necessary, for
  11763. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11764. # on some systems where configure will not decide to define it.
  11765. cat >>conftest.undefs <<\_ACEOF
  11766. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11767. _ACEOF
  11768. # Break up conftest.defines because some shells have a limit on the size
  11769. # of here documents, and old seds have small limits too (100 cmds).
  11770. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11771. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11772. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11773. echo ' :' >>$CONFIG_STATUS
  11774. rm -f conftest.tail
  11775. while grep . conftest.defines >/dev/null
  11776. do
  11777. # Write a limited-size here document to $tmp/defines.sed.
  11778. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11779. # Speed up: don't consider the non `#define' lines.
  11780. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11781. # Work around the forget-to-reset-the-flag bug.
  11782. echo 't clr' >>$CONFIG_STATUS
  11783. echo ': clr' >>$CONFIG_STATUS
  11784. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11785. echo 'CEOF
  11786. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11787. rm -f $tmp/in
  11788. mv $tmp/out $tmp/in
  11789. ' >>$CONFIG_STATUS
  11790. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11791. rm -f conftest.defines
  11792. mv conftest.tail conftest.defines
  11793. done
  11794. rm -f conftest.defines
  11795. echo ' fi # grep' >>$CONFIG_STATUS
  11796. echo >>$CONFIG_STATUS
  11797. # Break up conftest.undefs because some shells have a limit on the size
  11798. # of here documents, and old seds have small limits too (100 cmds).
  11799. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11800. rm -f conftest.tail
  11801. while grep . conftest.undefs >/dev/null
  11802. do
  11803. # Write a limited-size here document to $tmp/undefs.sed.
  11804. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11805. # Speed up: don't consider the non `#undef'
  11806. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11807. # Work around the forget-to-reset-the-flag bug.
  11808. echo 't clr' >>$CONFIG_STATUS
  11809. echo ': clr' >>$CONFIG_STATUS
  11810. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11811. echo 'CEOF
  11812. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11813. rm -f $tmp/in
  11814. mv $tmp/out $tmp/in
  11815. ' >>$CONFIG_STATUS
  11816. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11817. rm -f conftest.undefs
  11818. mv conftest.tail conftest.undefs
  11819. done
  11820. rm -f conftest.undefs
  11821. cat >>$CONFIG_STATUS <<\_ACEOF
  11822. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11823. # use $as_me), people would be surprised to read:
  11824. # /* config.h. Generated by config.status. */
  11825. if test x"$ac_file" = x-; then
  11826. echo "/* Generated by configure. */" >$tmp/config.h
  11827. else
  11828. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11829. fi
  11830. cat $tmp/in >>$tmp/config.h
  11831. rm -f $tmp/in
  11832. if test x"$ac_file" != x-; then
  11833. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11834. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11835. echo "$as_me: $ac_file is unchanged" >&6;}
  11836. else
  11837. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11838. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11839. X"$ac_file" : 'X\(//\)[^/]' \| \
  11840. X"$ac_file" : 'X\(//\)$' \| \
  11841. X"$ac_file" : 'X\(/\)' \| \
  11842. . : '\(.\)' 2>/dev/null ||
  11843. echo X"$ac_file" |
  11844. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11845. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11846. /^X\(\/\/\)$/{ s//\1/; q; }
  11847. /^X\(\/\).*/{ s//\1/; q; }
  11848. s/.*/./; q'`
  11849. { if $as_mkdir_p; then
  11850. mkdir -p "$ac_dir"
  11851. else
  11852. as_dir="$ac_dir"
  11853. as_dirs=
  11854. while test ! -d "$as_dir"; do
  11855. as_dirs="$as_dir $as_dirs"
  11856. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11857. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11858. X"$as_dir" : 'X\(//\)[^/]' \| \
  11859. X"$as_dir" : 'X\(//\)$' \| \
  11860. X"$as_dir" : 'X\(/\)' \| \
  11861. . : '\(.\)' 2>/dev/null ||
  11862. echo X"$as_dir" |
  11863. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11864. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11865. /^X\(\/\/\)$/{ s//\1/; q; }
  11866. /^X\(\/\).*/{ s//\1/; q; }
  11867. s/.*/./; q'`
  11868. done
  11869. test ! -n "$as_dirs" || mkdir $as_dirs
  11870. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11871. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11872. { (exit 1); exit 1; }; }; }
  11873. rm -f $ac_file
  11874. mv $tmp/config.h $ac_file
  11875. fi
  11876. else
  11877. cat $tmp/config.h
  11878. rm -f $tmp/config.h
  11879. fi
  11880. done
  11881. _ACEOF
  11882. cat >>$CONFIG_STATUS <<\_ACEOF
  11883. { (exit 0); exit 0; }
  11884. _ACEOF
  11885. chmod +x $CONFIG_STATUS
  11886. ac_clean_files=$ac_clean_files_save
  11887. # configure is writing to config.log, and then calls config.status.
  11888. # config.status does its own redirection, appending to config.log.
  11889. # Unfortunately, on DOS this fails, as config.log is still kept open
  11890. # by configure, so config.status won't be able to write to it; its
  11891. # output is simply discarded. So we exec the FD to /dev/null,
  11892. # effectively closing config.log, so it can be properly (re)opened and
  11893. # appended to by config.status. When coming back to configure, we
  11894. # need to make the FD available again.
  11895. if test "$no_create" != yes; then
  11896. ac_cs_success=:
  11897. ac_config_status_args=
  11898. test "$silent" = yes &&
  11899. ac_config_status_args="$ac_config_status_args --quiet"
  11900. exec 5>/dev/null
  11901. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11902. exec 5>>config.log
  11903. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11904. # would make configure fail if this is the last instruction.
  11905. $ac_cs_success || { (exit 1); exit 1; }
  11906. fi