configure 388 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.4 .
  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 SET_MAKE HEAD_1 STRIP AWK BASENAME UNAME ZLIB SSL LIBOBJS TCLLIB TCLLIBFN TCLINC TCLINCFN TCL_REQS TCL_LIBS VERSION NUMVER PACKNAME MOD_UPDIR LTLIBOBJS'
  281. ac_subst_files=''
  282. # Initialize some variables set by options.
  283. ac_init_help=
  284. ac_init_version=false
  285. # The variables have the same names as the options, with
  286. # dashes changed to underlines.
  287. cache_file=./config.cache
  288. exec_prefix=NONE
  289. no_create=
  290. no_recursion=
  291. prefix=NONE
  292. program_prefix=NONE
  293. program_suffix=NONE
  294. program_transform_name=s,x,x,
  295. silent=
  296. site=
  297. srcdir=
  298. verbose=
  299. x_includes=NONE
  300. x_libraries=NONE
  301. # Installation directory options.
  302. # These are left unexpanded so users can "make install exec_prefix=/foo"
  303. # and all the variables that are supposed to be based on exec_prefix
  304. # by default will actually change.
  305. # Use braces instead of parens because sh, perl, etc. also accept them.
  306. bindir='${exec_prefix}/bin'
  307. sbindir='${exec_prefix}/sbin'
  308. libexecdir='${exec_prefix}/libexec'
  309. datadir='${prefix}/share'
  310. sysconfdir='${prefix}/etc'
  311. sharedstatedir='${prefix}/com'
  312. localstatedir='${prefix}/var'
  313. libdir='${exec_prefix}/lib'
  314. includedir='${prefix}/include'
  315. oldincludedir='/usr/include'
  316. infodir='${prefix}/info'
  317. mandir='${prefix}/man'
  318. ac_prev=
  319. for ac_option
  320. do
  321. # If the previous option needs an argument, assign it.
  322. if test -n "$ac_prev"; then
  323. eval "$ac_prev=\$ac_option"
  324. ac_prev=
  325. continue
  326. fi
  327. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  328. # Accept the important Cygnus configure options, so we can diagnose typos.
  329. case $ac_option in
  330. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  331. ac_prev=bindir ;;
  332. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  333. bindir=$ac_optarg ;;
  334. -build | --build | --buil | --bui | --bu)
  335. ac_prev=build_alias ;;
  336. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  337. build_alias=$ac_optarg ;;
  338. -cache-file | --cache-file | --cache-fil | --cache-fi \
  339. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  340. ac_prev=cache_file ;;
  341. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  342. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  343. cache_file=$ac_optarg ;;
  344. --config-cache | -C)
  345. cache_file=config.cache ;;
  346. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  347. ac_prev=datadir ;;
  348. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  349. | --da=*)
  350. datadir=$ac_optarg ;;
  351. -disable-* | --disable-*)
  352. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  353. # Reject names that are not valid shell variable names.
  354. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  355. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  356. { (exit 1); exit 1; }; }
  357. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  358. eval "enable_$ac_feature=no" ;;
  359. -enable-* | --enable-*)
  360. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  361. # Reject names that are not valid shell variable names.
  362. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  363. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  364. { (exit 1); exit 1; }; }
  365. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  366. case $ac_option in
  367. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  368. *) ac_optarg=yes ;;
  369. esac
  370. eval "enable_$ac_feature='$ac_optarg'" ;;
  371. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  372. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  373. | --exec | --exe | --ex)
  374. ac_prev=exec_prefix ;;
  375. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  376. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  377. | --exec=* | --exe=* | --ex=*)
  378. exec_prefix=$ac_optarg ;;
  379. -gas | --gas | --ga | --g)
  380. # Obsolete; use --with-gas.
  381. with_gas=yes ;;
  382. -help | --help | --hel | --he | -h)
  383. ac_init_help=long ;;
  384. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  385. ac_init_help=recursive ;;
  386. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  387. ac_init_help=short ;;
  388. -host | --host | --hos | --ho)
  389. ac_prev=host_alias ;;
  390. -host=* | --host=* | --hos=* | --ho=*)
  391. host_alias=$ac_optarg ;;
  392. -includedir | --includedir | --includedi | --included | --include \
  393. | --includ | --inclu | --incl | --inc)
  394. ac_prev=includedir ;;
  395. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  396. | --includ=* | --inclu=* | --incl=* | --inc=*)
  397. includedir=$ac_optarg ;;
  398. -infodir | --infodir | --infodi | --infod | --info | --inf)
  399. ac_prev=infodir ;;
  400. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  401. infodir=$ac_optarg ;;
  402. -libdir | --libdir | --libdi | --libd)
  403. ac_prev=libdir ;;
  404. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  405. libdir=$ac_optarg ;;
  406. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  407. | --libexe | --libex | --libe)
  408. ac_prev=libexecdir ;;
  409. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  410. | --libexe=* | --libex=* | --libe=*)
  411. libexecdir=$ac_optarg ;;
  412. -localstatedir | --localstatedir | --localstatedi | --localstated \
  413. | --localstate | --localstat | --localsta | --localst \
  414. | --locals | --local | --loca | --loc | --lo)
  415. ac_prev=localstatedir ;;
  416. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  417. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  418. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  419. localstatedir=$ac_optarg ;;
  420. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  421. ac_prev=mandir ;;
  422. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  423. mandir=$ac_optarg ;;
  424. -nfp | --nfp | --nf)
  425. # Obsolete; use --without-fp.
  426. with_fp=no ;;
  427. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  428. | --no-cr | --no-c | -n)
  429. no_create=yes ;;
  430. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  431. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  432. no_recursion=yes ;;
  433. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  434. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  435. | --oldin | --oldi | --old | --ol | --o)
  436. ac_prev=oldincludedir ;;
  437. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  438. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  439. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  440. oldincludedir=$ac_optarg ;;
  441. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  442. ac_prev=prefix ;;
  443. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  444. prefix=$ac_optarg ;;
  445. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  446. | --program-pre | --program-pr | --program-p)
  447. ac_prev=program_prefix ;;
  448. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  449. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  450. program_prefix=$ac_optarg ;;
  451. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  452. | --program-suf | --program-su | --program-s)
  453. ac_prev=program_suffix ;;
  454. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  455. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  456. program_suffix=$ac_optarg ;;
  457. -program-transform-name | --program-transform-name \
  458. | --program-transform-nam | --program-transform-na \
  459. | --program-transform-n | --program-transform- \
  460. | --program-transform | --program-transfor \
  461. | --program-transfo | --program-transf \
  462. | --program-trans | --program-tran \
  463. | --progr-tra | --program-tr | --program-t)
  464. ac_prev=program_transform_name ;;
  465. -program-transform-name=* | --program-transform-name=* \
  466. | --program-transform-nam=* | --program-transform-na=* \
  467. | --program-transform-n=* | --program-transform-=* \
  468. | --program-transform=* | --program-transfor=* \
  469. | --program-transfo=* | --program-transf=* \
  470. | --program-trans=* | --program-tran=* \
  471. | --progr-tra=* | --program-tr=* | --program-t=*)
  472. program_transform_name=$ac_optarg ;;
  473. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  474. | -silent | --silent | --silen | --sile | --sil)
  475. silent=yes ;;
  476. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  477. ac_prev=sbindir ;;
  478. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  479. | --sbi=* | --sb=*)
  480. sbindir=$ac_optarg ;;
  481. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  482. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  483. | --sharedst | --shareds | --shared | --share | --shar \
  484. | --sha | --sh)
  485. ac_prev=sharedstatedir ;;
  486. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  487. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  488. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  489. | --sha=* | --sh=*)
  490. sharedstatedir=$ac_optarg ;;
  491. -site | --site | --sit)
  492. ac_prev=site ;;
  493. -site=* | --site=* | --sit=*)
  494. site=$ac_optarg ;;
  495. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  496. ac_prev=srcdir ;;
  497. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  498. srcdir=$ac_optarg ;;
  499. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  500. | --syscon | --sysco | --sysc | --sys | --sy)
  501. ac_prev=sysconfdir ;;
  502. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  503. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  504. sysconfdir=$ac_optarg ;;
  505. -target | --target | --targe | --targ | --tar | --ta | --t)
  506. ac_prev=target_alias ;;
  507. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  508. target_alias=$ac_optarg ;;
  509. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  510. verbose=yes ;;
  511. -version | --version | --versio | --versi | --vers | -V)
  512. ac_init_version=: ;;
  513. -with-* | --with-*)
  514. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  515. # Reject names that are not valid shell variable names.
  516. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  517. { echo "$as_me: error: invalid package name: $ac_package" >&2
  518. { (exit 1); exit 1; }; }
  519. ac_package=`echo $ac_package| sed 's/-/_/g'`
  520. case $ac_option in
  521. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  522. *) ac_optarg=yes ;;
  523. esac
  524. eval "with_$ac_package='$ac_optarg'" ;;
  525. -without-* | --without-*)
  526. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  527. # Reject names that are not valid shell variable names.
  528. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  529. { echo "$as_me: error: invalid package name: $ac_package" >&2
  530. { (exit 1); exit 1; }; }
  531. ac_package=`echo $ac_package | sed 's/-/_/g'`
  532. eval "with_$ac_package=no" ;;
  533. --x)
  534. # Obsolete; use --with-x.
  535. with_x=yes ;;
  536. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  537. | --x-incl | --x-inc | --x-in | --x-i)
  538. ac_prev=x_includes ;;
  539. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  540. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  541. x_includes=$ac_optarg ;;
  542. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  543. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  544. ac_prev=x_libraries ;;
  545. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  546. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  547. x_libraries=$ac_optarg ;;
  548. -*) { echo "$as_me: error: unrecognized option: $ac_option
  549. Try \`$0 --help' for more information." >&2
  550. { (exit 1); exit 1; }; }
  551. ;;
  552. *=*)
  553. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  554. # Reject names that are not valid shell variable names.
  555. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  556. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  557. { (exit 1); exit 1; }; }
  558. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  559. eval "$ac_envvar='$ac_optarg'"
  560. export $ac_envvar ;;
  561. *)
  562. # FIXME: should be removed in autoconf 3.0.
  563. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  564. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  565. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  566. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  567. ;;
  568. esac
  569. done
  570. if test -n "$ac_prev"; then
  571. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  572. { echo "$as_me: error: missing argument to $ac_option" >&2
  573. { (exit 1); exit 1; }; }
  574. fi
  575. # Be sure to have absolute paths.
  576. for ac_var in exec_prefix prefix
  577. do
  578. eval ac_val=$`echo $ac_var`
  579. case $ac_val in
  580. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  581. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  582. { (exit 1); exit 1; }; };;
  583. esac
  584. done
  585. # Be sure to have absolute paths.
  586. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  587. localstatedir libdir includedir oldincludedir infodir mandir
  588. do
  589. eval ac_val=$`echo $ac_var`
  590. case $ac_val in
  591. [\\/$]* | ?:[\\/]* ) ;;
  592. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  593. { (exit 1); exit 1; }; };;
  594. esac
  595. done
  596. # There might be people who depend on the old broken behavior: `$host'
  597. # used to hold the argument of --host etc.
  598. # FIXME: To remove some day.
  599. build=$build_alias
  600. host=$host_alias
  601. target=$target_alias
  602. # FIXME: To remove some day.
  603. if test "x$host_alias" != x; then
  604. if test "x$build_alias" = x; then
  605. cross_compiling=maybe
  606. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  607. If a cross compiler is detected then cross compile mode will be used." >&2
  608. elif test "x$build_alias" != "x$host_alias"; then
  609. cross_compiling=yes
  610. fi
  611. fi
  612. ac_tool_prefix=
  613. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  614. test "$silent" = yes && exec 6>/dev/null
  615. # Find the source files, if location was not specified.
  616. if test -z "$srcdir"; then
  617. ac_srcdir_defaulted=yes
  618. # Try the directory containing this script, then its parent.
  619. ac_confdir=`(dirname "$0") 2>/dev/null ||
  620. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  621. X"$0" : 'X\(//\)[^/]' \| \
  622. X"$0" : 'X\(//\)$' \| \
  623. X"$0" : 'X\(/\)' \| \
  624. . : '\(.\)' 2>/dev/null ||
  625. echo X"$0" |
  626. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  627. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  628. /^X\(\/\/\)$/{ s//\1/; q; }
  629. /^X\(\/\).*/{ s//\1/; q; }
  630. s/.*/./; q'`
  631. srcdir=$ac_confdir
  632. if test ! -r $srcdir/$ac_unique_file; then
  633. srcdir=..
  634. fi
  635. else
  636. ac_srcdir_defaulted=no
  637. fi
  638. if test ! -r $srcdir/$ac_unique_file; then
  639. if test "$ac_srcdir_defaulted" = yes; then
  640. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  641. { (exit 1); exit 1; }; }
  642. else
  643. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  644. { (exit 1); exit 1; }; }
  645. fi
  646. fi
  647. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  648. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  649. { (exit 1); exit 1; }; }
  650. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  651. ac_env_build_alias_set=${build_alias+set}
  652. ac_env_build_alias_value=$build_alias
  653. ac_cv_env_build_alias_set=${build_alias+set}
  654. ac_cv_env_build_alias_value=$build_alias
  655. ac_env_host_alias_set=${host_alias+set}
  656. ac_env_host_alias_value=$host_alias
  657. ac_cv_env_host_alias_set=${host_alias+set}
  658. ac_cv_env_host_alias_value=$host_alias
  659. ac_env_target_alias_set=${target_alias+set}
  660. ac_env_target_alias_value=$target_alias
  661. ac_cv_env_target_alias_set=${target_alias+set}
  662. ac_cv_env_target_alias_value=$target_alias
  663. ac_env_CC_set=${CC+set}
  664. ac_env_CC_value=$CC
  665. ac_cv_env_CC_set=${CC+set}
  666. ac_cv_env_CC_value=$CC
  667. ac_env_CFLAGS_set=${CFLAGS+set}
  668. ac_env_CFLAGS_value=$CFLAGS
  669. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  670. ac_cv_env_CFLAGS_value=$CFLAGS
  671. ac_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_env_LDFLAGS_value=$LDFLAGS
  673. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  674. ac_cv_env_LDFLAGS_value=$LDFLAGS
  675. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  678. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  679. ac_env_CPP_set=${CPP+set}
  680. ac_env_CPP_value=$CPP
  681. ac_cv_env_CPP_set=${CPP+set}
  682. ac_cv_env_CPP_value=$CPP
  683. #
  684. # Report the --help message.
  685. #
  686. if test "$ac_init_help" = "long"; then
  687. # Omit some internal or obsolete options to make the list less imposing.
  688. # This message is too long to be a string in the A/UX 3.1 sh.
  689. cat <<_ACEOF
  690. \`configure' configures this package to adapt to many kinds of systems.
  691. Usage: $0 [OPTION]... [VAR=VALUE]...
  692. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  693. VAR=VALUE. See below for descriptions of some of the useful variables.
  694. Defaults for the options are specified in brackets.
  695. Configuration:
  696. -h, --help display this help and exit
  697. --help=short display options specific to this package
  698. --help=recursive display the short help of all the included packages
  699. -V, --version display version information and exit
  700. -q, --quiet, --silent do not print \`checking...' messages
  701. --cache-file=FILE cache test results in FILE [disabled]
  702. -C, --config-cache alias for \`--cache-file=config.cache'
  703. -n, --no-create do not create output files
  704. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  705. _ACEOF
  706. cat <<_ACEOF
  707. Installation directories:
  708. --prefix=PREFIX install architecture-independent files in PREFIX
  709. [$ac_default_prefix]
  710. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  711. [PREFIX]
  712. By default, \`make install' will install all the files in
  713. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  714. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  715. for instance \`--prefix=\$HOME'.
  716. For better control, use the options below.
  717. Fine tuning of the installation directories:
  718. --bindir=DIR user executables [EPREFIX/bin]
  719. --sbindir=DIR system admin executables [EPREFIX/sbin]
  720. --libexecdir=DIR program executables [EPREFIX/libexec]
  721. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  722. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  723. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  724. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  725. --libdir=DIR object code libraries [EPREFIX/lib]
  726. --includedir=DIR C header files [PREFIX/include]
  727. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  728. --infodir=DIR info documentation [PREFIX/info]
  729. --mandir=DIR man documentation [PREFIX/man]
  730. _ACEOF
  731. cat <<\_ACEOF
  732. _ACEOF
  733. fi
  734. if test -n "$ac_init_help"; then
  735. cat <<\_ACEOF
  736. Optional Features:
  737. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  738. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  739. --disable-ipv6 disable IPv6 support
  740. Optional Packages:
  741. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  742. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  743. --with-tcllib=PATH full path to Tcl library
  744. --with-tclinc=PATH full path to Tcl header
  745. Some influential environment variables:
  746. CC C compiler command
  747. CFLAGS C compiler flags
  748. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  749. nonstandard directory <lib dir>
  750. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  751. headers in a nonstandard directory <include dir>
  752. CPP C preprocessor
  753. Use these variables to override the choices made by `configure' or to help
  754. it to find libraries and programs with nonstandard names/locations.
  755. _ACEOF
  756. fi
  757. if test "$ac_init_help" = "recursive"; then
  758. # If there are subdirs, report their specific --help.
  759. ac_popdir=`pwd`
  760. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  761. test -d $ac_dir || continue
  762. ac_builddir=.
  763. if test "$ac_dir" != .; then
  764. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  765. # A "../" for each directory in $ac_dir_suffix.
  766. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  767. else
  768. ac_dir_suffix= ac_top_builddir=
  769. fi
  770. case $srcdir in
  771. .) # No --srcdir option. We are building in place.
  772. ac_srcdir=.
  773. if test -z "$ac_top_builddir"; then
  774. ac_top_srcdir=.
  775. else
  776. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  777. fi ;;
  778. [\\/]* | ?:[\\/]* ) # Absolute path.
  779. ac_srcdir=$srcdir$ac_dir_suffix;
  780. ac_top_srcdir=$srcdir ;;
  781. *) # Relative path.
  782. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  783. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  784. esac
  785. # Do not use `cd foo && pwd` to compute absolute paths, because
  786. # the directories may not exist.
  787. case `pwd` in
  788. .) ac_abs_builddir="$ac_dir";;
  789. *)
  790. case "$ac_dir" in
  791. .) ac_abs_builddir=`pwd`;;
  792. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  793. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  794. esac;;
  795. esac
  796. case $ac_abs_builddir in
  797. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  798. *)
  799. case ${ac_top_builddir}. in
  800. .) ac_abs_top_builddir=$ac_abs_builddir;;
  801. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  802. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  803. esac;;
  804. esac
  805. case $ac_abs_builddir in
  806. .) ac_abs_srcdir=$ac_srcdir;;
  807. *)
  808. case $ac_srcdir in
  809. .) ac_abs_srcdir=$ac_abs_builddir;;
  810. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  811. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  812. esac;;
  813. esac
  814. case $ac_abs_builddir in
  815. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  816. *)
  817. case $ac_top_srcdir in
  818. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  819. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  820. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  821. esac;;
  822. esac
  823. cd $ac_dir
  824. # Check for guested configure; otherwise get Cygnus style configure.
  825. if test -f $ac_srcdir/configure.gnu; then
  826. echo
  827. $SHELL $ac_srcdir/configure.gnu --help=recursive
  828. elif test -f $ac_srcdir/configure; then
  829. echo
  830. $SHELL $ac_srcdir/configure --help=recursive
  831. elif test -f $ac_srcdir/configure.ac ||
  832. test -f $ac_srcdir/configure.in; then
  833. echo
  834. $ac_configure --help
  835. else
  836. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  837. fi
  838. cd "$ac_popdir"
  839. done
  840. fi
  841. test -n "$ac_init_help" && exit 0
  842. if $ac_init_version; then
  843. cat <<\_ACEOF
  844. Copyright (C) 2003 Free Software Foundation, Inc.
  845. This configure script is free software; the Free Software Foundation
  846. gives unlimited permission to copy, distribute and modify it.
  847. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  848. _ACEOF
  849. exit 0
  850. fi
  851. exec 5>config.log
  852. cat >&5 <<_ACEOF
  853. This file contains any messages produced by compilers while
  854. running configure, to aid debugging if configure makes a mistake.
  855. It was created by $as_me, which was
  856. generated by GNU Autoconf 2.59. Invocation command line was
  857. $ $0 $@
  858. _ACEOF
  859. {
  860. cat <<_ASUNAME
  861. ## --------- ##
  862. ## Platform. ##
  863. ## --------- ##
  864. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  865. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  866. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  867. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  868. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  869. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  870. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  871. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  872. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  873. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  874. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  875. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  876. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  877. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  878. _ASUNAME
  879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  880. for as_dir in $PATH
  881. do
  882. IFS=$as_save_IFS
  883. test -z "$as_dir" && as_dir=.
  884. echo "PATH: $as_dir"
  885. done
  886. } >&5
  887. cat >&5 <<_ACEOF
  888. ## ----------- ##
  889. ## Core tests. ##
  890. ## ----------- ##
  891. _ACEOF
  892. # Keep a trace of the command line.
  893. # Strip out --no-create and --no-recursion so they do not pile up.
  894. # Strip out --silent because we don't want to record it for future runs.
  895. # Also quote any args containing shell meta-characters.
  896. # Make two passes to allow for proper duplicate-argument suppression.
  897. ac_configure_args=
  898. ac_configure_args0=
  899. ac_configure_args1=
  900. ac_sep=
  901. ac_must_keep_next=false
  902. for ac_pass in 1 2
  903. do
  904. for ac_arg
  905. do
  906. case $ac_arg in
  907. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  908. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  909. | -silent | --silent | --silen | --sile | --sil)
  910. continue ;;
  911. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  912. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  913. esac
  914. case $ac_pass in
  915. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  916. 2)
  917. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  918. if test $ac_must_keep_next = true; then
  919. ac_must_keep_next=false # Got value, back to normal.
  920. else
  921. case $ac_arg in
  922. *=* | --config-cache | -C | -disable-* | --disable-* \
  923. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  924. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  925. | -with-* | --with-* | -without-* | --without-* | --x)
  926. case "$ac_configure_args0 " in
  927. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  928. esac
  929. ;;
  930. -* ) ac_must_keep_next=true ;;
  931. esac
  932. fi
  933. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  934. # Get rid of the leading space.
  935. ac_sep=" "
  936. ;;
  937. esac
  938. done
  939. done
  940. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  941. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  942. # When interrupted or exit'd, cleanup temporary files, and complete
  943. # config.log. We remove comments because anyway the quotes in there
  944. # would cause problems or look ugly.
  945. # WARNING: Be sure not to use single quotes in there, as some shells,
  946. # such as our DU 5.0 friend, will then `close' the trap.
  947. trap 'exit_status=$?
  948. # Save into config.log some information that might help in debugging.
  949. {
  950. echo
  951. cat <<\_ASBOX
  952. ## ---------------- ##
  953. ## Cache variables. ##
  954. ## ---------------- ##
  955. _ASBOX
  956. echo
  957. # The following way of writing the cache mishandles newlines in values,
  958. {
  959. (set) 2>&1 |
  960. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  961. *ac_space=\ *)
  962. sed -n \
  963. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  964. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  965. ;;
  966. *)
  967. sed -n \
  968. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  969. ;;
  970. esac;
  971. }
  972. echo
  973. cat <<\_ASBOX
  974. ## ----------------- ##
  975. ## Output variables. ##
  976. ## ----------------- ##
  977. _ASBOX
  978. echo
  979. for ac_var in $ac_subst_vars
  980. do
  981. eval ac_val=$`echo $ac_var`
  982. echo "$ac_var='"'"'$ac_val'"'"'"
  983. done | sort
  984. echo
  985. if test -n "$ac_subst_files"; then
  986. cat <<\_ASBOX
  987. ## ------------- ##
  988. ## Output files. ##
  989. ## ------------- ##
  990. _ASBOX
  991. echo
  992. for ac_var in $ac_subst_files
  993. do
  994. eval ac_val=$`echo $ac_var`
  995. echo "$ac_var='"'"'$ac_val'"'"'"
  996. done | sort
  997. echo
  998. fi
  999. if test -s confdefs.h; then
  1000. cat <<\_ASBOX
  1001. ## ----------- ##
  1002. ## confdefs.h. ##
  1003. ## ----------- ##
  1004. _ASBOX
  1005. echo
  1006. sed "/^$/d" confdefs.h | sort
  1007. echo
  1008. fi
  1009. test "$ac_signal" != 0 &&
  1010. echo "$as_me: caught signal $ac_signal"
  1011. echo "$as_me: exit $exit_status"
  1012. } >&5
  1013. rm -f core *.core &&
  1014. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1015. exit $exit_status
  1016. ' 0
  1017. for ac_signal in 1 2 13 15; do
  1018. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1019. done
  1020. ac_signal=0
  1021. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1022. rm -rf conftest* confdefs.h
  1023. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1024. echo >confdefs.h
  1025. # Predefined preprocessor variables.
  1026. cat >>confdefs.h <<_ACEOF
  1027. #define PACKAGE_NAME "$PACKAGE_NAME"
  1028. _ACEOF
  1029. cat >>confdefs.h <<_ACEOF
  1030. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1031. _ACEOF
  1032. cat >>confdefs.h <<_ACEOF
  1033. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1034. _ACEOF
  1035. cat >>confdefs.h <<_ACEOF
  1036. #define PACKAGE_STRING "$PACKAGE_STRING"
  1037. _ACEOF
  1038. cat >>confdefs.h <<_ACEOF
  1039. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1040. _ACEOF
  1041. # Let the site file select an alternate cache file if it wants to.
  1042. # Prefer explicitly selected file to automatically selected ones.
  1043. if test -z "$CONFIG_SITE"; then
  1044. if test "x$prefix" != xNONE; then
  1045. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1046. else
  1047. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1048. fi
  1049. fi
  1050. for ac_site_file in $CONFIG_SITE; do
  1051. if test -r "$ac_site_file"; then
  1052. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1053. echo "$as_me: loading site script $ac_site_file" >&6;}
  1054. sed 's/^/| /' "$ac_site_file" >&5
  1055. . "$ac_site_file"
  1056. fi
  1057. done
  1058. if test -r "$cache_file"; then
  1059. # Some versions of bash will fail to source /dev/null (special
  1060. # files actually), so we avoid doing that.
  1061. if test -f "$cache_file"; then
  1062. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1063. echo "$as_me: loading cache $cache_file" >&6;}
  1064. case $cache_file in
  1065. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1066. *) . ./$cache_file;;
  1067. esac
  1068. fi
  1069. else
  1070. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1071. echo "$as_me: creating cache $cache_file" >&6;}
  1072. >$cache_file
  1073. fi
  1074. # Check that the precious variables saved in the cache have kept the same
  1075. # value.
  1076. ac_cache_corrupted=false
  1077. for ac_var in `(set) 2>&1 |
  1078. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1079. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1080. eval ac_new_set=\$ac_env_${ac_var}_set
  1081. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1082. eval ac_new_val="\$ac_env_${ac_var}_value"
  1083. case $ac_old_set,$ac_new_set in
  1084. set,)
  1085. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1086. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1087. ac_cache_corrupted=: ;;
  1088. ,set)
  1089. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1090. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1091. ac_cache_corrupted=: ;;
  1092. ,);;
  1093. *)
  1094. if test "x$ac_old_val" != "x$ac_new_val"; then
  1095. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1096. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1097. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1098. echo "$as_me: former value: $ac_old_val" >&2;}
  1099. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1100. echo "$as_me: current value: $ac_new_val" >&2;}
  1101. ac_cache_corrupted=:
  1102. fi;;
  1103. esac
  1104. # Pass precious variables to config.status.
  1105. if test "$ac_new_set" = set; then
  1106. case $ac_new_val in
  1107. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1108. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1109. *) ac_arg=$ac_var=$ac_new_val ;;
  1110. esac
  1111. case " $ac_configure_args " in
  1112. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1113. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1114. esac
  1115. fi
  1116. done
  1117. if $ac_cache_corrupted; then
  1118. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1119. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1120. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1121. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1122. { (exit 1); exit 1; }; }
  1123. fi
  1124. ac_ext=c
  1125. ac_cpp='$CPP $CPPFLAGS'
  1126. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1127. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1128. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1129. ac_config_headers="$ac_config_headers config.h"
  1130. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1131. egg_ac_parameters=
  1132. ac_prev=
  1133. for ac_arg in $ac_configure_args; do
  1134. if test -n "$ac_prev"; then
  1135. ac_prev=
  1136. continue
  1137. fi
  1138. case $ac_arg in
  1139. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1140. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1141. ac_prev=cache_file ;;
  1142. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1143. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1144. | --c=*)
  1145. ;;
  1146. --config-cache | -C)
  1147. ;;
  1148. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1149. ac_prev=srcdir ;;
  1150. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1151. ;;
  1152. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1153. esac
  1154. done
  1155. # Setup build environment
  1156. ac_ext=c
  1157. ac_cpp='$CPP $CPPFLAGS'
  1158. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1159. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1160. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1161. if test -n "$ac_tool_prefix"; then
  1162. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1163. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1164. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1165. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1166. if test "${ac_cv_prog_CC+set}" = set; then
  1167. echo $ECHO_N "(cached) $ECHO_C" >&6
  1168. else
  1169. if test -n "$CC"; then
  1170. ac_cv_prog_CC="$CC" # Let the user override the test.
  1171. else
  1172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1173. for as_dir in $PATH
  1174. do
  1175. IFS=$as_save_IFS
  1176. test -z "$as_dir" && as_dir=.
  1177. for ac_exec_ext in '' $ac_executable_extensions; do
  1178. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1179. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1180. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1181. break 2
  1182. fi
  1183. done
  1184. done
  1185. fi
  1186. fi
  1187. CC=$ac_cv_prog_CC
  1188. if test -n "$CC"; then
  1189. echo "$as_me:$LINENO: result: $CC" >&5
  1190. echo "${ECHO_T}$CC" >&6
  1191. else
  1192. echo "$as_me:$LINENO: result: no" >&5
  1193. echo "${ECHO_T}no" >&6
  1194. fi
  1195. fi
  1196. if test -z "$ac_cv_prog_CC"; then
  1197. ac_ct_CC=$CC
  1198. # Extract the first word of "gcc", so it can be a program name with args.
  1199. set dummy gcc; ac_word=$2
  1200. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1201. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1202. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1203. echo $ECHO_N "(cached) $ECHO_C" >&6
  1204. else
  1205. if test -n "$ac_ct_CC"; then
  1206. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1207. else
  1208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1209. for as_dir in $PATH
  1210. do
  1211. IFS=$as_save_IFS
  1212. test -z "$as_dir" && as_dir=.
  1213. for ac_exec_ext in '' $ac_executable_extensions; do
  1214. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1215. ac_cv_prog_ac_ct_CC="gcc"
  1216. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1217. break 2
  1218. fi
  1219. done
  1220. done
  1221. fi
  1222. fi
  1223. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1224. if test -n "$ac_ct_CC"; then
  1225. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1226. echo "${ECHO_T}$ac_ct_CC" >&6
  1227. else
  1228. echo "$as_me:$LINENO: result: no" >&5
  1229. echo "${ECHO_T}no" >&6
  1230. fi
  1231. CC=$ac_ct_CC
  1232. else
  1233. CC="$ac_cv_prog_CC"
  1234. fi
  1235. if test -z "$CC"; then
  1236. if test -n "$ac_tool_prefix"; then
  1237. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1238. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1239. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1240. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1241. if test "${ac_cv_prog_CC+set}" = set; then
  1242. echo $ECHO_N "(cached) $ECHO_C" >&6
  1243. else
  1244. if test -n "$CC"; then
  1245. ac_cv_prog_CC="$CC" # Let the user override the test.
  1246. else
  1247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1248. for as_dir in $PATH
  1249. do
  1250. IFS=$as_save_IFS
  1251. test -z "$as_dir" && as_dir=.
  1252. for ac_exec_ext in '' $ac_executable_extensions; do
  1253. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1254. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1255. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1256. break 2
  1257. fi
  1258. done
  1259. done
  1260. fi
  1261. fi
  1262. CC=$ac_cv_prog_CC
  1263. if test -n "$CC"; then
  1264. echo "$as_me:$LINENO: result: $CC" >&5
  1265. echo "${ECHO_T}$CC" >&6
  1266. else
  1267. echo "$as_me:$LINENO: result: no" >&5
  1268. echo "${ECHO_T}no" >&6
  1269. fi
  1270. fi
  1271. if test -z "$ac_cv_prog_CC"; then
  1272. ac_ct_CC=$CC
  1273. # Extract the first word of "cc", so it can be a program name with args.
  1274. set dummy cc; ac_word=$2
  1275. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1276. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1277. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1278. echo $ECHO_N "(cached) $ECHO_C" >&6
  1279. else
  1280. if test -n "$ac_ct_CC"; then
  1281. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1282. else
  1283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1284. for as_dir in $PATH
  1285. do
  1286. IFS=$as_save_IFS
  1287. test -z "$as_dir" && as_dir=.
  1288. for ac_exec_ext in '' $ac_executable_extensions; do
  1289. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1290. ac_cv_prog_ac_ct_CC="cc"
  1291. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1292. break 2
  1293. fi
  1294. done
  1295. done
  1296. fi
  1297. fi
  1298. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1299. if test -n "$ac_ct_CC"; then
  1300. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1301. echo "${ECHO_T}$ac_ct_CC" >&6
  1302. else
  1303. echo "$as_me:$LINENO: result: no" >&5
  1304. echo "${ECHO_T}no" >&6
  1305. fi
  1306. CC=$ac_ct_CC
  1307. else
  1308. CC="$ac_cv_prog_CC"
  1309. fi
  1310. fi
  1311. if test -z "$CC"; then
  1312. # Extract the first word of "cc", so it can be a program name with args.
  1313. set dummy cc; ac_word=$2
  1314. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1315. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1316. if test "${ac_cv_prog_CC+set}" = set; then
  1317. echo $ECHO_N "(cached) $ECHO_C" >&6
  1318. else
  1319. if test -n "$CC"; then
  1320. ac_cv_prog_CC="$CC" # Let the user override the test.
  1321. else
  1322. ac_prog_rejected=no
  1323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1324. for as_dir in $PATH
  1325. do
  1326. IFS=$as_save_IFS
  1327. test -z "$as_dir" && as_dir=.
  1328. for ac_exec_ext in '' $ac_executable_extensions; do
  1329. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1330. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1331. ac_prog_rejected=yes
  1332. continue
  1333. fi
  1334. ac_cv_prog_CC="cc"
  1335. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1336. break 2
  1337. fi
  1338. done
  1339. done
  1340. if test $ac_prog_rejected = yes; then
  1341. # We found a bogon in the path, so make sure we never use it.
  1342. set dummy $ac_cv_prog_CC
  1343. shift
  1344. if test $# != 0; then
  1345. # We chose a different compiler from the bogus one.
  1346. # However, it has the same basename, so the bogon will be chosen
  1347. # first if we set CC to just the basename; use the full file name.
  1348. shift
  1349. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1350. fi
  1351. fi
  1352. fi
  1353. fi
  1354. CC=$ac_cv_prog_CC
  1355. if test -n "$CC"; then
  1356. echo "$as_me:$LINENO: result: $CC" >&5
  1357. echo "${ECHO_T}$CC" >&6
  1358. else
  1359. echo "$as_me:$LINENO: result: no" >&5
  1360. echo "${ECHO_T}no" >&6
  1361. fi
  1362. fi
  1363. if test -z "$CC"; then
  1364. if test -n "$ac_tool_prefix"; then
  1365. for ac_prog in cl
  1366. do
  1367. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1368. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1369. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1370. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1371. if test "${ac_cv_prog_CC+set}" = set; then
  1372. echo $ECHO_N "(cached) $ECHO_C" >&6
  1373. else
  1374. if test -n "$CC"; then
  1375. ac_cv_prog_CC="$CC" # Let the user override the test.
  1376. else
  1377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1378. for as_dir in $PATH
  1379. do
  1380. IFS=$as_save_IFS
  1381. test -z "$as_dir" && as_dir=.
  1382. for ac_exec_ext in '' $ac_executable_extensions; do
  1383. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1384. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1385. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1386. break 2
  1387. fi
  1388. done
  1389. done
  1390. fi
  1391. fi
  1392. CC=$ac_cv_prog_CC
  1393. if test -n "$CC"; then
  1394. echo "$as_me:$LINENO: result: $CC" >&5
  1395. echo "${ECHO_T}$CC" >&6
  1396. else
  1397. echo "$as_me:$LINENO: result: no" >&5
  1398. echo "${ECHO_T}no" >&6
  1399. fi
  1400. test -n "$CC" && break
  1401. done
  1402. fi
  1403. if test -z "$CC"; then
  1404. ac_ct_CC=$CC
  1405. for ac_prog in cl
  1406. do
  1407. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1408. set dummy $ac_prog; ac_word=$2
  1409. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1410. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1411. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1412. echo $ECHO_N "(cached) $ECHO_C" >&6
  1413. else
  1414. if test -n "$ac_ct_CC"; then
  1415. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1416. else
  1417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1418. for as_dir in $PATH
  1419. do
  1420. IFS=$as_save_IFS
  1421. test -z "$as_dir" && as_dir=.
  1422. for ac_exec_ext in '' $ac_executable_extensions; do
  1423. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1424. ac_cv_prog_ac_ct_CC="$ac_prog"
  1425. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1426. break 2
  1427. fi
  1428. done
  1429. done
  1430. fi
  1431. fi
  1432. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1433. if test -n "$ac_ct_CC"; then
  1434. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1435. echo "${ECHO_T}$ac_ct_CC" >&6
  1436. else
  1437. echo "$as_me:$LINENO: result: no" >&5
  1438. echo "${ECHO_T}no" >&6
  1439. fi
  1440. test -n "$ac_ct_CC" && break
  1441. done
  1442. CC=$ac_ct_CC
  1443. fi
  1444. fi
  1445. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1446. See \`config.log' for more details." >&5
  1447. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1448. See \`config.log' for more details." >&2;}
  1449. { (exit 1); exit 1; }; }
  1450. # Provide some information about the compiler.
  1451. echo "$as_me:$LINENO:" \
  1452. "checking for C compiler version" >&5
  1453. ac_compiler=`set X $ac_compile; echo $2`
  1454. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1455. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1456. ac_status=$?
  1457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1458. (exit $ac_status); }
  1459. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1460. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1461. ac_status=$?
  1462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1463. (exit $ac_status); }
  1464. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1465. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1466. ac_status=$?
  1467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1468. (exit $ac_status); }
  1469. cat >conftest.$ac_ext <<_ACEOF
  1470. /* confdefs.h. */
  1471. _ACEOF
  1472. cat confdefs.h >>conftest.$ac_ext
  1473. cat >>conftest.$ac_ext <<_ACEOF
  1474. /* end confdefs.h. */
  1475. int
  1476. main ()
  1477. {
  1478. ;
  1479. return 0;
  1480. }
  1481. _ACEOF
  1482. ac_clean_files_save=$ac_clean_files
  1483. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1484. # Try to create an executable without -o first, disregard a.out.
  1485. # It will help us diagnose broken compilers, and finding out an intuition
  1486. # of exeext.
  1487. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1488. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1489. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1490. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1491. (eval $ac_link_default) 2>&5
  1492. ac_status=$?
  1493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1494. (exit $ac_status); }; then
  1495. # Find the output, starting from the most likely. This scheme is
  1496. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1497. # resort.
  1498. # Be careful to initialize this variable, since it used to be cached.
  1499. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1500. ac_cv_exeext=
  1501. # b.out is created by i960 compilers.
  1502. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1503. do
  1504. test -f "$ac_file" || continue
  1505. case $ac_file in
  1506. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1507. ;;
  1508. conftest.$ac_ext )
  1509. # This is the source file.
  1510. ;;
  1511. [ab].out )
  1512. # We found the default executable, but exeext='' is most
  1513. # certainly right.
  1514. break;;
  1515. *.* )
  1516. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1517. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1518. # but it would be cool to find out if it's true. Does anybody
  1519. # maintain Libtool? --akim.
  1520. export ac_cv_exeext
  1521. break;;
  1522. * )
  1523. break;;
  1524. esac
  1525. done
  1526. else
  1527. echo "$as_me: failed program was:" >&5
  1528. sed 's/^/| /' conftest.$ac_ext >&5
  1529. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1530. See \`config.log' for more details." >&5
  1531. echo "$as_me: error: C compiler cannot create executables
  1532. See \`config.log' for more details." >&2;}
  1533. { (exit 77); exit 77; }; }
  1534. fi
  1535. ac_exeext=$ac_cv_exeext
  1536. echo "$as_me:$LINENO: result: $ac_file" >&5
  1537. echo "${ECHO_T}$ac_file" >&6
  1538. # Check the compiler produces executables we can run. If not, either
  1539. # the compiler is broken, or we cross compile.
  1540. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1541. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1542. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1543. # If not cross compiling, check that we can run a simple program.
  1544. if test "$cross_compiling" != yes; then
  1545. if { ac_try='./$ac_file'
  1546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1547. (eval $ac_try) 2>&5
  1548. ac_status=$?
  1549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1550. (exit $ac_status); }; }; then
  1551. cross_compiling=no
  1552. else
  1553. if test "$cross_compiling" = maybe; then
  1554. cross_compiling=yes
  1555. else
  1556. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1557. If you meant to cross compile, use \`--host'.
  1558. See \`config.log' for more details." >&5
  1559. echo "$as_me: error: cannot run C compiled programs.
  1560. If you meant to cross compile, use \`--host'.
  1561. See \`config.log' for more details." >&2;}
  1562. { (exit 1); exit 1; }; }
  1563. fi
  1564. fi
  1565. fi
  1566. echo "$as_me:$LINENO: result: yes" >&5
  1567. echo "${ECHO_T}yes" >&6
  1568. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1569. ac_clean_files=$ac_clean_files_save
  1570. # Check the compiler produces executables we can run. If not, either
  1571. # the compiler is broken, or we cross compile.
  1572. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1573. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1574. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1575. echo "${ECHO_T}$cross_compiling" >&6
  1576. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1577. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1578. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1579. (eval $ac_link) 2>&5
  1580. ac_status=$?
  1581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1582. (exit $ac_status); }; then
  1583. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1584. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1585. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1586. # `rm'.
  1587. for ac_file in conftest.exe conftest conftest.*; do
  1588. test -f "$ac_file" || continue
  1589. case $ac_file in
  1590. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1591. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1592. export ac_cv_exeext
  1593. break;;
  1594. * ) break;;
  1595. esac
  1596. done
  1597. else
  1598. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1599. See \`config.log' for more details." >&5
  1600. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1601. See \`config.log' for more details." >&2;}
  1602. { (exit 1); exit 1; }; }
  1603. fi
  1604. rm -f conftest$ac_cv_exeext
  1605. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1606. echo "${ECHO_T}$ac_cv_exeext" >&6
  1607. rm -f conftest.$ac_ext
  1608. EXEEXT=$ac_cv_exeext
  1609. ac_exeext=$EXEEXT
  1610. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1611. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1612. if test "${ac_cv_objext+set}" = set; then
  1613. echo $ECHO_N "(cached) $ECHO_C" >&6
  1614. else
  1615. cat >conftest.$ac_ext <<_ACEOF
  1616. /* confdefs.h. */
  1617. _ACEOF
  1618. cat confdefs.h >>conftest.$ac_ext
  1619. cat >>conftest.$ac_ext <<_ACEOF
  1620. /* end confdefs.h. */
  1621. int
  1622. main ()
  1623. {
  1624. ;
  1625. return 0;
  1626. }
  1627. _ACEOF
  1628. rm -f conftest.o conftest.obj
  1629. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1630. (eval $ac_compile) 2>&5
  1631. ac_status=$?
  1632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1633. (exit $ac_status); }; then
  1634. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1635. case $ac_file in
  1636. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1637. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1638. break;;
  1639. esac
  1640. done
  1641. else
  1642. echo "$as_me: failed program was:" >&5
  1643. sed 's/^/| /' conftest.$ac_ext >&5
  1644. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1645. See \`config.log' for more details." >&5
  1646. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1647. See \`config.log' for more details." >&2;}
  1648. { (exit 1); exit 1; }; }
  1649. fi
  1650. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1651. fi
  1652. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1653. echo "${ECHO_T}$ac_cv_objext" >&6
  1654. OBJEXT=$ac_cv_objext
  1655. ac_objext=$OBJEXT
  1656. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1657. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1658. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1659. echo $ECHO_N "(cached) $ECHO_C" >&6
  1660. else
  1661. cat >conftest.$ac_ext <<_ACEOF
  1662. /* confdefs.h. */
  1663. _ACEOF
  1664. cat confdefs.h >>conftest.$ac_ext
  1665. cat >>conftest.$ac_ext <<_ACEOF
  1666. /* end confdefs.h. */
  1667. int
  1668. main ()
  1669. {
  1670. #ifndef __GNUC__
  1671. choke me
  1672. #endif
  1673. ;
  1674. return 0;
  1675. }
  1676. _ACEOF
  1677. rm -f conftest.$ac_objext
  1678. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1679. (eval $ac_compile) 2>conftest.er1
  1680. ac_status=$?
  1681. grep -v '^ *+' conftest.er1 >conftest.err
  1682. rm -f conftest.er1
  1683. cat conftest.err >&5
  1684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1685. (exit $ac_status); } &&
  1686. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1688. (eval $ac_try) 2>&5
  1689. ac_status=$?
  1690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1691. (exit $ac_status); }; } &&
  1692. { ac_try='test -s conftest.$ac_objext'
  1693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1694. (eval $ac_try) 2>&5
  1695. ac_status=$?
  1696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1697. (exit $ac_status); }; }; then
  1698. ac_compiler_gnu=yes
  1699. else
  1700. echo "$as_me: failed program was:" >&5
  1701. sed 's/^/| /' conftest.$ac_ext >&5
  1702. ac_compiler_gnu=no
  1703. fi
  1704. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1705. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1706. fi
  1707. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1708. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1709. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1710. ac_test_CFLAGS=${CFLAGS+set}
  1711. ac_save_CFLAGS=$CFLAGS
  1712. CFLAGS="-g"
  1713. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1714. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1715. if test "${ac_cv_prog_cc_g+set}" = set; then
  1716. echo $ECHO_N "(cached) $ECHO_C" >&6
  1717. else
  1718. cat >conftest.$ac_ext <<_ACEOF
  1719. /* confdefs.h. */
  1720. _ACEOF
  1721. cat confdefs.h >>conftest.$ac_ext
  1722. cat >>conftest.$ac_ext <<_ACEOF
  1723. /* end confdefs.h. */
  1724. int
  1725. main ()
  1726. {
  1727. ;
  1728. return 0;
  1729. }
  1730. _ACEOF
  1731. rm -f conftest.$ac_objext
  1732. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1733. (eval $ac_compile) 2>conftest.er1
  1734. ac_status=$?
  1735. grep -v '^ *+' conftest.er1 >conftest.err
  1736. rm -f conftest.er1
  1737. cat conftest.err >&5
  1738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1739. (exit $ac_status); } &&
  1740. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1742. (eval $ac_try) 2>&5
  1743. ac_status=$?
  1744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1745. (exit $ac_status); }; } &&
  1746. { ac_try='test -s conftest.$ac_objext'
  1747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1748. (eval $ac_try) 2>&5
  1749. ac_status=$?
  1750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1751. (exit $ac_status); }; }; then
  1752. ac_cv_prog_cc_g=yes
  1753. else
  1754. echo "$as_me: failed program was:" >&5
  1755. sed 's/^/| /' conftest.$ac_ext >&5
  1756. ac_cv_prog_cc_g=no
  1757. fi
  1758. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1759. fi
  1760. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1761. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1762. if test "$ac_test_CFLAGS" = set; then
  1763. CFLAGS=$ac_save_CFLAGS
  1764. elif test $ac_cv_prog_cc_g = yes; then
  1765. if test "$GCC" = yes; then
  1766. CFLAGS="-g -O2"
  1767. else
  1768. CFLAGS="-g"
  1769. fi
  1770. else
  1771. if test "$GCC" = yes; then
  1772. CFLAGS="-O2"
  1773. else
  1774. CFLAGS=
  1775. fi
  1776. fi
  1777. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1778. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1779. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1780. echo $ECHO_N "(cached) $ECHO_C" >&6
  1781. else
  1782. ac_cv_prog_cc_stdc=no
  1783. ac_save_CC=$CC
  1784. cat >conftest.$ac_ext <<_ACEOF
  1785. /* confdefs.h. */
  1786. _ACEOF
  1787. cat confdefs.h >>conftest.$ac_ext
  1788. cat >>conftest.$ac_ext <<_ACEOF
  1789. /* end confdefs.h. */
  1790. #include <stdarg.h>
  1791. #include <stdio.h>
  1792. #include <sys/types.h>
  1793. #include <sys/stat.h>
  1794. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1795. struct buf { int x; };
  1796. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1797. static char *e (p, i)
  1798. char **p;
  1799. int i;
  1800. {
  1801. return p[i];
  1802. }
  1803. static char *f (char * (*g) (char **, int), char **p, ...)
  1804. {
  1805. char *s;
  1806. va_list v;
  1807. va_start (v,p);
  1808. s = g (p, va_arg (v,int));
  1809. va_end (v);
  1810. return s;
  1811. }
  1812. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1813. function prototypes and stuff, but not '\xHH' hex character constants.
  1814. These don't provoke an error unfortunately, instead are silently treated
  1815. as 'x'. The following induces an error, until -std1 is added to get
  1816. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1817. array size at least. It's necessary to write '\x00'==0 to get something
  1818. that's true only with -std1. */
  1819. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1820. int test (int i, double x);
  1821. struct s1 {int (*f) (int a);};
  1822. struct s2 {int (*f) (double a);};
  1823. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1824. int argc;
  1825. char **argv;
  1826. int
  1827. main ()
  1828. {
  1829. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1830. ;
  1831. return 0;
  1832. }
  1833. _ACEOF
  1834. # Don't try gcc -ansi; that turns off useful extensions and
  1835. # breaks some systems' header files.
  1836. # AIX -qlanglvl=ansi
  1837. # Ultrix and OSF/1 -std1
  1838. # HP-UX 10.20 and later -Ae
  1839. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1840. # SVR4 -Xc -D__EXTENSIONS__
  1841. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1842. do
  1843. CC="$ac_save_CC $ac_arg"
  1844. rm -f conftest.$ac_objext
  1845. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1846. (eval $ac_compile) 2>conftest.er1
  1847. ac_status=$?
  1848. grep -v '^ *+' conftest.er1 >conftest.err
  1849. rm -f conftest.er1
  1850. cat conftest.err >&5
  1851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1852. (exit $ac_status); } &&
  1853. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1855. (eval $ac_try) 2>&5
  1856. ac_status=$?
  1857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1858. (exit $ac_status); }; } &&
  1859. { ac_try='test -s conftest.$ac_objext'
  1860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1861. (eval $ac_try) 2>&5
  1862. ac_status=$?
  1863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1864. (exit $ac_status); }; }; then
  1865. ac_cv_prog_cc_stdc=$ac_arg
  1866. break
  1867. else
  1868. echo "$as_me: failed program was:" >&5
  1869. sed 's/^/| /' conftest.$ac_ext >&5
  1870. fi
  1871. rm -f conftest.err conftest.$ac_objext
  1872. done
  1873. rm -f conftest.$ac_ext conftest.$ac_objext
  1874. CC=$ac_save_CC
  1875. fi
  1876. case "x$ac_cv_prog_cc_stdc" in
  1877. x|xno)
  1878. echo "$as_me:$LINENO: result: none needed" >&5
  1879. echo "${ECHO_T}none needed" >&6 ;;
  1880. *)
  1881. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1882. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1883. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1884. esac
  1885. # Some people use a C++ compiler to compile C. Since we use `exit',
  1886. # in C++ we need to declare it. In case someone uses the same compiler
  1887. # for both compiling C and C++ we need to have the C++ compiler decide
  1888. # the declaration of exit, since it's the most demanding environment.
  1889. cat >conftest.$ac_ext <<_ACEOF
  1890. #ifndef __cplusplus
  1891. choke me
  1892. #endif
  1893. _ACEOF
  1894. rm -f conftest.$ac_objext
  1895. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1896. (eval $ac_compile) 2>conftest.er1
  1897. ac_status=$?
  1898. grep -v '^ *+' conftest.er1 >conftest.err
  1899. rm -f conftest.er1
  1900. cat conftest.err >&5
  1901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1902. (exit $ac_status); } &&
  1903. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1904. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1905. (eval $ac_try) 2>&5
  1906. ac_status=$?
  1907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1908. (exit $ac_status); }; } &&
  1909. { ac_try='test -s conftest.$ac_objext'
  1910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1911. (eval $ac_try) 2>&5
  1912. ac_status=$?
  1913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1914. (exit $ac_status); }; }; then
  1915. for ac_declaration in \
  1916. '' \
  1917. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1918. 'extern "C" void std::exit (int); using std::exit;' \
  1919. 'extern "C" void exit (int) throw ();' \
  1920. 'extern "C" void exit (int);' \
  1921. 'void exit (int);'
  1922. do
  1923. cat >conftest.$ac_ext <<_ACEOF
  1924. /* confdefs.h. */
  1925. _ACEOF
  1926. cat confdefs.h >>conftest.$ac_ext
  1927. cat >>conftest.$ac_ext <<_ACEOF
  1928. /* end confdefs.h. */
  1929. $ac_declaration
  1930. #include <stdlib.h>
  1931. int
  1932. main ()
  1933. {
  1934. exit (42);
  1935. ;
  1936. return 0;
  1937. }
  1938. _ACEOF
  1939. rm -f conftest.$ac_objext
  1940. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1941. (eval $ac_compile) 2>conftest.er1
  1942. ac_status=$?
  1943. grep -v '^ *+' conftest.er1 >conftest.err
  1944. rm -f conftest.er1
  1945. cat conftest.err >&5
  1946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1947. (exit $ac_status); } &&
  1948. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1950. (eval $ac_try) 2>&5
  1951. ac_status=$?
  1952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1953. (exit $ac_status); }; } &&
  1954. { ac_try='test -s conftest.$ac_objext'
  1955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1956. (eval $ac_try) 2>&5
  1957. ac_status=$?
  1958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1959. (exit $ac_status); }; }; then
  1960. :
  1961. else
  1962. echo "$as_me: failed program was:" >&5
  1963. sed 's/^/| /' conftest.$ac_ext >&5
  1964. continue
  1965. fi
  1966. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1967. cat >conftest.$ac_ext <<_ACEOF
  1968. /* confdefs.h. */
  1969. _ACEOF
  1970. cat confdefs.h >>conftest.$ac_ext
  1971. cat >>conftest.$ac_ext <<_ACEOF
  1972. /* end confdefs.h. */
  1973. $ac_declaration
  1974. int
  1975. main ()
  1976. {
  1977. exit (42);
  1978. ;
  1979. return 0;
  1980. }
  1981. _ACEOF
  1982. rm -f conftest.$ac_objext
  1983. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1984. (eval $ac_compile) 2>conftest.er1
  1985. ac_status=$?
  1986. grep -v '^ *+' conftest.er1 >conftest.err
  1987. rm -f conftest.er1
  1988. cat conftest.err >&5
  1989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1990. (exit $ac_status); } &&
  1991. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1992. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1993. (eval $ac_try) 2>&5
  1994. ac_status=$?
  1995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1996. (exit $ac_status); }; } &&
  1997. { ac_try='test -s conftest.$ac_objext'
  1998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1999. (eval $ac_try) 2>&5
  2000. ac_status=$?
  2001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2002. (exit $ac_status); }; }; then
  2003. break
  2004. else
  2005. echo "$as_me: failed program was:" >&5
  2006. sed 's/^/| /' conftest.$ac_ext >&5
  2007. fi
  2008. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2009. done
  2010. rm -f conftest*
  2011. if test -n "$ac_declaration"; then
  2012. echo '#ifdef __cplusplus' >>confdefs.h
  2013. echo $ac_declaration >>confdefs.h
  2014. echo '#endif' >>confdefs.h
  2015. fi
  2016. else
  2017. echo "$as_me: failed program was:" >&5
  2018. sed 's/^/| /' conftest.$ac_ext >&5
  2019. fi
  2020. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2021. ac_ext=c
  2022. ac_cpp='$CPP $CPPFLAGS'
  2023. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2024. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2025. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2026. if test "${cross_compiling-x}" = "x"
  2027. then
  2028. cat << 'EOF' >&2
  2029. configure: error:
  2030. This system does not appear to have a working C compiler.
  2031. A working C compiler is required to compile Eggdrop.
  2032. EOF
  2033. exit 1
  2034. fi
  2035. # Crazy machines
  2036. ac_ext=c
  2037. ac_cpp='$CPP $CPPFLAGS'
  2038. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2039. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2040. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2041. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2042. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2043. # On Suns, sometimes $CPP names a directory.
  2044. if test -n "$CPP" && test -d "$CPP"; then
  2045. CPP=
  2046. fi
  2047. if test -z "$CPP"; then
  2048. if test "${ac_cv_prog_CPP+set}" = set; then
  2049. echo $ECHO_N "(cached) $ECHO_C" >&6
  2050. else
  2051. # Double quotes because CPP needs to be expanded
  2052. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2053. do
  2054. ac_preproc_ok=false
  2055. for ac_c_preproc_warn_flag in '' yes
  2056. do
  2057. # Use a header file that comes with gcc, so configuring glibc
  2058. # with a fresh cross-compiler works.
  2059. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2060. # <limits.h> exists even on freestanding compilers.
  2061. # On the NeXT, cc -E runs the code through the compiler's parser,
  2062. # not just through cpp. "Syntax error" is here to catch this case.
  2063. cat >conftest.$ac_ext <<_ACEOF
  2064. /* confdefs.h. */
  2065. _ACEOF
  2066. cat confdefs.h >>conftest.$ac_ext
  2067. cat >>conftest.$ac_ext <<_ACEOF
  2068. /* end confdefs.h. */
  2069. #ifdef __STDC__
  2070. # include <limits.h>
  2071. #else
  2072. # include <assert.h>
  2073. #endif
  2074. Syntax error
  2075. _ACEOF
  2076. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2077. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2078. ac_status=$?
  2079. grep -v '^ *+' conftest.er1 >conftest.err
  2080. rm -f conftest.er1
  2081. cat conftest.err >&5
  2082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2083. (exit $ac_status); } >/dev/null; then
  2084. if test -s conftest.err; then
  2085. ac_cpp_err=$ac_c_preproc_warn_flag
  2086. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2087. else
  2088. ac_cpp_err=
  2089. fi
  2090. else
  2091. ac_cpp_err=yes
  2092. fi
  2093. if test -z "$ac_cpp_err"; then
  2094. :
  2095. else
  2096. echo "$as_me: failed program was:" >&5
  2097. sed 's/^/| /' conftest.$ac_ext >&5
  2098. # Broken: fails on valid input.
  2099. continue
  2100. fi
  2101. rm -f conftest.err conftest.$ac_ext
  2102. # OK, works on sane cases. Now check whether non-existent headers
  2103. # can be detected and how.
  2104. cat >conftest.$ac_ext <<_ACEOF
  2105. /* confdefs.h. */
  2106. _ACEOF
  2107. cat confdefs.h >>conftest.$ac_ext
  2108. cat >>conftest.$ac_ext <<_ACEOF
  2109. /* end confdefs.h. */
  2110. #include <ac_nonexistent.h>
  2111. _ACEOF
  2112. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2113. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2114. ac_status=$?
  2115. grep -v '^ *+' conftest.er1 >conftest.err
  2116. rm -f conftest.er1
  2117. cat conftest.err >&5
  2118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2119. (exit $ac_status); } >/dev/null; then
  2120. if test -s conftest.err; then
  2121. ac_cpp_err=$ac_c_preproc_warn_flag
  2122. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2123. else
  2124. ac_cpp_err=
  2125. fi
  2126. else
  2127. ac_cpp_err=yes
  2128. fi
  2129. if test -z "$ac_cpp_err"; then
  2130. # Broken: success on invalid input.
  2131. continue
  2132. else
  2133. echo "$as_me: failed program was:" >&5
  2134. sed 's/^/| /' conftest.$ac_ext >&5
  2135. # Passes both tests.
  2136. ac_preproc_ok=:
  2137. break
  2138. fi
  2139. rm -f conftest.err conftest.$ac_ext
  2140. done
  2141. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2142. rm -f conftest.err conftest.$ac_ext
  2143. if $ac_preproc_ok; then
  2144. break
  2145. fi
  2146. done
  2147. ac_cv_prog_CPP=$CPP
  2148. fi
  2149. CPP=$ac_cv_prog_CPP
  2150. else
  2151. ac_cv_prog_CPP=$CPP
  2152. fi
  2153. echo "$as_me:$LINENO: result: $CPP" >&5
  2154. echo "${ECHO_T}$CPP" >&6
  2155. ac_preproc_ok=false
  2156. for ac_c_preproc_warn_flag in '' yes
  2157. do
  2158. # Use a header file that comes with gcc, so configuring glibc
  2159. # with a fresh cross-compiler works.
  2160. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2161. # <limits.h> exists even on freestanding compilers.
  2162. # On the NeXT, cc -E runs the code through the compiler's parser,
  2163. # not just through cpp. "Syntax error" is here to catch this case.
  2164. cat >conftest.$ac_ext <<_ACEOF
  2165. /* confdefs.h. */
  2166. _ACEOF
  2167. cat confdefs.h >>conftest.$ac_ext
  2168. cat >>conftest.$ac_ext <<_ACEOF
  2169. /* end confdefs.h. */
  2170. #ifdef __STDC__
  2171. # include <limits.h>
  2172. #else
  2173. # include <assert.h>
  2174. #endif
  2175. Syntax error
  2176. _ACEOF
  2177. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2178. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2179. ac_status=$?
  2180. grep -v '^ *+' conftest.er1 >conftest.err
  2181. rm -f conftest.er1
  2182. cat conftest.err >&5
  2183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2184. (exit $ac_status); } >/dev/null; then
  2185. if test -s conftest.err; then
  2186. ac_cpp_err=$ac_c_preproc_warn_flag
  2187. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2188. else
  2189. ac_cpp_err=
  2190. fi
  2191. else
  2192. ac_cpp_err=yes
  2193. fi
  2194. if test -z "$ac_cpp_err"; then
  2195. :
  2196. else
  2197. echo "$as_me: failed program was:" >&5
  2198. sed 's/^/| /' conftest.$ac_ext >&5
  2199. # Broken: fails on valid input.
  2200. continue
  2201. fi
  2202. rm -f conftest.err conftest.$ac_ext
  2203. # OK, works on sane cases. Now check whether non-existent headers
  2204. # can be detected and how.
  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 <ac_nonexistent.h>
  2212. _ACEOF
  2213. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2214. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2215. ac_status=$?
  2216. grep -v '^ *+' conftest.er1 >conftest.err
  2217. rm -f conftest.er1
  2218. cat conftest.err >&5
  2219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2220. (exit $ac_status); } >/dev/null; then
  2221. if test -s conftest.err; then
  2222. ac_cpp_err=$ac_c_preproc_warn_flag
  2223. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2224. else
  2225. ac_cpp_err=
  2226. fi
  2227. else
  2228. ac_cpp_err=yes
  2229. fi
  2230. if test -z "$ac_cpp_err"; then
  2231. # Broken: success on invalid input.
  2232. continue
  2233. else
  2234. echo "$as_me: failed program was:" >&5
  2235. sed 's/^/| /' conftest.$ac_ext >&5
  2236. # Passes both tests.
  2237. ac_preproc_ok=:
  2238. break
  2239. fi
  2240. rm -f conftest.err conftest.$ac_ext
  2241. done
  2242. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2243. rm -f conftest.err conftest.$ac_ext
  2244. if $ac_preproc_ok; then
  2245. :
  2246. else
  2247. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2248. See \`config.log' for more details." >&5
  2249. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2250. See \`config.log' for more details." >&2;}
  2251. { (exit 1); exit 1; }; }
  2252. fi
  2253. ac_ext=c
  2254. ac_cpp='$CPP $CPPFLAGS'
  2255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2258. echo "$as_me:$LINENO: checking for egrep" >&5
  2259. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2260. if test "${ac_cv_prog_egrep+set}" = set; then
  2261. echo $ECHO_N "(cached) $ECHO_C" >&6
  2262. else
  2263. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2264. then ac_cv_prog_egrep='grep -E'
  2265. else ac_cv_prog_egrep='egrep'
  2266. fi
  2267. fi
  2268. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2269. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2270. EGREP=$ac_cv_prog_egrep
  2271. echo "$as_me:$LINENO: checking for AIX" >&5
  2272. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2273. cat >conftest.$ac_ext <<_ACEOF
  2274. /* confdefs.h. */
  2275. _ACEOF
  2276. cat confdefs.h >>conftest.$ac_ext
  2277. cat >>conftest.$ac_ext <<_ACEOF
  2278. /* end confdefs.h. */
  2279. #ifdef _AIX
  2280. yes
  2281. #endif
  2282. _ACEOF
  2283. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2284. $EGREP "yes" >/dev/null 2>&1; then
  2285. echo "$as_me:$LINENO: result: yes" >&5
  2286. echo "${ECHO_T}yes" >&6
  2287. cat >>confdefs.h <<\_ACEOF
  2288. #define _ALL_SOURCE 1
  2289. _ACEOF
  2290. else
  2291. echo "$as_me:$LINENO: result: no" >&5
  2292. echo "${ECHO_T}no" >&6
  2293. fi
  2294. rm -f conftest*
  2295. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  2296. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  2297. if test "${ac_cv_search_strerror+set}" = set; then
  2298. echo $ECHO_N "(cached) $ECHO_C" >&6
  2299. else
  2300. ac_func_search_save_LIBS=$LIBS
  2301. ac_cv_search_strerror=no
  2302. cat >conftest.$ac_ext <<_ACEOF
  2303. /* confdefs.h. */
  2304. _ACEOF
  2305. cat confdefs.h >>conftest.$ac_ext
  2306. cat >>conftest.$ac_ext <<_ACEOF
  2307. /* end confdefs.h. */
  2308. /* Override any gcc2 internal prototype to avoid an error. */
  2309. #ifdef __cplusplus
  2310. extern "C"
  2311. #endif
  2312. /* We use char because int might match the return type of a gcc2
  2313. builtin and then its argument prototype would still apply. */
  2314. char strerror ();
  2315. int
  2316. main ()
  2317. {
  2318. strerror ();
  2319. ;
  2320. return 0;
  2321. }
  2322. _ACEOF
  2323. rm -f conftest.$ac_objext conftest$ac_exeext
  2324. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2325. (eval $ac_link) 2>conftest.er1
  2326. ac_status=$?
  2327. grep -v '^ *+' conftest.er1 >conftest.err
  2328. rm -f conftest.er1
  2329. cat conftest.err >&5
  2330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2331. (exit $ac_status); } &&
  2332. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2334. (eval $ac_try) 2>&5
  2335. ac_status=$?
  2336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2337. (exit $ac_status); }; } &&
  2338. { ac_try='test -s conftest$ac_exeext'
  2339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2340. (eval $ac_try) 2>&5
  2341. ac_status=$?
  2342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2343. (exit $ac_status); }; }; then
  2344. ac_cv_search_strerror="none required"
  2345. else
  2346. echo "$as_me: failed program was:" >&5
  2347. sed 's/^/| /' conftest.$ac_ext >&5
  2348. fi
  2349. rm -f conftest.err conftest.$ac_objext \
  2350. conftest$ac_exeext conftest.$ac_ext
  2351. if test "$ac_cv_search_strerror" = no; then
  2352. for ac_lib in cposix; do
  2353. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2354. cat >conftest.$ac_ext <<_ACEOF
  2355. /* confdefs.h. */
  2356. _ACEOF
  2357. cat confdefs.h >>conftest.$ac_ext
  2358. cat >>conftest.$ac_ext <<_ACEOF
  2359. /* end confdefs.h. */
  2360. /* Override any gcc2 internal prototype to avoid an error. */
  2361. #ifdef __cplusplus
  2362. extern "C"
  2363. #endif
  2364. /* We use char because int might match the return type of a gcc2
  2365. builtin and then its argument prototype would still apply. */
  2366. char strerror ();
  2367. int
  2368. main ()
  2369. {
  2370. strerror ();
  2371. ;
  2372. return 0;
  2373. }
  2374. _ACEOF
  2375. rm -f conftest.$ac_objext conftest$ac_exeext
  2376. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2377. (eval $ac_link) 2>conftest.er1
  2378. ac_status=$?
  2379. grep -v '^ *+' conftest.er1 >conftest.err
  2380. rm -f conftest.er1
  2381. cat conftest.err >&5
  2382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2383. (exit $ac_status); } &&
  2384. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2385. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2386. (eval $ac_try) 2>&5
  2387. ac_status=$?
  2388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2389. (exit $ac_status); }; } &&
  2390. { ac_try='test -s conftest$ac_exeext'
  2391. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2392. (eval $ac_try) 2>&5
  2393. ac_status=$?
  2394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2395. (exit $ac_status); }; }; then
  2396. ac_cv_search_strerror="-l$ac_lib"
  2397. break
  2398. else
  2399. echo "$as_me: failed program was:" >&5
  2400. sed 's/^/| /' conftest.$ac_ext >&5
  2401. fi
  2402. rm -f conftest.err conftest.$ac_objext \
  2403. conftest$ac_exeext conftest.$ac_ext
  2404. done
  2405. fi
  2406. LIBS=$ac_func_search_save_LIBS
  2407. fi
  2408. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  2409. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  2410. if test "$ac_cv_search_strerror" != no; then
  2411. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  2412. fi
  2413. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2414. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2415. if test "${ac_cv_header_stdc+set}" = set; then
  2416. echo $ECHO_N "(cached) $ECHO_C" >&6
  2417. else
  2418. cat >conftest.$ac_ext <<_ACEOF
  2419. /* confdefs.h. */
  2420. _ACEOF
  2421. cat confdefs.h >>conftest.$ac_ext
  2422. cat >>conftest.$ac_ext <<_ACEOF
  2423. /* end confdefs.h. */
  2424. #include <stdlib.h>
  2425. #include <stdarg.h>
  2426. #include <string.h>
  2427. #include <float.h>
  2428. int
  2429. main ()
  2430. {
  2431. ;
  2432. return 0;
  2433. }
  2434. _ACEOF
  2435. rm -f conftest.$ac_objext
  2436. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2437. (eval $ac_compile) 2>conftest.er1
  2438. ac_status=$?
  2439. grep -v '^ *+' conftest.er1 >conftest.err
  2440. rm -f conftest.er1
  2441. cat conftest.err >&5
  2442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2443. (exit $ac_status); } &&
  2444. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2445. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2446. (eval $ac_try) 2>&5
  2447. ac_status=$?
  2448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2449. (exit $ac_status); }; } &&
  2450. { ac_try='test -s conftest.$ac_objext'
  2451. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2452. (eval $ac_try) 2>&5
  2453. ac_status=$?
  2454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2455. (exit $ac_status); }; }; then
  2456. ac_cv_header_stdc=yes
  2457. else
  2458. echo "$as_me: failed program was:" >&5
  2459. sed 's/^/| /' conftest.$ac_ext >&5
  2460. ac_cv_header_stdc=no
  2461. fi
  2462. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2463. if test $ac_cv_header_stdc = yes; then
  2464. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2465. cat >conftest.$ac_ext <<_ACEOF
  2466. /* confdefs.h. */
  2467. _ACEOF
  2468. cat confdefs.h >>conftest.$ac_ext
  2469. cat >>conftest.$ac_ext <<_ACEOF
  2470. /* end confdefs.h. */
  2471. #include <string.h>
  2472. _ACEOF
  2473. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2474. $EGREP "memchr" >/dev/null 2>&1; then
  2475. :
  2476. else
  2477. ac_cv_header_stdc=no
  2478. fi
  2479. rm -f conftest*
  2480. fi
  2481. if test $ac_cv_header_stdc = yes; then
  2482. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2483. cat >conftest.$ac_ext <<_ACEOF
  2484. /* confdefs.h. */
  2485. _ACEOF
  2486. cat confdefs.h >>conftest.$ac_ext
  2487. cat >>conftest.$ac_ext <<_ACEOF
  2488. /* end confdefs.h. */
  2489. #include <stdlib.h>
  2490. _ACEOF
  2491. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2492. $EGREP "free" >/dev/null 2>&1; then
  2493. :
  2494. else
  2495. ac_cv_header_stdc=no
  2496. fi
  2497. rm -f conftest*
  2498. fi
  2499. if test $ac_cv_header_stdc = yes; then
  2500. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2501. if test "$cross_compiling" = yes; then
  2502. :
  2503. else
  2504. cat >conftest.$ac_ext <<_ACEOF
  2505. /* confdefs.h. */
  2506. _ACEOF
  2507. cat confdefs.h >>conftest.$ac_ext
  2508. cat >>conftest.$ac_ext <<_ACEOF
  2509. /* end confdefs.h. */
  2510. #include <ctype.h>
  2511. #if ((' ' & 0x0FF) == 0x020)
  2512. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2513. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2514. #else
  2515. # define ISLOWER(c) \
  2516. (('a' <= (c) && (c) <= 'i') \
  2517. || ('j' <= (c) && (c) <= 'r') \
  2518. || ('s' <= (c) && (c) <= 'z'))
  2519. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2520. #endif
  2521. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2522. int
  2523. main ()
  2524. {
  2525. int i;
  2526. for (i = 0; i < 256; i++)
  2527. if (XOR (islower (i), ISLOWER (i))
  2528. || toupper (i) != TOUPPER (i))
  2529. exit(2);
  2530. exit (0);
  2531. }
  2532. _ACEOF
  2533. rm -f conftest$ac_exeext
  2534. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2535. (eval $ac_link) 2>&5
  2536. ac_status=$?
  2537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2538. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2539. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2540. (eval $ac_try) 2>&5
  2541. ac_status=$?
  2542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2543. (exit $ac_status); }; }; then
  2544. :
  2545. else
  2546. echo "$as_me: program exited with status $ac_status" >&5
  2547. echo "$as_me: failed program was:" >&5
  2548. sed 's/^/| /' conftest.$ac_ext >&5
  2549. ( exit $ac_status )
  2550. ac_cv_header_stdc=no
  2551. fi
  2552. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2553. fi
  2554. fi
  2555. fi
  2556. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2557. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2558. if test $ac_cv_header_stdc = yes; then
  2559. cat >>confdefs.h <<\_ACEOF
  2560. #define STDC_HEADERS 1
  2561. _ACEOF
  2562. fi
  2563. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2564. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2565. inttypes.h stdint.h unistd.h
  2566. do
  2567. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2568. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2569. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2570. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2571. echo $ECHO_N "(cached) $ECHO_C" >&6
  2572. else
  2573. cat >conftest.$ac_ext <<_ACEOF
  2574. /* confdefs.h. */
  2575. _ACEOF
  2576. cat confdefs.h >>conftest.$ac_ext
  2577. cat >>conftest.$ac_ext <<_ACEOF
  2578. /* end confdefs.h. */
  2579. $ac_includes_default
  2580. #include <$ac_header>
  2581. _ACEOF
  2582. rm -f conftest.$ac_objext
  2583. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2584. (eval $ac_compile) 2>conftest.er1
  2585. ac_status=$?
  2586. grep -v '^ *+' conftest.er1 >conftest.err
  2587. rm -f conftest.er1
  2588. cat conftest.err >&5
  2589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2590. (exit $ac_status); } &&
  2591. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2592. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2593. (eval $ac_try) 2>&5
  2594. ac_status=$?
  2595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2596. (exit $ac_status); }; } &&
  2597. { ac_try='test -s conftest.$ac_objext'
  2598. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2599. (eval $ac_try) 2>&5
  2600. ac_status=$?
  2601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2602. (exit $ac_status); }; }; then
  2603. eval "$as_ac_Header=yes"
  2604. else
  2605. echo "$as_me: failed program was:" >&5
  2606. sed 's/^/| /' conftest.$ac_ext >&5
  2607. eval "$as_ac_Header=no"
  2608. fi
  2609. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2610. fi
  2611. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2612. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2613. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2614. cat >>confdefs.h <<_ACEOF
  2615. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2616. _ACEOF
  2617. fi
  2618. done
  2619. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2620. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2621. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2622. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2623. echo $ECHO_N "(cached) $ECHO_C" >&6
  2624. fi
  2625. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2626. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2627. else
  2628. # Is the header compilable?
  2629. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2630. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2631. cat >conftest.$ac_ext <<_ACEOF
  2632. /* confdefs.h. */
  2633. _ACEOF
  2634. cat confdefs.h >>conftest.$ac_ext
  2635. cat >>conftest.$ac_ext <<_ACEOF
  2636. /* end confdefs.h. */
  2637. $ac_includes_default
  2638. #include <minix/config.h>
  2639. _ACEOF
  2640. rm -f conftest.$ac_objext
  2641. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2642. (eval $ac_compile) 2>conftest.er1
  2643. ac_status=$?
  2644. grep -v '^ *+' conftest.er1 >conftest.err
  2645. rm -f conftest.er1
  2646. cat conftest.err >&5
  2647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2648. (exit $ac_status); } &&
  2649. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2650. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2651. (eval $ac_try) 2>&5
  2652. ac_status=$?
  2653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2654. (exit $ac_status); }; } &&
  2655. { ac_try='test -s conftest.$ac_objext'
  2656. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2657. (eval $ac_try) 2>&5
  2658. ac_status=$?
  2659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2660. (exit $ac_status); }; }; then
  2661. ac_header_compiler=yes
  2662. else
  2663. echo "$as_me: failed program was:" >&5
  2664. sed 's/^/| /' conftest.$ac_ext >&5
  2665. ac_header_compiler=no
  2666. fi
  2667. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2668. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2669. echo "${ECHO_T}$ac_header_compiler" >&6
  2670. # Is the header present?
  2671. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2672. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2673. cat >conftest.$ac_ext <<_ACEOF
  2674. /* confdefs.h. */
  2675. _ACEOF
  2676. cat confdefs.h >>conftest.$ac_ext
  2677. cat >>conftest.$ac_ext <<_ACEOF
  2678. /* end confdefs.h. */
  2679. #include <minix/config.h>
  2680. _ACEOF
  2681. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2682. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2683. ac_status=$?
  2684. grep -v '^ *+' conftest.er1 >conftest.err
  2685. rm -f conftest.er1
  2686. cat conftest.err >&5
  2687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2688. (exit $ac_status); } >/dev/null; then
  2689. if test -s conftest.err; then
  2690. ac_cpp_err=$ac_c_preproc_warn_flag
  2691. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2692. else
  2693. ac_cpp_err=
  2694. fi
  2695. else
  2696. ac_cpp_err=yes
  2697. fi
  2698. if test -z "$ac_cpp_err"; then
  2699. ac_header_preproc=yes
  2700. else
  2701. echo "$as_me: failed program was:" >&5
  2702. sed 's/^/| /' conftest.$ac_ext >&5
  2703. ac_header_preproc=no
  2704. fi
  2705. rm -f conftest.err conftest.$ac_ext
  2706. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2707. echo "${ECHO_T}$ac_header_preproc" >&6
  2708. # So? What about this header?
  2709. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2710. yes:no: )
  2711. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2712. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2713. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2714. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2715. ac_header_preproc=yes
  2716. ;;
  2717. no:yes:* )
  2718. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2719. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2720. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2721. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2722. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2723. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2724. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2725. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2726. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2727. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2728. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2729. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2730. (
  2731. cat <<\_ASBOX
  2732. ## ------------------------------------------ ##
  2733. ## Report this to the AC_PACKAGE_NAME lists. ##
  2734. ## ------------------------------------------ ##
  2735. _ASBOX
  2736. ) |
  2737. sed "s/^/$as_me: WARNING: /" >&2
  2738. ;;
  2739. esac
  2740. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2741. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2742. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2743. echo $ECHO_N "(cached) $ECHO_C" >&6
  2744. else
  2745. ac_cv_header_minix_config_h=$ac_header_preproc
  2746. fi
  2747. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2748. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2749. fi
  2750. if test $ac_cv_header_minix_config_h = yes; then
  2751. MINIX=yes
  2752. else
  2753. MINIX=
  2754. fi
  2755. if test "$MINIX" = yes; then
  2756. cat >>confdefs.h <<\_ACEOF
  2757. #define _POSIX_SOURCE 1
  2758. _ACEOF
  2759. cat >>confdefs.h <<\_ACEOF
  2760. #define _POSIX_1_SOURCE 2
  2761. _ACEOF
  2762. cat >>confdefs.h <<\_ACEOF
  2763. #define _MINIX 1
  2764. _ACEOF
  2765. fi
  2766. #checkpoint
  2767. cat >confcache <<\_ACEOF
  2768. # This file is a shell script that caches the results of configure
  2769. # tests run on this system so they can be shared between configure
  2770. # scripts and configure runs, see configure's option --config-cache.
  2771. # It is not useful on other systems. If it contains results you don't
  2772. # want to keep, you may remove or edit it.
  2773. #
  2774. # config.status only pays attention to the cache file if you give it
  2775. # the --recheck option to rerun configure.
  2776. #
  2777. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2778. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2779. # following values.
  2780. _ACEOF
  2781. # The following way of writing the cache mishandles newlines in values,
  2782. # but we know of no workaround that is simple, portable, and efficient.
  2783. # So, don't put newlines in cache variables' values.
  2784. # Ultrix sh set writes to stderr and can't be redirected directly,
  2785. # and sets the high bit in the cache file unless we assign to the vars.
  2786. {
  2787. (set) 2>&1 |
  2788. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2789. *ac_space=\ *)
  2790. # `set' does not quote correctly, so add quotes (double-quote
  2791. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2792. sed -n \
  2793. "s/'/'\\\\''/g;
  2794. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2795. ;;
  2796. *)
  2797. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2798. sed -n \
  2799. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2800. ;;
  2801. esac;
  2802. } |
  2803. sed '
  2804. t clear
  2805. : clear
  2806. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2807. t end
  2808. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2809. : end' >>confcache
  2810. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2811. if test -w $cache_file; then
  2812. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  2813. cat confcache >$cache_file
  2814. else
  2815. echo "not updating unwritable cache $cache_file"
  2816. fi
  2817. fi
  2818. rm -f confcache
  2819. # Speedup compile
  2820. if test -z "$no_pipe"
  2821. then
  2822. if test -n "$GCC"
  2823. then
  2824. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2825. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2826. if test "${egg_cv_var_ccpipe+set}" = set; then
  2827. echo $ECHO_N "(cached) $ECHO_C" >&6
  2828. else
  2829. ac_old_CC="$CC"
  2830. CC="$CC -pipe"
  2831. cat >conftest.$ac_ext <<_ACEOF
  2832. /* confdefs.h. */
  2833. _ACEOF
  2834. cat confdefs.h >>conftest.$ac_ext
  2835. cat >>conftest.$ac_ext <<_ACEOF
  2836. /* end confdefs.h. */
  2837. int
  2838. main ()
  2839. {
  2840. ;
  2841. return 0;
  2842. }
  2843. _ACEOF
  2844. rm -f conftest.$ac_objext
  2845. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2846. (eval $ac_compile) 2>conftest.er1
  2847. ac_status=$?
  2848. grep -v '^ *+' conftest.er1 >conftest.err
  2849. rm -f conftest.er1
  2850. cat conftest.err >&5
  2851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2852. (exit $ac_status); } &&
  2853. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2855. (eval $ac_try) 2>&5
  2856. ac_status=$?
  2857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2858. (exit $ac_status); }; } &&
  2859. { ac_try='test -s conftest.$ac_objext'
  2860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2861. (eval $ac_try) 2>&5
  2862. ac_status=$?
  2863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2864. (exit $ac_status); }; }; then
  2865. egg_cv_var_ccpipe="yes"
  2866. else
  2867. echo "$as_me: failed program was:" >&5
  2868. sed 's/^/| /' conftest.$ac_ext >&5
  2869. egg_cv_var_ccpipe="no"
  2870. fi
  2871. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2872. CC="$ac_old_CC"
  2873. fi
  2874. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2875. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2876. if test "$egg_cv_var_ccpipe" = "yes"
  2877. then
  2878. CC="$CC -pipe"
  2879. fi
  2880. fi
  2881. fi
  2882. # Create static binaries
  2883. if test -z "$no_static"
  2884. then
  2885. if test -n "$GCC"
  2886. then
  2887. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2888. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2889. if test "${egg_cv_var_ccstatic+set}" = set; then
  2890. echo $ECHO_N "(cached) $ECHO_C" >&6
  2891. else
  2892. ac_old_CC="$CC"
  2893. CC="$CC -static"
  2894. cat >conftest.$ac_ext <<_ACEOF
  2895. /* confdefs.h. */
  2896. _ACEOF
  2897. cat confdefs.h >>conftest.$ac_ext
  2898. cat >>conftest.$ac_ext <<_ACEOF
  2899. /* end confdefs.h. */
  2900. int
  2901. main ()
  2902. {
  2903. ;
  2904. return 0;
  2905. }
  2906. _ACEOF
  2907. rm -f conftest.$ac_objext
  2908. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2909. (eval $ac_compile) 2>conftest.er1
  2910. ac_status=$?
  2911. grep -v '^ *+' conftest.er1 >conftest.err
  2912. rm -f conftest.er1
  2913. cat conftest.err >&5
  2914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2915. (exit $ac_status); } &&
  2916. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2917. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2918. (eval $ac_try) 2>&5
  2919. ac_status=$?
  2920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2921. (exit $ac_status); }; } &&
  2922. { ac_try='test -s conftest.$ac_objext'
  2923. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2924. (eval $ac_try) 2>&5
  2925. ac_status=$?
  2926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2927. (exit $ac_status); }; }; then
  2928. egg_cv_var_ccstatic="yes"
  2929. else
  2930. echo "$as_me: failed program was:" >&5
  2931. sed 's/^/| /' conftest.$ac_ext >&5
  2932. egg_cv_var_ccstatic="no"
  2933. fi
  2934. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2935. CC="$ac_old_CC"
  2936. fi
  2937. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2938. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2939. if test "$egg_cv_var_ccstatic" = "yes"
  2940. then
  2941. CC="$CC -static"
  2942. else
  2943. cat << 'EOF' >&2
  2944. configure: error:
  2945. Your C compiler does not support -static.
  2946. This compile flag is required for the botpack.
  2947. EOF
  2948. exit 1
  2949. fi
  2950. fi
  2951. fi
  2952. # Checks for programs
  2953. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2954. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2955. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2956. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2957. echo $ECHO_N "(cached) $ECHO_C" >&6
  2958. else
  2959. cat >conftest.make <<\_ACEOF
  2960. all:
  2961. @echo 'ac_maketemp="$(MAKE)"'
  2962. _ACEOF
  2963. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2964. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2965. if test -n "$ac_maketemp"; then
  2966. eval ac_cv_prog_make_${ac_make}_set=yes
  2967. else
  2968. eval ac_cv_prog_make_${ac_make}_set=no
  2969. fi
  2970. rm -f conftest.make
  2971. fi
  2972. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2973. echo "$as_me:$LINENO: result: yes" >&5
  2974. echo "${ECHO_T}yes" >&6
  2975. SET_MAKE=
  2976. else
  2977. echo "$as_me:$LINENO: result: no" >&5
  2978. echo "${ECHO_T}no" >&6
  2979. SET_MAKE="MAKE=${MAKE-make}"
  2980. fi
  2981. cat << 'EOF' > conftest.head
  2982. a
  2983. b
  2984. c
  2985. EOF
  2986. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2987. do
  2988. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2989. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2990. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2991. echo $ECHO_N "(cached) $ECHO_C" >&6
  2992. else
  2993. if test -n "$HEAD_1"
  2994. then
  2995. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2996. else
  2997. if test "`cat conftest.head | $ac_prog`" = "a";
  2998. then
  2999. echo "$as_me:$LINENO: result: yes" >&5
  3000. echo "${ECHO_T}yes" >&6
  3001. ac_cv_prog_HEAD_1=$ac_prog
  3002. else
  3003. echo "$as_me:$LINENO: result: no" >&5
  3004. echo "${ECHO_T}no" >&6
  3005. fi
  3006. fi
  3007. fi
  3008. test -n "$ac_cv_prog_HEAD_1" && break
  3009. done
  3010. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3011. then
  3012. cat << 'EOF' >&2
  3013. configure: error:
  3014. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3015. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  3016. EOF
  3017. exit 1
  3018. fi
  3019. rm -f conftest.head
  3020. HEAD_1=$ac_cv_prog_HEAD_1
  3021. # Extract the first word of "strip", so it can be a program name with args.
  3022. set dummy strip; ac_word=$2
  3023. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3024. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3025. if test "${ac_cv_prog_STRIP+set}" = set; then
  3026. echo $ECHO_N "(cached) $ECHO_C" >&6
  3027. else
  3028. if test -n "$STRIP"; then
  3029. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3030. else
  3031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3032. for as_dir in $PATH
  3033. do
  3034. IFS=$as_save_IFS
  3035. test -z "$as_dir" && as_dir=.
  3036. for ac_exec_ext in '' $ac_executable_extensions; do
  3037. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3038. ac_cv_prog_STRIP="strip"
  3039. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3040. break 2
  3041. fi
  3042. done
  3043. done
  3044. fi
  3045. fi
  3046. STRIP=$ac_cv_prog_STRIP
  3047. if test -n "$STRIP"; then
  3048. echo "$as_me:$LINENO: result: $STRIP" >&5
  3049. echo "${ECHO_T}$STRIP" >&6
  3050. else
  3051. echo "$as_me:$LINENO: result: no" >&5
  3052. echo "${ECHO_T}no" >&6
  3053. fi
  3054. if test "${STRIP-x}" = "x"
  3055. then
  3056. STRIP=touch
  3057. fi
  3058. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3059. for ac_prog in gawk mawk nawk awk
  3060. do
  3061. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3062. set dummy $ac_prog; ac_word=$2
  3063. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3064. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3065. if test "${ac_cv_prog_AWK+set}" = set; then
  3066. echo $ECHO_N "(cached) $ECHO_C" >&6
  3067. else
  3068. if test -n "$AWK"; then
  3069. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3070. else
  3071. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3072. for as_dir in $PATH
  3073. do
  3074. IFS=$as_save_IFS
  3075. test -z "$as_dir" && as_dir=.
  3076. for ac_exec_ext in '' $ac_executable_extensions; do
  3077. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3078. ac_cv_prog_AWK="$ac_prog"
  3079. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3080. break 2
  3081. fi
  3082. done
  3083. done
  3084. fi
  3085. fi
  3086. AWK=$ac_cv_prog_AWK
  3087. if test -n "$AWK"; then
  3088. echo "$as_me:$LINENO: result: $AWK" >&5
  3089. echo "${ECHO_T}$AWK" >&6
  3090. else
  3091. echo "$as_me:$LINENO: result: no" >&5
  3092. echo "${ECHO_T}no" >&6
  3093. fi
  3094. test -n "$AWK" && break
  3095. done
  3096. if test "${AWK-x}" = "x"
  3097. then
  3098. cat << 'EOF' >&2
  3099. configure: error:
  3100. This system seems to lack a working 'awk' command.
  3101. A working 'awk' command is required to compile Eggdrop.
  3102. EOF
  3103. exit 1
  3104. fi
  3105. # basename is needed for Tcl library and header checks
  3106. # Extract the first word of "basename", so it can be a program name with args.
  3107. set dummy basename; ac_word=$2
  3108. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3109. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3110. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3111. echo $ECHO_N "(cached) $ECHO_C" >&6
  3112. else
  3113. if test -n "$BASENAME"; then
  3114. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3115. else
  3116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3117. for as_dir in $PATH
  3118. do
  3119. IFS=$as_save_IFS
  3120. test -z "$as_dir" && as_dir=.
  3121. for ac_exec_ext in '' $ac_executable_extensions; do
  3122. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3123. ac_cv_prog_BASENAME="basename"
  3124. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3125. break 2
  3126. fi
  3127. done
  3128. done
  3129. fi
  3130. fi
  3131. BASENAME=$ac_cv_prog_BASENAME
  3132. if test -n "$BASENAME"; then
  3133. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3134. echo "${ECHO_T}$BASENAME" >&6
  3135. else
  3136. echo "$as_me:$LINENO: result: no" >&5
  3137. echo "${ECHO_T}no" >&6
  3138. fi
  3139. if test "${BASENAME-x}" = "x"
  3140. then
  3141. cat << 'EOF' >&2
  3142. configure: error:
  3143. This system seems to lack a working 'basename' command.
  3144. A working 'basename' command is required to compile Eggdrop.
  3145. EOF
  3146. exit 1
  3147. fi
  3148. # Extract the first word of "uname", so it can be a program name with args.
  3149. set dummy uname; ac_word=$2
  3150. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3151. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3152. if test "${ac_cv_prog_UNAME+set}" = set; then
  3153. echo $ECHO_N "(cached) $ECHO_C" >&6
  3154. else
  3155. if test -n "$UNAME"; then
  3156. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3157. else
  3158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3159. for as_dir in $PATH
  3160. do
  3161. IFS=$as_save_IFS
  3162. test -z "$as_dir" && as_dir=.
  3163. for ac_exec_ext in '' $ac_executable_extensions; do
  3164. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3165. ac_cv_prog_UNAME="uname"
  3166. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3167. break 2
  3168. fi
  3169. done
  3170. done
  3171. fi
  3172. fi
  3173. UNAME=$ac_cv_prog_UNAME
  3174. if test -n "$UNAME"; then
  3175. echo "$as_me:$LINENO: result: $UNAME" >&5
  3176. echo "${ECHO_T}$UNAME" >&6
  3177. else
  3178. echo "$as_me:$LINENO: result: no" >&5
  3179. echo "${ECHO_T}no" >&6
  3180. fi
  3181. # Test the os and set the module linking settings
  3182. LINUX=no
  3183. IRIX=no
  3184. SUNOS=no
  3185. HPUX=no
  3186. EGG_CYGWIN=no
  3187. NEED_DL=1
  3188. echo "$as_me:$LINENO: checking system type" >&5
  3189. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3190. if test "${egg_cv_var_system_type+set}" = set; then
  3191. echo $ECHO_N "(cached) $ECHO_C" >&6
  3192. else
  3193. egg_cv_var_system_type=`$UNAME -s`
  3194. fi
  3195. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3196. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3197. echo "$as_me:$LINENO: checking system release" >&5
  3198. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3199. if test "${egg_cv_var_system_release+set}" = set; then
  3200. echo $ECHO_N "(cached) $ECHO_C" >&6
  3201. else
  3202. egg_cv_var_system_release=`$UNAME -r`
  3203. fi
  3204. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3205. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3206. case "$egg_cv_var_system_type" in
  3207. BSD/OS)
  3208. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3209. 2)
  3210. NEED_DL=0
  3211. ;;
  3212. *)
  3213. CFLAGS="$CFLAGS -Wall"
  3214. ;;
  3215. esac
  3216. ;;
  3217. CYGWI*)
  3218. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3219. 1.*)
  3220. NEED_DL=0
  3221. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3222. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3223. WIN32FLAGS=
  3224. cat >conftest.$ac_ext <<_ACEOF
  3225. /* confdefs.h. */
  3226. _ACEOF
  3227. cat confdefs.h >>conftest.$ac_ext
  3228. cat >>conftest.$ac_ext <<_ACEOF
  3229. /* end confdefs.h. */
  3230. int
  3231. main ()
  3232. {
  3233. #ifndef WIN32
  3234. # ifndef _WIN32
  3235. # error WIN32 or _WIN32 not defined
  3236. # endif
  3237. #endif
  3238. ;
  3239. return 0;
  3240. }
  3241. _ACEOF
  3242. rm -f conftest.$ac_objext
  3243. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3244. (eval $ac_compile) 2>conftest.er1
  3245. ac_status=$?
  3246. grep -v '^ *+' conftest.er1 >conftest.err
  3247. rm -f conftest.er1
  3248. cat conftest.err >&5
  3249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3250. (exit $ac_status); } &&
  3251. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3252. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3253. (eval $ac_try) 2>&5
  3254. ac_status=$?
  3255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3256. (exit $ac_status); }; } &&
  3257. { ac_try='test -s conftest.$ac_objext'
  3258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3259. (eval $ac_try) 2>&5
  3260. ac_status=$?
  3261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3262. (exit $ac_status); }; }; then
  3263. echo "$as_me:$LINENO: result: present by default" >&5
  3264. echo "${ECHO_T}present by default" >&6
  3265. else
  3266. echo "$as_me: failed program was:" >&5
  3267. sed 's/^/| /' conftest.$ac_ext >&5
  3268. ac_compile_save="$ac_compile"
  3269. save_CC="$CC"
  3270. ac_compile="$ac_compile -mwin32"
  3271. CC="$CC -mwin32"
  3272. cat >conftest.$ac_ext <<_ACEOF
  3273. /* confdefs.h. */
  3274. _ACEOF
  3275. cat confdefs.h >>conftest.$ac_ext
  3276. cat >>conftest.$ac_ext <<_ACEOF
  3277. /* end confdefs.h. */
  3278. int
  3279. main ()
  3280. {
  3281. #ifndef WIN32
  3282. # ifndef _WIN32
  3283. # error WIN32 or _WIN32 not defined
  3284. # endif
  3285. #endif
  3286. ;
  3287. return 0;
  3288. }
  3289. _ACEOF
  3290. rm -f conftest.$ac_objext
  3291. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3292. (eval $ac_compile) 2>conftest.er1
  3293. ac_status=$?
  3294. grep -v '^ *+' conftest.er1 >conftest.err
  3295. rm -f conftest.er1
  3296. cat conftest.err >&5
  3297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3298. (exit $ac_status); } &&
  3299. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3300. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3301. (eval $ac_try) 2>&5
  3302. ac_status=$?
  3303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3304. (exit $ac_status); }; } &&
  3305. { ac_try='test -s conftest.$ac_objext'
  3306. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3307. (eval $ac_try) 2>&5
  3308. ac_status=$?
  3309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3310. (exit $ac_status); }; }; then
  3311. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3312. echo "${ECHO_T}found via -mwin32" >&6
  3313. ac_compile="$ac_compile_save"
  3314. CC="$save_CC"
  3315. WIN32FLAGS="-mwin32"
  3316. else
  3317. echo "$as_me: failed program was:" >&5
  3318. sed 's/^/| /' conftest.$ac_ext >&5
  3319. ac_compile="$ac_compile_save"
  3320. CC="$save_CC"
  3321. echo "$as_me:$LINENO: result: not found" >&5
  3322. echo "${ECHO_T}not found" >&6
  3323. fi
  3324. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3325. fi
  3326. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3327. CC="$CC $WIN32FLAGS"
  3328. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3329. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3330. if test -r /usr/lib/binmode.o
  3331. then
  3332. echo "$as_me:$LINENO: result: yes" >&5
  3333. echo "${ECHO_T}yes" >&6
  3334. LIBS="$LIBS /usr/lib/binmode.o"
  3335. else
  3336. echo "$as_me:$LINENO: result: no" >&5
  3337. echo "${ECHO_T}no" >&6
  3338. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3339. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3340. fi
  3341. ;;
  3342. *)
  3343. NEED_DL=0
  3344. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3345. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3346. ;;
  3347. esac
  3348. EGG_CYGWIN=yes
  3349. cat >>confdefs.h <<\_ACEOF
  3350. #define CYGWIN_HACKS 1
  3351. _ACEOF
  3352. ;;
  3353. HP-UX)
  3354. HPUX=yes
  3355. NEED_DL=0
  3356. cat >>confdefs.h <<\_ACEOF
  3357. #define HPUX_HACKS 1
  3358. _ACEOF
  3359. if test "`echo $egg_cv_var_system_release | cut -d . -f 2`" = "10"
  3360. then
  3361. cat >>confdefs.h <<\_ACEOF
  3362. #define HPUX10_HACKS 1
  3363. _ACEOF
  3364. fi
  3365. ;;
  3366. dell)
  3367. echo "$as_me:$LINENO: result: Dell SVR4" >&5
  3368. echo "${ECHO_T}Dell SVR4" >&6
  3369. NEED_DL=0
  3370. ;;
  3371. IRIX)
  3372. IRIX=yes
  3373. NEED_DL=0
  3374. ;;
  3375. Ultrix)
  3376. NEED_DL=0
  3377. SHELL=/bin/sh5
  3378. ;;
  3379. SINIX*)
  3380. NEED_DL=0
  3381. ;;
  3382. BeOS)
  3383. NEED_DL=0
  3384. ;;
  3385. Linux)
  3386. LINUX=yes
  3387. CFLAGS="$CFLAGS -Wall"
  3388. ;;
  3389. Lynx)
  3390. NEED_DL=0
  3391. ;;
  3392. QNX)
  3393. NEED_DL=0
  3394. ;;
  3395. OSF1)
  3396. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3397. V*)
  3398. # FIXME: we should check this in a separate test
  3399. # Digital OSF uses an ancient version of gawk
  3400. if test "$AWK" = "gawk"
  3401. then
  3402. AWK=awk
  3403. fi
  3404. ;;
  3405. 1.0|1.1|1.2)
  3406. cat >>confdefs.h <<\_ACEOF
  3407. #define OSF1_HACKS 1
  3408. _ACEOF
  3409. ;;
  3410. 1.*)
  3411. cat >>confdefs.h <<\_ACEOF
  3412. #define OSF1_HACKS 1
  3413. _ACEOF
  3414. ;;
  3415. *)
  3416. NEED_DL=0
  3417. ;;
  3418. esac
  3419. cat >>confdefs.h <<\_ACEOF
  3420. #define STOP_UAC 1
  3421. _ACEOF
  3422. cat >>confdefs.h <<\_ACEOF
  3423. #define BROKEN_SNPRINTF 1
  3424. _ACEOF
  3425. ;;
  3426. SunOS)
  3427. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3428. then
  3429. # SunOS 4
  3430. SUNOS=yes
  3431. cat >>confdefs.h <<\_ACEOF
  3432. #define DLOPEN_1 1
  3433. _ACEOF
  3434. fi
  3435. ;;
  3436. *BSD)
  3437. # FreeBSD/OpenBSD/NetBSD
  3438. ;;
  3439. *)
  3440. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3441. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3442. if test -r /mach
  3443. then
  3444. echo "$as_me:$LINENO: result: yes" >&5
  3445. echo "${ECHO_T}yes" >&6
  3446. NEED_DL=0
  3447. cat >>confdefs.h <<\_ACEOF
  3448. #define BORGCUBES 1
  3449. _ACEOF
  3450. else
  3451. echo "$as_me:$LINENO: result: no" >&5
  3452. echo "${ECHO_T}no" >&6
  3453. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3454. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3455. if test -r /cmds
  3456. then
  3457. echo "$as_me:$LINENO: result: yes" >&5
  3458. echo "${ECHO_T}yes" >&6
  3459. NEED_DL=0
  3460. else
  3461. echo "$as_me:$LINENO: result: no" >&5
  3462. echo "${ECHO_T}no" >&6
  3463. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3464. echo "${ECHO_T}Something unknown!" >&6
  3465. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3466. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3467. NEED_DL=0
  3468. fi
  3469. fi
  3470. ;;
  3471. esac
  3472. #checkpoint
  3473. cat >confcache <<\_ACEOF
  3474. # This file is a shell script that caches the results of configure
  3475. # tests run on this system so they can be shared between configure
  3476. # scripts and configure runs, see configure's option --config-cache.
  3477. # It is not useful on other systems. If it contains results you don't
  3478. # want to keep, you may remove or edit it.
  3479. #
  3480. # config.status only pays attention to the cache file if you give it
  3481. # the --recheck option to rerun configure.
  3482. #
  3483. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3484. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3485. # following values.
  3486. _ACEOF
  3487. # The following way of writing the cache mishandles newlines in values,
  3488. # but we know of no workaround that is simple, portable, and efficient.
  3489. # So, don't put newlines in cache variables' values.
  3490. # Ultrix sh set writes to stderr and can't be redirected directly,
  3491. # and sets the high bit in the cache file unless we assign to the vars.
  3492. {
  3493. (set) 2>&1 |
  3494. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3495. *ac_space=\ *)
  3496. # `set' does not quote correctly, so add quotes (double-quote
  3497. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3498. sed -n \
  3499. "s/'/'\\\\''/g;
  3500. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3501. ;;
  3502. *)
  3503. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3504. sed -n \
  3505. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  3506. ;;
  3507. esac;
  3508. } |
  3509. sed '
  3510. t clear
  3511. : clear
  3512. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3513. t end
  3514. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3515. : end' >>confcache
  3516. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  3517. if test -w $cache_file; then
  3518. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  3519. cat confcache >$cache_file
  3520. else
  3521. echo "not updating unwritable cache $cache_file"
  3522. fi
  3523. fi
  3524. rm -f confcache
  3525. # Checks for system libraries
  3526. # FIXME: this needs to be fixed so that it works on IRIX
  3527. if test "$IRIX" = "yes"
  3528. then
  3529. { echo "$as_me:$LINENO: WARNING: Skipping library tests because they CONFUSE Irix." >&5
  3530. echo "$as_me: WARNING: Skipping library tests because they CONFUSE Irix." >&2;}
  3531. else
  3532. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  3533. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  3534. if test "${ac_cv_lib_socket_socket+set}" = set; then
  3535. echo $ECHO_N "(cached) $ECHO_C" >&6
  3536. else
  3537. ac_check_lib_save_LIBS=$LIBS
  3538. LIBS="-lsocket $LIBS"
  3539. cat >conftest.$ac_ext <<_ACEOF
  3540. /* confdefs.h. */
  3541. _ACEOF
  3542. cat confdefs.h >>conftest.$ac_ext
  3543. cat >>conftest.$ac_ext <<_ACEOF
  3544. /* end confdefs.h. */
  3545. /* Override any gcc2 internal prototype to avoid an error. */
  3546. #ifdef __cplusplus
  3547. extern "C"
  3548. #endif
  3549. /* We use char because int might match the return type of a gcc2
  3550. builtin and then its argument prototype would still apply. */
  3551. char socket ();
  3552. int
  3553. main ()
  3554. {
  3555. socket ();
  3556. ;
  3557. return 0;
  3558. }
  3559. _ACEOF
  3560. rm -f conftest.$ac_objext conftest$ac_exeext
  3561. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3562. (eval $ac_link) 2>conftest.er1
  3563. ac_status=$?
  3564. grep -v '^ *+' conftest.er1 >conftest.err
  3565. rm -f conftest.er1
  3566. cat conftest.err >&5
  3567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3568. (exit $ac_status); } &&
  3569. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3570. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3571. (eval $ac_try) 2>&5
  3572. ac_status=$?
  3573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3574. (exit $ac_status); }; } &&
  3575. { ac_try='test -s conftest$ac_exeext'
  3576. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3577. (eval $ac_try) 2>&5
  3578. ac_status=$?
  3579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3580. (exit $ac_status); }; }; then
  3581. ac_cv_lib_socket_socket=yes
  3582. else
  3583. echo "$as_me: failed program was:" >&5
  3584. sed 's/^/| /' conftest.$ac_ext >&5
  3585. ac_cv_lib_socket_socket=no
  3586. fi
  3587. rm -f conftest.err conftest.$ac_objext \
  3588. conftest$ac_exeext conftest.$ac_ext
  3589. LIBS=$ac_check_lib_save_LIBS
  3590. fi
  3591. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  3592. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  3593. if test $ac_cv_lib_socket_socket = yes; then
  3594. cat >>confdefs.h <<_ACEOF
  3595. #define HAVE_LIBSOCKET 1
  3596. _ACEOF
  3597. LIBS="-lsocket $LIBS"
  3598. fi
  3599. echo "$as_me:$LINENO: checking for connect in -lnsl" >&5
  3600. echo $ECHO_N "checking for connect in -lnsl... $ECHO_C" >&6
  3601. if test "${ac_cv_lib_nsl_connect+set}" = set; then
  3602. echo $ECHO_N "(cached) $ECHO_C" >&6
  3603. else
  3604. ac_check_lib_save_LIBS=$LIBS
  3605. LIBS="-lnsl $LIBS"
  3606. cat >conftest.$ac_ext <<_ACEOF
  3607. /* confdefs.h. */
  3608. _ACEOF
  3609. cat confdefs.h >>conftest.$ac_ext
  3610. cat >>conftest.$ac_ext <<_ACEOF
  3611. /* end confdefs.h. */
  3612. /* Override any gcc2 internal prototype to avoid an error. */
  3613. #ifdef __cplusplus
  3614. extern "C"
  3615. #endif
  3616. /* We use char because int might match the return type of a gcc2
  3617. builtin and then its argument prototype would still apply. */
  3618. char connect ();
  3619. int
  3620. main ()
  3621. {
  3622. connect ();
  3623. ;
  3624. return 0;
  3625. }
  3626. _ACEOF
  3627. rm -f conftest.$ac_objext conftest$ac_exeext
  3628. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3629. (eval $ac_link) 2>conftest.er1
  3630. ac_status=$?
  3631. grep -v '^ *+' conftest.er1 >conftest.err
  3632. rm -f conftest.er1
  3633. cat conftest.err >&5
  3634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3635. (exit $ac_status); } &&
  3636. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3637. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3638. (eval $ac_try) 2>&5
  3639. ac_status=$?
  3640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3641. (exit $ac_status); }; } &&
  3642. { ac_try='test -s conftest$ac_exeext'
  3643. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3644. (eval $ac_try) 2>&5
  3645. ac_status=$?
  3646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3647. (exit $ac_status); }; }; then
  3648. ac_cv_lib_nsl_connect=yes
  3649. else
  3650. echo "$as_me: failed program was:" >&5
  3651. sed 's/^/| /' conftest.$ac_ext >&5
  3652. ac_cv_lib_nsl_connect=no
  3653. fi
  3654. rm -f conftest.err conftest.$ac_objext \
  3655. conftest$ac_exeext conftest.$ac_ext
  3656. LIBS=$ac_check_lib_save_LIBS
  3657. fi
  3658. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_connect" >&5
  3659. echo "${ECHO_T}$ac_cv_lib_nsl_connect" >&6
  3660. if test $ac_cv_lib_nsl_connect = yes; then
  3661. cat >>confdefs.h <<_ACEOF
  3662. #define HAVE_LIBNSL 1
  3663. _ACEOF
  3664. LIBS="-lnsl $LIBS"
  3665. fi
  3666. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  3667. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  3668. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  3669. echo $ECHO_N "(cached) $ECHO_C" >&6
  3670. else
  3671. ac_check_lib_save_LIBS=$LIBS
  3672. LIBS="-ldns $LIBS"
  3673. cat >conftest.$ac_ext <<_ACEOF
  3674. /* confdefs.h. */
  3675. _ACEOF
  3676. cat confdefs.h >>conftest.$ac_ext
  3677. cat >>conftest.$ac_ext <<_ACEOF
  3678. /* end confdefs.h. */
  3679. /* Override any gcc2 internal prototype to avoid an error. */
  3680. #ifdef __cplusplus
  3681. extern "C"
  3682. #endif
  3683. /* We use char because int might match the return type of a gcc2
  3684. builtin and then its argument prototype would still apply. */
  3685. char gethostbyname ();
  3686. int
  3687. main ()
  3688. {
  3689. gethostbyname ();
  3690. ;
  3691. return 0;
  3692. }
  3693. _ACEOF
  3694. rm -f conftest.$ac_objext conftest$ac_exeext
  3695. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3696. (eval $ac_link) 2>conftest.er1
  3697. ac_status=$?
  3698. grep -v '^ *+' conftest.er1 >conftest.err
  3699. rm -f conftest.er1
  3700. cat conftest.err >&5
  3701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3702. (exit $ac_status); } &&
  3703. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3704. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3705. (eval $ac_try) 2>&5
  3706. ac_status=$?
  3707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3708. (exit $ac_status); }; } &&
  3709. { ac_try='test -s conftest$ac_exeext'
  3710. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3711. (eval $ac_try) 2>&5
  3712. ac_status=$?
  3713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3714. (exit $ac_status); }; }; then
  3715. ac_cv_lib_dns_gethostbyname=yes
  3716. else
  3717. echo "$as_me: failed program was:" >&5
  3718. sed 's/^/| /' conftest.$ac_ext >&5
  3719. ac_cv_lib_dns_gethostbyname=no
  3720. fi
  3721. rm -f conftest.err conftest.$ac_objext \
  3722. conftest$ac_exeext conftest.$ac_ext
  3723. LIBS=$ac_check_lib_save_LIBS
  3724. fi
  3725. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  3726. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  3727. if test $ac_cv_lib_dns_gethostbyname = yes; then
  3728. cat >>confdefs.h <<_ACEOF
  3729. #define HAVE_LIBDNS 1
  3730. _ACEOF
  3731. LIBS="-ldns $LIBS"
  3732. fi
  3733. echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  3734. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
  3735. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  3736. echo $ECHO_N "(cached) $ECHO_C" >&6
  3737. else
  3738. ac_check_lib_save_LIBS=$LIBS
  3739. LIBS="-lz $LIBS"
  3740. cat >conftest.$ac_ext <<_ACEOF
  3741. /* confdefs.h. */
  3742. _ACEOF
  3743. cat confdefs.h >>conftest.$ac_ext
  3744. cat >>conftest.$ac_ext <<_ACEOF
  3745. /* end confdefs.h. */
  3746. /* Override any gcc2 internal prototype to avoid an error. */
  3747. #ifdef __cplusplus
  3748. extern "C"
  3749. #endif
  3750. /* We use char because int might match the return type of a gcc2
  3751. builtin and then its argument prototype would still apply. */
  3752. char gzopen ();
  3753. int
  3754. main ()
  3755. {
  3756. gzopen ();
  3757. ;
  3758. return 0;
  3759. }
  3760. _ACEOF
  3761. rm -f conftest.$ac_objext conftest$ac_exeext
  3762. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3763. (eval $ac_link) 2>conftest.er1
  3764. ac_status=$?
  3765. grep -v '^ *+' conftest.er1 >conftest.err
  3766. rm -f conftest.er1
  3767. cat conftest.err >&5
  3768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3769. (exit $ac_status); } &&
  3770. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3771. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3772. (eval $ac_try) 2>&5
  3773. ac_status=$?
  3774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3775. (exit $ac_status); }; } &&
  3776. { ac_try='test -s conftest$ac_exeext'
  3777. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3778. (eval $ac_try) 2>&5
  3779. ac_status=$?
  3780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3781. (exit $ac_status); }; }; then
  3782. ac_cv_lib_z_gzopen=yes
  3783. else
  3784. echo "$as_me: failed program was:" >&5
  3785. sed 's/^/| /' conftest.$ac_ext >&5
  3786. ac_cv_lib_z_gzopen=no
  3787. fi
  3788. rm -f conftest.err conftest.$ac_objext \
  3789. conftest$ac_exeext conftest.$ac_ext
  3790. LIBS=$ac_check_lib_save_LIBS
  3791. fi
  3792. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  3793. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
  3794. if test $ac_cv_lib_z_gzopen = yes; then
  3795. ZLIB="-lz"
  3796. fi
  3797. echo "$as_me:$LINENO: checking for SSL_accept in -lssl" >&5
  3798. echo $ECHO_N "checking for SSL_accept in -lssl... $ECHO_C" >&6
  3799. if test "${ac_cv_lib_ssl_SSL_accept+set}" = set; then
  3800. echo $ECHO_N "(cached) $ECHO_C" >&6
  3801. else
  3802. ac_check_lib_save_LIBS=$LIBS
  3803. LIBS="-lssl -lcrypto $LIBS"
  3804. cat >conftest.$ac_ext <<_ACEOF
  3805. /* confdefs.h. */
  3806. _ACEOF
  3807. cat confdefs.h >>conftest.$ac_ext
  3808. cat >>conftest.$ac_ext <<_ACEOF
  3809. /* end confdefs.h. */
  3810. /* Override any gcc2 internal prototype to avoid an error. */
  3811. #ifdef __cplusplus
  3812. extern "C"
  3813. #endif
  3814. /* We use char because int might match the return type of a gcc2
  3815. builtin and then its argument prototype would still apply. */
  3816. char SSL_accept ();
  3817. int
  3818. main ()
  3819. {
  3820. SSL_accept ();
  3821. ;
  3822. return 0;
  3823. }
  3824. _ACEOF
  3825. rm -f conftest.$ac_objext conftest$ac_exeext
  3826. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3827. (eval $ac_link) 2>conftest.er1
  3828. ac_status=$?
  3829. grep -v '^ *+' conftest.er1 >conftest.err
  3830. rm -f conftest.er1
  3831. cat conftest.err >&5
  3832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3833. (exit $ac_status); } &&
  3834. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3835. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3836. (eval $ac_try) 2>&5
  3837. ac_status=$?
  3838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3839. (exit $ac_status); }; } &&
  3840. { ac_try='test -s conftest$ac_exeext'
  3841. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3842. (eval $ac_try) 2>&5
  3843. ac_status=$?
  3844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3845. (exit $ac_status); }; }; then
  3846. ac_cv_lib_ssl_SSL_accept=yes
  3847. else
  3848. echo "$as_me: failed program was:" >&5
  3849. sed 's/^/| /' conftest.$ac_ext >&5
  3850. ac_cv_lib_ssl_SSL_accept=no
  3851. fi
  3852. rm -f conftest.err conftest.$ac_objext \
  3853. conftest$ac_exeext conftest.$ac_ext
  3854. LIBS=$ac_check_lib_save_LIBS
  3855. fi
  3856. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_accept" >&5
  3857. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_accept" >&6
  3858. if test $ac_cv_lib_ssl_SSL_accept = yes; then
  3859. SSL="-lssl -lcrypto"
  3860. else
  3861. SSL=""
  3862. fi
  3863. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  3864. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  3865. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  3866. echo $ECHO_N "(cached) $ECHO_C" >&6
  3867. else
  3868. ac_check_lib_save_LIBS=$LIBS
  3869. LIBS="-ldl $LIBS"
  3870. cat >conftest.$ac_ext <<_ACEOF
  3871. /* confdefs.h. */
  3872. _ACEOF
  3873. cat confdefs.h >>conftest.$ac_ext
  3874. cat >>conftest.$ac_ext <<_ACEOF
  3875. /* end confdefs.h. */
  3876. /* Override any gcc2 internal prototype to avoid an error. */
  3877. #ifdef __cplusplus
  3878. extern "C"
  3879. #endif
  3880. /* We use char because int might match the return type of a gcc2
  3881. builtin and then its argument prototype would still apply. */
  3882. char dlopen ();
  3883. int
  3884. main ()
  3885. {
  3886. dlopen ();
  3887. ;
  3888. return 0;
  3889. }
  3890. _ACEOF
  3891. rm -f conftest.$ac_objext conftest$ac_exeext
  3892. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3893. (eval $ac_link) 2>conftest.er1
  3894. ac_status=$?
  3895. grep -v '^ *+' conftest.er1 >conftest.err
  3896. rm -f conftest.er1
  3897. cat conftest.err >&5
  3898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3899. (exit $ac_status); } &&
  3900. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3901. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3902. (eval $ac_try) 2>&5
  3903. ac_status=$?
  3904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3905. (exit $ac_status); }; } &&
  3906. { ac_try='test -s conftest$ac_exeext'
  3907. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3908. (eval $ac_try) 2>&5
  3909. ac_status=$?
  3910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3911. (exit $ac_status); }; }; then
  3912. ac_cv_lib_dl_dlopen=yes
  3913. else
  3914. echo "$as_me: failed program was:" >&5
  3915. sed 's/^/| /' conftest.$ac_ext >&5
  3916. ac_cv_lib_dl_dlopen=no
  3917. fi
  3918. rm -f conftest.err conftest.$ac_objext \
  3919. conftest$ac_exeext conftest.$ac_ext
  3920. LIBS=$ac_check_lib_save_LIBS
  3921. fi
  3922. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  3923. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  3924. if test $ac_cv_lib_dl_dlopen = yes; then
  3925. cat >>confdefs.h <<_ACEOF
  3926. #define HAVE_LIBDL 1
  3927. _ACEOF
  3928. LIBS="-ldl $LIBS"
  3929. fi
  3930. echo "$as_me:$LINENO: checking for tan in -lm" >&5
  3931. echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6
  3932. if test "${ac_cv_lib_m_tan+set}" = set; then
  3933. echo $ECHO_N "(cached) $ECHO_C" >&6
  3934. else
  3935. ac_check_lib_save_LIBS=$LIBS
  3936. LIBS="-lm $LIBS"
  3937. cat >conftest.$ac_ext <<_ACEOF
  3938. /* confdefs.h. */
  3939. _ACEOF
  3940. cat confdefs.h >>conftest.$ac_ext
  3941. cat >>conftest.$ac_ext <<_ACEOF
  3942. /* end confdefs.h. */
  3943. /* Override any gcc2 internal prototype to avoid an error. */
  3944. #ifdef __cplusplus
  3945. extern "C"
  3946. #endif
  3947. /* We use char because int might match the return type of a gcc2
  3948. builtin and then its argument prototype would still apply. */
  3949. char tan ();
  3950. int
  3951. main ()
  3952. {
  3953. tan ();
  3954. ;
  3955. return 0;
  3956. }
  3957. _ACEOF
  3958. rm -f conftest.$ac_objext conftest$ac_exeext
  3959. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3960. (eval $ac_link) 2>conftest.er1
  3961. ac_status=$?
  3962. grep -v '^ *+' conftest.er1 >conftest.err
  3963. rm -f conftest.er1
  3964. cat conftest.err >&5
  3965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3966. (exit $ac_status); } &&
  3967. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3969. (eval $ac_try) 2>&5
  3970. ac_status=$?
  3971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3972. (exit $ac_status); }; } &&
  3973. { ac_try='test -s conftest$ac_exeext'
  3974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3975. (eval $ac_try) 2>&5
  3976. ac_status=$?
  3977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3978. (exit $ac_status); }; }; then
  3979. ac_cv_lib_m_tan=yes
  3980. else
  3981. echo "$as_me: failed program was:" >&5
  3982. sed 's/^/| /' conftest.$ac_ext >&5
  3983. ac_cv_lib_m_tan=no
  3984. fi
  3985. rm -f conftest.err conftest.$ac_objext \
  3986. conftest$ac_exeext conftest.$ac_ext
  3987. LIBS=$ac_check_lib_save_LIBS
  3988. fi
  3989. echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan" >&5
  3990. echo "${ECHO_T}$ac_cv_lib_m_tan" >&6
  3991. if test $ac_cv_lib_m_tan = yes; then
  3992. EGG_MATH_LIB="-lm"
  3993. fi
  3994. # This is needed for Tcl libraries compiled with thread support
  3995. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
  3996. echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
  3997. if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
  3998. echo $ECHO_N "(cached) $ECHO_C" >&6
  3999. else
  4000. ac_check_lib_save_LIBS=$LIBS
  4001. LIBS="-lpthread $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 pthread_mutex_init ();
  4015. int
  4016. main ()
  4017. {
  4018. pthread_mutex_init ();
  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_pthread_pthread_mutex_init=yes
  4045. else
  4046. echo "$as_me: failed program was:" >&5
  4047. sed 's/^/| /' conftest.$ac_ext >&5
  4048. ac_cv_lib_pthread_pthread_mutex_init=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_pthread_pthread_mutex_init" >&5
  4055. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
  4056. if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
  4057. ac_cv_lib_pthread_pthread_mutex_init=yes
  4058. ac_cv_lib_pthread="-lpthread"
  4059. else
  4060. echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
  4061. echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6
  4062. if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
  4063. echo $ECHO_N "(cached) $ECHO_C" >&6
  4064. else
  4065. ac_check_lib_save_LIBS=$LIBS
  4066. LIBS="-lpthread $LIBS"
  4067. cat >conftest.$ac_ext <<_ACEOF
  4068. /* confdefs.h. */
  4069. _ACEOF
  4070. cat confdefs.h >>conftest.$ac_ext
  4071. cat >>conftest.$ac_ext <<_ACEOF
  4072. /* end confdefs.h. */
  4073. /* Override any gcc2 internal prototype to avoid an error. */
  4074. #ifdef __cplusplus
  4075. extern "C"
  4076. #endif
  4077. /* We use char because int might match the return type of a gcc2
  4078. builtin and then its argument prototype would still apply. */
  4079. char __pthread_mutex_init ();
  4080. int
  4081. main ()
  4082. {
  4083. __pthread_mutex_init ();
  4084. ;
  4085. return 0;
  4086. }
  4087. _ACEOF
  4088. rm -f conftest.$ac_objext conftest$ac_exeext
  4089. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4090. (eval $ac_link) 2>conftest.er1
  4091. ac_status=$?
  4092. grep -v '^ *+' conftest.er1 >conftest.err
  4093. rm -f conftest.er1
  4094. cat conftest.err >&5
  4095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4096. (exit $ac_status); } &&
  4097. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4098. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4099. (eval $ac_try) 2>&5
  4100. ac_status=$?
  4101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4102. (exit $ac_status); }; } &&
  4103. { ac_try='test -s conftest$ac_exeext'
  4104. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4105. (eval $ac_try) 2>&5
  4106. ac_status=$?
  4107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4108. (exit $ac_status); }; }; then
  4109. ac_cv_lib_pthread___pthread_mutex_init=yes
  4110. else
  4111. echo "$as_me: failed program was:" >&5
  4112. sed 's/^/| /' conftest.$ac_ext >&5
  4113. ac_cv_lib_pthread___pthread_mutex_init=no
  4114. fi
  4115. rm -f conftest.err conftest.$ac_objext \
  4116. conftest$ac_exeext conftest.$ac_ext
  4117. LIBS=$ac_check_lib_save_LIBS
  4118. fi
  4119. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
  4120. echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6
  4121. if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
  4122. ac_cv_lib_pthread_pthread_mutex_init=yes
  4123. ac_cv_lib_pthread="-lpthread"
  4124. else
  4125. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
  4126. echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6
  4127. if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
  4128. echo $ECHO_N "(cached) $ECHO_C" >&6
  4129. else
  4130. ac_check_lib_save_LIBS=$LIBS
  4131. LIBS="-lpthreads $LIBS"
  4132. cat >conftest.$ac_ext <<_ACEOF
  4133. /* confdefs.h. */
  4134. _ACEOF
  4135. cat confdefs.h >>conftest.$ac_ext
  4136. cat >>conftest.$ac_ext <<_ACEOF
  4137. /* end confdefs.h. */
  4138. /* Override any gcc2 internal prototype to avoid an error. */
  4139. #ifdef __cplusplus
  4140. extern "C"
  4141. #endif
  4142. /* We use char because int might match the return type of a gcc2
  4143. builtin and then its argument prototype would still apply. */
  4144. char pthread_mutex_init ();
  4145. int
  4146. main ()
  4147. {
  4148. pthread_mutex_init ();
  4149. ;
  4150. return 0;
  4151. }
  4152. _ACEOF
  4153. rm -f conftest.$ac_objext conftest$ac_exeext
  4154. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4155. (eval $ac_link) 2>conftest.er1
  4156. ac_status=$?
  4157. grep -v '^ *+' conftest.er1 >conftest.err
  4158. rm -f conftest.er1
  4159. cat conftest.err >&5
  4160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4161. (exit $ac_status); } &&
  4162. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4163. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4164. (eval $ac_try) 2>&5
  4165. ac_status=$?
  4166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4167. (exit $ac_status); }; } &&
  4168. { ac_try='test -s conftest$ac_exeext'
  4169. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4170. (eval $ac_try) 2>&5
  4171. ac_status=$?
  4172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4173. (exit $ac_status); }; }; then
  4174. ac_cv_lib_pthreads_pthread_mutex_init=yes
  4175. else
  4176. echo "$as_me: failed program was:" >&5
  4177. sed 's/^/| /' conftest.$ac_ext >&5
  4178. ac_cv_lib_pthreads_pthread_mutex_init=no
  4179. fi
  4180. rm -f conftest.err conftest.$ac_objext \
  4181. conftest$ac_exeext conftest.$ac_ext
  4182. LIBS=$ac_check_lib_save_LIBS
  4183. fi
  4184. echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
  4185. echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6
  4186. if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
  4187. ac_cv_lib_pthread_pthread_mutex_init=yes
  4188. ac_cv_lib_pthread="-lpthreads"
  4189. else
  4190. echo "$as_me:$LINENO: checking for pthread_mutex_init" >&5
  4191. echo $ECHO_N "checking for pthread_mutex_init... $ECHO_C" >&6
  4192. if test "${ac_cv_func_pthread_mutex_init+set}" = set; then
  4193. echo $ECHO_N "(cached) $ECHO_C" >&6
  4194. else
  4195. cat >conftest.$ac_ext <<_ACEOF
  4196. /* confdefs.h. */
  4197. _ACEOF
  4198. cat confdefs.h >>conftest.$ac_ext
  4199. cat >>conftest.$ac_ext <<_ACEOF
  4200. /* end confdefs.h. */
  4201. /* Define pthread_mutex_init to an innocuous variant, in case <limits.h> declares pthread_mutex_init.
  4202. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4203. #define pthread_mutex_init innocuous_pthread_mutex_init
  4204. /* System header to define __stub macros and hopefully few prototypes,
  4205. which can conflict with char pthread_mutex_init (); below.
  4206. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4207. <limits.h> exists even on freestanding compilers. */
  4208. #ifdef __STDC__
  4209. # include <limits.h>
  4210. #else
  4211. # include <assert.h>
  4212. #endif
  4213. #undef pthread_mutex_init
  4214. /* Override any gcc2 internal prototype to avoid an error. */
  4215. #ifdef __cplusplus
  4216. extern "C"
  4217. {
  4218. #endif
  4219. /* We use char because int might match the return type of a gcc2
  4220. builtin and then its argument prototype would still apply. */
  4221. char pthread_mutex_init ();
  4222. /* The GNU C library defines this for functions which it implements
  4223. to always fail with ENOSYS. Some functions are actually named
  4224. something starting with __ and the normal name is an alias. */
  4225. #if defined (__stub_pthread_mutex_init) || defined (__stub___pthread_mutex_init)
  4226. choke me
  4227. #else
  4228. char (*f) () = pthread_mutex_init;
  4229. #endif
  4230. #ifdef __cplusplus
  4231. }
  4232. #endif
  4233. int
  4234. main ()
  4235. {
  4236. return f != pthread_mutex_init;
  4237. ;
  4238. return 0;
  4239. }
  4240. _ACEOF
  4241. rm -f conftest.$ac_objext conftest$ac_exeext
  4242. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4243. (eval $ac_link) 2>conftest.er1
  4244. ac_status=$?
  4245. grep -v '^ *+' conftest.er1 >conftest.err
  4246. rm -f conftest.er1
  4247. cat conftest.err >&5
  4248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4249. (exit $ac_status); } &&
  4250. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4251. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4252. (eval $ac_try) 2>&5
  4253. ac_status=$?
  4254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4255. (exit $ac_status); }; } &&
  4256. { ac_try='test -s conftest$ac_exeext'
  4257. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4258. (eval $ac_try) 2>&5
  4259. ac_status=$?
  4260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4261. (exit $ac_status); }; }; then
  4262. ac_cv_func_pthread_mutex_init=yes
  4263. else
  4264. echo "$as_me: failed program was:" >&5
  4265. sed 's/^/| /' conftest.$ac_ext >&5
  4266. ac_cv_func_pthread_mutex_init=no
  4267. fi
  4268. rm -f conftest.err conftest.$ac_objext \
  4269. conftest$ac_exeext conftest.$ac_ext
  4270. fi
  4271. echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_init" >&5
  4272. echo "${ECHO_T}$ac_cv_func_pthread_mutex_init" >&6
  4273. if test $ac_cv_func_pthread_mutex_init = yes; then
  4274. ac_cv_lib_pthread_pthread_mutex_init=yes
  4275. ac_cv_lib_pthread=""
  4276. else
  4277. ac_cv_lib_pthread_pthread_mutex_init=no
  4278. fi
  4279. fi
  4280. fi
  4281. fi
  4282. if test "$SUNOS" = "yes"
  4283. then
  4284. # For suns without yp or something like that
  4285. echo "$as_me:$LINENO: checking for main in -ldl" >&5
  4286. echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
  4287. if test "${ac_cv_lib_dl_main+set}" = set; then
  4288. echo $ECHO_N "(cached) $ECHO_C" >&6
  4289. else
  4290. ac_check_lib_save_LIBS=$LIBS
  4291. LIBS="-ldl $LIBS"
  4292. cat >conftest.$ac_ext <<_ACEOF
  4293. /* confdefs.h. */
  4294. _ACEOF
  4295. cat confdefs.h >>conftest.$ac_ext
  4296. cat >>conftest.$ac_ext <<_ACEOF
  4297. /* end confdefs.h. */
  4298. int
  4299. main ()
  4300. {
  4301. main ();
  4302. ;
  4303. return 0;
  4304. }
  4305. _ACEOF
  4306. rm -f conftest.$ac_objext conftest$ac_exeext
  4307. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4308. (eval $ac_link) 2>conftest.er1
  4309. ac_status=$?
  4310. grep -v '^ *+' conftest.er1 >conftest.err
  4311. rm -f conftest.er1
  4312. cat conftest.err >&5
  4313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4314. (exit $ac_status); } &&
  4315. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4317. (eval $ac_try) 2>&5
  4318. ac_status=$?
  4319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4320. (exit $ac_status); }; } &&
  4321. { ac_try='test -s conftest$ac_exeext'
  4322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4323. (eval $ac_try) 2>&5
  4324. ac_status=$?
  4325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4326. (exit $ac_status); }; }; then
  4327. ac_cv_lib_dl_main=yes
  4328. else
  4329. echo "$as_me: failed program was:" >&5
  4330. sed 's/^/| /' conftest.$ac_ext >&5
  4331. ac_cv_lib_dl_main=no
  4332. fi
  4333. rm -f conftest.err conftest.$ac_objext \
  4334. conftest$ac_exeext conftest.$ac_ext
  4335. LIBS=$ac_check_lib_save_LIBS
  4336. fi
  4337. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  4338. echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
  4339. if test $ac_cv_lib_dl_main = yes; then
  4340. cat >>confdefs.h <<_ACEOF
  4341. #define HAVE_LIBDL 1
  4342. _ACEOF
  4343. LIBS="-ldl $LIBS"
  4344. fi
  4345. else
  4346. if test "$HPUX" = "yes"
  4347. then
  4348. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  4349. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  4350. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  4351. echo $ECHO_N "(cached) $ECHO_C" >&6
  4352. else
  4353. ac_check_lib_save_LIBS=$LIBS
  4354. LIBS="-ldld $LIBS"
  4355. cat >conftest.$ac_ext <<_ACEOF
  4356. /* confdefs.h. */
  4357. _ACEOF
  4358. cat confdefs.h >>conftest.$ac_ext
  4359. cat >>conftest.$ac_ext <<_ACEOF
  4360. /* end confdefs.h. */
  4361. /* Override any gcc2 internal prototype to avoid an error. */
  4362. #ifdef __cplusplus
  4363. extern "C"
  4364. #endif
  4365. /* We use char because int might match the return type of a gcc2
  4366. builtin and then its argument prototype would still apply. */
  4367. char shl_load ();
  4368. int
  4369. main ()
  4370. {
  4371. shl_load ();
  4372. ;
  4373. return 0;
  4374. }
  4375. _ACEOF
  4376. rm -f conftest.$ac_objext conftest$ac_exeext
  4377. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4378. (eval $ac_link) 2>conftest.er1
  4379. ac_status=$?
  4380. grep -v '^ *+' conftest.er1 >conftest.err
  4381. rm -f conftest.er1
  4382. cat conftest.err >&5
  4383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4384. (exit $ac_status); } &&
  4385. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4386. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4387. (eval $ac_try) 2>&5
  4388. ac_status=$?
  4389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4390. (exit $ac_status); }; } &&
  4391. { ac_try='test -s conftest$ac_exeext'
  4392. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4393. (eval $ac_try) 2>&5
  4394. ac_status=$?
  4395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4396. (exit $ac_status); }; }; then
  4397. ac_cv_lib_dld_shl_load=yes
  4398. else
  4399. echo "$as_me: failed program was:" >&5
  4400. sed 's/^/| /' conftest.$ac_ext >&5
  4401. ac_cv_lib_dld_shl_load=no
  4402. fi
  4403. rm -f conftest.err conftest.$ac_objext \
  4404. conftest$ac_exeext conftest.$ac_ext
  4405. LIBS=$ac_check_lib_save_LIBS
  4406. fi
  4407. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  4408. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  4409. if test $ac_cv_lib_dld_shl_load = yes; then
  4410. cat >>confdefs.h <<_ACEOF
  4411. #define HAVE_LIBDLD 1
  4412. _ACEOF
  4413. LIBS="-ldld $LIBS"
  4414. fi
  4415. fi
  4416. fi
  4417. fi
  4418. # Checks for header files
  4419. ac_header_dirent=no
  4420. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4421. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4422. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4423. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4424. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4425. echo $ECHO_N "(cached) $ECHO_C" >&6
  4426. else
  4427. cat >conftest.$ac_ext <<_ACEOF
  4428. /* confdefs.h. */
  4429. _ACEOF
  4430. cat confdefs.h >>conftest.$ac_ext
  4431. cat >>conftest.$ac_ext <<_ACEOF
  4432. /* end confdefs.h. */
  4433. #include <sys/types.h>
  4434. #include <$ac_hdr>
  4435. int
  4436. main ()
  4437. {
  4438. if ((DIR *) 0)
  4439. return 0;
  4440. ;
  4441. return 0;
  4442. }
  4443. _ACEOF
  4444. rm -f conftest.$ac_objext
  4445. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4446. (eval $ac_compile) 2>conftest.er1
  4447. ac_status=$?
  4448. grep -v '^ *+' conftest.er1 >conftest.err
  4449. rm -f conftest.er1
  4450. cat conftest.err >&5
  4451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4452. (exit $ac_status); } &&
  4453. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4454. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4455. (eval $ac_try) 2>&5
  4456. ac_status=$?
  4457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4458. (exit $ac_status); }; } &&
  4459. { ac_try='test -s conftest.$ac_objext'
  4460. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4461. (eval $ac_try) 2>&5
  4462. ac_status=$?
  4463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4464. (exit $ac_status); }; }; then
  4465. eval "$as_ac_Header=yes"
  4466. else
  4467. echo "$as_me: failed program was:" >&5
  4468. sed 's/^/| /' conftest.$ac_ext >&5
  4469. eval "$as_ac_Header=no"
  4470. fi
  4471. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4472. fi
  4473. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4474. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4475. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4476. cat >>confdefs.h <<_ACEOF
  4477. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4478. _ACEOF
  4479. ac_header_dirent=$ac_hdr; break
  4480. fi
  4481. done
  4482. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4483. if test $ac_header_dirent = dirent.h; then
  4484. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4485. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4486. if test "${ac_cv_search_opendir+set}" = set; then
  4487. echo $ECHO_N "(cached) $ECHO_C" >&6
  4488. else
  4489. ac_func_search_save_LIBS=$LIBS
  4490. ac_cv_search_opendir=no
  4491. cat >conftest.$ac_ext <<_ACEOF
  4492. /* confdefs.h. */
  4493. _ACEOF
  4494. cat confdefs.h >>conftest.$ac_ext
  4495. cat >>conftest.$ac_ext <<_ACEOF
  4496. /* end confdefs.h. */
  4497. /* Override any gcc2 internal prototype to avoid an error. */
  4498. #ifdef __cplusplus
  4499. extern "C"
  4500. #endif
  4501. /* We use char because int might match the return type of a gcc2
  4502. builtin and then its argument prototype would still apply. */
  4503. char opendir ();
  4504. int
  4505. main ()
  4506. {
  4507. opendir ();
  4508. ;
  4509. return 0;
  4510. }
  4511. _ACEOF
  4512. rm -f conftest.$ac_objext conftest$ac_exeext
  4513. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4514. (eval $ac_link) 2>conftest.er1
  4515. ac_status=$?
  4516. grep -v '^ *+' conftest.er1 >conftest.err
  4517. rm -f conftest.er1
  4518. cat conftest.err >&5
  4519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4520. (exit $ac_status); } &&
  4521. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4522. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4523. (eval $ac_try) 2>&5
  4524. ac_status=$?
  4525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4526. (exit $ac_status); }; } &&
  4527. { ac_try='test -s conftest$ac_exeext'
  4528. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4529. (eval $ac_try) 2>&5
  4530. ac_status=$?
  4531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4532. (exit $ac_status); }; }; then
  4533. ac_cv_search_opendir="none required"
  4534. else
  4535. echo "$as_me: failed program was:" >&5
  4536. sed 's/^/| /' conftest.$ac_ext >&5
  4537. fi
  4538. rm -f conftest.err conftest.$ac_objext \
  4539. conftest$ac_exeext conftest.$ac_ext
  4540. if test "$ac_cv_search_opendir" = no; then
  4541. for ac_lib in dir; do
  4542. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4543. cat >conftest.$ac_ext <<_ACEOF
  4544. /* confdefs.h. */
  4545. _ACEOF
  4546. cat confdefs.h >>conftest.$ac_ext
  4547. cat >>conftest.$ac_ext <<_ACEOF
  4548. /* end confdefs.h. */
  4549. /* Override any gcc2 internal prototype to avoid an error. */
  4550. #ifdef __cplusplus
  4551. extern "C"
  4552. #endif
  4553. /* We use char because int might match the return type of a gcc2
  4554. builtin and then its argument prototype would still apply. */
  4555. char opendir ();
  4556. int
  4557. main ()
  4558. {
  4559. opendir ();
  4560. ;
  4561. return 0;
  4562. }
  4563. _ACEOF
  4564. rm -f conftest.$ac_objext conftest$ac_exeext
  4565. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4566. (eval $ac_link) 2>conftest.er1
  4567. ac_status=$?
  4568. grep -v '^ *+' conftest.er1 >conftest.err
  4569. rm -f conftest.er1
  4570. cat conftest.err >&5
  4571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4572. (exit $ac_status); } &&
  4573. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4574. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4575. (eval $ac_try) 2>&5
  4576. ac_status=$?
  4577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4578. (exit $ac_status); }; } &&
  4579. { ac_try='test -s conftest$ac_exeext'
  4580. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4581. (eval $ac_try) 2>&5
  4582. ac_status=$?
  4583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4584. (exit $ac_status); }; }; then
  4585. ac_cv_search_opendir="-l$ac_lib"
  4586. break
  4587. else
  4588. echo "$as_me: failed program was:" >&5
  4589. sed 's/^/| /' conftest.$ac_ext >&5
  4590. fi
  4591. rm -f conftest.err conftest.$ac_objext \
  4592. conftest$ac_exeext conftest.$ac_ext
  4593. done
  4594. fi
  4595. LIBS=$ac_func_search_save_LIBS
  4596. fi
  4597. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4598. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4599. if test "$ac_cv_search_opendir" != no; then
  4600. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4601. fi
  4602. else
  4603. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4604. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4605. if test "${ac_cv_search_opendir+set}" = set; then
  4606. echo $ECHO_N "(cached) $ECHO_C" >&6
  4607. else
  4608. ac_func_search_save_LIBS=$LIBS
  4609. ac_cv_search_opendir=no
  4610. cat >conftest.$ac_ext <<_ACEOF
  4611. /* confdefs.h. */
  4612. _ACEOF
  4613. cat confdefs.h >>conftest.$ac_ext
  4614. cat >>conftest.$ac_ext <<_ACEOF
  4615. /* end confdefs.h. */
  4616. /* Override any gcc2 internal prototype to avoid an error. */
  4617. #ifdef __cplusplus
  4618. extern "C"
  4619. #endif
  4620. /* We use char because int might match the return type of a gcc2
  4621. builtin and then its argument prototype would still apply. */
  4622. char opendir ();
  4623. int
  4624. main ()
  4625. {
  4626. opendir ();
  4627. ;
  4628. return 0;
  4629. }
  4630. _ACEOF
  4631. rm -f conftest.$ac_objext conftest$ac_exeext
  4632. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4633. (eval $ac_link) 2>conftest.er1
  4634. ac_status=$?
  4635. grep -v '^ *+' conftest.er1 >conftest.err
  4636. rm -f conftest.er1
  4637. cat conftest.err >&5
  4638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4639. (exit $ac_status); } &&
  4640. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4641. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4642. (eval $ac_try) 2>&5
  4643. ac_status=$?
  4644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4645. (exit $ac_status); }; } &&
  4646. { ac_try='test -s conftest$ac_exeext'
  4647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4648. (eval $ac_try) 2>&5
  4649. ac_status=$?
  4650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4651. (exit $ac_status); }; }; then
  4652. ac_cv_search_opendir="none required"
  4653. else
  4654. echo "$as_me: failed program was:" >&5
  4655. sed 's/^/| /' conftest.$ac_ext >&5
  4656. fi
  4657. rm -f conftest.err conftest.$ac_objext \
  4658. conftest$ac_exeext conftest.$ac_ext
  4659. if test "$ac_cv_search_opendir" = no; then
  4660. for ac_lib in x; do
  4661. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4662. cat >conftest.$ac_ext <<_ACEOF
  4663. /* confdefs.h. */
  4664. _ACEOF
  4665. cat confdefs.h >>conftest.$ac_ext
  4666. cat >>conftest.$ac_ext <<_ACEOF
  4667. /* end confdefs.h. */
  4668. /* Override any gcc2 internal prototype to avoid an error. */
  4669. #ifdef __cplusplus
  4670. extern "C"
  4671. #endif
  4672. /* We use char because int might match the return type of a gcc2
  4673. builtin and then its argument prototype would still apply. */
  4674. char opendir ();
  4675. int
  4676. main ()
  4677. {
  4678. opendir ();
  4679. ;
  4680. return 0;
  4681. }
  4682. _ACEOF
  4683. rm -f conftest.$ac_objext conftest$ac_exeext
  4684. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4685. (eval $ac_link) 2>conftest.er1
  4686. ac_status=$?
  4687. grep -v '^ *+' conftest.er1 >conftest.err
  4688. rm -f conftest.er1
  4689. cat conftest.err >&5
  4690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4691. (exit $ac_status); } &&
  4692. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4694. (eval $ac_try) 2>&5
  4695. ac_status=$?
  4696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4697. (exit $ac_status); }; } &&
  4698. { ac_try='test -s conftest$ac_exeext'
  4699. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4700. (eval $ac_try) 2>&5
  4701. ac_status=$?
  4702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4703. (exit $ac_status); }; }; then
  4704. ac_cv_search_opendir="-l$ac_lib"
  4705. break
  4706. else
  4707. echo "$as_me: failed program was:" >&5
  4708. sed 's/^/| /' conftest.$ac_ext >&5
  4709. fi
  4710. rm -f conftest.err conftest.$ac_objext \
  4711. conftest$ac_exeext conftest.$ac_ext
  4712. done
  4713. fi
  4714. LIBS=$ac_func_search_save_LIBS
  4715. fi
  4716. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4717. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4718. if test "$ac_cv_search_opendir" != no; then
  4719. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4720. fi
  4721. fi
  4722. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4723. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4724. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4725. echo $ECHO_N "(cached) $ECHO_C" >&6
  4726. else
  4727. cat >conftest.$ac_ext <<_ACEOF
  4728. /* confdefs.h. */
  4729. _ACEOF
  4730. cat confdefs.h >>conftest.$ac_ext
  4731. cat >>conftest.$ac_ext <<_ACEOF
  4732. /* end confdefs.h. */
  4733. #include <sys/types.h>
  4734. #include <sys/wait.h>
  4735. #ifndef WEXITSTATUS
  4736. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4737. #endif
  4738. #ifndef WIFEXITED
  4739. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4740. #endif
  4741. int
  4742. main ()
  4743. {
  4744. int s;
  4745. wait (&s);
  4746. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4747. ;
  4748. return 0;
  4749. }
  4750. _ACEOF
  4751. rm -f conftest.$ac_objext
  4752. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4753. (eval $ac_compile) 2>conftest.er1
  4754. ac_status=$?
  4755. grep -v '^ *+' conftest.er1 >conftest.err
  4756. rm -f conftest.er1
  4757. cat conftest.err >&5
  4758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4759. (exit $ac_status); } &&
  4760. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4761. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4762. (eval $ac_try) 2>&5
  4763. ac_status=$?
  4764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4765. (exit $ac_status); }; } &&
  4766. { ac_try='test -s conftest.$ac_objext'
  4767. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4768. (eval $ac_try) 2>&5
  4769. ac_status=$?
  4770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4771. (exit $ac_status); }; }; then
  4772. ac_cv_header_sys_wait_h=yes
  4773. else
  4774. echo "$as_me: failed program was:" >&5
  4775. sed 's/^/| /' conftest.$ac_ext >&5
  4776. ac_cv_header_sys_wait_h=no
  4777. fi
  4778. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4779. fi
  4780. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4781. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  4782. if test $ac_cv_header_sys_wait_h = yes; then
  4783. cat >>confdefs.h <<\_ACEOF
  4784. #define HAVE_SYS_WAIT_H 1
  4785. _ACEOF
  4786. fi
  4787. for ac_header in sys/time.h
  4788. do
  4789. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4790. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4791. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4792. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4793. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4794. echo $ECHO_N "(cached) $ECHO_C" >&6
  4795. fi
  4796. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4797. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4798. else
  4799. # Is the header compilable?
  4800. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4801. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4802. cat >conftest.$ac_ext <<_ACEOF
  4803. /* confdefs.h. */
  4804. _ACEOF
  4805. cat confdefs.h >>conftest.$ac_ext
  4806. cat >>conftest.$ac_ext <<_ACEOF
  4807. /* end confdefs.h. */
  4808. $ac_includes_default
  4809. #include <$ac_header>
  4810. _ACEOF
  4811. rm -f conftest.$ac_objext
  4812. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4813. (eval $ac_compile) 2>conftest.er1
  4814. ac_status=$?
  4815. grep -v '^ *+' conftest.er1 >conftest.err
  4816. rm -f conftest.er1
  4817. cat conftest.err >&5
  4818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4819. (exit $ac_status); } &&
  4820. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4821. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4822. (eval $ac_try) 2>&5
  4823. ac_status=$?
  4824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4825. (exit $ac_status); }; } &&
  4826. { ac_try='test -s conftest.$ac_objext'
  4827. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4828. (eval $ac_try) 2>&5
  4829. ac_status=$?
  4830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4831. (exit $ac_status); }; }; then
  4832. ac_header_compiler=yes
  4833. else
  4834. echo "$as_me: failed program was:" >&5
  4835. sed 's/^/| /' conftest.$ac_ext >&5
  4836. ac_header_compiler=no
  4837. fi
  4838. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4839. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4840. echo "${ECHO_T}$ac_header_compiler" >&6
  4841. # Is the header present?
  4842. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4843. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4844. cat >conftest.$ac_ext <<_ACEOF
  4845. /* confdefs.h. */
  4846. _ACEOF
  4847. cat confdefs.h >>conftest.$ac_ext
  4848. cat >>conftest.$ac_ext <<_ACEOF
  4849. /* end confdefs.h. */
  4850. #include <$ac_header>
  4851. _ACEOF
  4852. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4853. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4854. ac_status=$?
  4855. grep -v '^ *+' conftest.er1 >conftest.err
  4856. rm -f conftest.er1
  4857. cat conftest.err >&5
  4858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4859. (exit $ac_status); } >/dev/null; then
  4860. if test -s conftest.err; then
  4861. ac_cpp_err=$ac_c_preproc_warn_flag
  4862. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4863. else
  4864. ac_cpp_err=
  4865. fi
  4866. else
  4867. ac_cpp_err=yes
  4868. fi
  4869. if test -z "$ac_cpp_err"; then
  4870. ac_header_preproc=yes
  4871. else
  4872. echo "$as_me: failed program was:" >&5
  4873. sed 's/^/| /' conftest.$ac_ext >&5
  4874. ac_header_preproc=no
  4875. fi
  4876. rm -f conftest.err conftest.$ac_ext
  4877. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4878. echo "${ECHO_T}$ac_header_preproc" >&6
  4879. # So? What about this header?
  4880. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4881. yes:no: )
  4882. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4883. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4884. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4885. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4886. ac_header_preproc=yes
  4887. ;;
  4888. no:yes:* )
  4889. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4890. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4891. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4892. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4893. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4894. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4895. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4896. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4897. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4898. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4899. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4900. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4901. (
  4902. cat <<\_ASBOX
  4903. ## ------------------------------------------ ##
  4904. ## Report this to the AC_PACKAGE_NAME lists. ##
  4905. ## ------------------------------------------ ##
  4906. _ASBOX
  4907. ) |
  4908. sed "s/^/$as_me: WARNING: /" >&2
  4909. ;;
  4910. esac
  4911. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4912. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4913. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4914. echo $ECHO_N "(cached) $ECHO_C" >&6
  4915. else
  4916. eval "$as_ac_Header=\$ac_header_preproc"
  4917. fi
  4918. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4919. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4920. fi
  4921. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4922. cat >>confdefs.h <<_ACEOF
  4923. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4924. _ACEOF
  4925. fi
  4926. done
  4927. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4928. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  4929. if test "${ac_cv_header_time+set}" = set; then
  4930. echo $ECHO_N "(cached) $ECHO_C" >&6
  4931. else
  4932. cat >conftest.$ac_ext <<_ACEOF
  4933. /* confdefs.h. */
  4934. _ACEOF
  4935. cat confdefs.h >>conftest.$ac_ext
  4936. cat >>conftest.$ac_ext <<_ACEOF
  4937. /* end confdefs.h. */
  4938. #include <sys/types.h>
  4939. #include <sys/time.h>
  4940. #include <time.h>
  4941. int
  4942. main ()
  4943. {
  4944. if ((struct tm *) 0)
  4945. return 0;
  4946. ;
  4947. return 0;
  4948. }
  4949. _ACEOF
  4950. rm -f conftest.$ac_objext
  4951. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4952. (eval $ac_compile) 2>conftest.er1
  4953. ac_status=$?
  4954. grep -v '^ *+' conftest.er1 >conftest.err
  4955. rm -f conftest.er1
  4956. cat conftest.err >&5
  4957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4958. (exit $ac_status); } &&
  4959. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4961. (eval $ac_try) 2>&5
  4962. ac_status=$?
  4963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4964. (exit $ac_status); }; } &&
  4965. { ac_try='test -s conftest.$ac_objext'
  4966. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4967. (eval $ac_try) 2>&5
  4968. ac_status=$?
  4969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4970. (exit $ac_status); }; }; then
  4971. ac_cv_header_time=yes
  4972. else
  4973. echo "$as_me: failed program was:" >&5
  4974. sed 's/^/| /' conftest.$ac_ext >&5
  4975. ac_cv_header_time=no
  4976. fi
  4977. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4978. fi
  4979. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4980. echo "${ECHO_T}$ac_cv_header_time" >&6
  4981. if test $ac_cv_header_time = yes; then
  4982. cat >>confdefs.h <<\_ACEOF
  4983. #define TIME_WITH_SYS_TIME 1
  4984. _ACEOF
  4985. fi
  4986. for ac_header in zlib.h
  4987. do
  4988. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4989. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4990. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4991. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4992. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4993. echo $ECHO_N "(cached) $ECHO_C" >&6
  4994. fi
  4995. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4996. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4997. else
  4998. # Is the header compilable?
  4999. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5000. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5001. cat >conftest.$ac_ext <<_ACEOF
  5002. /* confdefs.h. */
  5003. _ACEOF
  5004. cat confdefs.h >>conftest.$ac_ext
  5005. cat >>conftest.$ac_ext <<_ACEOF
  5006. /* end confdefs.h. */
  5007. $ac_includes_default
  5008. #include <$ac_header>
  5009. _ACEOF
  5010. rm -f conftest.$ac_objext
  5011. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5012. (eval $ac_compile) 2>conftest.er1
  5013. ac_status=$?
  5014. grep -v '^ *+' conftest.er1 >conftest.err
  5015. rm -f conftest.er1
  5016. cat conftest.err >&5
  5017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5018. (exit $ac_status); } &&
  5019. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5020. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5021. (eval $ac_try) 2>&5
  5022. ac_status=$?
  5023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5024. (exit $ac_status); }; } &&
  5025. { ac_try='test -s conftest.$ac_objext'
  5026. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5027. (eval $ac_try) 2>&5
  5028. ac_status=$?
  5029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5030. (exit $ac_status); }; }; then
  5031. ac_header_compiler=yes
  5032. else
  5033. echo "$as_me: failed program was:" >&5
  5034. sed 's/^/| /' conftest.$ac_ext >&5
  5035. ac_header_compiler=no
  5036. fi
  5037. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5038. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5039. echo "${ECHO_T}$ac_header_compiler" >&6
  5040. # Is the header present?
  5041. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5042. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5043. cat >conftest.$ac_ext <<_ACEOF
  5044. /* confdefs.h. */
  5045. _ACEOF
  5046. cat confdefs.h >>conftest.$ac_ext
  5047. cat >>conftest.$ac_ext <<_ACEOF
  5048. /* end confdefs.h. */
  5049. #include <$ac_header>
  5050. _ACEOF
  5051. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5052. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5053. ac_status=$?
  5054. grep -v '^ *+' conftest.er1 >conftest.err
  5055. rm -f conftest.er1
  5056. cat conftest.err >&5
  5057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5058. (exit $ac_status); } >/dev/null; then
  5059. if test -s conftest.err; then
  5060. ac_cpp_err=$ac_c_preproc_warn_flag
  5061. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5062. else
  5063. ac_cpp_err=
  5064. fi
  5065. else
  5066. ac_cpp_err=yes
  5067. fi
  5068. if test -z "$ac_cpp_err"; then
  5069. ac_header_preproc=yes
  5070. else
  5071. echo "$as_me: failed program was:" >&5
  5072. sed 's/^/| /' conftest.$ac_ext >&5
  5073. ac_header_preproc=no
  5074. fi
  5075. rm -f conftest.err conftest.$ac_ext
  5076. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5077. echo "${ECHO_T}$ac_header_preproc" >&6
  5078. # So? What about this header?
  5079. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5080. yes:no: )
  5081. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5082. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5083. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5084. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5085. ac_header_preproc=yes
  5086. ;;
  5087. no:yes:* )
  5088. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5089. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5090. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5091. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5092. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5093. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5094. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5095. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5096. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5097. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5098. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5099. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5100. (
  5101. cat <<\_ASBOX
  5102. ## ------------------------------------------ ##
  5103. ## Report this to the AC_PACKAGE_NAME lists. ##
  5104. ## ------------------------------------------ ##
  5105. _ASBOX
  5106. ) |
  5107. sed "s/^/$as_me: WARNING: /" >&2
  5108. ;;
  5109. esac
  5110. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5111. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5112. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5113. echo $ECHO_N "(cached) $ECHO_C" >&6
  5114. else
  5115. eval "$as_ac_Header=\$ac_header_preproc"
  5116. fi
  5117. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5118. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5119. fi
  5120. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5121. cat >>confdefs.h <<_ACEOF
  5122. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5123. _ACEOF
  5124. fi
  5125. done
  5126. if test "x${ZLIB}" = x; then
  5127. cat >&2 <<EOF
  5128. configure: error:
  5129. Your system does not provide a working zlib compression library.
  5130. It is required.
  5131. EOF
  5132. exit 1
  5133. else
  5134. if test "${ac_cv_header_zlib_h}" != yes; then
  5135. cat >&2 <<EOF
  5136. configure: error:
  5137. Your system does not provide the necessary zlib header file.
  5138. It is required.
  5139. EOF
  5140. exit 1
  5141. fi
  5142. fi
  5143. for ac_header in openssl/ssl.h openssl/crypto.h
  5144. do
  5145. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5146. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5147. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5148. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5149. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5150. echo $ECHO_N "(cached) $ECHO_C" >&6
  5151. fi
  5152. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5153. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5154. else
  5155. # Is the header compilable?
  5156. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5157. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5158. cat >conftest.$ac_ext <<_ACEOF
  5159. /* confdefs.h. */
  5160. _ACEOF
  5161. cat confdefs.h >>conftest.$ac_ext
  5162. cat >>conftest.$ac_ext <<_ACEOF
  5163. /* end confdefs.h. */
  5164. $ac_includes_default
  5165. #include <$ac_header>
  5166. _ACEOF
  5167. rm -f conftest.$ac_objext
  5168. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5169. (eval $ac_compile) 2>conftest.er1
  5170. ac_status=$?
  5171. grep -v '^ *+' conftest.er1 >conftest.err
  5172. rm -f conftest.er1
  5173. cat conftest.err >&5
  5174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5175. (exit $ac_status); } &&
  5176. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5177. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5178. (eval $ac_try) 2>&5
  5179. ac_status=$?
  5180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5181. (exit $ac_status); }; } &&
  5182. { ac_try='test -s conftest.$ac_objext'
  5183. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5184. (eval $ac_try) 2>&5
  5185. ac_status=$?
  5186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5187. (exit $ac_status); }; }; then
  5188. ac_header_compiler=yes
  5189. else
  5190. echo "$as_me: failed program was:" >&5
  5191. sed 's/^/| /' conftest.$ac_ext >&5
  5192. ac_header_compiler=no
  5193. fi
  5194. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5195. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5196. echo "${ECHO_T}$ac_header_compiler" >&6
  5197. # Is the header present?
  5198. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5199. echo $ECHO_N "checking $ac_header presence... $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. #include <$ac_header>
  5207. _ACEOF
  5208. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5209. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5210. ac_status=$?
  5211. grep -v '^ *+' conftest.er1 >conftest.err
  5212. rm -f conftest.er1
  5213. cat conftest.err >&5
  5214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5215. (exit $ac_status); } >/dev/null; then
  5216. if test -s conftest.err; then
  5217. ac_cpp_err=$ac_c_preproc_warn_flag
  5218. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5219. else
  5220. ac_cpp_err=
  5221. fi
  5222. else
  5223. ac_cpp_err=yes
  5224. fi
  5225. if test -z "$ac_cpp_err"; then
  5226. ac_header_preproc=yes
  5227. else
  5228. echo "$as_me: failed program was:" >&5
  5229. sed 's/^/| /' conftest.$ac_ext >&5
  5230. ac_header_preproc=no
  5231. fi
  5232. rm -f conftest.err conftest.$ac_ext
  5233. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5234. echo "${ECHO_T}$ac_header_preproc" >&6
  5235. # So? What about this header?
  5236. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5237. yes:no: )
  5238. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5239. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5240. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5241. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5242. ac_header_preproc=yes
  5243. ;;
  5244. no:yes:* )
  5245. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5246. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5247. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5248. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5249. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5250. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5251. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5252. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5253. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5254. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5255. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5256. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5257. (
  5258. cat <<\_ASBOX
  5259. ## ------------------------------------------ ##
  5260. ## Report this to the AC_PACKAGE_NAME lists. ##
  5261. ## ------------------------------------------ ##
  5262. _ASBOX
  5263. ) |
  5264. sed "s/^/$as_me: WARNING: /" >&2
  5265. ;;
  5266. esac
  5267. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5268. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5269. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5270. echo $ECHO_N "(cached) $ECHO_C" >&6
  5271. else
  5272. eval "$as_ac_Header=\$ac_header_preproc"
  5273. fi
  5274. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5275. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5276. fi
  5277. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5278. cat >>confdefs.h <<_ACEOF
  5279. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5280. _ACEOF
  5281. fi
  5282. done
  5283. if test "x${SSL}" = x; then
  5284. cat >&2 <<EOF
  5285. configure: error:
  5286. Your system does not provide a working ssl library.
  5287. It is required. Download openssl at www.openssl.org
  5288. EOF
  5289. exit 1
  5290. else
  5291. if test "${ac_cv_header_openssl_ssl_h}" != yes; then
  5292. cat >&2 <<EOF
  5293. configure: error:
  5294. Your system does not provide the necessary ssl header file.
  5295. It is required. Download openssl at www.openssl.org
  5296. EOF
  5297. exit 1
  5298. fi
  5299. fi
  5300. #checkpoint
  5301. cat >confcache <<\_ACEOF
  5302. # This file is a shell script that caches the results of configure
  5303. # tests run on this system so they can be shared between configure
  5304. # scripts and configure runs, see configure's option --config-cache.
  5305. # It is not useful on other systems. If it contains results you don't
  5306. # want to keep, you may remove or edit it.
  5307. #
  5308. # config.status only pays attention to the cache file if you give it
  5309. # the --recheck option to rerun configure.
  5310. #
  5311. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5312. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5313. # following values.
  5314. _ACEOF
  5315. # The following way of writing the cache mishandles newlines in values,
  5316. # but we know of no workaround that is simple, portable, and efficient.
  5317. # So, don't put newlines in cache variables' values.
  5318. # Ultrix sh set writes to stderr and can't be redirected directly,
  5319. # and sets the high bit in the cache file unless we assign to the vars.
  5320. {
  5321. (set) 2>&1 |
  5322. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5323. *ac_space=\ *)
  5324. # `set' does not quote correctly, so add quotes (double-quote
  5325. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5326. sed -n \
  5327. "s/'/'\\\\''/g;
  5328. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5329. ;;
  5330. *)
  5331. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5332. sed -n \
  5333. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5334. ;;
  5335. esac;
  5336. } |
  5337. sed '
  5338. t clear
  5339. : clear
  5340. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5341. t end
  5342. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5343. : end' >>confcache
  5344. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5345. if test -w $cache_file; then
  5346. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  5347. cat confcache >$cache_file
  5348. else
  5349. echo "not updating unwritable cache $cache_file"
  5350. fi
  5351. fi
  5352. rm -f confcache
  5353. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h stddef.h stdlib.h string.h
  5354. do
  5355. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5356. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5357. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5358. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5359. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5360. echo $ECHO_N "(cached) $ECHO_C" >&6
  5361. fi
  5362. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5363. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5364. else
  5365. # Is the header compilable?
  5366. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5367. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5368. cat >conftest.$ac_ext <<_ACEOF
  5369. /* confdefs.h. */
  5370. _ACEOF
  5371. cat confdefs.h >>conftest.$ac_ext
  5372. cat >>conftest.$ac_ext <<_ACEOF
  5373. /* end confdefs.h. */
  5374. $ac_includes_default
  5375. #include <$ac_header>
  5376. _ACEOF
  5377. rm -f conftest.$ac_objext
  5378. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5379. (eval $ac_compile) 2>conftest.er1
  5380. ac_status=$?
  5381. grep -v '^ *+' conftest.er1 >conftest.err
  5382. rm -f conftest.er1
  5383. cat conftest.err >&5
  5384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5385. (exit $ac_status); } &&
  5386. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5387. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5388. (eval $ac_try) 2>&5
  5389. ac_status=$?
  5390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5391. (exit $ac_status); }; } &&
  5392. { ac_try='test -s conftest.$ac_objext'
  5393. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5394. (eval $ac_try) 2>&5
  5395. ac_status=$?
  5396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5397. (exit $ac_status); }; }; then
  5398. ac_header_compiler=yes
  5399. else
  5400. echo "$as_me: failed program was:" >&5
  5401. sed 's/^/| /' conftest.$ac_ext >&5
  5402. ac_header_compiler=no
  5403. fi
  5404. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5405. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5406. echo "${ECHO_T}$ac_header_compiler" >&6
  5407. # Is the header present?
  5408. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5409. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5410. cat >conftest.$ac_ext <<_ACEOF
  5411. /* confdefs.h. */
  5412. _ACEOF
  5413. cat confdefs.h >>conftest.$ac_ext
  5414. cat >>conftest.$ac_ext <<_ACEOF
  5415. /* end confdefs.h. */
  5416. #include <$ac_header>
  5417. _ACEOF
  5418. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5419. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5420. ac_status=$?
  5421. grep -v '^ *+' conftest.er1 >conftest.err
  5422. rm -f conftest.er1
  5423. cat conftest.err >&5
  5424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5425. (exit $ac_status); } >/dev/null; then
  5426. if test -s conftest.err; then
  5427. ac_cpp_err=$ac_c_preproc_warn_flag
  5428. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5429. else
  5430. ac_cpp_err=
  5431. fi
  5432. else
  5433. ac_cpp_err=yes
  5434. fi
  5435. if test -z "$ac_cpp_err"; then
  5436. ac_header_preproc=yes
  5437. else
  5438. echo "$as_me: failed program was:" >&5
  5439. sed 's/^/| /' conftest.$ac_ext >&5
  5440. ac_header_preproc=no
  5441. fi
  5442. rm -f conftest.err conftest.$ac_ext
  5443. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5444. echo "${ECHO_T}$ac_header_preproc" >&6
  5445. # So? What about this header?
  5446. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5447. yes:no: )
  5448. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5449. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5450. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5451. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5452. ac_header_preproc=yes
  5453. ;;
  5454. no:yes:* )
  5455. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5456. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5457. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5458. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5459. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5460. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5461. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5462. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5463. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5464. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5465. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5466. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5467. (
  5468. cat <<\_ASBOX
  5469. ## ------------------------------------------ ##
  5470. ## Report this to the AC_PACKAGE_NAME lists. ##
  5471. ## ------------------------------------------ ##
  5472. _ASBOX
  5473. ) |
  5474. sed "s/^/$as_me: WARNING: /" >&2
  5475. ;;
  5476. esac
  5477. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5478. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5479. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5480. echo $ECHO_N "(cached) $ECHO_C" >&6
  5481. else
  5482. eval "$as_ac_Header=\$ac_header_preproc"
  5483. fi
  5484. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5485. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5486. fi
  5487. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5488. cat >>confdefs.h <<_ACEOF
  5489. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5490. _ACEOF
  5491. fi
  5492. done
  5493. for ac_header in strings.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h unistd.h wchar.h
  5494. do
  5495. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5496. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5497. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5498. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5499. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5500. echo $ECHO_N "(cached) $ECHO_C" >&6
  5501. fi
  5502. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5503. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5504. else
  5505. # Is the header compilable?
  5506. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5507. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5508. cat >conftest.$ac_ext <<_ACEOF
  5509. /* confdefs.h. */
  5510. _ACEOF
  5511. cat confdefs.h >>conftest.$ac_ext
  5512. cat >>conftest.$ac_ext <<_ACEOF
  5513. /* end confdefs.h. */
  5514. $ac_includes_default
  5515. #include <$ac_header>
  5516. _ACEOF
  5517. rm -f conftest.$ac_objext
  5518. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5519. (eval $ac_compile) 2>conftest.er1
  5520. ac_status=$?
  5521. grep -v '^ *+' conftest.er1 >conftest.err
  5522. rm -f conftest.er1
  5523. cat conftest.err >&5
  5524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5525. (exit $ac_status); } &&
  5526. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5527. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5528. (eval $ac_try) 2>&5
  5529. ac_status=$?
  5530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5531. (exit $ac_status); }; } &&
  5532. { ac_try='test -s conftest.$ac_objext'
  5533. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5534. (eval $ac_try) 2>&5
  5535. ac_status=$?
  5536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5537. (exit $ac_status); }; }; then
  5538. ac_header_compiler=yes
  5539. else
  5540. echo "$as_me: failed program was:" >&5
  5541. sed 's/^/| /' conftest.$ac_ext >&5
  5542. ac_header_compiler=no
  5543. fi
  5544. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5545. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5546. echo "${ECHO_T}$ac_header_compiler" >&6
  5547. # Is the header present?
  5548. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5549. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5550. cat >conftest.$ac_ext <<_ACEOF
  5551. /* confdefs.h. */
  5552. _ACEOF
  5553. cat confdefs.h >>conftest.$ac_ext
  5554. cat >>conftest.$ac_ext <<_ACEOF
  5555. /* end confdefs.h. */
  5556. #include <$ac_header>
  5557. _ACEOF
  5558. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5559. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5560. ac_status=$?
  5561. grep -v '^ *+' conftest.er1 >conftest.err
  5562. rm -f conftest.er1
  5563. cat conftest.err >&5
  5564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5565. (exit $ac_status); } >/dev/null; then
  5566. if test -s conftest.err; then
  5567. ac_cpp_err=$ac_c_preproc_warn_flag
  5568. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5569. else
  5570. ac_cpp_err=
  5571. fi
  5572. else
  5573. ac_cpp_err=yes
  5574. fi
  5575. if test -z "$ac_cpp_err"; then
  5576. ac_header_preproc=yes
  5577. else
  5578. echo "$as_me: failed program was:" >&5
  5579. sed 's/^/| /' conftest.$ac_ext >&5
  5580. ac_header_preproc=no
  5581. fi
  5582. rm -f conftest.err conftest.$ac_ext
  5583. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5584. echo "${ECHO_T}$ac_header_preproc" >&6
  5585. # So? What about this header?
  5586. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5587. yes:no: )
  5588. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5589. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5590. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5591. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5592. ac_header_preproc=yes
  5593. ;;
  5594. no:yes:* )
  5595. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5596. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5597. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5598. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5599. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5600. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5601. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5602. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5603. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5604. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5605. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5606. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5607. (
  5608. cat <<\_ASBOX
  5609. ## ------------------------------------------ ##
  5610. ## Report this to the AC_PACKAGE_NAME lists. ##
  5611. ## ------------------------------------------ ##
  5612. _ASBOX
  5613. ) |
  5614. sed "s/^/$as_me: WARNING: /" >&2
  5615. ;;
  5616. esac
  5617. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5618. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5619. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5620. echo $ECHO_N "(cached) $ECHO_C" >&6
  5621. else
  5622. eval "$as_ac_Header=\$ac_header_preproc"
  5623. fi
  5624. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5625. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5626. fi
  5627. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5628. cat >>confdefs.h <<_ACEOF
  5629. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5630. _ACEOF
  5631. fi
  5632. done
  5633. #checkpoint
  5634. cat >confcache <<\_ACEOF
  5635. # This file is a shell script that caches the results of configure
  5636. # tests run on this system so they can be shared between configure
  5637. # scripts and configure runs, see configure's option --config-cache.
  5638. # It is not useful on other systems. If it contains results you don't
  5639. # want to keep, you may remove or edit it.
  5640. #
  5641. # config.status only pays attention to the cache file if you give it
  5642. # the --recheck option to rerun configure.
  5643. #
  5644. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5645. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5646. # following values.
  5647. _ACEOF
  5648. # The following way of writing the cache mishandles newlines in values,
  5649. # but we know of no workaround that is simple, portable, and efficient.
  5650. # So, don't put newlines in cache variables' values.
  5651. # Ultrix sh set writes to stderr and can't be redirected directly,
  5652. # and sets the high bit in the cache file unless we assign to the vars.
  5653. {
  5654. (set) 2>&1 |
  5655. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5656. *ac_space=\ *)
  5657. # `set' does not quote correctly, so add quotes (double-quote
  5658. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5659. sed -n \
  5660. "s/'/'\\\\''/g;
  5661. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5662. ;;
  5663. *)
  5664. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5665. sed -n \
  5666. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5667. ;;
  5668. esac;
  5669. } |
  5670. sed '
  5671. t clear
  5672. : clear
  5673. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5674. t end
  5675. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5676. : end' >>confcache
  5677. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5678. if test -w $cache_file; then
  5679. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  5680. cat confcache >$cache_file
  5681. else
  5682. echo "not updating unwritable cache $cache_file"
  5683. fi
  5684. fi
  5685. rm -f confcache
  5686. # Checks for typedefs, structures, and compiler characteristics
  5687. echo "$as_me:$LINENO: checking for pid_t" >&5
  5688. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5689. if test "${ac_cv_type_pid_t+set}" = set; then
  5690. echo $ECHO_N "(cached) $ECHO_C" >&6
  5691. else
  5692. cat >conftest.$ac_ext <<_ACEOF
  5693. /* confdefs.h. */
  5694. _ACEOF
  5695. cat confdefs.h >>conftest.$ac_ext
  5696. cat >>conftest.$ac_ext <<_ACEOF
  5697. /* end confdefs.h. */
  5698. $ac_includes_default
  5699. int
  5700. main ()
  5701. {
  5702. if ((pid_t *) 0)
  5703. return 0;
  5704. if (sizeof (pid_t))
  5705. return 0;
  5706. ;
  5707. return 0;
  5708. }
  5709. _ACEOF
  5710. rm -f conftest.$ac_objext
  5711. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5712. (eval $ac_compile) 2>conftest.er1
  5713. ac_status=$?
  5714. grep -v '^ *+' conftest.er1 >conftest.err
  5715. rm -f conftest.er1
  5716. cat conftest.err >&5
  5717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5718. (exit $ac_status); } &&
  5719. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5720. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5721. (eval $ac_try) 2>&5
  5722. ac_status=$?
  5723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5724. (exit $ac_status); }; } &&
  5725. { ac_try='test -s conftest.$ac_objext'
  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); }; }; then
  5731. ac_cv_type_pid_t=yes
  5732. else
  5733. echo "$as_me: failed program was:" >&5
  5734. sed 's/^/| /' conftest.$ac_ext >&5
  5735. ac_cv_type_pid_t=no
  5736. fi
  5737. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5738. fi
  5739. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5740. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5741. if test $ac_cv_type_pid_t = yes; then
  5742. :
  5743. else
  5744. cat >>confdefs.h <<_ACEOF
  5745. #define pid_t int
  5746. _ACEOF
  5747. fi
  5748. echo "$as_me:$LINENO: checking for size_t" >&5
  5749. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5750. if test "${ac_cv_type_size_t+set}" = set; then
  5751. echo $ECHO_N "(cached) $ECHO_C" >&6
  5752. else
  5753. cat >conftest.$ac_ext <<_ACEOF
  5754. /* confdefs.h. */
  5755. _ACEOF
  5756. cat confdefs.h >>conftest.$ac_ext
  5757. cat >>conftest.$ac_ext <<_ACEOF
  5758. /* end confdefs.h. */
  5759. $ac_includes_default
  5760. int
  5761. main ()
  5762. {
  5763. if ((size_t *) 0)
  5764. return 0;
  5765. if (sizeof (size_t))
  5766. return 0;
  5767. ;
  5768. return 0;
  5769. }
  5770. _ACEOF
  5771. rm -f conftest.$ac_objext
  5772. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5773. (eval $ac_compile) 2>conftest.er1
  5774. ac_status=$?
  5775. grep -v '^ *+' conftest.er1 >conftest.err
  5776. rm -f conftest.er1
  5777. cat conftest.err >&5
  5778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5779. (exit $ac_status); } &&
  5780. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5781. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5782. (eval $ac_try) 2>&5
  5783. ac_status=$?
  5784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5785. (exit $ac_status); }; } &&
  5786. { ac_try='test -s conftest.$ac_objext'
  5787. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5788. (eval $ac_try) 2>&5
  5789. ac_status=$?
  5790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5791. (exit $ac_status); }; }; then
  5792. ac_cv_type_size_t=yes
  5793. else
  5794. echo "$as_me: failed program was:" >&5
  5795. sed 's/^/| /' conftest.$ac_ext >&5
  5796. ac_cv_type_size_t=no
  5797. fi
  5798. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5799. fi
  5800. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5801. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5802. if test $ac_cv_type_size_t = yes; then
  5803. :
  5804. else
  5805. cat >>confdefs.h <<_ACEOF
  5806. #define size_t unsigned
  5807. _ACEOF
  5808. fi
  5809. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5810. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5811. if test "${ac_cv_c_const+set}" = set; then
  5812. echo $ECHO_N "(cached) $ECHO_C" >&6
  5813. else
  5814. cat >conftest.$ac_ext <<_ACEOF
  5815. /* confdefs.h. */
  5816. _ACEOF
  5817. cat confdefs.h >>conftest.$ac_ext
  5818. cat >>conftest.$ac_ext <<_ACEOF
  5819. /* end confdefs.h. */
  5820. int
  5821. main ()
  5822. {
  5823. /* FIXME: Include the comments suggested by Paul. */
  5824. #ifndef __cplusplus
  5825. /* Ultrix mips cc rejects this. */
  5826. typedef int charset[2];
  5827. const charset x;
  5828. /* SunOS 4.1.1 cc rejects this. */
  5829. char const *const *ccp;
  5830. char **p;
  5831. /* NEC SVR4.0.2 mips cc rejects this. */
  5832. struct point {int x, y;};
  5833. static struct point const zero = {0,0};
  5834. /* AIX XL C 1.02.0.0 rejects this.
  5835. It does not let you subtract one const X* pointer from another in
  5836. an arm of an if-expression whose if-part is not a constant
  5837. expression */
  5838. const char *g = "string";
  5839. ccp = &g + (g ? g-g : 0);
  5840. /* HPUX 7.0 cc rejects these. */
  5841. ++ccp;
  5842. p = (char**) ccp;
  5843. ccp = (char const *const *) p;
  5844. { /* SCO 3.2v4 cc rejects this. */
  5845. char *t;
  5846. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5847. *t++ = 0;
  5848. }
  5849. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5850. int x[] = {25, 17};
  5851. const int *foo = &x[0];
  5852. ++foo;
  5853. }
  5854. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5855. typedef const int *iptr;
  5856. iptr p = 0;
  5857. ++p;
  5858. }
  5859. { /* AIX XL C 1.02.0.0 rejects this saying
  5860. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5861. struct s { int j; const int *ap[3]; };
  5862. struct s *b; b->j = 5;
  5863. }
  5864. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5865. const int foo = 10;
  5866. }
  5867. #endif
  5868. ;
  5869. return 0;
  5870. }
  5871. _ACEOF
  5872. rm -f conftest.$ac_objext
  5873. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5874. (eval $ac_compile) 2>conftest.er1
  5875. ac_status=$?
  5876. grep -v '^ *+' conftest.er1 >conftest.err
  5877. rm -f conftest.er1
  5878. cat conftest.err >&5
  5879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5880. (exit $ac_status); } &&
  5881. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5882. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5883. (eval $ac_try) 2>&5
  5884. ac_status=$?
  5885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5886. (exit $ac_status); }; } &&
  5887. { ac_try='test -s conftest.$ac_objext'
  5888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5889. (eval $ac_try) 2>&5
  5890. ac_status=$?
  5891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5892. (exit $ac_status); }; }; then
  5893. ac_cv_c_const=yes
  5894. else
  5895. echo "$as_me: failed program was:" >&5
  5896. sed 's/^/| /' conftest.$ac_ext >&5
  5897. ac_cv_c_const=no
  5898. fi
  5899. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5900. fi
  5901. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5902. echo "${ECHO_T}$ac_cv_c_const" >&6
  5903. if test $ac_cv_c_const = no; then
  5904. cat >>confdefs.h <<\_ACEOF
  5905. #define const
  5906. _ACEOF
  5907. fi
  5908. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5909. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5910. if test "${ac_cv_c_bigendian+set}" = set; then
  5911. echo $ECHO_N "(cached) $ECHO_C" >&6
  5912. else
  5913. # See if sys/param.h defines the BYTE_ORDER macro.
  5914. cat >conftest.$ac_ext <<_ACEOF
  5915. /* confdefs.h. */
  5916. _ACEOF
  5917. cat confdefs.h >>conftest.$ac_ext
  5918. cat >>conftest.$ac_ext <<_ACEOF
  5919. /* end confdefs.h. */
  5920. #include <sys/types.h>
  5921. #include <sys/param.h>
  5922. int
  5923. main ()
  5924. {
  5925. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5926. bogus endian macros
  5927. #endif
  5928. ;
  5929. return 0;
  5930. }
  5931. _ACEOF
  5932. rm -f conftest.$ac_objext
  5933. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5934. (eval $ac_compile) 2>conftest.er1
  5935. ac_status=$?
  5936. grep -v '^ *+' conftest.er1 >conftest.err
  5937. rm -f conftest.er1
  5938. cat conftest.err >&5
  5939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5940. (exit $ac_status); } &&
  5941. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5942. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5943. (eval $ac_try) 2>&5
  5944. ac_status=$?
  5945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5946. (exit $ac_status); }; } &&
  5947. { ac_try='test -s conftest.$ac_objext'
  5948. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5949. (eval $ac_try) 2>&5
  5950. ac_status=$?
  5951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5952. (exit $ac_status); }; }; then
  5953. # It does; now see whether it defined to BIG_ENDIAN or not.
  5954. cat >conftest.$ac_ext <<_ACEOF
  5955. /* confdefs.h. */
  5956. _ACEOF
  5957. cat confdefs.h >>conftest.$ac_ext
  5958. cat >>conftest.$ac_ext <<_ACEOF
  5959. /* end confdefs.h. */
  5960. #include <sys/types.h>
  5961. #include <sys/param.h>
  5962. int
  5963. main ()
  5964. {
  5965. #if BYTE_ORDER != BIG_ENDIAN
  5966. not big endian
  5967. #endif
  5968. ;
  5969. return 0;
  5970. }
  5971. _ACEOF
  5972. rm -f conftest.$ac_objext
  5973. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5974. (eval $ac_compile) 2>conftest.er1
  5975. ac_status=$?
  5976. grep -v '^ *+' conftest.er1 >conftest.err
  5977. rm -f conftest.er1
  5978. cat conftest.err >&5
  5979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5980. (exit $ac_status); } &&
  5981. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5982. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5983. (eval $ac_try) 2>&5
  5984. ac_status=$?
  5985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5986. (exit $ac_status); }; } &&
  5987. { ac_try='test -s conftest.$ac_objext'
  5988. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5989. (eval $ac_try) 2>&5
  5990. ac_status=$?
  5991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5992. (exit $ac_status); }; }; then
  5993. ac_cv_c_bigendian=yes
  5994. else
  5995. echo "$as_me: failed program was:" >&5
  5996. sed 's/^/| /' conftest.$ac_ext >&5
  5997. ac_cv_c_bigendian=no
  5998. fi
  5999. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6000. else
  6001. echo "$as_me: failed program was:" >&5
  6002. sed 's/^/| /' conftest.$ac_ext >&5
  6003. # It does not; compile a test program.
  6004. if test "$cross_compiling" = yes; then
  6005. # try to guess the endianness by grepping values into an object file
  6006. ac_cv_c_bigendian=unknown
  6007. cat >conftest.$ac_ext <<_ACEOF
  6008. /* confdefs.h. */
  6009. _ACEOF
  6010. cat confdefs.h >>conftest.$ac_ext
  6011. cat >>conftest.$ac_ext <<_ACEOF
  6012. /* end confdefs.h. */
  6013. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6014. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6015. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  6016. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6017. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6018. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  6019. int
  6020. main ()
  6021. {
  6022. _ascii (); _ebcdic ();
  6023. ;
  6024. return 0;
  6025. }
  6026. _ACEOF
  6027. rm -f conftest.$ac_objext
  6028. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6029. (eval $ac_compile) 2>conftest.er1
  6030. ac_status=$?
  6031. grep -v '^ *+' conftest.er1 >conftest.err
  6032. rm -f conftest.er1
  6033. cat conftest.err >&5
  6034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6035. (exit $ac_status); } &&
  6036. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6037. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6038. (eval $ac_try) 2>&5
  6039. ac_status=$?
  6040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6041. (exit $ac_status); }; } &&
  6042. { ac_try='test -s conftest.$ac_objext'
  6043. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6044. (eval $ac_try) 2>&5
  6045. ac_status=$?
  6046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6047. (exit $ac_status); }; }; then
  6048. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  6049. ac_cv_c_bigendian=yes
  6050. fi
  6051. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6052. if test "$ac_cv_c_bigendian" = unknown; then
  6053. ac_cv_c_bigendian=no
  6054. else
  6055. # finding both strings is unlikely to happen, but who knows?
  6056. ac_cv_c_bigendian=unknown
  6057. fi
  6058. fi
  6059. else
  6060. echo "$as_me: failed program was:" >&5
  6061. sed 's/^/| /' conftest.$ac_ext >&5
  6062. fi
  6063. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6064. else
  6065. cat >conftest.$ac_ext <<_ACEOF
  6066. /* confdefs.h. */
  6067. _ACEOF
  6068. cat confdefs.h >>conftest.$ac_ext
  6069. cat >>conftest.$ac_ext <<_ACEOF
  6070. /* end confdefs.h. */
  6071. int
  6072. main ()
  6073. {
  6074. /* Are we little or big endian? From Harbison&Steele. */
  6075. union
  6076. {
  6077. long l;
  6078. char c[sizeof (long)];
  6079. } u;
  6080. u.l = 1;
  6081. exit (u.c[sizeof (long) - 1] == 1);
  6082. }
  6083. _ACEOF
  6084. rm -f conftest$ac_exeext
  6085. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6086. (eval $ac_link) 2>&5
  6087. ac_status=$?
  6088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6089. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6090. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6091. (eval $ac_try) 2>&5
  6092. ac_status=$?
  6093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6094. (exit $ac_status); }; }; then
  6095. ac_cv_c_bigendian=no
  6096. else
  6097. echo "$as_me: program exited with status $ac_status" >&5
  6098. echo "$as_me: failed program was:" >&5
  6099. sed 's/^/| /' conftest.$ac_ext >&5
  6100. ( exit $ac_status )
  6101. ac_cv_c_bigendian=yes
  6102. fi
  6103. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6104. fi
  6105. fi
  6106. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6107. fi
  6108. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6109. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6110. case $ac_cv_c_bigendian in
  6111. yes)
  6112. cat >>confdefs.h <<\_ACEOF
  6113. #define WORDS_BIGENDIAN 1
  6114. _ACEOF
  6115. ;;
  6116. no)
  6117. ;;
  6118. *)
  6119. { { echo "$as_me:$LINENO: error: unknown endianness
  6120. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6121. echo "$as_me: error: unknown endianness
  6122. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6123. { (exit 1); exit 1; }; } ;;
  6124. esac
  6125. echo "$as_me:$LINENO: checking for inline" >&5
  6126. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6127. if test "${ac_cv_c_inline+set}" = set; then
  6128. echo $ECHO_N "(cached) $ECHO_C" >&6
  6129. else
  6130. ac_cv_c_inline=no
  6131. for ac_kw in inline __inline__ __inline; do
  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. #ifndef __cplusplus
  6139. typedef int foo_t;
  6140. static $ac_kw foo_t static_foo () {return 0; }
  6141. $ac_kw foo_t foo () {return 0; }
  6142. #endif
  6143. _ACEOF
  6144. rm -f conftest.$ac_objext
  6145. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6146. (eval $ac_compile) 2>conftest.er1
  6147. ac_status=$?
  6148. grep -v '^ *+' conftest.er1 >conftest.err
  6149. rm -f conftest.er1
  6150. cat conftest.err >&5
  6151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6152. (exit $ac_status); } &&
  6153. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6154. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6155. (eval $ac_try) 2>&5
  6156. ac_status=$?
  6157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6158. (exit $ac_status); }; } &&
  6159. { ac_try='test -s conftest.$ac_objext'
  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); }; }; then
  6165. ac_cv_c_inline=$ac_kw; break
  6166. else
  6167. echo "$as_me: failed program was:" >&5
  6168. sed 's/^/| /' conftest.$ac_ext >&5
  6169. fi
  6170. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6171. done
  6172. fi
  6173. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6174. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6175. case $ac_cv_c_inline in
  6176. inline | yes) ;;
  6177. *)
  6178. case $ac_cv_c_inline in
  6179. no) ac_val=;;
  6180. *) ac_val=$ac_cv_c_inline;;
  6181. esac
  6182. cat >>confdefs.h <<_ACEOF
  6183. #ifndef __cplusplus
  6184. #define inline $ac_val
  6185. #endif
  6186. _ACEOF
  6187. ;;
  6188. esac
  6189. echo "$as_me:$LINENO: checking for long" >&5
  6190. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6191. if test "${ac_cv_type_long+set}" = set; then
  6192. echo $ECHO_N "(cached) $ECHO_C" >&6
  6193. else
  6194. cat >conftest.$ac_ext <<_ACEOF
  6195. /* confdefs.h. */
  6196. _ACEOF
  6197. cat confdefs.h >>conftest.$ac_ext
  6198. cat >>conftest.$ac_ext <<_ACEOF
  6199. /* end confdefs.h. */
  6200. $ac_includes_default
  6201. int
  6202. main ()
  6203. {
  6204. if ((long *) 0)
  6205. return 0;
  6206. if (sizeof (long))
  6207. return 0;
  6208. ;
  6209. return 0;
  6210. }
  6211. _ACEOF
  6212. rm -f conftest.$ac_objext
  6213. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6214. (eval $ac_compile) 2>conftest.er1
  6215. ac_status=$?
  6216. grep -v '^ *+' conftest.er1 >conftest.err
  6217. rm -f conftest.er1
  6218. cat conftest.err >&5
  6219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6220. (exit $ac_status); } &&
  6221. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6222. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6223. (eval $ac_try) 2>&5
  6224. ac_status=$?
  6225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6226. (exit $ac_status); }; } &&
  6227. { ac_try='test -s conftest.$ac_objext'
  6228. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6229. (eval $ac_try) 2>&5
  6230. ac_status=$?
  6231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6232. (exit $ac_status); }; }; then
  6233. ac_cv_type_long=yes
  6234. else
  6235. echo "$as_me: failed program was:" >&5
  6236. sed 's/^/| /' conftest.$ac_ext >&5
  6237. ac_cv_type_long=no
  6238. fi
  6239. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6240. fi
  6241. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6242. echo "${ECHO_T}$ac_cv_type_long" >&6
  6243. echo "$as_me:$LINENO: checking size of long" >&5
  6244. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6245. if test "${ac_cv_sizeof_long+set}" = set; then
  6246. echo $ECHO_N "(cached) $ECHO_C" >&6
  6247. else
  6248. if test "$ac_cv_type_long" = yes; then
  6249. # The cast to unsigned long works around a bug in the HP C Compiler
  6250. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6251. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6252. # This bug is HP SR number 8606223364.
  6253. if test "$cross_compiling" = yes; then
  6254. # Depending upon the size, compute the lo and hi bounds.
  6255. cat >conftest.$ac_ext <<_ACEOF
  6256. /* confdefs.h. */
  6257. _ACEOF
  6258. cat confdefs.h >>conftest.$ac_ext
  6259. cat >>conftest.$ac_ext <<_ACEOF
  6260. /* end confdefs.h. */
  6261. $ac_includes_default
  6262. int
  6263. main ()
  6264. {
  6265. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6266. test_array [0] = 0
  6267. ;
  6268. return 0;
  6269. }
  6270. _ACEOF
  6271. rm -f conftest.$ac_objext
  6272. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6273. (eval $ac_compile) 2>conftest.er1
  6274. ac_status=$?
  6275. grep -v '^ *+' conftest.er1 >conftest.err
  6276. rm -f conftest.er1
  6277. cat conftest.err >&5
  6278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6279. (exit $ac_status); } &&
  6280. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6281. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6282. (eval $ac_try) 2>&5
  6283. ac_status=$?
  6284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6285. (exit $ac_status); }; } &&
  6286. { ac_try='test -s conftest.$ac_objext'
  6287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6288. (eval $ac_try) 2>&5
  6289. ac_status=$?
  6290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6291. (exit $ac_status); }; }; then
  6292. ac_lo=0 ac_mid=0
  6293. while :; do
  6294. cat >conftest.$ac_ext <<_ACEOF
  6295. /* confdefs.h. */
  6296. _ACEOF
  6297. cat confdefs.h >>conftest.$ac_ext
  6298. cat >>conftest.$ac_ext <<_ACEOF
  6299. /* end confdefs.h. */
  6300. $ac_includes_default
  6301. int
  6302. main ()
  6303. {
  6304. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6305. test_array [0] = 0
  6306. ;
  6307. return 0;
  6308. }
  6309. _ACEOF
  6310. rm -f conftest.$ac_objext
  6311. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6312. (eval $ac_compile) 2>conftest.er1
  6313. ac_status=$?
  6314. grep -v '^ *+' conftest.er1 >conftest.err
  6315. rm -f conftest.er1
  6316. cat conftest.err >&5
  6317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6318. (exit $ac_status); } &&
  6319. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6321. (eval $ac_try) 2>&5
  6322. ac_status=$?
  6323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6324. (exit $ac_status); }; } &&
  6325. { ac_try='test -s conftest.$ac_objext'
  6326. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6327. (eval $ac_try) 2>&5
  6328. ac_status=$?
  6329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6330. (exit $ac_status); }; }; then
  6331. ac_hi=$ac_mid; break
  6332. else
  6333. echo "$as_me: failed program was:" >&5
  6334. sed 's/^/| /' conftest.$ac_ext >&5
  6335. ac_lo=`expr $ac_mid + 1`
  6336. if test $ac_lo -le $ac_mid; then
  6337. ac_lo= ac_hi=
  6338. break
  6339. fi
  6340. ac_mid=`expr 2 '*' $ac_mid + 1`
  6341. fi
  6342. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6343. done
  6344. else
  6345. echo "$as_me: failed program was:" >&5
  6346. sed 's/^/| /' conftest.$ac_ext >&5
  6347. cat >conftest.$ac_ext <<_ACEOF
  6348. /* confdefs.h. */
  6349. _ACEOF
  6350. cat confdefs.h >>conftest.$ac_ext
  6351. cat >>conftest.$ac_ext <<_ACEOF
  6352. /* end confdefs.h. */
  6353. $ac_includes_default
  6354. int
  6355. main ()
  6356. {
  6357. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  6358. test_array [0] = 0
  6359. ;
  6360. return 0;
  6361. }
  6362. _ACEOF
  6363. rm -f conftest.$ac_objext
  6364. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6365. (eval $ac_compile) 2>conftest.er1
  6366. ac_status=$?
  6367. grep -v '^ *+' conftest.er1 >conftest.err
  6368. rm -f conftest.er1
  6369. cat conftest.err >&5
  6370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6371. (exit $ac_status); } &&
  6372. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6373. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6374. (eval $ac_try) 2>&5
  6375. ac_status=$?
  6376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6377. (exit $ac_status); }; } &&
  6378. { ac_try='test -s conftest.$ac_objext'
  6379. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6380. (eval $ac_try) 2>&5
  6381. ac_status=$?
  6382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6383. (exit $ac_status); }; }; then
  6384. ac_hi=-1 ac_mid=-1
  6385. while :; do
  6386. cat >conftest.$ac_ext <<_ACEOF
  6387. /* confdefs.h. */
  6388. _ACEOF
  6389. cat confdefs.h >>conftest.$ac_ext
  6390. cat >>conftest.$ac_ext <<_ACEOF
  6391. /* end confdefs.h. */
  6392. $ac_includes_default
  6393. int
  6394. main ()
  6395. {
  6396. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  6397. test_array [0] = 0
  6398. ;
  6399. return 0;
  6400. }
  6401. _ACEOF
  6402. rm -f conftest.$ac_objext
  6403. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6404. (eval $ac_compile) 2>conftest.er1
  6405. ac_status=$?
  6406. grep -v '^ *+' conftest.er1 >conftest.err
  6407. rm -f conftest.er1
  6408. cat conftest.err >&5
  6409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6410. (exit $ac_status); } &&
  6411. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6412. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6413. (eval $ac_try) 2>&5
  6414. ac_status=$?
  6415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6416. (exit $ac_status); }; } &&
  6417. { ac_try='test -s conftest.$ac_objext'
  6418. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6419. (eval $ac_try) 2>&5
  6420. ac_status=$?
  6421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6422. (exit $ac_status); }; }; then
  6423. ac_lo=$ac_mid; break
  6424. else
  6425. echo "$as_me: failed program was:" >&5
  6426. sed 's/^/| /' conftest.$ac_ext >&5
  6427. ac_hi=`expr '(' $ac_mid ')' - 1`
  6428. if test $ac_mid -le $ac_hi; then
  6429. ac_lo= ac_hi=
  6430. break
  6431. fi
  6432. ac_mid=`expr 2 '*' $ac_mid`
  6433. fi
  6434. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6435. done
  6436. else
  6437. echo "$as_me: failed program was:" >&5
  6438. sed 's/^/| /' conftest.$ac_ext >&5
  6439. ac_lo= ac_hi=
  6440. fi
  6441. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6442. fi
  6443. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6444. # Binary search between lo and hi bounds.
  6445. while test "x$ac_lo" != "x$ac_hi"; do
  6446. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6447. cat >conftest.$ac_ext <<_ACEOF
  6448. /* confdefs.h. */
  6449. _ACEOF
  6450. cat confdefs.h >>conftest.$ac_ext
  6451. cat >>conftest.$ac_ext <<_ACEOF
  6452. /* end confdefs.h. */
  6453. $ac_includes_default
  6454. int
  6455. main ()
  6456. {
  6457. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6458. test_array [0] = 0
  6459. ;
  6460. return 0;
  6461. }
  6462. _ACEOF
  6463. rm -f conftest.$ac_objext
  6464. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6465. (eval $ac_compile) 2>conftest.er1
  6466. ac_status=$?
  6467. grep -v '^ *+' conftest.er1 >conftest.err
  6468. rm -f conftest.er1
  6469. cat conftest.err >&5
  6470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6471. (exit $ac_status); } &&
  6472. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6473. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6474. (eval $ac_try) 2>&5
  6475. ac_status=$?
  6476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6477. (exit $ac_status); }; } &&
  6478. { ac_try='test -s conftest.$ac_objext'
  6479. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6480. (eval $ac_try) 2>&5
  6481. ac_status=$?
  6482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6483. (exit $ac_status); }; }; then
  6484. ac_hi=$ac_mid
  6485. else
  6486. echo "$as_me: failed program was:" >&5
  6487. sed 's/^/| /' conftest.$ac_ext >&5
  6488. ac_lo=`expr '(' $ac_mid ')' + 1`
  6489. fi
  6490. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6491. done
  6492. case $ac_lo in
  6493. ?*) ac_cv_sizeof_long=$ac_lo;;
  6494. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6495. See \`config.log' for more details." >&5
  6496. echo "$as_me: error: cannot compute sizeof (long), 77
  6497. See \`config.log' for more details." >&2;}
  6498. { (exit 1); exit 1; }; } ;;
  6499. esac
  6500. else
  6501. if test "$cross_compiling" = yes; then
  6502. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6503. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6504. { (exit 1); exit 1; }; }
  6505. else
  6506. cat >conftest.$ac_ext <<_ACEOF
  6507. /* confdefs.h. */
  6508. _ACEOF
  6509. cat confdefs.h >>conftest.$ac_ext
  6510. cat >>conftest.$ac_ext <<_ACEOF
  6511. /* end confdefs.h. */
  6512. $ac_includes_default
  6513. long longval () { return (long) (sizeof (long)); }
  6514. unsigned long ulongval () { return (long) (sizeof (long)); }
  6515. #include <stdio.h>
  6516. #include <stdlib.h>
  6517. int
  6518. main ()
  6519. {
  6520. FILE *f = fopen ("conftest.val", "w");
  6521. if (! f)
  6522. exit (1);
  6523. if (((long) (sizeof (long))) < 0)
  6524. {
  6525. long i = longval ();
  6526. if (i != ((long) (sizeof (long))))
  6527. exit (1);
  6528. fprintf (f, "%ld\n", i);
  6529. }
  6530. else
  6531. {
  6532. unsigned long i = ulongval ();
  6533. if (i != ((long) (sizeof (long))))
  6534. exit (1);
  6535. fprintf (f, "%lu\n", i);
  6536. }
  6537. exit (ferror (f) || fclose (f) != 0);
  6538. ;
  6539. return 0;
  6540. }
  6541. _ACEOF
  6542. rm -f conftest$ac_exeext
  6543. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6544. (eval $ac_link) 2>&5
  6545. ac_status=$?
  6546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6547. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6548. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6549. (eval $ac_try) 2>&5
  6550. ac_status=$?
  6551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6552. (exit $ac_status); }; }; then
  6553. ac_cv_sizeof_long=`cat conftest.val`
  6554. else
  6555. echo "$as_me: program exited with status $ac_status" >&5
  6556. echo "$as_me: failed program was:" >&5
  6557. sed 's/^/| /' conftest.$ac_ext >&5
  6558. ( exit $ac_status )
  6559. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6560. See \`config.log' for more details." >&5
  6561. echo "$as_me: error: cannot compute sizeof (long), 77
  6562. See \`config.log' for more details." >&2;}
  6563. { (exit 1); exit 1; }; }
  6564. fi
  6565. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6566. fi
  6567. fi
  6568. rm -f conftest.val
  6569. else
  6570. ac_cv_sizeof_long=0
  6571. fi
  6572. fi
  6573. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6574. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  6575. cat >>confdefs.h <<_ACEOF
  6576. #define SIZEOF_LONG $ac_cv_sizeof_long
  6577. _ACEOF
  6578. echo "$as_me:$LINENO: checking for int" >&5
  6579. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6580. if test "${ac_cv_type_int+set}" = set; then
  6581. echo $ECHO_N "(cached) $ECHO_C" >&6
  6582. else
  6583. cat >conftest.$ac_ext <<_ACEOF
  6584. /* confdefs.h. */
  6585. _ACEOF
  6586. cat confdefs.h >>conftest.$ac_ext
  6587. cat >>conftest.$ac_ext <<_ACEOF
  6588. /* end confdefs.h. */
  6589. $ac_includes_default
  6590. int
  6591. main ()
  6592. {
  6593. if ((int *) 0)
  6594. return 0;
  6595. if (sizeof (int))
  6596. return 0;
  6597. ;
  6598. return 0;
  6599. }
  6600. _ACEOF
  6601. rm -f conftest.$ac_objext
  6602. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6603. (eval $ac_compile) 2>conftest.er1
  6604. ac_status=$?
  6605. grep -v '^ *+' conftest.er1 >conftest.err
  6606. rm -f conftest.er1
  6607. cat conftest.err >&5
  6608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6609. (exit $ac_status); } &&
  6610. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6611. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6612. (eval $ac_try) 2>&5
  6613. ac_status=$?
  6614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6615. (exit $ac_status); }; } &&
  6616. { ac_try='test -s conftest.$ac_objext'
  6617. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6618. (eval $ac_try) 2>&5
  6619. ac_status=$?
  6620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6621. (exit $ac_status); }; }; then
  6622. ac_cv_type_int=yes
  6623. else
  6624. echo "$as_me: failed program was:" >&5
  6625. sed 's/^/| /' conftest.$ac_ext >&5
  6626. ac_cv_type_int=no
  6627. fi
  6628. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6629. fi
  6630. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6631. echo "${ECHO_T}$ac_cv_type_int" >&6
  6632. echo "$as_me:$LINENO: checking size of int" >&5
  6633. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6634. if test "${ac_cv_sizeof_int+set}" = set; then
  6635. echo $ECHO_N "(cached) $ECHO_C" >&6
  6636. else
  6637. if test "$ac_cv_type_int" = yes; then
  6638. # The cast to unsigned long works around a bug in the HP C Compiler
  6639. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6640. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6641. # This bug is HP SR number 8606223364.
  6642. if test "$cross_compiling" = yes; then
  6643. # Depending upon the size, compute the lo and hi bounds.
  6644. cat >conftest.$ac_ext <<_ACEOF
  6645. /* confdefs.h. */
  6646. _ACEOF
  6647. cat confdefs.h >>conftest.$ac_ext
  6648. cat >>conftest.$ac_ext <<_ACEOF
  6649. /* end confdefs.h. */
  6650. $ac_includes_default
  6651. int
  6652. main ()
  6653. {
  6654. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6655. test_array [0] = 0
  6656. ;
  6657. return 0;
  6658. }
  6659. _ACEOF
  6660. rm -f conftest.$ac_objext
  6661. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6662. (eval $ac_compile) 2>conftest.er1
  6663. ac_status=$?
  6664. grep -v '^ *+' conftest.er1 >conftest.err
  6665. rm -f conftest.er1
  6666. cat conftest.err >&5
  6667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6668. (exit $ac_status); } &&
  6669. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6670. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6671. (eval $ac_try) 2>&5
  6672. ac_status=$?
  6673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6674. (exit $ac_status); }; } &&
  6675. { ac_try='test -s conftest.$ac_objext'
  6676. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6677. (eval $ac_try) 2>&5
  6678. ac_status=$?
  6679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6680. (exit $ac_status); }; }; then
  6681. ac_lo=0 ac_mid=0
  6682. while :; do
  6683. cat >conftest.$ac_ext <<_ACEOF
  6684. /* confdefs.h. */
  6685. _ACEOF
  6686. cat confdefs.h >>conftest.$ac_ext
  6687. cat >>conftest.$ac_ext <<_ACEOF
  6688. /* end confdefs.h. */
  6689. $ac_includes_default
  6690. int
  6691. main ()
  6692. {
  6693. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6694. test_array [0] = 0
  6695. ;
  6696. return 0;
  6697. }
  6698. _ACEOF
  6699. rm -f conftest.$ac_objext
  6700. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6701. (eval $ac_compile) 2>conftest.er1
  6702. ac_status=$?
  6703. grep -v '^ *+' conftest.er1 >conftest.err
  6704. rm -f conftest.er1
  6705. cat conftest.err >&5
  6706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6707. (exit $ac_status); } &&
  6708. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6709. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6710. (eval $ac_try) 2>&5
  6711. ac_status=$?
  6712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6713. (exit $ac_status); }; } &&
  6714. { ac_try='test -s conftest.$ac_objext'
  6715. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6716. (eval $ac_try) 2>&5
  6717. ac_status=$?
  6718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6719. (exit $ac_status); }; }; then
  6720. ac_hi=$ac_mid; break
  6721. else
  6722. echo "$as_me: failed program was:" >&5
  6723. sed 's/^/| /' conftest.$ac_ext >&5
  6724. ac_lo=`expr $ac_mid + 1`
  6725. if test $ac_lo -le $ac_mid; then
  6726. ac_lo= ac_hi=
  6727. break
  6728. fi
  6729. ac_mid=`expr 2 '*' $ac_mid + 1`
  6730. fi
  6731. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6732. done
  6733. else
  6734. echo "$as_me: failed program was:" >&5
  6735. sed 's/^/| /' conftest.$ac_ext >&5
  6736. cat >conftest.$ac_ext <<_ACEOF
  6737. /* confdefs.h. */
  6738. _ACEOF
  6739. cat confdefs.h >>conftest.$ac_ext
  6740. cat >>conftest.$ac_ext <<_ACEOF
  6741. /* end confdefs.h. */
  6742. $ac_includes_default
  6743. int
  6744. main ()
  6745. {
  6746. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6747. test_array [0] = 0
  6748. ;
  6749. return 0;
  6750. }
  6751. _ACEOF
  6752. rm -f conftest.$ac_objext
  6753. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6754. (eval $ac_compile) 2>conftest.er1
  6755. ac_status=$?
  6756. grep -v '^ *+' conftest.er1 >conftest.err
  6757. rm -f conftest.er1
  6758. cat conftest.err >&5
  6759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6760. (exit $ac_status); } &&
  6761. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6762. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6763. (eval $ac_try) 2>&5
  6764. ac_status=$?
  6765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6766. (exit $ac_status); }; } &&
  6767. { ac_try='test -s conftest.$ac_objext'
  6768. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6769. (eval $ac_try) 2>&5
  6770. ac_status=$?
  6771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6772. (exit $ac_status); }; }; then
  6773. ac_hi=-1 ac_mid=-1
  6774. while :; do
  6775. cat >conftest.$ac_ext <<_ACEOF
  6776. /* confdefs.h. */
  6777. _ACEOF
  6778. cat confdefs.h >>conftest.$ac_ext
  6779. cat >>conftest.$ac_ext <<_ACEOF
  6780. /* end confdefs.h. */
  6781. $ac_includes_default
  6782. int
  6783. main ()
  6784. {
  6785. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6786. test_array [0] = 0
  6787. ;
  6788. return 0;
  6789. }
  6790. _ACEOF
  6791. rm -f conftest.$ac_objext
  6792. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6793. (eval $ac_compile) 2>conftest.er1
  6794. ac_status=$?
  6795. grep -v '^ *+' conftest.er1 >conftest.err
  6796. rm -f conftest.er1
  6797. cat conftest.err >&5
  6798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6799. (exit $ac_status); } &&
  6800. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6801. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6802. (eval $ac_try) 2>&5
  6803. ac_status=$?
  6804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6805. (exit $ac_status); }; } &&
  6806. { ac_try='test -s conftest.$ac_objext'
  6807. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6808. (eval $ac_try) 2>&5
  6809. ac_status=$?
  6810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6811. (exit $ac_status); }; }; then
  6812. ac_lo=$ac_mid; break
  6813. else
  6814. echo "$as_me: failed program was:" >&5
  6815. sed 's/^/| /' conftest.$ac_ext >&5
  6816. ac_hi=`expr '(' $ac_mid ')' - 1`
  6817. if test $ac_mid -le $ac_hi; then
  6818. ac_lo= ac_hi=
  6819. break
  6820. fi
  6821. ac_mid=`expr 2 '*' $ac_mid`
  6822. fi
  6823. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6824. done
  6825. else
  6826. echo "$as_me: failed program was:" >&5
  6827. sed 's/^/| /' conftest.$ac_ext >&5
  6828. ac_lo= ac_hi=
  6829. fi
  6830. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6831. fi
  6832. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6833. # Binary search between lo and hi bounds.
  6834. while test "x$ac_lo" != "x$ac_hi"; do
  6835. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6836. cat >conftest.$ac_ext <<_ACEOF
  6837. /* confdefs.h. */
  6838. _ACEOF
  6839. cat confdefs.h >>conftest.$ac_ext
  6840. cat >>conftest.$ac_ext <<_ACEOF
  6841. /* end confdefs.h. */
  6842. $ac_includes_default
  6843. int
  6844. main ()
  6845. {
  6846. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6847. test_array [0] = 0
  6848. ;
  6849. return 0;
  6850. }
  6851. _ACEOF
  6852. rm -f conftest.$ac_objext
  6853. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6854. (eval $ac_compile) 2>conftest.er1
  6855. ac_status=$?
  6856. grep -v '^ *+' conftest.er1 >conftest.err
  6857. rm -f conftest.er1
  6858. cat conftest.err >&5
  6859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6860. (exit $ac_status); } &&
  6861. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6862. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6863. (eval $ac_try) 2>&5
  6864. ac_status=$?
  6865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6866. (exit $ac_status); }; } &&
  6867. { ac_try='test -s conftest.$ac_objext'
  6868. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6869. (eval $ac_try) 2>&5
  6870. ac_status=$?
  6871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6872. (exit $ac_status); }; }; then
  6873. ac_hi=$ac_mid
  6874. else
  6875. echo "$as_me: failed program was:" >&5
  6876. sed 's/^/| /' conftest.$ac_ext >&5
  6877. ac_lo=`expr '(' $ac_mid ')' + 1`
  6878. fi
  6879. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6880. done
  6881. case $ac_lo in
  6882. ?*) ac_cv_sizeof_int=$ac_lo;;
  6883. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6884. See \`config.log' for more details." >&5
  6885. echo "$as_me: error: cannot compute sizeof (int), 77
  6886. See \`config.log' for more details." >&2;}
  6887. { (exit 1); exit 1; }; } ;;
  6888. esac
  6889. else
  6890. if test "$cross_compiling" = yes; then
  6891. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6892. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6893. { (exit 1); exit 1; }; }
  6894. else
  6895. cat >conftest.$ac_ext <<_ACEOF
  6896. /* confdefs.h. */
  6897. _ACEOF
  6898. cat confdefs.h >>conftest.$ac_ext
  6899. cat >>conftest.$ac_ext <<_ACEOF
  6900. /* end confdefs.h. */
  6901. $ac_includes_default
  6902. long longval () { return (long) (sizeof (int)); }
  6903. unsigned long ulongval () { return (long) (sizeof (int)); }
  6904. #include <stdio.h>
  6905. #include <stdlib.h>
  6906. int
  6907. main ()
  6908. {
  6909. FILE *f = fopen ("conftest.val", "w");
  6910. if (! f)
  6911. exit (1);
  6912. if (((long) (sizeof (int))) < 0)
  6913. {
  6914. long i = longval ();
  6915. if (i != ((long) (sizeof (int))))
  6916. exit (1);
  6917. fprintf (f, "%ld\n", i);
  6918. }
  6919. else
  6920. {
  6921. unsigned long i = ulongval ();
  6922. if (i != ((long) (sizeof (int))))
  6923. exit (1);
  6924. fprintf (f, "%lu\n", i);
  6925. }
  6926. exit (ferror (f) || fclose (f) != 0);
  6927. ;
  6928. return 0;
  6929. }
  6930. _ACEOF
  6931. rm -f conftest$ac_exeext
  6932. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6933. (eval $ac_link) 2>&5
  6934. ac_status=$?
  6935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6936. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6937. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6938. (eval $ac_try) 2>&5
  6939. ac_status=$?
  6940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6941. (exit $ac_status); }; }; then
  6942. ac_cv_sizeof_int=`cat conftest.val`
  6943. else
  6944. echo "$as_me: program exited with status $ac_status" >&5
  6945. echo "$as_me: failed program was:" >&5
  6946. sed 's/^/| /' conftest.$ac_ext >&5
  6947. ( exit $ac_status )
  6948. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6949. See \`config.log' for more details." >&5
  6950. echo "$as_me: error: cannot compute sizeof (int), 77
  6951. See \`config.log' for more details." >&2;}
  6952. { (exit 1); exit 1; }; }
  6953. fi
  6954. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6955. fi
  6956. fi
  6957. rm -f conftest.val
  6958. else
  6959. ac_cv_sizeof_int=0
  6960. fi
  6961. fi
  6962. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6963. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6964. cat >>confdefs.h <<_ACEOF
  6965. #define SIZEOF_INT $ac_cv_sizeof_int
  6966. _ACEOF
  6967. #checkpoint
  6968. cat >confcache <<\_ACEOF
  6969. # This file is a shell script that caches the results of configure
  6970. # tests run on this system so they can be shared between configure
  6971. # scripts and configure runs, see configure's option --config-cache.
  6972. # It is not useful on other systems. If it contains results you don't
  6973. # want to keep, you may remove or edit it.
  6974. #
  6975. # config.status only pays attention to the cache file if you give it
  6976. # the --recheck option to rerun configure.
  6977. #
  6978. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6979. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6980. # following values.
  6981. _ACEOF
  6982. # The following way of writing the cache mishandles newlines in values,
  6983. # but we know of no workaround that is simple, portable, and efficient.
  6984. # So, don't put newlines in cache variables' values.
  6985. # Ultrix sh set writes to stderr and can't be redirected directly,
  6986. # and sets the high bit in the cache file unless we assign to the vars.
  6987. {
  6988. (set) 2>&1 |
  6989. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6990. *ac_space=\ *)
  6991. # `set' does not quote correctly, so add quotes (double-quote
  6992. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6993. sed -n \
  6994. "s/'/'\\\\''/g;
  6995. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6996. ;;
  6997. *)
  6998. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6999. sed -n \
  7000. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7001. ;;
  7002. esac;
  7003. } |
  7004. sed '
  7005. t clear
  7006. : clear
  7007. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7008. t end
  7009. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7010. : end' >>confcache
  7011. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7012. if test -w $cache_file; then
  7013. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  7014. cat confcache >$cache_file
  7015. else
  7016. echo "not updating unwritable cache $cache_file"
  7017. fi
  7018. fi
  7019. rm -f confcache
  7020. echo "$as_me:$LINENO: checking for working volatile" >&5
  7021. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  7022. if test "${ac_cv_c_volatile+set}" = set; then
  7023. echo $ECHO_N "(cached) $ECHO_C" >&6
  7024. else
  7025. cat >conftest.$ac_ext <<_ACEOF
  7026. /* confdefs.h. */
  7027. _ACEOF
  7028. cat confdefs.h >>conftest.$ac_ext
  7029. cat >>conftest.$ac_ext <<_ACEOF
  7030. /* end confdefs.h. */
  7031. int
  7032. main ()
  7033. {
  7034. volatile int x;
  7035. int * volatile y;
  7036. ;
  7037. return 0;
  7038. }
  7039. _ACEOF
  7040. rm -f conftest.$ac_objext
  7041. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7042. (eval $ac_compile) 2>conftest.er1
  7043. ac_status=$?
  7044. grep -v '^ *+' conftest.er1 >conftest.err
  7045. rm -f conftest.er1
  7046. cat conftest.err >&5
  7047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7048. (exit $ac_status); } &&
  7049. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7050. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7051. (eval $ac_try) 2>&5
  7052. ac_status=$?
  7053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7054. (exit $ac_status); }; } &&
  7055. { ac_try='test -s conftest.$ac_objext'
  7056. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7057. (eval $ac_try) 2>&5
  7058. ac_status=$?
  7059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7060. (exit $ac_status); }; }; then
  7061. ac_cv_c_volatile=yes
  7062. else
  7063. echo "$as_me: failed program was:" >&5
  7064. sed 's/^/| /' conftest.$ac_ext >&5
  7065. ac_cv_c_volatile=no
  7066. fi
  7067. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7068. fi
  7069. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  7070. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  7071. if test $ac_cv_c_volatile = no; then
  7072. cat >>confdefs.h <<\_ACEOF
  7073. #define volatile
  7074. _ACEOF
  7075. fi
  7076. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  7077. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  7078. if test "${ac_cv_header_stat_broken+set}" = set; then
  7079. echo $ECHO_N "(cached) $ECHO_C" >&6
  7080. else
  7081. cat >conftest.$ac_ext <<_ACEOF
  7082. /* confdefs.h. */
  7083. _ACEOF
  7084. cat confdefs.h >>conftest.$ac_ext
  7085. cat >>conftest.$ac_ext <<_ACEOF
  7086. /* end confdefs.h. */
  7087. #include <sys/types.h>
  7088. #include <sys/stat.h>
  7089. #if defined(S_ISBLK) && defined(S_IFDIR)
  7090. # if S_ISBLK (S_IFDIR)
  7091. You lose.
  7092. # endif
  7093. #endif
  7094. #if defined(S_ISBLK) && defined(S_IFCHR)
  7095. # if S_ISBLK (S_IFCHR)
  7096. You lose.
  7097. # endif
  7098. #endif
  7099. #if defined(S_ISLNK) && defined(S_IFREG)
  7100. # if S_ISLNK (S_IFREG)
  7101. You lose.
  7102. # endif
  7103. #endif
  7104. #if defined(S_ISSOCK) && defined(S_IFREG)
  7105. # if S_ISSOCK (S_IFREG)
  7106. You lose.
  7107. # endif
  7108. #endif
  7109. _ACEOF
  7110. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7111. $EGREP "You lose" >/dev/null 2>&1; then
  7112. ac_cv_header_stat_broken=yes
  7113. else
  7114. ac_cv_header_stat_broken=no
  7115. fi
  7116. rm -f conftest*
  7117. fi
  7118. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  7119. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  7120. if test $ac_cv_header_stat_broken = yes; then
  7121. cat >>confdefs.h <<\_ACEOF
  7122. #define STAT_MACROS_BROKEN 1
  7123. _ACEOF
  7124. fi
  7125. if test $ac_cv_c_compiler_gnu = yes; then
  7126. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7127. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7128. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7129. echo $ECHO_N "(cached) $ECHO_C" >&6
  7130. else
  7131. ac_pattern="Autoconf.*'x'"
  7132. cat >conftest.$ac_ext <<_ACEOF
  7133. /* confdefs.h. */
  7134. _ACEOF
  7135. cat confdefs.h >>conftest.$ac_ext
  7136. cat >>conftest.$ac_ext <<_ACEOF
  7137. /* end confdefs.h. */
  7138. #include <sgtty.h>
  7139. Autoconf TIOCGETP
  7140. _ACEOF
  7141. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7142. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7143. ac_cv_prog_gcc_traditional=yes
  7144. else
  7145. ac_cv_prog_gcc_traditional=no
  7146. fi
  7147. rm -f conftest*
  7148. if test $ac_cv_prog_gcc_traditional = no; then
  7149. cat >conftest.$ac_ext <<_ACEOF
  7150. /* confdefs.h. */
  7151. _ACEOF
  7152. cat confdefs.h >>conftest.$ac_ext
  7153. cat >>conftest.$ac_ext <<_ACEOF
  7154. /* end confdefs.h. */
  7155. #include <termio.h>
  7156. Autoconf TCGETA
  7157. _ACEOF
  7158. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7159. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7160. ac_cv_prog_gcc_traditional=yes
  7161. fi
  7162. rm -f conftest*
  7163. fi
  7164. fi
  7165. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7166. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7167. if test $ac_cv_prog_gcc_traditional = yes; then
  7168. CC="$CC -traditional"
  7169. fi
  7170. fi
  7171. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7172. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7173. if test "${ac_cv_struct_tm+set}" = set; then
  7174. echo $ECHO_N "(cached) $ECHO_C" >&6
  7175. else
  7176. cat >conftest.$ac_ext <<_ACEOF
  7177. /* confdefs.h. */
  7178. _ACEOF
  7179. cat confdefs.h >>conftest.$ac_ext
  7180. cat >>conftest.$ac_ext <<_ACEOF
  7181. /* end confdefs.h. */
  7182. #include <sys/types.h>
  7183. #include <time.h>
  7184. int
  7185. main ()
  7186. {
  7187. struct tm *tp; tp->tm_sec;
  7188. ;
  7189. return 0;
  7190. }
  7191. _ACEOF
  7192. rm -f conftest.$ac_objext
  7193. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7194. (eval $ac_compile) 2>conftest.er1
  7195. ac_status=$?
  7196. grep -v '^ *+' conftest.er1 >conftest.err
  7197. rm -f conftest.er1
  7198. cat conftest.err >&5
  7199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7200. (exit $ac_status); } &&
  7201. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7202. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7203. (eval $ac_try) 2>&5
  7204. ac_status=$?
  7205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7206. (exit $ac_status); }; } &&
  7207. { ac_try='test -s conftest.$ac_objext'
  7208. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7209. (eval $ac_try) 2>&5
  7210. ac_status=$?
  7211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7212. (exit $ac_status); }; }; then
  7213. ac_cv_struct_tm=time.h
  7214. else
  7215. echo "$as_me: failed program was:" >&5
  7216. sed 's/^/| /' conftest.$ac_ext >&5
  7217. ac_cv_struct_tm=sys/time.h
  7218. fi
  7219. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7220. fi
  7221. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7222. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7223. if test $ac_cv_struct_tm = sys/time.h; then
  7224. cat >>confdefs.h <<\_ACEOF
  7225. #define TM_IN_SYS_TIME 1
  7226. _ACEOF
  7227. fi
  7228. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7229. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7230. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7231. echo $ECHO_N "(cached) $ECHO_C" >&6
  7232. else
  7233. cat >conftest.$ac_ext <<_ACEOF
  7234. /* confdefs.h. */
  7235. _ACEOF
  7236. cat confdefs.h >>conftest.$ac_ext
  7237. cat >>conftest.$ac_ext <<_ACEOF
  7238. /* end confdefs.h. */
  7239. #include <sys/types.h>
  7240. #include <$ac_cv_struct_tm>
  7241. int
  7242. main ()
  7243. {
  7244. static struct tm ac_aggr;
  7245. if (ac_aggr.tm_zone)
  7246. return 0;
  7247. ;
  7248. return 0;
  7249. }
  7250. _ACEOF
  7251. rm -f conftest.$ac_objext
  7252. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7253. (eval $ac_compile) 2>conftest.er1
  7254. ac_status=$?
  7255. grep -v '^ *+' conftest.er1 >conftest.err
  7256. rm -f conftest.er1
  7257. cat conftest.err >&5
  7258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7259. (exit $ac_status); } &&
  7260. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7261. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7262. (eval $ac_try) 2>&5
  7263. ac_status=$?
  7264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7265. (exit $ac_status); }; } &&
  7266. { ac_try='test -s conftest.$ac_objext'
  7267. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7268. (eval $ac_try) 2>&5
  7269. ac_status=$?
  7270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7271. (exit $ac_status); }; }; then
  7272. ac_cv_member_struct_tm_tm_zone=yes
  7273. else
  7274. echo "$as_me: failed program was:" >&5
  7275. sed 's/^/| /' conftest.$ac_ext >&5
  7276. cat >conftest.$ac_ext <<_ACEOF
  7277. /* confdefs.h. */
  7278. _ACEOF
  7279. cat confdefs.h >>conftest.$ac_ext
  7280. cat >>conftest.$ac_ext <<_ACEOF
  7281. /* end confdefs.h. */
  7282. #include <sys/types.h>
  7283. #include <$ac_cv_struct_tm>
  7284. int
  7285. main ()
  7286. {
  7287. static struct tm ac_aggr;
  7288. if (sizeof ac_aggr.tm_zone)
  7289. return 0;
  7290. ;
  7291. return 0;
  7292. }
  7293. _ACEOF
  7294. rm -f conftest.$ac_objext
  7295. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7296. (eval $ac_compile) 2>conftest.er1
  7297. ac_status=$?
  7298. grep -v '^ *+' conftest.er1 >conftest.err
  7299. rm -f conftest.er1
  7300. cat conftest.err >&5
  7301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7302. (exit $ac_status); } &&
  7303. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7304. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7305. (eval $ac_try) 2>&5
  7306. ac_status=$?
  7307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7308. (exit $ac_status); }; } &&
  7309. { ac_try='test -s conftest.$ac_objext'
  7310. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7311. (eval $ac_try) 2>&5
  7312. ac_status=$?
  7313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7314. (exit $ac_status); }; }; then
  7315. ac_cv_member_struct_tm_tm_zone=yes
  7316. else
  7317. echo "$as_me: failed program was:" >&5
  7318. sed 's/^/| /' conftest.$ac_ext >&5
  7319. ac_cv_member_struct_tm_tm_zone=no
  7320. fi
  7321. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7322. fi
  7323. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7324. fi
  7325. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7326. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7327. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7328. cat >>confdefs.h <<_ACEOF
  7329. #define HAVE_STRUCT_TM_TM_ZONE 1
  7330. _ACEOF
  7331. fi
  7332. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7333. cat >>confdefs.h <<\_ACEOF
  7334. #define HAVE_TM_ZONE 1
  7335. _ACEOF
  7336. else
  7337. echo "$as_me:$LINENO: checking for tzname" >&5
  7338. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7339. if test "${ac_cv_var_tzname+set}" = set; then
  7340. echo $ECHO_N "(cached) $ECHO_C" >&6
  7341. else
  7342. cat >conftest.$ac_ext <<_ACEOF
  7343. /* confdefs.h. */
  7344. _ACEOF
  7345. cat confdefs.h >>conftest.$ac_ext
  7346. cat >>conftest.$ac_ext <<_ACEOF
  7347. /* end confdefs.h. */
  7348. #include <time.h>
  7349. #ifndef tzname /* For SGI. */
  7350. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7351. #endif
  7352. int
  7353. main ()
  7354. {
  7355. atoi(*tzname);
  7356. ;
  7357. return 0;
  7358. }
  7359. _ACEOF
  7360. rm -f conftest.$ac_objext conftest$ac_exeext
  7361. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7362. (eval $ac_link) 2>conftest.er1
  7363. ac_status=$?
  7364. grep -v '^ *+' conftest.er1 >conftest.err
  7365. rm -f conftest.er1
  7366. cat conftest.err >&5
  7367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7368. (exit $ac_status); } &&
  7369. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7370. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7371. (eval $ac_try) 2>&5
  7372. ac_status=$?
  7373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7374. (exit $ac_status); }; } &&
  7375. { ac_try='test -s conftest$ac_exeext'
  7376. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7377. (eval $ac_try) 2>&5
  7378. ac_status=$?
  7379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7380. (exit $ac_status); }; }; then
  7381. ac_cv_var_tzname=yes
  7382. else
  7383. echo "$as_me: failed program was:" >&5
  7384. sed 's/^/| /' conftest.$ac_ext >&5
  7385. ac_cv_var_tzname=no
  7386. fi
  7387. rm -f conftest.err conftest.$ac_objext \
  7388. conftest$ac_exeext conftest.$ac_ext
  7389. fi
  7390. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7391. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7392. if test $ac_cv_var_tzname = yes; then
  7393. cat >>confdefs.h <<\_ACEOF
  7394. #define HAVE_TZNAME 1
  7395. _ACEOF
  7396. fi
  7397. fi
  7398. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7399. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7400. if test "${ac_cv_struct_tm+set}" = set; then
  7401. echo $ECHO_N "(cached) $ECHO_C" >&6
  7402. else
  7403. cat >conftest.$ac_ext <<_ACEOF
  7404. /* confdefs.h. */
  7405. _ACEOF
  7406. cat confdefs.h >>conftest.$ac_ext
  7407. cat >>conftest.$ac_ext <<_ACEOF
  7408. /* end confdefs.h. */
  7409. #include <sys/types.h>
  7410. #include <time.h>
  7411. int
  7412. main ()
  7413. {
  7414. struct tm *tp; tp->tm_sec;
  7415. ;
  7416. return 0;
  7417. }
  7418. _ACEOF
  7419. rm -f conftest.$ac_objext
  7420. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7421. (eval $ac_compile) 2>conftest.er1
  7422. ac_status=$?
  7423. grep -v '^ *+' conftest.er1 >conftest.err
  7424. rm -f conftest.er1
  7425. cat conftest.err >&5
  7426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7427. (exit $ac_status); } &&
  7428. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7429. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7430. (eval $ac_try) 2>&5
  7431. ac_status=$?
  7432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7433. (exit $ac_status); }; } &&
  7434. { ac_try='test -s conftest.$ac_objext'
  7435. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7436. (eval $ac_try) 2>&5
  7437. ac_status=$?
  7438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7439. (exit $ac_status); }; }; then
  7440. ac_cv_struct_tm=time.h
  7441. else
  7442. echo "$as_me: failed program was:" >&5
  7443. sed 's/^/| /' conftest.$ac_ext >&5
  7444. ac_cv_struct_tm=sys/time.h
  7445. fi
  7446. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7447. fi
  7448. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7449. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7450. if test $ac_cv_struct_tm = sys/time.h; then
  7451. cat >>confdefs.h <<\_ACEOF
  7452. #define TM_IN_SYS_TIME 1
  7453. _ACEOF
  7454. fi
  7455. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  7456. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  7457. if test "${ac_cv_type_uid_t+set}" = set; then
  7458. echo $ECHO_N "(cached) $ECHO_C" >&6
  7459. else
  7460. cat >conftest.$ac_ext <<_ACEOF
  7461. /* confdefs.h. */
  7462. _ACEOF
  7463. cat confdefs.h >>conftest.$ac_ext
  7464. cat >>conftest.$ac_ext <<_ACEOF
  7465. /* end confdefs.h. */
  7466. #include <sys/types.h>
  7467. _ACEOF
  7468. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7469. $EGREP "uid_t" >/dev/null 2>&1; then
  7470. ac_cv_type_uid_t=yes
  7471. else
  7472. ac_cv_type_uid_t=no
  7473. fi
  7474. rm -f conftest*
  7475. fi
  7476. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  7477. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  7478. if test $ac_cv_type_uid_t = no; then
  7479. cat >>confdefs.h <<\_ACEOF
  7480. #define uid_t int
  7481. _ACEOF
  7482. cat >>confdefs.h <<\_ACEOF
  7483. #define gid_t int
  7484. _ACEOF
  7485. fi
  7486. #checkpoint
  7487. cat >confcache <<\_ACEOF
  7488. # This file is a shell script that caches the results of configure
  7489. # tests run on this system so they can be shared between configure
  7490. # scripts and configure runs, see configure's option --config-cache.
  7491. # It is not useful on other systems. If it contains results you don't
  7492. # want to keep, you may remove or edit it.
  7493. #
  7494. # config.status only pays attention to the cache file if you give it
  7495. # the --recheck option to rerun configure.
  7496. #
  7497. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7498. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7499. # following values.
  7500. _ACEOF
  7501. # The following way of writing the cache mishandles newlines in values,
  7502. # but we know of no workaround that is simple, portable, and efficient.
  7503. # So, don't put newlines in cache variables' values.
  7504. # Ultrix sh set writes to stderr and can't be redirected directly,
  7505. # and sets the high bit in the cache file unless we assign to the vars.
  7506. {
  7507. (set) 2>&1 |
  7508. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7509. *ac_space=\ *)
  7510. # `set' does not quote correctly, so add quotes (double-quote
  7511. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7512. sed -n \
  7513. "s/'/'\\\\''/g;
  7514. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7515. ;;
  7516. *)
  7517. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7518. sed -n \
  7519. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7520. ;;
  7521. esac;
  7522. } |
  7523. sed '
  7524. t clear
  7525. : clear
  7526. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7527. t end
  7528. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7529. : end' >>confcache
  7530. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7531. if test -w $cache_file; then
  7532. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  7533. cat confcache >$cache_file
  7534. else
  7535. echo "not updating unwritable cache $cache_file"
  7536. fi
  7537. fi
  7538. rm -f confcache
  7539. # Check for IPv6 support
  7540. #EGG_IPV6_SUPPORTED
  7541. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  7542. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  7543. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  7544. if test "${enable_ipv6+set}" = set; then
  7545. enableval="$enable_ipv6"
  7546. ac_cv_dipv6="yes"
  7547. echo "$as_me:$LINENO: result: yes" >&5
  7548. echo "${ECHO_T}yes" >&6
  7549. else
  7550. ac_cv_dipv6="no"
  7551. if test "$egg_cv_ipv6_supported" = "no"; then
  7552. ac_cv_dipv6="no"
  7553. fi
  7554. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  7555. echo "${ECHO_T}$ac_cv_dipv6" >&6
  7556. fi;
  7557. if test "$ac_cv_dipv6" = "no"; then
  7558. cat >>confdefs.h <<\_ACEOF
  7559. #define USE_IPV6 1
  7560. _ACEOF
  7561. fi
  7562. echo "$as_me:$LINENO: checking for socklen_t" >&5
  7563. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  7564. if test "${egg_cv_socklen_t+set}" = set; then
  7565. echo $ECHO_N "(cached) $ECHO_C" >&6
  7566. else
  7567. if test "$cross_compiling" = yes; then
  7568. egg_cv_socklen_t=no
  7569. else
  7570. cat >conftest.$ac_ext <<_ACEOF
  7571. /* confdefs.h. */
  7572. _ACEOF
  7573. cat confdefs.h >>conftest.$ac_ext
  7574. cat >>conftest.$ac_ext <<_ACEOF
  7575. /* end confdefs.h. */
  7576. #include <unistd.h>
  7577. #include <sys/types.h>
  7578. #include <sys/socket.h>
  7579. #include <netinet/in.h>
  7580. #include <arpa/inet.h>
  7581. int main()
  7582. {
  7583. socklen_t test = sizeof(int);
  7584. return 0;
  7585. }
  7586. _ACEOF
  7587. rm -f conftest$ac_exeext
  7588. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7589. (eval $ac_link) 2>&5
  7590. ac_status=$?
  7591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7592. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7593. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7594. (eval $ac_try) 2>&5
  7595. ac_status=$?
  7596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7597. (exit $ac_status); }; }; then
  7598. egg_cv_socklen_t=yes
  7599. else
  7600. echo "$as_me: program exited with status $ac_status" >&5
  7601. echo "$as_me: failed program was:" >&5
  7602. sed 's/^/| /' conftest.$ac_ext >&5
  7603. ( exit $ac_status )
  7604. egg_cv_socklen_t=no
  7605. fi
  7606. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7607. fi
  7608. fi
  7609. if test "$egg_cv_socklen_t" = "yes"; then
  7610. cat >>confdefs.h <<\_ACEOF
  7611. #define HAVE_SOCKLEN_T 1
  7612. _ACEOF
  7613. echo "$as_me:$LINENO: result: yes" >&5
  7614. echo "${ECHO_T}yes" >&6
  7615. else
  7616. echo "$as_me:$LINENO: result: no" >&5
  7617. echo "${ECHO_T}no" >&6
  7618. fi
  7619. # Checks for library functions
  7620. #checkpoint
  7621. cat >confcache <<\_ACEOF
  7622. # This file is a shell script that caches the results of configure
  7623. # tests run on this system so they can be shared between configure
  7624. # scripts and configure runs, see configure's option --config-cache.
  7625. # It is not useful on other systems. If it contains results you don't
  7626. # want to keep, you may remove or edit it.
  7627. #
  7628. # config.status only pays attention to the cache file if you give it
  7629. # the --recheck option to rerun configure.
  7630. #
  7631. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7632. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7633. # following values.
  7634. _ACEOF
  7635. # The following way of writing the cache mishandles newlines in values,
  7636. # but we know of no workaround that is simple, portable, and efficient.
  7637. # So, don't put newlines in cache variables' values.
  7638. # Ultrix sh set writes to stderr and can't be redirected directly,
  7639. # and sets the high bit in the cache file unless we assign to the vars.
  7640. {
  7641. (set) 2>&1 |
  7642. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7643. *ac_space=\ *)
  7644. # `set' does not quote correctly, so add quotes (double-quote
  7645. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7646. sed -n \
  7647. "s/'/'\\\\''/g;
  7648. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7649. ;;
  7650. *)
  7651. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7652. sed -n \
  7653. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7654. ;;
  7655. esac;
  7656. } |
  7657. sed '
  7658. t clear
  7659. : clear
  7660. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7661. t end
  7662. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7663. : end' >>confcache
  7664. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7665. if test -w $cache_file; then
  7666. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  7667. cat confcache >$cache_file
  7668. else
  7669. echo "not updating unwritable cache $cache_file"
  7670. fi
  7671. fi
  7672. rm -f confcache
  7673. # Checks for library functions.
  7674. for ac_header in unistd.h vfork.h
  7675. do
  7676. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7677. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7678. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7679. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7680. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7681. echo $ECHO_N "(cached) $ECHO_C" >&6
  7682. fi
  7683. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7684. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7685. else
  7686. # Is the header compilable?
  7687. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7688. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7689. cat >conftest.$ac_ext <<_ACEOF
  7690. /* confdefs.h. */
  7691. _ACEOF
  7692. cat confdefs.h >>conftest.$ac_ext
  7693. cat >>conftest.$ac_ext <<_ACEOF
  7694. /* end confdefs.h. */
  7695. $ac_includes_default
  7696. #include <$ac_header>
  7697. _ACEOF
  7698. rm -f conftest.$ac_objext
  7699. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7700. (eval $ac_compile) 2>conftest.er1
  7701. ac_status=$?
  7702. grep -v '^ *+' conftest.er1 >conftest.err
  7703. rm -f conftest.er1
  7704. cat conftest.err >&5
  7705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7706. (exit $ac_status); } &&
  7707. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7708. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7709. (eval $ac_try) 2>&5
  7710. ac_status=$?
  7711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7712. (exit $ac_status); }; } &&
  7713. { ac_try='test -s conftest.$ac_objext'
  7714. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7715. (eval $ac_try) 2>&5
  7716. ac_status=$?
  7717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7718. (exit $ac_status); }; }; then
  7719. ac_header_compiler=yes
  7720. else
  7721. echo "$as_me: failed program was:" >&5
  7722. sed 's/^/| /' conftest.$ac_ext >&5
  7723. ac_header_compiler=no
  7724. fi
  7725. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7726. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7727. echo "${ECHO_T}$ac_header_compiler" >&6
  7728. # Is the header present?
  7729. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7730. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7731. cat >conftest.$ac_ext <<_ACEOF
  7732. /* confdefs.h. */
  7733. _ACEOF
  7734. cat confdefs.h >>conftest.$ac_ext
  7735. cat >>conftest.$ac_ext <<_ACEOF
  7736. /* end confdefs.h. */
  7737. #include <$ac_header>
  7738. _ACEOF
  7739. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7740. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7741. ac_status=$?
  7742. grep -v '^ *+' conftest.er1 >conftest.err
  7743. rm -f conftest.er1
  7744. cat conftest.err >&5
  7745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7746. (exit $ac_status); } >/dev/null; then
  7747. if test -s conftest.err; then
  7748. ac_cpp_err=$ac_c_preproc_warn_flag
  7749. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7750. else
  7751. ac_cpp_err=
  7752. fi
  7753. else
  7754. ac_cpp_err=yes
  7755. fi
  7756. if test -z "$ac_cpp_err"; then
  7757. ac_header_preproc=yes
  7758. else
  7759. echo "$as_me: failed program was:" >&5
  7760. sed 's/^/| /' conftest.$ac_ext >&5
  7761. ac_header_preproc=no
  7762. fi
  7763. rm -f conftest.err conftest.$ac_ext
  7764. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7765. echo "${ECHO_T}$ac_header_preproc" >&6
  7766. # So? What about this header?
  7767. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7768. yes:no: )
  7769. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7770. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7771. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7772. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7773. ac_header_preproc=yes
  7774. ;;
  7775. no:yes:* )
  7776. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7777. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7778. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7779. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7780. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7781. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7782. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7783. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7784. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7785. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7786. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7787. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7788. (
  7789. cat <<\_ASBOX
  7790. ## ------------------------------------------ ##
  7791. ## Report this to the AC_PACKAGE_NAME lists. ##
  7792. ## ------------------------------------------ ##
  7793. _ASBOX
  7794. ) |
  7795. sed "s/^/$as_me: WARNING: /" >&2
  7796. ;;
  7797. esac
  7798. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7799. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7800. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7801. echo $ECHO_N "(cached) $ECHO_C" >&6
  7802. else
  7803. eval "$as_ac_Header=\$ac_header_preproc"
  7804. fi
  7805. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7806. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7807. fi
  7808. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7809. cat >>confdefs.h <<_ACEOF
  7810. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7811. _ACEOF
  7812. fi
  7813. done
  7814. for ac_func in fork vfork
  7815. do
  7816. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7817. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7818. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7819. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7820. echo $ECHO_N "(cached) $ECHO_C" >&6
  7821. else
  7822. cat >conftest.$ac_ext <<_ACEOF
  7823. /* confdefs.h. */
  7824. _ACEOF
  7825. cat confdefs.h >>conftest.$ac_ext
  7826. cat >>conftest.$ac_ext <<_ACEOF
  7827. /* end confdefs.h. */
  7828. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7829. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7830. #define $ac_func innocuous_$ac_func
  7831. /* System header to define __stub macros and hopefully few prototypes,
  7832. which can conflict with char $ac_func (); below.
  7833. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7834. <limits.h> exists even on freestanding compilers. */
  7835. #ifdef __STDC__
  7836. # include <limits.h>
  7837. #else
  7838. # include <assert.h>
  7839. #endif
  7840. #undef $ac_func
  7841. /* Override any gcc2 internal prototype to avoid an error. */
  7842. #ifdef __cplusplus
  7843. extern "C"
  7844. {
  7845. #endif
  7846. /* We use char because int might match the return type of a gcc2
  7847. builtin and then its argument prototype would still apply. */
  7848. char $ac_func ();
  7849. /* The GNU C library defines this for functions which it implements
  7850. to always fail with ENOSYS. Some functions are actually named
  7851. something starting with __ and the normal name is an alias. */
  7852. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7853. choke me
  7854. #else
  7855. char (*f) () = $ac_func;
  7856. #endif
  7857. #ifdef __cplusplus
  7858. }
  7859. #endif
  7860. int
  7861. main ()
  7862. {
  7863. return f != $ac_func;
  7864. ;
  7865. return 0;
  7866. }
  7867. _ACEOF
  7868. rm -f conftest.$ac_objext conftest$ac_exeext
  7869. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7870. (eval $ac_link) 2>conftest.er1
  7871. ac_status=$?
  7872. grep -v '^ *+' conftest.er1 >conftest.err
  7873. rm -f conftest.er1
  7874. cat conftest.err >&5
  7875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7876. (exit $ac_status); } &&
  7877. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7878. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7879. (eval $ac_try) 2>&5
  7880. ac_status=$?
  7881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7882. (exit $ac_status); }; } &&
  7883. { ac_try='test -s conftest$ac_exeext'
  7884. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7885. (eval $ac_try) 2>&5
  7886. ac_status=$?
  7887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7888. (exit $ac_status); }; }; then
  7889. eval "$as_ac_var=yes"
  7890. else
  7891. echo "$as_me: failed program was:" >&5
  7892. sed 's/^/| /' conftest.$ac_ext >&5
  7893. eval "$as_ac_var=no"
  7894. fi
  7895. rm -f conftest.err conftest.$ac_objext \
  7896. conftest$ac_exeext conftest.$ac_ext
  7897. fi
  7898. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7899. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7900. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7901. cat >>confdefs.h <<_ACEOF
  7902. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7903. _ACEOF
  7904. fi
  7905. done
  7906. if test "x$ac_cv_func_fork" = xyes; then
  7907. echo "$as_me:$LINENO: checking for working fork" >&5
  7908. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  7909. if test "${ac_cv_func_fork_works+set}" = set; then
  7910. echo $ECHO_N "(cached) $ECHO_C" >&6
  7911. else
  7912. if test "$cross_compiling" = yes; then
  7913. ac_cv_func_fork_works=cross
  7914. else
  7915. cat >conftest.$ac_ext <<_ACEOF
  7916. /* By Ruediger Kuhlmann. */
  7917. #include <sys/types.h>
  7918. #if HAVE_UNISTD_H
  7919. # include <unistd.h>
  7920. #endif
  7921. /* Some systems only have a dummy stub for fork() */
  7922. int main ()
  7923. {
  7924. if (fork() < 0)
  7925. exit (1);
  7926. exit (0);
  7927. }
  7928. _ACEOF
  7929. rm -f conftest$ac_exeext
  7930. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7931. (eval $ac_link) 2>&5
  7932. ac_status=$?
  7933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7934. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7935. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7936. (eval $ac_try) 2>&5
  7937. ac_status=$?
  7938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7939. (exit $ac_status); }; }; then
  7940. ac_cv_func_fork_works=yes
  7941. else
  7942. echo "$as_me: program exited with status $ac_status" >&5
  7943. echo "$as_me: failed program was:" >&5
  7944. sed 's/^/| /' conftest.$ac_ext >&5
  7945. ( exit $ac_status )
  7946. ac_cv_func_fork_works=no
  7947. fi
  7948. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7949. fi
  7950. fi
  7951. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  7952. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  7953. else
  7954. ac_cv_func_fork_works=$ac_cv_func_fork
  7955. fi
  7956. if test "x$ac_cv_func_fork_works" = xcross; then
  7957. case $host in
  7958. *-*-amigaos* | *-*-msdosdjgpp*)
  7959. # Override, as these systems have only a dummy fork() stub
  7960. ac_cv_func_fork_works=no
  7961. ;;
  7962. *)
  7963. ac_cv_func_fork_works=yes
  7964. ;;
  7965. esac
  7966. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  7967. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  7968. fi
  7969. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7970. if test "x$ac_cv_func_vfork" = xyes; then
  7971. echo "$as_me:$LINENO: checking for working vfork" >&5
  7972. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  7973. if test "${ac_cv_func_vfork_works+set}" = set; then
  7974. echo $ECHO_N "(cached) $ECHO_C" >&6
  7975. else
  7976. if test "$cross_compiling" = yes; then
  7977. ac_cv_func_vfork_works=cross
  7978. else
  7979. cat >conftest.$ac_ext <<_ACEOF
  7980. /* confdefs.h. */
  7981. _ACEOF
  7982. cat confdefs.h >>conftest.$ac_ext
  7983. cat >>conftest.$ac_ext <<_ACEOF
  7984. /* end confdefs.h. */
  7985. /* Thanks to Paul Eggert for this test. */
  7986. #include <stdio.h>
  7987. #include <stdlib.h>
  7988. #include <sys/types.h>
  7989. #include <sys/stat.h>
  7990. #include <sys/wait.h>
  7991. #if HAVE_UNISTD_H
  7992. # include <unistd.h>
  7993. #endif
  7994. #if HAVE_VFORK_H
  7995. # include <vfork.h>
  7996. #endif
  7997. /* On some sparc systems, changes by the child to local and incoming
  7998. argument registers are propagated back to the parent. The compiler
  7999. is told about this with #include <vfork.h>, but some compilers
  8000. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8001. static variable whose address is put into a register that is
  8002. clobbered by the vfork. */
  8003. static void
  8004. #ifdef __cplusplus
  8005. sparc_address_test (int arg)
  8006. # else
  8007. sparc_address_test (arg) int arg;
  8008. #endif
  8009. {
  8010. static pid_t child;
  8011. if (!child) {
  8012. child = vfork ();
  8013. if (child < 0) {
  8014. perror ("vfork");
  8015. _exit(2);
  8016. }
  8017. if (!child) {
  8018. arg = getpid();
  8019. write(-1, "", 0);
  8020. _exit (arg);
  8021. }
  8022. }
  8023. }
  8024. int
  8025. main ()
  8026. {
  8027. pid_t parent = getpid ();
  8028. pid_t child;
  8029. sparc_address_test (0);
  8030. child = vfork ();
  8031. if (child == 0) {
  8032. /* Here is another test for sparc vfork register problems. This
  8033. test uses lots of local variables, at least as many local
  8034. variables as main has allocated so far including compiler
  8035. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8036. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8037. reuse the register of parent for one of the local variables,
  8038. since it will think that parent can't possibly be used any more
  8039. in this routine. Assigning to the local variable will thus
  8040. munge parent in the parent process. */
  8041. pid_t
  8042. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8043. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8044. /* Convince the compiler that p..p7 are live; otherwise, it might
  8045. use the same hardware register for all 8 local variables. */
  8046. if (p != p1 || p != p2 || p != p3 || p != p4
  8047. || p != p5 || p != p6 || p != p7)
  8048. _exit(1);
  8049. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8050. from child file descriptors. If the child closes a descriptor
  8051. before it execs or exits, this munges the parent's descriptor
  8052. as well. Test for this by closing stdout in the child. */
  8053. _exit(close(fileno(stdout)) != 0);
  8054. } else {
  8055. int status;
  8056. struct stat st;
  8057. while (wait(&status) != child)
  8058. ;
  8059. exit(
  8060. /* Was there some problem with vforking? */
  8061. child < 0
  8062. /* Did the child fail? (This shouldn't happen.) */
  8063. || status
  8064. /* Did the vfork/compiler bug occur? */
  8065. || parent != getpid()
  8066. /* Did the file descriptor bug occur? */
  8067. || fstat(fileno(stdout), &st) != 0
  8068. );
  8069. }
  8070. }
  8071. _ACEOF
  8072. rm -f conftest$ac_exeext
  8073. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8074. (eval $ac_link) 2>&5
  8075. ac_status=$?
  8076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8077. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8078. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8079. (eval $ac_try) 2>&5
  8080. ac_status=$?
  8081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8082. (exit $ac_status); }; }; then
  8083. ac_cv_func_vfork_works=yes
  8084. else
  8085. echo "$as_me: program exited with status $ac_status" >&5
  8086. echo "$as_me: failed program was:" >&5
  8087. sed 's/^/| /' conftest.$ac_ext >&5
  8088. ( exit $ac_status )
  8089. ac_cv_func_vfork_works=no
  8090. fi
  8091. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8092. fi
  8093. fi
  8094. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8095. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8096. fi;
  8097. if test "x$ac_cv_func_fork_works" = xcross; then
  8098. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8099. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8100. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8101. fi
  8102. if test "x$ac_cv_func_vfork_works" = xyes; then
  8103. cat >>confdefs.h <<\_ACEOF
  8104. #define HAVE_WORKING_VFORK 1
  8105. _ACEOF
  8106. else
  8107. cat >>confdefs.h <<\_ACEOF
  8108. #define vfork fork
  8109. _ACEOF
  8110. fi
  8111. if test "x$ac_cv_func_fork_works" = xyes; then
  8112. cat >>confdefs.h <<\_ACEOF
  8113. #define HAVE_WORKING_FORK 1
  8114. _ACEOF
  8115. fi
  8116. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8117. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8118. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8119. echo $ECHO_N "(cached) $ECHO_C" >&6
  8120. else
  8121. rm -f conftest.sym conftest.file
  8122. echo >conftest.file
  8123. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8124. if test "$cross_compiling" = yes; then
  8125. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8126. else
  8127. cat >conftest.$ac_ext <<_ACEOF
  8128. /* confdefs.h. */
  8129. _ACEOF
  8130. cat confdefs.h >>conftest.$ac_ext
  8131. cat >>conftest.$ac_ext <<_ACEOF
  8132. /* end confdefs.h. */
  8133. $ac_includes_default
  8134. int
  8135. main ()
  8136. {
  8137. struct stat sbuf;
  8138. /* Linux will dereference the symlink and fail.
  8139. That is better in the sense that it means we will not
  8140. have to compile and use the lstat wrapper. */
  8141. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8142. ;
  8143. return 0;
  8144. }
  8145. _ACEOF
  8146. rm -f conftest$ac_exeext
  8147. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8148. (eval $ac_link) 2>&5
  8149. ac_status=$?
  8150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8151. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8152. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8153. (eval $ac_try) 2>&5
  8154. ac_status=$?
  8155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8156. (exit $ac_status); }; }; then
  8157. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8158. else
  8159. echo "$as_me: program exited with status $ac_status" >&5
  8160. echo "$as_me: failed program was:" >&5
  8161. sed 's/^/| /' conftest.$ac_ext >&5
  8162. ( exit $ac_status )
  8163. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8164. fi
  8165. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8166. fi
  8167. else
  8168. # If the `ln -s' command failed, then we probably don't even
  8169. # have an lstat function.
  8170. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8171. fi
  8172. rm -f conftest.sym conftest.file
  8173. fi
  8174. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8175. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8176. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8177. cat >>confdefs.h <<_ACEOF
  8178. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8179. _ACEOF
  8180. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8181. case $LIBOBJS in
  8182. "lstat.$ac_objext" | \
  8183. *" lstat.$ac_objext" | \
  8184. "lstat.$ac_objext "* | \
  8185. *" lstat.$ac_objext "* ) ;;
  8186. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8187. esac
  8188. fi
  8189. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8190. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8191. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8192. echo $ECHO_N "(cached) $ECHO_C" >&6
  8193. else
  8194. if test "$cross_compiling" = yes; then
  8195. ac_cv_func_lstat_empty_string_bug=yes
  8196. else
  8197. cat >conftest.$ac_ext <<_ACEOF
  8198. /* confdefs.h. */
  8199. _ACEOF
  8200. cat confdefs.h >>conftest.$ac_ext
  8201. cat >>conftest.$ac_ext <<_ACEOF
  8202. /* end confdefs.h. */
  8203. $ac_includes_default
  8204. int
  8205. main ()
  8206. {
  8207. struct stat sbuf;
  8208. exit (lstat ("", &sbuf) ? 1 : 0);
  8209. ;
  8210. return 0;
  8211. }
  8212. _ACEOF
  8213. rm -f conftest$ac_exeext
  8214. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8215. (eval $ac_link) 2>&5
  8216. ac_status=$?
  8217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8218. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8219. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8220. (eval $ac_try) 2>&5
  8221. ac_status=$?
  8222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8223. (exit $ac_status); }; }; then
  8224. ac_cv_func_lstat_empty_string_bug=yes
  8225. else
  8226. echo "$as_me: program exited with status $ac_status" >&5
  8227. echo "$as_me: failed program was:" >&5
  8228. sed 's/^/| /' conftest.$ac_ext >&5
  8229. ( exit $ac_status )
  8230. ac_cv_func_lstat_empty_string_bug=no
  8231. fi
  8232. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8233. fi
  8234. fi
  8235. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8236. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8237. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8238. case $LIBOBJS in
  8239. "lstat.$ac_objext" | \
  8240. *" lstat.$ac_objext" | \
  8241. "lstat.$ac_objext "* | \
  8242. *" lstat.$ac_objext "* ) ;;
  8243. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8244. esac
  8245. cat >>confdefs.h <<_ACEOF
  8246. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8247. _ACEOF
  8248. fi
  8249. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8250. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8251. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8252. echo $ECHO_N "(cached) $ECHO_C" >&6
  8253. else
  8254. rm -f conftest.sym conftest.file
  8255. echo >conftest.file
  8256. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8257. if test "$cross_compiling" = yes; then
  8258. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8259. else
  8260. cat >conftest.$ac_ext <<_ACEOF
  8261. /* confdefs.h. */
  8262. _ACEOF
  8263. cat confdefs.h >>conftest.$ac_ext
  8264. cat >>conftest.$ac_ext <<_ACEOF
  8265. /* end confdefs.h. */
  8266. $ac_includes_default
  8267. int
  8268. main ()
  8269. {
  8270. struct stat sbuf;
  8271. /* Linux will dereference the symlink and fail.
  8272. That is better in the sense that it means we will not
  8273. have to compile and use the lstat wrapper. */
  8274. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8275. ;
  8276. return 0;
  8277. }
  8278. _ACEOF
  8279. rm -f conftest$ac_exeext
  8280. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8281. (eval $ac_link) 2>&5
  8282. ac_status=$?
  8283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8284. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8285. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8286. (eval $ac_try) 2>&5
  8287. ac_status=$?
  8288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8289. (exit $ac_status); }; }; then
  8290. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8291. else
  8292. echo "$as_me: program exited with status $ac_status" >&5
  8293. echo "$as_me: failed program was:" >&5
  8294. sed 's/^/| /' conftest.$ac_ext >&5
  8295. ( exit $ac_status )
  8296. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8297. fi
  8298. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8299. fi
  8300. else
  8301. # If the `ln -s' command failed, then we probably don't even
  8302. # have an lstat function.
  8303. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8304. fi
  8305. rm -f conftest.sym conftest.file
  8306. fi
  8307. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8308. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8309. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8310. cat >>confdefs.h <<_ACEOF
  8311. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8312. _ACEOF
  8313. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8314. case $LIBOBJS in
  8315. "lstat.$ac_objext" | \
  8316. *" lstat.$ac_objext" | \
  8317. "lstat.$ac_objext "* | \
  8318. *" lstat.$ac_objext "* ) ;;
  8319. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8320. esac
  8321. fi
  8322. for ac_header in stdlib.h
  8323. do
  8324. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8325. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8326. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8327. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8328. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8329. echo $ECHO_N "(cached) $ECHO_C" >&6
  8330. fi
  8331. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8332. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8333. else
  8334. # Is the header compilable?
  8335. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8336. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8337. cat >conftest.$ac_ext <<_ACEOF
  8338. /* confdefs.h. */
  8339. _ACEOF
  8340. cat confdefs.h >>conftest.$ac_ext
  8341. cat >>conftest.$ac_ext <<_ACEOF
  8342. /* end confdefs.h. */
  8343. $ac_includes_default
  8344. #include <$ac_header>
  8345. _ACEOF
  8346. rm -f conftest.$ac_objext
  8347. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8348. (eval $ac_compile) 2>conftest.er1
  8349. ac_status=$?
  8350. grep -v '^ *+' conftest.er1 >conftest.err
  8351. rm -f conftest.er1
  8352. cat conftest.err >&5
  8353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8354. (exit $ac_status); } &&
  8355. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8356. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8357. (eval $ac_try) 2>&5
  8358. ac_status=$?
  8359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8360. (exit $ac_status); }; } &&
  8361. { ac_try='test -s conftest.$ac_objext'
  8362. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8363. (eval $ac_try) 2>&5
  8364. ac_status=$?
  8365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8366. (exit $ac_status); }; }; then
  8367. ac_header_compiler=yes
  8368. else
  8369. echo "$as_me: failed program was:" >&5
  8370. sed 's/^/| /' conftest.$ac_ext >&5
  8371. ac_header_compiler=no
  8372. fi
  8373. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8374. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8375. echo "${ECHO_T}$ac_header_compiler" >&6
  8376. # Is the header present?
  8377. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8378. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8379. cat >conftest.$ac_ext <<_ACEOF
  8380. /* confdefs.h. */
  8381. _ACEOF
  8382. cat confdefs.h >>conftest.$ac_ext
  8383. cat >>conftest.$ac_ext <<_ACEOF
  8384. /* end confdefs.h. */
  8385. #include <$ac_header>
  8386. _ACEOF
  8387. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8388. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8389. ac_status=$?
  8390. grep -v '^ *+' conftest.er1 >conftest.err
  8391. rm -f conftest.er1
  8392. cat conftest.err >&5
  8393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8394. (exit $ac_status); } >/dev/null; then
  8395. if test -s conftest.err; then
  8396. ac_cpp_err=$ac_c_preproc_warn_flag
  8397. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8398. else
  8399. ac_cpp_err=
  8400. fi
  8401. else
  8402. ac_cpp_err=yes
  8403. fi
  8404. if test -z "$ac_cpp_err"; then
  8405. ac_header_preproc=yes
  8406. else
  8407. echo "$as_me: failed program was:" >&5
  8408. sed 's/^/| /' conftest.$ac_ext >&5
  8409. ac_header_preproc=no
  8410. fi
  8411. rm -f conftest.err conftest.$ac_ext
  8412. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8413. echo "${ECHO_T}$ac_header_preproc" >&6
  8414. # So? What about this header?
  8415. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8416. yes:no: )
  8417. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8418. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8419. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8420. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8421. ac_header_preproc=yes
  8422. ;;
  8423. no:yes:* )
  8424. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8425. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8426. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8427. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8428. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8429. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8430. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8431. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8432. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8433. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8434. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8435. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8436. (
  8437. cat <<\_ASBOX
  8438. ## ------------------------------------------ ##
  8439. ## Report this to the AC_PACKAGE_NAME lists. ##
  8440. ## ------------------------------------------ ##
  8441. _ASBOX
  8442. ) |
  8443. sed "s/^/$as_me: WARNING: /" >&2
  8444. ;;
  8445. esac
  8446. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8447. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8448. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8449. echo $ECHO_N "(cached) $ECHO_C" >&6
  8450. else
  8451. eval "$as_ac_Header=\$ac_header_preproc"
  8452. fi
  8453. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8454. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8455. fi
  8456. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8457. cat >>confdefs.h <<_ACEOF
  8458. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8459. _ACEOF
  8460. fi
  8461. done
  8462. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8463. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8464. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8465. echo $ECHO_N "(cached) $ECHO_C" >&6
  8466. else
  8467. if test "$cross_compiling" = yes; then
  8468. ac_cv_func_malloc_0_nonnull=no
  8469. else
  8470. cat >conftest.$ac_ext <<_ACEOF
  8471. /* confdefs.h. */
  8472. _ACEOF
  8473. cat confdefs.h >>conftest.$ac_ext
  8474. cat >>conftest.$ac_ext <<_ACEOF
  8475. /* end confdefs.h. */
  8476. #if STDC_HEADERS || HAVE_STDLIB_H
  8477. # include <stdlib.h>
  8478. #else
  8479. char *malloc ();
  8480. #endif
  8481. int
  8482. main ()
  8483. {
  8484. exit (malloc (0) ? 0 : 1);
  8485. ;
  8486. return 0;
  8487. }
  8488. _ACEOF
  8489. rm -f conftest$ac_exeext
  8490. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8491. (eval $ac_link) 2>&5
  8492. ac_status=$?
  8493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8494. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8495. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8496. (eval $ac_try) 2>&5
  8497. ac_status=$?
  8498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8499. (exit $ac_status); }; }; then
  8500. ac_cv_func_malloc_0_nonnull=yes
  8501. else
  8502. echo "$as_me: program exited with status $ac_status" >&5
  8503. echo "$as_me: failed program was:" >&5
  8504. sed 's/^/| /' conftest.$ac_ext >&5
  8505. ( exit $ac_status )
  8506. ac_cv_func_malloc_0_nonnull=no
  8507. fi
  8508. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8509. fi
  8510. fi
  8511. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8512. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8513. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8514. cat >>confdefs.h <<\_ACEOF
  8515. #define HAVE_MALLOC 1
  8516. _ACEOF
  8517. else
  8518. cat >>confdefs.h <<\_ACEOF
  8519. #define HAVE_MALLOC 0
  8520. _ACEOF
  8521. case $LIBOBJS in
  8522. "malloc.$ac_objext" | \
  8523. *" malloc.$ac_objext" | \
  8524. "malloc.$ac_objext "* | \
  8525. *" malloc.$ac_objext "* ) ;;
  8526. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8527. esac
  8528. cat >>confdefs.h <<\_ACEOF
  8529. #define malloc rpl_malloc
  8530. _ACEOF
  8531. fi
  8532. for ac_header in stdlib.h sys/time.h unistd.h
  8533. do
  8534. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8535. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8536. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8537. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8538. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8539. echo $ECHO_N "(cached) $ECHO_C" >&6
  8540. fi
  8541. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8542. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8543. else
  8544. # Is the header compilable?
  8545. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8546. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8547. cat >conftest.$ac_ext <<_ACEOF
  8548. /* confdefs.h. */
  8549. _ACEOF
  8550. cat confdefs.h >>conftest.$ac_ext
  8551. cat >>conftest.$ac_ext <<_ACEOF
  8552. /* end confdefs.h. */
  8553. $ac_includes_default
  8554. #include <$ac_header>
  8555. _ACEOF
  8556. rm -f conftest.$ac_objext
  8557. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8558. (eval $ac_compile) 2>conftest.er1
  8559. ac_status=$?
  8560. grep -v '^ *+' conftest.er1 >conftest.err
  8561. rm -f conftest.er1
  8562. cat conftest.err >&5
  8563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8564. (exit $ac_status); } &&
  8565. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8566. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8567. (eval $ac_try) 2>&5
  8568. ac_status=$?
  8569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8570. (exit $ac_status); }; } &&
  8571. { ac_try='test -s conftest.$ac_objext'
  8572. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8573. (eval $ac_try) 2>&5
  8574. ac_status=$?
  8575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8576. (exit $ac_status); }; }; then
  8577. ac_header_compiler=yes
  8578. else
  8579. echo "$as_me: failed program was:" >&5
  8580. sed 's/^/| /' conftest.$ac_ext >&5
  8581. ac_header_compiler=no
  8582. fi
  8583. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8584. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8585. echo "${ECHO_T}$ac_header_compiler" >&6
  8586. # Is the header present?
  8587. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8588. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8589. cat >conftest.$ac_ext <<_ACEOF
  8590. /* confdefs.h. */
  8591. _ACEOF
  8592. cat confdefs.h >>conftest.$ac_ext
  8593. cat >>conftest.$ac_ext <<_ACEOF
  8594. /* end confdefs.h. */
  8595. #include <$ac_header>
  8596. _ACEOF
  8597. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8598. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8599. ac_status=$?
  8600. grep -v '^ *+' conftest.er1 >conftest.err
  8601. rm -f conftest.er1
  8602. cat conftest.err >&5
  8603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8604. (exit $ac_status); } >/dev/null; then
  8605. if test -s conftest.err; then
  8606. ac_cpp_err=$ac_c_preproc_warn_flag
  8607. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8608. else
  8609. ac_cpp_err=
  8610. fi
  8611. else
  8612. ac_cpp_err=yes
  8613. fi
  8614. if test -z "$ac_cpp_err"; then
  8615. ac_header_preproc=yes
  8616. else
  8617. echo "$as_me: failed program was:" >&5
  8618. sed 's/^/| /' conftest.$ac_ext >&5
  8619. ac_header_preproc=no
  8620. fi
  8621. rm -f conftest.err conftest.$ac_ext
  8622. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8623. echo "${ECHO_T}$ac_header_preproc" >&6
  8624. # So? What about this header?
  8625. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8626. yes:no: )
  8627. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8628. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8629. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8630. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8631. ac_header_preproc=yes
  8632. ;;
  8633. no:yes:* )
  8634. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8635. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8636. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8637. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8638. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8639. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8640. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8641. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8642. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8643. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8644. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8645. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8646. (
  8647. cat <<\_ASBOX
  8648. ## ------------------------------------------ ##
  8649. ## Report this to the AC_PACKAGE_NAME lists. ##
  8650. ## ------------------------------------------ ##
  8651. _ASBOX
  8652. ) |
  8653. sed "s/^/$as_me: WARNING: /" >&2
  8654. ;;
  8655. esac
  8656. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8657. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8658. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8659. echo $ECHO_N "(cached) $ECHO_C" >&6
  8660. else
  8661. eval "$as_ac_Header=\$ac_header_preproc"
  8662. fi
  8663. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8664. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8665. fi
  8666. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8667. cat >>confdefs.h <<_ACEOF
  8668. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8669. _ACEOF
  8670. fi
  8671. done
  8672. for ac_func in alarm
  8673. do
  8674. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8675. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8676. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8677. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8678. echo $ECHO_N "(cached) $ECHO_C" >&6
  8679. else
  8680. cat >conftest.$ac_ext <<_ACEOF
  8681. /* confdefs.h. */
  8682. _ACEOF
  8683. cat confdefs.h >>conftest.$ac_ext
  8684. cat >>conftest.$ac_ext <<_ACEOF
  8685. /* end confdefs.h. */
  8686. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8687. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8688. #define $ac_func innocuous_$ac_func
  8689. /* System header to define __stub macros and hopefully few prototypes,
  8690. which can conflict with char $ac_func (); below.
  8691. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8692. <limits.h> exists even on freestanding compilers. */
  8693. #ifdef __STDC__
  8694. # include <limits.h>
  8695. #else
  8696. # include <assert.h>
  8697. #endif
  8698. #undef $ac_func
  8699. /* Override any gcc2 internal prototype to avoid an error. */
  8700. #ifdef __cplusplus
  8701. extern "C"
  8702. {
  8703. #endif
  8704. /* We use char because int might match the return type of a gcc2
  8705. builtin and then its argument prototype would still apply. */
  8706. char $ac_func ();
  8707. /* The GNU C library defines this for functions which it implements
  8708. to always fail with ENOSYS. Some functions are actually named
  8709. something starting with __ and the normal name is an alias. */
  8710. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8711. choke me
  8712. #else
  8713. char (*f) () = $ac_func;
  8714. #endif
  8715. #ifdef __cplusplus
  8716. }
  8717. #endif
  8718. int
  8719. main ()
  8720. {
  8721. return f != $ac_func;
  8722. ;
  8723. return 0;
  8724. }
  8725. _ACEOF
  8726. rm -f conftest.$ac_objext conftest$ac_exeext
  8727. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8728. (eval $ac_link) 2>conftest.er1
  8729. ac_status=$?
  8730. grep -v '^ *+' conftest.er1 >conftest.err
  8731. rm -f conftest.er1
  8732. cat conftest.err >&5
  8733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8734. (exit $ac_status); } &&
  8735. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8736. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8737. (eval $ac_try) 2>&5
  8738. ac_status=$?
  8739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8740. (exit $ac_status); }; } &&
  8741. { ac_try='test -s conftest$ac_exeext'
  8742. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8743. (eval $ac_try) 2>&5
  8744. ac_status=$?
  8745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8746. (exit $ac_status); }; }; then
  8747. eval "$as_ac_var=yes"
  8748. else
  8749. echo "$as_me: failed program was:" >&5
  8750. sed 's/^/| /' conftest.$ac_ext >&5
  8751. eval "$as_ac_var=no"
  8752. fi
  8753. rm -f conftest.err conftest.$ac_objext \
  8754. conftest$ac_exeext conftest.$ac_ext
  8755. fi
  8756. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8757. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8758. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8759. cat >>confdefs.h <<_ACEOF
  8760. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8761. _ACEOF
  8762. fi
  8763. done
  8764. echo "$as_me:$LINENO: checking for working mktime" >&5
  8765. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  8766. if test "${ac_cv_func_working_mktime+set}" = set; then
  8767. echo $ECHO_N "(cached) $ECHO_C" >&6
  8768. else
  8769. if test "$cross_compiling" = yes; then
  8770. ac_cv_func_working_mktime=no
  8771. else
  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. /* Test program from Paul Eggert and Tony Leneis. */
  8779. #if TIME_WITH_SYS_TIME
  8780. # include <sys/time.h>
  8781. # include <time.h>
  8782. #else
  8783. # if HAVE_SYS_TIME_H
  8784. # include <sys/time.h>
  8785. # else
  8786. # include <time.h>
  8787. # endif
  8788. #endif
  8789. #if HAVE_STDLIB_H
  8790. # include <stdlib.h>
  8791. #endif
  8792. #if HAVE_UNISTD_H
  8793. # include <unistd.h>
  8794. #endif
  8795. #if !HAVE_ALARM
  8796. # define alarm(X) /* empty */
  8797. #endif
  8798. /* Work around redefinition to rpl_putenv by other config tests. */
  8799. #undef putenv
  8800. static time_t time_t_max;
  8801. static time_t time_t_min;
  8802. /* Values we'll use to set the TZ environment variable. */
  8803. static char *tz_strings[] = {
  8804. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  8805. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  8806. };
  8807. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  8808. /* Fail if mktime fails to convert a date in the spring-forward gap.
  8809. Based on a problem report from Andreas Jaeger. */
  8810. static void
  8811. spring_forward_gap ()
  8812. {
  8813. /* glibc (up to about 1998-10-07) failed this test. */
  8814. struct tm tm;
  8815. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8816. instead of "TZ=America/Vancouver" in order to detect the bug even
  8817. on systems that don't support the Olson extension, or don't have the
  8818. full zoneinfo tables installed. */
  8819. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8820. tm.tm_year = 98;
  8821. tm.tm_mon = 3;
  8822. tm.tm_mday = 5;
  8823. tm.tm_hour = 2;
  8824. tm.tm_min = 0;
  8825. tm.tm_sec = 0;
  8826. tm.tm_isdst = -1;
  8827. if (mktime (&tm) == (time_t)-1)
  8828. exit (1);
  8829. }
  8830. static void
  8831. mktime_test1 (now)
  8832. time_t now;
  8833. {
  8834. struct tm *lt;
  8835. if ((lt = localtime (&now)) && mktime (lt) != now)
  8836. exit (1);
  8837. }
  8838. static void
  8839. mktime_test (now)
  8840. time_t now;
  8841. {
  8842. mktime_test1 (now);
  8843. mktime_test1 ((time_t) (time_t_max - now));
  8844. mktime_test1 ((time_t) (time_t_min + now));
  8845. }
  8846. static void
  8847. irix_6_4_bug ()
  8848. {
  8849. /* Based on code from Ariel Faigon. */
  8850. struct tm tm;
  8851. tm.tm_year = 96;
  8852. tm.tm_mon = 3;
  8853. tm.tm_mday = 0;
  8854. tm.tm_hour = 0;
  8855. tm.tm_min = 0;
  8856. tm.tm_sec = 0;
  8857. tm.tm_isdst = -1;
  8858. mktime (&tm);
  8859. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  8860. exit (1);
  8861. }
  8862. static void
  8863. bigtime_test (j)
  8864. int j;
  8865. {
  8866. struct tm tm;
  8867. time_t now;
  8868. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  8869. now = mktime (&tm);
  8870. if (now != (time_t) -1)
  8871. {
  8872. struct tm *lt = localtime (&now);
  8873. if (! (lt
  8874. && lt->tm_year == tm.tm_year
  8875. && lt->tm_mon == tm.tm_mon
  8876. && lt->tm_mday == tm.tm_mday
  8877. && lt->tm_hour == tm.tm_hour
  8878. && lt->tm_min == tm.tm_min
  8879. && lt->tm_sec == tm.tm_sec
  8880. && lt->tm_yday == tm.tm_yday
  8881. && lt->tm_wday == tm.tm_wday
  8882. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  8883. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  8884. exit (1);
  8885. }
  8886. }
  8887. int
  8888. main ()
  8889. {
  8890. time_t t, delta;
  8891. int i, j;
  8892. /* This test makes some buggy mktime implementations loop.
  8893. Give up after 60 seconds; a mktime slower than that
  8894. isn't worth using anyway. */
  8895. alarm (60);
  8896. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  8897. continue;
  8898. time_t_max--;
  8899. if ((time_t) -1 < 0)
  8900. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  8901. continue;
  8902. delta = time_t_max / 997; /* a suitable prime number */
  8903. for (i = 0; i < N_STRINGS; i++)
  8904. {
  8905. if (tz_strings[i])
  8906. putenv (tz_strings[i]);
  8907. for (t = 0; t <= time_t_max - delta; t += delta)
  8908. mktime_test (t);
  8909. mktime_test ((time_t) 1);
  8910. mktime_test ((time_t) (60 * 60));
  8911. mktime_test ((time_t) (60 * 60 * 24));
  8912. for (j = 1; 0 < j; j *= 2)
  8913. bigtime_test (j);
  8914. bigtime_test (j - 1);
  8915. }
  8916. irix_6_4_bug ();
  8917. spring_forward_gap ();
  8918. exit (0);
  8919. }
  8920. _ACEOF
  8921. rm -f conftest$ac_exeext
  8922. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8923. (eval $ac_link) 2>&5
  8924. ac_status=$?
  8925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8926. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8927. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8928. (eval $ac_try) 2>&5
  8929. ac_status=$?
  8930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8931. (exit $ac_status); }; }; then
  8932. ac_cv_func_working_mktime=yes
  8933. else
  8934. echo "$as_me: program exited with status $ac_status" >&5
  8935. echo "$as_me: failed program was:" >&5
  8936. sed 's/^/| /' conftest.$ac_ext >&5
  8937. ( exit $ac_status )
  8938. ac_cv_func_working_mktime=no
  8939. fi
  8940. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8941. fi
  8942. fi
  8943. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  8944. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  8945. if test $ac_cv_func_working_mktime = no; then
  8946. case $LIBOBJS in
  8947. "mktime.$ac_objext" | \
  8948. *" mktime.$ac_objext" | \
  8949. "mktime.$ac_objext "* | \
  8950. *" mktime.$ac_objext "* ) ;;
  8951. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  8952. esac
  8953. fi
  8954. for ac_header in stdlib.h unistd.h
  8955. do
  8956. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8957. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8958. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8959. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8960. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8961. echo $ECHO_N "(cached) $ECHO_C" >&6
  8962. fi
  8963. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8964. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8965. else
  8966. # Is the header compilable?
  8967. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8968. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8969. cat >conftest.$ac_ext <<_ACEOF
  8970. /* confdefs.h. */
  8971. _ACEOF
  8972. cat confdefs.h >>conftest.$ac_ext
  8973. cat >>conftest.$ac_ext <<_ACEOF
  8974. /* end confdefs.h. */
  8975. $ac_includes_default
  8976. #include <$ac_header>
  8977. _ACEOF
  8978. rm -f conftest.$ac_objext
  8979. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8980. (eval $ac_compile) 2>conftest.er1
  8981. ac_status=$?
  8982. grep -v '^ *+' conftest.er1 >conftest.err
  8983. rm -f conftest.er1
  8984. cat conftest.err >&5
  8985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8986. (exit $ac_status); } &&
  8987. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8988. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8989. (eval $ac_try) 2>&5
  8990. ac_status=$?
  8991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8992. (exit $ac_status); }; } &&
  8993. { ac_try='test -s conftest.$ac_objext'
  8994. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8995. (eval $ac_try) 2>&5
  8996. ac_status=$?
  8997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8998. (exit $ac_status); }; }; then
  8999. ac_header_compiler=yes
  9000. else
  9001. echo "$as_me: failed program was:" >&5
  9002. sed 's/^/| /' conftest.$ac_ext >&5
  9003. ac_header_compiler=no
  9004. fi
  9005. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9006. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9007. echo "${ECHO_T}$ac_header_compiler" >&6
  9008. # Is the header present?
  9009. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9010. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9011. cat >conftest.$ac_ext <<_ACEOF
  9012. /* confdefs.h. */
  9013. _ACEOF
  9014. cat confdefs.h >>conftest.$ac_ext
  9015. cat >>conftest.$ac_ext <<_ACEOF
  9016. /* end confdefs.h. */
  9017. #include <$ac_header>
  9018. _ACEOF
  9019. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9020. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9021. ac_status=$?
  9022. grep -v '^ *+' conftest.er1 >conftest.err
  9023. rm -f conftest.er1
  9024. cat conftest.err >&5
  9025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9026. (exit $ac_status); } >/dev/null; then
  9027. if test -s conftest.err; then
  9028. ac_cpp_err=$ac_c_preproc_warn_flag
  9029. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9030. else
  9031. ac_cpp_err=
  9032. fi
  9033. else
  9034. ac_cpp_err=yes
  9035. fi
  9036. if test -z "$ac_cpp_err"; then
  9037. ac_header_preproc=yes
  9038. else
  9039. echo "$as_me: failed program was:" >&5
  9040. sed 's/^/| /' conftest.$ac_ext >&5
  9041. ac_header_preproc=no
  9042. fi
  9043. rm -f conftest.err conftest.$ac_ext
  9044. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9045. echo "${ECHO_T}$ac_header_preproc" >&6
  9046. # So? What about this header?
  9047. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9048. yes:no: )
  9049. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9050. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9051. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9052. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9053. ac_header_preproc=yes
  9054. ;;
  9055. no:yes:* )
  9056. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9057. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9058. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9059. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9060. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9061. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9062. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9063. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9064. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9065. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9066. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9067. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9068. (
  9069. cat <<\_ASBOX
  9070. ## ------------------------------------------ ##
  9071. ## Report this to the AC_PACKAGE_NAME lists. ##
  9072. ## ------------------------------------------ ##
  9073. _ASBOX
  9074. ) |
  9075. sed "s/^/$as_me: WARNING: /" >&2
  9076. ;;
  9077. esac
  9078. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9079. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9080. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9081. echo $ECHO_N "(cached) $ECHO_C" >&6
  9082. else
  9083. eval "$as_ac_Header=\$ac_header_preproc"
  9084. fi
  9085. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9086. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9087. fi
  9088. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9089. cat >>confdefs.h <<_ACEOF
  9090. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9091. _ACEOF
  9092. fi
  9093. done
  9094. for ac_func in getpagesize
  9095. do
  9096. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9097. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9098. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9099. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9100. echo $ECHO_N "(cached) $ECHO_C" >&6
  9101. else
  9102. cat >conftest.$ac_ext <<_ACEOF
  9103. /* confdefs.h. */
  9104. _ACEOF
  9105. cat confdefs.h >>conftest.$ac_ext
  9106. cat >>conftest.$ac_ext <<_ACEOF
  9107. /* end confdefs.h. */
  9108. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9109. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9110. #define $ac_func innocuous_$ac_func
  9111. /* System header to define __stub macros and hopefully few prototypes,
  9112. which can conflict with char $ac_func (); below.
  9113. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9114. <limits.h> exists even on freestanding compilers. */
  9115. #ifdef __STDC__
  9116. # include <limits.h>
  9117. #else
  9118. # include <assert.h>
  9119. #endif
  9120. #undef $ac_func
  9121. /* Override any gcc2 internal prototype to avoid an error. */
  9122. #ifdef __cplusplus
  9123. extern "C"
  9124. {
  9125. #endif
  9126. /* We use char because int might match the return type of a gcc2
  9127. builtin and then its argument prototype would still apply. */
  9128. char $ac_func ();
  9129. /* The GNU C library defines this for functions which it implements
  9130. to always fail with ENOSYS. Some functions are actually named
  9131. something starting with __ and the normal name is an alias. */
  9132. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9133. choke me
  9134. #else
  9135. char (*f) () = $ac_func;
  9136. #endif
  9137. #ifdef __cplusplus
  9138. }
  9139. #endif
  9140. int
  9141. main ()
  9142. {
  9143. return f != $ac_func;
  9144. ;
  9145. return 0;
  9146. }
  9147. _ACEOF
  9148. rm -f conftest.$ac_objext conftest$ac_exeext
  9149. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9150. (eval $ac_link) 2>conftest.er1
  9151. ac_status=$?
  9152. grep -v '^ *+' conftest.er1 >conftest.err
  9153. rm -f conftest.er1
  9154. cat conftest.err >&5
  9155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9156. (exit $ac_status); } &&
  9157. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9159. (eval $ac_try) 2>&5
  9160. ac_status=$?
  9161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9162. (exit $ac_status); }; } &&
  9163. { ac_try='test -s conftest$ac_exeext'
  9164. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9165. (eval $ac_try) 2>&5
  9166. ac_status=$?
  9167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9168. (exit $ac_status); }; }; then
  9169. eval "$as_ac_var=yes"
  9170. else
  9171. echo "$as_me: failed program was:" >&5
  9172. sed 's/^/| /' conftest.$ac_ext >&5
  9173. eval "$as_ac_var=no"
  9174. fi
  9175. rm -f conftest.err conftest.$ac_objext \
  9176. conftest$ac_exeext conftest.$ac_ext
  9177. fi
  9178. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9179. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9180. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9181. cat >>confdefs.h <<_ACEOF
  9182. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9183. _ACEOF
  9184. fi
  9185. done
  9186. echo "$as_me:$LINENO: checking for working mmap" >&5
  9187. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9188. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9189. echo $ECHO_N "(cached) $ECHO_C" >&6
  9190. else
  9191. if test "$cross_compiling" = yes; then
  9192. ac_cv_func_mmap_fixed_mapped=no
  9193. else
  9194. cat >conftest.$ac_ext <<_ACEOF
  9195. /* confdefs.h. */
  9196. _ACEOF
  9197. cat confdefs.h >>conftest.$ac_ext
  9198. cat >>conftest.$ac_ext <<_ACEOF
  9199. /* end confdefs.h. */
  9200. $ac_includes_default
  9201. /* malloc might have been renamed as rpl_malloc. */
  9202. #undef malloc
  9203. /* Thanks to Mike Haertel and Jim Avera for this test.
  9204. Here is a matrix of mmap possibilities:
  9205. mmap private not fixed
  9206. mmap private fixed at somewhere currently unmapped
  9207. mmap private fixed at somewhere already mapped
  9208. mmap shared not fixed
  9209. mmap shared fixed at somewhere currently unmapped
  9210. mmap shared fixed at somewhere already mapped
  9211. For private mappings, we should verify that changes cannot be read()
  9212. back from the file, nor mmap's back from the file at a different
  9213. address. (There have been systems where private was not correctly
  9214. implemented like the infamous i386 svr4.0, and systems where the
  9215. VM page cache was not coherent with the file system buffer cache
  9216. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9217. For shared mappings, we should conversely verify that changes get
  9218. propagated back to all the places they're supposed to be.
  9219. Grep wants private fixed already mapped.
  9220. The main things grep needs to know about mmap are:
  9221. * does it exist and is it safe to write into the mmap'd area
  9222. * how to use it (BSD variants) */
  9223. #include <fcntl.h>
  9224. #include <sys/mman.h>
  9225. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9226. char *malloc ();
  9227. #endif
  9228. /* This mess was copied from the GNU getpagesize.h. */
  9229. #if !HAVE_GETPAGESIZE
  9230. /* Assume that all systems that can run configure have sys/param.h. */
  9231. # if !HAVE_SYS_PARAM_H
  9232. # define HAVE_SYS_PARAM_H 1
  9233. # endif
  9234. # ifdef _SC_PAGESIZE
  9235. # define getpagesize() sysconf(_SC_PAGESIZE)
  9236. # else /* no _SC_PAGESIZE */
  9237. # if HAVE_SYS_PARAM_H
  9238. # include <sys/param.h>
  9239. # ifdef EXEC_PAGESIZE
  9240. # define getpagesize() EXEC_PAGESIZE
  9241. # else /* no EXEC_PAGESIZE */
  9242. # ifdef NBPG
  9243. # define getpagesize() NBPG * CLSIZE
  9244. # ifndef CLSIZE
  9245. # define CLSIZE 1
  9246. # endif /* no CLSIZE */
  9247. # else /* no NBPG */
  9248. # ifdef NBPC
  9249. # define getpagesize() NBPC
  9250. # else /* no NBPC */
  9251. # ifdef PAGESIZE
  9252. # define getpagesize() PAGESIZE
  9253. # endif /* PAGESIZE */
  9254. # endif /* no NBPC */
  9255. # endif /* no NBPG */
  9256. # endif /* no EXEC_PAGESIZE */
  9257. # else /* no HAVE_SYS_PARAM_H */
  9258. # define getpagesize() 8192 /* punt totally */
  9259. # endif /* no HAVE_SYS_PARAM_H */
  9260. # endif /* no _SC_PAGESIZE */
  9261. #endif /* no HAVE_GETPAGESIZE */
  9262. int
  9263. main ()
  9264. {
  9265. char *data, *data2, *data3;
  9266. int i, pagesize;
  9267. int fd;
  9268. pagesize = getpagesize ();
  9269. /* First, make a file with some known garbage in it. */
  9270. data = (char *) malloc (pagesize);
  9271. if (!data)
  9272. exit (1);
  9273. for (i = 0; i < pagesize; ++i)
  9274. *(data + i) = rand ();
  9275. umask (0);
  9276. fd = creat ("conftest.mmap", 0600);
  9277. if (fd < 0)
  9278. exit (1);
  9279. if (write (fd, data, pagesize) != pagesize)
  9280. exit (1);
  9281. close (fd);
  9282. /* Next, try to mmap the file at a fixed address which already has
  9283. something else allocated at it. If we can, also make sure that
  9284. we see the same garbage. */
  9285. fd = open ("conftest.mmap", O_RDWR);
  9286. if (fd < 0)
  9287. exit (1);
  9288. data2 = (char *) malloc (2 * pagesize);
  9289. if (!data2)
  9290. exit (1);
  9291. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9292. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9293. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9294. exit (1);
  9295. for (i = 0; i < pagesize; ++i)
  9296. if (*(data + i) != *(data2 + i))
  9297. exit (1);
  9298. /* Finally, make sure that changes to the mapped area do not
  9299. percolate back to the file as seen by read(). (This is a bug on
  9300. some variants of i386 svr4.0.) */
  9301. for (i = 0; i < pagesize; ++i)
  9302. *(data2 + i) = *(data2 + i) + 1;
  9303. data3 = (char *) malloc (pagesize);
  9304. if (!data3)
  9305. exit (1);
  9306. if (read (fd, data3, pagesize) != pagesize)
  9307. exit (1);
  9308. for (i = 0; i < pagesize; ++i)
  9309. if (*(data + i) != *(data3 + i))
  9310. exit (1);
  9311. close (fd);
  9312. exit (0);
  9313. }
  9314. _ACEOF
  9315. rm -f conftest$ac_exeext
  9316. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9317. (eval $ac_link) 2>&5
  9318. ac_status=$?
  9319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9320. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9321. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9322. (eval $ac_try) 2>&5
  9323. ac_status=$?
  9324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9325. (exit $ac_status); }; }; then
  9326. ac_cv_func_mmap_fixed_mapped=yes
  9327. else
  9328. echo "$as_me: program exited with status $ac_status" >&5
  9329. echo "$as_me: failed program was:" >&5
  9330. sed 's/^/| /' conftest.$ac_ext >&5
  9331. ( exit $ac_status )
  9332. ac_cv_func_mmap_fixed_mapped=no
  9333. fi
  9334. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9335. fi
  9336. fi
  9337. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9338. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9339. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9340. cat >>confdefs.h <<\_ACEOF
  9341. #define HAVE_MMAP 1
  9342. _ACEOF
  9343. fi
  9344. rm -f conftest.mmap
  9345. for ac_header in stdlib.h
  9346. do
  9347. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9348. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9349. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9350. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9351. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9352. echo $ECHO_N "(cached) $ECHO_C" >&6
  9353. fi
  9354. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9355. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9356. else
  9357. # Is the header compilable?
  9358. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9359. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9360. cat >conftest.$ac_ext <<_ACEOF
  9361. /* confdefs.h. */
  9362. _ACEOF
  9363. cat confdefs.h >>conftest.$ac_ext
  9364. cat >>conftest.$ac_ext <<_ACEOF
  9365. /* end confdefs.h. */
  9366. $ac_includes_default
  9367. #include <$ac_header>
  9368. _ACEOF
  9369. rm -f conftest.$ac_objext
  9370. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9371. (eval $ac_compile) 2>conftest.er1
  9372. ac_status=$?
  9373. grep -v '^ *+' conftest.er1 >conftest.err
  9374. rm -f conftest.er1
  9375. cat conftest.err >&5
  9376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9377. (exit $ac_status); } &&
  9378. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9379. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9380. (eval $ac_try) 2>&5
  9381. ac_status=$?
  9382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9383. (exit $ac_status); }; } &&
  9384. { ac_try='test -s conftest.$ac_objext'
  9385. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9386. (eval $ac_try) 2>&5
  9387. ac_status=$?
  9388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9389. (exit $ac_status); }; }; then
  9390. ac_header_compiler=yes
  9391. else
  9392. echo "$as_me: failed program was:" >&5
  9393. sed 's/^/| /' conftest.$ac_ext >&5
  9394. ac_header_compiler=no
  9395. fi
  9396. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9397. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9398. echo "${ECHO_T}$ac_header_compiler" >&6
  9399. # Is the header present?
  9400. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9401. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9402. cat >conftest.$ac_ext <<_ACEOF
  9403. /* confdefs.h. */
  9404. _ACEOF
  9405. cat confdefs.h >>conftest.$ac_ext
  9406. cat >>conftest.$ac_ext <<_ACEOF
  9407. /* end confdefs.h. */
  9408. #include <$ac_header>
  9409. _ACEOF
  9410. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9411. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9412. ac_status=$?
  9413. grep -v '^ *+' conftest.er1 >conftest.err
  9414. rm -f conftest.er1
  9415. cat conftest.err >&5
  9416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9417. (exit $ac_status); } >/dev/null; then
  9418. if test -s conftest.err; then
  9419. ac_cpp_err=$ac_c_preproc_warn_flag
  9420. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9421. else
  9422. ac_cpp_err=
  9423. fi
  9424. else
  9425. ac_cpp_err=yes
  9426. fi
  9427. if test -z "$ac_cpp_err"; then
  9428. ac_header_preproc=yes
  9429. else
  9430. echo "$as_me: failed program was:" >&5
  9431. sed 's/^/| /' conftest.$ac_ext >&5
  9432. ac_header_preproc=no
  9433. fi
  9434. rm -f conftest.err conftest.$ac_ext
  9435. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9436. echo "${ECHO_T}$ac_header_preproc" >&6
  9437. # So? What about this header?
  9438. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9439. yes:no: )
  9440. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9441. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9442. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9443. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9444. ac_header_preproc=yes
  9445. ;;
  9446. no:yes:* )
  9447. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9448. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9449. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9450. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9451. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9452. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9453. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9454. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9455. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9456. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9457. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9458. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9459. (
  9460. cat <<\_ASBOX
  9461. ## ------------------------------------------ ##
  9462. ## Report this to the AC_PACKAGE_NAME lists. ##
  9463. ## ------------------------------------------ ##
  9464. _ASBOX
  9465. ) |
  9466. sed "s/^/$as_me: WARNING: /" >&2
  9467. ;;
  9468. esac
  9469. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9470. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9471. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9472. echo $ECHO_N "(cached) $ECHO_C" >&6
  9473. else
  9474. eval "$as_ac_Header=\$ac_header_preproc"
  9475. fi
  9476. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9477. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9478. fi
  9479. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9480. cat >>confdefs.h <<_ACEOF
  9481. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9482. _ACEOF
  9483. fi
  9484. done
  9485. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9486. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9487. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9488. echo $ECHO_N "(cached) $ECHO_C" >&6
  9489. else
  9490. if test "$cross_compiling" = yes; then
  9491. ac_cv_func_realloc_0_nonnull=no
  9492. else
  9493. cat >conftest.$ac_ext <<_ACEOF
  9494. /* confdefs.h. */
  9495. _ACEOF
  9496. cat confdefs.h >>conftest.$ac_ext
  9497. cat >>conftest.$ac_ext <<_ACEOF
  9498. /* end confdefs.h. */
  9499. #if STDC_HEADERS || HAVE_STDLIB_H
  9500. # include <stdlib.h>
  9501. #else
  9502. char *realloc ();
  9503. #endif
  9504. int
  9505. main ()
  9506. {
  9507. exit (realloc (0, 0) ? 0 : 1);
  9508. ;
  9509. return 0;
  9510. }
  9511. _ACEOF
  9512. rm -f conftest$ac_exeext
  9513. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9514. (eval $ac_link) 2>&5
  9515. ac_status=$?
  9516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9517. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9518. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9519. (eval $ac_try) 2>&5
  9520. ac_status=$?
  9521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9522. (exit $ac_status); }; }; then
  9523. ac_cv_func_realloc_0_nonnull=yes
  9524. else
  9525. echo "$as_me: program exited with status $ac_status" >&5
  9526. echo "$as_me: failed program was:" >&5
  9527. sed 's/^/| /' conftest.$ac_ext >&5
  9528. ( exit $ac_status )
  9529. ac_cv_func_realloc_0_nonnull=no
  9530. fi
  9531. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9532. fi
  9533. fi
  9534. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9535. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9536. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9537. cat >>confdefs.h <<\_ACEOF
  9538. #define HAVE_REALLOC 1
  9539. _ACEOF
  9540. else
  9541. cat >>confdefs.h <<\_ACEOF
  9542. #define HAVE_REALLOC 0
  9543. _ACEOF
  9544. case $LIBOBJS in
  9545. "realloc.$ac_objext" | \
  9546. *" realloc.$ac_objext" | \
  9547. "realloc.$ac_objext "* | \
  9548. *" realloc.$ac_objext "* ) ;;
  9549. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9550. esac
  9551. cat >>confdefs.h <<\_ACEOF
  9552. #define realloc rpl_realloc
  9553. _ACEOF
  9554. fi
  9555. for ac_header in sys/select.h sys/socket.h
  9556. do
  9557. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9558. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9559. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9560. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9561. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9562. echo $ECHO_N "(cached) $ECHO_C" >&6
  9563. fi
  9564. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9565. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9566. else
  9567. # Is the header compilable?
  9568. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9569. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9570. cat >conftest.$ac_ext <<_ACEOF
  9571. /* confdefs.h. */
  9572. _ACEOF
  9573. cat confdefs.h >>conftest.$ac_ext
  9574. cat >>conftest.$ac_ext <<_ACEOF
  9575. /* end confdefs.h. */
  9576. $ac_includes_default
  9577. #include <$ac_header>
  9578. _ACEOF
  9579. rm -f conftest.$ac_objext
  9580. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9581. (eval $ac_compile) 2>conftest.er1
  9582. ac_status=$?
  9583. grep -v '^ *+' conftest.er1 >conftest.err
  9584. rm -f conftest.er1
  9585. cat conftest.err >&5
  9586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9587. (exit $ac_status); } &&
  9588. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9589. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9590. (eval $ac_try) 2>&5
  9591. ac_status=$?
  9592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9593. (exit $ac_status); }; } &&
  9594. { ac_try='test -s conftest.$ac_objext'
  9595. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9596. (eval $ac_try) 2>&5
  9597. ac_status=$?
  9598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9599. (exit $ac_status); }; }; then
  9600. ac_header_compiler=yes
  9601. else
  9602. echo "$as_me: failed program was:" >&5
  9603. sed 's/^/| /' conftest.$ac_ext >&5
  9604. ac_header_compiler=no
  9605. fi
  9606. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9607. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9608. echo "${ECHO_T}$ac_header_compiler" >&6
  9609. # Is the header present?
  9610. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9611. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9612. cat >conftest.$ac_ext <<_ACEOF
  9613. /* confdefs.h. */
  9614. _ACEOF
  9615. cat confdefs.h >>conftest.$ac_ext
  9616. cat >>conftest.$ac_ext <<_ACEOF
  9617. /* end confdefs.h. */
  9618. #include <$ac_header>
  9619. _ACEOF
  9620. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9621. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9622. ac_status=$?
  9623. grep -v '^ *+' conftest.er1 >conftest.err
  9624. rm -f conftest.er1
  9625. cat conftest.err >&5
  9626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9627. (exit $ac_status); } >/dev/null; then
  9628. if test -s conftest.err; then
  9629. ac_cpp_err=$ac_c_preproc_warn_flag
  9630. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9631. else
  9632. ac_cpp_err=
  9633. fi
  9634. else
  9635. ac_cpp_err=yes
  9636. fi
  9637. if test -z "$ac_cpp_err"; then
  9638. ac_header_preproc=yes
  9639. else
  9640. echo "$as_me: failed program was:" >&5
  9641. sed 's/^/| /' conftest.$ac_ext >&5
  9642. ac_header_preproc=no
  9643. fi
  9644. rm -f conftest.err conftest.$ac_ext
  9645. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9646. echo "${ECHO_T}$ac_header_preproc" >&6
  9647. # So? What about this header?
  9648. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9649. yes:no: )
  9650. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9651. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9652. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9653. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9654. ac_header_preproc=yes
  9655. ;;
  9656. no:yes:* )
  9657. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9658. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9659. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9660. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9661. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9662. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9663. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9664. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9665. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9666. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9667. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9668. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9669. (
  9670. cat <<\_ASBOX
  9671. ## ------------------------------------------ ##
  9672. ## Report this to the AC_PACKAGE_NAME lists. ##
  9673. ## ------------------------------------------ ##
  9674. _ASBOX
  9675. ) |
  9676. sed "s/^/$as_me: WARNING: /" >&2
  9677. ;;
  9678. esac
  9679. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9680. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9681. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9682. echo $ECHO_N "(cached) $ECHO_C" >&6
  9683. else
  9684. eval "$as_ac_Header=\$ac_header_preproc"
  9685. fi
  9686. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9687. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9688. fi
  9689. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9690. cat >>confdefs.h <<_ACEOF
  9691. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9692. _ACEOF
  9693. fi
  9694. done
  9695. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  9696. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  9697. if test "${ac_cv_func_select_args+set}" = set; then
  9698. echo $ECHO_N "(cached) $ECHO_C" >&6
  9699. else
  9700. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  9701. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  9702. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  9703. cat >conftest.$ac_ext <<_ACEOF
  9704. /* confdefs.h. */
  9705. _ACEOF
  9706. cat confdefs.h >>conftest.$ac_ext
  9707. cat >>conftest.$ac_ext <<_ACEOF
  9708. /* end confdefs.h. */
  9709. $ac_includes_default
  9710. #if HAVE_SYS_SELECT_H
  9711. # include <sys/select.h>
  9712. #endif
  9713. #if HAVE_SYS_SOCKET_H
  9714. # include <sys/socket.h>
  9715. #endif
  9716. int
  9717. main ()
  9718. {
  9719. extern int select ($ac_arg1,
  9720. $ac_arg234, $ac_arg234, $ac_arg234,
  9721. $ac_arg5);
  9722. ;
  9723. return 0;
  9724. }
  9725. _ACEOF
  9726. rm -f conftest.$ac_objext
  9727. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9728. (eval $ac_compile) 2>conftest.er1
  9729. ac_status=$?
  9730. grep -v '^ *+' conftest.er1 >conftest.err
  9731. rm -f conftest.er1
  9732. cat conftest.err >&5
  9733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9734. (exit $ac_status); } &&
  9735. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9736. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9737. (eval $ac_try) 2>&5
  9738. ac_status=$?
  9739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9740. (exit $ac_status); }; } &&
  9741. { ac_try='test -s conftest.$ac_objext'
  9742. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9743. (eval $ac_try) 2>&5
  9744. ac_status=$?
  9745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9746. (exit $ac_status); }; }; then
  9747. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  9748. else
  9749. echo "$as_me: failed program was:" >&5
  9750. sed 's/^/| /' conftest.$ac_ext >&5
  9751. fi
  9752. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9753. done
  9754. done
  9755. done
  9756. # Provide a safe default value.
  9757. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  9758. fi
  9759. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  9760. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  9761. ac_save_IFS=$IFS; IFS=','
  9762. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  9763. IFS=$ac_save_IFS
  9764. shift
  9765. cat >>confdefs.h <<_ACEOF
  9766. #define SELECT_TYPE_ARG1 $1
  9767. _ACEOF
  9768. cat >>confdefs.h <<_ACEOF
  9769. #define SELECT_TYPE_ARG234 ($2)
  9770. _ACEOF
  9771. cat >>confdefs.h <<_ACEOF
  9772. #define SELECT_TYPE_ARG5 ($3)
  9773. _ACEOF
  9774. rm -f conftest*
  9775. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9776. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9777. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9778. echo $ECHO_N "(cached) $ECHO_C" >&6
  9779. else
  9780. if test "$cross_compiling" = yes; then
  9781. ac_cv_func_stat_empty_string_bug=yes
  9782. else
  9783. cat >conftest.$ac_ext <<_ACEOF
  9784. /* confdefs.h. */
  9785. _ACEOF
  9786. cat confdefs.h >>conftest.$ac_ext
  9787. cat >>conftest.$ac_ext <<_ACEOF
  9788. /* end confdefs.h. */
  9789. $ac_includes_default
  9790. int
  9791. main ()
  9792. {
  9793. struct stat sbuf;
  9794. exit (stat ("", &sbuf) ? 1 : 0);
  9795. ;
  9796. return 0;
  9797. }
  9798. _ACEOF
  9799. rm -f conftest$ac_exeext
  9800. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9801. (eval $ac_link) 2>&5
  9802. ac_status=$?
  9803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9804. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9806. (eval $ac_try) 2>&5
  9807. ac_status=$?
  9808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9809. (exit $ac_status); }; }; then
  9810. ac_cv_func_stat_empty_string_bug=yes
  9811. else
  9812. echo "$as_me: program exited with status $ac_status" >&5
  9813. echo "$as_me: failed program was:" >&5
  9814. sed 's/^/| /' conftest.$ac_ext >&5
  9815. ( exit $ac_status )
  9816. ac_cv_func_stat_empty_string_bug=no
  9817. fi
  9818. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9819. fi
  9820. fi
  9821. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9822. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9823. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9824. case $LIBOBJS in
  9825. "stat.$ac_objext" | \
  9826. *" stat.$ac_objext" | \
  9827. "stat.$ac_objext "* | \
  9828. *" stat.$ac_objext "* ) ;;
  9829. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9830. esac
  9831. cat >>confdefs.h <<_ACEOF
  9832. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9833. _ACEOF
  9834. fi
  9835. for ac_func in strftime
  9836. do
  9837. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9838. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9839. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9840. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9841. echo $ECHO_N "(cached) $ECHO_C" >&6
  9842. else
  9843. cat >conftest.$ac_ext <<_ACEOF
  9844. /* confdefs.h. */
  9845. _ACEOF
  9846. cat confdefs.h >>conftest.$ac_ext
  9847. cat >>conftest.$ac_ext <<_ACEOF
  9848. /* end confdefs.h. */
  9849. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9850. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9851. #define $ac_func innocuous_$ac_func
  9852. /* System header to define __stub macros and hopefully few prototypes,
  9853. which can conflict with char $ac_func (); below.
  9854. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9855. <limits.h> exists even on freestanding compilers. */
  9856. #ifdef __STDC__
  9857. # include <limits.h>
  9858. #else
  9859. # include <assert.h>
  9860. #endif
  9861. #undef $ac_func
  9862. /* Override any gcc2 internal prototype to avoid an error. */
  9863. #ifdef __cplusplus
  9864. extern "C"
  9865. {
  9866. #endif
  9867. /* We use char because int might match the return type of a gcc2
  9868. builtin and then its argument prototype would still apply. */
  9869. char $ac_func ();
  9870. /* The GNU C library defines this for functions which it implements
  9871. to always fail with ENOSYS. Some functions are actually named
  9872. something starting with __ and the normal name is an alias. */
  9873. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9874. choke me
  9875. #else
  9876. char (*f) () = $ac_func;
  9877. #endif
  9878. #ifdef __cplusplus
  9879. }
  9880. #endif
  9881. int
  9882. main ()
  9883. {
  9884. return f != $ac_func;
  9885. ;
  9886. return 0;
  9887. }
  9888. _ACEOF
  9889. rm -f conftest.$ac_objext conftest$ac_exeext
  9890. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9891. (eval $ac_link) 2>conftest.er1
  9892. ac_status=$?
  9893. grep -v '^ *+' conftest.er1 >conftest.err
  9894. rm -f conftest.er1
  9895. cat conftest.err >&5
  9896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9897. (exit $ac_status); } &&
  9898. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9899. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9900. (eval $ac_try) 2>&5
  9901. ac_status=$?
  9902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9903. (exit $ac_status); }; } &&
  9904. { ac_try='test -s conftest$ac_exeext'
  9905. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9906. (eval $ac_try) 2>&5
  9907. ac_status=$?
  9908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9909. (exit $ac_status); }; }; then
  9910. eval "$as_ac_var=yes"
  9911. else
  9912. echo "$as_me: failed program was:" >&5
  9913. sed 's/^/| /' conftest.$ac_ext >&5
  9914. eval "$as_ac_var=no"
  9915. fi
  9916. rm -f conftest.err conftest.$ac_objext \
  9917. conftest$ac_exeext conftest.$ac_ext
  9918. fi
  9919. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9920. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9921. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9922. cat >>confdefs.h <<_ACEOF
  9923. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9924. _ACEOF
  9925. else
  9926. # strftime is in -lintl on SCO UNIX.
  9927. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  9928. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  9929. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  9930. echo $ECHO_N "(cached) $ECHO_C" >&6
  9931. else
  9932. ac_check_lib_save_LIBS=$LIBS
  9933. LIBS="-lintl $LIBS"
  9934. cat >conftest.$ac_ext <<_ACEOF
  9935. /* confdefs.h. */
  9936. _ACEOF
  9937. cat confdefs.h >>conftest.$ac_ext
  9938. cat >>conftest.$ac_ext <<_ACEOF
  9939. /* end confdefs.h. */
  9940. /* Override any gcc2 internal prototype to avoid an error. */
  9941. #ifdef __cplusplus
  9942. extern "C"
  9943. #endif
  9944. /* We use char because int might match the return type of a gcc2
  9945. builtin and then its argument prototype would still apply. */
  9946. char strftime ();
  9947. int
  9948. main ()
  9949. {
  9950. strftime ();
  9951. ;
  9952. return 0;
  9953. }
  9954. _ACEOF
  9955. rm -f conftest.$ac_objext conftest$ac_exeext
  9956. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9957. (eval $ac_link) 2>conftest.er1
  9958. ac_status=$?
  9959. grep -v '^ *+' conftest.er1 >conftest.err
  9960. rm -f conftest.er1
  9961. cat conftest.err >&5
  9962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9963. (exit $ac_status); } &&
  9964. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9965. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9966. (eval $ac_try) 2>&5
  9967. ac_status=$?
  9968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9969. (exit $ac_status); }; } &&
  9970. { ac_try='test -s conftest$ac_exeext'
  9971. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9972. (eval $ac_try) 2>&5
  9973. ac_status=$?
  9974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9975. (exit $ac_status); }; }; then
  9976. ac_cv_lib_intl_strftime=yes
  9977. else
  9978. echo "$as_me: failed program was:" >&5
  9979. sed 's/^/| /' conftest.$ac_ext >&5
  9980. ac_cv_lib_intl_strftime=no
  9981. fi
  9982. rm -f conftest.err conftest.$ac_objext \
  9983. conftest$ac_exeext conftest.$ac_ext
  9984. LIBS=$ac_check_lib_save_LIBS
  9985. fi
  9986. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  9987. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  9988. if test $ac_cv_lib_intl_strftime = yes; then
  9989. cat >>confdefs.h <<\_ACEOF
  9990. #define HAVE_STRFTIME 1
  9991. _ACEOF
  9992. LIBS="-lintl $LIBS"
  9993. fi
  9994. fi
  9995. done
  9996. #checkpoint
  9997. cat >confcache <<\_ACEOF
  9998. # This file is a shell script that caches the results of configure
  9999. # tests run on this system so they can be shared between configure
  10000. # scripts and configure runs, see configure's option --config-cache.
  10001. # It is not useful on other systems. If it contains results you don't
  10002. # want to keep, you may remove or edit it.
  10003. #
  10004. # config.status only pays attention to the cache file if you give it
  10005. # the --recheck option to rerun configure.
  10006. #
  10007. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10008. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10009. # following values.
  10010. _ACEOF
  10011. # The following way of writing the cache mishandles newlines in values,
  10012. # but we know of no workaround that is simple, portable, and efficient.
  10013. # So, don't put newlines in cache variables' values.
  10014. # Ultrix sh set writes to stderr and can't be redirected directly,
  10015. # and sets the high bit in the cache file unless we assign to the vars.
  10016. {
  10017. (set) 2>&1 |
  10018. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10019. *ac_space=\ *)
  10020. # `set' does not quote correctly, so add quotes (double-quote
  10021. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10022. sed -n \
  10023. "s/'/'\\\\''/g;
  10024. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10025. ;;
  10026. *)
  10027. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10028. sed -n \
  10029. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10030. ;;
  10031. esac;
  10032. } |
  10033. sed '
  10034. t clear
  10035. : clear
  10036. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10037. t end
  10038. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10039. : end' >>confcache
  10040. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10041. if test -w $cache_file; then
  10042. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  10043. cat confcache >$cache_file
  10044. else
  10045. echo "not updating unwritable cache $cache_file"
  10046. fi
  10047. fi
  10048. rm -f confcache
  10049. for ac_func in clock dlopen dprintf fsync getdtablesize getrusage inet_aton isascii gethostbyname2 getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom strcasecmp strncasecmp uname vsnprintf
  10050. do
  10051. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10052. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10053. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10054. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10055. echo $ECHO_N "(cached) $ECHO_C" >&6
  10056. else
  10057. cat >conftest.$ac_ext <<_ACEOF
  10058. /* confdefs.h. */
  10059. _ACEOF
  10060. cat confdefs.h >>conftest.$ac_ext
  10061. cat >>conftest.$ac_ext <<_ACEOF
  10062. /* end confdefs.h. */
  10063. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10064. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10065. #define $ac_func innocuous_$ac_func
  10066. /* System header to define __stub macros and hopefully few prototypes,
  10067. which can conflict with char $ac_func (); below.
  10068. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10069. <limits.h> exists even on freestanding compilers. */
  10070. #ifdef __STDC__
  10071. # include <limits.h>
  10072. #else
  10073. # include <assert.h>
  10074. #endif
  10075. #undef $ac_func
  10076. /* Override any gcc2 internal prototype to avoid an error. */
  10077. #ifdef __cplusplus
  10078. extern "C"
  10079. {
  10080. #endif
  10081. /* We use char because int might match the return type of a gcc2
  10082. builtin and then its argument prototype would still apply. */
  10083. char $ac_func ();
  10084. /* The GNU C library defines this for functions which it implements
  10085. to always fail with ENOSYS. Some functions are actually named
  10086. something starting with __ and the normal name is an alias. */
  10087. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10088. choke me
  10089. #else
  10090. char (*f) () = $ac_func;
  10091. #endif
  10092. #ifdef __cplusplus
  10093. }
  10094. #endif
  10095. int
  10096. main ()
  10097. {
  10098. return f != $ac_func;
  10099. ;
  10100. return 0;
  10101. }
  10102. _ACEOF
  10103. rm -f conftest.$ac_objext conftest$ac_exeext
  10104. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10105. (eval $ac_link) 2>conftest.er1
  10106. ac_status=$?
  10107. grep -v '^ *+' conftest.er1 >conftest.err
  10108. rm -f conftest.er1
  10109. cat conftest.err >&5
  10110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10111. (exit $ac_status); } &&
  10112. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10113. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10114. (eval $ac_try) 2>&5
  10115. ac_status=$?
  10116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10117. (exit $ac_status); }; } &&
  10118. { ac_try='test -s conftest$ac_exeext'
  10119. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10120. (eval $ac_try) 2>&5
  10121. ac_status=$?
  10122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10123. (exit $ac_status); }; }; then
  10124. eval "$as_ac_var=yes"
  10125. else
  10126. echo "$as_me: failed program was:" >&5
  10127. sed 's/^/| /' conftest.$ac_ext >&5
  10128. eval "$as_ac_var=no"
  10129. fi
  10130. rm -f conftest.err conftest.$ac_objext \
  10131. conftest$ac_exeext conftest.$ac_ext
  10132. fi
  10133. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10134. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10135. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10136. cat >>confdefs.h <<_ACEOF
  10137. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10138. _ACEOF
  10139. fi
  10140. done
  10141. #checkpoint
  10142. cat >confcache <<\_ACEOF
  10143. # This file is a shell script that caches the results of configure
  10144. # tests run on this system so they can be shared between configure
  10145. # scripts and configure runs, see configure's option --config-cache.
  10146. # It is not useful on other systems. If it contains results you don't
  10147. # want to keep, you may remove or edit it.
  10148. #
  10149. # config.status only pays attention to the cache file if you give it
  10150. # the --recheck option to rerun configure.
  10151. #
  10152. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10153. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10154. # following values.
  10155. _ACEOF
  10156. # The following way of writing the cache mishandles newlines in values,
  10157. # but we know of no workaround that is simple, portable, and efficient.
  10158. # So, don't put newlines in cache variables' values.
  10159. # Ultrix sh set writes to stderr and can't be redirected directly,
  10160. # and sets the high bit in the cache file unless we assign to the vars.
  10161. {
  10162. (set) 2>&1 |
  10163. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10164. *ac_space=\ *)
  10165. # `set' does not quote correctly, so add quotes (double-quote
  10166. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10167. sed -n \
  10168. "s/'/'\\\\''/g;
  10169. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10170. ;;
  10171. *)
  10172. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10173. sed -n \
  10174. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10175. ;;
  10176. esac;
  10177. } |
  10178. sed '
  10179. t clear
  10180. : clear
  10181. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10182. t end
  10183. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10184. : end' >>confcache
  10185. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10186. if test -w $cache_file; then
  10187. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  10188. cat confcache >$cache_file
  10189. else
  10190. echo "not updating unwritable cache $cache_file"
  10191. fi
  10192. fi
  10193. rm -f confcache
  10194. #autoscan suggested this....
  10195. for ac_func in alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa mbrlen mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset
  10196. do
  10197. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10198. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10199. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10200. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10201. echo $ECHO_N "(cached) $ECHO_C" >&6
  10202. else
  10203. cat >conftest.$ac_ext <<_ACEOF
  10204. /* confdefs.h. */
  10205. _ACEOF
  10206. cat confdefs.h >>conftest.$ac_ext
  10207. cat >>conftest.$ac_ext <<_ACEOF
  10208. /* end confdefs.h. */
  10209. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10210. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10211. #define $ac_func innocuous_$ac_func
  10212. /* System header to define __stub macros and hopefully few prototypes,
  10213. which can conflict with char $ac_func (); below.
  10214. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10215. <limits.h> exists even on freestanding compilers. */
  10216. #ifdef __STDC__
  10217. # include <limits.h>
  10218. #else
  10219. # include <assert.h>
  10220. #endif
  10221. #undef $ac_func
  10222. /* Override any gcc2 internal prototype to avoid an error. */
  10223. #ifdef __cplusplus
  10224. extern "C"
  10225. {
  10226. #endif
  10227. /* We use char because int might match the return type of a gcc2
  10228. builtin and then its argument prototype would still apply. */
  10229. char $ac_func ();
  10230. /* The GNU C library defines this for functions which it implements
  10231. to always fail with ENOSYS. Some functions are actually named
  10232. something starting with __ and the normal name is an alias. */
  10233. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10234. choke me
  10235. #else
  10236. char (*f) () = $ac_func;
  10237. #endif
  10238. #ifdef __cplusplus
  10239. }
  10240. #endif
  10241. int
  10242. main ()
  10243. {
  10244. return f != $ac_func;
  10245. ;
  10246. return 0;
  10247. }
  10248. _ACEOF
  10249. rm -f conftest.$ac_objext conftest$ac_exeext
  10250. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10251. (eval $ac_link) 2>conftest.er1
  10252. ac_status=$?
  10253. grep -v '^ *+' conftest.er1 >conftest.err
  10254. rm -f conftest.er1
  10255. cat conftest.err >&5
  10256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10257. (exit $ac_status); } &&
  10258. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10259. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10260. (eval $ac_try) 2>&5
  10261. ac_status=$?
  10262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10263. (exit $ac_status); }; } &&
  10264. { ac_try='test -s conftest$ac_exeext'
  10265. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10266. (eval $ac_try) 2>&5
  10267. ac_status=$?
  10268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10269. (exit $ac_status); }; }; then
  10270. eval "$as_ac_var=yes"
  10271. else
  10272. echo "$as_me: failed program was:" >&5
  10273. sed 's/^/| /' conftest.$ac_ext >&5
  10274. eval "$as_ac_var=no"
  10275. fi
  10276. rm -f conftest.err conftest.$ac_objext \
  10277. conftest$ac_exeext conftest.$ac_ext
  10278. fi
  10279. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10280. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10281. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10282. cat >>confdefs.h <<_ACEOF
  10283. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10284. _ACEOF
  10285. fi
  10286. done
  10287. for ac_func in vsprintf
  10288. do
  10289. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10290. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10291. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10292. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10293. echo $ECHO_N "(cached) $ECHO_C" >&6
  10294. else
  10295. cat >conftest.$ac_ext <<_ACEOF
  10296. /* confdefs.h. */
  10297. _ACEOF
  10298. cat confdefs.h >>conftest.$ac_ext
  10299. cat >>conftest.$ac_ext <<_ACEOF
  10300. /* end confdefs.h. */
  10301. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10302. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10303. #define $ac_func innocuous_$ac_func
  10304. /* System header to define __stub macros and hopefully few prototypes,
  10305. which can conflict with char $ac_func (); below.
  10306. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10307. <limits.h> exists even on freestanding compilers. */
  10308. #ifdef __STDC__
  10309. # include <limits.h>
  10310. #else
  10311. # include <assert.h>
  10312. #endif
  10313. #undef $ac_func
  10314. /* Override any gcc2 internal prototype to avoid an error. */
  10315. #ifdef __cplusplus
  10316. extern "C"
  10317. {
  10318. #endif
  10319. /* We use char because int might match the return type of a gcc2
  10320. builtin and then its argument prototype would still apply. */
  10321. char $ac_func ();
  10322. /* The GNU C library defines this for functions which it implements
  10323. to always fail with ENOSYS. Some functions are actually named
  10324. something starting with __ and the normal name is an alias. */
  10325. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10326. choke me
  10327. #else
  10328. char (*f) () = $ac_func;
  10329. #endif
  10330. #ifdef __cplusplus
  10331. }
  10332. #endif
  10333. int
  10334. main ()
  10335. {
  10336. return f != $ac_func;
  10337. ;
  10338. return 0;
  10339. }
  10340. _ACEOF
  10341. rm -f conftest.$ac_objext conftest$ac_exeext
  10342. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10343. (eval $ac_link) 2>conftest.er1
  10344. ac_status=$?
  10345. grep -v '^ *+' conftest.er1 >conftest.err
  10346. rm -f conftest.er1
  10347. cat conftest.err >&5
  10348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10349. (exit $ac_status); } &&
  10350. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10351. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10352. (eval $ac_try) 2>&5
  10353. ac_status=$?
  10354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10355. (exit $ac_status); }; } &&
  10356. { ac_try='test -s conftest$ac_exeext'
  10357. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10358. (eval $ac_try) 2>&5
  10359. ac_status=$?
  10360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10361. (exit $ac_status); }; }; then
  10362. eval "$as_ac_var=yes"
  10363. else
  10364. echo "$as_me: failed program was:" >&5
  10365. sed 's/^/| /' conftest.$ac_ext >&5
  10366. eval "$as_ac_var=no"
  10367. fi
  10368. rm -f conftest.err conftest.$ac_objext \
  10369. conftest$ac_exeext conftest.$ac_ext
  10370. fi
  10371. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10372. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10373. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10374. cat >>confdefs.h <<_ACEOF
  10375. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10376. _ACEOF
  10377. fi
  10378. done
  10379. if test "$ac_cv_func_vsprintf" = "no"
  10380. then
  10381. cat << 'EOF' >&2
  10382. configure: error:
  10383. Your system does not have the sprintf/vsprintf libraries.
  10384. These are required to compile almost anything. Sorry.
  10385. EOF
  10386. exit 1
  10387. fi
  10388. for ac_func in uname
  10389. do
  10390. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10391. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10392. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10393. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10394. echo $ECHO_N "(cached) $ECHO_C" >&6
  10395. else
  10396. cat >conftest.$ac_ext <<_ACEOF
  10397. /* confdefs.h. */
  10398. _ACEOF
  10399. cat confdefs.h >>conftest.$ac_ext
  10400. cat >>conftest.$ac_ext <<_ACEOF
  10401. /* end confdefs.h. */
  10402. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10403. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10404. #define $ac_func innocuous_$ac_func
  10405. /* System header to define __stub macros and hopefully few prototypes,
  10406. which can conflict with char $ac_func (); below.
  10407. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10408. <limits.h> exists even on freestanding compilers. */
  10409. #ifdef __STDC__
  10410. # include <limits.h>
  10411. #else
  10412. # include <assert.h>
  10413. #endif
  10414. #undef $ac_func
  10415. /* Override any gcc2 internal prototype to avoid an error. */
  10416. #ifdef __cplusplus
  10417. extern "C"
  10418. {
  10419. #endif
  10420. /* We use char because int might match the return type of a gcc2
  10421. builtin and then its argument prototype would still apply. */
  10422. char $ac_func ();
  10423. /* The GNU C library defines this for functions which it implements
  10424. to always fail with ENOSYS. Some functions are actually named
  10425. something starting with __ and the normal name is an alias. */
  10426. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10427. choke me
  10428. #else
  10429. char (*f) () = $ac_func;
  10430. #endif
  10431. #ifdef __cplusplus
  10432. }
  10433. #endif
  10434. int
  10435. main ()
  10436. {
  10437. return f != $ac_func;
  10438. ;
  10439. return 0;
  10440. }
  10441. _ACEOF
  10442. rm -f conftest.$ac_objext conftest$ac_exeext
  10443. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10444. (eval $ac_link) 2>conftest.er1
  10445. ac_status=$?
  10446. grep -v '^ *+' conftest.er1 >conftest.err
  10447. rm -f conftest.er1
  10448. cat conftest.err >&5
  10449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10450. (exit $ac_status); } &&
  10451. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10452. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10453. (eval $ac_try) 2>&5
  10454. ac_status=$?
  10455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10456. (exit $ac_status); }; } &&
  10457. { ac_try='test -s conftest$ac_exeext'
  10458. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10459. (eval $ac_try) 2>&5
  10460. ac_status=$?
  10461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10462. (exit $ac_status); }; }; then
  10463. eval "$as_ac_var=yes"
  10464. else
  10465. echo "$as_me: failed program was:" >&5
  10466. sed 's/^/| /' conftest.$ac_ext >&5
  10467. eval "$as_ac_var=no"
  10468. fi
  10469. rm -f conftest.err conftest.$ac_objext \
  10470. conftest$ac_exeext conftest.$ac_ext
  10471. fi
  10472. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10473. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10474. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10475. cat >>confdefs.h <<_ACEOF
  10476. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10477. _ACEOF
  10478. fi
  10479. done
  10480. if test "$ac_cv_func_uname" = "no"
  10481. then
  10482. cat << 'EOF' >&2
  10483. configure: error:
  10484. Your system does not have the uname() function.
  10485. This is required for the botpack.
  10486. EOF
  10487. exit 1
  10488. fi
  10489. # Make sure we have stdc headers, since we can't compile without them
  10490. if test "$ac_cv_header_stdc" = "no"
  10491. then
  10492. cat << 'EOF' >&2
  10493. configure: error:
  10494. Your system must support ANSI C Header files.
  10495. These are required for the language support. Sorry.
  10496. EOF
  10497. exit 1
  10498. fi
  10499. # Make sure we are using the correct result from a broken libsafe sscanf
  10500. echo "$as_me:$LINENO: checking for broken libsafe sscanf" >&5
  10501. echo $ECHO_N "checking for broken libsafe sscanf... $ECHO_C" >&6
  10502. if test "${egg_cv_var_libsafe_sscanf+set}" = set; then
  10503. echo $ECHO_N "(cached) $ECHO_C" >&6
  10504. else
  10505. if test "$cross_compiling" = yes; then
  10506. egg_cv_var_libsafe_sscanf="no"
  10507. else
  10508. cat >conftest.$ac_ext <<_ACEOF
  10509. /* confdefs.h. */
  10510. _ACEOF
  10511. cat confdefs.h >>conftest.$ac_ext
  10512. cat >>conftest.$ac_ext <<_ACEOF
  10513. /* end confdefs.h. */
  10514. #include <stdio.h>
  10515. int main()
  10516. {
  10517. char *src = "0x001,guppyism\n";
  10518. char dst[10];
  10519. int idx;
  10520. if (sscanf(src, "0x%x,%10c", &idx, dst) == 1)
  10521. exit(1);
  10522. return 0;
  10523. }
  10524. _ACEOF
  10525. rm -f conftest$ac_exeext
  10526. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10527. (eval $ac_link) 2>&5
  10528. ac_status=$?
  10529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10530. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10532. (eval $ac_try) 2>&5
  10533. ac_status=$?
  10534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10535. (exit $ac_status); }; }; then
  10536. egg_cv_var_libsafe_sscanf="no"
  10537. else
  10538. echo "$as_me: program exited with status $ac_status" >&5
  10539. echo "$as_me: failed program was:" >&5
  10540. sed 's/^/| /' conftest.$ac_ext >&5
  10541. ( exit $ac_status )
  10542. egg_cv_var_libsafe_sscanf="yes"
  10543. fi
  10544. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10545. fi
  10546. fi
  10547. echo "$as_me:$LINENO: result: $egg_cv_var_libsafe_sscanf" >&5
  10548. echo "${ECHO_T}$egg_cv_var_libsafe_sscanf" >&6
  10549. if test "$egg_cv_var_libsafe_sscanf" = "yes"
  10550. then
  10551. cat >>confdefs.h <<\_ACEOF
  10552. #define LIBSAFE_HACKS 1
  10553. _ACEOF
  10554. fi
  10555. #checkpoint
  10556. cat >confcache <<\_ACEOF
  10557. # This file is a shell script that caches the results of configure
  10558. # tests run on this system so they can be shared between configure
  10559. # scripts and configure runs, see configure's option --config-cache.
  10560. # It is not useful on other systems. If it contains results you don't
  10561. # want to keep, you may remove or edit it.
  10562. #
  10563. # config.status only pays attention to the cache file if you give it
  10564. # the --recheck option to rerun configure.
  10565. #
  10566. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10567. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10568. # following values.
  10569. _ACEOF
  10570. # The following way of writing the cache mishandles newlines in values,
  10571. # but we know of no workaround that is simple, portable, and efficient.
  10572. # So, don't put newlines in cache variables' values.
  10573. # Ultrix sh set writes to stderr and can't be redirected directly,
  10574. # and sets the high bit in the cache file unless we assign to the vars.
  10575. {
  10576. (set) 2>&1 |
  10577. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10578. *ac_space=\ *)
  10579. # `set' does not quote correctly, so add quotes (double-quote
  10580. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10581. sed -n \
  10582. "s/'/'\\\\''/g;
  10583. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10584. ;;
  10585. *)
  10586. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10587. sed -n \
  10588. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10589. ;;
  10590. esac;
  10591. } |
  10592. sed '
  10593. t clear
  10594. : clear
  10595. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10596. t end
  10597. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10598. : end' >>confcache
  10599. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10600. if test -w $cache_file; then
  10601. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  10602. cat confcache >$cache_file
  10603. else
  10604. echo "not updating unwritable cache $cache_file"
  10605. fi
  10606. fi
  10607. rm -f confcache
  10608. # Where is Tcl? Is it here?
  10609. # ---------- begin robey's Tcl thingies
  10610. # (well, what used to be robey's Tcl thingies...)
  10611. # Latest tested Tcl version to recommend if Tcl isn't found
  10612. tclrecommendver="8.4"
  10613. # Site recommended to download Tcl from
  10614. tclrecommendsite="http://www.tcl.tk/software/tcltk/download84.html"
  10615. # Tcl library filename prefixes (also used for Tcl header dir on FreeBSD)
  10616. tcllibnames="tcl tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \
  10617. tcl8.0 tcl80"
  10618. # Tcl library filename suffixes
  10619. tcllibextensions=".a .so .so.1 .so.1.0 .so.1.2 .sl .dll .dylib"
  10620. # Tcl library search paths
  10621. tcllibpaths="${HOME}/lib ${HOME}/tcl/lib ${HOME} \
  10622. /usr/local/lib /usr/local/pkgs/tcl/lib \
  10623. /usr/lib /lib /usr/i486-linuxaout/lib \
  10624. /beos/system/lib /sys/lib"
  10625. # Tcl header filenames
  10626. tclheadernames="tcl.h"
  10627. # Tcl header search paths
  10628. tclheaderpaths="${HOME}/include ${HOME}/tcl/include ${HOME} \
  10629. /usr/local/include /usr/local/pkgs/tcl/include \
  10630. /usr/include /beos/system/include /beos/devel/include \
  10631. /sys/include"
  10632. # oohh new configure --variables for those with multiple Tcl libs
  10633. # Check whether --with-tcllib or --without-tcllib was given.
  10634. if test "${with_tcllib+set}" = set; then
  10635. withval="$with_tcllib"
  10636. tcllibname="$withval"
  10637. fi;
  10638. # Check whether --with-tclinc or --without-tclinc was given.
  10639. if test "${with_tclinc+set}" = set; then
  10640. withval="$with_tclinc"
  10641. tclincname="$withval"
  10642. fi;
  10643. WARN=0
  10644. # Make sure either both or neither $tcllibname and $tclincname are set
  10645. if test ! "${tcllibname-x}" = "x"
  10646. then
  10647. if test "${tclincname-x}" = "x"
  10648. then
  10649. WARN=1
  10650. tcllibname=""
  10651. TCLLIB=""
  10652. TCLINC=""
  10653. fi
  10654. else
  10655. if test ! "${tclincname-x}" = "x"
  10656. then
  10657. WARN=1
  10658. tclincname=""
  10659. TCLLIB=""
  10660. TCLINC=""
  10661. fi
  10662. fi
  10663. if test "$WARN" = 1
  10664. then
  10665. cat << 'EOF' >&2
  10666. configure: warning:
  10667. You must specify both --with-tcllib and --with-tclinc for them to work.
  10668. configure will now attempt to autodetect both the Tcl library and header...
  10669. EOF
  10670. fi
  10671. WARN=0
  10672. # Make sure either both or neither $TCLLIB and $TCLINC are set
  10673. if test ! "${TCLLIB-x}" = "x"
  10674. then
  10675. if test "${TCLINC-x}" = "x"
  10676. then
  10677. WARN=1
  10678. WVAR1=TCLLIB
  10679. WVAR2=TCLINC
  10680. TCLLIB=""
  10681. fi
  10682. else
  10683. if test ! "${TCLINC-x}" = "x"
  10684. then
  10685. WARN=1
  10686. WVAR1=TCLINC
  10687. WVAR2=TCLLIB
  10688. TCLINC=""
  10689. fi
  10690. fi
  10691. if test "$WARN" = 1
  10692. then
  10693. cat << EOF >&2
  10694. configure: warning:
  10695. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  10696. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  10697. configure will now attempt to autodetect both the Tcl library and header...
  10698. EOF
  10699. fi
  10700. # Look for Tcl library: if $tcllibname is set, check there first
  10701. if test ! "${tcllibname-x}" = "x"
  10702. then
  10703. if test -f "$tcllibname" && test -r "$tcllibname"
  10704. then
  10705. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  10706. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  10707. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  10708. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  10709. else
  10710. cat << EOF >&2
  10711. configure: warning:
  10712. The file '$tcllibname' given to option --with-tcllib is not valid.
  10713. configure will now attempt to autodetect both the Tcl library and header...
  10714. EOF
  10715. tcllibname=""
  10716. tclincname=""
  10717. TCLLIB=""
  10718. TCLLIBFN=""
  10719. TCLINC=""
  10720. TCLINCFN=""
  10721. fi
  10722. fi
  10723. # Look for Tcl header: if $tclincname is set, check there first
  10724. if test ! "${tclincname-x}" = "x"
  10725. then
  10726. if test -f "$tclincname" && test -r "$tclincname"
  10727. then
  10728. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  10729. TCLINCFN=`$BASENAME $tclincname`
  10730. else
  10731. cat << EOF >&2
  10732. configure: warning:
  10733. The file '$tclincname' given to option --with-tclinc is not valid.
  10734. configure will now attempt to autodetect both the Tcl library and header...
  10735. EOF
  10736. tcllibname=""
  10737. tclincname=""
  10738. TCLLIB=""
  10739. TCLLIBFN=""
  10740. TCLINC=""
  10741. TCLINCFN=""
  10742. fi
  10743. fi
  10744. # Look for Tcl library: if $TCLLIB is set, check there first
  10745. if test "${TCLLIBFN-x}" = "x"
  10746. then
  10747. if test ! "${TCLLIB-x}" = "x"
  10748. then
  10749. if test -d "$TCLLIB"
  10750. then
  10751. for tcllibfns in $tcllibnames
  10752. do
  10753. for tcllibext in $tcllibextensions
  10754. do
  10755. if test -r "$TCLLIB/lib$tcllibfns$tcllibext"
  10756. then
  10757. TCLLIBFN="$tcllibfns$tcllibext"
  10758. TCLLIBEXT="$tcllibext"
  10759. TCLLIBFNS="$tcllibfns"
  10760. break 2
  10761. fi
  10762. done
  10763. done
  10764. fi
  10765. if test "${TCLLIBFN-x}" = "x"
  10766. then
  10767. cat << 'EOF' >&2
  10768. configure: warning:
  10769. Environment variable TCLLIB was set, but incorrect.
  10770. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  10771. configure will now attempt to autodetect both the Tcl library and header...
  10772. EOF
  10773. TCLLIB=""
  10774. TCLLIBFN=""
  10775. TCLINC=""
  10776. TCLINCFN=""
  10777. fi
  10778. fi
  10779. fi
  10780. # Look for Tcl header: if $TCLINC is set, check there first
  10781. if test "${TCLINCFN-x}" = "x"
  10782. then
  10783. if test ! "${TCLINC-x}" = "x"
  10784. then
  10785. if test -d "$TCLINC"
  10786. then
  10787. for tclheaderfn in $tclheadernames
  10788. do
  10789. if test -r "$TCLINC/$tclheaderfn"
  10790. then
  10791. TCLINCFN="$tclheaderfn"
  10792. break
  10793. fi
  10794. done
  10795. fi
  10796. if test "${TCLINCFN-x}" = "x"
  10797. then
  10798. cat << 'EOF' >&2
  10799. configure: warning:
  10800. Environment variable TCLINC was set, but incorrect.
  10801. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  10802. configure will now attempt to autodetect both the Tcl library and header...
  10803. EOF
  10804. TCLLIB=""
  10805. TCLLIBFN=""
  10806. TCLINC=""
  10807. TCLINCFN=""
  10808. fi
  10809. fi
  10810. fi
  10811. echo "$as_me:$LINENO: checking for Tcl library" >&5
  10812. echo $ECHO_N "checking for Tcl library... $ECHO_C" >&6
  10813. # Attempt autodetect for $TCLLIBFN if it's not set
  10814. if test ! "${TCLLIBFN-x}" = "x"
  10815. then
  10816. echo "$as_me:$LINENO: result: using $TCLLIB/lib$TCLLIBFN" >&5
  10817. echo "${ECHO_T}using $TCLLIB/lib$TCLLIBFN" >&6
  10818. else
  10819. for tcllibfns in $tcllibnames
  10820. do
  10821. for tcllibext in $tcllibextensions
  10822. do
  10823. for tcllibpath in $tcllibpaths
  10824. do
  10825. if test -r "$tcllibpath/lib$tcllibfns$tcllibext"
  10826. then
  10827. echo "$as_me:$LINENO: result: found $tcllibpath/lib$tcllibfns$tcllibext" >&5
  10828. echo "${ECHO_T}found $tcllibpath/lib$tcllibfns$tcllibext" >&6
  10829. TCLLIB="$tcllibpath"
  10830. TCLLIBFN="$tcllibfns$tcllibext"
  10831. TCLLIBEXT="$tcllibext"
  10832. TCLLIBFNS="$tcllibfns"
  10833. break 3
  10834. fi
  10835. done
  10836. done
  10837. done
  10838. fi
  10839. # Show if $TCLLIBFN wasn't found
  10840. if test "${TCLLIBFN-x}" = "x"
  10841. then
  10842. echo "$as_me:$LINENO: result: not found" >&5
  10843. echo "${ECHO_T}not found" >&6
  10844. fi
  10845. echo "$as_me:$LINENO: checking for Tcl header" >&5
  10846. echo $ECHO_N "checking for Tcl header... $ECHO_C" >&6
  10847. # Attempt autodetect for $TCLINCFN if it's not set
  10848. if test ! "${TCLINCFN-x}" = "x"
  10849. then
  10850. echo "$as_me:$LINENO: result: using $TCLINC/$TCLINCFN" >&5
  10851. echo "${ECHO_T}using $TCLINC/$TCLINCFN" >&6
  10852. else
  10853. for tclheaderpath in $tclheaderpaths
  10854. do
  10855. for tclheaderfn in $tclheadernames
  10856. do
  10857. if test -r "$tclheaderpath/$tclheaderfn"
  10858. then
  10859. echo "$as_me:$LINENO: result: found $tclheaderpath/$tclheaderfn" >&5
  10860. echo "${ECHO_T}found $tclheaderpath/$tclheaderfn" >&6
  10861. TCLINC="$tclheaderpath"
  10862. TCLINCFN="$tclheaderfn"
  10863. break 2
  10864. fi
  10865. done
  10866. done
  10867. # FreeBSD hack ...
  10868. if test "${TCLINCFN-x}" = "x"
  10869. then
  10870. for tcllibfns in $tcllibnames
  10871. do
  10872. for tclheaderpath in $tclheaderpaths
  10873. do
  10874. for tclheaderfn in $tclheadernames
  10875. do
  10876. if test -r "$tclheaderpath/$tcllibfns/$tclheaderfn"
  10877. then
  10878. echo "$as_me:$LINENO: result: found $tclheaderpath/$tcllibfns/$tclheaderfn" >&5
  10879. echo "${ECHO_T}found $tclheaderpath/$tcllibfns/$tclheaderfn" >&6
  10880. TCLINC="$tclheaderpath/$tcllibfns"
  10881. TCLINCFN="$tclheaderfn"
  10882. break 3
  10883. fi
  10884. done
  10885. done
  10886. done
  10887. fi
  10888. fi
  10889. # Show if $TCLINCFN wasn't found
  10890. if test "${TCLINCFN-x}" = "x"
  10891. then
  10892. echo "$as_me:$LINENO: result: not found" >&5
  10893. echo "${ECHO_T}not found" >&6
  10894. fi
  10895. echo "$as_me:$LINENO: checking whether the Tcl system has changed" >&5
  10896. echo $ECHO_N "checking whether the Tcl system has changed... $ECHO_C" >&6
  10897. egg_tcl_changed=yes
  10898. egg_tcl_id="$TCLLIB:$TCLLIBFN:$TCLINC:$TCLINCFN"
  10899. if test ! "$egg_tcl_id" = ":::"
  10900. then
  10901. egg_tcl_cached=yes
  10902. if test "${egg_cv_var_tcl_id+set}" = set; then
  10903. echo $ECHO_N "(cached) $ECHO_C" >&6
  10904. else
  10905. egg_cv_var_tcl_id="$egg_tcl_id"
  10906. egg_tcl_cached=no
  10907. fi
  10908. if test "$egg_tcl_cached" = "yes"
  10909. then
  10910. if test "${egg_cv_var_tcl_id-x}" = "${egg_tcl_id-x}"
  10911. then
  10912. egg_tcl_changed=no
  10913. else
  10914. egg_cv_var_tcl_id="$egg_tcl_id"
  10915. fi
  10916. fi
  10917. fi
  10918. if test "$egg_tcl_changed" = "yes"
  10919. then
  10920. echo "$as_me:$LINENO: result: yes" >&5
  10921. echo "${ECHO_T}yes" >&6
  10922. else
  10923. echo "$as_me:$LINENO: result: no" >&5
  10924. echo "${ECHO_T}no" >&6
  10925. fi
  10926. #checkpoint
  10927. cat >confcache <<\_ACEOF
  10928. # This file is a shell script that caches the results of configure
  10929. # tests run on this system so they can be shared between configure
  10930. # scripts and configure runs, see configure's option --config-cache.
  10931. # It is not useful on other systems. If it contains results you don't
  10932. # want to keep, you may remove or edit it.
  10933. #
  10934. # config.status only pays attention to the cache file if you give it
  10935. # the --recheck option to rerun configure.
  10936. #
  10937. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10938. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10939. # following values.
  10940. _ACEOF
  10941. # The following way of writing the cache mishandles newlines in values,
  10942. # but we know of no workaround that is simple, portable, and efficient.
  10943. # So, don't put newlines in cache variables' values.
  10944. # Ultrix sh set writes to stderr and can't be redirected directly,
  10945. # and sets the high bit in the cache file unless we assign to the vars.
  10946. {
  10947. (set) 2>&1 |
  10948. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10949. *ac_space=\ *)
  10950. # `set' does not quote correctly, so add quotes (double-quote
  10951. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10952. sed -n \
  10953. "s/'/'\\\\''/g;
  10954. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10955. ;;
  10956. *)
  10957. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10958. sed -n \
  10959. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10960. ;;
  10961. esac;
  10962. } |
  10963. sed '
  10964. t clear
  10965. : clear
  10966. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10967. t end
  10968. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10969. : end' >>confcache
  10970. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10971. if test -w $cache_file; then
  10972. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  10973. cat confcache >$cache_file
  10974. else
  10975. echo "not updating unwritable cache $cache_file"
  10976. fi
  10977. fi
  10978. rm -f confcache
  10979. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  10980. TCL_FOUND=0
  10981. if test ! "${TCLLIBFN-x}" = "x" && test ! "${TCLINCFN-x}" = "x"
  10982. then
  10983. TCL_FOUND=1
  10984. # Check Tcl's version
  10985. if test "$egg_tcl_changed" = "yes"
  10986. then
  10987. unset egg_cv_var_tcl_version
  10988. fi
  10989. echo "$as_me:$LINENO: checking for Tcl version" >&5
  10990. echo $ECHO_N "checking for Tcl version... $ECHO_C" >&6
  10991. if test "${egg_cv_var_tcl_version+set}" = set; then
  10992. echo $ECHO_N "(cached) $ECHO_C" >&6
  10993. else
  10994. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  10995. fi
  10996. if test ! "${egg_cv_var_tcl_version-x}" = "x"
  10997. then
  10998. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_version" >&5
  10999. echo "${ECHO_T}$egg_cv_var_tcl_version" >&6
  11000. else
  11001. echo "$as_me:$LINENO: result: not found" >&5
  11002. echo "${ECHO_T}not found" >&6
  11003. TCL_FOUND=0
  11004. fi
  11005. # Check Tcl's patch level (if available)
  11006. if test "$egg_tcl_changed" = "yes"
  11007. then
  11008. unset egg_cv_var_tcl_patch_level
  11009. fi
  11010. echo "$as_me:$LINENO: checking for Tcl patch level" >&5
  11011. echo $ECHO_N "checking for Tcl patch level... $ECHO_C" >&6
  11012. if test "${egg_cv_var_tcl_patch_level+set}" = set; then
  11013. echo $ECHO_N "(cached) $ECHO_C" >&6
  11014. else
  11015. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  11016. fi
  11017. if test ! "${egg_cv_var_tcl_patch_level-x}" = "x"
  11018. then
  11019. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_patch_level" >&5
  11020. echo "${ECHO_T}$egg_cv_var_tcl_patch_level" >&6
  11021. else
  11022. egg_cv_var_tcl_patch_level="unknown"
  11023. echo "$as_me:$LINENO: result: unknown" >&5
  11024. echo "${ECHO_T}unknown" >&6
  11025. fi
  11026. fi
  11027. # Check if we found Tcl's version
  11028. if test "$TCL_FOUND" = 0
  11029. then
  11030. cat << 'EOF' >&2
  11031. configure: error:
  11032. I can't find Tcl on this system.
  11033. The download website is at:
  11034. http://www.tcl.tk/software/tcltk/download84.html
  11035. A nice direct link for the tarball is:
  11036. http://aleron.dl.sourceforge.net/sourceforge/tcl/tcl8.4.4-src.tar.gz
  11037. OR
  11038. Just type: misc/maketcl
  11039. EOF
  11040. exit 1
  11041. fi
  11042. # Is this version of Tcl too old for us to use ?
  11043. TCL_VER_PRE80=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 8) print "yes"; else print "no"}'`
  11044. if test "$TCL_VER_PRE80" = "yes"
  11045. then
  11046. cat << EOF >&2
  11047. configure: error:
  11048. Your Tcl version is much too old for Eggdrop to use.
  11049. I suggest you download and compile a more recent version.
  11050. The most reliable current version is $tclrecommendver and
  11051. can be downloaded from $tclrecommendsite
  11052. EOF
  11053. exit 1
  11054. fi
  11055. # Set variables for Tcl library tests
  11056. TCL_TEST_LIB="$TCLLIBFNS"
  11057. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  11058. if test ! "${ac_cv_lib_pthread-x}" = "x"
  11059. then
  11060. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  11061. fi
  11062. if test "$egg_tcl_changed" = "yes"
  11063. then
  11064. unset egg_cv_var_tcl_free
  11065. fi
  11066. # Check for Tcl_Free()
  11067. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  11068. echo "$as_me:$LINENO: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  11069. echo $ECHO_N "checking for Tcl_Free in -l$TCL_TEST_LIB... $ECHO_C" >&6
  11070. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  11071. echo $ECHO_N "(cached) $ECHO_C" >&6
  11072. else
  11073. ac_check_lib_save_LIBS=$LIBS
  11074. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  11075. cat >conftest.$ac_ext <<_ACEOF
  11076. /* confdefs.h. */
  11077. _ACEOF
  11078. cat confdefs.h >>conftest.$ac_ext
  11079. cat >>conftest.$ac_ext <<_ACEOF
  11080. /* end confdefs.h. */
  11081. /* Override any gcc2 internal prototype to avoid an error. */
  11082. #ifdef __cplusplus
  11083. extern "C"
  11084. #endif
  11085. /* We use char because int might match the return type of a gcc2
  11086. builtin and then its argument prototype would still apply. */
  11087. char Tcl_Free ();
  11088. int
  11089. main ()
  11090. {
  11091. Tcl_Free ();
  11092. ;
  11093. return 0;
  11094. }
  11095. _ACEOF
  11096. rm -f conftest.$ac_objext conftest$ac_exeext
  11097. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11098. (eval $ac_link) 2>conftest.er1
  11099. ac_status=$?
  11100. grep -v '^ *+' conftest.er1 >conftest.err
  11101. rm -f conftest.er1
  11102. cat conftest.err >&5
  11103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11104. (exit $ac_status); } &&
  11105. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11106. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11107. (eval $ac_try) 2>&5
  11108. ac_status=$?
  11109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11110. (exit $ac_status); }; } &&
  11111. { ac_try='test -s conftest$ac_exeext'
  11112. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11113. (eval $ac_try) 2>&5
  11114. ac_status=$?
  11115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11116. (exit $ac_status); }; }; then
  11117. eval "$as_ac_Lib=yes"
  11118. else
  11119. echo "$as_me: failed program was:" >&5
  11120. sed 's/^/| /' conftest.$ac_ext >&5
  11121. eval "$as_ac_Lib=no"
  11122. fi
  11123. rm -f conftest.err conftest.$ac_objext \
  11124. conftest$ac_exeext conftest.$ac_ext
  11125. LIBS=$ac_check_lib_save_LIBS
  11126. fi
  11127. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  11128. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  11129. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  11130. egg_cv_var_tcl_free="yes"
  11131. else
  11132. egg_cv_var_tcl_free="no"
  11133. fi
  11134. if test "$egg_cv_var_tcl_free" = "yes"
  11135. then
  11136. cat >>confdefs.h <<\_ACEOF
  11137. #define HAVE_TCL_FREE 1
  11138. _ACEOF
  11139. fi
  11140. if test "$egg_tcl_changed" = "yes"
  11141. then
  11142. unset egg_cv_var_tcl_threaded
  11143. fi
  11144. # Check for TclpFinalizeThreadData()
  11145. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_TclpFinalizeThreadData" | $as_tr_sh`
  11146. echo "$as_me:$LINENO: checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB" >&5
  11147. echo $ECHO_N "checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB... $ECHO_C" >&6
  11148. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  11149. echo $ECHO_N "(cached) $ECHO_C" >&6
  11150. else
  11151. ac_check_lib_save_LIBS=$LIBS
  11152. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  11153. cat >conftest.$ac_ext <<_ACEOF
  11154. /* confdefs.h. */
  11155. _ACEOF
  11156. cat confdefs.h >>conftest.$ac_ext
  11157. cat >>conftest.$ac_ext <<_ACEOF
  11158. /* end confdefs.h. */
  11159. /* Override any gcc2 internal prototype to avoid an error. */
  11160. #ifdef __cplusplus
  11161. extern "C"
  11162. #endif
  11163. /* We use char because int might match the return type of a gcc2
  11164. builtin and then its argument prototype would still apply. */
  11165. char TclpFinalizeThreadData ();
  11166. int
  11167. main ()
  11168. {
  11169. TclpFinalizeThreadData ();
  11170. ;
  11171. return 0;
  11172. }
  11173. _ACEOF
  11174. rm -f conftest.$ac_objext conftest$ac_exeext
  11175. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11176. (eval $ac_link) 2>conftest.er1
  11177. ac_status=$?
  11178. grep -v '^ *+' conftest.er1 >conftest.err
  11179. rm -f conftest.er1
  11180. cat conftest.err >&5
  11181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11182. (exit $ac_status); } &&
  11183. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11184. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11185. (eval $ac_try) 2>&5
  11186. ac_status=$?
  11187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11188. (exit $ac_status); }; } &&
  11189. { ac_try='test -s conftest$ac_exeext'
  11190. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11191. (eval $ac_try) 2>&5
  11192. ac_status=$?
  11193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11194. (exit $ac_status); }; }; then
  11195. eval "$as_ac_Lib=yes"
  11196. else
  11197. echo "$as_me: failed program was:" >&5
  11198. sed 's/^/| /' conftest.$ac_ext >&5
  11199. eval "$as_ac_Lib=no"
  11200. fi
  11201. rm -f conftest.err conftest.$ac_objext \
  11202. conftest$ac_exeext conftest.$ac_ext
  11203. LIBS=$ac_check_lib_save_LIBS
  11204. fi
  11205. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  11206. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  11207. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  11208. egg_cv_var_tcl_threaded="yes"
  11209. else
  11210. egg_cv_var_tcl_threaded="no"
  11211. fi
  11212. enable_tcl_threads=no
  11213. if test "$egg_cv_var_tcl_threaded" = "yes"
  11214. then
  11215. if test "$enable_tcl_threads" = "no"
  11216. then
  11217. cat << 'EOF' >&2
  11218. configure: warning:
  11219. You have disabled threads support on a system with a threaded Tcl library.
  11220. Tcl features that rely on scheduled events may not function properly.
  11221. EOF
  11222. fi
  11223. # Add pthread library to $LIBS if we need it
  11224. if test ! "${ac_cv_lib_pthread-x}" = "x"
  11225. then
  11226. LIBS="$ac_cv_lib_pthread $LIBS"
  11227. fi
  11228. fi
  11229. if test "$EGG_CYGWIN" = "yes"
  11230. then
  11231. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  11232. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  11233. else
  11234. if test ! "$TCLLIBEXT" = ".a"
  11235. then
  11236. cat << 'EOF' >&2
  11237. configure: warning:
  11238. Your Tcl library is not compiled statically.
  11239. You will need to compile Tcl statically to successfully compile wraith.
  11240. EOF
  11241. exit 1
  11242. else
  11243. # Was the --with-tcllib option given ?
  11244. if test ! "${tcllibname-x}" = "x"
  11245. then
  11246. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  11247. TCL_LIBS="$TCLLIB/lib$TCLLIBFN $EGG_MATH_LIB"
  11248. else
  11249. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  11250. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  11251. fi
  11252. fi
  11253. fi
  11254. ac_config_commands="$ac_config_commands replace-if-changed"
  11255. #checkpoint
  11256. cat >confcache <<\_ACEOF
  11257. # This file is a shell script that caches the results of configure
  11258. # tests run on this system so they can be shared between configure
  11259. # scripts and configure runs, see configure's option --config-cache.
  11260. # It is not useful on other systems. If it contains results you don't
  11261. # want to keep, you may remove or edit it.
  11262. #
  11263. # config.status only pays attention to the cache file if you give it
  11264. # the --recheck option to rerun configure.
  11265. #
  11266. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11267. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11268. # following values.
  11269. _ACEOF
  11270. # The following way of writing the cache mishandles newlines in values,
  11271. # but we know of no workaround that is simple, portable, and efficient.
  11272. # So, don't put newlines in cache variables' values.
  11273. # Ultrix sh set writes to stderr and can't be redirected directly,
  11274. # and sets the high bit in the cache file unless we assign to the vars.
  11275. {
  11276. (set) 2>&1 |
  11277. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11278. *ac_space=\ *)
  11279. # `set' does not quote correctly, so add quotes (double-quote
  11280. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11281. sed -n \
  11282. "s/'/'\\\\''/g;
  11283. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11284. ;;
  11285. *)
  11286. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11287. sed -n \
  11288. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11289. ;;
  11290. esac;
  11291. } |
  11292. sed '
  11293. t clear
  11294. : clear
  11295. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11296. t end
  11297. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11298. : end' >>confcache
  11299. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11300. if test -w $cache_file; then
  11301. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  11302. cat confcache >$cache_file
  11303. else
  11304. echo "not updating unwritable cache $cache_file"
  11305. fi
  11306. fi
  11307. rm -f confcache
  11308. # ---------- end of (what used to be) robey's Tcl thingies
  11309. if test "$NEED_DL" = 1 && test "$ac_cv_func_dlopen" = "no"
  11310. then
  11311. if test "$LINUX" = "yes"
  11312. then
  11313. cat << 'EOF' >&2
  11314. configure: warning:
  11315. Since you are on a Linux system, this has a known problem...
  11316. I know a kludge for it,
  11317. EOF
  11318. if test -r "/lib/libdl.so.1"
  11319. then
  11320. cat << 'EOF' >&2
  11321. and you seem to have it, so we'll do that...
  11322. EOF
  11323. cat >>confdefs.h <<\_ACEOF
  11324. #define HAVE_DLOPEN 1
  11325. _ACEOF
  11326. LIBS="/lib/libdl.so.1 $LIBS"
  11327. else
  11328. cat << 'EOF' >&2
  11329. which you DON'T seem to have... doh!
  11330. perhaps you may still have the stuff lying around somewhere
  11331. if you work out where it is, add it to your XLIBS= lines
  11332. and #define HAVE_DLOPEN in config.h
  11333. we'll proceed on anyway, but you probably won't be able
  11334. to 'make eggdrop' but you might be able to make the
  11335. static bot (I'll default your make to this version).
  11336. EOF
  11337. fi
  11338. else
  11339. cat << 'EOF' >&2
  11340. configure: warning:
  11341. You don't seem to have libdl anywhere I can find it, this will
  11342. prevent you from doing dynamic modules, I'll set your default
  11343. make to static linking.
  11344. EOF
  11345. fi
  11346. fi
  11347. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $4}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  11348. NUMVER=`grep "int" $srcdir/src/main.c | $AWK '/egg_numver =/ {print $4}' | sed -e 's/\;//g'`
  11349. PACKNAME=`grep "PACKNAME " $srcdir/pack/pack.cfg | $AWK '/PACKNAME/ {print $2}'`
  11350. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  11351. cat >>confdefs.h <<_ACEOF
  11352. #define EGG_VERSION $version_num
  11353. _ACEOF
  11354. case "$srcdir" in
  11355. [\\/]* | ?:[\\/]*)
  11356. MOD_UPDIR=""
  11357. ;;
  11358. *)
  11359. MOD_UPDIR="../"
  11360. ;;
  11361. esac
  11362. ac_config_commands="$ac_config_commands catch-make-rebuild"
  11363. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/mod/Makefile"
  11364. cat >confcache <<\_ACEOF
  11365. # This file is a shell script that caches the results of configure
  11366. # tests run on this system so they can be shared between configure
  11367. # scripts and configure runs, see configure's option --config-cache.
  11368. # It is not useful on other systems. If it contains results you don't
  11369. # want to keep, you may remove or edit it.
  11370. #
  11371. # config.status only pays attention to the cache file if you give it
  11372. # the --recheck option to rerun configure.
  11373. #
  11374. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11375. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11376. # following values.
  11377. _ACEOF
  11378. # The following way of writing the cache mishandles newlines in values,
  11379. # but we know of no workaround that is simple, portable, and efficient.
  11380. # So, don't put newlines in cache variables' values.
  11381. # Ultrix sh set writes to stderr and can't be redirected directly,
  11382. # and sets the high bit in the cache file unless we assign to the vars.
  11383. {
  11384. (set) 2>&1 |
  11385. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11386. *ac_space=\ *)
  11387. # `set' does not quote correctly, so add quotes (double-quote
  11388. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11389. sed -n \
  11390. "s/'/'\\\\''/g;
  11391. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11392. ;;
  11393. *)
  11394. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11395. sed -n \
  11396. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11397. ;;
  11398. esac;
  11399. } |
  11400. sed '
  11401. t clear
  11402. : clear
  11403. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11404. t end
  11405. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11406. : end' >>confcache
  11407. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11408. if test -w $cache_file; then
  11409. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  11410. cat confcache >$cache_file
  11411. else
  11412. echo "not updating unwritable cache $cache_file"
  11413. fi
  11414. fi
  11415. rm -f confcache
  11416. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11417. # Let make expand exec_prefix.
  11418. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11419. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11420. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11421. # trailing colons and then remove the whole line if VPATH becomes empty
  11422. # (actually we leave an empty line to preserve line numbers).
  11423. if test "x$srcdir" = x.; then
  11424. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11425. s/:*\$(srcdir):*/:/;
  11426. s/:*\${srcdir}:*/:/;
  11427. s/:*@srcdir@:*/:/;
  11428. s/^\([^=]*=[ ]*\):*/\1/;
  11429. s/:*$//;
  11430. s/^[^=]*=[ ]*$//;
  11431. }'
  11432. fi
  11433. DEFS=-DHAVE_CONFIG_H
  11434. ac_libobjs=
  11435. ac_ltlibobjs=
  11436. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11437. # 1. Remove the extension, and $U if already installed.
  11438. ac_i=`echo "$ac_i" |
  11439. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  11440. # 2. Add them.
  11441. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  11442. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  11443. done
  11444. LIBOBJS=$ac_libobjs
  11445. LTLIBOBJS=$ac_ltlibobjs
  11446. : ${CONFIG_STATUS=./config.status}
  11447. ac_clean_files_save=$ac_clean_files
  11448. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11449. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11450. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11451. cat >$CONFIG_STATUS <<_ACEOF
  11452. #! $SHELL
  11453. # Generated by $as_me.
  11454. # Run this file to recreate the current configuration.
  11455. # Compiler output produced by configure, useful for debugging
  11456. # configure, is in config.log if it exists.
  11457. debug=false
  11458. ac_cs_recheck=false
  11459. ac_cs_silent=false
  11460. SHELL=\${CONFIG_SHELL-$SHELL}
  11461. _ACEOF
  11462. cat >>$CONFIG_STATUS <<\_ACEOF
  11463. ## --------------------- ##
  11464. ## M4sh Initialization. ##
  11465. ## --------------------- ##
  11466. # Be Bourne compatible
  11467. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11468. emulate sh
  11469. NULLCMD=:
  11470. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11471. # is contrary to our usage. Disable this feature.
  11472. alias -g '${1+"$@"}'='"$@"'
  11473. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  11474. set -o posix
  11475. fi
  11476. DUALCASE=1; export DUALCASE # for MKS sh
  11477. # Support unset when possible.
  11478. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11479. as_unset=unset
  11480. else
  11481. as_unset=false
  11482. fi
  11483. # Work around bugs in pre-3.0 UWIN ksh.
  11484. $as_unset ENV MAIL MAILPATH
  11485. PS1='$ '
  11486. PS2='> '
  11487. PS4='+ '
  11488. # NLS nuisances.
  11489. for as_var in \
  11490. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11491. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11492. LC_TELEPHONE LC_TIME
  11493. do
  11494. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11495. eval $as_var=C; export $as_var
  11496. else
  11497. $as_unset $as_var
  11498. fi
  11499. done
  11500. # Required to use basename.
  11501. if expr a : '\(a\)' >/dev/null 2>&1; then
  11502. as_expr=expr
  11503. else
  11504. as_expr=false
  11505. fi
  11506. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  11507. as_basename=basename
  11508. else
  11509. as_basename=false
  11510. fi
  11511. # Name of the executable.
  11512. as_me=`$as_basename "$0" ||
  11513. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11514. X"$0" : 'X\(//\)$' \| \
  11515. X"$0" : 'X\(/\)$' \| \
  11516. . : '\(.\)' 2>/dev/null ||
  11517. echo X/"$0" |
  11518. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11519. /^X\/\(\/\/\)$/{ s//\1/; q; }
  11520. /^X\/\(\/\).*/{ s//\1/; q; }
  11521. s/.*/./; q'`
  11522. # PATH needs CR, and LINENO needs CR and PATH.
  11523. # Avoid depending upon Character Ranges.
  11524. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11525. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11526. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11527. as_cr_digits='0123456789'
  11528. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11529. # The user is always right.
  11530. if test "${PATH_SEPARATOR+set}" != set; then
  11531. echo "#! /bin/sh" >conf$$.sh
  11532. echo "exit 0" >>conf$$.sh
  11533. chmod +x conf$$.sh
  11534. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11535. PATH_SEPARATOR=';'
  11536. else
  11537. PATH_SEPARATOR=:
  11538. fi
  11539. rm -f conf$$.sh
  11540. fi
  11541. as_lineno_1=$LINENO
  11542. as_lineno_2=$LINENO
  11543. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11544. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11545. test "x$as_lineno_3" = "x$as_lineno_2" || {
  11546. # Find who we are. Look in the path if we contain no path at all
  11547. # relative or not.
  11548. case $0 in
  11549. *[\\/]* ) as_myself=$0 ;;
  11550. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11551. for as_dir in $PATH
  11552. do
  11553. IFS=$as_save_IFS
  11554. test -z "$as_dir" && as_dir=.
  11555. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11556. done
  11557. ;;
  11558. esac
  11559. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11560. # in which case we are not to be found in the path.
  11561. if test "x$as_myself" = x; then
  11562. as_myself=$0
  11563. fi
  11564. if test ! -f "$as_myself"; then
  11565. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11566. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11567. { (exit 1); exit 1; }; }
  11568. fi
  11569. case $CONFIG_SHELL in
  11570. '')
  11571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11572. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11573. do
  11574. IFS=$as_save_IFS
  11575. test -z "$as_dir" && as_dir=.
  11576. for as_base in sh bash ksh sh5; do
  11577. case $as_dir in
  11578. /*)
  11579. if ("$as_dir/$as_base" -c '
  11580. as_lineno_1=$LINENO
  11581. as_lineno_2=$LINENO
  11582. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11583. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11584. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11585. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11586. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11587. CONFIG_SHELL=$as_dir/$as_base
  11588. export CONFIG_SHELL
  11589. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11590. fi;;
  11591. esac
  11592. done
  11593. done
  11594. ;;
  11595. esac
  11596. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11597. # uniformly replaced by the line number. The first 'sed' inserts a
  11598. # line-number line before each line; the second 'sed' does the real
  11599. # work. The second script uses 'N' to pair each line-number line
  11600. # with the numbered line, and appends trailing '-' during
  11601. # substitution so that $LINENO is not a special case at line end.
  11602. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11603. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11604. sed '=' <$as_myself |
  11605. sed '
  11606. N
  11607. s,$,-,
  11608. : loop
  11609. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11610. t loop
  11611. s,-$,,
  11612. s,^['$as_cr_digits']*\n,,
  11613. ' >$as_me.lineno &&
  11614. chmod +x $as_me.lineno ||
  11615. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11616. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11617. { (exit 1); exit 1; }; }
  11618. # Don't try to exec as it changes $[0], causing all sort of problems
  11619. # (the dirname of $[0] is not the place where we might find the
  11620. # original and so on. Autoconf is especially sensible to this).
  11621. . ./$as_me.lineno
  11622. # Exit status is that of the last command.
  11623. exit
  11624. }
  11625. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11626. *c*,-n*) ECHO_N= ECHO_C='
  11627. ' ECHO_T=' ' ;;
  11628. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11629. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11630. esac
  11631. if expr a : '\(a\)' >/dev/null 2>&1; then
  11632. as_expr=expr
  11633. else
  11634. as_expr=false
  11635. fi
  11636. rm -f conf$$ conf$$.exe conf$$.file
  11637. echo >conf$$.file
  11638. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11639. # We could just check for DJGPP; but this test a) works b) is more generic
  11640. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11641. if test -f conf$$.exe; then
  11642. # Don't use ln at all; we don't have any links
  11643. as_ln_s='cp -p'
  11644. else
  11645. as_ln_s='ln -s'
  11646. fi
  11647. elif ln conf$$.file conf$$ 2>/dev/null; then
  11648. as_ln_s=ln
  11649. else
  11650. as_ln_s='cp -p'
  11651. fi
  11652. rm -f conf$$ conf$$.exe conf$$.file
  11653. if mkdir -p . 2>/dev/null; then
  11654. as_mkdir_p=:
  11655. else
  11656. test -d ./-p && rmdir ./-p
  11657. as_mkdir_p=false
  11658. fi
  11659. as_executable_p="test -f"
  11660. # Sed expression to map a string onto a valid CPP name.
  11661. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11662. # Sed expression to map a string onto a valid variable name.
  11663. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11664. # IFS
  11665. # We need space, tab and new line, in precisely that order.
  11666. as_nl='
  11667. '
  11668. IFS=" $as_nl"
  11669. # CDPATH.
  11670. $as_unset CDPATH
  11671. exec 6>&1
  11672. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11673. # report actual input values of CONFIG_FILES etc. instead of their
  11674. # values after options handling. Logging --version etc. is OK.
  11675. exec 5>>config.log
  11676. {
  11677. echo
  11678. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11679. ## Running $as_me. ##
  11680. _ASBOX
  11681. } >&5
  11682. cat >&5 <<_CSEOF
  11683. This file was extended by $as_me, which was
  11684. generated by GNU Autoconf 2.59. Invocation command line was
  11685. CONFIG_FILES = $CONFIG_FILES
  11686. CONFIG_HEADERS = $CONFIG_HEADERS
  11687. CONFIG_LINKS = $CONFIG_LINKS
  11688. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11689. $ $0 $@
  11690. _CSEOF
  11691. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11692. echo >&5
  11693. _ACEOF
  11694. # Files that config.status was made for.
  11695. if test -n "$ac_config_files"; then
  11696. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11697. fi
  11698. if test -n "$ac_config_headers"; then
  11699. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11700. fi
  11701. if test -n "$ac_config_links"; then
  11702. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11703. fi
  11704. if test -n "$ac_config_commands"; then
  11705. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11706. fi
  11707. cat >>$CONFIG_STATUS <<\_ACEOF
  11708. ac_cs_usage="\
  11709. \`$as_me' instantiates files from templates according to the
  11710. current configuration.
  11711. Usage: $0 [OPTIONS] [FILE]...
  11712. -h, --help print this help, then exit
  11713. -V, --version print version number, then exit
  11714. -q, --quiet do not print progress messages
  11715. -d, --debug don't remove temporary files
  11716. --recheck update $as_me by reconfiguring in the same conditions
  11717. --file=FILE[:TEMPLATE]
  11718. instantiate the configuration file FILE
  11719. --header=FILE[:TEMPLATE]
  11720. instantiate the configuration header FILE
  11721. Configuration files:
  11722. $config_files
  11723. Configuration headers:
  11724. $config_headers
  11725. Configuration commands:
  11726. $config_commands
  11727. Report bugs to <bug-autoconf@gnu.org>."
  11728. _ACEOF
  11729. cat >>$CONFIG_STATUS <<_ACEOF
  11730. ac_cs_version="\\
  11731. config.status
  11732. configured by $0, generated by GNU Autoconf 2.59,
  11733. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11734. Copyright (C) 2003 Free Software Foundation, Inc.
  11735. This config.status script is free software; the Free Software Foundation
  11736. gives unlimited permission to copy, distribute and modify it."
  11737. srcdir=$srcdir
  11738. _ACEOF
  11739. cat >>$CONFIG_STATUS <<\_ACEOF
  11740. # If no file are specified by the user, then we need to provide default
  11741. # value. By we need to know if files were specified by the user.
  11742. ac_need_defaults=:
  11743. while test $# != 0
  11744. do
  11745. case $1 in
  11746. --*=*)
  11747. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11748. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11749. ac_shift=:
  11750. ;;
  11751. -*)
  11752. ac_option=$1
  11753. ac_optarg=$2
  11754. ac_shift=shift
  11755. ;;
  11756. *) # This is not an option, so the user has probably given explicit
  11757. # arguments.
  11758. ac_option=$1
  11759. ac_need_defaults=false;;
  11760. esac
  11761. case $ac_option in
  11762. # Handling of the options.
  11763. _ACEOF
  11764. cat >>$CONFIG_STATUS <<\_ACEOF
  11765. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11766. ac_cs_recheck=: ;;
  11767. --version | --vers* | -V )
  11768. echo "$ac_cs_version"; exit 0 ;;
  11769. --he | --h)
  11770. # Conflict between --help and --header
  11771. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11772. Try \`$0 --help' for more information." >&5
  11773. echo "$as_me: error: ambiguous option: $1
  11774. Try \`$0 --help' for more information." >&2;}
  11775. { (exit 1); exit 1; }; };;
  11776. --help | --hel | -h )
  11777. echo "$ac_cs_usage"; exit 0 ;;
  11778. --debug | --d* | -d )
  11779. debug=: ;;
  11780. --file | --fil | --fi | --f )
  11781. $ac_shift
  11782. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11783. ac_need_defaults=false;;
  11784. --header | --heade | --head | --hea )
  11785. $ac_shift
  11786. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11787. ac_need_defaults=false;;
  11788. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11789. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11790. ac_cs_silent=: ;;
  11791. # This is an error.
  11792. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11793. Try \`$0 --help' for more information." >&5
  11794. echo "$as_me: error: unrecognized option: $1
  11795. Try \`$0 --help' for more information." >&2;}
  11796. { (exit 1); exit 1; }; } ;;
  11797. *) ac_config_targets="$ac_config_targets $1" ;;
  11798. esac
  11799. shift
  11800. done
  11801. ac_configure_extra_args=
  11802. if $ac_cs_silent; then
  11803. exec 6>/dev/null
  11804. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11805. fi
  11806. _ACEOF
  11807. cat >>$CONFIG_STATUS <<_ACEOF
  11808. if \$ac_cs_recheck; then
  11809. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11810. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11811. fi
  11812. _ACEOF
  11813. cat >>$CONFIG_STATUS <<_ACEOF
  11814. #
  11815. # INIT-COMMANDS section.
  11816. #
  11817. egg_tclinc="$TCLINC"
  11818. egg_tclincfn="$TCLINCFN"
  11819. _ACEOF
  11820. cat >>$CONFIG_STATUS <<\_ACEOF
  11821. for ac_config_target in $ac_config_targets
  11822. do
  11823. case "$ac_config_target" in
  11824. # Handling of arguments.
  11825. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11826. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11827. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11828. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11829. "replace-if-changed" ) CONFIG_COMMANDS="$CONFIG_COMMANDS replace-if-changed" ;;
  11830. "catch-make-rebuild" ) CONFIG_COMMANDS="$CONFIG_COMMANDS catch-make-rebuild" ;;
  11831. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11832. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11833. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11834. { (exit 1); exit 1; }; };;
  11835. esac
  11836. done
  11837. # If the user did not use the arguments to specify the items to instantiate,
  11838. # then the envvar interface is used. Set only those that are not.
  11839. # We use the long form for the default assignment because of an extremely
  11840. # bizarre bug on SunOS 4.1.3.
  11841. if $ac_need_defaults; then
  11842. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11843. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11844. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11845. fi
  11846. # Have a temporary directory for convenience. Make it in the build tree
  11847. # simply because there is no reason to put it here, and in addition,
  11848. # creating and moving files from /tmp can sometimes cause problems.
  11849. # Create a temporary directory, and hook for its removal unless debugging.
  11850. $debug ||
  11851. {
  11852. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11853. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11854. }
  11855. # Create a (secure) tmp directory for tmp files.
  11856. {
  11857. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11858. test -n "$tmp" && test -d "$tmp"
  11859. } ||
  11860. {
  11861. tmp=./confstat$$-$RANDOM
  11862. (umask 077 && mkdir $tmp)
  11863. } ||
  11864. {
  11865. echo "$me: cannot create a temporary directory in ." >&2
  11866. { (exit 1); exit 1; }
  11867. }
  11868. _ACEOF
  11869. cat >>$CONFIG_STATUS <<_ACEOF
  11870. #
  11871. # CONFIG_FILES section.
  11872. #
  11873. # No need to generate the scripts if there are no CONFIG_FILES.
  11874. # This happens for instance when ./config.status config.h
  11875. if test -n "\$CONFIG_FILES"; then
  11876. # Protect against being on the right side of a sed subst in config.status.
  11877. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11878. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11879. s,@SHELL@,$SHELL,;t t
  11880. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11881. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11882. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11883. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11884. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11885. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11886. s,@exec_prefix@,$exec_prefix,;t t
  11887. s,@prefix@,$prefix,;t t
  11888. s,@program_transform_name@,$program_transform_name,;t t
  11889. s,@bindir@,$bindir,;t t
  11890. s,@sbindir@,$sbindir,;t t
  11891. s,@libexecdir@,$libexecdir,;t t
  11892. s,@datadir@,$datadir,;t t
  11893. s,@sysconfdir@,$sysconfdir,;t t
  11894. s,@sharedstatedir@,$sharedstatedir,;t t
  11895. s,@localstatedir@,$localstatedir,;t t
  11896. s,@libdir@,$libdir,;t t
  11897. s,@includedir@,$includedir,;t t
  11898. s,@oldincludedir@,$oldincludedir,;t t
  11899. s,@infodir@,$infodir,;t t
  11900. s,@mandir@,$mandir,;t t
  11901. s,@build_alias@,$build_alias,;t t
  11902. s,@host_alias@,$host_alias,;t t
  11903. s,@target_alias@,$target_alias,;t t
  11904. s,@DEFS@,$DEFS,;t t
  11905. s,@ECHO_C@,$ECHO_C,;t t
  11906. s,@ECHO_N@,$ECHO_N,;t t
  11907. s,@ECHO_T@,$ECHO_T,;t t
  11908. s,@LIBS@,$LIBS,;t t
  11909. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11910. s,@CC@,$CC,;t t
  11911. s,@CFLAGS@,$CFLAGS,;t t
  11912. s,@LDFLAGS@,$LDFLAGS,;t t
  11913. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11914. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11915. s,@EXEEXT@,$EXEEXT,;t t
  11916. s,@OBJEXT@,$OBJEXT,;t t
  11917. s,@CPP@,$CPP,;t t
  11918. s,@EGREP@,$EGREP,;t t
  11919. s,@SET_MAKE@,$SET_MAKE,;t t
  11920. s,@HEAD_1@,$HEAD_1,;t t
  11921. s,@STRIP@,$STRIP,;t t
  11922. s,@AWK@,$AWK,;t t
  11923. s,@BASENAME@,$BASENAME,;t t
  11924. s,@UNAME@,$UNAME,;t t
  11925. s,@ZLIB@,$ZLIB,;t t
  11926. s,@SSL@,$SSL,;t t
  11927. s,@LIBOBJS@,$LIBOBJS,;t t
  11928. s,@TCLLIB@,$TCLLIB,;t t
  11929. s,@TCLLIBFN@,$TCLLIBFN,;t t
  11930. s,@TCLINC@,$TCLINC,;t t
  11931. s,@TCLINCFN@,$TCLINCFN,;t t
  11932. s,@TCL_REQS@,$TCL_REQS,;t t
  11933. s,@TCL_LIBS@,$TCL_LIBS,;t t
  11934. s,@VERSION@,$VERSION,;t t
  11935. s,@NUMVER@,$NUMVER,;t t
  11936. s,@PACKNAME@,$PACKNAME,;t t
  11937. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11938. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11939. CEOF
  11940. _ACEOF
  11941. cat >>$CONFIG_STATUS <<\_ACEOF
  11942. # Split the substitutions into bite-sized pieces for seds with
  11943. # small command number limits, like on Digital OSF/1 and HP-UX.
  11944. ac_max_sed_lines=48
  11945. ac_sed_frag=1 # Number of current file.
  11946. ac_beg=1 # First line for current file.
  11947. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11948. ac_more_lines=:
  11949. ac_sed_cmds=
  11950. while $ac_more_lines; do
  11951. if test $ac_beg -gt 1; then
  11952. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11953. else
  11954. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11955. fi
  11956. if test ! -s $tmp/subs.frag; then
  11957. ac_more_lines=false
  11958. else
  11959. # The purpose of the label and of the branching condition is to
  11960. # speed up the sed processing (if there are no `@' at all, there
  11961. # is no need to browse any of the substitutions).
  11962. # These are the two extra sed commands mentioned above.
  11963. (echo ':t
  11964. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11965. if test -z "$ac_sed_cmds"; then
  11966. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11967. else
  11968. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11969. fi
  11970. ac_sed_frag=`expr $ac_sed_frag + 1`
  11971. ac_beg=$ac_end
  11972. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11973. fi
  11974. done
  11975. if test -z "$ac_sed_cmds"; then
  11976. ac_sed_cmds=cat
  11977. fi
  11978. fi # test -n "$CONFIG_FILES"
  11979. _ACEOF
  11980. cat >>$CONFIG_STATUS <<\_ACEOF
  11981. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11982. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11983. case $ac_file in
  11984. - | *:- | *:-:* ) # input from stdin
  11985. cat >$tmp/stdin
  11986. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11987. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11988. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11989. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11990. * ) ac_file_in=$ac_file.in ;;
  11991. esac
  11992. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11993. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11994. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11995. X"$ac_file" : 'X\(//\)[^/]' \| \
  11996. X"$ac_file" : 'X\(//\)$' \| \
  11997. X"$ac_file" : 'X\(/\)' \| \
  11998. . : '\(.\)' 2>/dev/null ||
  11999. echo X"$ac_file" |
  12000. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12001. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12002. /^X\(\/\/\)$/{ s//\1/; q; }
  12003. /^X\(\/\).*/{ s//\1/; q; }
  12004. s/.*/./; q'`
  12005. { if $as_mkdir_p; then
  12006. mkdir -p "$ac_dir"
  12007. else
  12008. as_dir="$ac_dir"
  12009. as_dirs=
  12010. while test ! -d "$as_dir"; do
  12011. as_dirs="$as_dir $as_dirs"
  12012. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12013. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12014. X"$as_dir" : 'X\(//\)[^/]' \| \
  12015. X"$as_dir" : 'X\(//\)$' \| \
  12016. X"$as_dir" : 'X\(/\)' \| \
  12017. . : '\(.\)' 2>/dev/null ||
  12018. echo X"$as_dir" |
  12019. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12020. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12021. /^X\(\/\/\)$/{ s//\1/; q; }
  12022. /^X\(\/\).*/{ s//\1/; q; }
  12023. s/.*/./; q'`
  12024. done
  12025. test ! -n "$as_dirs" || mkdir $as_dirs
  12026. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12027. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12028. { (exit 1); exit 1; }; }; }
  12029. ac_builddir=.
  12030. if test "$ac_dir" != .; then
  12031. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12032. # A "../" for each directory in $ac_dir_suffix.
  12033. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  12034. else
  12035. ac_dir_suffix= ac_top_builddir=
  12036. fi
  12037. case $srcdir in
  12038. .) # No --srcdir option. We are building in place.
  12039. ac_srcdir=.
  12040. if test -z "$ac_top_builddir"; then
  12041. ac_top_srcdir=.
  12042. else
  12043. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  12044. fi ;;
  12045. [\\/]* | ?:[\\/]* ) # Absolute path.
  12046. ac_srcdir=$srcdir$ac_dir_suffix;
  12047. ac_top_srcdir=$srcdir ;;
  12048. *) # Relative path.
  12049. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  12050. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  12051. esac
  12052. # Do not use `cd foo && pwd` to compute absolute paths, because
  12053. # the directories may not exist.
  12054. case `pwd` in
  12055. .) ac_abs_builddir="$ac_dir";;
  12056. *)
  12057. case "$ac_dir" in
  12058. .) ac_abs_builddir=`pwd`;;
  12059. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  12060. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  12061. esac;;
  12062. esac
  12063. case $ac_abs_builddir in
  12064. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  12065. *)
  12066. case ${ac_top_builddir}. in
  12067. .) ac_abs_top_builddir=$ac_abs_builddir;;
  12068. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  12069. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  12070. esac;;
  12071. esac
  12072. case $ac_abs_builddir in
  12073. .) ac_abs_srcdir=$ac_srcdir;;
  12074. *)
  12075. case $ac_srcdir in
  12076. .) ac_abs_srcdir=$ac_abs_builddir;;
  12077. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  12078. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  12079. esac;;
  12080. esac
  12081. case $ac_abs_builddir in
  12082. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  12083. *)
  12084. case $ac_top_srcdir in
  12085. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  12086. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  12087. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  12088. esac;;
  12089. esac
  12090. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12091. # use $as_me), people would be surprised to read:
  12092. # /* config.h. Generated by config.status. */
  12093. if test x"$ac_file" = x-; then
  12094. configure_input=
  12095. else
  12096. configure_input="$ac_file. "
  12097. fi
  12098. configure_input=$configure_input"Generated from `echo $ac_file_in |
  12099. sed 's,.*/,,'` by configure."
  12100. # First look for the input files in the build tree, otherwise in the
  12101. # src tree.
  12102. ac_file_inputs=`IFS=:
  12103. for f in $ac_file_in; do
  12104. case $f in
  12105. -) echo $tmp/stdin ;;
  12106. [\\/$]*)
  12107. # Absolute (can't be DOS-style, as IFS=:)
  12108. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12109. echo "$as_me: error: cannot find input file: $f" >&2;}
  12110. { (exit 1); exit 1; }; }
  12111. echo "$f";;
  12112. *) # Relative
  12113. if test -f "$f"; then
  12114. # Build tree
  12115. echo "$f"
  12116. elif test -f "$srcdir/$f"; then
  12117. # Source tree
  12118. echo "$srcdir/$f"
  12119. else
  12120. # /dev/null tree
  12121. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12122. echo "$as_me: error: cannot find input file: $f" >&2;}
  12123. { (exit 1); exit 1; }; }
  12124. fi;;
  12125. esac
  12126. done` || { (exit 1); exit 1; }
  12127. if test x"$ac_file" != x-; then
  12128. { echo "$as_me:$LINENO: creating $ac_file" >&5
  12129. echo "$as_me: creating $ac_file" >&6;}
  12130. rm -f "$ac_file"
  12131. fi
  12132. _ACEOF
  12133. cat >>$CONFIG_STATUS <<_ACEOF
  12134. sed "$ac_vpsub
  12135. $extrasub
  12136. _ACEOF
  12137. cat >>$CONFIG_STATUS <<\_ACEOF
  12138. :t
  12139. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12140. s,@configure_input@,$configure_input,;t t
  12141. s,@srcdir@,$ac_srcdir,;t t
  12142. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  12143. s,@top_srcdir@,$ac_top_srcdir,;t t
  12144. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  12145. s,@builddir@,$ac_builddir,;t t
  12146. s,@abs_builddir@,$ac_abs_builddir,;t t
  12147. s,@top_builddir@,$ac_top_builddir,;t t
  12148. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  12149. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  12150. rm -f $tmp/stdin
  12151. if test x"$ac_file" != x-; then
  12152. mv $tmp/out $ac_file
  12153. else
  12154. cat $tmp/out
  12155. rm -f $tmp/out
  12156. fi
  12157. done
  12158. _ACEOF
  12159. cat >>$CONFIG_STATUS <<\_ACEOF
  12160. #
  12161. # CONFIG_HEADER section.
  12162. #
  12163. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  12164. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  12165. #
  12166. # ac_d sets the value in "#define NAME VALUE" lines.
  12167. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  12168. ac_dB='[ ].*$,\1#\2'
  12169. ac_dC=' '
  12170. ac_dD=',;t'
  12171. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  12172. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  12173. ac_uB='$,\1#\2define\3'
  12174. ac_uC=' '
  12175. ac_uD=',;t'
  12176. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  12177. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  12178. case $ac_file in
  12179. - | *:- | *:-:* ) # input from stdin
  12180. cat >$tmp/stdin
  12181. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12182. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12183. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12184. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12185. * ) ac_file_in=$ac_file.in ;;
  12186. esac
  12187. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  12188. echo "$as_me: creating $ac_file" >&6;}
  12189. # First look for the input files in the build tree, otherwise in the
  12190. # src tree.
  12191. ac_file_inputs=`IFS=:
  12192. for f in $ac_file_in; do
  12193. case $f in
  12194. -) echo $tmp/stdin ;;
  12195. [\\/$]*)
  12196. # Absolute (can't be DOS-style, as IFS=:)
  12197. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12198. echo "$as_me: error: cannot find input file: $f" >&2;}
  12199. { (exit 1); exit 1; }; }
  12200. # Do quote $f, to prevent DOS paths from being IFS'd.
  12201. echo "$f";;
  12202. *) # Relative
  12203. if test -f "$f"; then
  12204. # Build tree
  12205. echo "$f"
  12206. elif test -f "$srcdir/$f"; then
  12207. # Source tree
  12208. echo "$srcdir/$f"
  12209. else
  12210. # /dev/null tree
  12211. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12212. echo "$as_me: error: cannot find input file: $f" >&2;}
  12213. { (exit 1); exit 1; }; }
  12214. fi;;
  12215. esac
  12216. done` || { (exit 1); exit 1; }
  12217. # Remove the trailing spaces.
  12218. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  12219. _ACEOF
  12220. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  12221. # `conftest.undefs', that substitutes the proper values into
  12222. # config.h.in to produce config.h. The first handles `#define'
  12223. # templates, and the second `#undef' templates.
  12224. # And first: Protect against being on the right side of a sed subst in
  12225. # config.status. Protect against being in an unquoted here document
  12226. # in config.status.
  12227. rm -f conftest.defines conftest.undefs
  12228. # Using a here document instead of a string reduces the quoting nightmare.
  12229. # Putting comments in sed scripts is not portable.
  12230. #
  12231. # `end' is used to avoid that the second main sed command (meant for
  12232. # 0-ary CPP macros) applies to n-ary macro definitions.
  12233. # See the Autoconf documentation for `clear'.
  12234. cat >confdef2sed.sed <<\_ACEOF
  12235. s/[\\&,]/\\&/g
  12236. s,[\\$`],\\&,g
  12237. t clear
  12238. : clear
  12239. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  12240. t end
  12241. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  12242. : end
  12243. _ACEOF
  12244. # If some macros were called several times there might be several times
  12245. # the same #defines, which is useless. Nevertheless, we may not want to
  12246. # sort them, since we want the *last* AC-DEFINE to be honored.
  12247. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  12248. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  12249. rm -f confdef2sed.sed
  12250. # This sed command replaces #undef with comments. This is necessary, for
  12251. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12252. # on some systems where configure will not decide to define it.
  12253. cat >>conftest.undefs <<\_ACEOF
  12254. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  12255. _ACEOF
  12256. # Break up conftest.defines because some shells have a limit on the size
  12257. # of here documents, and old seds have small limits too (100 cmds).
  12258. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  12259. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  12260. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  12261. echo ' :' >>$CONFIG_STATUS
  12262. rm -f conftest.tail
  12263. while grep . conftest.defines >/dev/null
  12264. do
  12265. # Write a limited-size here document to $tmp/defines.sed.
  12266. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  12267. # Speed up: don't consider the non `#define' lines.
  12268. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  12269. # Work around the forget-to-reset-the-flag bug.
  12270. echo 't clr' >>$CONFIG_STATUS
  12271. echo ': clr' >>$CONFIG_STATUS
  12272. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  12273. echo 'CEOF
  12274. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  12275. rm -f $tmp/in
  12276. mv $tmp/out $tmp/in
  12277. ' >>$CONFIG_STATUS
  12278. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  12279. rm -f conftest.defines
  12280. mv conftest.tail conftest.defines
  12281. done
  12282. rm -f conftest.defines
  12283. echo ' fi # grep' >>$CONFIG_STATUS
  12284. echo >>$CONFIG_STATUS
  12285. # Break up conftest.undefs because some shells have a limit on the size
  12286. # of here documents, and old seds have small limits too (100 cmds).
  12287. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  12288. rm -f conftest.tail
  12289. while grep . conftest.undefs >/dev/null
  12290. do
  12291. # Write a limited-size here document to $tmp/undefs.sed.
  12292. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  12293. # Speed up: don't consider the non `#undef'
  12294. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  12295. # Work around the forget-to-reset-the-flag bug.
  12296. echo 't clr' >>$CONFIG_STATUS
  12297. echo ': clr' >>$CONFIG_STATUS
  12298. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  12299. echo 'CEOF
  12300. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  12301. rm -f $tmp/in
  12302. mv $tmp/out $tmp/in
  12303. ' >>$CONFIG_STATUS
  12304. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  12305. rm -f conftest.undefs
  12306. mv conftest.tail conftest.undefs
  12307. done
  12308. rm -f conftest.undefs
  12309. cat >>$CONFIG_STATUS <<\_ACEOF
  12310. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12311. # use $as_me), people would be surprised to read:
  12312. # /* config.h. Generated by config.status. */
  12313. if test x"$ac_file" = x-; then
  12314. echo "/* Generated by configure. */" >$tmp/config.h
  12315. else
  12316. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  12317. fi
  12318. cat $tmp/in >>$tmp/config.h
  12319. rm -f $tmp/in
  12320. if test x"$ac_file" != x-; then
  12321. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  12322. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12323. echo "$as_me: $ac_file is unchanged" >&6;}
  12324. else
  12325. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  12326. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12327. X"$ac_file" : 'X\(//\)[^/]' \| \
  12328. X"$ac_file" : 'X\(//\)$' \| \
  12329. X"$ac_file" : 'X\(/\)' \| \
  12330. . : '\(.\)' 2>/dev/null ||
  12331. echo X"$ac_file" |
  12332. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12333. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12334. /^X\(\/\/\)$/{ s//\1/; q; }
  12335. /^X\(\/\).*/{ s//\1/; q; }
  12336. s/.*/./; q'`
  12337. { if $as_mkdir_p; then
  12338. mkdir -p "$ac_dir"
  12339. else
  12340. as_dir="$ac_dir"
  12341. as_dirs=
  12342. while test ! -d "$as_dir"; do
  12343. as_dirs="$as_dir $as_dirs"
  12344. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12345. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12346. X"$as_dir" : 'X\(//\)[^/]' \| \
  12347. X"$as_dir" : 'X\(//\)$' \| \
  12348. X"$as_dir" : 'X\(/\)' \| \
  12349. . : '\(.\)' 2>/dev/null ||
  12350. echo X"$as_dir" |
  12351. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12352. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12353. /^X\(\/\/\)$/{ s//\1/; q; }
  12354. /^X\(\/\).*/{ s//\1/; q; }
  12355. s/.*/./; q'`
  12356. done
  12357. test ! -n "$as_dirs" || mkdir $as_dirs
  12358. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12359. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12360. { (exit 1); exit 1; }; }; }
  12361. rm -f $ac_file
  12362. mv $tmp/config.h $ac_file
  12363. fi
  12364. else
  12365. cat $tmp/config.h
  12366. rm -f $tmp/config.h
  12367. fi
  12368. done
  12369. _ACEOF
  12370. cat >>$CONFIG_STATUS <<\_ACEOF
  12371. #
  12372. # CONFIG_COMMANDS section.
  12373. #
  12374. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  12375. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  12376. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12377. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  12378. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12379. X"$ac_dest" : 'X\(//\)[^/]' \| \
  12380. X"$ac_dest" : 'X\(//\)$' \| \
  12381. X"$ac_dest" : 'X\(/\)' \| \
  12382. . : '\(.\)' 2>/dev/null ||
  12383. echo X"$ac_dest" |
  12384. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12385. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12386. /^X\(\/\/\)$/{ s//\1/; q; }
  12387. /^X\(\/\).*/{ s//\1/; q; }
  12388. s/.*/./; q'`
  12389. { if $as_mkdir_p; then
  12390. mkdir -p "$ac_dir"
  12391. else
  12392. as_dir="$ac_dir"
  12393. as_dirs=
  12394. while test ! -d "$as_dir"; do
  12395. as_dirs="$as_dir $as_dirs"
  12396. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12397. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12398. X"$as_dir" : 'X\(//\)[^/]' \| \
  12399. X"$as_dir" : 'X\(//\)$' \| \
  12400. X"$as_dir" : 'X\(/\)' \| \
  12401. . : '\(.\)' 2>/dev/null ||
  12402. echo X"$as_dir" |
  12403. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12404. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12405. /^X\(\/\/\)$/{ s//\1/; q; }
  12406. /^X\(\/\).*/{ s//\1/; q; }
  12407. s/.*/./; q'`
  12408. done
  12409. test ! -n "$as_dirs" || mkdir $as_dirs
  12410. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12411. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12412. { (exit 1); exit 1; }; }; }
  12413. ac_builddir=.
  12414. if test "$ac_dir" != .; then
  12415. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12416. # A "../" for each directory in $ac_dir_suffix.
  12417. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  12418. else
  12419. ac_dir_suffix= ac_top_builddir=
  12420. fi
  12421. case $srcdir in
  12422. .) # No --srcdir option. We are building in place.
  12423. ac_srcdir=.
  12424. if test -z "$ac_top_builddir"; then
  12425. ac_top_srcdir=.
  12426. else
  12427. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  12428. fi ;;
  12429. [\\/]* | ?:[\\/]* ) # Absolute path.
  12430. ac_srcdir=$srcdir$ac_dir_suffix;
  12431. ac_top_srcdir=$srcdir ;;
  12432. *) # Relative path.
  12433. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  12434. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  12435. esac
  12436. # Do not use `cd foo && pwd` to compute absolute paths, because
  12437. # the directories may not exist.
  12438. case `pwd` in
  12439. .) ac_abs_builddir="$ac_dir";;
  12440. *)
  12441. case "$ac_dir" in
  12442. .) ac_abs_builddir=`pwd`;;
  12443. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  12444. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  12445. esac;;
  12446. esac
  12447. case $ac_abs_builddir in
  12448. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  12449. *)
  12450. case ${ac_top_builddir}. in
  12451. .) ac_abs_top_builddir=$ac_abs_builddir;;
  12452. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  12453. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  12454. esac;;
  12455. esac
  12456. case $ac_abs_builddir in
  12457. .) ac_abs_srcdir=$ac_srcdir;;
  12458. *)
  12459. case $ac_srcdir in
  12460. .) ac_abs_srcdir=$ac_abs_builddir;;
  12461. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  12462. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  12463. esac;;
  12464. esac
  12465. case $ac_abs_builddir in
  12466. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  12467. *)
  12468. case $ac_top_srcdir in
  12469. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  12470. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  12471. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  12472. esac;;
  12473. esac
  12474. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  12475. echo "$as_me: executing $ac_dest commands" >&6;}
  12476. case $ac_dest in
  12477. replace-if-changed )
  12478. egg_replace_file="lush.h"
  12479. cat > conftest.out << EOF
  12480. /* Ignore me but do not erase me. I am a kludge. */
  12481. #include "${egg_tclinc}/${egg_tclincfn}"
  12482. EOF
  12483. if test -f "$egg_replace_file" && cmp -s conftest.out $egg_replace_file; then
  12484. echo "lush.h is unchanged"
  12485. else
  12486. echo "creating lush.h"
  12487. mv conftest.out $egg_replace_file
  12488. fi
  12489. rm -f conftest.out
  12490. ;;
  12491. catch-make-rebuild )
  12492. if test -f .modules; then
  12493. $srcdir/misc/modconfig --top_srcdir="$srcdir/src" Makefile
  12494. fi
  12495. ;;
  12496. esac
  12497. done
  12498. _ACEOF
  12499. cat >>$CONFIG_STATUS <<\_ACEOF
  12500. { (exit 0); exit 0; }
  12501. _ACEOF
  12502. chmod +x $CONFIG_STATUS
  12503. ac_clean_files=$ac_clean_files_save
  12504. # configure is writing to config.log, and then calls config.status.
  12505. # config.status does its own redirection, appending to config.log.
  12506. # Unfortunately, on DOS this fails, as config.log is still kept open
  12507. # by configure, so config.status won't be able to write to it; its
  12508. # output is simply discarded. So we exec the FD to /dev/null,
  12509. # effectively closing config.log, so it can be properly (re)opened and
  12510. # appended to by config.status. When coming back to configure, we
  12511. # need to make the FD available again.
  12512. if test "$no_create" != yes; then
  12513. ac_cs_success=:
  12514. ac_config_status_args=
  12515. test "$silent" = yes &&
  12516. ac_config_status_args="$ac_config_status_args --quiet"
  12517. exec 5>/dev/null
  12518. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12519. exec 5>>config.log
  12520. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12521. # would make configure fail if this is the last instruction.
  12522. $ac_cs_success || { (exit 1); exit 1; }
  12523. fi