configure 398 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.63.
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. #
  11. # Copyright (c) 2003, 2004 Bryan Drewery
  12. ## --------------------- ##
  13. ## M4sh Initialization. ##
  14. ## --------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  18. emulate sh
  19. NULLCMD=:
  20. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21. # is contrary to our usage. Disable this feature.
  22. alias -g '${1+"$@"}'='"$@"'
  23. setopt NO_GLOB_SUBST
  24. else
  25. case `(set -o) 2>/dev/null` in
  26. *posix*) set -o posix ;;
  27. esac
  28. fi
  29. # PATH needs CR
  30. # Avoid depending upon Character Ranges.
  31. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  32. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  33. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  34. as_cr_digits='0123456789'
  35. as_cr_alnum=$as_cr_Letters$as_cr_digits
  36. as_nl='
  37. '
  38. export as_nl
  39. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  40. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  42. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  43. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='printf %s\n'
  45. as_echo_n='printf %s'
  46. else
  47. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  48. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  49. as_echo_n='/usr/ucb/echo -n'
  50. else
  51. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  52. as_echo_n_body='eval
  53. arg=$1;
  54. case $arg in
  55. *"$as_nl"*)
  56. expr "X$arg" : "X\\(.*\\)$as_nl";
  57. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  58. esac;
  59. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  60. '
  61. export as_echo_n_body
  62. as_echo_n='sh -c $as_echo_n_body as_echo'
  63. fi
  64. export as_echo_body
  65. as_echo='sh -c $as_echo_body as_echo'
  66. fi
  67. # The user is always right.
  68. if test "${PATH_SEPARATOR+set}" != set; then
  69. PATH_SEPARATOR=:
  70. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  71. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  72. PATH_SEPARATOR=';'
  73. }
  74. fi
  75. # Support unset when possible.
  76. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  77. as_unset=unset
  78. else
  79. as_unset=false
  80. fi
  81. # IFS
  82. # We need space, tab and new line, in precisely that order. Quoting is
  83. # there to prevent editors from complaining about space-tab.
  84. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  85. # splitting by setting IFS to empty value.)
  86. IFS=" "" $as_nl"
  87. # Find who we are. Look in the path if we contain no directory separator.
  88. case $0 in
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. { (exit 1); exit 1; }
  108. fi
  109. # Work around bugs in pre-3.0 UWIN ksh.
  110. for as_var in ENV MAIL MAILPATH
  111. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # Required to use basename.
  122. if expr a : '\(a\)' >/dev/null 2>&1 &&
  123. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  124. as_expr=expr
  125. else
  126. as_expr=false
  127. fi
  128. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  129. as_basename=basename
  130. else
  131. as_basename=false
  132. fi
  133. # Name of the executable.
  134. as_me=`$as_basename -- "$0" ||
  135. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  136. X"$0" : 'X\(//\)$' \| \
  137. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  138. $as_echo X/"$0" |
  139. sed '/^.*\/\([^/][^/]*\)\/*$/{
  140. s//\1/
  141. q
  142. }
  143. /^X\/\(\/\/\)$/{
  144. s//\1/
  145. q
  146. }
  147. /^X\/\(\/\).*/{
  148. s//\1/
  149. q
  150. }
  151. s/.*/./; q'`
  152. # CDPATH.
  153. $as_unset CDPATH
  154. if test "x$CONFIG_SHELL" = x; then
  155. if (eval ":") 2>/dev/null; then
  156. as_have_required=yes
  157. else
  158. as_have_required=no
  159. fi
  160. if test $as_have_required = yes && (eval ":
  161. (as_func_return () {
  162. (exit \$1)
  163. }
  164. as_func_success () {
  165. as_func_return 0
  166. }
  167. as_func_failure () {
  168. as_func_return 1
  169. }
  170. as_func_ret_success () {
  171. return 0
  172. }
  173. as_func_ret_failure () {
  174. return 1
  175. }
  176. exitcode=0
  177. if as_func_success; then
  178. :
  179. else
  180. exitcode=1
  181. echo as_func_success failed.
  182. fi
  183. if as_func_failure; then
  184. exitcode=1
  185. echo as_func_failure succeeded.
  186. fi
  187. if as_func_ret_success; then
  188. :
  189. else
  190. exitcode=1
  191. echo as_func_ret_success failed.
  192. fi
  193. if as_func_ret_failure; then
  194. exitcode=1
  195. echo as_func_ret_failure succeeded.
  196. fi
  197. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  198. :
  199. else
  200. exitcode=1
  201. echo positional parameters were not saved.
  202. fi
  203. test \$exitcode = 0) || { (exit 1); exit 1; }
  204. (
  205. as_lineno_1=\$LINENO
  206. as_lineno_2=\$LINENO
  207. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  208. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  209. ") 2> /dev/null; then
  210. :
  211. else
  212. as_candidate_shells=
  213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  214. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  215. do
  216. IFS=$as_save_IFS
  217. test -z "$as_dir" && as_dir=.
  218. case $as_dir in
  219. /*)
  220. for as_base in sh bash ksh sh5; do
  221. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  222. done;;
  223. esac
  224. done
  225. IFS=$as_save_IFS
  226. for as_shell in $as_candidate_shells $SHELL; do
  227. # Try only shells that exist, to save several forks.
  228. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  229. { ("$as_shell") 2> /dev/null <<\_ASEOF
  230. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  231. emulate sh
  232. NULLCMD=:
  233. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  234. # is contrary to our usage. Disable this feature.
  235. alias -g '${1+"$@"}'='"$@"'
  236. setopt NO_GLOB_SUBST
  237. else
  238. case `(set -o) 2>/dev/null` in
  239. *posix*) set -o posix ;;
  240. esac
  241. fi
  242. :
  243. _ASEOF
  244. }; then
  245. CONFIG_SHELL=$as_shell
  246. as_have_required=yes
  247. if { "$as_shell" 2> /dev/null <<\_ASEOF
  248. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  249. emulate sh
  250. NULLCMD=:
  251. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  252. # is contrary to our usage. Disable this feature.
  253. alias -g '${1+"$@"}'='"$@"'
  254. setopt NO_GLOB_SUBST
  255. else
  256. case `(set -o) 2>/dev/null` in
  257. *posix*) set -o posix ;;
  258. esac
  259. fi
  260. :
  261. (as_func_return () {
  262. (exit $1)
  263. }
  264. as_func_success () {
  265. as_func_return 0
  266. }
  267. as_func_failure () {
  268. as_func_return 1
  269. }
  270. as_func_ret_success () {
  271. return 0
  272. }
  273. as_func_ret_failure () {
  274. return 1
  275. }
  276. exitcode=0
  277. if as_func_success; then
  278. :
  279. else
  280. exitcode=1
  281. echo as_func_success failed.
  282. fi
  283. if as_func_failure; then
  284. exitcode=1
  285. echo as_func_failure succeeded.
  286. fi
  287. if as_func_ret_success; then
  288. :
  289. else
  290. exitcode=1
  291. echo as_func_ret_success failed.
  292. fi
  293. if as_func_ret_failure; then
  294. exitcode=1
  295. echo as_func_ret_failure succeeded.
  296. fi
  297. if ( set x; as_func_ret_success y && test x = "$1" ); then
  298. :
  299. else
  300. exitcode=1
  301. echo positional parameters were not saved.
  302. fi
  303. test $exitcode = 0) || { (exit 1); exit 1; }
  304. (
  305. as_lineno_1=$LINENO
  306. as_lineno_2=$LINENO
  307. test "x$as_lineno_1" != "x$as_lineno_2" &&
  308. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  309. _ASEOF
  310. }; then
  311. break
  312. fi
  313. fi
  314. done
  315. if test "x$CONFIG_SHELL" != x; then
  316. for as_var in BASH_ENV ENV
  317. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  318. done
  319. export CONFIG_SHELL
  320. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  321. fi
  322. if test $as_have_required = no; then
  323. echo This script requires a shell more modern than all the
  324. echo shells that I found on your system. Please install a
  325. echo modern shell, or manually run the script under such a
  326. echo shell if you do have one.
  327. { (exit 1); exit 1; }
  328. fi
  329. fi
  330. fi
  331. (eval "as_func_return () {
  332. (exit \$1)
  333. }
  334. as_func_success () {
  335. as_func_return 0
  336. }
  337. as_func_failure () {
  338. as_func_return 1
  339. }
  340. as_func_ret_success () {
  341. return 0
  342. }
  343. as_func_ret_failure () {
  344. return 1
  345. }
  346. exitcode=0
  347. if as_func_success; then
  348. :
  349. else
  350. exitcode=1
  351. echo as_func_success failed.
  352. fi
  353. if as_func_failure; then
  354. exitcode=1
  355. echo as_func_failure succeeded.
  356. fi
  357. if as_func_ret_success; then
  358. :
  359. else
  360. exitcode=1
  361. echo as_func_ret_success failed.
  362. fi
  363. if as_func_ret_failure; then
  364. exitcode=1
  365. echo as_func_ret_failure succeeded.
  366. fi
  367. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  368. :
  369. else
  370. exitcode=1
  371. echo positional parameters were not saved.
  372. fi
  373. test \$exitcode = 0") || {
  374. echo No shell found that supports shell functions.
  375. echo Please tell bug-autoconf@gnu.org about your system,
  376. echo including any error possibly output before this message.
  377. echo This can help us improve future autoconf versions.
  378. echo Configuration will now proceed without shell functions.
  379. }
  380. as_lineno_1=$LINENO
  381. as_lineno_2=$LINENO
  382. test "x$as_lineno_1" != "x$as_lineno_2" &&
  383. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  384. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  385. # uniformly replaced by the line number. The first 'sed' inserts a
  386. # line-number line after each line using $LINENO; the second 'sed'
  387. # does the real work. The second script uses 'N' to pair each
  388. # line-number line with the line containing $LINENO, and appends
  389. # trailing '-' during substitution so that $LINENO is not a special
  390. # case at line end.
  391. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  392. # scripts with optimization help from Paolo Bonzini. Blame Lee
  393. # E. McMahon (1931-1989) for sed's syntax. :-)
  394. sed -n '
  395. p
  396. /[$]LINENO/=
  397. ' <$as_myself |
  398. sed '
  399. s/[$]LINENO.*/&-/
  400. t lineno
  401. b
  402. :lineno
  403. N
  404. :loop
  405. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  406. t loop
  407. s/-\n.*//
  408. ' >$as_me.lineno &&
  409. chmod +x "$as_me.lineno" ||
  410. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  411. { (exit 1); exit 1; }; }
  412. # Don't try to exec as it changes $[0], causing all sort of problems
  413. # (the dirname of $[0] is not the place where we might find the
  414. # original and so on. Autoconf is especially sensitive to this).
  415. . "./$as_me.lineno"
  416. # Exit status is that of the last command.
  417. exit
  418. }
  419. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  420. as_dirname=dirname
  421. else
  422. as_dirname=false
  423. fi
  424. ECHO_C= ECHO_N= ECHO_T=
  425. case `echo -n x` in
  426. -n*)
  427. case `echo 'x\c'` in
  428. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  429. *) ECHO_C='\c';;
  430. esac;;
  431. *)
  432. ECHO_N='-n';;
  433. esac
  434. if expr a : '\(a\)' >/dev/null 2>&1 &&
  435. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  436. as_expr=expr
  437. else
  438. as_expr=false
  439. fi
  440. rm -f conf$$ conf$$.exe conf$$.file
  441. if test -d conf$$.dir; then
  442. rm -f conf$$.dir/conf$$.file
  443. else
  444. rm -f conf$$.dir
  445. mkdir conf$$.dir 2>/dev/null
  446. fi
  447. if (echo >conf$$.file) 2>/dev/null; then
  448. if ln -s conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s='ln -s'
  450. # ... but there are two gotchas:
  451. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  452. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  453. # In both cases, we have to default to `cp -p'.
  454. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  455. as_ln_s='cp -p'
  456. elif ln conf$$.file conf$$ 2>/dev/null; then
  457. as_ln_s=ln
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. else
  462. as_ln_s='cp -p'
  463. fi
  464. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  465. rmdir conf$$.dir 2>/dev/null
  466. if mkdir -p . 2>/dev/null; then
  467. as_mkdir_p=:
  468. else
  469. test -d ./-p && rmdir ./-p
  470. as_mkdir_p=false
  471. fi
  472. if test -x / >/dev/null 2>&1; then
  473. as_test_x='test -x'
  474. else
  475. if ls -dL / >/dev/null 2>&1; then
  476. as_ls_L_option=L
  477. else
  478. as_ls_L_option=
  479. fi
  480. as_test_x='
  481. eval sh -c '\''
  482. if test -d "$1"; then
  483. test -d "$1/.";
  484. else
  485. case $1 in
  486. -*)set "./$1";;
  487. esac;
  488. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  489. ???[sx]*):;;*)false;;esac;fi
  490. '\'' sh
  491. '
  492. fi
  493. as_executable_p=$as_test_x
  494. # Sed expression to map a string onto a valid CPP name.
  495. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  496. # Sed expression to map a string onto a valid variable name.
  497. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  498. exec 7<&0 </dev/null 6>&1
  499. # Name of the host.
  500. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  501. # so uname gets run too.
  502. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  503. #
  504. # Initializations.
  505. #
  506. ac_default_prefix=/usr/local
  507. ac_clean_files=
  508. ac_config_libobj_dir=.
  509. LIBOBJS=
  510. cross_compiling=no
  511. subdirs=
  512. MFLAGS=
  513. MAKEFLAGS=
  514. SHELL=${CONFIG_SHELL-/bin/sh}
  515. # Identity of this package.
  516. PACKAGE_NAME=
  517. PACKAGE_TARNAME=
  518. PACKAGE_VERSION=
  519. PACKAGE_STRING=
  520. PACKAGE_BUGREPORT=
  521. ac_unique_file="wraith"
  522. ac_unique_file="src/eggdrop.h"
  523. # Factoring default headers for most tests.
  524. ac_includes_default="\
  525. #include <stdio.h>
  526. #ifdef HAVE_SYS_TYPES_H
  527. # include <sys/types.h>
  528. #endif
  529. #ifdef HAVE_SYS_STAT_H
  530. # include <sys/stat.h>
  531. #endif
  532. #ifdef STDC_HEADERS
  533. # include <stdlib.h>
  534. # include <stddef.h>
  535. #else
  536. # ifdef HAVE_STDLIB_H
  537. # include <stdlib.h>
  538. # endif
  539. #endif
  540. #ifdef HAVE_STRING_H
  541. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  542. # include <memory.h>
  543. # endif
  544. # include <string.h>
  545. #endif
  546. #ifdef HAVE_STRINGS_H
  547. # include <strings.h>
  548. #endif
  549. #ifdef HAVE_INTTYPES_H
  550. # include <inttypes.h>
  551. #endif
  552. #ifdef HAVE_STDINT_H
  553. # include <stdint.h>
  554. #endif
  555. #ifdef HAVE_UNISTD_H
  556. # include <unistd.h>
  557. #endif"
  558. ac_header_list=
  559. ac_func_list=
  560. ac_subst_vars='LTLIBOBJS
  561. MOD_UPDIR
  562. NUMVER
  563. VERSION
  564. LIBOBJS
  565. CCDEBUG
  566. BUILDARCH
  567. BUILDOS
  568. DISTCC
  569. CCACHE
  570. UNAME
  571. DIFF
  572. STRIP
  573. OBJCOPY
  574. BASENAME
  575. AWK
  576. HEAD_1
  577. SET_MAKE
  578. GCC3DEB
  579. GCC3
  580. CCDEPMODE
  581. EGREP
  582. GREP
  583. CXXCPP
  584. OBJEXT
  585. EXEEXT
  586. ac_ct_CXX
  587. CPPFLAGS
  588. LDFLAGS
  589. CXXFLAGS
  590. CXX
  591. egg_ac_parameters
  592. target_alias
  593. host_alias
  594. build_alias
  595. LIBS
  596. ECHO_T
  597. ECHO_N
  598. ECHO_C
  599. DEFS
  600. mandir
  601. localedir
  602. libdir
  603. psdir
  604. pdfdir
  605. dvidir
  606. htmldir
  607. infodir
  608. docdir
  609. oldincludedir
  610. includedir
  611. localstatedir
  612. sharedstatedir
  613. sysconfdir
  614. datadir
  615. datarootdir
  616. libexecdir
  617. sbindir
  618. bindir
  619. program_transform_name
  620. prefix
  621. exec_prefix
  622. PACKAGE_BUGREPORT
  623. PACKAGE_STRING
  624. PACKAGE_VERSION
  625. PACKAGE_TARNAME
  626. PACKAGE_NAME
  627. PATH_SEPARATOR
  628. SHELL'
  629. ac_subst_files=''
  630. ac_user_opts='
  631. enable_option_checking
  632. enable_ipv6
  633. '
  634. ac_precious_vars='build_alias
  635. host_alias
  636. target_alias
  637. CXX
  638. CXXFLAGS
  639. LDFLAGS
  640. LIBS
  641. CPPFLAGS
  642. CCC
  643. CXXCPP'
  644. # Initialize some variables set by options.
  645. ac_init_help=
  646. ac_init_version=false
  647. ac_unrecognized_opts=
  648. ac_unrecognized_sep=
  649. # The variables have the same names as the options, with
  650. # dashes changed to underlines.
  651. cache_file=./config.cache
  652. exec_prefix=NONE
  653. no_create=
  654. no_recursion=
  655. prefix=NONE
  656. program_prefix=NONE
  657. program_suffix=NONE
  658. program_transform_name=s,x,x,
  659. silent=
  660. site=
  661. srcdir=
  662. verbose=
  663. x_includes=NONE
  664. x_libraries=NONE
  665. # Installation directory options.
  666. # These are left unexpanded so users can "make install exec_prefix=/foo"
  667. # and all the variables that are supposed to be based on exec_prefix
  668. # by default will actually change.
  669. # Use braces instead of parens because sh, perl, etc. also accept them.
  670. # (The list follows the same order as the GNU Coding Standards.)
  671. bindir='${exec_prefix}/bin'
  672. sbindir='${exec_prefix}/sbin'
  673. libexecdir='${exec_prefix}/libexec'
  674. datarootdir='${prefix}/share'
  675. datadir='${datarootdir}'
  676. sysconfdir='${prefix}/etc'
  677. sharedstatedir='${prefix}/com'
  678. localstatedir='${prefix}/var'
  679. includedir='${prefix}/include'
  680. oldincludedir='/usr/include'
  681. docdir='${datarootdir}/doc/${PACKAGE}'
  682. infodir='${datarootdir}/info'
  683. htmldir='${docdir}'
  684. dvidir='${docdir}'
  685. pdfdir='${docdir}'
  686. psdir='${docdir}'
  687. libdir='${exec_prefix}/lib'
  688. localedir='${datarootdir}/locale'
  689. mandir='${datarootdir}/man'
  690. ac_prev=
  691. ac_dashdash=
  692. for ac_option
  693. do
  694. # If the previous option needs an argument, assign it.
  695. if test -n "$ac_prev"; then
  696. eval $ac_prev=\$ac_option
  697. ac_prev=
  698. continue
  699. fi
  700. case $ac_option in
  701. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  702. *) ac_optarg=yes ;;
  703. esac
  704. # Accept the important Cygnus configure options, so we can diagnose typos.
  705. case $ac_dashdash$ac_option in
  706. --)
  707. ac_dashdash=yes ;;
  708. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  709. ac_prev=bindir ;;
  710. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  711. bindir=$ac_optarg ;;
  712. -build | --build | --buil | --bui | --bu)
  713. ac_prev=build_alias ;;
  714. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  715. build_alias=$ac_optarg ;;
  716. -cache-file | --cache-file | --cache-fil | --cache-fi \
  717. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  718. ac_prev=cache_file ;;
  719. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  720. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  721. cache_file=$ac_optarg ;;
  722. --config-cache | -C)
  723. cache_file=config.cache ;;
  724. -datadir | --datadir | --datadi | --datad)
  725. ac_prev=datadir ;;
  726. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  727. datadir=$ac_optarg ;;
  728. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  729. | --dataroo | --dataro | --datar)
  730. ac_prev=datarootdir ;;
  731. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  732. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  733. datarootdir=$ac_optarg ;;
  734. -disable-* | --disable-*)
  735. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  736. # Reject names that are not valid shell variable names.
  737. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  738. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  739. { (exit 1); exit 1; }; }
  740. ac_useropt_orig=$ac_useropt
  741. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  742. case $ac_user_opts in
  743. *"
  744. "enable_$ac_useropt"
  745. "*) ;;
  746. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  747. ac_unrecognized_sep=', ';;
  748. esac
  749. eval enable_$ac_useropt=no ;;
  750. -docdir | --docdir | --docdi | --doc | --do)
  751. ac_prev=docdir ;;
  752. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  753. docdir=$ac_optarg ;;
  754. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  755. ac_prev=dvidir ;;
  756. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  757. dvidir=$ac_optarg ;;
  758. -enable-* | --enable-*)
  759. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  760. # Reject names that are not valid shell variable names.
  761. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  762. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  763. { (exit 1); exit 1; }; }
  764. ac_useropt_orig=$ac_useropt
  765. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  766. case $ac_user_opts in
  767. *"
  768. "enable_$ac_useropt"
  769. "*) ;;
  770. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  771. ac_unrecognized_sep=', ';;
  772. esac
  773. eval enable_$ac_useropt=\$ac_optarg ;;
  774. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  775. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  776. | --exec | --exe | --ex)
  777. ac_prev=exec_prefix ;;
  778. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  779. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  780. | --exec=* | --exe=* | --ex=*)
  781. exec_prefix=$ac_optarg ;;
  782. -gas | --gas | --ga | --g)
  783. # Obsolete; use --with-gas.
  784. with_gas=yes ;;
  785. -help | --help | --hel | --he | -h)
  786. ac_init_help=long ;;
  787. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  788. ac_init_help=recursive ;;
  789. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  790. ac_init_help=short ;;
  791. -host | --host | --hos | --ho)
  792. ac_prev=host_alias ;;
  793. -host=* | --host=* | --hos=* | --ho=*)
  794. host_alias=$ac_optarg ;;
  795. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  796. ac_prev=htmldir ;;
  797. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  798. | --ht=*)
  799. htmldir=$ac_optarg ;;
  800. -includedir | --includedir | --includedi | --included | --include \
  801. | --includ | --inclu | --incl | --inc)
  802. ac_prev=includedir ;;
  803. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  804. | --includ=* | --inclu=* | --incl=* | --inc=*)
  805. includedir=$ac_optarg ;;
  806. -infodir | --infodir | --infodi | --infod | --info | --inf)
  807. ac_prev=infodir ;;
  808. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  809. infodir=$ac_optarg ;;
  810. -libdir | --libdir | --libdi | --libd)
  811. ac_prev=libdir ;;
  812. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  813. libdir=$ac_optarg ;;
  814. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  815. | --libexe | --libex | --libe)
  816. ac_prev=libexecdir ;;
  817. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  818. | --libexe=* | --libex=* | --libe=*)
  819. libexecdir=$ac_optarg ;;
  820. -localedir | --localedir | --localedi | --localed | --locale)
  821. ac_prev=localedir ;;
  822. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  823. localedir=$ac_optarg ;;
  824. -localstatedir | --localstatedir | --localstatedi | --localstated \
  825. | --localstate | --localstat | --localsta | --localst | --locals)
  826. ac_prev=localstatedir ;;
  827. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  828. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  829. localstatedir=$ac_optarg ;;
  830. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  831. ac_prev=mandir ;;
  832. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  833. mandir=$ac_optarg ;;
  834. -nfp | --nfp | --nf)
  835. # Obsolete; use --without-fp.
  836. with_fp=no ;;
  837. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  838. | --no-cr | --no-c | -n)
  839. no_create=yes ;;
  840. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  841. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  842. no_recursion=yes ;;
  843. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  844. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  845. | --oldin | --oldi | --old | --ol | --o)
  846. ac_prev=oldincludedir ;;
  847. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  848. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  849. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  850. oldincludedir=$ac_optarg ;;
  851. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  852. ac_prev=prefix ;;
  853. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  854. prefix=$ac_optarg ;;
  855. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  856. | --program-pre | --program-pr | --program-p)
  857. ac_prev=program_prefix ;;
  858. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  859. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  860. program_prefix=$ac_optarg ;;
  861. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  862. | --program-suf | --program-su | --program-s)
  863. ac_prev=program_suffix ;;
  864. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  865. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  866. program_suffix=$ac_optarg ;;
  867. -program-transform-name | --program-transform-name \
  868. | --program-transform-nam | --program-transform-na \
  869. | --program-transform-n | --program-transform- \
  870. | --program-transform | --program-transfor \
  871. | --program-transfo | --program-transf \
  872. | --program-trans | --program-tran \
  873. | --progr-tra | --program-tr | --program-t)
  874. ac_prev=program_transform_name ;;
  875. -program-transform-name=* | --program-transform-name=* \
  876. | --program-transform-nam=* | --program-transform-na=* \
  877. | --program-transform-n=* | --program-transform-=* \
  878. | --program-transform=* | --program-transfor=* \
  879. | --program-transfo=* | --program-transf=* \
  880. | --program-trans=* | --program-tran=* \
  881. | --progr-tra=* | --program-tr=* | --program-t=*)
  882. program_transform_name=$ac_optarg ;;
  883. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  884. ac_prev=pdfdir ;;
  885. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  886. pdfdir=$ac_optarg ;;
  887. -psdir | --psdir | --psdi | --psd | --ps)
  888. ac_prev=psdir ;;
  889. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  890. psdir=$ac_optarg ;;
  891. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  892. | -silent | --silent | --silen | --sile | --sil)
  893. silent=yes ;;
  894. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  895. ac_prev=sbindir ;;
  896. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  897. | --sbi=* | --sb=*)
  898. sbindir=$ac_optarg ;;
  899. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  900. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  901. | --sharedst | --shareds | --shared | --share | --shar \
  902. | --sha | --sh)
  903. ac_prev=sharedstatedir ;;
  904. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  905. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  906. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  907. | --sha=* | --sh=*)
  908. sharedstatedir=$ac_optarg ;;
  909. -site | --site | --sit)
  910. ac_prev=site ;;
  911. -site=* | --site=* | --sit=*)
  912. site=$ac_optarg ;;
  913. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  914. ac_prev=srcdir ;;
  915. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  916. srcdir=$ac_optarg ;;
  917. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  918. | --syscon | --sysco | --sysc | --sys | --sy)
  919. ac_prev=sysconfdir ;;
  920. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  921. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  922. sysconfdir=$ac_optarg ;;
  923. -target | --target | --targe | --targ | --tar | --ta | --t)
  924. ac_prev=target_alias ;;
  925. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  926. target_alias=$ac_optarg ;;
  927. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  928. verbose=yes ;;
  929. -version | --version | --versio | --versi | --vers | -V)
  930. ac_init_version=: ;;
  931. -with-* | --with-*)
  932. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  933. # Reject names that are not valid shell variable names.
  934. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  935. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  936. { (exit 1); exit 1; }; }
  937. ac_useropt_orig=$ac_useropt
  938. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  939. case $ac_user_opts in
  940. *"
  941. "with_$ac_useropt"
  942. "*) ;;
  943. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  944. ac_unrecognized_sep=', ';;
  945. esac
  946. eval with_$ac_useropt=\$ac_optarg ;;
  947. -without-* | --without-*)
  948. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  949. # Reject names that are not valid shell variable names.
  950. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  951. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  952. { (exit 1); exit 1; }; }
  953. ac_useropt_orig=$ac_useropt
  954. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  955. case $ac_user_opts in
  956. *"
  957. "with_$ac_useropt"
  958. "*) ;;
  959. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  960. ac_unrecognized_sep=', ';;
  961. esac
  962. eval with_$ac_useropt=no ;;
  963. --x)
  964. # Obsolete; use --with-x.
  965. with_x=yes ;;
  966. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  967. | --x-incl | --x-inc | --x-in | --x-i)
  968. ac_prev=x_includes ;;
  969. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  970. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  971. x_includes=$ac_optarg ;;
  972. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  973. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  974. ac_prev=x_libraries ;;
  975. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  976. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  977. x_libraries=$ac_optarg ;;
  978. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  979. Try \`$0 --help' for more information." >&2
  980. { (exit 1); exit 1; }; }
  981. ;;
  982. *=*)
  983. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  984. # Reject names that are not valid shell variable names.
  985. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  986. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  987. { (exit 1); exit 1; }; }
  988. eval $ac_envvar=\$ac_optarg
  989. export $ac_envvar ;;
  990. *)
  991. # FIXME: should be removed in autoconf 3.0.
  992. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  993. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  994. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  995. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  996. ;;
  997. esac
  998. done
  999. if test -n "$ac_prev"; then
  1000. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1001. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1002. { (exit 1); exit 1; }; }
  1003. fi
  1004. if test -n "$ac_unrecognized_opts"; then
  1005. case $enable_option_checking in
  1006. no) ;;
  1007. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1008. { (exit 1); exit 1; }; } ;;
  1009. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1010. esac
  1011. fi
  1012. # Check all directory arguments for consistency.
  1013. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1014. datadir sysconfdir sharedstatedir localstatedir includedir \
  1015. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1016. libdir localedir mandir
  1017. do
  1018. eval ac_val=\$$ac_var
  1019. # Remove trailing slashes.
  1020. case $ac_val in
  1021. */ )
  1022. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1023. eval $ac_var=\$ac_val;;
  1024. esac
  1025. # Be sure to have absolute directory names.
  1026. case $ac_val in
  1027. [\\/$]* | ?:[\\/]* ) continue;;
  1028. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1029. esac
  1030. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1031. { (exit 1); exit 1; }; }
  1032. done
  1033. # There might be people who depend on the old broken behavior: `$host'
  1034. # used to hold the argument of --host etc.
  1035. # FIXME: To remove some day.
  1036. build=$build_alias
  1037. host=$host_alias
  1038. target=$target_alias
  1039. # FIXME: To remove some day.
  1040. if test "x$host_alias" != x; then
  1041. if test "x$build_alias" = x; then
  1042. cross_compiling=maybe
  1043. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1044. If a cross compiler is detected then cross compile mode will be used." >&2
  1045. elif test "x$build_alias" != "x$host_alias"; then
  1046. cross_compiling=yes
  1047. fi
  1048. fi
  1049. ac_tool_prefix=
  1050. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1051. test "$silent" = yes && exec 6>/dev/null
  1052. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1053. ac_ls_di=`ls -di .` &&
  1054. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1055. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1056. { (exit 1); exit 1; }; }
  1057. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1058. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1059. { (exit 1); exit 1; }; }
  1060. # Find the source files, if location was not specified.
  1061. if test -z "$srcdir"; then
  1062. ac_srcdir_defaulted=yes
  1063. # Try the directory containing this script, then the parent directory.
  1064. ac_confdir=`$as_dirname -- "$as_myself" ||
  1065. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1066. X"$as_myself" : 'X\(//\)[^/]' \| \
  1067. X"$as_myself" : 'X\(//\)$' \| \
  1068. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1069. $as_echo X"$as_myself" |
  1070. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1071. s//\1/
  1072. q
  1073. }
  1074. /^X\(\/\/\)[^/].*/{
  1075. s//\1/
  1076. q
  1077. }
  1078. /^X\(\/\/\)$/{
  1079. s//\1/
  1080. q
  1081. }
  1082. /^X\(\/\).*/{
  1083. s//\1/
  1084. q
  1085. }
  1086. s/.*/./; q'`
  1087. srcdir=$ac_confdir
  1088. if test ! -r "$srcdir/$ac_unique_file"; then
  1089. srcdir=..
  1090. fi
  1091. else
  1092. ac_srcdir_defaulted=no
  1093. fi
  1094. if test ! -r "$srcdir/$ac_unique_file"; then
  1095. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1096. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1097. { (exit 1); exit 1; }; }
  1098. fi
  1099. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1100. ac_abs_confdir=`(
  1101. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1102. { (exit 1); exit 1; }; }
  1103. pwd)`
  1104. # When building in place, set srcdir=.
  1105. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1106. srcdir=.
  1107. fi
  1108. # Remove unnecessary trailing slashes from srcdir.
  1109. # Double slashes in file names in object file debugging info
  1110. # mess up M-x gdb in Emacs.
  1111. case $srcdir in
  1112. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1113. esac
  1114. for ac_var in $ac_precious_vars; do
  1115. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1116. eval ac_env_${ac_var}_value=\$${ac_var}
  1117. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1118. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1119. done
  1120. #
  1121. # Report the --help message.
  1122. #
  1123. if test "$ac_init_help" = "long"; then
  1124. # Omit some internal or obsolete options to make the list less imposing.
  1125. # This message is too long to be a string in the A/UX 3.1 sh.
  1126. cat <<_ACEOF
  1127. \`configure' configures this package to adapt to many kinds of systems.
  1128. Usage: $0 [OPTION]... [VAR=VALUE]...
  1129. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1130. VAR=VALUE. See below for descriptions of some of the useful variables.
  1131. Defaults for the options are specified in brackets.
  1132. Configuration:
  1133. -h, --help display this help and exit
  1134. --help=short display options specific to this package
  1135. --help=recursive display the short help of all the included packages
  1136. -V, --version display version information and exit
  1137. -q, --quiet, --silent do not print \`checking...' messages
  1138. --cache-file=FILE cache test results in FILE [disabled]
  1139. -C, --config-cache alias for \`--cache-file=config.cache'
  1140. -n, --no-create do not create output files
  1141. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1142. Installation directories:
  1143. --prefix=PREFIX install architecture-independent files in PREFIX
  1144. [$ac_default_prefix]
  1145. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1146. [PREFIX]
  1147. By default, \`make install' will install all the files in
  1148. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1149. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1150. for instance \`--prefix=\$HOME'.
  1151. For better control, use the options below.
  1152. Fine tuning of the installation directories:
  1153. --bindir=DIR user executables [EPREFIX/bin]
  1154. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1155. --libexecdir=DIR program executables [EPREFIX/libexec]
  1156. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1157. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1158. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1159. --libdir=DIR object code libraries [EPREFIX/lib]
  1160. --includedir=DIR C header files [PREFIX/include]
  1161. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1162. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1163. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1164. --infodir=DIR info documentation [DATAROOTDIR/info]
  1165. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1166. --mandir=DIR man documentation [DATAROOTDIR/man]
  1167. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1168. --htmldir=DIR html documentation [DOCDIR]
  1169. --dvidir=DIR dvi documentation [DOCDIR]
  1170. --pdfdir=DIR pdf documentation [DOCDIR]
  1171. --psdir=DIR ps documentation [DOCDIR]
  1172. _ACEOF
  1173. cat <<\_ACEOF
  1174. _ACEOF
  1175. fi
  1176. if test -n "$ac_init_help"; then
  1177. cat <<\_ACEOF
  1178. Optional Features:
  1179. --disable-option-checking ignore unrecognized --enable/--with options
  1180. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1181. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1182. --disable-ipv6 disable IPv6 support
  1183. Some influential environment variables:
  1184. CXX C++ compiler command
  1185. CXXFLAGS C++ compiler flags
  1186. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1187. nonstandard directory <lib dir>
  1188. LIBS libraries to pass to the linker, e.g. -l<library>
  1189. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1190. you have headers in a nonstandard directory <include dir>
  1191. CXXCPP C++ preprocessor
  1192. Use these variables to override the choices made by `configure' or to help
  1193. it to find libraries and programs with nonstandard names/locations.
  1194. _ACEOF
  1195. ac_status=$?
  1196. fi
  1197. if test "$ac_init_help" = "recursive"; then
  1198. # If there are subdirs, report their specific --help.
  1199. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1200. test -d "$ac_dir" ||
  1201. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1202. continue
  1203. ac_builddir=.
  1204. case "$ac_dir" in
  1205. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1206. *)
  1207. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1208. # A ".." for each directory in $ac_dir_suffix.
  1209. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1210. case $ac_top_builddir_sub in
  1211. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1212. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1213. esac ;;
  1214. esac
  1215. ac_abs_top_builddir=$ac_pwd
  1216. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1217. # for backward compatibility:
  1218. ac_top_builddir=$ac_top_build_prefix
  1219. case $srcdir in
  1220. .) # We are building in place.
  1221. ac_srcdir=.
  1222. ac_top_srcdir=$ac_top_builddir_sub
  1223. ac_abs_top_srcdir=$ac_pwd ;;
  1224. [\\/]* | ?:[\\/]* ) # Absolute name.
  1225. ac_srcdir=$srcdir$ac_dir_suffix;
  1226. ac_top_srcdir=$srcdir
  1227. ac_abs_top_srcdir=$srcdir ;;
  1228. *) # Relative name.
  1229. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1230. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1231. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1232. esac
  1233. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1234. cd "$ac_dir" || { ac_status=$?; continue; }
  1235. # Check for guested configure.
  1236. if test -f "$ac_srcdir/configure.gnu"; then
  1237. echo &&
  1238. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1239. elif test -f "$ac_srcdir/configure"; then
  1240. echo &&
  1241. $SHELL "$ac_srcdir/configure" --help=recursive
  1242. else
  1243. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1244. fi || ac_status=$?
  1245. cd "$ac_pwd" || { ac_status=$?; break; }
  1246. done
  1247. fi
  1248. test -n "$ac_init_help" && exit $ac_status
  1249. if $ac_init_version; then
  1250. cat <<\_ACEOF
  1251. configure
  1252. generated by GNU Autoconf 2.63
  1253. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1254. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1255. This configure script is free software; the Free Software Foundation
  1256. gives unlimited permission to copy, distribute and modify it.
  1257. Copyright (c) 2003, 2004 Bryan Drewery
  1258. _ACEOF
  1259. exit
  1260. fi
  1261. cat >config.log <<_ACEOF
  1262. This file contains any messages produced by compilers while
  1263. running configure, to aid debugging if configure makes a mistake.
  1264. It was created by $as_me, which was
  1265. generated by GNU Autoconf 2.63. Invocation command line was
  1266. $ $0 $@
  1267. _ACEOF
  1268. exec 5>>config.log
  1269. {
  1270. cat <<_ASUNAME
  1271. ## --------- ##
  1272. ## Platform. ##
  1273. ## --------- ##
  1274. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1275. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1276. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1277. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1278. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1279. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1280. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1281. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1282. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1283. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1284. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1285. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1286. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1287. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1288. _ASUNAME
  1289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1290. for as_dir in $PATH
  1291. do
  1292. IFS=$as_save_IFS
  1293. test -z "$as_dir" && as_dir=.
  1294. $as_echo "PATH: $as_dir"
  1295. done
  1296. IFS=$as_save_IFS
  1297. } >&5
  1298. cat >&5 <<_ACEOF
  1299. ## ----------- ##
  1300. ## Core tests. ##
  1301. ## ----------- ##
  1302. _ACEOF
  1303. # Keep a trace of the command line.
  1304. # Strip out --no-create and --no-recursion so they do not pile up.
  1305. # Strip out --silent because we don't want to record it for future runs.
  1306. # Also quote any args containing shell meta-characters.
  1307. # Make two passes to allow for proper duplicate-argument suppression.
  1308. ac_configure_args=
  1309. ac_configure_args0=
  1310. ac_configure_args1=
  1311. ac_must_keep_next=false
  1312. for ac_pass in 1 2
  1313. do
  1314. for ac_arg
  1315. do
  1316. case $ac_arg in
  1317. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1318. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1319. | -silent | --silent | --silen | --sile | --sil)
  1320. continue ;;
  1321. *\'*)
  1322. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1323. esac
  1324. case $ac_pass in
  1325. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1326. 2)
  1327. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1328. if test $ac_must_keep_next = true; then
  1329. ac_must_keep_next=false # Got value, back to normal.
  1330. else
  1331. case $ac_arg in
  1332. *=* | --config-cache | -C | -disable-* | --disable-* \
  1333. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1334. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1335. | -with-* | --with-* | -without-* | --without-* | --x)
  1336. case "$ac_configure_args0 " in
  1337. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1338. esac
  1339. ;;
  1340. -* ) ac_must_keep_next=true ;;
  1341. esac
  1342. fi
  1343. ac_configure_args="$ac_configure_args '$ac_arg'"
  1344. ;;
  1345. esac
  1346. done
  1347. done
  1348. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1349. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1350. # When interrupted or exit'd, cleanup temporary files, and complete
  1351. # config.log. We remove comments because anyway the quotes in there
  1352. # would cause problems or look ugly.
  1353. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1354. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1355. trap 'exit_status=$?
  1356. # Save into config.log some information that might help in debugging.
  1357. {
  1358. echo
  1359. cat <<\_ASBOX
  1360. ## ---------------- ##
  1361. ## Cache variables. ##
  1362. ## ---------------- ##
  1363. _ASBOX
  1364. echo
  1365. # The following way of writing the cache mishandles newlines in values,
  1366. (
  1367. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1368. eval ac_val=\$$ac_var
  1369. case $ac_val in #(
  1370. *${as_nl}*)
  1371. case $ac_var in #(
  1372. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1373. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1374. esac
  1375. case $ac_var in #(
  1376. _ | IFS | as_nl) ;; #(
  1377. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1378. *) $as_unset $ac_var ;;
  1379. esac ;;
  1380. esac
  1381. done
  1382. (set) 2>&1 |
  1383. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1384. *${as_nl}ac_space=\ *)
  1385. sed -n \
  1386. "s/'\''/'\''\\\\'\'''\''/g;
  1387. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1388. ;; #(
  1389. *)
  1390. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1391. ;;
  1392. esac |
  1393. sort
  1394. )
  1395. echo
  1396. cat <<\_ASBOX
  1397. ## ----------------- ##
  1398. ## Output variables. ##
  1399. ## ----------------- ##
  1400. _ASBOX
  1401. echo
  1402. for ac_var in $ac_subst_vars
  1403. do
  1404. eval ac_val=\$$ac_var
  1405. case $ac_val in
  1406. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1407. esac
  1408. $as_echo "$ac_var='\''$ac_val'\''"
  1409. done | sort
  1410. echo
  1411. if test -n "$ac_subst_files"; then
  1412. cat <<\_ASBOX
  1413. ## ------------------- ##
  1414. ## File substitutions. ##
  1415. ## ------------------- ##
  1416. _ASBOX
  1417. echo
  1418. for ac_var in $ac_subst_files
  1419. do
  1420. eval ac_val=\$$ac_var
  1421. case $ac_val in
  1422. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1423. esac
  1424. $as_echo "$ac_var='\''$ac_val'\''"
  1425. done | sort
  1426. echo
  1427. fi
  1428. if test -s confdefs.h; then
  1429. cat <<\_ASBOX
  1430. ## ----------- ##
  1431. ## confdefs.h. ##
  1432. ## ----------- ##
  1433. _ASBOX
  1434. echo
  1435. cat confdefs.h
  1436. echo
  1437. fi
  1438. test "$ac_signal" != 0 &&
  1439. $as_echo "$as_me: caught signal $ac_signal"
  1440. $as_echo "$as_me: exit $exit_status"
  1441. } >&5
  1442. rm -f core *.core core.conftest.* &&
  1443. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1444. exit $exit_status
  1445. ' 0
  1446. for ac_signal in 1 2 13 15; do
  1447. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1448. done
  1449. ac_signal=0
  1450. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1451. rm -f -r conftest* confdefs.h
  1452. # Predefined preprocessor variables.
  1453. cat >>confdefs.h <<_ACEOF
  1454. #define PACKAGE_NAME "$PACKAGE_NAME"
  1455. _ACEOF
  1456. cat >>confdefs.h <<_ACEOF
  1457. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1458. _ACEOF
  1459. cat >>confdefs.h <<_ACEOF
  1460. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1461. _ACEOF
  1462. cat >>confdefs.h <<_ACEOF
  1463. #define PACKAGE_STRING "$PACKAGE_STRING"
  1464. _ACEOF
  1465. cat >>confdefs.h <<_ACEOF
  1466. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1467. _ACEOF
  1468. # Let the site file select an alternate cache file if it wants to.
  1469. # Prefer an explicitly selected file to automatically selected ones.
  1470. ac_site_file1=NONE
  1471. ac_site_file2=NONE
  1472. if test -n "$CONFIG_SITE"; then
  1473. ac_site_file1=$CONFIG_SITE
  1474. elif test "x$prefix" != xNONE; then
  1475. ac_site_file1=$prefix/share/config.site
  1476. ac_site_file2=$prefix/etc/config.site
  1477. else
  1478. ac_site_file1=$ac_default_prefix/share/config.site
  1479. ac_site_file2=$ac_default_prefix/etc/config.site
  1480. fi
  1481. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1482. do
  1483. test "x$ac_site_file" = xNONE && continue
  1484. if test -r "$ac_site_file"; then
  1485. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1486. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1487. sed 's/^/| /' "$ac_site_file" >&5
  1488. . "$ac_site_file"
  1489. fi
  1490. done
  1491. if test -r "$cache_file"; then
  1492. # Some versions of bash will fail to source /dev/null (special
  1493. # files actually), so we avoid doing that.
  1494. if test -f "$cache_file"; then
  1495. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1496. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1497. case $cache_file in
  1498. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1499. *) . "./$cache_file";;
  1500. esac
  1501. fi
  1502. else
  1503. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1504. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1505. >$cache_file
  1506. fi
  1507. ac_header_list="$ac_header_list sys/time.h"
  1508. ac_header_list="$ac_header_list unistd.h"
  1509. ac_func_list="$ac_func_list alarm"
  1510. # Check that the precious variables saved in the cache have kept the same
  1511. # value.
  1512. ac_cache_corrupted=false
  1513. for ac_var in $ac_precious_vars; do
  1514. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1515. eval ac_new_set=\$ac_env_${ac_var}_set
  1516. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1517. eval ac_new_val=\$ac_env_${ac_var}_value
  1518. case $ac_old_set,$ac_new_set in
  1519. set,)
  1520. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1521. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1522. ac_cache_corrupted=: ;;
  1523. ,set)
  1524. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1525. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1526. ac_cache_corrupted=: ;;
  1527. ,);;
  1528. *)
  1529. if test "x$ac_old_val" != "x$ac_new_val"; then
  1530. # differences in whitespace do not lead to failure.
  1531. ac_old_val_w=`echo x $ac_old_val`
  1532. ac_new_val_w=`echo x $ac_new_val`
  1533. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1534. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1535. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1536. ac_cache_corrupted=:
  1537. else
  1538. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1539. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1540. eval $ac_var=\$ac_old_val
  1541. fi
  1542. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1543. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1544. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1545. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1546. fi;;
  1547. esac
  1548. # Pass precious variables to config.status.
  1549. if test "$ac_new_set" = set; then
  1550. case $ac_new_val in
  1551. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1552. *) ac_arg=$ac_var=$ac_new_val ;;
  1553. esac
  1554. case " $ac_configure_args " in
  1555. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1556. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1557. esac
  1558. fi
  1559. done
  1560. if $ac_cache_corrupted; then
  1561. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1562. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1563. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1564. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1565. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1566. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1567. { (exit 1); exit 1; }; }
  1568. fi
  1569. ac_ext=c
  1570. ac_cpp='$CPP $CPPFLAGS'
  1571. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1572. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1573. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1574. ac_config_headers="$ac_config_headers config.h"
  1575. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1576. egg_ac_parameters=
  1577. ac_prev=
  1578. for ac_arg in $ac_configure_args; do
  1579. if test -n "$ac_prev"; then
  1580. ac_prev=
  1581. continue
  1582. fi
  1583. case $ac_arg in
  1584. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1585. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1586. ac_prev=cache_file ;;
  1587. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1588. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1589. | --c=*)
  1590. ;;
  1591. --config-cache | -C)
  1592. ;;
  1593. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1594. ac_prev=srcdir ;;
  1595. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1596. ;;
  1597. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1598. esac
  1599. done
  1600. # Setup build environment
  1601. #AC_REQUIRE_CPP
  1602. ac_ext=cpp
  1603. ac_cpp='$CXXCPP $CPPFLAGS'
  1604. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1605. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1606. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1607. ac_ext=cpp
  1608. ac_cpp='$CXXCPP $CPPFLAGS'
  1609. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1610. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1611. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1612. if test -z "$CXX"; then
  1613. if test -n "$CCC"; then
  1614. CXX=$CCC
  1615. else
  1616. if test -n "$ac_tool_prefix"; then
  1617. for ac_prog in g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1618. do
  1619. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1620. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1621. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1622. $as_echo_n "checking for $ac_word... " >&6; }
  1623. if test "${ac_cv_prog_CXX+set}" = set; then
  1624. $as_echo_n "(cached) " >&6
  1625. else
  1626. if test -n "$CXX"; then
  1627. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1628. else
  1629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1630. for as_dir in $PATH
  1631. do
  1632. IFS=$as_save_IFS
  1633. test -z "$as_dir" && as_dir=.
  1634. for ac_exec_ext in '' $ac_executable_extensions; do
  1635. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1636. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1637. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1638. break 2
  1639. fi
  1640. done
  1641. done
  1642. IFS=$as_save_IFS
  1643. fi
  1644. fi
  1645. CXX=$ac_cv_prog_CXX
  1646. if test -n "$CXX"; then
  1647. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  1648. $as_echo "$CXX" >&6; }
  1649. else
  1650. { $as_echo "$as_me:$LINENO: result: no" >&5
  1651. $as_echo "no" >&6; }
  1652. fi
  1653. test -n "$CXX" && break
  1654. done
  1655. fi
  1656. if test -z "$CXX"; then
  1657. ac_ct_CXX=$CXX
  1658. for ac_prog in g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1659. do
  1660. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1661. set dummy $ac_prog; ac_word=$2
  1662. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1663. $as_echo_n "checking for $ac_word... " >&6; }
  1664. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1665. $as_echo_n "(cached) " >&6
  1666. else
  1667. if test -n "$ac_ct_CXX"; then
  1668. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1669. else
  1670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1671. for as_dir in $PATH
  1672. do
  1673. IFS=$as_save_IFS
  1674. test -z "$as_dir" && as_dir=.
  1675. for ac_exec_ext in '' $ac_executable_extensions; do
  1676. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1677. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1678. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1679. break 2
  1680. fi
  1681. done
  1682. done
  1683. IFS=$as_save_IFS
  1684. fi
  1685. fi
  1686. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1687. if test -n "$ac_ct_CXX"; then
  1688. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1689. $as_echo "$ac_ct_CXX" >&6; }
  1690. else
  1691. { $as_echo "$as_me:$LINENO: result: no" >&5
  1692. $as_echo "no" >&6; }
  1693. fi
  1694. test -n "$ac_ct_CXX" && break
  1695. done
  1696. if test "x$ac_ct_CXX" = x; then
  1697. CXX="g++"
  1698. else
  1699. case $cross_compiling:$ac_tool_warned in
  1700. yes:)
  1701. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  1702. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1703. ac_tool_warned=yes ;;
  1704. esac
  1705. CXX=$ac_ct_CXX
  1706. fi
  1707. fi
  1708. fi
  1709. fi
  1710. # Provide some information about the compiler.
  1711. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  1712. set X $ac_compile
  1713. ac_compiler=$2
  1714. { (ac_try="$ac_compiler --version >&5"
  1715. case "(($ac_try" in
  1716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1717. *) ac_try_echo=$ac_try;;
  1718. esac
  1719. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1720. $as_echo "$ac_try_echo") >&5
  1721. (eval "$ac_compiler --version >&5") 2>&5
  1722. ac_status=$?
  1723. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1724. (exit $ac_status); }
  1725. { (ac_try="$ac_compiler -v >&5"
  1726. case "(($ac_try" in
  1727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1728. *) ac_try_echo=$ac_try;;
  1729. esac
  1730. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1731. $as_echo "$ac_try_echo") >&5
  1732. (eval "$ac_compiler -v >&5") 2>&5
  1733. ac_status=$?
  1734. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1735. (exit $ac_status); }
  1736. { (ac_try="$ac_compiler -V >&5"
  1737. case "(($ac_try" in
  1738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1739. *) ac_try_echo=$ac_try;;
  1740. esac
  1741. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1742. $as_echo "$ac_try_echo") >&5
  1743. (eval "$ac_compiler -V >&5") 2>&5
  1744. ac_status=$?
  1745. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1746. (exit $ac_status); }
  1747. cat >conftest.$ac_ext <<_ACEOF
  1748. /* confdefs.h. */
  1749. _ACEOF
  1750. cat confdefs.h >>conftest.$ac_ext
  1751. cat >>conftest.$ac_ext <<_ACEOF
  1752. /* end confdefs.h. */
  1753. int
  1754. main ()
  1755. {
  1756. ;
  1757. return 0;
  1758. }
  1759. _ACEOF
  1760. ac_clean_files_save=$ac_clean_files
  1761. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  1762. # Try to create an executable without -o first, disregard a.out.
  1763. # It will help us diagnose broken compilers, and finding out an intuition
  1764. # of exeext.
  1765. { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1766. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  1767. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1768. # The possible output files:
  1769. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  1770. ac_rmfiles=
  1771. for ac_file in $ac_files
  1772. do
  1773. case $ac_file in
  1774. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1775. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1776. esac
  1777. done
  1778. rm -f $ac_rmfiles
  1779. if { (ac_try="$ac_link_default"
  1780. case "(($ac_try" in
  1781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1782. *) ac_try_echo=$ac_try;;
  1783. esac
  1784. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1785. $as_echo "$ac_try_echo") >&5
  1786. (eval "$ac_link_default") 2>&5
  1787. ac_status=$?
  1788. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1789. (exit $ac_status); }; then
  1790. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1791. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1792. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1793. # so that the user can short-circuit this test for compilers unknown to
  1794. # Autoconf.
  1795. for ac_file in $ac_files ''
  1796. do
  1797. test -f "$ac_file" || continue
  1798. case $ac_file in
  1799. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  1800. ;;
  1801. [ab].out )
  1802. # We found the default executable, but exeext='' is most
  1803. # certainly right.
  1804. break;;
  1805. *.* )
  1806. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1807. then :; else
  1808. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1809. fi
  1810. # We set ac_cv_exeext here because the later test for it is not
  1811. # safe: cross compilers may not add the suffix if given an `-o'
  1812. # argument, so we may need to know it at that point already.
  1813. # Even if this section looks crufty: it has the advantage of
  1814. # actually working.
  1815. break;;
  1816. * )
  1817. break;;
  1818. esac
  1819. done
  1820. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1821. else
  1822. ac_file=''
  1823. fi
  1824. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  1825. $as_echo "$ac_file" >&6; }
  1826. if test -z "$ac_file"; then
  1827. $as_echo "$as_me: failed program was:" >&5
  1828. sed 's/^/| /' conftest.$ac_ext >&5
  1829. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1830. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1831. { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1832. See \`config.log' for more details." >&5
  1833. $as_echo "$as_me: error: C++ compiler cannot create executables
  1834. See \`config.log' for more details." >&2;}
  1835. { (exit 77); exit 77; }; }; }
  1836. fi
  1837. ac_exeext=$ac_cv_exeext
  1838. # Check that the compiler produces executables we can run. If not, either
  1839. # the compiler is broken, or we cross compile.
  1840. { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1841. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  1842. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1843. # If not cross compiling, check that we can run a simple program.
  1844. if test "$cross_compiling" != yes; then
  1845. if { ac_try='./$ac_file'
  1846. { (case "(($ac_try" in
  1847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1848. *) ac_try_echo=$ac_try;;
  1849. esac
  1850. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1851. $as_echo "$ac_try_echo") >&5
  1852. (eval "$ac_try") 2>&5
  1853. ac_status=$?
  1854. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1855. (exit $ac_status); }; }; then
  1856. cross_compiling=no
  1857. else
  1858. if test "$cross_compiling" = maybe; then
  1859. cross_compiling=yes
  1860. else
  1861. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1862. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1863. { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1864. If you meant to cross compile, use \`--host'.
  1865. See \`config.log' for more details." >&5
  1866. $as_echo "$as_me: error: cannot run C++ compiled programs.
  1867. If you meant to cross compile, use \`--host'.
  1868. See \`config.log' for more details." >&2;}
  1869. { (exit 1); exit 1; }; }; }
  1870. fi
  1871. fi
  1872. fi
  1873. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1874. $as_echo "yes" >&6; }
  1875. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  1876. ac_clean_files=$ac_clean_files_save
  1877. # Check that the compiler produces executables we can run. If not, either
  1878. # the compiler is broken, or we cross compile.
  1879. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1880. $as_echo_n "checking whether we are cross compiling... " >&6; }
  1881. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1882. $as_echo "$cross_compiling" >&6; }
  1883. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1884. $as_echo_n "checking for suffix of executables... " >&6; }
  1885. if { (ac_try="$ac_link"
  1886. case "(($ac_try" in
  1887. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1888. *) ac_try_echo=$ac_try;;
  1889. esac
  1890. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1891. $as_echo "$ac_try_echo") >&5
  1892. (eval "$ac_link") 2>&5
  1893. ac_status=$?
  1894. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1895. (exit $ac_status); }; then
  1896. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1897. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1898. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1899. # `rm'.
  1900. for ac_file in conftest.exe conftest conftest.*; do
  1901. test -f "$ac_file" || continue
  1902. case $ac_file in
  1903. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1904. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1905. break;;
  1906. * ) break;;
  1907. esac
  1908. done
  1909. else
  1910. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1911. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1912. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1913. See \`config.log' for more details." >&5
  1914. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1915. See \`config.log' for more details." >&2;}
  1916. { (exit 1); exit 1; }; }; }
  1917. fi
  1918. rm -f conftest$ac_cv_exeext
  1919. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1920. $as_echo "$ac_cv_exeext" >&6; }
  1921. rm -f conftest.$ac_ext
  1922. EXEEXT=$ac_cv_exeext
  1923. ac_exeext=$EXEEXT
  1924. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1925. $as_echo_n "checking for suffix of object files... " >&6; }
  1926. if test "${ac_cv_objext+set}" = set; then
  1927. $as_echo_n "(cached) " >&6
  1928. else
  1929. cat >conftest.$ac_ext <<_ACEOF
  1930. /* confdefs.h. */
  1931. _ACEOF
  1932. cat confdefs.h >>conftest.$ac_ext
  1933. cat >>conftest.$ac_ext <<_ACEOF
  1934. /* end confdefs.h. */
  1935. int
  1936. main ()
  1937. {
  1938. ;
  1939. return 0;
  1940. }
  1941. _ACEOF
  1942. rm -f conftest.o conftest.obj
  1943. if { (ac_try="$ac_compile"
  1944. case "(($ac_try" in
  1945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1946. *) ac_try_echo=$ac_try;;
  1947. esac
  1948. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1949. $as_echo "$ac_try_echo") >&5
  1950. (eval "$ac_compile") 2>&5
  1951. ac_status=$?
  1952. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1953. (exit $ac_status); }; then
  1954. for ac_file in conftest.o conftest.obj conftest.*; do
  1955. test -f "$ac_file" || continue;
  1956. case $ac_file in
  1957. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  1958. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1959. break;;
  1960. esac
  1961. done
  1962. else
  1963. $as_echo "$as_me: failed program was:" >&5
  1964. sed 's/^/| /' conftest.$ac_ext >&5
  1965. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1966. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1967. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1968. See \`config.log' for more details." >&5
  1969. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1970. See \`config.log' for more details." >&2;}
  1971. { (exit 1); exit 1; }; }; }
  1972. fi
  1973. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1974. fi
  1975. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1976. $as_echo "$ac_cv_objext" >&6; }
  1977. OBJEXT=$ac_cv_objext
  1978. ac_objext=$OBJEXT
  1979. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1980. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  1981. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1982. $as_echo_n "(cached) " >&6
  1983. else
  1984. cat >conftest.$ac_ext <<_ACEOF
  1985. /* confdefs.h. */
  1986. _ACEOF
  1987. cat confdefs.h >>conftest.$ac_ext
  1988. cat >>conftest.$ac_ext <<_ACEOF
  1989. /* end confdefs.h. */
  1990. int
  1991. main ()
  1992. {
  1993. #ifndef __GNUC__
  1994. choke me
  1995. #endif
  1996. ;
  1997. return 0;
  1998. }
  1999. _ACEOF
  2000. rm -f conftest.$ac_objext
  2001. if { (ac_try="$ac_compile"
  2002. case "(($ac_try" in
  2003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2004. *) ac_try_echo=$ac_try;;
  2005. esac
  2006. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2007. $as_echo "$ac_try_echo") >&5
  2008. (eval "$ac_compile") 2>conftest.er1
  2009. ac_status=$?
  2010. grep -v '^ *+' conftest.er1 >conftest.err
  2011. rm -f conftest.er1
  2012. cat conftest.err >&5
  2013. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2014. (exit $ac_status); } && {
  2015. test -z "$ac_cxx_werror_flag" ||
  2016. test ! -s conftest.err
  2017. } && test -s conftest.$ac_objext; then
  2018. ac_compiler_gnu=yes
  2019. else
  2020. $as_echo "$as_me: failed program was:" >&5
  2021. sed 's/^/| /' conftest.$ac_ext >&5
  2022. ac_compiler_gnu=no
  2023. fi
  2024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2025. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2026. fi
  2027. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2028. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2029. if test $ac_compiler_gnu = yes; then
  2030. GXX=yes
  2031. else
  2032. GXX=
  2033. fi
  2034. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2035. ac_save_CXXFLAGS=$CXXFLAGS
  2036. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2037. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2038. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2039. $as_echo_n "(cached) " >&6
  2040. else
  2041. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2042. ac_cxx_werror_flag=yes
  2043. ac_cv_prog_cxx_g=no
  2044. CXXFLAGS="-g"
  2045. cat >conftest.$ac_ext <<_ACEOF
  2046. /* confdefs.h. */
  2047. _ACEOF
  2048. cat confdefs.h >>conftest.$ac_ext
  2049. cat >>conftest.$ac_ext <<_ACEOF
  2050. /* end confdefs.h. */
  2051. int
  2052. main ()
  2053. {
  2054. ;
  2055. return 0;
  2056. }
  2057. _ACEOF
  2058. rm -f conftest.$ac_objext
  2059. if { (ac_try="$ac_compile"
  2060. case "(($ac_try" in
  2061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2062. *) ac_try_echo=$ac_try;;
  2063. esac
  2064. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2065. $as_echo "$ac_try_echo") >&5
  2066. (eval "$ac_compile") 2>conftest.er1
  2067. ac_status=$?
  2068. grep -v '^ *+' conftest.er1 >conftest.err
  2069. rm -f conftest.er1
  2070. cat conftest.err >&5
  2071. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2072. (exit $ac_status); } && {
  2073. test -z "$ac_cxx_werror_flag" ||
  2074. test ! -s conftest.err
  2075. } && test -s conftest.$ac_objext; then
  2076. ac_cv_prog_cxx_g=yes
  2077. else
  2078. $as_echo "$as_me: failed program was:" >&5
  2079. sed 's/^/| /' conftest.$ac_ext >&5
  2080. CXXFLAGS=""
  2081. cat >conftest.$ac_ext <<_ACEOF
  2082. /* confdefs.h. */
  2083. _ACEOF
  2084. cat confdefs.h >>conftest.$ac_ext
  2085. cat >>conftest.$ac_ext <<_ACEOF
  2086. /* end confdefs.h. */
  2087. int
  2088. main ()
  2089. {
  2090. ;
  2091. return 0;
  2092. }
  2093. _ACEOF
  2094. rm -f conftest.$ac_objext
  2095. if { (ac_try="$ac_compile"
  2096. case "(($ac_try" in
  2097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2098. *) ac_try_echo=$ac_try;;
  2099. esac
  2100. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2101. $as_echo "$ac_try_echo") >&5
  2102. (eval "$ac_compile") 2>conftest.er1
  2103. ac_status=$?
  2104. grep -v '^ *+' conftest.er1 >conftest.err
  2105. rm -f conftest.er1
  2106. cat conftest.err >&5
  2107. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2108. (exit $ac_status); } && {
  2109. test -z "$ac_cxx_werror_flag" ||
  2110. test ! -s conftest.err
  2111. } && test -s conftest.$ac_objext; then
  2112. :
  2113. else
  2114. $as_echo "$as_me: failed program was:" >&5
  2115. sed 's/^/| /' conftest.$ac_ext >&5
  2116. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2117. CXXFLAGS="-g"
  2118. cat >conftest.$ac_ext <<_ACEOF
  2119. /* confdefs.h. */
  2120. _ACEOF
  2121. cat confdefs.h >>conftest.$ac_ext
  2122. cat >>conftest.$ac_ext <<_ACEOF
  2123. /* end confdefs.h. */
  2124. int
  2125. main ()
  2126. {
  2127. ;
  2128. return 0;
  2129. }
  2130. _ACEOF
  2131. rm -f conftest.$ac_objext
  2132. if { (ac_try="$ac_compile"
  2133. case "(($ac_try" in
  2134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2135. *) ac_try_echo=$ac_try;;
  2136. esac
  2137. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2138. $as_echo "$ac_try_echo") >&5
  2139. (eval "$ac_compile") 2>conftest.er1
  2140. ac_status=$?
  2141. grep -v '^ *+' conftest.er1 >conftest.err
  2142. rm -f conftest.er1
  2143. cat conftest.err >&5
  2144. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2145. (exit $ac_status); } && {
  2146. test -z "$ac_cxx_werror_flag" ||
  2147. test ! -s conftest.err
  2148. } && test -s conftest.$ac_objext; then
  2149. ac_cv_prog_cxx_g=yes
  2150. else
  2151. $as_echo "$as_me: failed program was:" >&5
  2152. sed 's/^/| /' conftest.$ac_ext >&5
  2153. fi
  2154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2155. fi
  2156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2157. fi
  2158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2159. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2160. fi
  2161. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2162. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2163. if test "$ac_test_CXXFLAGS" = set; then
  2164. CXXFLAGS=$ac_save_CXXFLAGS
  2165. elif test $ac_cv_prog_cxx_g = yes; then
  2166. if test "$GXX" = yes; then
  2167. CXXFLAGS="-g -O2"
  2168. else
  2169. CXXFLAGS="-g"
  2170. fi
  2171. else
  2172. if test "$GXX" = yes; then
  2173. CXXFLAGS="-O2"
  2174. else
  2175. CXXFLAGS=
  2176. fi
  2177. fi
  2178. ac_ext=cpp
  2179. ac_cpp='$CXXCPP $CPPFLAGS'
  2180. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2181. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2182. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2183. if test "${cross_compiling-x}" = "x"
  2184. then
  2185. cat << 'EOF' >&2
  2186. configure: error:
  2187. This system does not appear to have a working C compiler.
  2188. A working C compiler is required to compile Eggdrop.
  2189. EOF
  2190. exit 1
  2191. fi
  2192. if test -n "$GXX"; then
  2193. CXXFLAGS="$CXXFLAGS -O3"
  2194. fi
  2195. # Crazy machines
  2196. ac_ext=cpp
  2197. ac_cpp='$CXXCPP $CPPFLAGS'
  2198. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2199. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2200. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2201. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  2202. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2203. if test -z "$CXXCPP"; then
  2204. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  2205. $as_echo_n "(cached) " >&6
  2206. else
  2207. # Double quotes because CXXCPP needs to be expanded
  2208. for CXXCPP in "$CXX -E" "/lib/cpp"
  2209. do
  2210. ac_preproc_ok=false
  2211. for ac_cxx_preproc_warn_flag in '' yes
  2212. do
  2213. # Use a header file that comes with gcc, so configuring glibc
  2214. # with a fresh cross-compiler works.
  2215. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2216. # <limits.h> exists even on freestanding compilers.
  2217. # On the NeXT, cc -E runs the code through the compiler's parser,
  2218. # not just through cpp. "Syntax error" is here to catch this case.
  2219. cat >conftest.$ac_ext <<_ACEOF
  2220. /* confdefs.h. */
  2221. _ACEOF
  2222. cat confdefs.h >>conftest.$ac_ext
  2223. cat >>conftest.$ac_ext <<_ACEOF
  2224. /* end confdefs.h. */
  2225. #ifdef __STDC__
  2226. # include <limits.h>
  2227. #else
  2228. # include <assert.h>
  2229. #endif
  2230. Syntax error
  2231. _ACEOF
  2232. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2233. case "(($ac_try" in
  2234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2235. *) ac_try_echo=$ac_try;;
  2236. esac
  2237. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2238. $as_echo "$ac_try_echo") >&5
  2239. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2240. ac_status=$?
  2241. grep -v '^ *+' conftest.er1 >conftest.err
  2242. rm -f conftest.er1
  2243. cat conftest.err >&5
  2244. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2245. (exit $ac_status); } >/dev/null && {
  2246. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2247. test ! -s conftest.err
  2248. }; then
  2249. :
  2250. else
  2251. $as_echo "$as_me: failed program was:" >&5
  2252. sed 's/^/| /' conftest.$ac_ext >&5
  2253. # Broken: fails on valid input.
  2254. continue
  2255. fi
  2256. rm -f conftest.err conftest.$ac_ext
  2257. # OK, works on sane cases. Now check whether nonexistent headers
  2258. # can be detected and how.
  2259. cat >conftest.$ac_ext <<_ACEOF
  2260. /* confdefs.h. */
  2261. _ACEOF
  2262. cat confdefs.h >>conftest.$ac_ext
  2263. cat >>conftest.$ac_ext <<_ACEOF
  2264. /* end confdefs.h. */
  2265. #include <ac_nonexistent.h>
  2266. _ACEOF
  2267. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2268. case "(($ac_try" in
  2269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2270. *) ac_try_echo=$ac_try;;
  2271. esac
  2272. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2273. $as_echo "$ac_try_echo") >&5
  2274. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2275. ac_status=$?
  2276. grep -v '^ *+' conftest.er1 >conftest.err
  2277. rm -f conftest.er1
  2278. cat conftest.err >&5
  2279. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2280. (exit $ac_status); } >/dev/null && {
  2281. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2282. test ! -s conftest.err
  2283. }; then
  2284. # Broken: success on invalid input.
  2285. continue
  2286. else
  2287. $as_echo "$as_me: failed program was:" >&5
  2288. sed 's/^/| /' conftest.$ac_ext >&5
  2289. # Passes both tests.
  2290. ac_preproc_ok=:
  2291. break
  2292. fi
  2293. rm -f conftest.err conftest.$ac_ext
  2294. done
  2295. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2296. rm -f conftest.err conftest.$ac_ext
  2297. if $ac_preproc_ok; then
  2298. break
  2299. fi
  2300. done
  2301. ac_cv_prog_CXXCPP=$CXXCPP
  2302. fi
  2303. CXXCPP=$ac_cv_prog_CXXCPP
  2304. else
  2305. ac_cv_prog_CXXCPP=$CXXCPP
  2306. fi
  2307. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  2308. $as_echo "$CXXCPP" >&6; }
  2309. ac_preproc_ok=false
  2310. for ac_cxx_preproc_warn_flag in '' yes
  2311. do
  2312. # Use a header file that comes with gcc, so configuring glibc
  2313. # with a fresh cross-compiler works.
  2314. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2315. # <limits.h> exists even on freestanding compilers.
  2316. # On the NeXT, cc -E runs the code through the compiler's parser,
  2317. # not just through cpp. "Syntax error" is here to catch this case.
  2318. cat >conftest.$ac_ext <<_ACEOF
  2319. /* confdefs.h. */
  2320. _ACEOF
  2321. cat confdefs.h >>conftest.$ac_ext
  2322. cat >>conftest.$ac_ext <<_ACEOF
  2323. /* end confdefs.h. */
  2324. #ifdef __STDC__
  2325. # include <limits.h>
  2326. #else
  2327. # include <assert.h>
  2328. #endif
  2329. Syntax error
  2330. _ACEOF
  2331. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2332. case "(($ac_try" in
  2333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2334. *) ac_try_echo=$ac_try;;
  2335. esac
  2336. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2337. $as_echo "$ac_try_echo") >&5
  2338. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2339. ac_status=$?
  2340. grep -v '^ *+' conftest.er1 >conftest.err
  2341. rm -f conftest.er1
  2342. cat conftest.err >&5
  2343. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2344. (exit $ac_status); } >/dev/null && {
  2345. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2346. test ! -s conftest.err
  2347. }; then
  2348. :
  2349. else
  2350. $as_echo "$as_me: failed program was:" >&5
  2351. sed 's/^/| /' conftest.$ac_ext >&5
  2352. # Broken: fails on valid input.
  2353. continue
  2354. fi
  2355. rm -f conftest.err conftest.$ac_ext
  2356. # OK, works on sane cases. Now check whether nonexistent headers
  2357. # can be detected and how.
  2358. cat >conftest.$ac_ext <<_ACEOF
  2359. /* confdefs.h. */
  2360. _ACEOF
  2361. cat confdefs.h >>conftest.$ac_ext
  2362. cat >>conftest.$ac_ext <<_ACEOF
  2363. /* end confdefs.h. */
  2364. #include <ac_nonexistent.h>
  2365. _ACEOF
  2366. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2367. case "(($ac_try" in
  2368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2369. *) ac_try_echo=$ac_try;;
  2370. esac
  2371. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2372. $as_echo "$ac_try_echo") >&5
  2373. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2374. ac_status=$?
  2375. grep -v '^ *+' conftest.er1 >conftest.err
  2376. rm -f conftest.er1
  2377. cat conftest.err >&5
  2378. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2379. (exit $ac_status); } >/dev/null && {
  2380. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2381. test ! -s conftest.err
  2382. }; then
  2383. # Broken: success on invalid input.
  2384. continue
  2385. else
  2386. $as_echo "$as_me: failed program was:" >&5
  2387. sed 's/^/| /' conftest.$ac_ext >&5
  2388. # Passes both tests.
  2389. ac_preproc_ok=:
  2390. break
  2391. fi
  2392. rm -f conftest.err conftest.$ac_ext
  2393. done
  2394. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2395. rm -f conftest.err conftest.$ac_ext
  2396. if $ac_preproc_ok; then
  2397. :
  2398. else
  2399. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2400. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2401. { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2402. See \`config.log' for more details." >&5
  2403. $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2404. See \`config.log' for more details." >&2;}
  2405. { (exit 1); exit 1; }; }; }
  2406. fi
  2407. ac_ext=cpp
  2408. ac_cpp='$CXXCPP $CPPFLAGS'
  2409. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2410. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2411. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2412. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  2413. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2414. if test "${ac_cv_path_GREP+set}" = set; then
  2415. $as_echo_n "(cached) " >&6
  2416. else
  2417. if test -z "$GREP"; then
  2418. ac_path_GREP_found=false
  2419. # Loop through the user's path and test for each of PROGNAME-LIST
  2420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2421. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2422. do
  2423. IFS=$as_save_IFS
  2424. test -z "$as_dir" && as_dir=.
  2425. for ac_prog in grep ggrep; do
  2426. for ac_exec_ext in '' $ac_executable_extensions; do
  2427. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2428. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2429. # Check for GNU ac_path_GREP and select it if it is found.
  2430. # Check for GNU $ac_path_GREP
  2431. case `"$ac_path_GREP" --version 2>&1` in
  2432. *GNU*)
  2433. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2434. *)
  2435. ac_count=0
  2436. $as_echo_n 0123456789 >"conftest.in"
  2437. while :
  2438. do
  2439. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2440. mv "conftest.tmp" "conftest.in"
  2441. cp "conftest.in" "conftest.nl"
  2442. $as_echo 'GREP' >> "conftest.nl"
  2443. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2444. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2445. ac_count=`expr $ac_count + 1`
  2446. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2447. # Best one so far, save it but keep looking for a better one
  2448. ac_cv_path_GREP="$ac_path_GREP"
  2449. ac_path_GREP_max=$ac_count
  2450. fi
  2451. # 10*(2^10) chars as input seems more than enough
  2452. test $ac_count -gt 10 && break
  2453. done
  2454. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2455. esac
  2456. $ac_path_GREP_found && break 3
  2457. done
  2458. done
  2459. done
  2460. IFS=$as_save_IFS
  2461. if test -z "$ac_cv_path_GREP"; then
  2462. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2463. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2464. { (exit 1); exit 1; }; }
  2465. fi
  2466. else
  2467. ac_cv_path_GREP=$GREP
  2468. fi
  2469. fi
  2470. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  2471. $as_echo "$ac_cv_path_GREP" >&6; }
  2472. GREP="$ac_cv_path_GREP"
  2473. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  2474. $as_echo_n "checking for egrep... " >&6; }
  2475. if test "${ac_cv_path_EGREP+set}" = set; then
  2476. $as_echo_n "(cached) " >&6
  2477. else
  2478. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2479. then ac_cv_path_EGREP="$GREP -E"
  2480. else
  2481. if test -z "$EGREP"; then
  2482. ac_path_EGREP_found=false
  2483. # Loop through the user's path and test for each of PROGNAME-LIST
  2484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2485. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2486. do
  2487. IFS=$as_save_IFS
  2488. test -z "$as_dir" && as_dir=.
  2489. for ac_prog in egrep; do
  2490. for ac_exec_ext in '' $ac_executable_extensions; do
  2491. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2492. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2493. # Check for GNU ac_path_EGREP and select it if it is found.
  2494. # Check for GNU $ac_path_EGREP
  2495. case `"$ac_path_EGREP" --version 2>&1` in
  2496. *GNU*)
  2497. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2498. *)
  2499. ac_count=0
  2500. $as_echo_n 0123456789 >"conftest.in"
  2501. while :
  2502. do
  2503. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2504. mv "conftest.tmp" "conftest.in"
  2505. cp "conftest.in" "conftest.nl"
  2506. $as_echo 'EGREP' >> "conftest.nl"
  2507. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2508. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2509. ac_count=`expr $ac_count + 1`
  2510. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2511. # Best one so far, save it but keep looking for a better one
  2512. ac_cv_path_EGREP="$ac_path_EGREP"
  2513. ac_path_EGREP_max=$ac_count
  2514. fi
  2515. # 10*(2^10) chars as input seems more than enough
  2516. test $ac_count -gt 10 && break
  2517. done
  2518. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2519. esac
  2520. $ac_path_EGREP_found && break 3
  2521. done
  2522. done
  2523. done
  2524. IFS=$as_save_IFS
  2525. if test -z "$ac_cv_path_EGREP"; then
  2526. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2527. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2528. { (exit 1); exit 1; }; }
  2529. fi
  2530. else
  2531. ac_cv_path_EGREP=$EGREP
  2532. fi
  2533. fi
  2534. fi
  2535. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  2536. $as_echo "$ac_cv_path_EGREP" >&6; }
  2537. EGREP="$ac_cv_path_EGREP"
  2538. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2539. $as_echo_n "checking for ANSI C header files... " >&6; }
  2540. if test "${ac_cv_header_stdc+set}" = set; then
  2541. $as_echo_n "(cached) " >&6
  2542. else
  2543. cat >conftest.$ac_ext <<_ACEOF
  2544. /* confdefs.h. */
  2545. _ACEOF
  2546. cat confdefs.h >>conftest.$ac_ext
  2547. cat >>conftest.$ac_ext <<_ACEOF
  2548. /* end confdefs.h. */
  2549. #include <stdlib.h>
  2550. #include <stdarg.h>
  2551. #include <string.h>
  2552. #include <float.h>
  2553. int
  2554. main ()
  2555. {
  2556. ;
  2557. return 0;
  2558. }
  2559. _ACEOF
  2560. rm -f conftest.$ac_objext
  2561. if { (ac_try="$ac_compile"
  2562. case "(($ac_try" in
  2563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2564. *) ac_try_echo=$ac_try;;
  2565. esac
  2566. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2567. $as_echo "$ac_try_echo") >&5
  2568. (eval "$ac_compile") 2>conftest.er1
  2569. ac_status=$?
  2570. grep -v '^ *+' conftest.er1 >conftest.err
  2571. rm -f conftest.er1
  2572. cat conftest.err >&5
  2573. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2574. (exit $ac_status); } && {
  2575. test -z "$ac_cxx_werror_flag" ||
  2576. test ! -s conftest.err
  2577. } && test -s conftest.$ac_objext; then
  2578. ac_cv_header_stdc=yes
  2579. else
  2580. $as_echo "$as_me: failed program was:" >&5
  2581. sed 's/^/| /' conftest.$ac_ext >&5
  2582. ac_cv_header_stdc=no
  2583. fi
  2584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2585. if test $ac_cv_header_stdc = yes; then
  2586. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2587. cat >conftest.$ac_ext <<_ACEOF
  2588. /* confdefs.h. */
  2589. _ACEOF
  2590. cat confdefs.h >>conftest.$ac_ext
  2591. cat >>conftest.$ac_ext <<_ACEOF
  2592. /* end confdefs.h. */
  2593. #include <string.h>
  2594. _ACEOF
  2595. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2596. $EGREP "memchr" >/dev/null 2>&1; then
  2597. :
  2598. else
  2599. ac_cv_header_stdc=no
  2600. fi
  2601. rm -f conftest*
  2602. fi
  2603. if test $ac_cv_header_stdc = yes; then
  2604. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2605. cat >conftest.$ac_ext <<_ACEOF
  2606. /* confdefs.h. */
  2607. _ACEOF
  2608. cat confdefs.h >>conftest.$ac_ext
  2609. cat >>conftest.$ac_ext <<_ACEOF
  2610. /* end confdefs.h. */
  2611. #include <stdlib.h>
  2612. _ACEOF
  2613. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2614. $EGREP "free" >/dev/null 2>&1; then
  2615. :
  2616. else
  2617. ac_cv_header_stdc=no
  2618. fi
  2619. rm -f conftest*
  2620. fi
  2621. if test $ac_cv_header_stdc = yes; then
  2622. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2623. if test "$cross_compiling" = yes; then
  2624. :
  2625. else
  2626. cat >conftest.$ac_ext <<_ACEOF
  2627. /* confdefs.h. */
  2628. _ACEOF
  2629. cat confdefs.h >>conftest.$ac_ext
  2630. cat >>conftest.$ac_ext <<_ACEOF
  2631. /* end confdefs.h. */
  2632. #include <ctype.h>
  2633. #include <stdlib.h>
  2634. #if ((' ' & 0x0FF) == 0x020)
  2635. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2636. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2637. #else
  2638. # define ISLOWER(c) \
  2639. (('a' <= (c) && (c) <= 'i') \
  2640. || ('j' <= (c) && (c) <= 'r') \
  2641. || ('s' <= (c) && (c) <= 'z'))
  2642. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2643. #endif
  2644. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2645. int
  2646. main ()
  2647. {
  2648. int i;
  2649. for (i = 0; i < 256; i++)
  2650. if (XOR (islower (i), ISLOWER (i))
  2651. || toupper (i) != TOUPPER (i))
  2652. return 2;
  2653. return 0;
  2654. }
  2655. _ACEOF
  2656. rm -f conftest$ac_exeext
  2657. if { (ac_try="$ac_link"
  2658. case "(($ac_try" in
  2659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2660. *) ac_try_echo=$ac_try;;
  2661. esac
  2662. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2663. $as_echo "$ac_try_echo") >&5
  2664. (eval "$ac_link") 2>&5
  2665. ac_status=$?
  2666. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2667. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2668. { (case "(($ac_try" in
  2669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2670. *) ac_try_echo=$ac_try;;
  2671. esac
  2672. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2673. $as_echo "$ac_try_echo") >&5
  2674. (eval "$ac_try") 2>&5
  2675. ac_status=$?
  2676. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2677. (exit $ac_status); }; }; then
  2678. :
  2679. else
  2680. $as_echo "$as_me: program exited with status $ac_status" >&5
  2681. $as_echo "$as_me: failed program was:" >&5
  2682. sed 's/^/| /' conftest.$ac_ext >&5
  2683. ( exit $ac_status )
  2684. ac_cv_header_stdc=no
  2685. fi
  2686. rm -rf conftest.dSYM
  2687. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2688. fi
  2689. fi
  2690. fi
  2691. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2692. $as_echo "$ac_cv_header_stdc" >&6; }
  2693. if test $ac_cv_header_stdc = yes; then
  2694. cat >>confdefs.h <<\_ACEOF
  2695. #define STDC_HEADERS 1
  2696. _ACEOF
  2697. fi
  2698. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2699. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2700. inttypes.h stdint.h unistd.h
  2701. do
  2702. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2703. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  2704. $as_echo_n "checking for $ac_header... " >&6; }
  2705. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2706. $as_echo_n "(cached) " >&6
  2707. else
  2708. cat >conftest.$ac_ext <<_ACEOF
  2709. /* confdefs.h. */
  2710. _ACEOF
  2711. cat confdefs.h >>conftest.$ac_ext
  2712. cat >>conftest.$ac_ext <<_ACEOF
  2713. /* end confdefs.h. */
  2714. $ac_includes_default
  2715. #include <$ac_header>
  2716. _ACEOF
  2717. rm -f conftest.$ac_objext
  2718. if { (ac_try="$ac_compile"
  2719. case "(($ac_try" in
  2720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2721. *) ac_try_echo=$ac_try;;
  2722. esac
  2723. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2724. $as_echo "$ac_try_echo") >&5
  2725. (eval "$ac_compile") 2>conftest.er1
  2726. ac_status=$?
  2727. grep -v '^ *+' conftest.er1 >conftest.err
  2728. rm -f conftest.er1
  2729. cat conftest.err >&5
  2730. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2731. (exit $ac_status); } && {
  2732. test -z "$ac_cxx_werror_flag" ||
  2733. test ! -s conftest.err
  2734. } && test -s conftest.$ac_objext; then
  2735. eval "$as_ac_Header=yes"
  2736. else
  2737. $as_echo "$as_me: failed program was:" >&5
  2738. sed 's/^/| /' conftest.$ac_ext >&5
  2739. eval "$as_ac_Header=no"
  2740. fi
  2741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2742. fi
  2743. ac_res=`eval 'as_val=${'$as_ac_Header'}
  2744. $as_echo "$as_val"'`
  2745. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  2746. $as_echo "$ac_res" >&6; }
  2747. as_val=`eval 'as_val=${'$as_ac_Header'}
  2748. $as_echo "$as_val"'`
  2749. if test "x$as_val" = x""yes; then
  2750. cat >>confdefs.h <<_ACEOF
  2751. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2752. _ACEOF
  2753. fi
  2754. done
  2755. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2756. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2757. $as_echo_n "checking for minix/config.h... " >&6; }
  2758. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2759. $as_echo_n "(cached) " >&6
  2760. fi
  2761. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2762. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  2763. else
  2764. # Is the header compilable?
  2765. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2766. $as_echo_n "checking minix/config.h usability... " >&6; }
  2767. cat >conftest.$ac_ext <<_ACEOF
  2768. /* confdefs.h. */
  2769. _ACEOF
  2770. cat confdefs.h >>conftest.$ac_ext
  2771. cat >>conftest.$ac_ext <<_ACEOF
  2772. /* end confdefs.h. */
  2773. $ac_includes_default
  2774. #include <minix/config.h>
  2775. _ACEOF
  2776. rm -f conftest.$ac_objext
  2777. if { (ac_try="$ac_compile"
  2778. case "(($ac_try" in
  2779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2780. *) ac_try_echo=$ac_try;;
  2781. esac
  2782. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2783. $as_echo "$ac_try_echo") >&5
  2784. (eval "$ac_compile") 2>conftest.er1
  2785. ac_status=$?
  2786. grep -v '^ *+' conftest.er1 >conftest.err
  2787. rm -f conftest.er1
  2788. cat conftest.err >&5
  2789. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2790. (exit $ac_status); } && {
  2791. test -z "$ac_cxx_werror_flag" ||
  2792. test ! -s conftest.err
  2793. } && test -s conftest.$ac_objext; then
  2794. ac_header_compiler=yes
  2795. else
  2796. $as_echo "$as_me: failed program was:" >&5
  2797. sed 's/^/| /' conftest.$ac_ext >&5
  2798. ac_header_compiler=no
  2799. fi
  2800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2801. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2802. $as_echo "$ac_header_compiler" >&6; }
  2803. # Is the header present?
  2804. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2805. $as_echo_n "checking minix/config.h presence... " >&6; }
  2806. cat >conftest.$ac_ext <<_ACEOF
  2807. /* confdefs.h. */
  2808. _ACEOF
  2809. cat confdefs.h >>conftest.$ac_ext
  2810. cat >>conftest.$ac_ext <<_ACEOF
  2811. /* end confdefs.h. */
  2812. #include <minix/config.h>
  2813. _ACEOF
  2814. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2815. case "(($ac_try" in
  2816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2817. *) ac_try_echo=$ac_try;;
  2818. esac
  2819. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2820. $as_echo "$ac_try_echo") >&5
  2821. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2822. ac_status=$?
  2823. grep -v '^ *+' conftest.er1 >conftest.err
  2824. rm -f conftest.er1
  2825. cat conftest.err >&5
  2826. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2827. (exit $ac_status); } >/dev/null && {
  2828. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2829. test ! -s conftest.err
  2830. }; then
  2831. ac_header_preproc=yes
  2832. else
  2833. $as_echo "$as_me: failed program was:" >&5
  2834. sed 's/^/| /' conftest.$ac_ext >&5
  2835. ac_header_preproc=no
  2836. fi
  2837. rm -f conftest.err conftest.$ac_ext
  2838. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2839. $as_echo "$ac_header_preproc" >&6; }
  2840. # So? What about this header?
  2841. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  2842. yes:no: )
  2843. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2844. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2845. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2846. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2847. ac_header_preproc=yes
  2848. ;;
  2849. no:yes:* )
  2850. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2851. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2852. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2853. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2854. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2855. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2856. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2857. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2858. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2859. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2860. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2861. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2862. ;;
  2863. esac
  2864. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2865. $as_echo_n "checking for minix/config.h... " >&6; }
  2866. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2867. $as_echo_n "(cached) " >&6
  2868. else
  2869. ac_cv_header_minix_config_h=$ac_header_preproc
  2870. fi
  2871. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2872. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  2873. fi
  2874. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  2875. MINIX=yes
  2876. else
  2877. MINIX=
  2878. fi
  2879. if test "$MINIX" = yes; then
  2880. cat >>confdefs.h <<\_ACEOF
  2881. #define _POSIX_SOURCE 1
  2882. _ACEOF
  2883. cat >>confdefs.h <<\_ACEOF
  2884. #define _POSIX_1_SOURCE 2
  2885. _ACEOF
  2886. cat >>confdefs.h <<\_ACEOF
  2887. #define _MINIX 1
  2888. _ACEOF
  2889. fi
  2890. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  2891. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  2892. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  2893. $as_echo_n "(cached) " >&6
  2894. else
  2895. cat >conftest.$ac_ext <<_ACEOF
  2896. /* confdefs.h. */
  2897. _ACEOF
  2898. cat confdefs.h >>conftest.$ac_ext
  2899. cat >>conftest.$ac_ext <<_ACEOF
  2900. /* end confdefs.h. */
  2901. # define __EXTENSIONS__ 1
  2902. $ac_includes_default
  2903. int
  2904. main ()
  2905. {
  2906. ;
  2907. return 0;
  2908. }
  2909. _ACEOF
  2910. rm -f conftest.$ac_objext
  2911. if { (ac_try="$ac_compile"
  2912. case "(($ac_try" in
  2913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2914. *) ac_try_echo=$ac_try;;
  2915. esac
  2916. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2917. $as_echo "$ac_try_echo") >&5
  2918. (eval "$ac_compile") 2>conftest.er1
  2919. ac_status=$?
  2920. grep -v '^ *+' conftest.er1 >conftest.err
  2921. rm -f conftest.er1
  2922. cat conftest.err >&5
  2923. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2924. (exit $ac_status); } && {
  2925. test -z "$ac_cxx_werror_flag" ||
  2926. test ! -s conftest.err
  2927. } && test -s conftest.$ac_objext; then
  2928. ac_cv_safe_to_define___extensions__=yes
  2929. else
  2930. $as_echo "$as_me: failed program was:" >&5
  2931. sed 's/^/| /' conftest.$ac_ext >&5
  2932. ac_cv_safe_to_define___extensions__=no
  2933. fi
  2934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2935. fi
  2936. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  2937. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  2938. test $ac_cv_safe_to_define___extensions__ = yes &&
  2939. cat >>confdefs.h <<\_ACEOF
  2940. #define __EXTENSIONS__ 1
  2941. _ACEOF
  2942. cat >>confdefs.h <<\_ACEOF
  2943. #define _ALL_SOURCE 1
  2944. _ACEOF
  2945. cat >>confdefs.h <<\_ACEOF
  2946. #define _GNU_SOURCE 1
  2947. _ACEOF
  2948. cat >>confdefs.h <<\_ACEOF
  2949. #define _POSIX_PTHREAD_SEMANTICS 1
  2950. _ACEOF
  2951. cat >>confdefs.h <<\_ACEOF
  2952. #define _TANDEM_SOURCE 1
  2953. _ACEOF
  2954. { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2955. $as_echo_n "checking for strerror in -lcposix... " >&6; }
  2956. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2957. $as_echo_n "(cached) " >&6
  2958. else
  2959. ac_check_lib_save_LIBS=$LIBS
  2960. LIBS="-lcposix $LIBS"
  2961. cat >conftest.$ac_ext <<_ACEOF
  2962. /* confdefs.h. */
  2963. _ACEOF
  2964. cat confdefs.h >>conftest.$ac_ext
  2965. cat >>conftest.$ac_ext <<_ACEOF
  2966. /* end confdefs.h. */
  2967. /* Override any GCC internal prototype to avoid an error.
  2968. Use char because int might match the return type of a GCC
  2969. builtin and then its argument prototype would still apply. */
  2970. #ifdef __cplusplus
  2971. extern "C"
  2972. #endif
  2973. char strerror ();
  2974. int
  2975. main ()
  2976. {
  2977. return strerror ();
  2978. ;
  2979. return 0;
  2980. }
  2981. _ACEOF
  2982. rm -f conftest.$ac_objext conftest$ac_exeext
  2983. if { (ac_try="$ac_link"
  2984. case "(($ac_try" in
  2985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2986. *) ac_try_echo=$ac_try;;
  2987. esac
  2988. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2989. $as_echo "$ac_try_echo") >&5
  2990. (eval "$ac_link") 2>conftest.er1
  2991. ac_status=$?
  2992. grep -v '^ *+' conftest.er1 >conftest.err
  2993. rm -f conftest.er1
  2994. cat conftest.err >&5
  2995. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2996. (exit $ac_status); } && {
  2997. test -z "$ac_cxx_werror_flag" ||
  2998. test ! -s conftest.err
  2999. } && test -s conftest$ac_exeext && {
  3000. test "$cross_compiling" = yes ||
  3001. $as_test_x conftest$ac_exeext
  3002. }; then
  3003. ac_cv_lib_cposix_strerror=yes
  3004. else
  3005. $as_echo "$as_me: failed program was:" >&5
  3006. sed 's/^/| /' conftest.$ac_ext >&5
  3007. ac_cv_lib_cposix_strerror=no
  3008. fi
  3009. rm -rf conftest.dSYM
  3010. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3011. conftest$ac_exeext conftest.$ac_ext
  3012. LIBS=$ac_check_lib_save_LIBS
  3013. fi
  3014. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3015. $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
  3016. if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
  3017. LIBS="$LIBS -lcposix"
  3018. fi
  3019. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3020. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3021. $as_echo_n "checking for minix/config.h... " >&6; }
  3022. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3023. $as_echo_n "(cached) " >&6
  3024. fi
  3025. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3026. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3027. else
  3028. # Is the header compilable?
  3029. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  3030. $as_echo_n "checking minix/config.h usability... " >&6; }
  3031. cat >conftest.$ac_ext <<_ACEOF
  3032. /* confdefs.h. */
  3033. _ACEOF
  3034. cat confdefs.h >>conftest.$ac_ext
  3035. cat >>conftest.$ac_ext <<_ACEOF
  3036. /* end confdefs.h. */
  3037. $ac_includes_default
  3038. #include <minix/config.h>
  3039. _ACEOF
  3040. rm -f conftest.$ac_objext
  3041. if { (ac_try="$ac_compile"
  3042. case "(($ac_try" in
  3043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3044. *) ac_try_echo=$ac_try;;
  3045. esac
  3046. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3047. $as_echo "$ac_try_echo") >&5
  3048. (eval "$ac_compile") 2>conftest.er1
  3049. ac_status=$?
  3050. grep -v '^ *+' conftest.er1 >conftest.err
  3051. rm -f conftest.er1
  3052. cat conftest.err >&5
  3053. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3054. (exit $ac_status); } && {
  3055. test -z "$ac_cxx_werror_flag" ||
  3056. test ! -s conftest.err
  3057. } && test -s conftest.$ac_objext; then
  3058. ac_header_compiler=yes
  3059. else
  3060. $as_echo "$as_me: failed program was:" >&5
  3061. sed 's/^/| /' conftest.$ac_ext >&5
  3062. ac_header_compiler=no
  3063. fi
  3064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3065. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3066. $as_echo "$ac_header_compiler" >&6; }
  3067. # Is the header present?
  3068. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  3069. $as_echo_n "checking minix/config.h presence... " >&6; }
  3070. cat >conftest.$ac_ext <<_ACEOF
  3071. /* confdefs.h. */
  3072. _ACEOF
  3073. cat confdefs.h >>conftest.$ac_ext
  3074. cat >>conftest.$ac_ext <<_ACEOF
  3075. /* end confdefs.h. */
  3076. #include <minix/config.h>
  3077. _ACEOF
  3078. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3079. case "(($ac_try" in
  3080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3081. *) ac_try_echo=$ac_try;;
  3082. esac
  3083. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3084. $as_echo "$ac_try_echo") >&5
  3085. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3086. ac_status=$?
  3087. grep -v '^ *+' conftest.er1 >conftest.err
  3088. rm -f conftest.er1
  3089. cat conftest.err >&5
  3090. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3091. (exit $ac_status); } >/dev/null && {
  3092. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  3093. test ! -s conftest.err
  3094. }; then
  3095. ac_header_preproc=yes
  3096. else
  3097. $as_echo "$as_me: failed program was:" >&5
  3098. sed 's/^/| /' conftest.$ac_ext >&5
  3099. ac_header_preproc=no
  3100. fi
  3101. rm -f conftest.err conftest.$ac_ext
  3102. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3103. $as_echo "$ac_header_preproc" >&6; }
  3104. # So? What about this header?
  3105. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  3106. yes:no: )
  3107. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3108. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3109. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  3110. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  3111. ac_header_preproc=yes
  3112. ;;
  3113. no:yes:* )
  3114. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  3115. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  3116. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  3117. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  3118. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  3119. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  3120. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  3121. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3122. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  3123. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  3124. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  3125. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  3126. ;;
  3127. esac
  3128. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3129. $as_echo_n "checking for minix/config.h... " >&6; }
  3130. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3131. $as_echo_n "(cached) " >&6
  3132. else
  3133. ac_cv_header_minix_config_h=$ac_header_preproc
  3134. fi
  3135. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3136. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3137. fi
  3138. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  3139. MINIX=yes
  3140. else
  3141. MINIX=
  3142. fi
  3143. if test "$MINIX" = yes; then
  3144. cat >>confdefs.h <<\_ACEOF
  3145. #define _POSIX_SOURCE 1
  3146. _ACEOF
  3147. cat >>confdefs.h <<\_ACEOF
  3148. #define _POSIX_1_SOURCE 2
  3149. _ACEOF
  3150. cat >>confdefs.h <<\_ACEOF
  3151. #define _MINIX 1
  3152. _ACEOF
  3153. fi
  3154. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  3155. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3156. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  3157. $as_echo_n "(cached) " >&6
  3158. else
  3159. cat >conftest.$ac_ext <<_ACEOF
  3160. /* confdefs.h. */
  3161. _ACEOF
  3162. cat confdefs.h >>conftest.$ac_ext
  3163. cat >>conftest.$ac_ext <<_ACEOF
  3164. /* end confdefs.h. */
  3165. # define __EXTENSIONS__ 1
  3166. $ac_includes_default
  3167. int
  3168. main ()
  3169. {
  3170. ;
  3171. return 0;
  3172. }
  3173. _ACEOF
  3174. rm -f conftest.$ac_objext
  3175. if { (ac_try="$ac_compile"
  3176. case "(($ac_try" in
  3177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3178. *) ac_try_echo=$ac_try;;
  3179. esac
  3180. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3181. $as_echo "$ac_try_echo") >&5
  3182. (eval "$ac_compile") 2>conftest.er1
  3183. ac_status=$?
  3184. grep -v '^ *+' conftest.er1 >conftest.err
  3185. rm -f conftest.er1
  3186. cat conftest.err >&5
  3187. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3188. (exit $ac_status); } && {
  3189. test -z "$ac_cxx_werror_flag" ||
  3190. test ! -s conftest.err
  3191. } && test -s conftest.$ac_objext; then
  3192. ac_cv_safe_to_define___extensions__=yes
  3193. else
  3194. $as_echo "$as_me: failed program was:" >&5
  3195. sed 's/^/| /' conftest.$ac_ext >&5
  3196. ac_cv_safe_to_define___extensions__=no
  3197. fi
  3198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3199. fi
  3200. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  3201. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3202. test $ac_cv_safe_to_define___extensions__ = yes &&
  3203. cat >>confdefs.h <<\_ACEOF
  3204. #define __EXTENSIONS__ 1
  3205. _ACEOF
  3206. cat >>confdefs.h <<\_ACEOF
  3207. #define _ALL_SOURCE 1
  3208. _ACEOF
  3209. cat >>confdefs.h <<\_ACEOF
  3210. #define _GNU_SOURCE 1
  3211. _ACEOF
  3212. cat >>confdefs.h <<\_ACEOF
  3213. #define _POSIX_PTHREAD_SEMANTICS 1
  3214. _ACEOF
  3215. cat >>confdefs.h <<\_ACEOF
  3216. #define _TANDEM_SOURCE 1
  3217. _ACEOF
  3218. #checkpoint
  3219. cat >confcache <<\_ACEOF
  3220. # This file is a shell script that caches the results of configure
  3221. # tests run on this system so they can be shared between configure
  3222. # scripts and configure runs, see configure's option --config-cache.
  3223. # It is not useful on other systems. If it contains results you don't
  3224. # want to keep, you may remove or edit it.
  3225. #
  3226. # config.status only pays attention to the cache file if you give it
  3227. # the --recheck option to rerun configure.
  3228. #
  3229. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3230. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3231. # following values.
  3232. _ACEOF
  3233. # The following way of writing the cache mishandles newlines in values,
  3234. # but we know of no workaround that is simple, portable, and efficient.
  3235. # So, we kill variables containing newlines.
  3236. # Ultrix sh set writes to stderr and can't be redirected directly,
  3237. # and sets the high bit in the cache file unless we assign to the vars.
  3238. (
  3239. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3240. eval ac_val=\$$ac_var
  3241. case $ac_val in #(
  3242. *${as_nl}*)
  3243. case $ac_var in #(
  3244. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  3245. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3246. esac
  3247. case $ac_var in #(
  3248. _ | IFS | as_nl) ;; #(
  3249. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3250. *) $as_unset $ac_var ;;
  3251. esac ;;
  3252. esac
  3253. done
  3254. (set) 2>&1 |
  3255. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3256. *${as_nl}ac_space=\ *)
  3257. # `set' does not quote correctly, so add quotes (double-quote
  3258. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3259. sed -n \
  3260. "s/'/'\\\\''/g;
  3261. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3262. ;; #(
  3263. *)
  3264. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3265. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3266. ;;
  3267. esac |
  3268. sort
  3269. ) |
  3270. sed '
  3271. /^ac_cv_env_/b end
  3272. t clear
  3273. :clear
  3274. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3275. t end
  3276. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3277. :end' >>confcache
  3278. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3279. if test -w "$cache_file"; then
  3280. test "x$cache_file" != "x/dev/null" &&
  3281. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3282. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3283. cat confcache >$cache_file
  3284. else
  3285. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3286. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3287. fi
  3288. fi
  3289. rm -f confcache
  3290. # Speedup compile
  3291. if test -n "$GXX" && test -z "$no_wall"; then
  3292. { $as_echo "$as_me:$LINENO: checking whether the compiler understands -Wall" >&5
  3293. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3294. if test "${egg_cv_var_ccwall+set}" = set; then
  3295. $as_echo_n "(cached) " >&6
  3296. else
  3297. ac_old_CXXFLAGS="$CXXFLAGS"
  3298. CXXFLAGS="$CXXFLAGS -Wall"
  3299. cat >conftest.$ac_ext <<_ACEOF
  3300. int main ()
  3301. {
  3302. return(0);
  3303. }
  3304. _ACEOF
  3305. rm -f conftest.$ac_objext
  3306. if { (ac_try="$ac_compile"
  3307. case "(($ac_try" in
  3308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3309. *) ac_try_echo=$ac_try;;
  3310. esac
  3311. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3312. $as_echo "$ac_try_echo") >&5
  3313. (eval "$ac_compile") 2>conftest.er1
  3314. ac_status=$?
  3315. grep -v '^ *+' conftest.er1 >conftest.err
  3316. rm -f conftest.er1
  3317. cat conftest.err >&5
  3318. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3319. (exit $ac_status); } && {
  3320. test -z "$ac_cxx_werror_flag" ||
  3321. test ! -s conftest.err
  3322. } && test -s conftest.$ac_objext; then
  3323. egg_cv_var_ccwall="yes"
  3324. else
  3325. $as_echo "$as_me: failed program was:" >&5
  3326. sed 's/^/| /' conftest.$ac_ext >&5
  3327. egg_cv_var_ccwall="no"
  3328. fi
  3329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3330. CXXFLAGS="$ac_old_CXXFLAGS"
  3331. fi
  3332. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_ccwall" >&5
  3333. $as_echo "$egg_cv_var_ccwall" >&6; }
  3334. if test "$egg_cv_var_ccwall" = "yes"; then
  3335. CXXFLAGS="$CXXFLAGS -Wall"
  3336. fi
  3337. fi
  3338. if test -n "$GXX" && test -z "$no_pipe"; then
  3339. { $as_echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  3340. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3341. if test "${egg_cv_var_ccpipe+set}" = set; then
  3342. $as_echo_n "(cached) " >&6
  3343. else
  3344. ac_old_CXX="$CXX"
  3345. CXX="$CXX -pipe"
  3346. cat >conftest.$ac_ext <<_ACEOF
  3347. int main ()
  3348. {
  3349. return(0);
  3350. }
  3351. _ACEOF
  3352. rm -f conftest.$ac_objext
  3353. if { (ac_try="$ac_compile"
  3354. case "(($ac_try" in
  3355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3356. *) ac_try_echo=$ac_try;;
  3357. esac
  3358. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3359. $as_echo "$ac_try_echo") >&5
  3360. (eval "$ac_compile") 2>conftest.er1
  3361. ac_status=$?
  3362. grep -v '^ *+' conftest.er1 >conftest.err
  3363. rm -f conftest.er1
  3364. cat conftest.err >&5
  3365. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3366. (exit $ac_status); } && {
  3367. test -z "$ac_cxx_werror_flag" ||
  3368. test ! -s conftest.err
  3369. } && test -s conftest.$ac_objext; then
  3370. egg_cv_var_ccpipe="yes"
  3371. else
  3372. $as_echo "$as_me: failed program was:" >&5
  3373. sed 's/^/| /' conftest.$ac_ext >&5
  3374. egg_cv_var_ccpipe="no"
  3375. fi
  3376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3377. CXX="$ac_old_CXX"
  3378. fi
  3379. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  3380. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3381. if test "$egg_cv_var_ccpipe" = "yes"; then
  3382. CXX="$CXX -pipe"
  3383. fi
  3384. fi
  3385. CCDEPMODE=gcc
  3386. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3387. if test $num -ge "3"; then
  3388. CCDEPMODE=gcc3
  3389. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3390. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings"
  3391. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  3392. fi
  3393. #checkpoint
  3394. cat >confcache <<\_ACEOF
  3395. # This file is a shell script that caches the results of configure
  3396. # tests run on this system so they can be shared between configure
  3397. # scripts and configure runs, see configure's option --config-cache.
  3398. # It is not useful on other systems. If it contains results you don't
  3399. # want to keep, you may remove or edit it.
  3400. #
  3401. # config.status only pays attention to the cache file if you give it
  3402. # the --recheck option to rerun configure.
  3403. #
  3404. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3405. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3406. # following values.
  3407. _ACEOF
  3408. # The following way of writing the cache mishandles newlines in values,
  3409. # but we know of no workaround that is simple, portable, and efficient.
  3410. # So, we kill variables containing newlines.
  3411. # Ultrix sh set writes to stderr and can't be redirected directly,
  3412. # and sets the high bit in the cache file unless we assign to the vars.
  3413. (
  3414. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3415. eval ac_val=\$$ac_var
  3416. case $ac_val in #(
  3417. *${as_nl}*)
  3418. case $ac_var in #(
  3419. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  3420. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3421. esac
  3422. case $ac_var in #(
  3423. _ | IFS | as_nl) ;; #(
  3424. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3425. *) $as_unset $ac_var ;;
  3426. esac ;;
  3427. esac
  3428. done
  3429. (set) 2>&1 |
  3430. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3431. *${as_nl}ac_space=\ *)
  3432. # `set' does not quote correctly, so add quotes (double-quote
  3433. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3434. sed -n \
  3435. "s/'/'\\\\''/g;
  3436. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3437. ;; #(
  3438. *)
  3439. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3440. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3441. ;;
  3442. esac |
  3443. sort
  3444. ) |
  3445. sed '
  3446. /^ac_cv_env_/b end
  3447. t clear
  3448. :clear
  3449. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3450. t end
  3451. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3452. :end' >>confcache
  3453. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3454. if test -w "$cache_file"; then
  3455. test "x$cache_file" != "x/dev/null" &&
  3456. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3457. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3458. cat confcache >$cache_file
  3459. else
  3460. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3461. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3462. fi
  3463. fi
  3464. rm -f confcache
  3465. # Checks for programs
  3466. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3467. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3468. set x ${MAKE-make}
  3469. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3470. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  3471. $as_echo_n "(cached) " >&6
  3472. else
  3473. cat >conftest.make <<\_ACEOF
  3474. SHELL = /bin/sh
  3475. all:
  3476. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3477. _ACEOF
  3478. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3479. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3480. *@@@%%%=?*=@@@%%%*)
  3481. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3482. *)
  3483. eval ac_cv_prog_make_${ac_make}_set=no;;
  3484. esac
  3485. rm -f conftest.make
  3486. fi
  3487. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3488. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3489. $as_echo "yes" >&6; }
  3490. SET_MAKE=
  3491. else
  3492. { $as_echo "$as_me:$LINENO: result: no" >&5
  3493. $as_echo "no" >&6; }
  3494. SET_MAKE="MAKE=${MAKE-make}"
  3495. fi
  3496. cat << 'EOF' > conftest.head
  3497. a
  3498. b
  3499. c
  3500. EOF
  3501. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3502. do
  3503. { $as_echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  3504. $as_echo_n "checking whether $ac_prog works... " >&6; }
  3505. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  3506. $as_echo_n "(cached) " >&6
  3507. else
  3508. if test -n "$HEAD_1"
  3509. then
  3510. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3511. else
  3512. if test "`cat conftest.head | $ac_prog`" = "a";
  3513. then
  3514. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3515. $as_echo "yes" >&6; }
  3516. ac_cv_prog_HEAD_1=$ac_prog
  3517. else
  3518. { $as_echo "$as_me:$LINENO: result: no" >&5
  3519. $as_echo "no" >&6; }
  3520. fi
  3521. fi
  3522. fi
  3523. test -n "$ac_cv_prog_HEAD_1" && break
  3524. done
  3525. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3526. then
  3527. cat << 'EOF' >&2
  3528. configure: error:
  3529. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3530. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  3531. EOF
  3532. exit 1
  3533. fi
  3534. rm -f conftest.head
  3535. HEAD_1=$ac_cv_prog_HEAD_1
  3536. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3537. for ac_prog in gawk mawk nawk awk
  3538. do
  3539. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3540. set dummy $ac_prog; ac_word=$2
  3541. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3542. $as_echo_n "checking for $ac_word... " >&6; }
  3543. if test "${ac_cv_prog_AWK+set}" = set; then
  3544. $as_echo_n "(cached) " >&6
  3545. else
  3546. if test -n "$AWK"; then
  3547. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3548. else
  3549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3550. for as_dir in $PATH
  3551. do
  3552. IFS=$as_save_IFS
  3553. test -z "$as_dir" && as_dir=.
  3554. for ac_exec_ext in '' $ac_executable_extensions; do
  3555. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3556. ac_cv_prog_AWK="$ac_prog"
  3557. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3558. break 2
  3559. fi
  3560. done
  3561. done
  3562. IFS=$as_save_IFS
  3563. fi
  3564. fi
  3565. AWK=$ac_cv_prog_AWK
  3566. if test -n "$AWK"; then
  3567. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  3568. $as_echo "$AWK" >&6; }
  3569. else
  3570. { $as_echo "$as_me:$LINENO: result: no" >&5
  3571. $as_echo "no" >&6; }
  3572. fi
  3573. test -n "$AWK" && break
  3574. done
  3575. if test "${AWK-x}" = "x"
  3576. then
  3577. cat << 'EOF' >&2
  3578. configure: error:
  3579. This system seems to lack a working 'awk' command.
  3580. A working 'awk' command is required to compile Eggdrop.
  3581. EOF
  3582. exit 1
  3583. fi
  3584. # basename is needed for Tcl library and header checks
  3585. # Extract the first word of "basename", so it can be a program name with args.
  3586. set dummy basename; ac_word=$2
  3587. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3588. $as_echo_n "checking for $ac_word... " >&6; }
  3589. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3590. $as_echo_n "(cached) " >&6
  3591. else
  3592. if test -n "$BASENAME"; then
  3593. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3594. else
  3595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3596. for as_dir in $PATH
  3597. do
  3598. IFS=$as_save_IFS
  3599. test -z "$as_dir" && as_dir=.
  3600. for ac_exec_ext in '' $ac_executable_extensions; do
  3601. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3602. ac_cv_prog_BASENAME="basename"
  3603. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3604. break 2
  3605. fi
  3606. done
  3607. done
  3608. IFS=$as_save_IFS
  3609. fi
  3610. fi
  3611. BASENAME=$ac_cv_prog_BASENAME
  3612. if test -n "$BASENAME"; then
  3613. { $as_echo "$as_me:$LINENO: result: $BASENAME" >&5
  3614. $as_echo "$BASENAME" >&6; }
  3615. else
  3616. { $as_echo "$as_me:$LINENO: result: no" >&5
  3617. $as_echo "no" >&6; }
  3618. fi
  3619. if test "${BASENAME-x}" = "x"
  3620. then
  3621. cat << 'EOF' >&2
  3622. configure: error:
  3623. This system seems to lack a working 'basename' command.
  3624. A working 'basename' command is required to compile Eggdrop.
  3625. EOF
  3626. exit 1
  3627. fi
  3628. # Extract the first word of "objcopy", so it can be a program name with args.
  3629. set dummy objcopy; ac_word=$2
  3630. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3631. $as_echo_n "checking for $ac_word... " >&6; }
  3632. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3633. $as_echo_n "(cached) " >&6
  3634. else
  3635. if test -n "$OBJCOPY"; then
  3636. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3637. else
  3638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3639. for as_dir in $PATH
  3640. do
  3641. IFS=$as_save_IFS
  3642. test -z "$as_dir" && as_dir=.
  3643. for ac_exec_ext in '' $ac_executable_extensions; do
  3644. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3645. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3646. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3647. break 2
  3648. fi
  3649. done
  3650. done
  3651. IFS=$as_save_IFS
  3652. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3653. fi
  3654. fi
  3655. OBJCOPY=$ac_cv_prog_OBJCOPY
  3656. if test -n "$OBJCOPY"; then
  3657. { $as_echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3658. $as_echo "$OBJCOPY" >&6; }
  3659. else
  3660. { $as_echo "$as_me:$LINENO: result: no" >&5
  3661. $as_echo "no" >&6; }
  3662. fi
  3663. # Extract the first word of "strip", so it can be a program name with args.
  3664. set dummy strip; ac_word=$2
  3665. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3666. $as_echo_n "checking for $ac_word... " >&6; }
  3667. if test "${ac_cv_prog_STRIP+set}" = set; then
  3668. $as_echo_n "(cached) " >&6
  3669. else
  3670. if test -n "$STRIP"; then
  3671. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3672. else
  3673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3674. for as_dir in $PATH
  3675. do
  3676. IFS=$as_save_IFS
  3677. test -z "$as_dir" && as_dir=.
  3678. for ac_exec_ext in '' $ac_executable_extensions; do
  3679. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3680. ac_cv_prog_STRIP="strip"
  3681. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3682. break 2
  3683. fi
  3684. done
  3685. done
  3686. IFS=$as_save_IFS
  3687. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3688. fi
  3689. fi
  3690. STRIP=$ac_cv_prog_STRIP
  3691. if test -n "$STRIP"; then
  3692. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  3693. $as_echo "$STRIP" >&6; }
  3694. else
  3695. { $as_echo "$as_me:$LINENO: result: no" >&5
  3696. $as_echo "no" >&6; }
  3697. fi
  3698. # Extract the first word of "gdiff", so it can be a program name with args.
  3699. set dummy gdiff; ac_word=$2
  3700. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3701. $as_echo_n "checking for $ac_word... " >&6; }
  3702. if test "${ac_cv_prog_DIFF+set}" = set; then
  3703. $as_echo_n "(cached) " >&6
  3704. else
  3705. if test -n "$DIFF"; then
  3706. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  3707. else
  3708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3709. for as_dir in $PATH
  3710. do
  3711. IFS=$as_save_IFS
  3712. test -z "$as_dir" && as_dir=.
  3713. for ac_exec_ext in '' $ac_executable_extensions; do
  3714. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3715. ac_cv_prog_DIFF="gdiff"
  3716. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3717. break 2
  3718. fi
  3719. done
  3720. done
  3721. IFS=$as_save_IFS
  3722. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  3723. fi
  3724. fi
  3725. DIFF=$ac_cv_prog_DIFF
  3726. if test -n "$DIFF"; then
  3727. { $as_echo "$as_me:$LINENO: result: $DIFF" >&5
  3728. $as_echo "$DIFF" >&6; }
  3729. else
  3730. { $as_echo "$as_me:$LINENO: result: no" >&5
  3731. $as_echo "no" >&6; }
  3732. fi
  3733. # Extract the first word of "uname", so it can be a program name with args.
  3734. set dummy uname; ac_word=$2
  3735. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3736. $as_echo_n "checking for $ac_word... " >&6; }
  3737. if test "${ac_cv_prog_UNAME+set}" = set; then
  3738. $as_echo_n "(cached) " >&6
  3739. else
  3740. if test -n "$UNAME"; then
  3741. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3742. else
  3743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3744. for as_dir in $PATH
  3745. do
  3746. IFS=$as_save_IFS
  3747. test -z "$as_dir" && as_dir=.
  3748. for ac_exec_ext in '' $ac_executable_extensions; do
  3749. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3750. ac_cv_prog_UNAME="uname"
  3751. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3752. break 2
  3753. fi
  3754. done
  3755. done
  3756. IFS=$as_save_IFS
  3757. fi
  3758. fi
  3759. UNAME=$ac_cv_prog_UNAME
  3760. if test -n "$UNAME"; then
  3761. { $as_echo "$as_me:$LINENO: result: $UNAME" >&5
  3762. $as_echo "$UNAME" >&6; }
  3763. else
  3764. { $as_echo "$as_me:$LINENO: result: no" >&5
  3765. $as_echo "no" >&6; }
  3766. fi
  3767. # Extract the first word of "ccache", so it can be a program name with args.
  3768. set dummy ccache; ac_word=$2
  3769. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3770. $as_echo_n "checking for $ac_word... " >&6; }
  3771. if test "${ac_cv_prog_CCACHE+set}" = set; then
  3772. $as_echo_n "(cached) " >&6
  3773. else
  3774. if test -n "$CCACHE"; then
  3775. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  3776. else
  3777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3778. for as_dir in $PATH
  3779. do
  3780. IFS=$as_save_IFS
  3781. test -z "$as_dir" && as_dir=.
  3782. for ac_exec_ext in '' $ac_executable_extensions; do
  3783. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3784. ac_cv_prog_CCACHE="ccache"
  3785. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3786. break 2
  3787. fi
  3788. done
  3789. done
  3790. IFS=$as_save_IFS
  3791. fi
  3792. fi
  3793. CCACHE=$ac_cv_prog_CCACHE
  3794. if test -n "$CCACHE"; then
  3795. { $as_echo "$as_me:$LINENO: result: $CCACHE" >&5
  3796. $as_echo "$CCACHE" >&6; }
  3797. else
  3798. { $as_echo "$as_me:$LINENO: result: no" >&5
  3799. $as_echo "no" >&6; }
  3800. fi
  3801. # Extract the first word of "distcc", so it can be a program name with args.
  3802. set dummy distcc; ac_word=$2
  3803. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3804. $as_echo_n "checking for $ac_word... " >&6; }
  3805. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3806. $as_echo_n "(cached) " >&6
  3807. else
  3808. if test -n "$DISTCC"; then
  3809. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3810. else
  3811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3812. for as_dir in $PATH
  3813. do
  3814. IFS=$as_save_IFS
  3815. test -z "$as_dir" && as_dir=.
  3816. for ac_exec_ext in '' $ac_executable_extensions; do
  3817. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3818. ac_cv_prog_DISTCC="distcc"
  3819. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3820. break 2
  3821. fi
  3822. done
  3823. done
  3824. IFS=$as_save_IFS
  3825. fi
  3826. fi
  3827. DISTCC=$ac_cv_prog_DISTCC
  3828. if test -n "$DISTCC"; then
  3829. { $as_echo "$as_me:$LINENO: result: $DISTCC" >&5
  3830. $as_echo "$DISTCC" >&6; }
  3831. else
  3832. { $as_echo "$as_me:$LINENO: result: no" >&5
  3833. $as_echo "no" >&6; }
  3834. fi
  3835. # Test the os and set the module linking settings
  3836. EGG_CYGWIN=no
  3837. { $as_echo "$as_me:$LINENO: checking system type" >&5
  3838. $as_echo_n "checking system type... " >&6; }
  3839. if test "${egg_cv_var_system_type+set}" = set; then
  3840. $as_echo_n "(cached) " >&6
  3841. else
  3842. egg_cv_var_system_type=`$UNAME -s`
  3843. fi
  3844. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3845. $as_echo "$egg_cv_var_system_type" >&6; }
  3846. { $as_echo "$as_me:$LINENO: checking system release" >&5
  3847. $as_echo_n "checking system release... " >&6; }
  3848. if test "${egg_cv_var_system_release+set}" = set; then
  3849. $as_echo_n "(cached) " >&6
  3850. else
  3851. egg_cv_var_system_release=`$UNAME -r`
  3852. fi
  3853. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3854. $as_echo "$egg_cv_var_system_release" >&6; }
  3855. { $as_echo "$as_me:$LINENO: checking system machine" >&5
  3856. $as_echo_n "checking system machine... " >&6; }
  3857. if test "${egg_cv_var_system_machine+set}" = set; then
  3858. $as_echo_n "(cached) " >&6
  3859. else
  3860. egg_cv_var_system_machine=`$UNAME -m`
  3861. fi
  3862. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_system_machine" >&5
  3863. $as_echo "$egg_cv_var_system_machine" >&6; }
  3864. BUILDOS="$egg_cv_var_system_type"
  3865. BUILDARCH="$egg_cv_var_system_machine"
  3866. case "$egg_cv_var_system_machine" in
  3867. i*)
  3868. CXX="$CXX -march=i486"
  3869. BUILDARCH="i486"
  3870. ;;
  3871. *)
  3872. ;;
  3873. esac
  3874. case "$egg_cv_var_system_type" in
  3875. BSD/OS)
  3876. ;;
  3877. CYGWI*)
  3878. { $as_echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3879. $as_echo_n "checking how to access the Win32 API... " >&6; }
  3880. WIN32FLAGS=
  3881. cat >conftest.$ac_ext <<_ACEOF
  3882. /* confdefs.h. */
  3883. _ACEOF
  3884. cat confdefs.h >>conftest.$ac_ext
  3885. cat >>conftest.$ac_ext <<_ACEOF
  3886. /* end confdefs.h. */
  3887. int
  3888. main ()
  3889. {
  3890. #ifndef WIN32
  3891. # ifndef _WIN32
  3892. # error WIN32 or _WIN32 not defined
  3893. # endif
  3894. #endif
  3895. ;
  3896. return 0;
  3897. }
  3898. _ACEOF
  3899. rm -f conftest.$ac_objext
  3900. if { (ac_try="$ac_compile"
  3901. case "(($ac_try" in
  3902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3903. *) ac_try_echo=$ac_try;;
  3904. esac
  3905. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3906. $as_echo "$ac_try_echo") >&5
  3907. (eval "$ac_compile") 2>conftest.er1
  3908. ac_status=$?
  3909. grep -v '^ *+' conftest.er1 >conftest.err
  3910. rm -f conftest.er1
  3911. cat conftest.err >&5
  3912. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3913. (exit $ac_status); } && {
  3914. test -z "$ac_cxx_werror_flag" ||
  3915. test ! -s conftest.err
  3916. } && test -s conftest.$ac_objext; then
  3917. { $as_echo "$as_me:$LINENO: result: present by default" >&5
  3918. $as_echo "present by default" >&6; }
  3919. else
  3920. $as_echo "$as_me: failed program was:" >&5
  3921. sed 's/^/| /' conftest.$ac_ext >&5
  3922. ac_compile_save="$ac_compile"
  3923. save_CXX="$CXX"
  3924. ac_compile="$ac_compile -mwin32"
  3925. CXX="$CXX -mwin32"
  3926. cat >conftest.$ac_ext <<_ACEOF
  3927. /* confdefs.h. */
  3928. _ACEOF
  3929. cat confdefs.h >>conftest.$ac_ext
  3930. cat >>conftest.$ac_ext <<_ACEOF
  3931. /* end confdefs.h. */
  3932. int
  3933. main ()
  3934. {
  3935. #ifndef WIN32
  3936. # ifndef _WIN32
  3937. # error WIN32 or _WIN32 not defined
  3938. # endif
  3939. #endif
  3940. ;
  3941. return 0;
  3942. }
  3943. _ACEOF
  3944. rm -f conftest.$ac_objext
  3945. if { (ac_try="$ac_compile"
  3946. case "(($ac_try" in
  3947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3948. *) ac_try_echo=$ac_try;;
  3949. esac
  3950. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3951. $as_echo "$ac_try_echo") >&5
  3952. (eval "$ac_compile") 2>conftest.er1
  3953. ac_status=$?
  3954. grep -v '^ *+' conftest.er1 >conftest.err
  3955. rm -f conftest.er1
  3956. cat conftest.err >&5
  3957. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3958. (exit $ac_status); } && {
  3959. test -z "$ac_cxx_werror_flag" ||
  3960. test ! -s conftest.err
  3961. } && test -s conftest.$ac_objext; then
  3962. { $as_echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3963. $as_echo "found via -mwin32" >&6; }
  3964. ac_compile="$ac_compile_save"
  3965. CXX="$save_CXX"
  3966. WIN32FLAGS="-mwin32"
  3967. else
  3968. $as_echo "$as_me: failed program was:" >&5
  3969. sed 's/^/| /' conftest.$ac_ext >&5
  3970. ac_compile="$ac_compile_save"
  3971. CXX="$save_CXX"
  3972. { $as_echo "$as_me:$LINENO: result: not found" >&5
  3973. $as_echo "not found" >&6; }
  3974. fi
  3975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3976. fi
  3977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3978. CXX="$CXX $WIN32FLAGS"
  3979. EGG_CYGWIN="yes"
  3980. if test $EGG_CYGWIN = "yes"; then
  3981. { $as_echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3982. $as_echo_n "checking for /usr/lib/binmode.o... " >&6; }
  3983. if test -r /usr/lib/binmode.o; then
  3984. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3985. $as_echo "yes" >&6; }
  3986. LIBS="$LIBS /usr/lib/binmode.o"
  3987. else
  3988. { $as_echo "$as_me:$LINENO: result: no" >&5
  3989. $as_echo "no" >&6; }
  3990. { $as_echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3991. $as_echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3992. fi
  3993. fi
  3994. cat >>confdefs.h <<\_ACEOF
  3995. #define CYGWIN_HACKS 1
  3996. _ACEOF
  3997. cat >>confdefs.h <<\_ACEOF
  3998. #define WIN32_LEAN_AND_MEAN 1
  3999. _ACEOF
  4000. ;;
  4001. IRIX)
  4002. ;;
  4003. HP-UX)
  4004. cat >>confdefs.h <<\_ACEOF
  4005. #define MD32_XARRAY 1
  4006. _ACEOF
  4007. ;;
  4008. Ultrix)
  4009. SHELL=/bin/sh5
  4010. ;;
  4011. SINIX*)
  4012. ;;
  4013. BeOS)
  4014. ;;
  4015. Linux)
  4016. ;;
  4017. Lynx)
  4018. ;;
  4019. QNX)
  4020. ;;
  4021. OSF1)
  4022. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  4023. V*)
  4024. if test "$AWK" = "gawk"
  4025. then
  4026. AWK=awk
  4027. fi
  4028. ;;
  4029. 1.0|1.1|1.2)
  4030. cat >>confdefs.h <<\_ACEOF
  4031. #define OSF1_HACKS 1
  4032. _ACEOF
  4033. ;;
  4034. 1.*)
  4035. cat >>confdefs.h <<\_ACEOF
  4036. #define OSF1_HACKS 1
  4037. _ACEOF
  4038. ;;
  4039. *)
  4040. ;;
  4041. esac
  4042. cat >>confdefs.h <<\_ACEOF
  4043. #define STOP_UAC 1
  4044. _ACEOF
  4045. cat >>confdefs.h <<\_ACEOF
  4046. #define BROKEN_SNPRINTF 1
  4047. _ACEOF
  4048. ;;
  4049. SunOS)
  4050. SUNOS="yes"
  4051. ;;
  4052. *BSD)
  4053. # FreeBSD/OpenBSD/NetBSD
  4054. ;;
  4055. *)
  4056. { $as_echo "$as_me:$LINENO: checking if system is Mach based" >&5
  4057. $as_echo_n "checking if system is Mach based... " >&6; }
  4058. if test -r /mach
  4059. then
  4060. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4061. $as_echo "yes" >&6; }
  4062. cat >>confdefs.h <<\_ACEOF
  4063. #define BORGCUBES 1
  4064. _ACEOF
  4065. else
  4066. { $as_echo "$as_me:$LINENO: result: no" >&5
  4067. $as_echo "no" >&6; }
  4068. { $as_echo "$as_me:$LINENO: checking if system is QNX" >&5
  4069. $as_echo_n "checking if system is QNX... " >&6; }
  4070. if test -r /cmds
  4071. then
  4072. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4073. $as_echo "yes" >&6; }
  4074. else
  4075. { $as_echo "$as_me:$LINENO: result: no" >&5
  4076. $as_echo "no" >&6; }
  4077. { $as_echo "$as_me:$LINENO: result: Something unknown!" >&5
  4078. $as_echo "Something unknown!" >&6; }
  4079. { $as_echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  4080. $as_echo "If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6; }
  4081. fi
  4082. fi
  4083. ;;
  4084. esac
  4085. # Check for IPv6 support
  4086. #EGG_IPV6_SUPPORTED
  4087. { $as_echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  4088. $as_echo_n "checking whether or not you disabled IPv6 support... " >&6; }
  4089. # Check whether --enable-ipv6 was given.
  4090. if test "${enable_ipv6+set}" = set; then
  4091. enableval=$enable_ipv6; ac_cv_dipv6="yes"
  4092. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4093. $as_echo "yes" >&6; }
  4094. else
  4095. ac_cv_dipv6="no"
  4096. if test "$egg_cv_ipv6_supported" = "no"; then
  4097. ac_cv_dipv6="no"
  4098. fi
  4099. { $as_echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  4100. $as_echo "$ac_cv_dipv6" >&6; }
  4101. fi
  4102. if ! test "$EGG_CYGWIN" = "yes"; then
  4103. if test "$ac_cv_dipv6" = "no"; then
  4104. cat >>confdefs.h <<\_ACEOF
  4105. #define USE_IPV6 1
  4106. _ACEOF
  4107. fi
  4108. fi
  4109. { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
  4110. $as_echo_n "checking for socklen_t... " >&6; }
  4111. if test "${egg_cv_socklen_t+set}" = set; then
  4112. $as_echo_n "(cached) " >&6
  4113. else
  4114. if test "$cross_compiling" = yes; then
  4115. egg_cv_socklen_t=no
  4116. else
  4117. cat >conftest.$ac_ext <<_ACEOF
  4118. /* confdefs.h. */
  4119. _ACEOF
  4120. cat confdefs.h >>conftest.$ac_ext
  4121. cat >>conftest.$ac_ext <<_ACEOF
  4122. /* end confdefs.h. */
  4123. #include <unistd.h>
  4124. #include <sys/types.h>
  4125. #include <sys/socket.h>
  4126. #include <netinet/in.h>
  4127. #include <arpa/inet.h>
  4128. int main()
  4129. {
  4130. socklen_t test = sizeof(int);
  4131. return 0;
  4132. }
  4133. _ACEOF
  4134. rm -f conftest$ac_exeext
  4135. if { (ac_try="$ac_link"
  4136. case "(($ac_try" in
  4137. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4138. *) ac_try_echo=$ac_try;;
  4139. esac
  4140. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4141. $as_echo "$ac_try_echo") >&5
  4142. (eval "$ac_link") 2>&5
  4143. ac_status=$?
  4144. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4145. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4146. { (case "(($ac_try" in
  4147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4148. *) ac_try_echo=$ac_try;;
  4149. esac
  4150. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4151. $as_echo "$ac_try_echo") >&5
  4152. (eval "$ac_try") 2>&5
  4153. ac_status=$?
  4154. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4155. (exit $ac_status); }; }; then
  4156. egg_cv_socklen_t=yes
  4157. else
  4158. $as_echo "$as_me: program exited with status $ac_status" >&5
  4159. $as_echo "$as_me: failed program was:" >&5
  4160. sed 's/^/| /' conftest.$ac_ext >&5
  4161. ( exit $ac_status )
  4162. egg_cv_socklen_t=no
  4163. fi
  4164. rm -rf conftest.dSYM
  4165. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4166. fi
  4167. fi
  4168. if test "$egg_cv_socklen_t" = "yes"; then
  4169. cat >>confdefs.h <<\_ACEOF
  4170. #define HAVE_SOCKLEN_T 1
  4171. _ACEOF
  4172. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4173. $as_echo "yes" >&6; }
  4174. else
  4175. { $as_echo "$as_me:$LINENO: result: no" >&5
  4176. $as_echo "no" >&6; }
  4177. fi
  4178. # Check for inconsistent random() functions
  4179. { $as_echo "$as_me:$LINENO: checking for random limit" >&5
  4180. $as_echo_n "checking for random limit... " >&6; }
  4181. case "$egg_cv_var_system_type" in
  4182. SunOS) RMAX=0x7FFFFFFF
  4183. ;;
  4184. *) RMAX=RAND_MAX
  4185. ;;
  4186. esac
  4187. { $as_echo "$as_me:$LINENO: result: $RMAX" >&5
  4188. $as_echo "$RMAX" >&6; }
  4189. cat >>confdefs.h <<_ACEOF
  4190. #define RANDOM_MAX $RMAX
  4191. _ACEOF
  4192. # Create static binaries
  4193. if test -z "$no_static"
  4194. then
  4195. if test -n "$GXX"
  4196. then
  4197. { $as_echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  4198. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  4199. if test "${egg_cv_var_ccstatic+set}" = set; then
  4200. $as_echo_n "(cached) " >&6
  4201. else
  4202. ac_old_CXX="$CXX"
  4203. CXX="$CXX -static"
  4204. cat >conftest.$ac_ext <<_ACEOF
  4205. /* confdefs.h. */
  4206. _ACEOF
  4207. cat confdefs.h >>conftest.$ac_ext
  4208. cat >>conftest.$ac_ext <<_ACEOF
  4209. /* end confdefs.h. */
  4210. int
  4211. main ()
  4212. {
  4213. ;
  4214. return 0;
  4215. }
  4216. _ACEOF
  4217. rm -f conftest.$ac_objext
  4218. if { (ac_try="$ac_compile"
  4219. case "(($ac_try" in
  4220. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4221. *) ac_try_echo=$ac_try;;
  4222. esac
  4223. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4224. $as_echo "$ac_try_echo") >&5
  4225. (eval "$ac_compile") 2>conftest.er1
  4226. ac_status=$?
  4227. grep -v '^ *+' conftest.er1 >conftest.err
  4228. rm -f conftest.er1
  4229. cat conftest.err >&5
  4230. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4231. (exit $ac_status); } && {
  4232. test -z "$ac_cxx_werror_flag" ||
  4233. test ! -s conftest.err
  4234. } && test -s conftest.$ac_objext; then
  4235. egg_cv_var_ccstatic="yes"
  4236. else
  4237. $as_echo "$as_me: failed program was:" >&5
  4238. sed 's/^/| /' conftest.$ac_ext >&5
  4239. egg_cv_var_ccstatic="no"
  4240. fi
  4241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4242. CXX="$ac_old_CXX"
  4243. fi
  4244. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  4245. $as_echo "$egg_cv_var_ccstatic" >&6; }
  4246. if test "$egg_cv_var_ccstatic" = "yes"
  4247. then
  4248. CCDEBUG="$CXX"
  4249. # CXX="$CXX -static"
  4250. else
  4251. cat << 'EOF' >&2
  4252. configure: error:
  4253. Your C compiler does not support -static.
  4254. This compile flag is required for the botpack.
  4255. EOF
  4256. exit 1
  4257. fi
  4258. fi
  4259. fi
  4260. #checkpoint
  4261. cat >confcache <<\_ACEOF
  4262. # This file is a shell script that caches the results of configure
  4263. # tests run on this system so they can be shared between configure
  4264. # scripts and configure runs, see configure's option --config-cache.
  4265. # It is not useful on other systems. If it contains results you don't
  4266. # want to keep, you may remove or edit it.
  4267. #
  4268. # config.status only pays attention to the cache file if you give it
  4269. # the --recheck option to rerun configure.
  4270. #
  4271. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4272. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4273. # following values.
  4274. _ACEOF
  4275. # The following way of writing the cache mishandles newlines in values,
  4276. # but we know of no workaround that is simple, portable, and efficient.
  4277. # So, we kill variables containing newlines.
  4278. # Ultrix sh set writes to stderr and can't be redirected directly,
  4279. # and sets the high bit in the cache file unless we assign to the vars.
  4280. (
  4281. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4282. eval ac_val=\$$ac_var
  4283. case $ac_val in #(
  4284. *${as_nl}*)
  4285. case $ac_var in #(
  4286. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  4287. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4288. esac
  4289. case $ac_var in #(
  4290. _ | IFS | as_nl) ;; #(
  4291. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4292. *) $as_unset $ac_var ;;
  4293. esac ;;
  4294. esac
  4295. done
  4296. (set) 2>&1 |
  4297. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4298. *${as_nl}ac_space=\ *)
  4299. # `set' does not quote correctly, so add quotes (double-quote
  4300. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4301. sed -n \
  4302. "s/'/'\\\\''/g;
  4303. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4304. ;; #(
  4305. *)
  4306. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4307. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4308. ;;
  4309. esac |
  4310. sort
  4311. ) |
  4312. sed '
  4313. /^ac_cv_env_/b end
  4314. t clear
  4315. :clear
  4316. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4317. t end
  4318. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4319. :end' >>confcache
  4320. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4321. if test -w "$cache_file"; then
  4322. test "x$cache_file" != "x/dev/null" &&
  4323. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  4324. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4325. cat confcache >$cache_file
  4326. else
  4327. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  4328. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4329. fi
  4330. fi
  4331. rm -f confcache
  4332. # Checks for system libraries
  4333. { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4334. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4335. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4336. $as_echo_n "(cached) " >&6
  4337. else
  4338. ac_check_lib_save_LIBS=$LIBS
  4339. LIBS="-lsocket $LIBS"
  4340. cat >conftest.$ac_ext <<_ACEOF
  4341. /* confdefs.h. */
  4342. _ACEOF
  4343. cat confdefs.h >>conftest.$ac_ext
  4344. cat >>conftest.$ac_ext <<_ACEOF
  4345. /* end confdefs.h. */
  4346. /* Override any GCC internal prototype to avoid an error.
  4347. Use char because int might match the return type of a GCC
  4348. builtin and then its argument prototype would still apply. */
  4349. #ifdef __cplusplus
  4350. extern "C"
  4351. #endif
  4352. char socket ();
  4353. int
  4354. main ()
  4355. {
  4356. return socket ();
  4357. ;
  4358. return 0;
  4359. }
  4360. _ACEOF
  4361. rm -f conftest.$ac_objext conftest$ac_exeext
  4362. if { (ac_try="$ac_link"
  4363. case "(($ac_try" in
  4364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4365. *) ac_try_echo=$ac_try;;
  4366. esac
  4367. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4368. $as_echo "$ac_try_echo") >&5
  4369. (eval "$ac_link") 2>conftest.er1
  4370. ac_status=$?
  4371. grep -v '^ *+' conftest.er1 >conftest.err
  4372. rm -f conftest.er1
  4373. cat conftest.err >&5
  4374. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4375. (exit $ac_status); } && {
  4376. test -z "$ac_cxx_werror_flag" ||
  4377. test ! -s conftest.err
  4378. } && test -s conftest$ac_exeext && {
  4379. test "$cross_compiling" = yes ||
  4380. $as_test_x conftest$ac_exeext
  4381. }; then
  4382. ac_cv_lib_socket_socket=yes
  4383. else
  4384. $as_echo "$as_me: failed program was:" >&5
  4385. sed 's/^/| /' conftest.$ac_ext >&5
  4386. ac_cv_lib_socket_socket=no
  4387. fi
  4388. rm -rf conftest.dSYM
  4389. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4390. conftest$ac_exeext conftest.$ac_ext
  4391. LIBS=$ac_check_lib_save_LIBS
  4392. fi
  4393. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4394. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4395. if test "x$ac_cv_lib_socket_socket" = x""yes; then
  4396. cat >>confdefs.h <<_ACEOF
  4397. #define HAVE_LIBSOCKET 1
  4398. _ACEOF
  4399. LIBS="-lsocket $LIBS"
  4400. fi
  4401. # AC_CHECK_LIB(nsl, connect)
  4402. # AC_CHECK_LIB(dl, dlopen)
  4403. # AC_CHECK_LIB(nsl, gethostbyname)
  4404. # AC_CHECK_LIB(dns, gethostbyname)
  4405. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4406. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4407. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4408. # This is needed for Tcl libraries compiled with thread support
  4409. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4410. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4411. # ac_cv_lib_pthread="-lpthread"], [dnl
  4412. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4413. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4414. # ac_cv_lib_pthread="-lpthread"], [dnl
  4415. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4416. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4417. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4418. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4419. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4420. # ac_cv_lib_pthread=""],
  4421. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4422. if test "$SUNOS" = "yes"; then
  4423. # For suns without yp
  4424. { $as_echo "$as_me:$LINENO: checking for main in -ldl" >&5
  4425. $as_echo_n "checking for main in -ldl... " >&6; }
  4426. if test "${ac_cv_lib_dl_main+set}" = set; then
  4427. $as_echo_n "(cached) " >&6
  4428. else
  4429. ac_check_lib_save_LIBS=$LIBS
  4430. LIBS="-ldl $LIBS"
  4431. cat >conftest.$ac_ext <<_ACEOF
  4432. /* confdefs.h. */
  4433. _ACEOF
  4434. cat confdefs.h >>conftest.$ac_ext
  4435. cat >>conftest.$ac_ext <<_ACEOF
  4436. /* end confdefs.h. */
  4437. int
  4438. main ()
  4439. {
  4440. return main ();
  4441. ;
  4442. return 0;
  4443. }
  4444. _ACEOF
  4445. rm -f conftest.$ac_objext conftest$ac_exeext
  4446. if { (ac_try="$ac_link"
  4447. case "(($ac_try" in
  4448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4449. *) ac_try_echo=$ac_try;;
  4450. esac
  4451. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4452. $as_echo "$ac_try_echo") >&5
  4453. (eval "$ac_link") 2>conftest.er1
  4454. ac_status=$?
  4455. grep -v '^ *+' conftest.er1 >conftest.err
  4456. rm -f conftest.er1
  4457. cat conftest.err >&5
  4458. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4459. (exit $ac_status); } && {
  4460. test -z "$ac_cxx_werror_flag" ||
  4461. test ! -s conftest.err
  4462. } && test -s conftest$ac_exeext && {
  4463. test "$cross_compiling" = yes ||
  4464. $as_test_x conftest$ac_exeext
  4465. }; then
  4466. ac_cv_lib_dl_main=yes
  4467. else
  4468. $as_echo "$as_me: failed program was:" >&5
  4469. sed 's/^/| /' conftest.$ac_ext >&5
  4470. ac_cv_lib_dl_main=no
  4471. fi
  4472. rm -rf conftest.dSYM
  4473. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4474. conftest$ac_exeext conftest.$ac_ext
  4475. LIBS=$ac_check_lib_save_LIBS
  4476. fi
  4477. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  4478. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4479. if test "x$ac_cv_lib_dl_main" = x""yes; then
  4480. cat >>confdefs.h <<_ACEOF
  4481. #define HAVE_LIBDL 1
  4482. _ACEOF
  4483. LIBS="-ldl $LIBS"
  4484. fi
  4485. { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
  4486. $as_echo_n "checking for main in -lsocket... " >&6; }
  4487. if test "${ac_cv_lib_socket_main+set}" = set; then
  4488. $as_echo_n "(cached) " >&6
  4489. else
  4490. ac_check_lib_save_LIBS=$LIBS
  4491. LIBS="-lsocket $LIBS"
  4492. cat >conftest.$ac_ext <<_ACEOF
  4493. /* confdefs.h. */
  4494. _ACEOF
  4495. cat confdefs.h >>conftest.$ac_ext
  4496. cat >>conftest.$ac_ext <<_ACEOF
  4497. /* end confdefs.h. */
  4498. int
  4499. main ()
  4500. {
  4501. return main ();
  4502. ;
  4503. return 0;
  4504. }
  4505. _ACEOF
  4506. rm -f conftest.$ac_objext conftest$ac_exeext
  4507. if { (ac_try="$ac_link"
  4508. case "(($ac_try" in
  4509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4510. *) ac_try_echo=$ac_try;;
  4511. esac
  4512. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4513. $as_echo "$ac_try_echo") >&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. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4520. (exit $ac_status); } && {
  4521. test -z "$ac_cxx_werror_flag" ||
  4522. test ! -s conftest.err
  4523. } && test -s conftest$ac_exeext && {
  4524. test "$cross_compiling" = yes ||
  4525. $as_test_x conftest$ac_exeext
  4526. }; then
  4527. ac_cv_lib_socket_main=yes
  4528. else
  4529. $as_echo "$as_me: failed program was:" >&5
  4530. sed 's/^/| /' conftest.$ac_ext >&5
  4531. ac_cv_lib_socket_main=no
  4532. fi
  4533. rm -rf conftest.dSYM
  4534. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4535. conftest$ac_exeext conftest.$ac_ext
  4536. LIBS=$ac_check_lib_save_LIBS
  4537. fi
  4538. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
  4539. $as_echo "$ac_cv_lib_socket_main" >&6; }
  4540. if test "x$ac_cv_lib_socket_main" = x""yes; then
  4541. cat >>confdefs.h <<_ACEOF
  4542. #define HAVE_LIBSOCKET 1
  4543. _ACEOF
  4544. LIBS="-lsocket $LIBS"
  4545. fi
  4546. { $as_echo "$as_me:$LINENO: checking for main in -lnsl" >&5
  4547. $as_echo_n "checking for main in -lnsl... " >&6; }
  4548. if test "${ac_cv_lib_nsl_main+set}" = set; then
  4549. $as_echo_n "(cached) " >&6
  4550. else
  4551. ac_check_lib_save_LIBS=$LIBS
  4552. LIBS="-lnsl $LIBS"
  4553. cat >conftest.$ac_ext <<_ACEOF
  4554. /* confdefs.h. */
  4555. _ACEOF
  4556. cat confdefs.h >>conftest.$ac_ext
  4557. cat >>conftest.$ac_ext <<_ACEOF
  4558. /* end confdefs.h. */
  4559. int
  4560. main ()
  4561. {
  4562. return main ();
  4563. ;
  4564. return 0;
  4565. }
  4566. _ACEOF
  4567. rm -f conftest.$ac_objext conftest$ac_exeext
  4568. if { (ac_try="$ac_link"
  4569. case "(($ac_try" in
  4570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4571. *) ac_try_echo=$ac_try;;
  4572. esac
  4573. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4574. $as_echo "$ac_try_echo") >&5
  4575. (eval "$ac_link") 2>conftest.er1
  4576. ac_status=$?
  4577. grep -v '^ *+' conftest.er1 >conftest.err
  4578. rm -f conftest.er1
  4579. cat conftest.err >&5
  4580. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4581. (exit $ac_status); } && {
  4582. test -z "$ac_cxx_werror_flag" ||
  4583. test ! -s conftest.err
  4584. } && test -s conftest$ac_exeext && {
  4585. test "$cross_compiling" = yes ||
  4586. $as_test_x conftest$ac_exeext
  4587. }; then
  4588. ac_cv_lib_nsl_main=yes
  4589. else
  4590. $as_echo "$as_me: failed program was:" >&5
  4591. sed 's/^/| /' conftest.$ac_ext >&5
  4592. ac_cv_lib_nsl_main=no
  4593. fi
  4594. rm -rf conftest.dSYM
  4595. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4596. conftest$ac_exeext conftest.$ac_ext
  4597. LIBS=$ac_check_lib_save_LIBS
  4598. fi
  4599. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
  4600. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4601. if test "x$ac_cv_lib_nsl_main" = x""yes; then
  4602. cat >>confdefs.h <<_ACEOF
  4603. #define HAVE_LIBNSL 1
  4604. _ACEOF
  4605. LIBS="-lnsl $LIBS"
  4606. fi
  4607. fi
  4608. # Checks for header files
  4609. ac_header_dirent=no
  4610. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4611. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4612. { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4613. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  4614. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4615. $as_echo_n "(cached) " >&6
  4616. else
  4617. cat >conftest.$ac_ext <<_ACEOF
  4618. /* confdefs.h. */
  4619. _ACEOF
  4620. cat confdefs.h >>conftest.$ac_ext
  4621. cat >>conftest.$ac_ext <<_ACEOF
  4622. /* end confdefs.h. */
  4623. #include <sys/types.h>
  4624. #include <$ac_hdr>
  4625. int
  4626. main ()
  4627. {
  4628. if ((DIR *) 0)
  4629. return 0;
  4630. ;
  4631. return 0;
  4632. }
  4633. _ACEOF
  4634. rm -f conftest.$ac_objext
  4635. if { (ac_try="$ac_compile"
  4636. case "(($ac_try" in
  4637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4638. *) ac_try_echo=$ac_try;;
  4639. esac
  4640. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4641. $as_echo "$ac_try_echo") >&5
  4642. (eval "$ac_compile") 2>conftest.er1
  4643. ac_status=$?
  4644. grep -v '^ *+' conftest.er1 >conftest.err
  4645. rm -f conftest.er1
  4646. cat conftest.err >&5
  4647. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4648. (exit $ac_status); } && {
  4649. test -z "$ac_cxx_werror_flag" ||
  4650. test ! -s conftest.err
  4651. } && test -s conftest.$ac_objext; then
  4652. eval "$as_ac_Header=yes"
  4653. else
  4654. $as_echo "$as_me: failed program was:" >&5
  4655. sed 's/^/| /' conftest.$ac_ext >&5
  4656. eval "$as_ac_Header=no"
  4657. fi
  4658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4659. fi
  4660. ac_res=`eval 'as_val=${'$as_ac_Header'}
  4661. $as_echo "$as_val"'`
  4662. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4663. $as_echo "$ac_res" >&6; }
  4664. as_val=`eval 'as_val=${'$as_ac_Header'}
  4665. $as_echo "$as_val"'`
  4666. if test "x$as_val" = x""yes; then
  4667. cat >>confdefs.h <<_ACEOF
  4668. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4669. _ACEOF
  4670. ac_header_dirent=$ac_hdr; break
  4671. fi
  4672. done
  4673. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4674. if test $ac_header_dirent = dirent.h; then
  4675. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4676. $as_echo_n "checking for library containing opendir... " >&6; }
  4677. if test "${ac_cv_search_opendir+set}" = set; then
  4678. $as_echo_n "(cached) " >&6
  4679. else
  4680. ac_func_search_save_LIBS=$LIBS
  4681. cat >conftest.$ac_ext <<_ACEOF
  4682. /* confdefs.h. */
  4683. _ACEOF
  4684. cat confdefs.h >>conftest.$ac_ext
  4685. cat >>conftest.$ac_ext <<_ACEOF
  4686. /* end confdefs.h. */
  4687. /* Override any GCC internal prototype to avoid an error.
  4688. Use char because int might match the return type of a GCC
  4689. builtin and then its argument prototype would still apply. */
  4690. #ifdef __cplusplus
  4691. extern "C"
  4692. #endif
  4693. char opendir ();
  4694. int
  4695. main ()
  4696. {
  4697. return opendir ();
  4698. ;
  4699. return 0;
  4700. }
  4701. _ACEOF
  4702. for ac_lib in '' dir; do
  4703. if test -z "$ac_lib"; then
  4704. ac_res="none required"
  4705. else
  4706. ac_res=-l$ac_lib
  4707. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4708. fi
  4709. rm -f conftest.$ac_objext conftest$ac_exeext
  4710. if { (ac_try="$ac_link"
  4711. case "(($ac_try" in
  4712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4713. *) ac_try_echo=$ac_try;;
  4714. esac
  4715. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4716. $as_echo "$ac_try_echo") >&5
  4717. (eval "$ac_link") 2>conftest.er1
  4718. ac_status=$?
  4719. grep -v '^ *+' conftest.er1 >conftest.err
  4720. rm -f conftest.er1
  4721. cat conftest.err >&5
  4722. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4723. (exit $ac_status); } && {
  4724. test -z "$ac_cxx_werror_flag" ||
  4725. test ! -s conftest.err
  4726. } && test -s conftest$ac_exeext && {
  4727. test "$cross_compiling" = yes ||
  4728. $as_test_x conftest$ac_exeext
  4729. }; then
  4730. ac_cv_search_opendir=$ac_res
  4731. else
  4732. $as_echo "$as_me: failed program was:" >&5
  4733. sed 's/^/| /' conftest.$ac_ext >&5
  4734. fi
  4735. rm -rf conftest.dSYM
  4736. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4737. conftest$ac_exeext
  4738. if test "${ac_cv_search_opendir+set}" = set; then
  4739. break
  4740. fi
  4741. done
  4742. if test "${ac_cv_search_opendir+set}" = set; then
  4743. :
  4744. else
  4745. ac_cv_search_opendir=no
  4746. fi
  4747. rm conftest.$ac_ext
  4748. LIBS=$ac_func_search_save_LIBS
  4749. fi
  4750. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4751. $as_echo "$ac_cv_search_opendir" >&6; }
  4752. ac_res=$ac_cv_search_opendir
  4753. if test "$ac_res" != no; then
  4754. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4755. fi
  4756. else
  4757. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4758. $as_echo_n "checking for library containing opendir... " >&6; }
  4759. if test "${ac_cv_search_opendir+set}" = set; then
  4760. $as_echo_n "(cached) " >&6
  4761. else
  4762. ac_func_search_save_LIBS=$LIBS
  4763. cat >conftest.$ac_ext <<_ACEOF
  4764. /* confdefs.h. */
  4765. _ACEOF
  4766. cat confdefs.h >>conftest.$ac_ext
  4767. cat >>conftest.$ac_ext <<_ACEOF
  4768. /* end confdefs.h. */
  4769. /* Override any GCC internal prototype to avoid an error.
  4770. Use char because int might match the return type of a GCC
  4771. builtin and then its argument prototype would still apply. */
  4772. #ifdef __cplusplus
  4773. extern "C"
  4774. #endif
  4775. char opendir ();
  4776. int
  4777. main ()
  4778. {
  4779. return opendir ();
  4780. ;
  4781. return 0;
  4782. }
  4783. _ACEOF
  4784. for ac_lib in '' x; do
  4785. if test -z "$ac_lib"; then
  4786. ac_res="none required"
  4787. else
  4788. ac_res=-l$ac_lib
  4789. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4790. fi
  4791. rm -f conftest.$ac_objext conftest$ac_exeext
  4792. if { (ac_try="$ac_link"
  4793. case "(($ac_try" in
  4794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4795. *) ac_try_echo=$ac_try;;
  4796. esac
  4797. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4798. $as_echo "$ac_try_echo") >&5
  4799. (eval "$ac_link") 2>conftest.er1
  4800. ac_status=$?
  4801. grep -v '^ *+' conftest.er1 >conftest.err
  4802. rm -f conftest.er1
  4803. cat conftest.err >&5
  4804. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4805. (exit $ac_status); } && {
  4806. test -z "$ac_cxx_werror_flag" ||
  4807. test ! -s conftest.err
  4808. } && test -s conftest$ac_exeext && {
  4809. test "$cross_compiling" = yes ||
  4810. $as_test_x conftest$ac_exeext
  4811. }; then
  4812. ac_cv_search_opendir=$ac_res
  4813. else
  4814. $as_echo "$as_me: failed program was:" >&5
  4815. sed 's/^/| /' conftest.$ac_ext >&5
  4816. fi
  4817. rm -rf conftest.dSYM
  4818. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4819. conftest$ac_exeext
  4820. if test "${ac_cv_search_opendir+set}" = set; then
  4821. break
  4822. fi
  4823. done
  4824. if test "${ac_cv_search_opendir+set}" = set; then
  4825. :
  4826. else
  4827. ac_cv_search_opendir=no
  4828. fi
  4829. rm conftest.$ac_ext
  4830. LIBS=$ac_func_search_save_LIBS
  4831. fi
  4832. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4833. $as_echo "$ac_cv_search_opendir" >&6; }
  4834. ac_res=$ac_cv_search_opendir
  4835. if test "$ac_res" != no; then
  4836. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4837. fi
  4838. fi
  4839. { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4840. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4841. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4842. $as_echo_n "(cached) " >&6
  4843. else
  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 <sys/types.h>
  4851. #include <sys/wait.h>
  4852. #ifndef WEXITSTATUS
  4853. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4854. #endif
  4855. #ifndef WIFEXITED
  4856. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4857. #endif
  4858. int
  4859. main ()
  4860. {
  4861. int s;
  4862. wait (&s);
  4863. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4864. ;
  4865. return 0;
  4866. }
  4867. _ACEOF
  4868. rm -f conftest.$ac_objext
  4869. if { (ac_try="$ac_compile"
  4870. case "(($ac_try" in
  4871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4872. *) ac_try_echo=$ac_try;;
  4873. esac
  4874. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4875. $as_echo "$ac_try_echo") >&5
  4876. (eval "$ac_compile") 2>conftest.er1
  4877. ac_status=$?
  4878. grep -v '^ *+' conftest.er1 >conftest.err
  4879. rm -f conftest.er1
  4880. cat conftest.err >&5
  4881. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4882. (exit $ac_status); } && {
  4883. test -z "$ac_cxx_werror_flag" ||
  4884. test ! -s conftest.err
  4885. } && test -s conftest.$ac_objext; then
  4886. ac_cv_header_sys_wait_h=yes
  4887. else
  4888. $as_echo "$as_me: failed program was:" >&5
  4889. sed 's/^/| /' conftest.$ac_ext >&5
  4890. ac_cv_header_sys_wait_h=no
  4891. fi
  4892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4893. fi
  4894. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4895. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4896. if test $ac_cv_header_sys_wait_h = yes; then
  4897. cat >>confdefs.h <<\_ACEOF
  4898. #define HAVE_SYS_WAIT_H 1
  4899. _ACEOF
  4900. fi
  4901. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4902. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4903. if test "${ac_cv_header_time+set}" = set; then
  4904. $as_echo_n "(cached) " >&6
  4905. else
  4906. cat >conftest.$ac_ext <<_ACEOF
  4907. /* confdefs.h. */
  4908. _ACEOF
  4909. cat confdefs.h >>conftest.$ac_ext
  4910. cat >>conftest.$ac_ext <<_ACEOF
  4911. /* end confdefs.h. */
  4912. #include <sys/types.h>
  4913. #include <sys/time.h>
  4914. #include <time.h>
  4915. int
  4916. main ()
  4917. {
  4918. if ((struct tm *) 0)
  4919. return 0;
  4920. ;
  4921. return 0;
  4922. }
  4923. _ACEOF
  4924. rm -f conftest.$ac_objext
  4925. if { (ac_try="$ac_compile"
  4926. case "(($ac_try" in
  4927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4928. *) ac_try_echo=$ac_try;;
  4929. esac
  4930. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4931. $as_echo "$ac_try_echo") >&5
  4932. (eval "$ac_compile") 2>conftest.er1
  4933. ac_status=$?
  4934. grep -v '^ *+' conftest.er1 >conftest.err
  4935. rm -f conftest.er1
  4936. cat conftest.err >&5
  4937. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4938. (exit $ac_status); } && {
  4939. test -z "$ac_cxx_werror_flag" ||
  4940. test ! -s conftest.err
  4941. } && test -s conftest.$ac_objext; then
  4942. ac_cv_header_time=yes
  4943. else
  4944. $as_echo "$as_me: failed program was:" >&5
  4945. sed 's/^/| /' conftest.$ac_ext >&5
  4946. ac_cv_header_time=no
  4947. fi
  4948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4949. fi
  4950. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4951. $as_echo "$ac_cv_header_time" >&6; }
  4952. if test $ac_cv_header_time = yes; then
  4953. cat >>confdefs.h <<\_ACEOF
  4954. #define TIME_WITH_SYS_TIME 1
  4955. _ACEOF
  4956. fi
  4957. { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4958. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  4959. if test "${ac_cv_header_stat_broken+set}" = set; then
  4960. $as_echo_n "(cached) " >&6
  4961. else
  4962. cat >conftest.$ac_ext <<_ACEOF
  4963. /* confdefs.h. */
  4964. _ACEOF
  4965. cat confdefs.h >>conftest.$ac_ext
  4966. cat >>conftest.$ac_ext <<_ACEOF
  4967. /* end confdefs.h. */
  4968. #include <sys/types.h>
  4969. #include <sys/stat.h>
  4970. #if defined S_ISBLK && defined S_IFDIR
  4971. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  4972. #endif
  4973. #if defined S_ISBLK && defined S_IFCHR
  4974. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  4975. #endif
  4976. #if defined S_ISLNK && defined S_IFREG
  4977. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  4978. #endif
  4979. #if defined S_ISSOCK && defined S_IFREG
  4980. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  4981. #endif
  4982. _ACEOF
  4983. rm -f conftest.$ac_objext
  4984. if { (ac_try="$ac_compile"
  4985. case "(($ac_try" in
  4986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4987. *) ac_try_echo=$ac_try;;
  4988. esac
  4989. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4990. $as_echo "$ac_try_echo") >&5
  4991. (eval "$ac_compile") 2>conftest.er1
  4992. ac_status=$?
  4993. grep -v '^ *+' conftest.er1 >conftest.err
  4994. rm -f conftest.er1
  4995. cat conftest.err >&5
  4996. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4997. (exit $ac_status); } && {
  4998. test -z "$ac_cxx_werror_flag" ||
  4999. test ! -s conftest.err
  5000. } && test -s conftest.$ac_objext; then
  5001. ac_cv_header_stat_broken=no
  5002. else
  5003. $as_echo "$as_me: failed program was:" >&5
  5004. sed 's/^/| /' conftest.$ac_ext >&5
  5005. ac_cv_header_stat_broken=yes
  5006. fi
  5007. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5008. fi
  5009. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5010. $as_echo "$ac_cv_header_stat_broken" >&6; }
  5011. if test $ac_cv_header_stat_broken = yes; then
  5012. cat >>confdefs.h <<\_ACEOF
  5013. #define STAT_MACROS_BROKEN 1
  5014. _ACEOF
  5015. fi
  5016. #checkpoint
  5017. cat >confcache <<\_ACEOF
  5018. # This file is a shell script that caches the results of configure
  5019. # tests run on this system so they can be shared between configure
  5020. # scripts and configure runs, see configure's option --config-cache.
  5021. # It is not useful on other systems. If it contains results you don't
  5022. # want to keep, you may remove or edit it.
  5023. #
  5024. # config.status only pays attention to the cache file if you give it
  5025. # the --recheck option to rerun configure.
  5026. #
  5027. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5028. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5029. # following values.
  5030. _ACEOF
  5031. # The following way of writing the cache mishandles newlines in values,
  5032. # but we know of no workaround that is simple, portable, and efficient.
  5033. # So, we kill variables containing newlines.
  5034. # Ultrix sh set writes to stderr and can't be redirected directly,
  5035. # and sets the high bit in the cache file unless we assign to the vars.
  5036. (
  5037. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5038. eval ac_val=\$$ac_var
  5039. case $ac_val in #(
  5040. *${as_nl}*)
  5041. case $ac_var in #(
  5042. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  5043. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5044. esac
  5045. case $ac_var in #(
  5046. _ | IFS | as_nl) ;; #(
  5047. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5048. *) $as_unset $ac_var ;;
  5049. esac ;;
  5050. esac
  5051. done
  5052. (set) 2>&1 |
  5053. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5054. *${as_nl}ac_space=\ *)
  5055. # `set' does not quote correctly, so add quotes (double-quote
  5056. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5057. sed -n \
  5058. "s/'/'\\\\''/g;
  5059. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5060. ;; #(
  5061. *)
  5062. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5063. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5064. ;;
  5065. esac |
  5066. sort
  5067. ) |
  5068. sed '
  5069. /^ac_cv_env_/b end
  5070. t clear
  5071. :clear
  5072. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5073. t end
  5074. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5075. :end' >>confcache
  5076. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5077. if test -w "$cache_file"; then
  5078. test "x$cache_file" != "x/dev/null" &&
  5079. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5080. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5081. cat confcache >$cache_file
  5082. else
  5083. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5084. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5085. fi
  5086. fi
  5087. rm -f confcache
  5088. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5089. do
  5090. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5091. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5092. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5093. $as_echo_n "checking for $ac_header... " >&6; }
  5094. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5095. $as_echo_n "(cached) " >&6
  5096. fi
  5097. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5098. $as_echo "$as_val"'`
  5099. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5100. $as_echo "$ac_res" >&6; }
  5101. else
  5102. # Is the header compilable?
  5103. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5104. $as_echo_n "checking $ac_header usability... " >&6; }
  5105. cat >conftest.$ac_ext <<_ACEOF
  5106. /* confdefs.h. */
  5107. _ACEOF
  5108. cat confdefs.h >>conftest.$ac_ext
  5109. cat >>conftest.$ac_ext <<_ACEOF
  5110. /* end confdefs.h. */
  5111. $ac_includes_default
  5112. #include <$ac_header>
  5113. _ACEOF
  5114. rm -f conftest.$ac_objext
  5115. if { (ac_try="$ac_compile"
  5116. case "(($ac_try" in
  5117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5118. *) ac_try_echo=$ac_try;;
  5119. esac
  5120. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5121. $as_echo "$ac_try_echo") >&5
  5122. (eval "$ac_compile") 2>conftest.er1
  5123. ac_status=$?
  5124. grep -v '^ *+' conftest.er1 >conftest.err
  5125. rm -f conftest.er1
  5126. cat conftest.err >&5
  5127. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5128. (exit $ac_status); } && {
  5129. test -z "$ac_cxx_werror_flag" ||
  5130. test ! -s conftest.err
  5131. } && test -s conftest.$ac_objext; then
  5132. ac_header_compiler=yes
  5133. else
  5134. $as_echo "$as_me: failed program was:" >&5
  5135. sed 's/^/| /' conftest.$ac_ext >&5
  5136. ac_header_compiler=no
  5137. fi
  5138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5139. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5140. $as_echo "$ac_header_compiler" >&6; }
  5141. # Is the header present?
  5142. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5143. $as_echo_n "checking $ac_header presence... " >&6; }
  5144. cat >conftest.$ac_ext <<_ACEOF
  5145. /* confdefs.h. */
  5146. _ACEOF
  5147. cat confdefs.h >>conftest.$ac_ext
  5148. cat >>conftest.$ac_ext <<_ACEOF
  5149. /* end confdefs.h. */
  5150. #include <$ac_header>
  5151. _ACEOF
  5152. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5153. case "(($ac_try" in
  5154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5155. *) ac_try_echo=$ac_try;;
  5156. esac
  5157. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5158. $as_echo "$ac_try_echo") >&5
  5159. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5160. ac_status=$?
  5161. grep -v '^ *+' conftest.er1 >conftest.err
  5162. rm -f conftest.er1
  5163. cat conftest.err >&5
  5164. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5165. (exit $ac_status); } >/dev/null && {
  5166. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5167. test ! -s conftest.err
  5168. }; then
  5169. ac_header_preproc=yes
  5170. else
  5171. $as_echo "$as_me: failed program was:" >&5
  5172. sed 's/^/| /' conftest.$ac_ext >&5
  5173. ac_header_preproc=no
  5174. fi
  5175. rm -f conftest.err conftest.$ac_ext
  5176. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5177. $as_echo "$ac_header_preproc" >&6; }
  5178. # So? What about this header?
  5179. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  5180. yes:no: )
  5181. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5182. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5183. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5184. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5185. ac_header_preproc=yes
  5186. ;;
  5187. no:yes:* )
  5188. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5189. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5190. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5191. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5192. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5193. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5194. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5195. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5196. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5197. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5198. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5199. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5200. ;;
  5201. esac
  5202. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5203. $as_echo_n "checking for $ac_header... " >&6; }
  5204. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5205. $as_echo_n "(cached) " >&6
  5206. else
  5207. eval "$as_ac_Header=\$ac_header_preproc"
  5208. fi
  5209. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5210. $as_echo "$as_val"'`
  5211. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5212. $as_echo "$ac_res" >&6; }
  5213. fi
  5214. as_val=`eval 'as_val=${'$as_ac_Header'}
  5215. $as_echo "$as_val"'`
  5216. if test "x$as_val" = x""yes; then
  5217. cat >>confdefs.h <<_ACEOF
  5218. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5219. _ACEOF
  5220. fi
  5221. done
  5222. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h
  5223. do
  5224. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5225. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5226. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5227. $as_echo_n "checking for $ac_header... " >&6; }
  5228. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5229. $as_echo_n "(cached) " >&6
  5230. fi
  5231. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5232. $as_echo "$as_val"'`
  5233. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5234. $as_echo "$ac_res" >&6; }
  5235. else
  5236. # Is the header compilable?
  5237. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5238. $as_echo_n "checking $ac_header usability... " >&6; }
  5239. cat >conftest.$ac_ext <<_ACEOF
  5240. /* confdefs.h. */
  5241. _ACEOF
  5242. cat confdefs.h >>conftest.$ac_ext
  5243. cat >>conftest.$ac_ext <<_ACEOF
  5244. /* end confdefs.h. */
  5245. $ac_includes_default
  5246. #include <$ac_header>
  5247. _ACEOF
  5248. rm -f conftest.$ac_objext
  5249. if { (ac_try="$ac_compile"
  5250. case "(($ac_try" in
  5251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5252. *) ac_try_echo=$ac_try;;
  5253. esac
  5254. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5255. $as_echo "$ac_try_echo") >&5
  5256. (eval "$ac_compile") 2>conftest.er1
  5257. ac_status=$?
  5258. grep -v '^ *+' conftest.er1 >conftest.err
  5259. rm -f conftest.er1
  5260. cat conftest.err >&5
  5261. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5262. (exit $ac_status); } && {
  5263. test -z "$ac_cxx_werror_flag" ||
  5264. test ! -s conftest.err
  5265. } && test -s conftest.$ac_objext; then
  5266. ac_header_compiler=yes
  5267. else
  5268. $as_echo "$as_me: failed program was:" >&5
  5269. sed 's/^/| /' conftest.$ac_ext >&5
  5270. ac_header_compiler=no
  5271. fi
  5272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5273. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5274. $as_echo "$ac_header_compiler" >&6; }
  5275. # Is the header present?
  5276. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5277. $as_echo_n "checking $ac_header presence... " >&6; }
  5278. cat >conftest.$ac_ext <<_ACEOF
  5279. /* confdefs.h. */
  5280. _ACEOF
  5281. cat confdefs.h >>conftest.$ac_ext
  5282. cat >>conftest.$ac_ext <<_ACEOF
  5283. /* end confdefs.h. */
  5284. #include <$ac_header>
  5285. _ACEOF
  5286. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5287. case "(($ac_try" in
  5288. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5289. *) ac_try_echo=$ac_try;;
  5290. esac
  5291. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5292. $as_echo "$ac_try_echo") >&5
  5293. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5294. ac_status=$?
  5295. grep -v '^ *+' conftest.er1 >conftest.err
  5296. rm -f conftest.er1
  5297. cat conftest.err >&5
  5298. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5299. (exit $ac_status); } >/dev/null && {
  5300. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5301. test ! -s conftest.err
  5302. }; then
  5303. ac_header_preproc=yes
  5304. else
  5305. $as_echo "$as_me: failed program was:" >&5
  5306. sed 's/^/| /' conftest.$ac_ext >&5
  5307. ac_header_preproc=no
  5308. fi
  5309. rm -f conftest.err conftest.$ac_ext
  5310. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5311. $as_echo "$ac_header_preproc" >&6; }
  5312. # So? What about this header?
  5313. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  5314. yes:no: )
  5315. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5316. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5317. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5318. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5319. ac_header_preproc=yes
  5320. ;;
  5321. no:yes:* )
  5322. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5323. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5324. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5325. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5326. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5327. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5328. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5329. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5330. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5331. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5332. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5333. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5334. ;;
  5335. esac
  5336. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5337. $as_echo_n "checking for $ac_header... " >&6; }
  5338. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5339. $as_echo_n "(cached) " >&6
  5340. else
  5341. eval "$as_ac_Header=\$ac_header_preproc"
  5342. fi
  5343. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5344. $as_echo "$as_val"'`
  5345. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5346. $as_echo "$ac_res" >&6; }
  5347. fi
  5348. as_val=`eval 'as_val=${'$as_ac_Header'}
  5349. $as_echo "$as_val"'`
  5350. if test "x$as_val" = x""yes; then
  5351. cat >>confdefs.h <<_ACEOF
  5352. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5353. _ACEOF
  5354. fi
  5355. done
  5356. #checkpoint
  5357. cat >confcache <<\_ACEOF
  5358. # This file is a shell script that caches the results of configure
  5359. # tests run on this system so they can be shared between configure
  5360. # scripts and configure runs, see configure's option --config-cache.
  5361. # It is not useful on other systems. If it contains results you don't
  5362. # want to keep, you may remove or edit it.
  5363. #
  5364. # config.status only pays attention to the cache file if you give it
  5365. # the --recheck option to rerun configure.
  5366. #
  5367. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5368. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5369. # following values.
  5370. _ACEOF
  5371. # The following way of writing the cache mishandles newlines in values,
  5372. # but we know of no workaround that is simple, portable, and efficient.
  5373. # So, we kill variables containing newlines.
  5374. # Ultrix sh set writes to stderr and can't be redirected directly,
  5375. # and sets the high bit in the cache file unless we assign to the vars.
  5376. (
  5377. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5378. eval ac_val=\$$ac_var
  5379. case $ac_val in #(
  5380. *${as_nl}*)
  5381. case $ac_var in #(
  5382. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  5383. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5384. esac
  5385. case $ac_var in #(
  5386. _ | IFS | as_nl) ;; #(
  5387. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5388. *) $as_unset $ac_var ;;
  5389. esac ;;
  5390. esac
  5391. done
  5392. (set) 2>&1 |
  5393. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5394. *${as_nl}ac_space=\ *)
  5395. # `set' does not quote correctly, so add quotes (double-quote
  5396. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5397. sed -n \
  5398. "s/'/'\\\\''/g;
  5399. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5400. ;; #(
  5401. *)
  5402. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5403. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5404. ;;
  5405. esac |
  5406. sort
  5407. ) |
  5408. sed '
  5409. /^ac_cv_env_/b end
  5410. t clear
  5411. :clear
  5412. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5413. t end
  5414. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5415. :end' >>confcache
  5416. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5417. if test -w "$cache_file"; then
  5418. test "x$cache_file" != "x/dev/null" &&
  5419. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5420. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5421. cat confcache >$cache_file
  5422. else
  5423. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5424. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5425. fi
  5426. fi
  5427. rm -f confcache
  5428. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5429. #AC_CHECK_HEADERS(zlib.h)
  5430. #EGG_CHECK_ZLIB
  5431. #EGG_CHECK_SSL
  5432. #AC_SUBST(ZLIB)dnl
  5433. #AC_SUBST(SSL)dnl
  5434. # Checks for typedefs, structures, and compiler characteristics
  5435. { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
  5436. $as_echo_n "checking for pid_t... " >&6; }
  5437. if test "${ac_cv_type_pid_t+set}" = set; then
  5438. $as_echo_n "(cached) " >&6
  5439. else
  5440. ac_cv_type_pid_t=no
  5441. cat >conftest.$ac_ext <<_ACEOF
  5442. /* confdefs.h. */
  5443. _ACEOF
  5444. cat confdefs.h >>conftest.$ac_ext
  5445. cat >>conftest.$ac_ext <<_ACEOF
  5446. /* end confdefs.h. */
  5447. $ac_includes_default
  5448. int
  5449. main ()
  5450. {
  5451. if (sizeof (pid_t))
  5452. return 0;
  5453. ;
  5454. return 0;
  5455. }
  5456. _ACEOF
  5457. rm -f conftest.$ac_objext
  5458. if { (ac_try="$ac_compile"
  5459. case "(($ac_try" in
  5460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5461. *) ac_try_echo=$ac_try;;
  5462. esac
  5463. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5464. $as_echo "$ac_try_echo") >&5
  5465. (eval "$ac_compile") 2>conftest.er1
  5466. ac_status=$?
  5467. grep -v '^ *+' conftest.er1 >conftest.err
  5468. rm -f conftest.er1
  5469. cat conftest.err >&5
  5470. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5471. (exit $ac_status); } && {
  5472. test -z "$ac_cxx_werror_flag" ||
  5473. test ! -s conftest.err
  5474. } && test -s conftest.$ac_objext; then
  5475. cat >conftest.$ac_ext <<_ACEOF
  5476. /* confdefs.h. */
  5477. _ACEOF
  5478. cat confdefs.h >>conftest.$ac_ext
  5479. cat >>conftest.$ac_ext <<_ACEOF
  5480. /* end confdefs.h. */
  5481. $ac_includes_default
  5482. int
  5483. main ()
  5484. {
  5485. if (sizeof ((pid_t)))
  5486. return 0;
  5487. ;
  5488. return 0;
  5489. }
  5490. _ACEOF
  5491. rm -f conftest.$ac_objext
  5492. if { (ac_try="$ac_compile"
  5493. case "(($ac_try" in
  5494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5495. *) ac_try_echo=$ac_try;;
  5496. esac
  5497. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5498. $as_echo "$ac_try_echo") >&5
  5499. (eval "$ac_compile") 2>conftest.er1
  5500. ac_status=$?
  5501. grep -v '^ *+' conftest.er1 >conftest.err
  5502. rm -f conftest.er1
  5503. cat conftest.err >&5
  5504. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5505. (exit $ac_status); } && {
  5506. test -z "$ac_cxx_werror_flag" ||
  5507. test ! -s conftest.err
  5508. } && test -s conftest.$ac_objext; then
  5509. :
  5510. else
  5511. $as_echo "$as_me: failed program was:" >&5
  5512. sed 's/^/| /' conftest.$ac_ext >&5
  5513. ac_cv_type_pid_t=yes
  5514. fi
  5515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5516. else
  5517. $as_echo "$as_me: failed program was:" >&5
  5518. sed 's/^/| /' conftest.$ac_ext >&5
  5519. fi
  5520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5521. fi
  5522. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5523. $as_echo "$ac_cv_type_pid_t" >&6; }
  5524. if test "x$ac_cv_type_pid_t" = x""yes; then
  5525. :
  5526. else
  5527. cat >>confdefs.h <<_ACEOF
  5528. #define pid_t int
  5529. _ACEOF
  5530. fi
  5531. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  5532. $as_echo_n "checking for size_t... " >&6; }
  5533. if test "${ac_cv_type_size_t+set}" = set; then
  5534. $as_echo_n "(cached) " >&6
  5535. else
  5536. ac_cv_type_size_t=no
  5537. cat >conftest.$ac_ext <<_ACEOF
  5538. /* confdefs.h. */
  5539. _ACEOF
  5540. cat confdefs.h >>conftest.$ac_ext
  5541. cat >>conftest.$ac_ext <<_ACEOF
  5542. /* end confdefs.h. */
  5543. $ac_includes_default
  5544. int
  5545. main ()
  5546. {
  5547. if (sizeof (size_t))
  5548. return 0;
  5549. ;
  5550. return 0;
  5551. }
  5552. _ACEOF
  5553. rm -f conftest.$ac_objext
  5554. if { (ac_try="$ac_compile"
  5555. case "(($ac_try" in
  5556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5557. *) ac_try_echo=$ac_try;;
  5558. esac
  5559. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5560. $as_echo "$ac_try_echo") >&5
  5561. (eval "$ac_compile") 2>conftest.er1
  5562. ac_status=$?
  5563. grep -v '^ *+' conftest.er1 >conftest.err
  5564. rm -f conftest.er1
  5565. cat conftest.err >&5
  5566. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5567. (exit $ac_status); } && {
  5568. test -z "$ac_cxx_werror_flag" ||
  5569. test ! -s conftest.err
  5570. } && test -s conftest.$ac_objext; then
  5571. cat >conftest.$ac_ext <<_ACEOF
  5572. /* confdefs.h. */
  5573. _ACEOF
  5574. cat confdefs.h >>conftest.$ac_ext
  5575. cat >>conftest.$ac_ext <<_ACEOF
  5576. /* end confdefs.h. */
  5577. $ac_includes_default
  5578. int
  5579. main ()
  5580. {
  5581. if (sizeof ((size_t)))
  5582. return 0;
  5583. ;
  5584. return 0;
  5585. }
  5586. _ACEOF
  5587. rm -f conftest.$ac_objext
  5588. if { (ac_try="$ac_compile"
  5589. case "(($ac_try" in
  5590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5591. *) ac_try_echo=$ac_try;;
  5592. esac
  5593. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5594. $as_echo "$ac_try_echo") >&5
  5595. (eval "$ac_compile") 2>conftest.er1
  5596. ac_status=$?
  5597. grep -v '^ *+' conftest.er1 >conftest.err
  5598. rm -f conftest.er1
  5599. cat conftest.err >&5
  5600. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5601. (exit $ac_status); } && {
  5602. test -z "$ac_cxx_werror_flag" ||
  5603. test ! -s conftest.err
  5604. } && test -s conftest.$ac_objext; then
  5605. :
  5606. else
  5607. $as_echo "$as_me: failed program was:" >&5
  5608. sed 's/^/| /' conftest.$ac_ext >&5
  5609. ac_cv_type_size_t=yes
  5610. fi
  5611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5612. else
  5613. $as_echo "$as_me: failed program was:" >&5
  5614. sed 's/^/| /' conftest.$ac_ext >&5
  5615. fi
  5616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5617. fi
  5618. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5619. $as_echo "$ac_cv_type_size_t" >&6; }
  5620. if test "x$ac_cv_type_size_t" = x""yes; then
  5621. :
  5622. else
  5623. cat >>confdefs.h <<_ACEOF
  5624. #define size_t unsigned int
  5625. _ACEOF
  5626. fi
  5627. { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5628. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5629. if test "${ac_cv_type_uid_t+set}" = set; then
  5630. $as_echo_n "(cached) " >&6
  5631. else
  5632. cat >conftest.$ac_ext <<_ACEOF
  5633. /* confdefs.h. */
  5634. _ACEOF
  5635. cat confdefs.h >>conftest.$ac_ext
  5636. cat >>conftest.$ac_ext <<_ACEOF
  5637. /* end confdefs.h. */
  5638. #include <sys/types.h>
  5639. _ACEOF
  5640. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5641. $EGREP "uid_t" >/dev/null 2>&1; then
  5642. ac_cv_type_uid_t=yes
  5643. else
  5644. ac_cv_type_uid_t=no
  5645. fi
  5646. rm -f conftest*
  5647. fi
  5648. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5649. $as_echo "$ac_cv_type_uid_t" >&6; }
  5650. if test $ac_cv_type_uid_t = no; then
  5651. cat >>confdefs.h <<\_ACEOF
  5652. #define uid_t int
  5653. _ACEOF
  5654. cat >>confdefs.h <<\_ACEOF
  5655. #define gid_t int
  5656. _ACEOF
  5657. fi
  5658. #AC_C_CONST
  5659. { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
  5660. $as_echo_n "checking for working volatile... " >&6; }
  5661. if test "${ac_cv_c_volatile+set}" = set; then
  5662. $as_echo_n "(cached) " >&6
  5663. else
  5664. cat >conftest.$ac_ext <<_ACEOF
  5665. /* confdefs.h. */
  5666. _ACEOF
  5667. cat confdefs.h >>conftest.$ac_ext
  5668. cat >>conftest.$ac_ext <<_ACEOF
  5669. /* end confdefs.h. */
  5670. int
  5671. main ()
  5672. {
  5673. volatile int x;
  5674. int * volatile y = (int *) 0;
  5675. return !x && !y;
  5676. ;
  5677. return 0;
  5678. }
  5679. _ACEOF
  5680. rm -f conftest.$ac_objext
  5681. if { (ac_try="$ac_compile"
  5682. case "(($ac_try" in
  5683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5684. *) ac_try_echo=$ac_try;;
  5685. esac
  5686. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5687. $as_echo "$ac_try_echo") >&5
  5688. (eval "$ac_compile") 2>conftest.er1
  5689. ac_status=$?
  5690. grep -v '^ *+' conftest.er1 >conftest.err
  5691. rm -f conftest.er1
  5692. cat conftest.err >&5
  5693. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5694. (exit $ac_status); } && {
  5695. test -z "$ac_cxx_werror_flag" ||
  5696. test ! -s conftest.err
  5697. } && test -s conftest.$ac_objext; then
  5698. ac_cv_c_volatile=yes
  5699. else
  5700. $as_echo "$as_me: failed program was:" >&5
  5701. sed 's/^/| /' conftest.$ac_ext >&5
  5702. ac_cv_c_volatile=no
  5703. fi
  5704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5705. fi
  5706. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5707. $as_echo "$ac_cv_c_volatile" >&6; }
  5708. if test $ac_cv_c_volatile = no; then
  5709. cat >>confdefs.h <<\_ACEOF
  5710. #define volatile /**/
  5711. _ACEOF
  5712. fi
  5713. { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5714. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5715. if test "${ac_cv_c_bigendian+set}" = set; then
  5716. $as_echo_n "(cached) " >&6
  5717. else
  5718. ac_cv_c_bigendian=unknown
  5719. # See if we're dealing with a universal compiler.
  5720. cat >conftest.$ac_ext <<_ACEOF
  5721. /* confdefs.h. */
  5722. _ACEOF
  5723. cat confdefs.h >>conftest.$ac_ext
  5724. cat >>conftest.$ac_ext <<_ACEOF
  5725. /* end confdefs.h. */
  5726. #ifndef __APPLE_CC__
  5727. not a universal capable compiler
  5728. #endif
  5729. typedef int dummy;
  5730. _ACEOF
  5731. rm -f conftest.$ac_objext
  5732. if { (ac_try="$ac_compile"
  5733. case "(($ac_try" in
  5734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5735. *) ac_try_echo=$ac_try;;
  5736. esac
  5737. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5738. $as_echo "$ac_try_echo") >&5
  5739. (eval "$ac_compile") 2>conftest.er1
  5740. ac_status=$?
  5741. grep -v '^ *+' conftest.er1 >conftest.err
  5742. rm -f conftest.er1
  5743. cat conftest.err >&5
  5744. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5745. (exit $ac_status); } && {
  5746. test -z "$ac_cxx_werror_flag" ||
  5747. test ! -s conftest.err
  5748. } && test -s conftest.$ac_objext; then
  5749. # Check for potential -arch flags. It is not universal unless
  5750. # there are some -arch flags. Note that *ppc* also matches
  5751. # ppc64. This check is also rather less than ideal.
  5752. case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
  5753. *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
  5754. esac
  5755. else
  5756. $as_echo "$as_me: failed program was:" >&5
  5757. sed 's/^/| /' conftest.$ac_ext >&5
  5758. fi
  5759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5760. if test $ac_cv_c_bigendian = unknown; then
  5761. # See if sys/param.h defines the BYTE_ORDER macro.
  5762. cat >conftest.$ac_ext <<_ACEOF
  5763. /* confdefs.h. */
  5764. _ACEOF
  5765. cat confdefs.h >>conftest.$ac_ext
  5766. cat >>conftest.$ac_ext <<_ACEOF
  5767. /* end confdefs.h. */
  5768. #include <sys/types.h>
  5769. #include <sys/param.h>
  5770. int
  5771. main ()
  5772. {
  5773. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  5774. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  5775. && LITTLE_ENDIAN)
  5776. bogus endian macros
  5777. #endif
  5778. ;
  5779. return 0;
  5780. }
  5781. _ACEOF
  5782. rm -f conftest.$ac_objext
  5783. if { (ac_try="$ac_compile"
  5784. case "(($ac_try" in
  5785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5786. *) ac_try_echo=$ac_try;;
  5787. esac
  5788. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5789. $as_echo "$ac_try_echo") >&5
  5790. (eval "$ac_compile") 2>conftest.er1
  5791. ac_status=$?
  5792. grep -v '^ *+' conftest.er1 >conftest.err
  5793. rm -f conftest.er1
  5794. cat conftest.err >&5
  5795. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5796. (exit $ac_status); } && {
  5797. test -z "$ac_cxx_werror_flag" ||
  5798. test ! -s conftest.err
  5799. } && test -s conftest.$ac_objext; then
  5800. # It does; now see whether it defined to BIG_ENDIAN or not.
  5801. cat >conftest.$ac_ext <<_ACEOF
  5802. /* confdefs.h. */
  5803. _ACEOF
  5804. cat confdefs.h >>conftest.$ac_ext
  5805. cat >>conftest.$ac_ext <<_ACEOF
  5806. /* end confdefs.h. */
  5807. #include <sys/types.h>
  5808. #include <sys/param.h>
  5809. int
  5810. main ()
  5811. {
  5812. #if BYTE_ORDER != BIG_ENDIAN
  5813. not big endian
  5814. #endif
  5815. ;
  5816. return 0;
  5817. }
  5818. _ACEOF
  5819. rm -f conftest.$ac_objext
  5820. if { (ac_try="$ac_compile"
  5821. case "(($ac_try" in
  5822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5823. *) ac_try_echo=$ac_try;;
  5824. esac
  5825. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5826. $as_echo "$ac_try_echo") >&5
  5827. (eval "$ac_compile") 2>conftest.er1
  5828. ac_status=$?
  5829. grep -v '^ *+' conftest.er1 >conftest.err
  5830. rm -f conftest.er1
  5831. cat conftest.err >&5
  5832. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5833. (exit $ac_status); } && {
  5834. test -z "$ac_cxx_werror_flag" ||
  5835. test ! -s conftest.err
  5836. } && test -s conftest.$ac_objext; then
  5837. ac_cv_c_bigendian=yes
  5838. else
  5839. $as_echo "$as_me: failed program was:" >&5
  5840. sed 's/^/| /' conftest.$ac_ext >&5
  5841. ac_cv_c_bigendian=no
  5842. fi
  5843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5844. else
  5845. $as_echo "$as_me: failed program was:" >&5
  5846. sed 's/^/| /' conftest.$ac_ext >&5
  5847. fi
  5848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5849. fi
  5850. if test $ac_cv_c_bigendian = unknown; then
  5851. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  5852. cat >conftest.$ac_ext <<_ACEOF
  5853. /* confdefs.h. */
  5854. _ACEOF
  5855. cat confdefs.h >>conftest.$ac_ext
  5856. cat >>conftest.$ac_ext <<_ACEOF
  5857. /* end confdefs.h. */
  5858. #include <limits.h>
  5859. int
  5860. main ()
  5861. {
  5862. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  5863. bogus endian macros
  5864. #endif
  5865. ;
  5866. return 0;
  5867. }
  5868. _ACEOF
  5869. rm -f conftest.$ac_objext
  5870. if { (ac_try="$ac_compile"
  5871. case "(($ac_try" in
  5872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5873. *) ac_try_echo=$ac_try;;
  5874. esac
  5875. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5876. $as_echo "$ac_try_echo") >&5
  5877. (eval "$ac_compile") 2>conftest.er1
  5878. ac_status=$?
  5879. grep -v '^ *+' conftest.er1 >conftest.err
  5880. rm -f conftest.er1
  5881. cat conftest.err >&5
  5882. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5883. (exit $ac_status); } && {
  5884. test -z "$ac_cxx_werror_flag" ||
  5885. test ! -s conftest.err
  5886. } && test -s conftest.$ac_objext; then
  5887. # It does; now see whether it defined to _BIG_ENDIAN or not.
  5888. cat >conftest.$ac_ext <<_ACEOF
  5889. /* confdefs.h. */
  5890. _ACEOF
  5891. cat confdefs.h >>conftest.$ac_ext
  5892. cat >>conftest.$ac_ext <<_ACEOF
  5893. /* end confdefs.h. */
  5894. #include <limits.h>
  5895. int
  5896. main ()
  5897. {
  5898. #ifndef _BIG_ENDIAN
  5899. not big endian
  5900. #endif
  5901. ;
  5902. return 0;
  5903. }
  5904. _ACEOF
  5905. rm -f conftest.$ac_objext
  5906. if { (ac_try="$ac_compile"
  5907. case "(($ac_try" in
  5908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5909. *) ac_try_echo=$ac_try;;
  5910. esac
  5911. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5912. $as_echo "$ac_try_echo") >&5
  5913. (eval "$ac_compile") 2>conftest.er1
  5914. ac_status=$?
  5915. grep -v '^ *+' conftest.er1 >conftest.err
  5916. rm -f conftest.er1
  5917. cat conftest.err >&5
  5918. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5919. (exit $ac_status); } && {
  5920. test -z "$ac_cxx_werror_flag" ||
  5921. test ! -s conftest.err
  5922. } && test -s conftest.$ac_objext; then
  5923. ac_cv_c_bigendian=yes
  5924. else
  5925. $as_echo "$as_me: failed program was:" >&5
  5926. sed 's/^/| /' conftest.$ac_ext >&5
  5927. ac_cv_c_bigendian=no
  5928. fi
  5929. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5930. else
  5931. $as_echo "$as_me: failed program was:" >&5
  5932. sed 's/^/| /' conftest.$ac_ext >&5
  5933. fi
  5934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5935. fi
  5936. if test $ac_cv_c_bigendian = unknown; then
  5937. # Compile a test program.
  5938. if test "$cross_compiling" = yes; then
  5939. # Try to guess by grepping values from an object file.
  5940. cat >conftest.$ac_ext <<_ACEOF
  5941. /* confdefs.h. */
  5942. _ACEOF
  5943. cat confdefs.h >>conftest.$ac_ext
  5944. cat >>conftest.$ac_ext <<_ACEOF
  5945. /* end confdefs.h. */
  5946. short int ascii_mm[] =
  5947. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5948. short int ascii_ii[] =
  5949. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5950. int use_ascii (int i) {
  5951. return ascii_mm[i] + ascii_ii[i];
  5952. }
  5953. short int ebcdic_ii[] =
  5954. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5955. short int ebcdic_mm[] =
  5956. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5957. int use_ebcdic (int i) {
  5958. return ebcdic_mm[i] + ebcdic_ii[i];
  5959. }
  5960. extern int foo;
  5961. int
  5962. main ()
  5963. {
  5964. return use_ascii (foo) == use_ebcdic (foo);
  5965. ;
  5966. return 0;
  5967. }
  5968. _ACEOF
  5969. rm -f conftest.$ac_objext
  5970. if { (ac_try="$ac_compile"
  5971. case "(($ac_try" in
  5972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5973. *) ac_try_echo=$ac_try;;
  5974. esac
  5975. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5976. $as_echo "$ac_try_echo") >&5
  5977. (eval "$ac_compile") 2>conftest.er1
  5978. ac_status=$?
  5979. grep -v '^ *+' conftest.er1 >conftest.err
  5980. rm -f conftest.er1
  5981. cat conftest.err >&5
  5982. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5983. (exit $ac_status); } && {
  5984. test -z "$ac_cxx_werror_flag" ||
  5985. test ! -s conftest.err
  5986. } && test -s conftest.$ac_objext; then
  5987. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  5988. ac_cv_c_bigendian=yes
  5989. fi
  5990. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5991. if test "$ac_cv_c_bigendian" = unknown; then
  5992. ac_cv_c_bigendian=no
  5993. else
  5994. # finding both strings is unlikely to happen, but who knows?
  5995. ac_cv_c_bigendian=unknown
  5996. fi
  5997. fi
  5998. else
  5999. $as_echo "$as_me: failed program was:" >&5
  6000. sed 's/^/| /' conftest.$ac_ext >&5
  6001. fi
  6002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6003. else
  6004. cat >conftest.$ac_ext <<_ACEOF
  6005. /* confdefs.h. */
  6006. _ACEOF
  6007. cat confdefs.h >>conftest.$ac_ext
  6008. cat >>conftest.$ac_ext <<_ACEOF
  6009. /* end confdefs.h. */
  6010. $ac_includes_default
  6011. int
  6012. main ()
  6013. {
  6014. /* Are we little or big endian? From Harbison&Steele. */
  6015. union
  6016. {
  6017. long int l;
  6018. char c[sizeof (long int)];
  6019. } u;
  6020. u.l = 1;
  6021. return u.c[sizeof (long int) - 1] == 1;
  6022. ;
  6023. return 0;
  6024. }
  6025. _ACEOF
  6026. rm -f conftest$ac_exeext
  6027. if { (ac_try="$ac_link"
  6028. case "(($ac_try" in
  6029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6030. *) ac_try_echo=$ac_try;;
  6031. esac
  6032. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6033. $as_echo "$ac_try_echo") >&5
  6034. (eval "$ac_link") 2>&5
  6035. ac_status=$?
  6036. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6037. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6038. { (case "(($ac_try" in
  6039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6040. *) ac_try_echo=$ac_try;;
  6041. esac
  6042. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6043. $as_echo "$ac_try_echo") >&5
  6044. (eval "$ac_try") 2>&5
  6045. ac_status=$?
  6046. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6047. (exit $ac_status); }; }; then
  6048. ac_cv_c_bigendian=no
  6049. else
  6050. $as_echo "$as_me: program exited with status $ac_status" >&5
  6051. $as_echo "$as_me: failed program was:" >&5
  6052. sed 's/^/| /' conftest.$ac_ext >&5
  6053. ( exit $ac_status )
  6054. ac_cv_c_bigendian=yes
  6055. fi
  6056. rm -rf conftest.dSYM
  6057. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6058. fi
  6059. fi
  6060. fi
  6061. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6062. $as_echo "$ac_cv_c_bigendian" >&6; }
  6063. case $ac_cv_c_bigendian in #(
  6064. yes)
  6065. cat >>confdefs.h <<\_ACEOF
  6066. #define B_ENDIAN 1
  6067. _ACEOF
  6068. ;; #(
  6069. no)
  6070. cat >>confdefs.h <<\_ACEOF
  6071. #define L_ENDIAN 1
  6072. _ACEOF
  6073. ;; #(
  6074. universal)
  6075. cat >>confdefs.h <<\_ACEOF
  6076. #define AC_APPLE_UNIVERSAL_BUILD 1
  6077. _ACEOF
  6078. ;; #(
  6079. *)
  6080. { { $as_echo "$as_me:$LINENO: error: unknown endianness
  6081. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6082. $as_echo "$as_me: error: unknown endianness
  6083. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6084. { (exit 1); exit 1; }; } ;;
  6085. esac
  6086. #AC_C_INLINE
  6087. { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  6088. $as_echo_n "checking whether char is unsigned... " >&6; }
  6089. if test "${ac_cv_c_char_unsigned+set}" = set; then
  6090. $as_echo_n "(cached) " >&6
  6091. else
  6092. cat >conftest.$ac_ext <<_ACEOF
  6093. /* confdefs.h. */
  6094. _ACEOF
  6095. cat confdefs.h >>conftest.$ac_ext
  6096. cat >>conftest.$ac_ext <<_ACEOF
  6097. /* end confdefs.h. */
  6098. $ac_includes_default
  6099. int
  6100. main ()
  6101. {
  6102. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6103. test_array [0] = 0
  6104. ;
  6105. return 0;
  6106. }
  6107. _ACEOF
  6108. rm -f conftest.$ac_objext
  6109. if { (ac_try="$ac_compile"
  6110. case "(($ac_try" in
  6111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6112. *) ac_try_echo=$ac_try;;
  6113. esac
  6114. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6115. $as_echo "$ac_try_echo") >&5
  6116. (eval "$ac_compile") 2>conftest.er1
  6117. ac_status=$?
  6118. grep -v '^ *+' conftest.er1 >conftest.err
  6119. rm -f conftest.er1
  6120. cat conftest.err >&5
  6121. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6122. (exit $ac_status); } && {
  6123. test -z "$ac_cxx_werror_flag" ||
  6124. test ! -s conftest.err
  6125. } && test -s conftest.$ac_objext; then
  6126. ac_cv_c_char_unsigned=no
  6127. else
  6128. $as_echo "$as_me: failed program was:" >&5
  6129. sed 's/^/| /' conftest.$ac_ext >&5
  6130. ac_cv_c_char_unsigned=yes
  6131. fi
  6132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6133. fi
  6134. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  6135. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  6136. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6137. cat >>confdefs.h <<\_ACEOF
  6138. #define __CHAR_UNSIGNED__ 1
  6139. _ACEOF
  6140. fi
  6141. #AC_C_STRINGIZE
  6142. #AC_C_PROTOTYPES
  6143. #checkpoint
  6144. cat >confcache <<\_ACEOF
  6145. # This file is a shell script that caches the results of configure
  6146. # tests run on this system so they can be shared between configure
  6147. # scripts and configure runs, see configure's option --config-cache.
  6148. # It is not useful on other systems. If it contains results you don't
  6149. # want to keep, you may remove or edit it.
  6150. #
  6151. # config.status only pays attention to the cache file if you give it
  6152. # the --recheck option to rerun configure.
  6153. #
  6154. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6155. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6156. # following values.
  6157. _ACEOF
  6158. # The following way of writing the cache mishandles newlines in values,
  6159. # but we know of no workaround that is simple, portable, and efficient.
  6160. # So, we kill variables containing newlines.
  6161. # Ultrix sh set writes to stderr and can't be redirected directly,
  6162. # and sets the high bit in the cache file unless we assign to the vars.
  6163. (
  6164. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6165. eval ac_val=\$$ac_var
  6166. case $ac_val in #(
  6167. *${as_nl}*)
  6168. case $ac_var in #(
  6169. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  6170. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6171. esac
  6172. case $ac_var in #(
  6173. _ | IFS | as_nl) ;; #(
  6174. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6175. *) $as_unset $ac_var ;;
  6176. esac ;;
  6177. esac
  6178. done
  6179. (set) 2>&1 |
  6180. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6181. *${as_nl}ac_space=\ *)
  6182. # `set' does not quote correctly, so add quotes (double-quote
  6183. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6184. sed -n \
  6185. "s/'/'\\\\''/g;
  6186. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6187. ;; #(
  6188. *)
  6189. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6190. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6191. ;;
  6192. esac |
  6193. sort
  6194. ) |
  6195. sed '
  6196. /^ac_cv_env_/b end
  6197. t clear
  6198. :clear
  6199. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6200. t end
  6201. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6202. :end' >>confcache
  6203. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6204. if test -w "$cache_file"; then
  6205. test "x$cache_file" != "x/dev/null" &&
  6206. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  6207. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6208. cat confcache >$cache_file
  6209. else
  6210. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  6211. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6212. fi
  6213. fi
  6214. rm -f confcache
  6215. # The cast to long int works around a bug in the HP C Compiler
  6216. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6217. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6218. # This bug is HP SR number 8606223364.
  6219. { $as_echo "$as_me:$LINENO: checking size of short" >&5
  6220. $as_echo_n "checking size of short... " >&6; }
  6221. if test "${ac_cv_sizeof_short+set}" = set; then
  6222. $as_echo_n "(cached) " >&6
  6223. else
  6224. if test "$cross_compiling" = yes; then
  6225. # Depending upon the size, compute the lo and hi bounds.
  6226. cat >conftest.$ac_ext <<_ACEOF
  6227. /* confdefs.h. */
  6228. _ACEOF
  6229. cat confdefs.h >>conftest.$ac_ext
  6230. cat >>conftest.$ac_ext <<_ACEOF
  6231. /* end confdefs.h. */
  6232. $ac_includes_default
  6233. int
  6234. main ()
  6235. {
  6236. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
  6237. test_array [0] = 0
  6238. ;
  6239. return 0;
  6240. }
  6241. _ACEOF
  6242. rm -f conftest.$ac_objext
  6243. if { (ac_try="$ac_compile"
  6244. case "(($ac_try" in
  6245. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6246. *) ac_try_echo=$ac_try;;
  6247. esac
  6248. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6249. $as_echo "$ac_try_echo") >&5
  6250. (eval "$ac_compile") 2>conftest.er1
  6251. ac_status=$?
  6252. grep -v '^ *+' conftest.er1 >conftest.err
  6253. rm -f conftest.er1
  6254. cat conftest.err >&5
  6255. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6256. (exit $ac_status); } && {
  6257. test -z "$ac_cxx_werror_flag" ||
  6258. test ! -s conftest.err
  6259. } && test -s conftest.$ac_objext; then
  6260. ac_lo=0 ac_mid=0
  6261. while :; do
  6262. cat >conftest.$ac_ext <<_ACEOF
  6263. /* confdefs.h. */
  6264. _ACEOF
  6265. cat confdefs.h >>conftest.$ac_ext
  6266. cat >>conftest.$ac_ext <<_ACEOF
  6267. /* end confdefs.h. */
  6268. $ac_includes_default
  6269. int
  6270. main ()
  6271. {
  6272. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  6273. test_array [0] = 0
  6274. ;
  6275. return 0;
  6276. }
  6277. _ACEOF
  6278. rm -f conftest.$ac_objext
  6279. if { (ac_try="$ac_compile"
  6280. case "(($ac_try" in
  6281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6282. *) ac_try_echo=$ac_try;;
  6283. esac
  6284. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6285. $as_echo "$ac_try_echo") >&5
  6286. (eval "$ac_compile") 2>conftest.er1
  6287. ac_status=$?
  6288. grep -v '^ *+' conftest.er1 >conftest.err
  6289. rm -f conftest.er1
  6290. cat conftest.err >&5
  6291. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6292. (exit $ac_status); } && {
  6293. test -z "$ac_cxx_werror_flag" ||
  6294. test ! -s conftest.err
  6295. } && test -s conftest.$ac_objext; then
  6296. ac_hi=$ac_mid; break
  6297. else
  6298. $as_echo "$as_me: failed program was:" >&5
  6299. sed 's/^/| /' conftest.$ac_ext >&5
  6300. ac_lo=`expr $ac_mid + 1`
  6301. if test $ac_lo -le $ac_mid; then
  6302. ac_lo= ac_hi=
  6303. break
  6304. fi
  6305. ac_mid=`expr 2 '*' $ac_mid + 1`
  6306. fi
  6307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6308. done
  6309. else
  6310. $as_echo "$as_me: failed program was:" >&5
  6311. sed 's/^/| /' conftest.$ac_ext >&5
  6312. cat >conftest.$ac_ext <<_ACEOF
  6313. /* confdefs.h. */
  6314. _ACEOF
  6315. cat confdefs.h >>conftest.$ac_ext
  6316. cat >>conftest.$ac_ext <<_ACEOF
  6317. /* end confdefs.h. */
  6318. $ac_includes_default
  6319. int
  6320. main ()
  6321. {
  6322. static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
  6323. test_array [0] = 0
  6324. ;
  6325. return 0;
  6326. }
  6327. _ACEOF
  6328. rm -f conftest.$ac_objext
  6329. if { (ac_try="$ac_compile"
  6330. case "(($ac_try" in
  6331. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6332. *) ac_try_echo=$ac_try;;
  6333. esac
  6334. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6335. $as_echo "$ac_try_echo") >&5
  6336. (eval "$ac_compile") 2>conftest.er1
  6337. ac_status=$?
  6338. grep -v '^ *+' conftest.er1 >conftest.err
  6339. rm -f conftest.er1
  6340. cat conftest.err >&5
  6341. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6342. (exit $ac_status); } && {
  6343. test -z "$ac_cxx_werror_flag" ||
  6344. test ! -s conftest.err
  6345. } && test -s conftest.$ac_objext; then
  6346. ac_hi=-1 ac_mid=-1
  6347. while :; do
  6348. cat >conftest.$ac_ext <<_ACEOF
  6349. /* confdefs.h. */
  6350. _ACEOF
  6351. cat confdefs.h >>conftest.$ac_ext
  6352. cat >>conftest.$ac_ext <<_ACEOF
  6353. /* end confdefs.h. */
  6354. $ac_includes_default
  6355. int
  6356. main ()
  6357. {
  6358. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
  6359. test_array [0] = 0
  6360. ;
  6361. return 0;
  6362. }
  6363. _ACEOF
  6364. rm -f conftest.$ac_objext
  6365. if { (ac_try="$ac_compile"
  6366. case "(($ac_try" in
  6367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6368. *) ac_try_echo=$ac_try;;
  6369. esac
  6370. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6371. $as_echo "$ac_try_echo") >&5
  6372. (eval "$ac_compile") 2>conftest.er1
  6373. ac_status=$?
  6374. grep -v '^ *+' conftest.er1 >conftest.err
  6375. rm -f conftest.er1
  6376. cat conftest.err >&5
  6377. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6378. (exit $ac_status); } && {
  6379. test -z "$ac_cxx_werror_flag" ||
  6380. test ! -s conftest.err
  6381. } && test -s conftest.$ac_objext; then
  6382. ac_lo=$ac_mid; break
  6383. else
  6384. $as_echo "$as_me: failed program was:" >&5
  6385. sed 's/^/| /' conftest.$ac_ext >&5
  6386. ac_hi=`expr '(' $ac_mid ')' - 1`
  6387. if test $ac_mid -le $ac_hi; then
  6388. ac_lo= ac_hi=
  6389. break
  6390. fi
  6391. ac_mid=`expr 2 '*' $ac_mid`
  6392. fi
  6393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6394. done
  6395. else
  6396. $as_echo "$as_me: failed program was:" >&5
  6397. sed 's/^/| /' conftest.$ac_ext >&5
  6398. ac_lo= ac_hi=
  6399. fi
  6400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6401. fi
  6402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6403. # Binary search between lo and hi bounds.
  6404. while test "x$ac_lo" != "x$ac_hi"; do
  6405. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6406. cat >conftest.$ac_ext <<_ACEOF
  6407. /* confdefs.h. */
  6408. _ACEOF
  6409. cat confdefs.h >>conftest.$ac_ext
  6410. cat >>conftest.$ac_ext <<_ACEOF
  6411. /* end confdefs.h. */
  6412. $ac_includes_default
  6413. int
  6414. main ()
  6415. {
  6416. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  6417. test_array [0] = 0
  6418. ;
  6419. return 0;
  6420. }
  6421. _ACEOF
  6422. rm -f conftest.$ac_objext
  6423. if { (ac_try="$ac_compile"
  6424. case "(($ac_try" in
  6425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6426. *) ac_try_echo=$ac_try;;
  6427. esac
  6428. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6429. $as_echo "$ac_try_echo") >&5
  6430. (eval "$ac_compile") 2>conftest.er1
  6431. ac_status=$?
  6432. grep -v '^ *+' conftest.er1 >conftest.err
  6433. rm -f conftest.er1
  6434. cat conftest.err >&5
  6435. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6436. (exit $ac_status); } && {
  6437. test -z "$ac_cxx_werror_flag" ||
  6438. test ! -s conftest.err
  6439. } && test -s conftest.$ac_objext; then
  6440. ac_hi=$ac_mid
  6441. else
  6442. $as_echo "$as_me: failed program was:" >&5
  6443. sed 's/^/| /' conftest.$ac_ext >&5
  6444. ac_lo=`expr '(' $ac_mid ')' + 1`
  6445. fi
  6446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6447. done
  6448. case $ac_lo in
  6449. ?*) ac_cv_sizeof_short=$ac_lo;;
  6450. '') if test "$ac_cv_type_short" = yes; then
  6451. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6452. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6453. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  6454. See \`config.log' for more details." >&5
  6455. $as_echo "$as_me: error: cannot compute sizeof (short)
  6456. See \`config.log' for more details." >&2;}
  6457. { (exit 77); exit 77; }; }; }
  6458. else
  6459. ac_cv_sizeof_short=0
  6460. fi ;;
  6461. esac
  6462. else
  6463. cat >conftest.$ac_ext <<_ACEOF
  6464. /* confdefs.h. */
  6465. _ACEOF
  6466. cat confdefs.h >>conftest.$ac_ext
  6467. cat >>conftest.$ac_ext <<_ACEOF
  6468. /* end confdefs.h. */
  6469. $ac_includes_default
  6470. static long int longval () { return (long int) (sizeof (short)); }
  6471. static unsigned long int ulongval () { return (long int) (sizeof (short)); }
  6472. #include <stdio.h>
  6473. #include <stdlib.h>
  6474. int
  6475. main ()
  6476. {
  6477. FILE *f = fopen ("conftest.val", "w");
  6478. if (! f)
  6479. return 1;
  6480. if (((long int) (sizeof (short))) < 0)
  6481. {
  6482. long int i = longval ();
  6483. if (i != ((long int) (sizeof (short))))
  6484. return 1;
  6485. fprintf (f, "%ld", i);
  6486. }
  6487. else
  6488. {
  6489. unsigned long int i = ulongval ();
  6490. if (i != ((long int) (sizeof (short))))
  6491. return 1;
  6492. fprintf (f, "%lu", i);
  6493. }
  6494. /* Do not output a trailing newline, as this causes \r\n confusion
  6495. on some platforms. */
  6496. return ferror (f) || fclose (f) != 0;
  6497. ;
  6498. return 0;
  6499. }
  6500. _ACEOF
  6501. rm -f conftest$ac_exeext
  6502. if { (ac_try="$ac_link"
  6503. case "(($ac_try" in
  6504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6505. *) ac_try_echo=$ac_try;;
  6506. esac
  6507. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6508. $as_echo "$ac_try_echo") >&5
  6509. (eval "$ac_link") 2>&5
  6510. ac_status=$?
  6511. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6512. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6513. { (case "(($ac_try" in
  6514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6515. *) ac_try_echo=$ac_try;;
  6516. esac
  6517. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6518. $as_echo "$ac_try_echo") >&5
  6519. (eval "$ac_try") 2>&5
  6520. ac_status=$?
  6521. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6522. (exit $ac_status); }; }; then
  6523. ac_cv_sizeof_short=`cat conftest.val`
  6524. else
  6525. $as_echo "$as_me: program exited with status $ac_status" >&5
  6526. $as_echo "$as_me: failed program was:" >&5
  6527. sed 's/^/| /' conftest.$ac_ext >&5
  6528. ( exit $ac_status )
  6529. if test "$ac_cv_type_short" = yes; then
  6530. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6531. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6532. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  6533. See \`config.log' for more details." >&5
  6534. $as_echo "$as_me: error: cannot compute sizeof (short)
  6535. See \`config.log' for more details." >&2;}
  6536. { (exit 77); exit 77; }; }; }
  6537. else
  6538. ac_cv_sizeof_short=0
  6539. fi
  6540. fi
  6541. rm -rf conftest.dSYM
  6542. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6543. fi
  6544. rm -f conftest.val
  6545. fi
  6546. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  6547. $as_echo "$ac_cv_sizeof_short" >&6; }
  6548. cat >>confdefs.h <<_ACEOF
  6549. #define SIZEOF_SHORT $ac_cv_sizeof_short
  6550. _ACEOF
  6551. # The cast to long int works around a bug in the HP C Compiler
  6552. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6553. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6554. # This bug is HP SR number 8606223364.
  6555. { $as_echo "$as_me:$LINENO: checking size of int" >&5
  6556. $as_echo_n "checking size of int... " >&6; }
  6557. if test "${ac_cv_sizeof_int+set}" = set; then
  6558. $as_echo_n "(cached) " >&6
  6559. else
  6560. if test "$cross_compiling" = yes; then
  6561. # Depending upon the size, compute the lo and hi bounds.
  6562. cat >conftest.$ac_ext <<_ACEOF
  6563. /* confdefs.h. */
  6564. _ACEOF
  6565. cat confdefs.h >>conftest.$ac_ext
  6566. cat >>conftest.$ac_ext <<_ACEOF
  6567. /* end confdefs.h. */
  6568. $ac_includes_default
  6569. int
  6570. main ()
  6571. {
  6572. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
  6573. test_array [0] = 0
  6574. ;
  6575. return 0;
  6576. }
  6577. _ACEOF
  6578. rm -f conftest.$ac_objext
  6579. if { (ac_try="$ac_compile"
  6580. case "(($ac_try" in
  6581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6582. *) ac_try_echo=$ac_try;;
  6583. esac
  6584. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6585. $as_echo "$ac_try_echo") >&5
  6586. (eval "$ac_compile") 2>conftest.er1
  6587. ac_status=$?
  6588. grep -v '^ *+' conftest.er1 >conftest.err
  6589. rm -f conftest.er1
  6590. cat conftest.err >&5
  6591. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6592. (exit $ac_status); } && {
  6593. test -z "$ac_cxx_werror_flag" ||
  6594. test ! -s conftest.err
  6595. } && test -s conftest.$ac_objext; then
  6596. ac_lo=0 ac_mid=0
  6597. while :; do
  6598. cat >conftest.$ac_ext <<_ACEOF
  6599. /* confdefs.h. */
  6600. _ACEOF
  6601. cat confdefs.h >>conftest.$ac_ext
  6602. cat >>conftest.$ac_ext <<_ACEOF
  6603. /* end confdefs.h. */
  6604. $ac_includes_default
  6605. int
  6606. main ()
  6607. {
  6608. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  6609. test_array [0] = 0
  6610. ;
  6611. return 0;
  6612. }
  6613. _ACEOF
  6614. rm -f conftest.$ac_objext
  6615. if { (ac_try="$ac_compile"
  6616. case "(($ac_try" in
  6617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6618. *) ac_try_echo=$ac_try;;
  6619. esac
  6620. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6621. $as_echo "$ac_try_echo") >&5
  6622. (eval "$ac_compile") 2>conftest.er1
  6623. ac_status=$?
  6624. grep -v '^ *+' conftest.er1 >conftest.err
  6625. rm -f conftest.er1
  6626. cat conftest.err >&5
  6627. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6628. (exit $ac_status); } && {
  6629. test -z "$ac_cxx_werror_flag" ||
  6630. test ! -s conftest.err
  6631. } && test -s conftest.$ac_objext; then
  6632. ac_hi=$ac_mid; break
  6633. else
  6634. $as_echo "$as_me: failed program was:" >&5
  6635. sed 's/^/| /' conftest.$ac_ext >&5
  6636. ac_lo=`expr $ac_mid + 1`
  6637. if test $ac_lo -le $ac_mid; then
  6638. ac_lo= ac_hi=
  6639. break
  6640. fi
  6641. ac_mid=`expr 2 '*' $ac_mid + 1`
  6642. fi
  6643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6644. done
  6645. else
  6646. $as_echo "$as_me: failed program was:" >&5
  6647. sed 's/^/| /' conftest.$ac_ext >&5
  6648. cat >conftest.$ac_ext <<_ACEOF
  6649. /* confdefs.h. */
  6650. _ACEOF
  6651. cat confdefs.h >>conftest.$ac_ext
  6652. cat >>conftest.$ac_ext <<_ACEOF
  6653. /* end confdefs.h. */
  6654. $ac_includes_default
  6655. int
  6656. main ()
  6657. {
  6658. static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
  6659. test_array [0] = 0
  6660. ;
  6661. return 0;
  6662. }
  6663. _ACEOF
  6664. rm -f conftest.$ac_objext
  6665. if { (ac_try="$ac_compile"
  6666. case "(($ac_try" in
  6667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6668. *) ac_try_echo=$ac_try;;
  6669. esac
  6670. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6671. $as_echo "$ac_try_echo") >&5
  6672. (eval "$ac_compile") 2>conftest.er1
  6673. ac_status=$?
  6674. grep -v '^ *+' conftest.er1 >conftest.err
  6675. rm -f conftest.er1
  6676. cat conftest.err >&5
  6677. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6678. (exit $ac_status); } && {
  6679. test -z "$ac_cxx_werror_flag" ||
  6680. test ! -s conftest.err
  6681. } && test -s conftest.$ac_objext; then
  6682. ac_hi=-1 ac_mid=-1
  6683. while :; do
  6684. cat >conftest.$ac_ext <<_ACEOF
  6685. /* confdefs.h. */
  6686. _ACEOF
  6687. cat confdefs.h >>conftest.$ac_ext
  6688. cat >>conftest.$ac_ext <<_ACEOF
  6689. /* end confdefs.h. */
  6690. $ac_includes_default
  6691. int
  6692. main ()
  6693. {
  6694. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
  6695. test_array [0] = 0
  6696. ;
  6697. return 0;
  6698. }
  6699. _ACEOF
  6700. rm -f conftest.$ac_objext
  6701. if { (ac_try="$ac_compile"
  6702. case "(($ac_try" in
  6703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6704. *) ac_try_echo=$ac_try;;
  6705. esac
  6706. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6707. $as_echo "$ac_try_echo") >&5
  6708. (eval "$ac_compile") 2>conftest.er1
  6709. ac_status=$?
  6710. grep -v '^ *+' conftest.er1 >conftest.err
  6711. rm -f conftest.er1
  6712. cat conftest.err >&5
  6713. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6714. (exit $ac_status); } && {
  6715. test -z "$ac_cxx_werror_flag" ||
  6716. test ! -s conftest.err
  6717. } && test -s conftest.$ac_objext; then
  6718. ac_lo=$ac_mid; break
  6719. else
  6720. $as_echo "$as_me: failed program was:" >&5
  6721. sed 's/^/| /' conftest.$ac_ext >&5
  6722. ac_hi=`expr '(' $ac_mid ')' - 1`
  6723. if test $ac_mid -le $ac_hi; then
  6724. ac_lo= ac_hi=
  6725. break
  6726. fi
  6727. ac_mid=`expr 2 '*' $ac_mid`
  6728. fi
  6729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6730. done
  6731. else
  6732. $as_echo "$as_me: failed program was:" >&5
  6733. sed 's/^/| /' conftest.$ac_ext >&5
  6734. ac_lo= ac_hi=
  6735. fi
  6736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6737. fi
  6738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6739. # Binary search between lo and hi bounds.
  6740. while test "x$ac_lo" != "x$ac_hi"; do
  6741. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6742. cat >conftest.$ac_ext <<_ACEOF
  6743. /* confdefs.h. */
  6744. _ACEOF
  6745. cat confdefs.h >>conftest.$ac_ext
  6746. cat >>conftest.$ac_ext <<_ACEOF
  6747. /* end confdefs.h. */
  6748. $ac_includes_default
  6749. int
  6750. main ()
  6751. {
  6752. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  6753. test_array [0] = 0
  6754. ;
  6755. return 0;
  6756. }
  6757. _ACEOF
  6758. rm -f conftest.$ac_objext
  6759. if { (ac_try="$ac_compile"
  6760. case "(($ac_try" in
  6761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6762. *) ac_try_echo=$ac_try;;
  6763. esac
  6764. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6765. $as_echo "$ac_try_echo") >&5
  6766. (eval "$ac_compile") 2>conftest.er1
  6767. ac_status=$?
  6768. grep -v '^ *+' conftest.er1 >conftest.err
  6769. rm -f conftest.er1
  6770. cat conftest.err >&5
  6771. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6772. (exit $ac_status); } && {
  6773. test -z "$ac_cxx_werror_flag" ||
  6774. test ! -s conftest.err
  6775. } && test -s conftest.$ac_objext; then
  6776. ac_hi=$ac_mid
  6777. else
  6778. $as_echo "$as_me: failed program was:" >&5
  6779. sed 's/^/| /' conftest.$ac_ext >&5
  6780. ac_lo=`expr '(' $ac_mid ')' + 1`
  6781. fi
  6782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6783. done
  6784. case $ac_lo in
  6785. ?*) ac_cv_sizeof_int=$ac_lo;;
  6786. '') if test "$ac_cv_type_int" = yes; then
  6787. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6788. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6789. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  6790. See \`config.log' for more details." >&5
  6791. $as_echo "$as_me: error: cannot compute sizeof (int)
  6792. See \`config.log' for more details." >&2;}
  6793. { (exit 77); exit 77; }; }; }
  6794. else
  6795. ac_cv_sizeof_int=0
  6796. fi ;;
  6797. esac
  6798. else
  6799. cat >conftest.$ac_ext <<_ACEOF
  6800. /* confdefs.h. */
  6801. _ACEOF
  6802. cat confdefs.h >>conftest.$ac_ext
  6803. cat >>conftest.$ac_ext <<_ACEOF
  6804. /* end confdefs.h. */
  6805. $ac_includes_default
  6806. static long int longval () { return (long int) (sizeof (int)); }
  6807. static unsigned long int ulongval () { return (long int) (sizeof (int)); }
  6808. #include <stdio.h>
  6809. #include <stdlib.h>
  6810. int
  6811. main ()
  6812. {
  6813. FILE *f = fopen ("conftest.val", "w");
  6814. if (! f)
  6815. return 1;
  6816. if (((long int) (sizeof (int))) < 0)
  6817. {
  6818. long int i = longval ();
  6819. if (i != ((long int) (sizeof (int))))
  6820. return 1;
  6821. fprintf (f, "%ld", i);
  6822. }
  6823. else
  6824. {
  6825. unsigned long int i = ulongval ();
  6826. if (i != ((long int) (sizeof (int))))
  6827. return 1;
  6828. fprintf (f, "%lu", i);
  6829. }
  6830. /* Do not output a trailing newline, as this causes \r\n confusion
  6831. on some platforms. */
  6832. return ferror (f) || fclose (f) != 0;
  6833. ;
  6834. return 0;
  6835. }
  6836. _ACEOF
  6837. rm -f conftest$ac_exeext
  6838. if { (ac_try="$ac_link"
  6839. case "(($ac_try" in
  6840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6841. *) ac_try_echo=$ac_try;;
  6842. esac
  6843. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6844. $as_echo "$ac_try_echo") >&5
  6845. (eval "$ac_link") 2>&5
  6846. ac_status=$?
  6847. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6848. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6849. { (case "(($ac_try" in
  6850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6851. *) ac_try_echo=$ac_try;;
  6852. esac
  6853. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6854. $as_echo "$ac_try_echo") >&5
  6855. (eval "$ac_try") 2>&5
  6856. ac_status=$?
  6857. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6858. (exit $ac_status); }; }; then
  6859. ac_cv_sizeof_int=`cat conftest.val`
  6860. else
  6861. $as_echo "$as_me: program exited with status $ac_status" >&5
  6862. $as_echo "$as_me: failed program was:" >&5
  6863. sed 's/^/| /' conftest.$ac_ext >&5
  6864. ( exit $ac_status )
  6865. if test "$ac_cv_type_int" = yes; then
  6866. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6867. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6868. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  6869. See \`config.log' for more details." >&5
  6870. $as_echo "$as_me: error: cannot compute sizeof (int)
  6871. See \`config.log' for more details." >&2;}
  6872. { (exit 77); exit 77; }; }; }
  6873. else
  6874. ac_cv_sizeof_int=0
  6875. fi
  6876. fi
  6877. rm -rf conftest.dSYM
  6878. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6879. fi
  6880. rm -f conftest.val
  6881. fi
  6882. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6883. $as_echo "$ac_cv_sizeof_int" >&6; }
  6884. cat >>confdefs.h <<_ACEOF
  6885. #define SIZEOF_INT $ac_cv_sizeof_int
  6886. _ACEOF
  6887. # The cast to long int works around a bug in the HP C Compiler
  6888. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6889. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6890. # This bug is HP SR number 8606223364.
  6891. { $as_echo "$as_me:$LINENO: checking size of long" >&5
  6892. $as_echo_n "checking size of long... " >&6; }
  6893. if test "${ac_cv_sizeof_long+set}" = set; then
  6894. $as_echo_n "(cached) " >&6
  6895. else
  6896. if test "$cross_compiling" = yes; then
  6897. # Depending upon the size, compute the lo and hi bounds.
  6898. cat >conftest.$ac_ext <<_ACEOF
  6899. /* confdefs.h. */
  6900. _ACEOF
  6901. cat confdefs.h >>conftest.$ac_ext
  6902. cat >>conftest.$ac_ext <<_ACEOF
  6903. /* end confdefs.h. */
  6904. $ac_includes_default
  6905. int
  6906. main ()
  6907. {
  6908. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
  6909. test_array [0] = 0
  6910. ;
  6911. return 0;
  6912. }
  6913. _ACEOF
  6914. rm -f conftest.$ac_objext
  6915. if { (ac_try="$ac_compile"
  6916. case "(($ac_try" in
  6917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6918. *) ac_try_echo=$ac_try;;
  6919. esac
  6920. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6921. $as_echo "$ac_try_echo") >&5
  6922. (eval "$ac_compile") 2>conftest.er1
  6923. ac_status=$?
  6924. grep -v '^ *+' conftest.er1 >conftest.err
  6925. rm -f conftest.er1
  6926. cat conftest.err >&5
  6927. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6928. (exit $ac_status); } && {
  6929. test -z "$ac_cxx_werror_flag" ||
  6930. test ! -s conftest.err
  6931. } && test -s conftest.$ac_objext; then
  6932. ac_lo=0 ac_mid=0
  6933. while :; do
  6934. cat >conftest.$ac_ext <<_ACEOF
  6935. /* confdefs.h. */
  6936. _ACEOF
  6937. cat confdefs.h >>conftest.$ac_ext
  6938. cat >>conftest.$ac_ext <<_ACEOF
  6939. /* end confdefs.h. */
  6940. $ac_includes_default
  6941. int
  6942. main ()
  6943. {
  6944. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  6945. test_array [0] = 0
  6946. ;
  6947. return 0;
  6948. }
  6949. _ACEOF
  6950. rm -f conftest.$ac_objext
  6951. if { (ac_try="$ac_compile"
  6952. case "(($ac_try" in
  6953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6954. *) ac_try_echo=$ac_try;;
  6955. esac
  6956. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6957. $as_echo "$ac_try_echo") >&5
  6958. (eval "$ac_compile") 2>conftest.er1
  6959. ac_status=$?
  6960. grep -v '^ *+' conftest.er1 >conftest.err
  6961. rm -f conftest.er1
  6962. cat conftest.err >&5
  6963. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6964. (exit $ac_status); } && {
  6965. test -z "$ac_cxx_werror_flag" ||
  6966. test ! -s conftest.err
  6967. } && test -s conftest.$ac_objext; then
  6968. ac_hi=$ac_mid; break
  6969. else
  6970. $as_echo "$as_me: failed program was:" >&5
  6971. sed 's/^/| /' conftest.$ac_ext >&5
  6972. ac_lo=`expr $ac_mid + 1`
  6973. if test $ac_lo -le $ac_mid; then
  6974. ac_lo= ac_hi=
  6975. break
  6976. fi
  6977. ac_mid=`expr 2 '*' $ac_mid + 1`
  6978. fi
  6979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6980. done
  6981. else
  6982. $as_echo "$as_me: failed program was:" >&5
  6983. sed 's/^/| /' conftest.$ac_ext >&5
  6984. cat >conftest.$ac_ext <<_ACEOF
  6985. /* confdefs.h. */
  6986. _ACEOF
  6987. cat confdefs.h >>conftest.$ac_ext
  6988. cat >>conftest.$ac_ext <<_ACEOF
  6989. /* end confdefs.h. */
  6990. $ac_includes_default
  6991. int
  6992. main ()
  6993. {
  6994. static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
  6995. test_array [0] = 0
  6996. ;
  6997. return 0;
  6998. }
  6999. _ACEOF
  7000. rm -f conftest.$ac_objext
  7001. if { (ac_try="$ac_compile"
  7002. case "(($ac_try" in
  7003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7004. *) ac_try_echo=$ac_try;;
  7005. esac
  7006. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7007. $as_echo "$ac_try_echo") >&5
  7008. (eval "$ac_compile") 2>conftest.er1
  7009. ac_status=$?
  7010. grep -v '^ *+' conftest.er1 >conftest.err
  7011. rm -f conftest.er1
  7012. cat conftest.err >&5
  7013. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7014. (exit $ac_status); } && {
  7015. test -z "$ac_cxx_werror_flag" ||
  7016. test ! -s conftest.err
  7017. } && test -s conftest.$ac_objext; then
  7018. ac_hi=-1 ac_mid=-1
  7019. while :; do
  7020. cat >conftest.$ac_ext <<_ACEOF
  7021. /* confdefs.h. */
  7022. _ACEOF
  7023. cat confdefs.h >>conftest.$ac_ext
  7024. cat >>conftest.$ac_ext <<_ACEOF
  7025. /* end confdefs.h. */
  7026. $ac_includes_default
  7027. int
  7028. main ()
  7029. {
  7030. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
  7031. test_array [0] = 0
  7032. ;
  7033. return 0;
  7034. }
  7035. _ACEOF
  7036. rm -f conftest.$ac_objext
  7037. if { (ac_try="$ac_compile"
  7038. case "(($ac_try" in
  7039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7040. *) ac_try_echo=$ac_try;;
  7041. esac
  7042. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7043. $as_echo "$ac_try_echo") >&5
  7044. (eval "$ac_compile") 2>conftest.er1
  7045. ac_status=$?
  7046. grep -v '^ *+' conftest.er1 >conftest.err
  7047. rm -f conftest.er1
  7048. cat conftest.err >&5
  7049. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7050. (exit $ac_status); } && {
  7051. test -z "$ac_cxx_werror_flag" ||
  7052. test ! -s conftest.err
  7053. } && test -s conftest.$ac_objext; then
  7054. ac_lo=$ac_mid; break
  7055. else
  7056. $as_echo "$as_me: failed program was:" >&5
  7057. sed 's/^/| /' conftest.$ac_ext >&5
  7058. ac_hi=`expr '(' $ac_mid ')' - 1`
  7059. if test $ac_mid -le $ac_hi; then
  7060. ac_lo= ac_hi=
  7061. break
  7062. fi
  7063. ac_mid=`expr 2 '*' $ac_mid`
  7064. fi
  7065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7066. done
  7067. else
  7068. $as_echo "$as_me: failed program was:" >&5
  7069. sed 's/^/| /' conftest.$ac_ext >&5
  7070. ac_lo= ac_hi=
  7071. fi
  7072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7073. fi
  7074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7075. # Binary search between lo and hi bounds.
  7076. while test "x$ac_lo" != "x$ac_hi"; do
  7077. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7078. cat >conftest.$ac_ext <<_ACEOF
  7079. /* confdefs.h. */
  7080. _ACEOF
  7081. cat confdefs.h >>conftest.$ac_ext
  7082. cat >>conftest.$ac_ext <<_ACEOF
  7083. /* end confdefs.h. */
  7084. $ac_includes_default
  7085. int
  7086. main ()
  7087. {
  7088. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  7089. test_array [0] = 0
  7090. ;
  7091. return 0;
  7092. }
  7093. _ACEOF
  7094. rm -f conftest.$ac_objext
  7095. if { (ac_try="$ac_compile"
  7096. case "(($ac_try" in
  7097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7098. *) ac_try_echo=$ac_try;;
  7099. esac
  7100. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7101. $as_echo "$ac_try_echo") >&5
  7102. (eval "$ac_compile") 2>conftest.er1
  7103. ac_status=$?
  7104. grep -v '^ *+' conftest.er1 >conftest.err
  7105. rm -f conftest.er1
  7106. cat conftest.err >&5
  7107. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7108. (exit $ac_status); } && {
  7109. test -z "$ac_cxx_werror_flag" ||
  7110. test ! -s conftest.err
  7111. } && test -s conftest.$ac_objext; then
  7112. ac_hi=$ac_mid
  7113. else
  7114. $as_echo "$as_me: failed program was:" >&5
  7115. sed 's/^/| /' conftest.$ac_ext >&5
  7116. ac_lo=`expr '(' $ac_mid ')' + 1`
  7117. fi
  7118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7119. done
  7120. case $ac_lo in
  7121. ?*) ac_cv_sizeof_long=$ac_lo;;
  7122. '') if test "$ac_cv_type_long" = yes; then
  7123. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7124. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7125. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  7126. See \`config.log' for more details." >&5
  7127. $as_echo "$as_me: error: cannot compute sizeof (long)
  7128. See \`config.log' for more details." >&2;}
  7129. { (exit 77); exit 77; }; }; }
  7130. else
  7131. ac_cv_sizeof_long=0
  7132. fi ;;
  7133. esac
  7134. else
  7135. cat >conftest.$ac_ext <<_ACEOF
  7136. /* confdefs.h. */
  7137. _ACEOF
  7138. cat confdefs.h >>conftest.$ac_ext
  7139. cat >>conftest.$ac_ext <<_ACEOF
  7140. /* end confdefs.h. */
  7141. $ac_includes_default
  7142. static long int longval () { return (long int) (sizeof (long)); }
  7143. static unsigned long int ulongval () { return (long int) (sizeof (long)); }
  7144. #include <stdio.h>
  7145. #include <stdlib.h>
  7146. int
  7147. main ()
  7148. {
  7149. FILE *f = fopen ("conftest.val", "w");
  7150. if (! f)
  7151. return 1;
  7152. if (((long int) (sizeof (long))) < 0)
  7153. {
  7154. long int i = longval ();
  7155. if (i != ((long int) (sizeof (long))))
  7156. return 1;
  7157. fprintf (f, "%ld", i);
  7158. }
  7159. else
  7160. {
  7161. unsigned long int i = ulongval ();
  7162. if (i != ((long int) (sizeof (long))))
  7163. return 1;
  7164. fprintf (f, "%lu", i);
  7165. }
  7166. /* Do not output a trailing newline, as this causes \r\n confusion
  7167. on some platforms. */
  7168. return ferror (f) || fclose (f) != 0;
  7169. ;
  7170. return 0;
  7171. }
  7172. _ACEOF
  7173. rm -f conftest$ac_exeext
  7174. if { (ac_try="$ac_link"
  7175. case "(($ac_try" in
  7176. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7177. *) ac_try_echo=$ac_try;;
  7178. esac
  7179. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7180. $as_echo "$ac_try_echo") >&5
  7181. (eval "$ac_link") 2>&5
  7182. ac_status=$?
  7183. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7184. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7185. { (case "(($ac_try" in
  7186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7187. *) ac_try_echo=$ac_try;;
  7188. esac
  7189. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7190. $as_echo "$ac_try_echo") >&5
  7191. (eval "$ac_try") 2>&5
  7192. ac_status=$?
  7193. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7194. (exit $ac_status); }; }; then
  7195. ac_cv_sizeof_long=`cat conftest.val`
  7196. else
  7197. $as_echo "$as_me: program exited with status $ac_status" >&5
  7198. $as_echo "$as_me: failed program was:" >&5
  7199. sed 's/^/| /' conftest.$ac_ext >&5
  7200. ( exit $ac_status )
  7201. if test "$ac_cv_type_long" = yes; then
  7202. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7203. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7204. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  7205. See \`config.log' for more details." >&5
  7206. $as_echo "$as_me: error: cannot compute sizeof (long)
  7207. See \`config.log' for more details." >&2;}
  7208. { (exit 77); exit 77; }; }; }
  7209. else
  7210. ac_cv_sizeof_long=0
  7211. fi
  7212. fi
  7213. rm -rf conftest.dSYM
  7214. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7215. fi
  7216. rm -f conftest.val
  7217. fi
  7218. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7219. $as_echo "$ac_cv_sizeof_long" >&6; }
  7220. cat >>confdefs.h <<_ACEOF
  7221. #define SIZEOF_LONG $ac_cv_sizeof_long
  7222. _ACEOF
  7223. # The cast to long int works around a bug in the HP C Compiler
  7224. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7225. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7226. # This bug is HP SR number 8606223364.
  7227. { $as_echo "$as_me:$LINENO: checking size of long long" >&5
  7228. $as_echo_n "checking size of long long... " >&6; }
  7229. if test "${ac_cv_sizeof_long_long+set}" = set; then
  7230. $as_echo_n "(cached) " >&6
  7231. else
  7232. if test "$cross_compiling" = yes; then
  7233. # Depending upon the size, compute the lo and hi bounds.
  7234. cat >conftest.$ac_ext <<_ACEOF
  7235. /* confdefs.h. */
  7236. _ACEOF
  7237. cat confdefs.h >>conftest.$ac_ext
  7238. cat >>conftest.$ac_ext <<_ACEOF
  7239. /* end confdefs.h. */
  7240. $ac_includes_default
  7241. int
  7242. main ()
  7243. {
  7244. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
  7245. test_array [0] = 0
  7246. ;
  7247. return 0;
  7248. }
  7249. _ACEOF
  7250. rm -f conftest.$ac_objext
  7251. if { (ac_try="$ac_compile"
  7252. case "(($ac_try" in
  7253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7254. *) ac_try_echo=$ac_try;;
  7255. esac
  7256. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7257. $as_echo "$ac_try_echo") >&5
  7258. (eval "$ac_compile") 2>conftest.er1
  7259. ac_status=$?
  7260. grep -v '^ *+' conftest.er1 >conftest.err
  7261. rm -f conftest.er1
  7262. cat conftest.err >&5
  7263. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7264. (exit $ac_status); } && {
  7265. test -z "$ac_cxx_werror_flag" ||
  7266. test ! -s conftest.err
  7267. } && test -s conftest.$ac_objext; then
  7268. ac_lo=0 ac_mid=0
  7269. while :; do
  7270. cat >conftest.$ac_ext <<_ACEOF
  7271. /* confdefs.h. */
  7272. _ACEOF
  7273. cat confdefs.h >>conftest.$ac_ext
  7274. cat >>conftest.$ac_ext <<_ACEOF
  7275. /* end confdefs.h. */
  7276. $ac_includes_default
  7277. int
  7278. main ()
  7279. {
  7280. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  7281. test_array [0] = 0
  7282. ;
  7283. return 0;
  7284. }
  7285. _ACEOF
  7286. rm -f conftest.$ac_objext
  7287. if { (ac_try="$ac_compile"
  7288. case "(($ac_try" in
  7289. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7290. *) ac_try_echo=$ac_try;;
  7291. esac
  7292. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7293. $as_echo "$ac_try_echo") >&5
  7294. (eval "$ac_compile") 2>conftest.er1
  7295. ac_status=$?
  7296. grep -v '^ *+' conftest.er1 >conftest.err
  7297. rm -f conftest.er1
  7298. cat conftest.err >&5
  7299. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7300. (exit $ac_status); } && {
  7301. test -z "$ac_cxx_werror_flag" ||
  7302. test ! -s conftest.err
  7303. } && test -s conftest.$ac_objext; then
  7304. ac_hi=$ac_mid; break
  7305. else
  7306. $as_echo "$as_me: failed program was:" >&5
  7307. sed 's/^/| /' conftest.$ac_ext >&5
  7308. ac_lo=`expr $ac_mid + 1`
  7309. if test $ac_lo -le $ac_mid; then
  7310. ac_lo= ac_hi=
  7311. break
  7312. fi
  7313. ac_mid=`expr 2 '*' $ac_mid + 1`
  7314. fi
  7315. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7316. done
  7317. else
  7318. $as_echo "$as_me: failed program was:" >&5
  7319. sed 's/^/| /' conftest.$ac_ext >&5
  7320. cat >conftest.$ac_ext <<_ACEOF
  7321. /* confdefs.h. */
  7322. _ACEOF
  7323. cat confdefs.h >>conftest.$ac_ext
  7324. cat >>conftest.$ac_ext <<_ACEOF
  7325. /* end confdefs.h. */
  7326. $ac_includes_default
  7327. int
  7328. main ()
  7329. {
  7330. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
  7331. test_array [0] = 0
  7332. ;
  7333. return 0;
  7334. }
  7335. _ACEOF
  7336. rm -f conftest.$ac_objext
  7337. if { (ac_try="$ac_compile"
  7338. case "(($ac_try" in
  7339. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7340. *) ac_try_echo=$ac_try;;
  7341. esac
  7342. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7343. $as_echo "$ac_try_echo") >&5
  7344. (eval "$ac_compile") 2>conftest.er1
  7345. ac_status=$?
  7346. grep -v '^ *+' conftest.er1 >conftest.err
  7347. rm -f conftest.er1
  7348. cat conftest.err >&5
  7349. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7350. (exit $ac_status); } && {
  7351. test -z "$ac_cxx_werror_flag" ||
  7352. test ! -s conftest.err
  7353. } && test -s conftest.$ac_objext; then
  7354. ac_hi=-1 ac_mid=-1
  7355. while :; do
  7356. cat >conftest.$ac_ext <<_ACEOF
  7357. /* confdefs.h. */
  7358. _ACEOF
  7359. cat confdefs.h >>conftest.$ac_ext
  7360. cat >>conftest.$ac_ext <<_ACEOF
  7361. /* end confdefs.h. */
  7362. $ac_includes_default
  7363. int
  7364. main ()
  7365. {
  7366. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
  7367. test_array [0] = 0
  7368. ;
  7369. return 0;
  7370. }
  7371. _ACEOF
  7372. rm -f conftest.$ac_objext
  7373. if { (ac_try="$ac_compile"
  7374. case "(($ac_try" in
  7375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7376. *) ac_try_echo=$ac_try;;
  7377. esac
  7378. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7379. $as_echo "$ac_try_echo") >&5
  7380. (eval "$ac_compile") 2>conftest.er1
  7381. ac_status=$?
  7382. grep -v '^ *+' conftest.er1 >conftest.err
  7383. rm -f conftest.er1
  7384. cat conftest.err >&5
  7385. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7386. (exit $ac_status); } && {
  7387. test -z "$ac_cxx_werror_flag" ||
  7388. test ! -s conftest.err
  7389. } && test -s conftest.$ac_objext; then
  7390. ac_lo=$ac_mid; break
  7391. else
  7392. $as_echo "$as_me: failed program was:" >&5
  7393. sed 's/^/| /' conftest.$ac_ext >&5
  7394. ac_hi=`expr '(' $ac_mid ')' - 1`
  7395. if test $ac_mid -le $ac_hi; then
  7396. ac_lo= ac_hi=
  7397. break
  7398. fi
  7399. ac_mid=`expr 2 '*' $ac_mid`
  7400. fi
  7401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7402. done
  7403. else
  7404. $as_echo "$as_me: failed program was:" >&5
  7405. sed 's/^/| /' conftest.$ac_ext >&5
  7406. ac_lo= ac_hi=
  7407. fi
  7408. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7409. fi
  7410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7411. # Binary search between lo and hi bounds.
  7412. while test "x$ac_lo" != "x$ac_hi"; do
  7413. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7414. cat >conftest.$ac_ext <<_ACEOF
  7415. /* confdefs.h. */
  7416. _ACEOF
  7417. cat confdefs.h >>conftest.$ac_ext
  7418. cat >>conftest.$ac_ext <<_ACEOF
  7419. /* end confdefs.h. */
  7420. $ac_includes_default
  7421. int
  7422. main ()
  7423. {
  7424. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  7425. test_array [0] = 0
  7426. ;
  7427. return 0;
  7428. }
  7429. _ACEOF
  7430. rm -f conftest.$ac_objext
  7431. if { (ac_try="$ac_compile"
  7432. case "(($ac_try" in
  7433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7434. *) ac_try_echo=$ac_try;;
  7435. esac
  7436. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7437. $as_echo "$ac_try_echo") >&5
  7438. (eval "$ac_compile") 2>conftest.er1
  7439. ac_status=$?
  7440. grep -v '^ *+' conftest.er1 >conftest.err
  7441. rm -f conftest.er1
  7442. cat conftest.err >&5
  7443. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7444. (exit $ac_status); } && {
  7445. test -z "$ac_cxx_werror_flag" ||
  7446. test ! -s conftest.err
  7447. } && test -s conftest.$ac_objext; then
  7448. ac_hi=$ac_mid
  7449. else
  7450. $as_echo "$as_me: failed program was:" >&5
  7451. sed 's/^/| /' conftest.$ac_ext >&5
  7452. ac_lo=`expr '(' $ac_mid ')' + 1`
  7453. fi
  7454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7455. done
  7456. case $ac_lo in
  7457. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7458. '') if test "$ac_cv_type_long_long" = yes; then
  7459. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7460. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7461. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7462. See \`config.log' for more details." >&5
  7463. $as_echo "$as_me: error: cannot compute sizeof (long long)
  7464. See \`config.log' for more details." >&2;}
  7465. { (exit 77); exit 77; }; }; }
  7466. else
  7467. ac_cv_sizeof_long_long=0
  7468. fi ;;
  7469. esac
  7470. else
  7471. cat >conftest.$ac_ext <<_ACEOF
  7472. /* confdefs.h. */
  7473. _ACEOF
  7474. cat confdefs.h >>conftest.$ac_ext
  7475. cat >>conftest.$ac_ext <<_ACEOF
  7476. /* end confdefs.h. */
  7477. $ac_includes_default
  7478. static long int longval () { return (long int) (sizeof (long long)); }
  7479. static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
  7480. #include <stdio.h>
  7481. #include <stdlib.h>
  7482. int
  7483. main ()
  7484. {
  7485. FILE *f = fopen ("conftest.val", "w");
  7486. if (! f)
  7487. return 1;
  7488. if (((long int) (sizeof (long long))) < 0)
  7489. {
  7490. long int i = longval ();
  7491. if (i != ((long int) (sizeof (long long))))
  7492. return 1;
  7493. fprintf (f, "%ld", i);
  7494. }
  7495. else
  7496. {
  7497. unsigned long int i = ulongval ();
  7498. if (i != ((long int) (sizeof (long long))))
  7499. return 1;
  7500. fprintf (f, "%lu", i);
  7501. }
  7502. /* Do not output a trailing newline, as this causes \r\n confusion
  7503. on some platforms. */
  7504. return ferror (f) || fclose (f) != 0;
  7505. ;
  7506. return 0;
  7507. }
  7508. _ACEOF
  7509. rm -f conftest$ac_exeext
  7510. if { (ac_try="$ac_link"
  7511. case "(($ac_try" in
  7512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7513. *) ac_try_echo=$ac_try;;
  7514. esac
  7515. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7516. $as_echo "$ac_try_echo") >&5
  7517. (eval "$ac_link") 2>&5
  7518. ac_status=$?
  7519. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7520. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7521. { (case "(($ac_try" in
  7522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7523. *) ac_try_echo=$ac_try;;
  7524. esac
  7525. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7526. $as_echo "$ac_try_echo") >&5
  7527. (eval "$ac_try") 2>&5
  7528. ac_status=$?
  7529. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7530. (exit $ac_status); }; }; then
  7531. ac_cv_sizeof_long_long=`cat conftest.val`
  7532. else
  7533. $as_echo "$as_me: program exited with status $ac_status" >&5
  7534. $as_echo "$as_me: failed program was:" >&5
  7535. sed 's/^/| /' conftest.$ac_ext >&5
  7536. ( exit $ac_status )
  7537. if test "$ac_cv_type_long_long" = yes; then
  7538. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7539. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7540. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7541. See \`config.log' for more details." >&5
  7542. $as_echo "$as_me: error: cannot compute sizeof (long long)
  7543. See \`config.log' for more details." >&2;}
  7544. { (exit 77); exit 77; }; }; }
  7545. else
  7546. ac_cv_sizeof_long_long=0
  7547. fi
  7548. fi
  7549. rm -rf conftest.dSYM
  7550. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7551. fi
  7552. rm -f conftest.val
  7553. fi
  7554. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  7555. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  7556. cat >>confdefs.h <<_ACEOF
  7557. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  7558. _ACEOF
  7559. # The cast to long int works around a bug in the HP C Compiler
  7560. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7561. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7562. # This bug is HP SR number 8606223364.
  7563. { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
  7564. $as_echo_n "checking size of size_t... " >&6; }
  7565. if test "${ac_cv_sizeof_size_t+set}" = set; then
  7566. $as_echo_n "(cached) " >&6
  7567. else
  7568. if test "$cross_compiling" = yes; then
  7569. # Depending upon the size, compute the lo and hi bounds.
  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. $ac_includes_default
  7577. int
  7578. main ()
  7579. {
  7580. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
  7581. test_array [0] = 0
  7582. ;
  7583. return 0;
  7584. }
  7585. _ACEOF
  7586. rm -f conftest.$ac_objext
  7587. if { (ac_try="$ac_compile"
  7588. case "(($ac_try" in
  7589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7590. *) ac_try_echo=$ac_try;;
  7591. esac
  7592. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7593. $as_echo "$ac_try_echo") >&5
  7594. (eval "$ac_compile") 2>conftest.er1
  7595. ac_status=$?
  7596. grep -v '^ *+' conftest.er1 >conftest.err
  7597. rm -f conftest.er1
  7598. cat conftest.err >&5
  7599. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7600. (exit $ac_status); } && {
  7601. test -z "$ac_cxx_werror_flag" ||
  7602. test ! -s conftest.err
  7603. } && test -s conftest.$ac_objext; then
  7604. ac_lo=0 ac_mid=0
  7605. while :; do
  7606. cat >conftest.$ac_ext <<_ACEOF
  7607. /* confdefs.h. */
  7608. _ACEOF
  7609. cat confdefs.h >>conftest.$ac_ext
  7610. cat >>conftest.$ac_ext <<_ACEOF
  7611. /* end confdefs.h. */
  7612. $ac_includes_default
  7613. int
  7614. main ()
  7615. {
  7616. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  7617. test_array [0] = 0
  7618. ;
  7619. return 0;
  7620. }
  7621. _ACEOF
  7622. rm -f conftest.$ac_objext
  7623. if { (ac_try="$ac_compile"
  7624. case "(($ac_try" in
  7625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7626. *) ac_try_echo=$ac_try;;
  7627. esac
  7628. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7629. $as_echo "$ac_try_echo") >&5
  7630. (eval "$ac_compile") 2>conftest.er1
  7631. ac_status=$?
  7632. grep -v '^ *+' conftest.er1 >conftest.err
  7633. rm -f conftest.er1
  7634. cat conftest.err >&5
  7635. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7636. (exit $ac_status); } && {
  7637. test -z "$ac_cxx_werror_flag" ||
  7638. test ! -s conftest.err
  7639. } && test -s conftest.$ac_objext; then
  7640. ac_hi=$ac_mid; break
  7641. else
  7642. $as_echo "$as_me: failed program was:" >&5
  7643. sed 's/^/| /' conftest.$ac_ext >&5
  7644. ac_lo=`expr $ac_mid + 1`
  7645. if test $ac_lo -le $ac_mid; then
  7646. ac_lo= ac_hi=
  7647. break
  7648. fi
  7649. ac_mid=`expr 2 '*' $ac_mid + 1`
  7650. fi
  7651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7652. done
  7653. else
  7654. $as_echo "$as_me: failed program was:" >&5
  7655. sed 's/^/| /' conftest.$ac_ext >&5
  7656. cat >conftest.$ac_ext <<_ACEOF
  7657. /* confdefs.h. */
  7658. _ACEOF
  7659. cat confdefs.h >>conftest.$ac_ext
  7660. cat >>conftest.$ac_ext <<_ACEOF
  7661. /* end confdefs.h. */
  7662. $ac_includes_default
  7663. int
  7664. main ()
  7665. {
  7666. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
  7667. test_array [0] = 0
  7668. ;
  7669. return 0;
  7670. }
  7671. _ACEOF
  7672. rm -f conftest.$ac_objext
  7673. if { (ac_try="$ac_compile"
  7674. case "(($ac_try" in
  7675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7676. *) ac_try_echo=$ac_try;;
  7677. esac
  7678. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7679. $as_echo "$ac_try_echo") >&5
  7680. (eval "$ac_compile") 2>conftest.er1
  7681. ac_status=$?
  7682. grep -v '^ *+' conftest.er1 >conftest.err
  7683. rm -f conftest.er1
  7684. cat conftest.err >&5
  7685. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7686. (exit $ac_status); } && {
  7687. test -z "$ac_cxx_werror_flag" ||
  7688. test ! -s conftest.err
  7689. } && test -s conftest.$ac_objext; then
  7690. ac_hi=-1 ac_mid=-1
  7691. while :; do
  7692. cat >conftest.$ac_ext <<_ACEOF
  7693. /* confdefs.h. */
  7694. _ACEOF
  7695. cat confdefs.h >>conftest.$ac_ext
  7696. cat >>conftest.$ac_ext <<_ACEOF
  7697. /* end confdefs.h. */
  7698. $ac_includes_default
  7699. int
  7700. main ()
  7701. {
  7702. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
  7703. test_array [0] = 0
  7704. ;
  7705. return 0;
  7706. }
  7707. _ACEOF
  7708. rm -f conftest.$ac_objext
  7709. if { (ac_try="$ac_compile"
  7710. case "(($ac_try" in
  7711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7712. *) ac_try_echo=$ac_try;;
  7713. esac
  7714. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7715. $as_echo "$ac_try_echo") >&5
  7716. (eval "$ac_compile") 2>conftest.er1
  7717. ac_status=$?
  7718. grep -v '^ *+' conftest.er1 >conftest.err
  7719. rm -f conftest.er1
  7720. cat conftest.err >&5
  7721. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7722. (exit $ac_status); } && {
  7723. test -z "$ac_cxx_werror_flag" ||
  7724. test ! -s conftest.err
  7725. } && test -s conftest.$ac_objext; then
  7726. ac_lo=$ac_mid; break
  7727. else
  7728. $as_echo "$as_me: failed program was:" >&5
  7729. sed 's/^/| /' conftest.$ac_ext >&5
  7730. ac_hi=`expr '(' $ac_mid ')' - 1`
  7731. if test $ac_mid -le $ac_hi; then
  7732. ac_lo= ac_hi=
  7733. break
  7734. fi
  7735. ac_mid=`expr 2 '*' $ac_mid`
  7736. fi
  7737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7738. done
  7739. else
  7740. $as_echo "$as_me: failed program was:" >&5
  7741. sed 's/^/| /' conftest.$ac_ext >&5
  7742. ac_lo= ac_hi=
  7743. fi
  7744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7745. fi
  7746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7747. # Binary search between lo and hi bounds.
  7748. while test "x$ac_lo" != "x$ac_hi"; do
  7749. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7750. cat >conftest.$ac_ext <<_ACEOF
  7751. /* confdefs.h. */
  7752. _ACEOF
  7753. cat confdefs.h >>conftest.$ac_ext
  7754. cat >>conftest.$ac_ext <<_ACEOF
  7755. /* end confdefs.h. */
  7756. $ac_includes_default
  7757. int
  7758. main ()
  7759. {
  7760. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  7761. test_array [0] = 0
  7762. ;
  7763. return 0;
  7764. }
  7765. _ACEOF
  7766. rm -f conftest.$ac_objext
  7767. if { (ac_try="$ac_compile"
  7768. case "(($ac_try" in
  7769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7770. *) ac_try_echo=$ac_try;;
  7771. esac
  7772. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7773. $as_echo "$ac_try_echo") >&5
  7774. (eval "$ac_compile") 2>conftest.er1
  7775. ac_status=$?
  7776. grep -v '^ *+' conftest.er1 >conftest.err
  7777. rm -f conftest.er1
  7778. cat conftest.err >&5
  7779. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7780. (exit $ac_status); } && {
  7781. test -z "$ac_cxx_werror_flag" ||
  7782. test ! -s conftest.err
  7783. } && test -s conftest.$ac_objext; then
  7784. ac_hi=$ac_mid
  7785. else
  7786. $as_echo "$as_me: failed program was:" >&5
  7787. sed 's/^/| /' conftest.$ac_ext >&5
  7788. ac_lo=`expr '(' $ac_mid ')' + 1`
  7789. fi
  7790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7791. done
  7792. case $ac_lo in
  7793. ?*) ac_cv_sizeof_size_t=$ac_lo;;
  7794. '') if test "$ac_cv_type_size_t" = yes; then
  7795. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7796. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7797. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  7798. See \`config.log' for more details." >&5
  7799. $as_echo "$as_me: error: cannot compute sizeof (size_t)
  7800. See \`config.log' for more details." >&2;}
  7801. { (exit 77); exit 77; }; }; }
  7802. else
  7803. ac_cv_sizeof_size_t=0
  7804. fi ;;
  7805. esac
  7806. else
  7807. cat >conftest.$ac_ext <<_ACEOF
  7808. /* confdefs.h. */
  7809. _ACEOF
  7810. cat confdefs.h >>conftest.$ac_ext
  7811. cat >>conftest.$ac_ext <<_ACEOF
  7812. /* end confdefs.h. */
  7813. $ac_includes_default
  7814. static long int longval () { return (long int) (sizeof (size_t)); }
  7815. static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
  7816. #include <stdio.h>
  7817. #include <stdlib.h>
  7818. int
  7819. main ()
  7820. {
  7821. FILE *f = fopen ("conftest.val", "w");
  7822. if (! f)
  7823. return 1;
  7824. if (((long int) (sizeof (size_t))) < 0)
  7825. {
  7826. long int i = longval ();
  7827. if (i != ((long int) (sizeof (size_t))))
  7828. return 1;
  7829. fprintf (f, "%ld", i);
  7830. }
  7831. else
  7832. {
  7833. unsigned long int i = ulongval ();
  7834. if (i != ((long int) (sizeof (size_t))))
  7835. return 1;
  7836. fprintf (f, "%lu", i);
  7837. }
  7838. /* Do not output a trailing newline, as this causes \r\n confusion
  7839. on some platforms. */
  7840. return ferror (f) || fclose (f) != 0;
  7841. ;
  7842. return 0;
  7843. }
  7844. _ACEOF
  7845. rm -f conftest$ac_exeext
  7846. if { (ac_try="$ac_link"
  7847. case "(($ac_try" in
  7848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7849. *) ac_try_echo=$ac_try;;
  7850. esac
  7851. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7852. $as_echo "$ac_try_echo") >&5
  7853. (eval "$ac_link") 2>&5
  7854. ac_status=$?
  7855. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7856. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7857. { (case "(($ac_try" in
  7858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7859. *) ac_try_echo=$ac_try;;
  7860. esac
  7861. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7862. $as_echo "$ac_try_echo") >&5
  7863. (eval "$ac_try") 2>&5
  7864. ac_status=$?
  7865. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7866. (exit $ac_status); }; }; then
  7867. ac_cv_sizeof_size_t=`cat conftest.val`
  7868. else
  7869. $as_echo "$as_me: program exited with status $ac_status" >&5
  7870. $as_echo "$as_me: failed program was:" >&5
  7871. sed 's/^/| /' conftest.$ac_ext >&5
  7872. ( exit $ac_status )
  7873. if test "$ac_cv_type_size_t" = yes; then
  7874. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7875. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7876. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  7877. See \`config.log' for more details." >&5
  7878. $as_echo "$as_me: error: cannot compute sizeof (size_t)
  7879. See \`config.log' for more details." >&2;}
  7880. { (exit 77); exit 77; }; }; }
  7881. else
  7882. ac_cv_sizeof_size_t=0
  7883. fi
  7884. fi
  7885. rm -rf conftest.dSYM
  7886. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7887. fi
  7888. rm -f conftest.val
  7889. fi
  7890. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
  7891. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  7892. cat >>confdefs.h <<_ACEOF
  7893. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  7894. _ACEOF
  7895. # The cast to long int works around a bug in the HP C Compiler
  7896. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7897. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7898. # This bug is HP SR number 8606223364.
  7899. { $as_echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
  7900. $as_echo_n "checking size of ptrdiff_t... " >&6; }
  7901. if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
  7902. $as_echo_n "(cached) " >&6
  7903. else
  7904. if test "$cross_compiling" = yes; then
  7905. # Depending upon the size, compute the lo and hi bounds.
  7906. cat >conftest.$ac_ext <<_ACEOF
  7907. /* confdefs.h. */
  7908. _ACEOF
  7909. cat confdefs.h >>conftest.$ac_ext
  7910. cat >>conftest.$ac_ext <<_ACEOF
  7911. /* end confdefs.h. */
  7912. $ac_includes_default
  7913. int
  7914. main ()
  7915. {
  7916. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= 0)];
  7917. test_array [0] = 0
  7918. ;
  7919. return 0;
  7920. }
  7921. _ACEOF
  7922. rm -f conftest.$ac_objext
  7923. if { (ac_try="$ac_compile"
  7924. case "(($ac_try" in
  7925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7926. *) ac_try_echo=$ac_try;;
  7927. esac
  7928. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7929. $as_echo "$ac_try_echo") >&5
  7930. (eval "$ac_compile") 2>conftest.er1
  7931. ac_status=$?
  7932. grep -v '^ *+' conftest.er1 >conftest.err
  7933. rm -f conftest.er1
  7934. cat conftest.err >&5
  7935. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7936. (exit $ac_status); } && {
  7937. test -z "$ac_cxx_werror_flag" ||
  7938. test ! -s conftest.err
  7939. } && test -s conftest.$ac_objext; then
  7940. ac_lo=0 ac_mid=0
  7941. while :; do
  7942. cat >conftest.$ac_ext <<_ACEOF
  7943. /* confdefs.h. */
  7944. _ACEOF
  7945. cat confdefs.h >>conftest.$ac_ext
  7946. cat >>conftest.$ac_ext <<_ACEOF
  7947. /* end confdefs.h. */
  7948. $ac_includes_default
  7949. int
  7950. main ()
  7951. {
  7952. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
  7953. test_array [0] = 0
  7954. ;
  7955. return 0;
  7956. }
  7957. _ACEOF
  7958. rm -f conftest.$ac_objext
  7959. if { (ac_try="$ac_compile"
  7960. case "(($ac_try" in
  7961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7962. *) ac_try_echo=$ac_try;;
  7963. esac
  7964. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7965. $as_echo "$ac_try_echo") >&5
  7966. (eval "$ac_compile") 2>conftest.er1
  7967. ac_status=$?
  7968. grep -v '^ *+' conftest.er1 >conftest.err
  7969. rm -f conftest.er1
  7970. cat conftest.err >&5
  7971. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7972. (exit $ac_status); } && {
  7973. test -z "$ac_cxx_werror_flag" ||
  7974. test ! -s conftest.err
  7975. } && test -s conftest.$ac_objext; then
  7976. ac_hi=$ac_mid; break
  7977. else
  7978. $as_echo "$as_me: failed program was:" >&5
  7979. sed 's/^/| /' conftest.$ac_ext >&5
  7980. ac_lo=`expr $ac_mid + 1`
  7981. if test $ac_lo -le $ac_mid; then
  7982. ac_lo= ac_hi=
  7983. break
  7984. fi
  7985. ac_mid=`expr 2 '*' $ac_mid + 1`
  7986. fi
  7987. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7988. done
  7989. else
  7990. $as_echo "$as_me: failed program was:" >&5
  7991. sed 's/^/| /' conftest.$ac_ext >&5
  7992. cat >conftest.$ac_ext <<_ACEOF
  7993. /* confdefs.h. */
  7994. _ACEOF
  7995. cat confdefs.h >>conftest.$ac_ext
  7996. cat >>conftest.$ac_ext <<_ACEOF
  7997. /* end confdefs.h. */
  7998. $ac_includes_default
  7999. int
  8000. main ()
  8001. {
  8002. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) < 0)];
  8003. test_array [0] = 0
  8004. ;
  8005. return 0;
  8006. }
  8007. _ACEOF
  8008. rm -f conftest.$ac_objext
  8009. if { (ac_try="$ac_compile"
  8010. case "(($ac_try" in
  8011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8012. *) ac_try_echo=$ac_try;;
  8013. esac
  8014. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8015. $as_echo "$ac_try_echo") >&5
  8016. (eval "$ac_compile") 2>conftest.er1
  8017. ac_status=$?
  8018. grep -v '^ *+' conftest.er1 >conftest.err
  8019. rm -f conftest.er1
  8020. cat conftest.err >&5
  8021. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8022. (exit $ac_status); } && {
  8023. test -z "$ac_cxx_werror_flag" ||
  8024. test ! -s conftest.err
  8025. } && test -s conftest.$ac_objext; then
  8026. ac_hi=-1 ac_mid=-1
  8027. while :; do
  8028. cat >conftest.$ac_ext <<_ACEOF
  8029. /* confdefs.h. */
  8030. _ACEOF
  8031. cat confdefs.h >>conftest.$ac_ext
  8032. cat >>conftest.$ac_ext <<_ACEOF
  8033. /* end confdefs.h. */
  8034. $ac_includes_default
  8035. int
  8036. main ()
  8037. {
  8038. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= $ac_mid)];
  8039. test_array [0] = 0
  8040. ;
  8041. return 0;
  8042. }
  8043. _ACEOF
  8044. rm -f conftest.$ac_objext
  8045. if { (ac_try="$ac_compile"
  8046. case "(($ac_try" in
  8047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8048. *) ac_try_echo=$ac_try;;
  8049. esac
  8050. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8051. $as_echo "$ac_try_echo") >&5
  8052. (eval "$ac_compile") 2>conftest.er1
  8053. ac_status=$?
  8054. grep -v '^ *+' conftest.er1 >conftest.err
  8055. rm -f conftest.er1
  8056. cat conftest.err >&5
  8057. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8058. (exit $ac_status); } && {
  8059. test -z "$ac_cxx_werror_flag" ||
  8060. test ! -s conftest.err
  8061. } && test -s conftest.$ac_objext; then
  8062. ac_lo=$ac_mid; break
  8063. else
  8064. $as_echo "$as_me: failed program was:" >&5
  8065. sed 's/^/| /' conftest.$ac_ext >&5
  8066. ac_hi=`expr '(' $ac_mid ')' - 1`
  8067. if test $ac_mid -le $ac_hi; then
  8068. ac_lo= ac_hi=
  8069. break
  8070. fi
  8071. ac_mid=`expr 2 '*' $ac_mid`
  8072. fi
  8073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8074. done
  8075. else
  8076. $as_echo "$as_me: failed program was:" >&5
  8077. sed 's/^/| /' conftest.$ac_ext >&5
  8078. ac_lo= ac_hi=
  8079. fi
  8080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8081. fi
  8082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8083. # Binary search between lo and hi bounds.
  8084. while test "x$ac_lo" != "x$ac_hi"; do
  8085. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8086. cat >conftest.$ac_ext <<_ACEOF
  8087. /* confdefs.h. */
  8088. _ACEOF
  8089. cat confdefs.h >>conftest.$ac_ext
  8090. cat >>conftest.$ac_ext <<_ACEOF
  8091. /* end confdefs.h. */
  8092. $ac_includes_default
  8093. int
  8094. main ()
  8095. {
  8096. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
  8097. test_array [0] = 0
  8098. ;
  8099. return 0;
  8100. }
  8101. _ACEOF
  8102. rm -f conftest.$ac_objext
  8103. if { (ac_try="$ac_compile"
  8104. case "(($ac_try" in
  8105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8106. *) ac_try_echo=$ac_try;;
  8107. esac
  8108. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8109. $as_echo "$ac_try_echo") >&5
  8110. (eval "$ac_compile") 2>conftest.er1
  8111. ac_status=$?
  8112. grep -v '^ *+' conftest.er1 >conftest.err
  8113. rm -f conftest.er1
  8114. cat conftest.err >&5
  8115. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8116. (exit $ac_status); } && {
  8117. test -z "$ac_cxx_werror_flag" ||
  8118. test ! -s conftest.err
  8119. } && test -s conftest.$ac_objext; then
  8120. ac_hi=$ac_mid
  8121. else
  8122. $as_echo "$as_me: failed program was:" >&5
  8123. sed 's/^/| /' conftest.$ac_ext >&5
  8124. ac_lo=`expr '(' $ac_mid ')' + 1`
  8125. fi
  8126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8127. done
  8128. case $ac_lo in
  8129. ?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;;
  8130. '') if test "$ac_cv_type_ptrdiff_t" = yes; then
  8131. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8132. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8133. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
  8134. See \`config.log' for more details." >&5
  8135. $as_echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
  8136. See \`config.log' for more details." >&2;}
  8137. { (exit 77); exit 77; }; }; }
  8138. else
  8139. ac_cv_sizeof_ptrdiff_t=0
  8140. fi ;;
  8141. esac
  8142. else
  8143. cat >conftest.$ac_ext <<_ACEOF
  8144. /* confdefs.h. */
  8145. _ACEOF
  8146. cat confdefs.h >>conftest.$ac_ext
  8147. cat >>conftest.$ac_ext <<_ACEOF
  8148. /* end confdefs.h. */
  8149. $ac_includes_default
  8150. static long int longval () { return (long int) (sizeof (ptrdiff_t)); }
  8151. static unsigned long int ulongval () { return (long int) (sizeof (ptrdiff_t)); }
  8152. #include <stdio.h>
  8153. #include <stdlib.h>
  8154. int
  8155. main ()
  8156. {
  8157. FILE *f = fopen ("conftest.val", "w");
  8158. if (! f)
  8159. return 1;
  8160. if (((long int) (sizeof (ptrdiff_t))) < 0)
  8161. {
  8162. long int i = longval ();
  8163. if (i != ((long int) (sizeof (ptrdiff_t))))
  8164. return 1;
  8165. fprintf (f, "%ld", i);
  8166. }
  8167. else
  8168. {
  8169. unsigned long int i = ulongval ();
  8170. if (i != ((long int) (sizeof (ptrdiff_t))))
  8171. return 1;
  8172. fprintf (f, "%lu", i);
  8173. }
  8174. /* Do not output a trailing newline, as this causes \r\n confusion
  8175. on some platforms. */
  8176. return ferror (f) || fclose (f) != 0;
  8177. ;
  8178. return 0;
  8179. }
  8180. _ACEOF
  8181. rm -f conftest$ac_exeext
  8182. if { (ac_try="$ac_link"
  8183. case "(($ac_try" in
  8184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8185. *) ac_try_echo=$ac_try;;
  8186. esac
  8187. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8188. $as_echo "$ac_try_echo") >&5
  8189. (eval "$ac_link") 2>&5
  8190. ac_status=$?
  8191. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8192. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8193. { (case "(($ac_try" in
  8194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8195. *) ac_try_echo=$ac_try;;
  8196. esac
  8197. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8198. $as_echo "$ac_try_echo") >&5
  8199. (eval "$ac_try") 2>&5
  8200. ac_status=$?
  8201. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8202. (exit $ac_status); }; }; then
  8203. ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
  8204. else
  8205. $as_echo "$as_me: program exited with status $ac_status" >&5
  8206. $as_echo "$as_me: failed program was:" >&5
  8207. sed 's/^/| /' conftest.$ac_ext >&5
  8208. ( exit $ac_status )
  8209. if test "$ac_cv_type_ptrdiff_t" = yes; then
  8210. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8211. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8212. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
  8213. See \`config.log' for more details." >&5
  8214. $as_echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
  8215. See \`config.log' for more details." >&2;}
  8216. { (exit 77); exit 77; }; }; }
  8217. else
  8218. ac_cv_sizeof_ptrdiff_t=0
  8219. fi
  8220. fi
  8221. rm -rf conftest.dSYM
  8222. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8223. fi
  8224. rm -f conftest.val
  8225. fi
  8226. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
  8227. $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
  8228. cat >>confdefs.h <<_ACEOF
  8229. #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
  8230. _ACEOF
  8231. # The cast to long int works around a bug in the HP C Compiler
  8232. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8233. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8234. # This bug is HP SR number 8606223364.
  8235. { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
  8236. $as_echo_n "checking size of time_t... " >&6; }
  8237. if test "${ac_cv_sizeof_time_t+set}" = set; then
  8238. $as_echo_n "(cached) " >&6
  8239. else
  8240. if test "$cross_compiling" = yes; then
  8241. # Depending upon the size, compute the lo and hi bounds.
  8242. cat >conftest.$ac_ext <<_ACEOF
  8243. /* confdefs.h. */
  8244. _ACEOF
  8245. cat confdefs.h >>conftest.$ac_ext
  8246. cat >>conftest.$ac_ext <<_ACEOF
  8247. /* end confdefs.h. */
  8248. $ac_includes_default
  8249. int
  8250. main ()
  8251. {
  8252. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
  8253. test_array [0] = 0
  8254. ;
  8255. return 0;
  8256. }
  8257. _ACEOF
  8258. rm -f conftest.$ac_objext
  8259. if { (ac_try="$ac_compile"
  8260. case "(($ac_try" in
  8261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8262. *) ac_try_echo=$ac_try;;
  8263. esac
  8264. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8265. $as_echo "$ac_try_echo") >&5
  8266. (eval "$ac_compile") 2>conftest.er1
  8267. ac_status=$?
  8268. grep -v '^ *+' conftest.er1 >conftest.err
  8269. rm -f conftest.er1
  8270. cat conftest.err >&5
  8271. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8272. (exit $ac_status); } && {
  8273. test -z "$ac_cxx_werror_flag" ||
  8274. test ! -s conftest.err
  8275. } && test -s conftest.$ac_objext; then
  8276. ac_lo=0 ac_mid=0
  8277. while :; do
  8278. cat >conftest.$ac_ext <<_ACEOF
  8279. /* confdefs.h. */
  8280. _ACEOF
  8281. cat confdefs.h >>conftest.$ac_ext
  8282. cat >>conftest.$ac_ext <<_ACEOF
  8283. /* end confdefs.h. */
  8284. $ac_includes_default
  8285. int
  8286. main ()
  8287. {
  8288. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
  8289. test_array [0] = 0
  8290. ;
  8291. return 0;
  8292. }
  8293. _ACEOF
  8294. rm -f conftest.$ac_objext
  8295. if { (ac_try="$ac_compile"
  8296. case "(($ac_try" in
  8297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8298. *) ac_try_echo=$ac_try;;
  8299. esac
  8300. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8301. $as_echo "$ac_try_echo") >&5
  8302. (eval "$ac_compile") 2>conftest.er1
  8303. ac_status=$?
  8304. grep -v '^ *+' conftest.er1 >conftest.err
  8305. rm -f conftest.er1
  8306. cat conftest.err >&5
  8307. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8308. (exit $ac_status); } && {
  8309. test -z "$ac_cxx_werror_flag" ||
  8310. test ! -s conftest.err
  8311. } && test -s conftest.$ac_objext; then
  8312. ac_hi=$ac_mid; break
  8313. else
  8314. $as_echo "$as_me: failed program was:" >&5
  8315. sed 's/^/| /' conftest.$ac_ext >&5
  8316. ac_lo=`expr $ac_mid + 1`
  8317. if test $ac_lo -le $ac_mid; then
  8318. ac_lo= ac_hi=
  8319. break
  8320. fi
  8321. ac_mid=`expr 2 '*' $ac_mid + 1`
  8322. fi
  8323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8324. done
  8325. else
  8326. $as_echo "$as_me: failed program was:" >&5
  8327. sed 's/^/| /' conftest.$ac_ext >&5
  8328. cat >conftest.$ac_ext <<_ACEOF
  8329. /* confdefs.h. */
  8330. _ACEOF
  8331. cat confdefs.h >>conftest.$ac_ext
  8332. cat >>conftest.$ac_ext <<_ACEOF
  8333. /* end confdefs.h. */
  8334. $ac_includes_default
  8335. int
  8336. main ()
  8337. {
  8338. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
  8339. test_array [0] = 0
  8340. ;
  8341. return 0;
  8342. }
  8343. _ACEOF
  8344. rm -f conftest.$ac_objext
  8345. if { (ac_try="$ac_compile"
  8346. case "(($ac_try" in
  8347. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8348. *) ac_try_echo=$ac_try;;
  8349. esac
  8350. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8351. $as_echo "$ac_try_echo") >&5
  8352. (eval "$ac_compile") 2>conftest.er1
  8353. ac_status=$?
  8354. grep -v '^ *+' conftest.er1 >conftest.err
  8355. rm -f conftest.er1
  8356. cat conftest.err >&5
  8357. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8358. (exit $ac_status); } && {
  8359. test -z "$ac_cxx_werror_flag" ||
  8360. test ! -s conftest.err
  8361. } && test -s conftest.$ac_objext; then
  8362. ac_hi=-1 ac_mid=-1
  8363. while :; do
  8364. cat >conftest.$ac_ext <<_ACEOF
  8365. /* confdefs.h. */
  8366. _ACEOF
  8367. cat confdefs.h >>conftest.$ac_ext
  8368. cat >>conftest.$ac_ext <<_ACEOF
  8369. /* end confdefs.h. */
  8370. $ac_includes_default
  8371. int
  8372. main ()
  8373. {
  8374. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
  8375. test_array [0] = 0
  8376. ;
  8377. return 0;
  8378. }
  8379. _ACEOF
  8380. rm -f conftest.$ac_objext
  8381. if { (ac_try="$ac_compile"
  8382. case "(($ac_try" in
  8383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8384. *) ac_try_echo=$ac_try;;
  8385. esac
  8386. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8387. $as_echo "$ac_try_echo") >&5
  8388. (eval "$ac_compile") 2>conftest.er1
  8389. ac_status=$?
  8390. grep -v '^ *+' conftest.er1 >conftest.err
  8391. rm -f conftest.er1
  8392. cat conftest.err >&5
  8393. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8394. (exit $ac_status); } && {
  8395. test -z "$ac_cxx_werror_flag" ||
  8396. test ! -s conftest.err
  8397. } && test -s conftest.$ac_objext; then
  8398. ac_lo=$ac_mid; break
  8399. else
  8400. $as_echo "$as_me: failed program was:" >&5
  8401. sed 's/^/| /' conftest.$ac_ext >&5
  8402. ac_hi=`expr '(' $ac_mid ')' - 1`
  8403. if test $ac_mid -le $ac_hi; then
  8404. ac_lo= ac_hi=
  8405. break
  8406. fi
  8407. ac_mid=`expr 2 '*' $ac_mid`
  8408. fi
  8409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8410. done
  8411. else
  8412. $as_echo "$as_me: failed program was:" >&5
  8413. sed 's/^/| /' conftest.$ac_ext >&5
  8414. ac_lo= ac_hi=
  8415. fi
  8416. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8417. fi
  8418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8419. # Binary search between lo and hi bounds.
  8420. while test "x$ac_lo" != "x$ac_hi"; do
  8421. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8422. cat >conftest.$ac_ext <<_ACEOF
  8423. /* confdefs.h. */
  8424. _ACEOF
  8425. cat confdefs.h >>conftest.$ac_ext
  8426. cat >>conftest.$ac_ext <<_ACEOF
  8427. /* end confdefs.h. */
  8428. $ac_includes_default
  8429. int
  8430. main ()
  8431. {
  8432. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
  8433. test_array [0] = 0
  8434. ;
  8435. return 0;
  8436. }
  8437. _ACEOF
  8438. rm -f conftest.$ac_objext
  8439. if { (ac_try="$ac_compile"
  8440. case "(($ac_try" in
  8441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8442. *) ac_try_echo=$ac_try;;
  8443. esac
  8444. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8445. $as_echo "$ac_try_echo") >&5
  8446. (eval "$ac_compile") 2>conftest.er1
  8447. ac_status=$?
  8448. grep -v '^ *+' conftest.er1 >conftest.err
  8449. rm -f conftest.er1
  8450. cat conftest.err >&5
  8451. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8452. (exit $ac_status); } && {
  8453. test -z "$ac_cxx_werror_flag" ||
  8454. test ! -s conftest.err
  8455. } && test -s conftest.$ac_objext; then
  8456. ac_hi=$ac_mid
  8457. else
  8458. $as_echo "$as_me: failed program was:" >&5
  8459. sed 's/^/| /' conftest.$ac_ext >&5
  8460. ac_lo=`expr '(' $ac_mid ')' + 1`
  8461. fi
  8462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8463. done
  8464. case $ac_lo in
  8465. ?*) ac_cv_sizeof_time_t=$ac_lo;;
  8466. '') if test "$ac_cv_type_time_t" = yes; then
  8467. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8468. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8469. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
  8470. See \`config.log' for more details." >&5
  8471. $as_echo "$as_me: error: cannot compute sizeof (time_t)
  8472. See \`config.log' for more details." >&2;}
  8473. { (exit 77); exit 77; }; }; }
  8474. else
  8475. ac_cv_sizeof_time_t=0
  8476. fi ;;
  8477. esac
  8478. else
  8479. cat >conftest.$ac_ext <<_ACEOF
  8480. /* confdefs.h. */
  8481. _ACEOF
  8482. cat confdefs.h >>conftest.$ac_ext
  8483. cat >>conftest.$ac_ext <<_ACEOF
  8484. /* end confdefs.h. */
  8485. $ac_includes_default
  8486. static long int longval () { return (long int) (sizeof (time_t)); }
  8487. static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
  8488. #include <stdio.h>
  8489. #include <stdlib.h>
  8490. int
  8491. main ()
  8492. {
  8493. FILE *f = fopen ("conftest.val", "w");
  8494. if (! f)
  8495. return 1;
  8496. if (((long int) (sizeof (time_t))) < 0)
  8497. {
  8498. long int i = longval ();
  8499. if (i != ((long int) (sizeof (time_t))))
  8500. return 1;
  8501. fprintf (f, "%ld", i);
  8502. }
  8503. else
  8504. {
  8505. unsigned long int i = ulongval ();
  8506. if (i != ((long int) (sizeof (time_t))))
  8507. return 1;
  8508. fprintf (f, "%lu", i);
  8509. }
  8510. /* Do not output a trailing newline, as this causes \r\n confusion
  8511. on some platforms. */
  8512. return ferror (f) || fclose (f) != 0;
  8513. ;
  8514. return 0;
  8515. }
  8516. _ACEOF
  8517. rm -f conftest$ac_exeext
  8518. if { (ac_try="$ac_link"
  8519. case "(($ac_try" in
  8520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8521. *) ac_try_echo=$ac_try;;
  8522. esac
  8523. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8524. $as_echo "$ac_try_echo") >&5
  8525. (eval "$ac_link") 2>&5
  8526. ac_status=$?
  8527. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8528. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8529. { (case "(($ac_try" in
  8530. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8531. *) ac_try_echo=$ac_try;;
  8532. esac
  8533. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8534. $as_echo "$ac_try_echo") >&5
  8535. (eval "$ac_try") 2>&5
  8536. ac_status=$?
  8537. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8538. (exit $ac_status); }; }; then
  8539. ac_cv_sizeof_time_t=`cat conftest.val`
  8540. else
  8541. $as_echo "$as_me: program exited with status $ac_status" >&5
  8542. $as_echo "$as_me: failed program was:" >&5
  8543. sed 's/^/| /' conftest.$ac_ext >&5
  8544. ( exit $ac_status )
  8545. if test "$ac_cv_type_time_t" = yes; then
  8546. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8547. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8548. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
  8549. See \`config.log' for more details." >&5
  8550. $as_echo "$as_me: error: cannot compute sizeof (time_t)
  8551. See \`config.log' for more details." >&2;}
  8552. { (exit 77); exit 77; }; }; }
  8553. else
  8554. ac_cv_sizeof_time_t=0
  8555. fi
  8556. fi
  8557. rm -rf conftest.dSYM
  8558. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8559. fi
  8560. rm -f conftest.val
  8561. fi
  8562. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
  8563. $as_echo "$ac_cv_sizeof_time_t" >&6; }
  8564. cat >>confdefs.h <<_ACEOF
  8565. #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
  8566. _ACEOF
  8567. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8568. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  8569. if test "${ac_cv_struct_tm+set}" = set; then
  8570. $as_echo_n "(cached) " >&6
  8571. else
  8572. cat >conftest.$ac_ext <<_ACEOF
  8573. /* confdefs.h. */
  8574. _ACEOF
  8575. cat confdefs.h >>conftest.$ac_ext
  8576. cat >>conftest.$ac_ext <<_ACEOF
  8577. /* end confdefs.h. */
  8578. #include <sys/types.h>
  8579. #include <time.h>
  8580. int
  8581. main ()
  8582. {
  8583. struct tm tm;
  8584. int *p = &tm.tm_sec;
  8585. return !p;
  8586. ;
  8587. return 0;
  8588. }
  8589. _ACEOF
  8590. rm -f conftest.$ac_objext
  8591. if { (ac_try="$ac_compile"
  8592. case "(($ac_try" in
  8593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8594. *) ac_try_echo=$ac_try;;
  8595. esac
  8596. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8597. $as_echo "$ac_try_echo") >&5
  8598. (eval "$ac_compile") 2>conftest.er1
  8599. ac_status=$?
  8600. grep -v '^ *+' conftest.er1 >conftest.err
  8601. rm -f conftest.er1
  8602. cat conftest.err >&5
  8603. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8604. (exit $ac_status); } && {
  8605. test -z "$ac_cxx_werror_flag" ||
  8606. test ! -s conftest.err
  8607. } && test -s conftest.$ac_objext; then
  8608. ac_cv_struct_tm=time.h
  8609. else
  8610. $as_echo "$as_me: failed program was:" >&5
  8611. sed 's/^/| /' conftest.$ac_ext >&5
  8612. ac_cv_struct_tm=sys/time.h
  8613. fi
  8614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8615. fi
  8616. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8617. $as_echo "$ac_cv_struct_tm" >&6; }
  8618. if test $ac_cv_struct_tm = sys/time.h; then
  8619. cat >>confdefs.h <<\_ACEOF
  8620. #define TM_IN_SYS_TIME 1
  8621. _ACEOF
  8622. fi
  8623. { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  8624. $as_echo_n "checking for struct tm.tm_zone... " >&6; }
  8625. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  8626. $as_echo_n "(cached) " >&6
  8627. else
  8628. cat >conftest.$ac_ext <<_ACEOF
  8629. /* confdefs.h. */
  8630. _ACEOF
  8631. cat confdefs.h >>conftest.$ac_ext
  8632. cat >>conftest.$ac_ext <<_ACEOF
  8633. /* end confdefs.h. */
  8634. #include <sys/types.h>
  8635. #include <$ac_cv_struct_tm>
  8636. int
  8637. main ()
  8638. {
  8639. static struct tm ac_aggr;
  8640. if (ac_aggr.tm_zone)
  8641. return 0;
  8642. ;
  8643. return 0;
  8644. }
  8645. _ACEOF
  8646. rm -f conftest.$ac_objext
  8647. if { (ac_try="$ac_compile"
  8648. case "(($ac_try" in
  8649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8650. *) ac_try_echo=$ac_try;;
  8651. esac
  8652. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8653. $as_echo "$ac_try_echo") >&5
  8654. (eval "$ac_compile") 2>conftest.er1
  8655. ac_status=$?
  8656. grep -v '^ *+' conftest.er1 >conftest.err
  8657. rm -f conftest.er1
  8658. cat conftest.err >&5
  8659. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8660. (exit $ac_status); } && {
  8661. test -z "$ac_cxx_werror_flag" ||
  8662. test ! -s conftest.err
  8663. } && test -s conftest.$ac_objext; then
  8664. ac_cv_member_struct_tm_tm_zone=yes
  8665. else
  8666. $as_echo "$as_me: failed program was:" >&5
  8667. sed 's/^/| /' conftest.$ac_ext >&5
  8668. cat >conftest.$ac_ext <<_ACEOF
  8669. /* confdefs.h. */
  8670. _ACEOF
  8671. cat confdefs.h >>conftest.$ac_ext
  8672. cat >>conftest.$ac_ext <<_ACEOF
  8673. /* end confdefs.h. */
  8674. #include <sys/types.h>
  8675. #include <$ac_cv_struct_tm>
  8676. int
  8677. main ()
  8678. {
  8679. static struct tm ac_aggr;
  8680. if (sizeof ac_aggr.tm_zone)
  8681. return 0;
  8682. ;
  8683. return 0;
  8684. }
  8685. _ACEOF
  8686. rm -f conftest.$ac_objext
  8687. if { (ac_try="$ac_compile"
  8688. case "(($ac_try" in
  8689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8690. *) ac_try_echo=$ac_try;;
  8691. esac
  8692. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8693. $as_echo "$ac_try_echo") >&5
  8694. (eval "$ac_compile") 2>conftest.er1
  8695. ac_status=$?
  8696. grep -v '^ *+' conftest.er1 >conftest.err
  8697. rm -f conftest.er1
  8698. cat conftest.err >&5
  8699. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8700. (exit $ac_status); } && {
  8701. test -z "$ac_cxx_werror_flag" ||
  8702. test ! -s conftest.err
  8703. } && test -s conftest.$ac_objext; then
  8704. ac_cv_member_struct_tm_tm_zone=yes
  8705. else
  8706. $as_echo "$as_me: failed program was:" >&5
  8707. sed 's/^/| /' conftest.$ac_ext >&5
  8708. ac_cv_member_struct_tm_tm_zone=no
  8709. fi
  8710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8711. fi
  8712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8713. fi
  8714. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  8715. $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
  8716. if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
  8717. cat >>confdefs.h <<_ACEOF
  8718. #define HAVE_STRUCT_TM_TM_ZONE 1
  8719. _ACEOF
  8720. fi
  8721. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  8722. cat >>confdefs.h <<\_ACEOF
  8723. #define HAVE_TM_ZONE 1
  8724. _ACEOF
  8725. else
  8726. { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
  8727. $as_echo_n "checking whether tzname is declared... " >&6; }
  8728. if test "${ac_cv_have_decl_tzname+set}" = set; then
  8729. $as_echo_n "(cached) " >&6
  8730. else
  8731. cat >conftest.$ac_ext <<_ACEOF
  8732. /* confdefs.h. */
  8733. _ACEOF
  8734. cat confdefs.h >>conftest.$ac_ext
  8735. cat >>conftest.$ac_ext <<_ACEOF
  8736. /* end confdefs.h. */
  8737. #include <time.h>
  8738. int
  8739. main ()
  8740. {
  8741. #ifndef tzname
  8742. (void) tzname;
  8743. #endif
  8744. ;
  8745. return 0;
  8746. }
  8747. _ACEOF
  8748. rm -f conftest.$ac_objext
  8749. if { (ac_try="$ac_compile"
  8750. case "(($ac_try" in
  8751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8752. *) ac_try_echo=$ac_try;;
  8753. esac
  8754. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8755. $as_echo "$ac_try_echo") >&5
  8756. (eval "$ac_compile") 2>conftest.er1
  8757. ac_status=$?
  8758. grep -v '^ *+' conftest.er1 >conftest.err
  8759. rm -f conftest.er1
  8760. cat conftest.err >&5
  8761. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8762. (exit $ac_status); } && {
  8763. test -z "$ac_cxx_werror_flag" ||
  8764. test ! -s conftest.err
  8765. } && test -s conftest.$ac_objext; then
  8766. ac_cv_have_decl_tzname=yes
  8767. else
  8768. $as_echo "$as_me: failed program was:" >&5
  8769. sed 's/^/| /' conftest.$ac_ext >&5
  8770. ac_cv_have_decl_tzname=no
  8771. fi
  8772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8773. fi
  8774. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
  8775. $as_echo "$ac_cv_have_decl_tzname" >&6; }
  8776. if test "x$ac_cv_have_decl_tzname" = x""yes; then
  8777. cat >>confdefs.h <<_ACEOF
  8778. #define HAVE_DECL_TZNAME 1
  8779. _ACEOF
  8780. else
  8781. cat >>confdefs.h <<_ACEOF
  8782. #define HAVE_DECL_TZNAME 0
  8783. _ACEOF
  8784. fi
  8785. { $as_echo "$as_me:$LINENO: checking for tzname" >&5
  8786. $as_echo_n "checking for tzname... " >&6; }
  8787. if test "${ac_cv_var_tzname+set}" = set; then
  8788. $as_echo_n "(cached) " >&6
  8789. else
  8790. cat >conftest.$ac_ext <<_ACEOF
  8791. /* confdefs.h. */
  8792. _ACEOF
  8793. cat confdefs.h >>conftest.$ac_ext
  8794. cat >>conftest.$ac_ext <<_ACEOF
  8795. /* end confdefs.h. */
  8796. #include <time.h>
  8797. #if !HAVE_DECL_TZNAME
  8798. extern char *tzname[];
  8799. #endif
  8800. int
  8801. main ()
  8802. {
  8803. return tzname[0][0];
  8804. ;
  8805. return 0;
  8806. }
  8807. _ACEOF
  8808. rm -f conftest.$ac_objext conftest$ac_exeext
  8809. if { (ac_try="$ac_link"
  8810. case "(($ac_try" in
  8811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8812. *) ac_try_echo=$ac_try;;
  8813. esac
  8814. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8815. $as_echo "$ac_try_echo") >&5
  8816. (eval "$ac_link") 2>conftest.er1
  8817. ac_status=$?
  8818. grep -v '^ *+' conftest.er1 >conftest.err
  8819. rm -f conftest.er1
  8820. cat conftest.err >&5
  8821. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8822. (exit $ac_status); } && {
  8823. test -z "$ac_cxx_werror_flag" ||
  8824. test ! -s conftest.err
  8825. } && test -s conftest$ac_exeext && {
  8826. test "$cross_compiling" = yes ||
  8827. $as_test_x conftest$ac_exeext
  8828. }; then
  8829. ac_cv_var_tzname=yes
  8830. else
  8831. $as_echo "$as_me: failed program was:" >&5
  8832. sed 's/^/| /' conftest.$ac_ext >&5
  8833. ac_cv_var_tzname=no
  8834. fi
  8835. rm -rf conftest.dSYM
  8836. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8837. conftest$ac_exeext conftest.$ac_ext
  8838. fi
  8839. { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  8840. $as_echo "$ac_cv_var_tzname" >&6; }
  8841. if test $ac_cv_var_tzname = yes; then
  8842. cat >>confdefs.h <<\_ACEOF
  8843. #define HAVE_TZNAME 1
  8844. _ACEOF
  8845. fi
  8846. fi
  8847. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8848. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  8849. if test "${ac_cv_struct_tm+set}" = set; then
  8850. $as_echo_n "(cached) " >&6
  8851. else
  8852. cat >conftest.$ac_ext <<_ACEOF
  8853. /* confdefs.h. */
  8854. _ACEOF
  8855. cat confdefs.h >>conftest.$ac_ext
  8856. cat >>conftest.$ac_ext <<_ACEOF
  8857. /* end confdefs.h. */
  8858. #include <sys/types.h>
  8859. #include <time.h>
  8860. int
  8861. main ()
  8862. {
  8863. struct tm tm;
  8864. int *p = &tm.tm_sec;
  8865. return !p;
  8866. ;
  8867. return 0;
  8868. }
  8869. _ACEOF
  8870. rm -f conftest.$ac_objext
  8871. if { (ac_try="$ac_compile"
  8872. case "(($ac_try" in
  8873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8874. *) ac_try_echo=$ac_try;;
  8875. esac
  8876. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8877. $as_echo "$ac_try_echo") >&5
  8878. (eval "$ac_compile") 2>conftest.er1
  8879. ac_status=$?
  8880. grep -v '^ *+' conftest.er1 >conftest.err
  8881. rm -f conftest.er1
  8882. cat conftest.err >&5
  8883. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8884. (exit $ac_status); } && {
  8885. test -z "$ac_cxx_werror_flag" ||
  8886. test ! -s conftest.err
  8887. } && test -s conftest.$ac_objext; then
  8888. ac_cv_struct_tm=time.h
  8889. else
  8890. $as_echo "$as_me: failed program was:" >&5
  8891. sed 's/^/| /' conftest.$ac_ext >&5
  8892. ac_cv_struct_tm=sys/time.h
  8893. fi
  8894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8895. fi
  8896. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8897. $as_echo "$ac_cv_struct_tm" >&6; }
  8898. if test $ac_cv_struct_tm = sys/time.h; then
  8899. cat >>confdefs.h <<\_ACEOF
  8900. #define TM_IN_SYS_TIME 1
  8901. _ACEOF
  8902. fi
  8903. # Checks for library functions
  8904. for ac_header in vfork.h
  8905. do
  8906. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8907. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8908. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  8909. $as_echo_n "checking for $ac_header... " >&6; }
  8910. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8911. $as_echo_n "(cached) " >&6
  8912. fi
  8913. ac_res=`eval 'as_val=${'$as_ac_Header'}
  8914. $as_echo "$as_val"'`
  8915. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  8916. $as_echo "$ac_res" >&6; }
  8917. else
  8918. # Is the header compilable?
  8919. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8920. $as_echo_n "checking $ac_header usability... " >&6; }
  8921. cat >conftest.$ac_ext <<_ACEOF
  8922. /* confdefs.h. */
  8923. _ACEOF
  8924. cat confdefs.h >>conftest.$ac_ext
  8925. cat >>conftest.$ac_ext <<_ACEOF
  8926. /* end confdefs.h. */
  8927. $ac_includes_default
  8928. #include <$ac_header>
  8929. _ACEOF
  8930. rm -f conftest.$ac_objext
  8931. if { (ac_try="$ac_compile"
  8932. case "(($ac_try" in
  8933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8934. *) ac_try_echo=$ac_try;;
  8935. esac
  8936. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8937. $as_echo "$ac_try_echo") >&5
  8938. (eval "$ac_compile") 2>conftest.er1
  8939. ac_status=$?
  8940. grep -v '^ *+' conftest.er1 >conftest.err
  8941. rm -f conftest.er1
  8942. cat conftest.err >&5
  8943. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8944. (exit $ac_status); } && {
  8945. test -z "$ac_cxx_werror_flag" ||
  8946. test ! -s conftest.err
  8947. } && test -s conftest.$ac_objext; then
  8948. ac_header_compiler=yes
  8949. else
  8950. $as_echo "$as_me: failed program was:" >&5
  8951. sed 's/^/| /' conftest.$ac_ext >&5
  8952. ac_header_compiler=no
  8953. fi
  8954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8955. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8956. $as_echo "$ac_header_compiler" >&6; }
  8957. # Is the header present?
  8958. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8959. $as_echo_n "checking $ac_header presence... " >&6; }
  8960. cat >conftest.$ac_ext <<_ACEOF
  8961. /* confdefs.h. */
  8962. _ACEOF
  8963. cat confdefs.h >>conftest.$ac_ext
  8964. cat >>conftest.$ac_ext <<_ACEOF
  8965. /* end confdefs.h. */
  8966. #include <$ac_header>
  8967. _ACEOF
  8968. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8969. case "(($ac_try" in
  8970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8971. *) ac_try_echo=$ac_try;;
  8972. esac
  8973. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8974. $as_echo "$ac_try_echo") >&5
  8975. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8976. ac_status=$?
  8977. grep -v '^ *+' conftest.er1 >conftest.err
  8978. rm -f conftest.er1
  8979. cat conftest.err >&5
  8980. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8981. (exit $ac_status); } >/dev/null && {
  8982. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8983. test ! -s conftest.err
  8984. }; then
  8985. ac_header_preproc=yes
  8986. else
  8987. $as_echo "$as_me: failed program was:" >&5
  8988. sed 's/^/| /' conftest.$ac_ext >&5
  8989. ac_header_preproc=no
  8990. fi
  8991. rm -f conftest.err conftest.$ac_ext
  8992. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8993. $as_echo "$ac_header_preproc" >&6; }
  8994. # So? What about this header?
  8995. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8996. yes:no: )
  8997. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8998. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8999. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9000. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9001. ac_header_preproc=yes
  9002. ;;
  9003. no:yes:* )
  9004. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9005. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9006. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9007. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9008. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9009. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9010. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9011. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9012. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9013. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9014. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9015. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9016. ;;
  9017. esac
  9018. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9019. $as_echo_n "checking for $ac_header... " >&6; }
  9020. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9021. $as_echo_n "(cached) " >&6
  9022. else
  9023. eval "$as_ac_Header=\$ac_header_preproc"
  9024. fi
  9025. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9026. $as_echo "$as_val"'`
  9027. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9028. $as_echo "$ac_res" >&6; }
  9029. fi
  9030. as_val=`eval 'as_val=${'$as_ac_Header'}
  9031. $as_echo "$as_val"'`
  9032. if test "x$as_val" = x""yes; then
  9033. cat >>confdefs.h <<_ACEOF
  9034. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9035. _ACEOF
  9036. fi
  9037. done
  9038. for ac_func in fork vfork
  9039. do
  9040. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9041. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  9042. $as_echo_n "checking for $ac_func... " >&6; }
  9043. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9044. $as_echo_n "(cached) " >&6
  9045. else
  9046. cat >conftest.$ac_ext <<_ACEOF
  9047. /* confdefs.h. */
  9048. _ACEOF
  9049. cat confdefs.h >>conftest.$ac_ext
  9050. cat >>conftest.$ac_ext <<_ACEOF
  9051. /* end confdefs.h. */
  9052. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9053. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9054. #define $ac_func innocuous_$ac_func
  9055. /* System header to define __stub macros and hopefully few prototypes,
  9056. which can conflict with char $ac_func (); below.
  9057. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9058. <limits.h> exists even on freestanding compilers. */
  9059. #ifdef __STDC__
  9060. # include <limits.h>
  9061. #else
  9062. # include <assert.h>
  9063. #endif
  9064. #undef $ac_func
  9065. /* Override any GCC internal prototype to avoid an error.
  9066. Use char because int might match the return type of a GCC
  9067. builtin and then its argument prototype would still apply. */
  9068. #ifdef __cplusplus
  9069. extern "C"
  9070. #endif
  9071. char $ac_func ();
  9072. /* The GNU C library defines this for functions which it implements
  9073. to always fail with ENOSYS. Some functions are actually named
  9074. something starting with __ and the normal name is an alias. */
  9075. #if defined __stub_$ac_func || defined __stub___$ac_func
  9076. choke me
  9077. #endif
  9078. int
  9079. main ()
  9080. {
  9081. return $ac_func ();
  9082. ;
  9083. return 0;
  9084. }
  9085. _ACEOF
  9086. rm -f conftest.$ac_objext conftest$ac_exeext
  9087. if { (ac_try="$ac_link"
  9088. case "(($ac_try" in
  9089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9090. *) ac_try_echo=$ac_try;;
  9091. esac
  9092. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9093. $as_echo "$ac_try_echo") >&5
  9094. (eval "$ac_link") 2>conftest.er1
  9095. ac_status=$?
  9096. grep -v '^ *+' conftest.er1 >conftest.err
  9097. rm -f conftest.er1
  9098. cat conftest.err >&5
  9099. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9100. (exit $ac_status); } && {
  9101. test -z "$ac_cxx_werror_flag" ||
  9102. test ! -s conftest.err
  9103. } && test -s conftest$ac_exeext && {
  9104. test "$cross_compiling" = yes ||
  9105. $as_test_x conftest$ac_exeext
  9106. }; then
  9107. eval "$as_ac_var=yes"
  9108. else
  9109. $as_echo "$as_me: failed program was:" >&5
  9110. sed 's/^/| /' conftest.$ac_ext >&5
  9111. eval "$as_ac_var=no"
  9112. fi
  9113. rm -rf conftest.dSYM
  9114. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9115. conftest$ac_exeext conftest.$ac_ext
  9116. fi
  9117. ac_res=`eval 'as_val=${'$as_ac_var'}
  9118. $as_echo "$as_val"'`
  9119. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9120. $as_echo "$ac_res" >&6; }
  9121. as_val=`eval 'as_val=${'$as_ac_var'}
  9122. $as_echo "$as_val"'`
  9123. if test "x$as_val" = x""yes; then
  9124. cat >>confdefs.h <<_ACEOF
  9125. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9126. _ACEOF
  9127. fi
  9128. done
  9129. if test "x$ac_cv_func_fork" = xyes; then
  9130. { $as_echo "$as_me:$LINENO: checking for working fork" >&5
  9131. $as_echo_n "checking for working fork... " >&6; }
  9132. if test "${ac_cv_func_fork_works+set}" = set; then
  9133. $as_echo_n "(cached) " >&6
  9134. else
  9135. if test "$cross_compiling" = yes; then
  9136. ac_cv_func_fork_works=cross
  9137. else
  9138. cat >conftest.$ac_ext <<_ACEOF
  9139. /* confdefs.h. */
  9140. _ACEOF
  9141. cat confdefs.h >>conftest.$ac_ext
  9142. cat >>conftest.$ac_ext <<_ACEOF
  9143. /* end confdefs.h. */
  9144. $ac_includes_default
  9145. int
  9146. main ()
  9147. {
  9148. /* By Ruediger Kuhlmann. */
  9149. return fork () < 0;
  9150. ;
  9151. return 0;
  9152. }
  9153. _ACEOF
  9154. rm -f conftest$ac_exeext
  9155. if { (ac_try="$ac_link"
  9156. case "(($ac_try" in
  9157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9158. *) ac_try_echo=$ac_try;;
  9159. esac
  9160. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9161. $as_echo "$ac_try_echo") >&5
  9162. (eval "$ac_link") 2>&5
  9163. ac_status=$?
  9164. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9165. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9166. { (case "(($ac_try" in
  9167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9168. *) ac_try_echo=$ac_try;;
  9169. esac
  9170. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9171. $as_echo "$ac_try_echo") >&5
  9172. (eval "$ac_try") 2>&5
  9173. ac_status=$?
  9174. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9175. (exit $ac_status); }; }; then
  9176. ac_cv_func_fork_works=yes
  9177. else
  9178. $as_echo "$as_me: program exited with status $ac_status" >&5
  9179. $as_echo "$as_me: failed program was:" >&5
  9180. sed 's/^/| /' conftest.$ac_ext >&5
  9181. ( exit $ac_status )
  9182. ac_cv_func_fork_works=no
  9183. fi
  9184. rm -rf conftest.dSYM
  9185. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9186. fi
  9187. fi
  9188. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  9189. $as_echo "$ac_cv_func_fork_works" >&6; }
  9190. else
  9191. ac_cv_func_fork_works=$ac_cv_func_fork
  9192. fi
  9193. if test "x$ac_cv_func_fork_works" = xcross; then
  9194. case $host in
  9195. *-*-amigaos* | *-*-msdosdjgpp*)
  9196. # Override, as these systems have only a dummy fork() stub
  9197. ac_cv_func_fork_works=no
  9198. ;;
  9199. *)
  9200. ac_cv_func_fork_works=yes
  9201. ;;
  9202. esac
  9203. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  9204. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  9205. fi
  9206. ac_cv_func_vfork_works=$ac_cv_func_vfork
  9207. if test "x$ac_cv_func_vfork" = xyes; then
  9208. { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
  9209. $as_echo_n "checking for working vfork... " >&6; }
  9210. if test "${ac_cv_func_vfork_works+set}" = set; then
  9211. $as_echo_n "(cached) " >&6
  9212. else
  9213. if test "$cross_compiling" = yes; then
  9214. ac_cv_func_vfork_works=cross
  9215. else
  9216. cat >conftest.$ac_ext <<_ACEOF
  9217. /* confdefs.h. */
  9218. _ACEOF
  9219. cat confdefs.h >>conftest.$ac_ext
  9220. cat >>conftest.$ac_ext <<_ACEOF
  9221. /* end confdefs.h. */
  9222. /* Thanks to Paul Eggert for this test. */
  9223. $ac_includes_default
  9224. #include <sys/wait.h>
  9225. #ifdef HAVE_VFORK_H
  9226. # include <vfork.h>
  9227. #endif
  9228. /* On some sparc systems, changes by the child to local and incoming
  9229. argument registers are propagated back to the parent. The compiler
  9230. is told about this with #include <vfork.h>, but some compilers
  9231. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  9232. static variable whose address is put into a register that is
  9233. clobbered by the vfork. */
  9234. static void
  9235. #ifdef __cplusplus
  9236. sparc_address_test (int arg)
  9237. # else
  9238. sparc_address_test (arg) int arg;
  9239. #endif
  9240. {
  9241. static pid_t child;
  9242. if (!child) {
  9243. child = vfork ();
  9244. if (child < 0) {
  9245. perror ("vfork");
  9246. _exit(2);
  9247. }
  9248. if (!child) {
  9249. arg = getpid();
  9250. write(-1, "", 0);
  9251. _exit (arg);
  9252. }
  9253. }
  9254. }
  9255. int
  9256. main ()
  9257. {
  9258. pid_t parent = getpid ();
  9259. pid_t child;
  9260. sparc_address_test (0);
  9261. child = vfork ();
  9262. if (child == 0) {
  9263. /* Here is another test for sparc vfork register problems. This
  9264. test uses lots of local variables, at least as many local
  9265. variables as main has allocated so far including compiler
  9266. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  9267. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  9268. reuse the register of parent for one of the local variables,
  9269. since it will think that parent can't possibly be used any more
  9270. in this routine. Assigning to the local variable will thus
  9271. munge parent in the parent process. */
  9272. pid_t
  9273. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  9274. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  9275. /* Convince the compiler that p..p7 are live; otherwise, it might
  9276. use the same hardware register for all 8 local variables. */
  9277. if (p != p1 || p != p2 || p != p3 || p != p4
  9278. || p != p5 || p != p6 || p != p7)
  9279. _exit(1);
  9280. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  9281. from child file descriptors. If the child closes a descriptor
  9282. before it execs or exits, this munges the parent's descriptor
  9283. as well. Test for this by closing stdout in the child. */
  9284. _exit(close(fileno(stdout)) != 0);
  9285. } else {
  9286. int status;
  9287. struct stat st;
  9288. while (wait(&status) != child)
  9289. ;
  9290. return (
  9291. /* Was there some problem with vforking? */
  9292. child < 0
  9293. /* Did the child fail? (This shouldn't happen.) */
  9294. || status
  9295. /* Did the vfork/compiler bug occur? */
  9296. || parent != getpid()
  9297. /* Did the file descriptor bug occur? */
  9298. || fstat(fileno(stdout), &st) != 0
  9299. );
  9300. }
  9301. }
  9302. _ACEOF
  9303. rm -f conftest$ac_exeext
  9304. if { (ac_try="$ac_link"
  9305. case "(($ac_try" in
  9306. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9307. *) ac_try_echo=$ac_try;;
  9308. esac
  9309. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9310. $as_echo "$ac_try_echo") >&5
  9311. (eval "$ac_link") 2>&5
  9312. ac_status=$?
  9313. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9314. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9315. { (case "(($ac_try" in
  9316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9317. *) ac_try_echo=$ac_try;;
  9318. esac
  9319. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9320. $as_echo "$ac_try_echo") >&5
  9321. (eval "$ac_try") 2>&5
  9322. ac_status=$?
  9323. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9324. (exit $ac_status); }; }; then
  9325. ac_cv_func_vfork_works=yes
  9326. else
  9327. $as_echo "$as_me: program exited with status $ac_status" >&5
  9328. $as_echo "$as_me: failed program was:" >&5
  9329. sed 's/^/| /' conftest.$ac_ext >&5
  9330. ( exit $ac_status )
  9331. ac_cv_func_vfork_works=no
  9332. fi
  9333. rm -rf conftest.dSYM
  9334. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9335. fi
  9336. fi
  9337. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  9338. $as_echo "$ac_cv_func_vfork_works" >&6; }
  9339. fi;
  9340. if test "x$ac_cv_func_fork_works" = xcross; then
  9341. ac_cv_func_vfork_works=$ac_cv_func_vfork
  9342. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  9343. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  9344. fi
  9345. if test "x$ac_cv_func_vfork_works" = xyes; then
  9346. cat >>confdefs.h <<\_ACEOF
  9347. #define HAVE_WORKING_VFORK 1
  9348. _ACEOF
  9349. else
  9350. cat >>confdefs.h <<\_ACEOF
  9351. #define vfork fork
  9352. _ACEOF
  9353. fi
  9354. if test "x$ac_cv_func_fork_works" = xyes; then
  9355. cat >>confdefs.h <<\_ACEOF
  9356. #define HAVE_WORKING_FORK 1
  9357. _ACEOF
  9358. fi
  9359. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9360. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  9361. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9362. $as_echo_n "(cached) " >&6
  9363. else
  9364. rm -f conftest.sym conftest.file
  9365. echo >conftest.file
  9366. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9367. if test "$cross_compiling" = yes; then
  9368. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9369. else
  9370. cat >conftest.$ac_ext <<_ACEOF
  9371. /* confdefs.h. */
  9372. _ACEOF
  9373. cat confdefs.h >>conftest.$ac_ext
  9374. cat >>conftest.$ac_ext <<_ACEOF
  9375. /* end confdefs.h. */
  9376. $ac_includes_default
  9377. int
  9378. main ()
  9379. {
  9380. struct stat sbuf;
  9381. /* Linux will dereference the symlink and fail.
  9382. That is better in the sense that it means we will not
  9383. have to compile and use the lstat wrapper. */
  9384. return lstat ("conftest.sym/", &sbuf) == 0;
  9385. ;
  9386. return 0;
  9387. }
  9388. _ACEOF
  9389. rm -f conftest$ac_exeext
  9390. if { (ac_try="$ac_link"
  9391. case "(($ac_try" in
  9392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9393. *) ac_try_echo=$ac_try;;
  9394. esac
  9395. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9396. $as_echo "$ac_try_echo") >&5
  9397. (eval "$ac_link") 2>&5
  9398. ac_status=$?
  9399. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9400. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9401. { (case "(($ac_try" in
  9402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9403. *) ac_try_echo=$ac_try;;
  9404. esac
  9405. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9406. $as_echo "$ac_try_echo") >&5
  9407. (eval "$ac_try") 2>&5
  9408. ac_status=$?
  9409. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9410. (exit $ac_status); }; }; then
  9411. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9412. else
  9413. $as_echo "$as_me: program exited with status $ac_status" >&5
  9414. $as_echo "$as_me: failed program was:" >&5
  9415. sed 's/^/| /' conftest.$ac_ext >&5
  9416. ( exit $ac_status )
  9417. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9418. fi
  9419. rm -rf conftest.dSYM
  9420. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9421. fi
  9422. else
  9423. # If the `ln -s' command failed, then we probably don't even
  9424. # have an lstat function.
  9425. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9426. fi
  9427. rm -f conftest.sym conftest.file
  9428. fi
  9429. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9430. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  9431. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9432. cat >>confdefs.h <<_ACEOF
  9433. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9434. _ACEOF
  9435. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9436. case " $LIBOBJS " in
  9437. *" lstat.$ac_objext "* ) ;;
  9438. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9439. ;;
  9440. esac
  9441. fi
  9442. { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  9443. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  9444. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  9445. $as_echo_n "(cached) " >&6
  9446. else
  9447. if test "$cross_compiling" = yes; then
  9448. ac_cv_func_lstat_empty_string_bug=yes
  9449. else
  9450. cat >conftest.$ac_ext <<_ACEOF
  9451. /* confdefs.h. */
  9452. _ACEOF
  9453. cat confdefs.h >>conftest.$ac_ext
  9454. cat >>conftest.$ac_ext <<_ACEOF
  9455. /* end confdefs.h. */
  9456. $ac_includes_default
  9457. int
  9458. main ()
  9459. {
  9460. struct stat sbuf;
  9461. return lstat ("", &sbuf) == 0;
  9462. ;
  9463. return 0;
  9464. }
  9465. _ACEOF
  9466. rm -f conftest$ac_exeext
  9467. if { (ac_try="$ac_link"
  9468. case "(($ac_try" in
  9469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9470. *) ac_try_echo=$ac_try;;
  9471. esac
  9472. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9473. $as_echo "$ac_try_echo") >&5
  9474. (eval "$ac_link") 2>&5
  9475. ac_status=$?
  9476. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9477. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9478. { (case "(($ac_try" in
  9479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9480. *) ac_try_echo=$ac_try;;
  9481. esac
  9482. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9483. $as_echo "$ac_try_echo") >&5
  9484. (eval "$ac_try") 2>&5
  9485. ac_status=$?
  9486. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9487. (exit $ac_status); }; }; then
  9488. ac_cv_func_lstat_empty_string_bug=no
  9489. else
  9490. $as_echo "$as_me: program exited with status $ac_status" >&5
  9491. $as_echo "$as_me: failed program was:" >&5
  9492. sed 's/^/| /' conftest.$ac_ext >&5
  9493. ( exit $ac_status )
  9494. ac_cv_func_lstat_empty_string_bug=yes
  9495. fi
  9496. rm -rf conftest.dSYM
  9497. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9498. fi
  9499. fi
  9500. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  9501. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  9502. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  9503. case " $LIBOBJS " in
  9504. *" lstat.$ac_objext "* ) ;;
  9505. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9506. ;;
  9507. esac
  9508. cat >>confdefs.h <<_ACEOF
  9509. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  9510. _ACEOF
  9511. fi
  9512. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9513. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  9514. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9515. $as_echo_n "(cached) " >&6
  9516. else
  9517. rm -f conftest.sym conftest.file
  9518. echo >conftest.file
  9519. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9520. if test "$cross_compiling" = yes; then
  9521. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9522. else
  9523. cat >conftest.$ac_ext <<_ACEOF
  9524. /* confdefs.h. */
  9525. _ACEOF
  9526. cat confdefs.h >>conftest.$ac_ext
  9527. cat >>conftest.$ac_ext <<_ACEOF
  9528. /* end confdefs.h. */
  9529. $ac_includes_default
  9530. int
  9531. main ()
  9532. {
  9533. struct stat sbuf;
  9534. /* Linux will dereference the symlink and fail.
  9535. That is better in the sense that it means we will not
  9536. have to compile and use the lstat wrapper. */
  9537. return lstat ("conftest.sym/", &sbuf) == 0;
  9538. ;
  9539. return 0;
  9540. }
  9541. _ACEOF
  9542. rm -f conftest$ac_exeext
  9543. if { (ac_try="$ac_link"
  9544. case "(($ac_try" in
  9545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9546. *) ac_try_echo=$ac_try;;
  9547. esac
  9548. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9549. $as_echo "$ac_try_echo") >&5
  9550. (eval "$ac_link") 2>&5
  9551. ac_status=$?
  9552. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9553. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9554. { (case "(($ac_try" in
  9555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9556. *) ac_try_echo=$ac_try;;
  9557. esac
  9558. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9559. $as_echo "$ac_try_echo") >&5
  9560. (eval "$ac_try") 2>&5
  9561. ac_status=$?
  9562. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9563. (exit $ac_status); }; }; then
  9564. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9565. else
  9566. $as_echo "$as_me: program exited with status $ac_status" >&5
  9567. $as_echo "$as_me: failed program was:" >&5
  9568. sed 's/^/| /' conftest.$ac_ext >&5
  9569. ( exit $ac_status )
  9570. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9571. fi
  9572. rm -rf conftest.dSYM
  9573. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9574. fi
  9575. else
  9576. # If the `ln -s' command failed, then we probably don't even
  9577. # have an lstat function.
  9578. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9579. fi
  9580. rm -f conftest.sym conftest.file
  9581. fi
  9582. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9583. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  9584. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9585. cat >>confdefs.h <<_ACEOF
  9586. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9587. _ACEOF
  9588. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9589. case " $LIBOBJS " in
  9590. *" lstat.$ac_objext "* ) ;;
  9591. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9592. ;;
  9593. esac
  9594. fi
  9595. for ac_header in stdlib.h
  9596. do
  9597. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9598. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9599. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9600. $as_echo_n "checking for $ac_header... " >&6; }
  9601. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9602. $as_echo_n "(cached) " >&6
  9603. fi
  9604. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9605. $as_echo "$as_val"'`
  9606. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9607. $as_echo "$ac_res" >&6; }
  9608. else
  9609. # Is the header compilable?
  9610. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9611. $as_echo_n "checking $ac_header usability... " >&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. $ac_includes_default
  9619. #include <$ac_header>
  9620. _ACEOF
  9621. rm -f conftest.$ac_objext
  9622. if { (ac_try="$ac_compile"
  9623. case "(($ac_try" in
  9624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9625. *) ac_try_echo=$ac_try;;
  9626. esac
  9627. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9628. $as_echo "$ac_try_echo") >&5
  9629. (eval "$ac_compile") 2>conftest.er1
  9630. ac_status=$?
  9631. grep -v '^ *+' conftest.er1 >conftest.err
  9632. rm -f conftest.er1
  9633. cat conftest.err >&5
  9634. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9635. (exit $ac_status); } && {
  9636. test -z "$ac_cxx_werror_flag" ||
  9637. test ! -s conftest.err
  9638. } && test -s conftest.$ac_objext; then
  9639. ac_header_compiler=yes
  9640. else
  9641. $as_echo "$as_me: failed program was:" >&5
  9642. sed 's/^/| /' conftest.$ac_ext >&5
  9643. ac_header_compiler=no
  9644. fi
  9645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9646. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9647. $as_echo "$ac_header_compiler" >&6; }
  9648. # Is the header present?
  9649. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9650. $as_echo_n "checking $ac_header presence... " >&6; }
  9651. cat >conftest.$ac_ext <<_ACEOF
  9652. /* confdefs.h. */
  9653. _ACEOF
  9654. cat confdefs.h >>conftest.$ac_ext
  9655. cat >>conftest.$ac_ext <<_ACEOF
  9656. /* end confdefs.h. */
  9657. #include <$ac_header>
  9658. _ACEOF
  9659. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9660. case "(($ac_try" in
  9661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9662. *) ac_try_echo=$ac_try;;
  9663. esac
  9664. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9665. $as_echo "$ac_try_echo") >&5
  9666. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9667. ac_status=$?
  9668. grep -v '^ *+' conftest.er1 >conftest.err
  9669. rm -f conftest.er1
  9670. cat conftest.err >&5
  9671. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9672. (exit $ac_status); } >/dev/null && {
  9673. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9674. test ! -s conftest.err
  9675. }; then
  9676. ac_header_preproc=yes
  9677. else
  9678. $as_echo "$as_me: failed program was:" >&5
  9679. sed 's/^/| /' conftest.$ac_ext >&5
  9680. ac_header_preproc=no
  9681. fi
  9682. rm -f conftest.err conftest.$ac_ext
  9683. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9684. $as_echo "$ac_header_preproc" >&6; }
  9685. # So? What about this header?
  9686. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9687. yes:no: )
  9688. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9689. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9690. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9691. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9692. ac_header_preproc=yes
  9693. ;;
  9694. no:yes:* )
  9695. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9696. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9697. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9698. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9699. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9700. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9701. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9702. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9703. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9704. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9705. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9706. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9707. ;;
  9708. esac
  9709. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9710. $as_echo_n "checking for $ac_header... " >&6; }
  9711. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9712. $as_echo_n "(cached) " >&6
  9713. else
  9714. eval "$as_ac_Header=\$ac_header_preproc"
  9715. fi
  9716. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9717. $as_echo "$as_val"'`
  9718. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9719. $as_echo "$ac_res" >&6; }
  9720. fi
  9721. as_val=`eval 'as_val=${'$as_ac_Header'}
  9722. $as_echo "$as_val"'`
  9723. if test "x$as_val" = x""yes; then
  9724. cat >>confdefs.h <<_ACEOF
  9725. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9726. _ACEOF
  9727. fi
  9728. done
  9729. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9730. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  9731. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9732. $as_echo_n "(cached) " >&6
  9733. else
  9734. if test "$cross_compiling" = yes; then
  9735. ac_cv_func_malloc_0_nonnull=no
  9736. else
  9737. cat >conftest.$ac_ext <<_ACEOF
  9738. /* confdefs.h. */
  9739. _ACEOF
  9740. cat confdefs.h >>conftest.$ac_ext
  9741. cat >>conftest.$ac_ext <<_ACEOF
  9742. /* end confdefs.h. */
  9743. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  9744. # include <stdlib.h>
  9745. #else
  9746. char *malloc ();
  9747. #endif
  9748. int
  9749. main ()
  9750. {
  9751. return ! malloc (0);
  9752. ;
  9753. return 0;
  9754. }
  9755. _ACEOF
  9756. rm -f conftest$ac_exeext
  9757. if { (ac_try="$ac_link"
  9758. case "(($ac_try" in
  9759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9760. *) ac_try_echo=$ac_try;;
  9761. esac
  9762. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9763. $as_echo "$ac_try_echo") >&5
  9764. (eval "$ac_link") 2>&5
  9765. ac_status=$?
  9766. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9767. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9768. { (case "(($ac_try" in
  9769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9770. *) ac_try_echo=$ac_try;;
  9771. esac
  9772. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9773. $as_echo "$ac_try_echo") >&5
  9774. (eval "$ac_try") 2>&5
  9775. ac_status=$?
  9776. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9777. (exit $ac_status); }; }; then
  9778. ac_cv_func_malloc_0_nonnull=yes
  9779. else
  9780. $as_echo "$as_me: program exited with status $ac_status" >&5
  9781. $as_echo "$as_me: failed program was:" >&5
  9782. sed 's/^/| /' conftest.$ac_ext >&5
  9783. ( exit $ac_status )
  9784. ac_cv_func_malloc_0_nonnull=no
  9785. fi
  9786. rm -rf conftest.dSYM
  9787. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9788. fi
  9789. fi
  9790. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9791. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  9792. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9793. cat >>confdefs.h <<\_ACEOF
  9794. #define HAVE_MALLOC 1
  9795. _ACEOF
  9796. else
  9797. cat >>confdefs.h <<\_ACEOF
  9798. #define HAVE_MALLOC 0
  9799. _ACEOF
  9800. case " $LIBOBJS " in
  9801. *" malloc.$ac_objext "* ) ;;
  9802. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  9803. ;;
  9804. esac
  9805. cat >>confdefs.h <<\_ACEOF
  9806. #define malloc rpl_malloc
  9807. _ACEOF
  9808. fi
  9809. for ac_header in $ac_header_list
  9810. do
  9811. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9812. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9813. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9814. $as_echo_n "checking for $ac_header... " >&6; }
  9815. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9816. $as_echo_n "(cached) " >&6
  9817. fi
  9818. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9819. $as_echo "$as_val"'`
  9820. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9821. $as_echo "$ac_res" >&6; }
  9822. else
  9823. # Is the header compilable?
  9824. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9825. $as_echo_n "checking $ac_header usability... " >&6; }
  9826. cat >conftest.$ac_ext <<_ACEOF
  9827. /* confdefs.h. */
  9828. _ACEOF
  9829. cat confdefs.h >>conftest.$ac_ext
  9830. cat >>conftest.$ac_ext <<_ACEOF
  9831. /* end confdefs.h. */
  9832. $ac_includes_default
  9833. #include <$ac_header>
  9834. _ACEOF
  9835. rm -f conftest.$ac_objext
  9836. if { (ac_try="$ac_compile"
  9837. case "(($ac_try" in
  9838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9839. *) ac_try_echo=$ac_try;;
  9840. esac
  9841. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9842. $as_echo "$ac_try_echo") >&5
  9843. (eval "$ac_compile") 2>conftest.er1
  9844. ac_status=$?
  9845. grep -v '^ *+' conftest.er1 >conftest.err
  9846. rm -f conftest.er1
  9847. cat conftest.err >&5
  9848. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9849. (exit $ac_status); } && {
  9850. test -z "$ac_cxx_werror_flag" ||
  9851. test ! -s conftest.err
  9852. } && test -s conftest.$ac_objext; then
  9853. ac_header_compiler=yes
  9854. else
  9855. $as_echo "$as_me: failed program was:" >&5
  9856. sed 's/^/| /' conftest.$ac_ext >&5
  9857. ac_header_compiler=no
  9858. fi
  9859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9860. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9861. $as_echo "$ac_header_compiler" >&6; }
  9862. # Is the header present?
  9863. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9864. $as_echo_n "checking $ac_header presence... " >&6; }
  9865. cat >conftest.$ac_ext <<_ACEOF
  9866. /* confdefs.h. */
  9867. _ACEOF
  9868. cat confdefs.h >>conftest.$ac_ext
  9869. cat >>conftest.$ac_ext <<_ACEOF
  9870. /* end confdefs.h. */
  9871. #include <$ac_header>
  9872. _ACEOF
  9873. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9874. case "(($ac_try" in
  9875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9876. *) ac_try_echo=$ac_try;;
  9877. esac
  9878. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9879. $as_echo "$ac_try_echo") >&5
  9880. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9881. ac_status=$?
  9882. grep -v '^ *+' conftest.er1 >conftest.err
  9883. rm -f conftest.er1
  9884. cat conftest.err >&5
  9885. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9886. (exit $ac_status); } >/dev/null && {
  9887. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9888. test ! -s conftest.err
  9889. }; then
  9890. ac_header_preproc=yes
  9891. else
  9892. $as_echo "$as_me: failed program was:" >&5
  9893. sed 's/^/| /' conftest.$ac_ext >&5
  9894. ac_header_preproc=no
  9895. fi
  9896. rm -f conftest.err conftest.$ac_ext
  9897. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9898. $as_echo "$ac_header_preproc" >&6; }
  9899. # So? What about this header?
  9900. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9901. yes:no: )
  9902. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9903. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9904. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9905. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9906. ac_header_preproc=yes
  9907. ;;
  9908. no:yes:* )
  9909. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9910. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9911. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9912. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9913. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9914. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9915. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9916. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9917. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9918. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9919. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9920. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9921. ;;
  9922. esac
  9923. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9924. $as_echo_n "checking for $ac_header... " >&6; }
  9925. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9926. $as_echo_n "(cached) " >&6
  9927. else
  9928. eval "$as_ac_Header=\$ac_header_preproc"
  9929. fi
  9930. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9931. $as_echo "$as_val"'`
  9932. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9933. $as_echo "$ac_res" >&6; }
  9934. fi
  9935. as_val=`eval 'as_val=${'$as_ac_Header'}
  9936. $as_echo "$as_val"'`
  9937. if test "x$as_val" = x""yes; then
  9938. cat >>confdefs.h <<_ACEOF
  9939. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9940. _ACEOF
  9941. fi
  9942. done
  9943. for ac_func in $ac_func_list
  9944. do
  9945. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9946. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  9947. $as_echo_n "checking for $ac_func... " >&6; }
  9948. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9949. $as_echo_n "(cached) " >&6
  9950. else
  9951. cat >conftest.$ac_ext <<_ACEOF
  9952. /* confdefs.h. */
  9953. _ACEOF
  9954. cat confdefs.h >>conftest.$ac_ext
  9955. cat >>conftest.$ac_ext <<_ACEOF
  9956. /* end confdefs.h. */
  9957. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9958. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9959. #define $ac_func innocuous_$ac_func
  9960. /* System header to define __stub macros and hopefully few prototypes,
  9961. which can conflict with char $ac_func (); below.
  9962. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9963. <limits.h> exists even on freestanding compilers. */
  9964. #ifdef __STDC__
  9965. # include <limits.h>
  9966. #else
  9967. # include <assert.h>
  9968. #endif
  9969. #undef $ac_func
  9970. /* Override any GCC internal prototype to avoid an error.
  9971. Use char because int might match the return type of a GCC
  9972. builtin and then its argument prototype would still apply. */
  9973. #ifdef __cplusplus
  9974. extern "C"
  9975. #endif
  9976. char $ac_func ();
  9977. /* The GNU C library defines this for functions which it implements
  9978. to always fail with ENOSYS. Some functions are actually named
  9979. something starting with __ and the normal name is an alias. */
  9980. #if defined __stub_$ac_func || defined __stub___$ac_func
  9981. choke me
  9982. #endif
  9983. int
  9984. main ()
  9985. {
  9986. return $ac_func ();
  9987. ;
  9988. return 0;
  9989. }
  9990. _ACEOF
  9991. rm -f conftest.$ac_objext conftest$ac_exeext
  9992. if { (ac_try="$ac_link"
  9993. case "(($ac_try" in
  9994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9995. *) ac_try_echo=$ac_try;;
  9996. esac
  9997. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9998. $as_echo "$ac_try_echo") >&5
  9999. (eval "$ac_link") 2>conftest.er1
  10000. ac_status=$?
  10001. grep -v '^ *+' conftest.er1 >conftest.err
  10002. rm -f conftest.er1
  10003. cat conftest.err >&5
  10004. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10005. (exit $ac_status); } && {
  10006. test -z "$ac_cxx_werror_flag" ||
  10007. test ! -s conftest.err
  10008. } && test -s conftest$ac_exeext && {
  10009. test "$cross_compiling" = yes ||
  10010. $as_test_x conftest$ac_exeext
  10011. }; then
  10012. eval "$as_ac_var=yes"
  10013. else
  10014. $as_echo "$as_me: failed program was:" >&5
  10015. sed 's/^/| /' conftest.$ac_ext >&5
  10016. eval "$as_ac_var=no"
  10017. fi
  10018. rm -rf conftest.dSYM
  10019. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10020. conftest$ac_exeext conftest.$ac_ext
  10021. fi
  10022. ac_res=`eval 'as_val=${'$as_ac_var'}
  10023. $as_echo "$as_val"'`
  10024. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10025. $as_echo "$ac_res" >&6; }
  10026. as_val=`eval 'as_val=${'$as_ac_var'}
  10027. $as_echo "$as_val"'`
  10028. if test "x$as_val" = x""yes; then
  10029. cat >>confdefs.h <<_ACEOF
  10030. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10031. _ACEOF
  10032. fi
  10033. done
  10034. { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
  10035. $as_echo_n "checking for working mktime... " >&6; }
  10036. if test "${ac_cv_func_working_mktime+set}" = set; then
  10037. $as_echo_n "(cached) " >&6
  10038. else
  10039. if test "$cross_compiling" = yes; then
  10040. ac_cv_func_working_mktime=no
  10041. else
  10042. cat >conftest.$ac_ext <<_ACEOF
  10043. /* confdefs.h. */
  10044. _ACEOF
  10045. cat confdefs.h >>conftest.$ac_ext
  10046. cat >>conftest.$ac_ext <<_ACEOF
  10047. /* end confdefs.h. */
  10048. /* Test program from Paul Eggert and Tony Leneis. */
  10049. #ifdef TIME_WITH_SYS_TIME
  10050. # include <sys/time.h>
  10051. # include <time.h>
  10052. #else
  10053. # ifdef HAVE_SYS_TIME_H
  10054. # include <sys/time.h>
  10055. # else
  10056. # include <time.h>
  10057. # endif
  10058. #endif
  10059. #include <limits.h>
  10060. #include <stdlib.h>
  10061. #ifdef HAVE_UNISTD_H
  10062. # include <unistd.h>
  10063. #endif
  10064. #ifndef HAVE_ALARM
  10065. # define alarm(X) /* empty */
  10066. #endif
  10067. /* Work around redefinition to rpl_putenv by other config tests. */
  10068. #undef putenv
  10069. static time_t time_t_max;
  10070. static time_t time_t_min;
  10071. /* Values we'll use to set the TZ environment variable. */
  10072. static char *tz_strings[] = {
  10073. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  10074. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  10075. };
  10076. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  10077. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  10078. Based on a problem report from Andreas Jaeger. */
  10079. static int
  10080. spring_forward_gap ()
  10081. {
  10082. /* glibc (up to about 1998-10-07) failed this test. */
  10083. struct tm tm;
  10084. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  10085. instead of "TZ=America/Vancouver" in order to detect the bug even
  10086. on systems that don't support the Olson extension, or don't have the
  10087. full zoneinfo tables installed. */
  10088. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  10089. tm.tm_year = 98;
  10090. tm.tm_mon = 3;
  10091. tm.tm_mday = 5;
  10092. tm.tm_hour = 2;
  10093. tm.tm_min = 0;
  10094. tm.tm_sec = 0;
  10095. tm.tm_isdst = -1;
  10096. return mktime (&tm) != (time_t) -1;
  10097. }
  10098. static int
  10099. mktime_test1 (now)
  10100. time_t now;
  10101. {
  10102. struct tm *lt;
  10103. return ! (lt = localtime (&now)) || mktime (lt) == now;
  10104. }
  10105. static int
  10106. mktime_test (now)
  10107. time_t now;
  10108. {
  10109. return (mktime_test1 (now)
  10110. && mktime_test1 ((time_t) (time_t_max - now))
  10111. && mktime_test1 ((time_t) (time_t_min + now)));
  10112. }
  10113. static int
  10114. irix_6_4_bug ()
  10115. {
  10116. /* Based on code from Ariel Faigon. */
  10117. struct tm tm;
  10118. tm.tm_year = 96;
  10119. tm.tm_mon = 3;
  10120. tm.tm_mday = 0;
  10121. tm.tm_hour = 0;
  10122. tm.tm_min = 0;
  10123. tm.tm_sec = 0;
  10124. tm.tm_isdst = -1;
  10125. mktime (&tm);
  10126. return tm.tm_mon == 2 && tm.tm_mday == 31;
  10127. }
  10128. static int
  10129. bigtime_test (j)
  10130. int j;
  10131. {
  10132. struct tm tm;
  10133. time_t now;
  10134. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  10135. now = mktime (&tm);
  10136. if (now != (time_t) -1)
  10137. {
  10138. struct tm *lt = localtime (&now);
  10139. if (! (lt
  10140. && lt->tm_year == tm.tm_year
  10141. && lt->tm_mon == tm.tm_mon
  10142. && lt->tm_mday == tm.tm_mday
  10143. && lt->tm_hour == tm.tm_hour
  10144. && lt->tm_min == tm.tm_min
  10145. && lt->tm_sec == tm.tm_sec
  10146. && lt->tm_yday == tm.tm_yday
  10147. && lt->tm_wday == tm.tm_wday
  10148. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  10149. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  10150. return 0;
  10151. }
  10152. return 1;
  10153. }
  10154. static int
  10155. year_2050_test ()
  10156. {
  10157. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  10158. ignoring leap seconds. */
  10159. unsigned long int answer = 2527315200UL;
  10160. struct tm tm;
  10161. time_t t;
  10162. tm.tm_year = 2050 - 1900;
  10163. tm.tm_mon = 2 - 1;
  10164. tm.tm_mday = 1;
  10165. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  10166. tm.tm_isdst = -1;
  10167. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  10168. instead of "TZ=America/Vancouver" in order to detect the bug even
  10169. on systems that don't support the Olson extension, or don't have the
  10170. full zoneinfo tables installed. */
  10171. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  10172. t = mktime (&tm);
  10173. /* Check that the result is either a failure, or close enough
  10174. to the correct answer that we can assume the discrepancy is
  10175. due to leap seconds. */
  10176. return (t == (time_t) -1
  10177. || (0 < t && answer - 120 <= t && t <= answer + 120));
  10178. }
  10179. int
  10180. main ()
  10181. {
  10182. time_t t, delta;
  10183. int i, j;
  10184. /* This test makes some buggy mktime implementations loop.
  10185. Give up after 60 seconds; a mktime slower than that
  10186. isn't worth using anyway. */
  10187. alarm (60);
  10188. for (;;)
  10189. {
  10190. t = (time_t_max << 1) + 1;
  10191. if (t <= time_t_max)
  10192. break;
  10193. time_t_max = t;
  10194. }
  10195. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  10196. delta = time_t_max / 997; /* a suitable prime number */
  10197. for (i = 0; i < N_STRINGS; i++)
  10198. {
  10199. if (tz_strings[i])
  10200. putenv (tz_strings[i]);
  10201. for (t = 0; t <= time_t_max - delta; t += delta)
  10202. if (! mktime_test (t))
  10203. return 1;
  10204. if (! (mktime_test ((time_t) 1)
  10205. && mktime_test ((time_t) (60 * 60))
  10206. && mktime_test ((time_t) (60 * 60 * 24))))
  10207. return 1;
  10208. for (j = 1; ; j <<= 1)
  10209. if (! bigtime_test (j))
  10210. return 1;
  10211. else if (INT_MAX / 2 < j)
  10212. break;
  10213. if (! bigtime_test (INT_MAX))
  10214. return 1;
  10215. }
  10216. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  10217. }
  10218. _ACEOF
  10219. rm -f conftest$ac_exeext
  10220. if { (ac_try="$ac_link"
  10221. case "(($ac_try" in
  10222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10223. *) ac_try_echo=$ac_try;;
  10224. esac
  10225. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10226. $as_echo "$ac_try_echo") >&5
  10227. (eval "$ac_link") 2>&5
  10228. ac_status=$?
  10229. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10230. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10231. { (case "(($ac_try" in
  10232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10233. *) ac_try_echo=$ac_try;;
  10234. esac
  10235. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10236. $as_echo "$ac_try_echo") >&5
  10237. (eval "$ac_try") 2>&5
  10238. ac_status=$?
  10239. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10240. (exit $ac_status); }; }; then
  10241. ac_cv_func_working_mktime=yes
  10242. else
  10243. $as_echo "$as_me: program exited with status $ac_status" >&5
  10244. $as_echo "$as_me: failed program was:" >&5
  10245. sed 's/^/| /' conftest.$ac_ext >&5
  10246. ( exit $ac_status )
  10247. ac_cv_func_working_mktime=no
  10248. fi
  10249. rm -rf conftest.dSYM
  10250. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10251. fi
  10252. fi
  10253. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  10254. $as_echo "$ac_cv_func_working_mktime" >&6; }
  10255. if test $ac_cv_func_working_mktime = no; then
  10256. case " $LIBOBJS " in
  10257. *" mktime.$ac_objext "* ) ;;
  10258. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  10259. ;;
  10260. esac
  10261. fi
  10262. for ac_header in stdlib.h unistd.h
  10263. do
  10264. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10265. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10266. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10267. $as_echo_n "checking for $ac_header... " >&6; }
  10268. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10269. $as_echo_n "(cached) " >&6
  10270. fi
  10271. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10272. $as_echo "$as_val"'`
  10273. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10274. $as_echo "$ac_res" >&6; }
  10275. else
  10276. # Is the header compilable?
  10277. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10278. $as_echo_n "checking $ac_header usability... " >&6; }
  10279. cat >conftest.$ac_ext <<_ACEOF
  10280. /* confdefs.h. */
  10281. _ACEOF
  10282. cat confdefs.h >>conftest.$ac_ext
  10283. cat >>conftest.$ac_ext <<_ACEOF
  10284. /* end confdefs.h. */
  10285. $ac_includes_default
  10286. #include <$ac_header>
  10287. _ACEOF
  10288. rm -f conftest.$ac_objext
  10289. if { (ac_try="$ac_compile"
  10290. case "(($ac_try" in
  10291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10292. *) ac_try_echo=$ac_try;;
  10293. esac
  10294. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10295. $as_echo "$ac_try_echo") >&5
  10296. (eval "$ac_compile") 2>conftest.er1
  10297. ac_status=$?
  10298. grep -v '^ *+' conftest.er1 >conftest.err
  10299. rm -f conftest.er1
  10300. cat conftest.err >&5
  10301. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10302. (exit $ac_status); } && {
  10303. test -z "$ac_cxx_werror_flag" ||
  10304. test ! -s conftest.err
  10305. } && test -s conftest.$ac_objext; then
  10306. ac_header_compiler=yes
  10307. else
  10308. $as_echo "$as_me: failed program was:" >&5
  10309. sed 's/^/| /' conftest.$ac_ext >&5
  10310. ac_header_compiler=no
  10311. fi
  10312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10313. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10314. $as_echo "$ac_header_compiler" >&6; }
  10315. # Is the header present?
  10316. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10317. $as_echo_n "checking $ac_header presence... " >&6; }
  10318. cat >conftest.$ac_ext <<_ACEOF
  10319. /* confdefs.h. */
  10320. _ACEOF
  10321. cat confdefs.h >>conftest.$ac_ext
  10322. cat >>conftest.$ac_ext <<_ACEOF
  10323. /* end confdefs.h. */
  10324. #include <$ac_header>
  10325. _ACEOF
  10326. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10327. case "(($ac_try" in
  10328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10329. *) ac_try_echo=$ac_try;;
  10330. esac
  10331. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10332. $as_echo "$ac_try_echo") >&5
  10333. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10334. ac_status=$?
  10335. grep -v '^ *+' conftest.er1 >conftest.err
  10336. rm -f conftest.er1
  10337. cat conftest.err >&5
  10338. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10339. (exit $ac_status); } >/dev/null && {
  10340. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10341. test ! -s conftest.err
  10342. }; then
  10343. ac_header_preproc=yes
  10344. else
  10345. $as_echo "$as_me: failed program was:" >&5
  10346. sed 's/^/| /' conftest.$ac_ext >&5
  10347. ac_header_preproc=no
  10348. fi
  10349. rm -f conftest.err conftest.$ac_ext
  10350. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10351. $as_echo "$ac_header_preproc" >&6; }
  10352. # So? What about this header?
  10353. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10354. yes:no: )
  10355. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10356. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10357. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10358. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10359. ac_header_preproc=yes
  10360. ;;
  10361. no:yes:* )
  10362. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10363. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10364. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10365. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10366. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10367. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10368. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10369. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10370. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10371. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10372. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10373. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10374. ;;
  10375. esac
  10376. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10377. $as_echo_n "checking for $ac_header... " >&6; }
  10378. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10379. $as_echo_n "(cached) " >&6
  10380. else
  10381. eval "$as_ac_Header=\$ac_header_preproc"
  10382. fi
  10383. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10384. $as_echo "$as_val"'`
  10385. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10386. $as_echo "$ac_res" >&6; }
  10387. fi
  10388. as_val=`eval 'as_val=${'$as_ac_Header'}
  10389. $as_echo "$as_val"'`
  10390. if test "x$as_val" = x""yes; then
  10391. cat >>confdefs.h <<_ACEOF
  10392. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10393. _ACEOF
  10394. fi
  10395. done
  10396. for ac_func in getpagesize
  10397. do
  10398. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10399. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10400. $as_echo_n "checking for $ac_func... " >&6; }
  10401. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10402. $as_echo_n "(cached) " >&6
  10403. else
  10404. cat >conftest.$ac_ext <<_ACEOF
  10405. /* confdefs.h. */
  10406. _ACEOF
  10407. cat confdefs.h >>conftest.$ac_ext
  10408. cat >>conftest.$ac_ext <<_ACEOF
  10409. /* end confdefs.h. */
  10410. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10411. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10412. #define $ac_func innocuous_$ac_func
  10413. /* System header to define __stub macros and hopefully few prototypes,
  10414. which can conflict with char $ac_func (); below.
  10415. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10416. <limits.h> exists even on freestanding compilers. */
  10417. #ifdef __STDC__
  10418. # include <limits.h>
  10419. #else
  10420. # include <assert.h>
  10421. #endif
  10422. #undef $ac_func
  10423. /* Override any GCC internal prototype to avoid an error.
  10424. Use char because int might match the return type of a GCC
  10425. builtin and then its argument prototype would still apply. */
  10426. #ifdef __cplusplus
  10427. extern "C"
  10428. #endif
  10429. char $ac_func ();
  10430. /* The GNU C library defines this for functions which it implements
  10431. to always fail with ENOSYS. Some functions are actually named
  10432. something starting with __ and the normal name is an alias. */
  10433. #if defined __stub_$ac_func || defined __stub___$ac_func
  10434. choke me
  10435. #endif
  10436. int
  10437. main ()
  10438. {
  10439. return $ac_func ();
  10440. ;
  10441. return 0;
  10442. }
  10443. _ACEOF
  10444. rm -f conftest.$ac_objext conftest$ac_exeext
  10445. if { (ac_try="$ac_link"
  10446. case "(($ac_try" in
  10447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10448. *) ac_try_echo=$ac_try;;
  10449. esac
  10450. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10451. $as_echo "$ac_try_echo") >&5
  10452. (eval "$ac_link") 2>conftest.er1
  10453. ac_status=$?
  10454. grep -v '^ *+' conftest.er1 >conftest.err
  10455. rm -f conftest.er1
  10456. cat conftest.err >&5
  10457. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10458. (exit $ac_status); } && {
  10459. test -z "$ac_cxx_werror_flag" ||
  10460. test ! -s conftest.err
  10461. } && test -s conftest$ac_exeext && {
  10462. test "$cross_compiling" = yes ||
  10463. $as_test_x conftest$ac_exeext
  10464. }; then
  10465. eval "$as_ac_var=yes"
  10466. else
  10467. $as_echo "$as_me: failed program was:" >&5
  10468. sed 's/^/| /' conftest.$ac_ext >&5
  10469. eval "$as_ac_var=no"
  10470. fi
  10471. rm -rf conftest.dSYM
  10472. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10473. conftest$ac_exeext conftest.$ac_ext
  10474. fi
  10475. ac_res=`eval 'as_val=${'$as_ac_var'}
  10476. $as_echo "$as_val"'`
  10477. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10478. $as_echo "$ac_res" >&6; }
  10479. as_val=`eval 'as_val=${'$as_ac_var'}
  10480. $as_echo "$as_val"'`
  10481. if test "x$as_val" = x""yes; then
  10482. cat >>confdefs.h <<_ACEOF
  10483. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10484. _ACEOF
  10485. fi
  10486. done
  10487. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  10488. $as_echo_n "checking for working mmap... " >&6; }
  10489. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10490. $as_echo_n "(cached) " >&6
  10491. else
  10492. if test "$cross_compiling" = yes; then
  10493. ac_cv_func_mmap_fixed_mapped=no
  10494. else
  10495. cat >conftest.$ac_ext <<_ACEOF
  10496. /* confdefs.h. */
  10497. _ACEOF
  10498. cat confdefs.h >>conftest.$ac_ext
  10499. cat >>conftest.$ac_ext <<_ACEOF
  10500. /* end confdefs.h. */
  10501. $ac_includes_default
  10502. /* malloc might have been renamed as rpl_malloc. */
  10503. #undef malloc
  10504. /* Thanks to Mike Haertel and Jim Avera for this test.
  10505. Here is a matrix of mmap possibilities:
  10506. mmap private not fixed
  10507. mmap private fixed at somewhere currently unmapped
  10508. mmap private fixed at somewhere already mapped
  10509. mmap shared not fixed
  10510. mmap shared fixed at somewhere currently unmapped
  10511. mmap shared fixed at somewhere already mapped
  10512. For private mappings, we should verify that changes cannot be read()
  10513. back from the file, nor mmap's back from the file at a different
  10514. address. (There have been systems where private was not correctly
  10515. implemented like the infamous i386 svr4.0, and systems where the
  10516. VM page cache was not coherent with the file system buffer cache
  10517. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10518. For shared mappings, we should conversely verify that changes get
  10519. propagated back to all the places they're supposed to be.
  10520. Grep wants private fixed already mapped.
  10521. The main things grep needs to know about mmap are:
  10522. * does it exist and is it safe to write into the mmap'd area
  10523. * how to use it (BSD variants) */
  10524. #include <fcntl.h>
  10525. #include <sys/mman.h>
  10526. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10527. char *malloc ();
  10528. #endif
  10529. /* This mess was copied from the GNU getpagesize.h. */
  10530. #ifndef HAVE_GETPAGESIZE
  10531. /* Assume that all systems that can run configure have sys/param.h. */
  10532. # ifndef HAVE_SYS_PARAM_H
  10533. # define HAVE_SYS_PARAM_H 1
  10534. # endif
  10535. # ifdef _SC_PAGESIZE
  10536. # define getpagesize() sysconf(_SC_PAGESIZE)
  10537. # else /* no _SC_PAGESIZE */
  10538. # ifdef HAVE_SYS_PARAM_H
  10539. # include <sys/param.h>
  10540. # ifdef EXEC_PAGESIZE
  10541. # define getpagesize() EXEC_PAGESIZE
  10542. # else /* no EXEC_PAGESIZE */
  10543. # ifdef NBPG
  10544. # define getpagesize() NBPG * CLSIZE
  10545. # ifndef CLSIZE
  10546. # define CLSIZE 1
  10547. # endif /* no CLSIZE */
  10548. # else /* no NBPG */
  10549. # ifdef NBPC
  10550. # define getpagesize() NBPC
  10551. # else /* no NBPC */
  10552. # ifdef PAGESIZE
  10553. # define getpagesize() PAGESIZE
  10554. # endif /* PAGESIZE */
  10555. # endif /* no NBPC */
  10556. # endif /* no NBPG */
  10557. # endif /* no EXEC_PAGESIZE */
  10558. # else /* no HAVE_SYS_PARAM_H */
  10559. # define getpagesize() 8192 /* punt totally */
  10560. # endif /* no HAVE_SYS_PARAM_H */
  10561. # endif /* no _SC_PAGESIZE */
  10562. #endif /* no HAVE_GETPAGESIZE */
  10563. int
  10564. main ()
  10565. {
  10566. char *data, *data2, *data3;
  10567. int i, pagesize;
  10568. int fd;
  10569. pagesize = getpagesize ();
  10570. /* First, make a file with some known garbage in it. */
  10571. data = (char *) malloc (pagesize);
  10572. if (!data)
  10573. return 1;
  10574. for (i = 0; i < pagesize; ++i)
  10575. *(data + i) = rand ();
  10576. umask (0);
  10577. fd = creat ("conftest.mmap", 0600);
  10578. if (fd < 0)
  10579. return 1;
  10580. if (write (fd, data, pagesize) != pagesize)
  10581. return 1;
  10582. close (fd);
  10583. /* Next, try to mmap the file at a fixed address which already has
  10584. something else allocated at it. If we can, also make sure that
  10585. we see the same garbage. */
  10586. fd = open ("conftest.mmap", O_RDWR);
  10587. if (fd < 0)
  10588. return 1;
  10589. data2 = (char *) malloc (2 * pagesize);
  10590. if (!data2)
  10591. return 1;
  10592. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10593. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10594. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10595. return 1;
  10596. for (i = 0; i < pagesize; ++i)
  10597. if (*(data + i) != *(data2 + i))
  10598. return 1;
  10599. /* Finally, make sure that changes to the mapped area do not
  10600. percolate back to the file as seen by read(). (This is a bug on
  10601. some variants of i386 svr4.0.) */
  10602. for (i = 0; i < pagesize; ++i)
  10603. *(data2 + i) = *(data2 + i) + 1;
  10604. data3 = (char *) malloc (pagesize);
  10605. if (!data3)
  10606. return 1;
  10607. if (read (fd, data3, pagesize) != pagesize)
  10608. return 1;
  10609. for (i = 0; i < pagesize; ++i)
  10610. if (*(data + i) != *(data3 + i))
  10611. return 1;
  10612. close (fd);
  10613. return 0;
  10614. }
  10615. _ACEOF
  10616. rm -f conftest$ac_exeext
  10617. if { (ac_try="$ac_link"
  10618. case "(($ac_try" in
  10619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10620. *) ac_try_echo=$ac_try;;
  10621. esac
  10622. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10623. $as_echo "$ac_try_echo") >&5
  10624. (eval "$ac_link") 2>&5
  10625. ac_status=$?
  10626. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10627. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10628. { (case "(($ac_try" in
  10629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10630. *) ac_try_echo=$ac_try;;
  10631. esac
  10632. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10633. $as_echo "$ac_try_echo") >&5
  10634. (eval "$ac_try") 2>&5
  10635. ac_status=$?
  10636. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10637. (exit $ac_status); }; }; then
  10638. ac_cv_func_mmap_fixed_mapped=yes
  10639. else
  10640. $as_echo "$as_me: program exited with status $ac_status" >&5
  10641. $as_echo "$as_me: failed program was:" >&5
  10642. sed 's/^/| /' conftest.$ac_ext >&5
  10643. ( exit $ac_status )
  10644. ac_cv_func_mmap_fixed_mapped=no
  10645. fi
  10646. rm -rf conftest.dSYM
  10647. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10648. fi
  10649. fi
  10650. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10651. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  10652. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10653. cat >>confdefs.h <<\_ACEOF
  10654. #define HAVE_MMAP 1
  10655. _ACEOF
  10656. fi
  10657. rm -f conftest.mmap
  10658. for ac_header in stdlib.h
  10659. do
  10660. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10661. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10662. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10663. $as_echo_n "checking for $ac_header... " >&6; }
  10664. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10665. $as_echo_n "(cached) " >&6
  10666. fi
  10667. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10668. $as_echo "$as_val"'`
  10669. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10670. $as_echo "$ac_res" >&6; }
  10671. else
  10672. # Is the header compilable?
  10673. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10674. $as_echo_n "checking $ac_header usability... " >&6; }
  10675. cat >conftest.$ac_ext <<_ACEOF
  10676. /* confdefs.h. */
  10677. _ACEOF
  10678. cat confdefs.h >>conftest.$ac_ext
  10679. cat >>conftest.$ac_ext <<_ACEOF
  10680. /* end confdefs.h. */
  10681. $ac_includes_default
  10682. #include <$ac_header>
  10683. _ACEOF
  10684. rm -f conftest.$ac_objext
  10685. if { (ac_try="$ac_compile"
  10686. case "(($ac_try" in
  10687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10688. *) ac_try_echo=$ac_try;;
  10689. esac
  10690. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10691. $as_echo "$ac_try_echo") >&5
  10692. (eval "$ac_compile") 2>conftest.er1
  10693. ac_status=$?
  10694. grep -v '^ *+' conftest.er1 >conftest.err
  10695. rm -f conftest.er1
  10696. cat conftest.err >&5
  10697. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10698. (exit $ac_status); } && {
  10699. test -z "$ac_cxx_werror_flag" ||
  10700. test ! -s conftest.err
  10701. } && test -s conftest.$ac_objext; then
  10702. ac_header_compiler=yes
  10703. else
  10704. $as_echo "$as_me: failed program was:" >&5
  10705. sed 's/^/| /' conftest.$ac_ext >&5
  10706. ac_header_compiler=no
  10707. fi
  10708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10709. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10710. $as_echo "$ac_header_compiler" >&6; }
  10711. # Is the header present?
  10712. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10713. $as_echo_n "checking $ac_header presence... " >&6; }
  10714. cat >conftest.$ac_ext <<_ACEOF
  10715. /* confdefs.h. */
  10716. _ACEOF
  10717. cat confdefs.h >>conftest.$ac_ext
  10718. cat >>conftest.$ac_ext <<_ACEOF
  10719. /* end confdefs.h. */
  10720. #include <$ac_header>
  10721. _ACEOF
  10722. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10723. case "(($ac_try" in
  10724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10725. *) ac_try_echo=$ac_try;;
  10726. esac
  10727. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10728. $as_echo "$ac_try_echo") >&5
  10729. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10730. ac_status=$?
  10731. grep -v '^ *+' conftest.er1 >conftest.err
  10732. rm -f conftest.er1
  10733. cat conftest.err >&5
  10734. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10735. (exit $ac_status); } >/dev/null && {
  10736. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10737. test ! -s conftest.err
  10738. }; then
  10739. ac_header_preproc=yes
  10740. else
  10741. $as_echo "$as_me: failed program was:" >&5
  10742. sed 's/^/| /' conftest.$ac_ext >&5
  10743. ac_header_preproc=no
  10744. fi
  10745. rm -f conftest.err conftest.$ac_ext
  10746. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10747. $as_echo "$ac_header_preproc" >&6; }
  10748. # So? What about this header?
  10749. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10750. yes:no: )
  10751. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10752. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10753. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10754. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10755. ac_header_preproc=yes
  10756. ;;
  10757. no:yes:* )
  10758. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10759. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10760. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10761. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10762. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10763. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10764. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10765. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10766. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10767. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10768. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10769. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10770. ;;
  10771. esac
  10772. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10773. $as_echo_n "checking for $ac_header... " >&6; }
  10774. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10775. $as_echo_n "(cached) " >&6
  10776. else
  10777. eval "$as_ac_Header=\$ac_header_preproc"
  10778. fi
  10779. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10780. $as_echo "$as_val"'`
  10781. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10782. $as_echo "$ac_res" >&6; }
  10783. fi
  10784. as_val=`eval 'as_val=${'$as_ac_Header'}
  10785. $as_echo "$as_val"'`
  10786. if test "x$as_val" = x""yes; then
  10787. cat >>confdefs.h <<_ACEOF
  10788. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10789. _ACEOF
  10790. fi
  10791. done
  10792. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10793. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  10794. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10795. $as_echo_n "(cached) " >&6
  10796. else
  10797. if test "$cross_compiling" = yes; then
  10798. ac_cv_func_realloc_0_nonnull=no
  10799. else
  10800. cat >conftest.$ac_ext <<_ACEOF
  10801. /* confdefs.h. */
  10802. _ACEOF
  10803. cat confdefs.h >>conftest.$ac_ext
  10804. cat >>conftest.$ac_ext <<_ACEOF
  10805. /* end confdefs.h. */
  10806. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  10807. # include <stdlib.h>
  10808. #else
  10809. char *realloc ();
  10810. #endif
  10811. int
  10812. main ()
  10813. {
  10814. return ! realloc (0, 0);
  10815. ;
  10816. return 0;
  10817. }
  10818. _ACEOF
  10819. rm -f conftest$ac_exeext
  10820. if { (ac_try="$ac_link"
  10821. case "(($ac_try" in
  10822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10823. *) ac_try_echo=$ac_try;;
  10824. esac
  10825. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10826. $as_echo "$ac_try_echo") >&5
  10827. (eval "$ac_link") 2>&5
  10828. ac_status=$?
  10829. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10830. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10831. { (case "(($ac_try" in
  10832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10833. *) ac_try_echo=$ac_try;;
  10834. esac
  10835. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10836. $as_echo "$ac_try_echo") >&5
  10837. (eval "$ac_try") 2>&5
  10838. ac_status=$?
  10839. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10840. (exit $ac_status); }; }; then
  10841. ac_cv_func_realloc_0_nonnull=yes
  10842. else
  10843. $as_echo "$as_me: program exited with status $ac_status" >&5
  10844. $as_echo "$as_me: failed program was:" >&5
  10845. sed 's/^/| /' conftest.$ac_ext >&5
  10846. ( exit $ac_status )
  10847. ac_cv_func_realloc_0_nonnull=no
  10848. fi
  10849. rm -rf conftest.dSYM
  10850. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10851. fi
  10852. fi
  10853. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10854. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  10855. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10856. cat >>confdefs.h <<\_ACEOF
  10857. #define HAVE_REALLOC 1
  10858. _ACEOF
  10859. else
  10860. cat >>confdefs.h <<\_ACEOF
  10861. #define HAVE_REALLOC 0
  10862. _ACEOF
  10863. case " $LIBOBJS " in
  10864. *" realloc.$ac_objext "* ) ;;
  10865. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  10866. ;;
  10867. esac
  10868. cat >>confdefs.h <<\_ACEOF
  10869. #define realloc rpl_realloc
  10870. _ACEOF
  10871. fi
  10872. { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10873. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  10874. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10875. $as_echo_n "(cached) " >&6
  10876. else
  10877. if test "$cross_compiling" = yes; then
  10878. ac_cv_func_stat_empty_string_bug=yes
  10879. else
  10880. cat >conftest.$ac_ext <<_ACEOF
  10881. /* confdefs.h. */
  10882. _ACEOF
  10883. cat confdefs.h >>conftest.$ac_ext
  10884. cat >>conftest.$ac_ext <<_ACEOF
  10885. /* end confdefs.h. */
  10886. $ac_includes_default
  10887. int
  10888. main ()
  10889. {
  10890. struct stat sbuf;
  10891. return stat ("", &sbuf) == 0;
  10892. ;
  10893. return 0;
  10894. }
  10895. _ACEOF
  10896. rm -f conftest$ac_exeext
  10897. if { (ac_try="$ac_link"
  10898. case "(($ac_try" in
  10899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10900. *) ac_try_echo=$ac_try;;
  10901. esac
  10902. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10903. $as_echo "$ac_try_echo") >&5
  10904. (eval "$ac_link") 2>&5
  10905. ac_status=$?
  10906. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10907. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10908. { (case "(($ac_try" in
  10909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10910. *) ac_try_echo=$ac_try;;
  10911. esac
  10912. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10913. $as_echo "$ac_try_echo") >&5
  10914. (eval "$ac_try") 2>&5
  10915. ac_status=$?
  10916. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10917. (exit $ac_status); }; }; then
  10918. ac_cv_func_stat_empty_string_bug=no
  10919. else
  10920. $as_echo "$as_me: program exited with status $ac_status" >&5
  10921. $as_echo "$as_me: failed program was:" >&5
  10922. sed 's/^/| /' conftest.$ac_ext >&5
  10923. ( exit $ac_status )
  10924. ac_cv_func_stat_empty_string_bug=yes
  10925. fi
  10926. rm -rf conftest.dSYM
  10927. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10928. fi
  10929. fi
  10930. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10931. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  10932. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10933. case " $LIBOBJS " in
  10934. *" stat.$ac_objext "* ) ;;
  10935. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  10936. ;;
  10937. esac
  10938. cat >>confdefs.h <<_ACEOF
  10939. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10940. _ACEOF
  10941. fi
  10942. { $as_echo "$as_me:$LINENO: checking for struct timespec" >&5
  10943. $as_echo_n "checking for struct timespec... " >&6; }
  10944. if test "${ac_cv_type_struct_timespec+set}" = set; then
  10945. $as_echo_n "(cached) " >&6
  10946. else
  10947. ac_cv_type_struct_timespec=no
  10948. cat >conftest.$ac_ext <<_ACEOF
  10949. /* confdefs.h. */
  10950. _ACEOF
  10951. cat confdefs.h >>conftest.$ac_ext
  10952. cat >>conftest.$ac_ext <<_ACEOF
  10953. /* end confdefs.h. */
  10954. #include <sys/types.h>
  10955. #include <sys/time.h>
  10956. #include <time.h>
  10957. int
  10958. main ()
  10959. {
  10960. if (sizeof (struct timespec))
  10961. return 0;
  10962. ;
  10963. return 0;
  10964. }
  10965. _ACEOF
  10966. rm -f conftest.$ac_objext
  10967. if { (ac_try="$ac_compile"
  10968. case "(($ac_try" in
  10969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10970. *) ac_try_echo=$ac_try;;
  10971. esac
  10972. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10973. $as_echo "$ac_try_echo") >&5
  10974. (eval "$ac_compile") 2>conftest.er1
  10975. ac_status=$?
  10976. grep -v '^ *+' conftest.er1 >conftest.err
  10977. rm -f conftest.er1
  10978. cat conftest.err >&5
  10979. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10980. (exit $ac_status); } && {
  10981. test -z "$ac_cxx_werror_flag" ||
  10982. test ! -s conftest.err
  10983. } && test -s conftest.$ac_objext; then
  10984. cat >conftest.$ac_ext <<_ACEOF
  10985. /* confdefs.h. */
  10986. _ACEOF
  10987. cat confdefs.h >>conftest.$ac_ext
  10988. cat >>conftest.$ac_ext <<_ACEOF
  10989. /* end confdefs.h. */
  10990. #include <sys/types.h>
  10991. #include <sys/time.h>
  10992. #include <time.h>
  10993. int
  10994. main ()
  10995. {
  10996. if (sizeof ((struct timespec)))
  10997. return 0;
  10998. ;
  10999. return 0;
  11000. }
  11001. _ACEOF
  11002. rm -f conftest.$ac_objext
  11003. if { (ac_try="$ac_compile"
  11004. case "(($ac_try" in
  11005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11006. *) ac_try_echo=$ac_try;;
  11007. esac
  11008. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11009. $as_echo "$ac_try_echo") >&5
  11010. (eval "$ac_compile") 2>conftest.er1
  11011. ac_status=$?
  11012. grep -v '^ *+' conftest.er1 >conftest.err
  11013. rm -f conftest.er1
  11014. cat conftest.err >&5
  11015. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11016. (exit $ac_status); } && {
  11017. test -z "$ac_cxx_werror_flag" ||
  11018. test ! -s conftest.err
  11019. } && test -s conftest.$ac_objext; then
  11020. :
  11021. else
  11022. $as_echo "$as_me: failed program was:" >&5
  11023. sed 's/^/| /' conftest.$ac_ext >&5
  11024. ac_cv_type_struct_timespec=yes
  11025. fi
  11026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11027. else
  11028. $as_echo "$as_me: failed program was:" >&5
  11029. sed 's/^/| /' conftest.$ac_ext >&5
  11030. fi
  11031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11032. fi
  11033. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
  11034. $as_echo "$ac_cv_type_struct_timespec" >&6; }
  11035. if test "x$ac_cv_type_struct_timespec" = x""yes; then
  11036. cat >>confdefs.h <<\_ACEOF
  11037. #define HAVE_TIMESPEC 1
  11038. _ACEOF
  11039. fi
  11040. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  11041. { $as_echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
  11042. $as_echo_n "checking for struct stat.st_mtim... " >&6; }
  11043. if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
  11044. $as_echo_n "(cached) " >&6
  11045. else
  11046. cat >conftest.$ac_ext <<_ACEOF
  11047. /* confdefs.h. */
  11048. _ACEOF
  11049. cat confdefs.h >>conftest.$ac_ext
  11050. cat >>conftest.$ac_ext <<_ACEOF
  11051. /* end confdefs.h. */
  11052. $ac_includes_default
  11053. int
  11054. main ()
  11055. {
  11056. static struct stat ac_aggr;
  11057. if (ac_aggr.st_mtim)
  11058. return 0;
  11059. ;
  11060. return 0;
  11061. }
  11062. _ACEOF
  11063. rm -f conftest.$ac_objext
  11064. if { (ac_try="$ac_compile"
  11065. case "(($ac_try" in
  11066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11067. *) ac_try_echo=$ac_try;;
  11068. esac
  11069. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11070. $as_echo "$ac_try_echo") >&5
  11071. (eval "$ac_compile") 2>conftest.er1
  11072. ac_status=$?
  11073. grep -v '^ *+' conftest.er1 >conftest.err
  11074. rm -f conftest.er1
  11075. cat conftest.err >&5
  11076. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11077. (exit $ac_status); } && {
  11078. test -z "$ac_cxx_werror_flag" ||
  11079. test ! -s conftest.err
  11080. } && test -s conftest.$ac_objext; then
  11081. ac_cv_member_struct_stat_st_mtim=yes
  11082. else
  11083. $as_echo "$as_me: failed program was:" >&5
  11084. sed 's/^/| /' conftest.$ac_ext >&5
  11085. cat >conftest.$ac_ext <<_ACEOF
  11086. /* confdefs.h. */
  11087. _ACEOF
  11088. cat confdefs.h >>conftest.$ac_ext
  11089. cat >>conftest.$ac_ext <<_ACEOF
  11090. /* end confdefs.h. */
  11091. $ac_includes_default
  11092. int
  11093. main ()
  11094. {
  11095. static struct stat ac_aggr;
  11096. if (sizeof ac_aggr.st_mtim)
  11097. return 0;
  11098. ;
  11099. return 0;
  11100. }
  11101. _ACEOF
  11102. rm -f conftest.$ac_objext
  11103. if { (ac_try="$ac_compile"
  11104. case "(($ac_try" in
  11105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11106. *) ac_try_echo=$ac_try;;
  11107. esac
  11108. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11109. $as_echo "$ac_try_echo") >&5
  11110. (eval "$ac_compile") 2>conftest.er1
  11111. ac_status=$?
  11112. grep -v '^ *+' conftest.er1 >conftest.err
  11113. rm -f conftest.er1
  11114. cat conftest.err >&5
  11115. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11116. (exit $ac_status); } && {
  11117. test -z "$ac_cxx_werror_flag" ||
  11118. test ! -s conftest.err
  11119. } && test -s conftest.$ac_objext; then
  11120. ac_cv_member_struct_stat_st_mtim=yes
  11121. else
  11122. $as_echo "$as_me: failed program was:" >&5
  11123. sed 's/^/| /' conftest.$ac_ext >&5
  11124. ac_cv_member_struct_stat_st_mtim=no
  11125. fi
  11126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11127. fi
  11128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11129. fi
  11130. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
  11131. $as_echo "$ac_cv_member_struct_stat_st_mtim" >&6; }
  11132. if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then
  11133. cat >>confdefs.h <<\_ACEOF
  11134. #define HAVE_ST_MTIM 1
  11135. _ACEOF
  11136. else
  11137. { $as_echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
  11138. $as_echo_n "checking for struct stat.st_mtimespec... " >&6; }
  11139. if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
  11140. $as_echo_n "(cached) " >&6
  11141. else
  11142. cat >conftest.$ac_ext <<_ACEOF
  11143. /* confdefs.h. */
  11144. _ACEOF
  11145. cat confdefs.h >>conftest.$ac_ext
  11146. cat >>conftest.$ac_ext <<_ACEOF
  11147. /* end confdefs.h. */
  11148. $ac_includes_default
  11149. int
  11150. main ()
  11151. {
  11152. static struct stat ac_aggr;
  11153. if (ac_aggr.st_mtimespec)
  11154. return 0;
  11155. ;
  11156. return 0;
  11157. }
  11158. _ACEOF
  11159. rm -f conftest.$ac_objext
  11160. if { (ac_try="$ac_compile"
  11161. case "(($ac_try" in
  11162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11163. *) ac_try_echo=$ac_try;;
  11164. esac
  11165. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11166. $as_echo "$ac_try_echo") >&5
  11167. (eval "$ac_compile") 2>conftest.er1
  11168. ac_status=$?
  11169. grep -v '^ *+' conftest.er1 >conftest.err
  11170. rm -f conftest.er1
  11171. cat conftest.err >&5
  11172. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11173. (exit $ac_status); } && {
  11174. test -z "$ac_cxx_werror_flag" ||
  11175. test ! -s conftest.err
  11176. } && test -s conftest.$ac_objext; then
  11177. ac_cv_member_struct_stat_st_mtimespec=yes
  11178. else
  11179. $as_echo "$as_me: failed program was:" >&5
  11180. sed 's/^/| /' conftest.$ac_ext >&5
  11181. cat >conftest.$ac_ext <<_ACEOF
  11182. /* confdefs.h. */
  11183. _ACEOF
  11184. cat confdefs.h >>conftest.$ac_ext
  11185. cat >>conftest.$ac_ext <<_ACEOF
  11186. /* end confdefs.h. */
  11187. $ac_includes_default
  11188. int
  11189. main ()
  11190. {
  11191. static struct stat ac_aggr;
  11192. if (sizeof ac_aggr.st_mtimespec)
  11193. return 0;
  11194. ;
  11195. return 0;
  11196. }
  11197. _ACEOF
  11198. rm -f conftest.$ac_objext
  11199. if { (ac_try="$ac_compile"
  11200. case "(($ac_try" in
  11201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11202. *) ac_try_echo=$ac_try;;
  11203. esac
  11204. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11205. $as_echo "$ac_try_echo") >&5
  11206. (eval "$ac_compile") 2>conftest.er1
  11207. ac_status=$?
  11208. grep -v '^ *+' conftest.er1 >conftest.err
  11209. rm -f conftest.er1
  11210. cat conftest.err >&5
  11211. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11212. (exit $ac_status); } && {
  11213. test -z "$ac_cxx_werror_flag" ||
  11214. test ! -s conftest.err
  11215. } && test -s conftest.$ac_objext; then
  11216. ac_cv_member_struct_stat_st_mtimespec=yes
  11217. else
  11218. $as_echo "$as_me: failed program was:" >&5
  11219. sed 's/^/| /' conftest.$ac_ext >&5
  11220. ac_cv_member_struct_stat_st_mtimespec=no
  11221. fi
  11222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11223. fi
  11224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11225. fi
  11226. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
  11227. $as_echo "$ac_cv_member_struct_stat_st_mtimespec" >&6; }
  11228. if test "x$ac_cv_member_struct_stat_st_mtimespec" = x""yes; then
  11229. cat >>confdefs.h <<\_ACEOF
  11230. #define HAVE_ST_MTIMESPEC 1
  11231. _ACEOF
  11232. fi
  11233. fi
  11234. { $as_echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
  11235. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  11236. cat >conftest.$ac_ext <<_ACEOF
  11237. /* confdefs.h. */
  11238. _ACEOF
  11239. cat confdefs.h >>conftest.$ac_ext
  11240. cat >>conftest.$ac_ext <<_ACEOF
  11241. /* end confdefs.h. */
  11242. #include <sys/types.h>
  11243. #include <sys/time.h>
  11244. int
  11245. main ()
  11246. {
  11247. struct timespec ts1, ts2;
  11248. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  11249. #ifndef timespecsub
  11250. #error missing timespecsub
  11251. #endif
  11252. timespecsub(&ts1, &ts2);
  11253. ;
  11254. return 0;
  11255. }
  11256. _ACEOF
  11257. rm -f conftest.$ac_objext
  11258. if { (ac_try="$ac_compile"
  11259. case "(($ac_try" in
  11260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11261. *) ac_try_echo=$ac_try;;
  11262. esac
  11263. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11264. $as_echo "$ac_try_echo") >&5
  11265. (eval "$ac_compile") 2>conftest.er1
  11266. ac_status=$?
  11267. grep -v '^ *+' conftest.er1 >conftest.err
  11268. rm -f conftest.er1
  11269. cat conftest.err >&5
  11270. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11271. (exit $ac_status); } && {
  11272. test -z "$ac_cxx_werror_flag" ||
  11273. test ! -s conftest.err
  11274. } && test -s conftest.$ac_objext; then
  11275. cat >>confdefs.h <<\_ACEOF
  11276. #define HAVE_TIMESPECSUB2 1
  11277. _ACEOF
  11278. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11279. $as_echo "yes" >&6; }
  11280. else
  11281. $as_echo "$as_me: failed program was:" >&5
  11282. sed 's/^/| /' conftest.$ac_ext >&5
  11283. { $as_echo "$as_me:$LINENO: result: no" >&5
  11284. $as_echo "no" >&6; }
  11285. fi
  11286. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11287. fi
  11288. for ac_func in strftime
  11289. do
  11290. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11291. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11292. $as_echo_n "checking for $ac_func... " >&6; }
  11293. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11294. $as_echo_n "(cached) " >&6
  11295. else
  11296. cat >conftest.$ac_ext <<_ACEOF
  11297. /* confdefs.h. */
  11298. _ACEOF
  11299. cat confdefs.h >>conftest.$ac_ext
  11300. cat >>conftest.$ac_ext <<_ACEOF
  11301. /* end confdefs.h. */
  11302. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11303. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11304. #define $ac_func innocuous_$ac_func
  11305. /* System header to define __stub macros and hopefully few prototypes,
  11306. which can conflict with char $ac_func (); below.
  11307. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11308. <limits.h> exists even on freestanding compilers. */
  11309. #ifdef __STDC__
  11310. # include <limits.h>
  11311. #else
  11312. # include <assert.h>
  11313. #endif
  11314. #undef $ac_func
  11315. /* Override any GCC internal prototype to avoid an error.
  11316. Use char because int might match the return type of a GCC
  11317. builtin and then its argument prototype would still apply. */
  11318. #ifdef __cplusplus
  11319. extern "C"
  11320. #endif
  11321. char $ac_func ();
  11322. /* The GNU C library defines this for functions which it implements
  11323. to always fail with ENOSYS. Some functions are actually named
  11324. something starting with __ and the normal name is an alias. */
  11325. #if defined __stub_$ac_func || defined __stub___$ac_func
  11326. choke me
  11327. #endif
  11328. int
  11329. main ()
  11330. {
  11331. return $ac_func ();
  11332. ;
  11333. return 0;
  11334. }
  11335. _ACEOF
  11336. rm -f conftest.$ac_objext conftest$ac_exeext
  11337. if { (ac_try="$ac_link"
  11338. case "(($ac_try" in
  11339. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11340. *) ac_try_echo=$ac_try;;
  11341. esac
  11342. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11343. $as_echo "$ac_try_echo") >&5
  11344. (eval "$ac_link") 2>conftest.er1
  11345. ac_status=$?
  11346. grep -v '^ *+' conftest.er1 >conftest.err
  11347. rm -f conftest.er1
  11348. cat conftest.err >&5
  11349. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11350. (exit $ac_status); } && {
  11351. test -z "$ac_cxx_werror_flag" ||
  11352. test ! -s conftest.err
  11353. } && test -s conftest$ac_exeext && {
  11354. test "$cross_compiling" = yes ||
  11355. $as_test_x conftest$ac_exeext
  11356. }; then
  11357. eval "$as_ac_var=yes"
  11358. else
  11359. $as_echo "$as_me: failed program was:" >&5
  11360. sed 's/^/| /' conftest.$ac_ext >&5
  11361. eval "$as_ac_var=no"
  11362. fi
  11363. rm -rf conftest.dSYM
  11364. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11365. conftest$ac_exeext conftest.$ac_ext
  11366. fi
  11367. ac_res=`eval 'as_val=${'$as_ac_var'}
  11368. $as_echo "$as_val"'`
  11369. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11370. $as_echo "$ac_res" >&6; }
  11371. as_val=`eval 'as_val=${'$as_ac_var'}
  11372. $as_echo "$as_val"'`
  11373. if test "x$as_val" = x""yes; then
  11374. cat >>confdefs.h <<_ACEOF
  11375. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11376. _ACEOF
  11377. else
  11378. # strftime is in -lintl on SCO UNIX.
  11379. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  11380. $as_echo_n "checking for strftime in -lintl... " >&6; }
  11381. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  11382. $as_echo_n "(cached) " >&6
  11383. else
  11384. ac_check_lib_save_LIBS=$LIBS
  11385. LIBS="-lintl $LIBS"
  11386. cat >conftest.$ac_ext <<_ACEOF
  11387. /* confdefs.h. */
  11388. _ACEOF
  11389. cat confdefs.h >>conftest.$ac_ext
  11390. cat >>conftest.$ac_ext <<_ACEOF
  11391. /* end confdefs.h. */
  11392. /* Override any GCC internal prototype to avoid an error.
  11393. Use char because int might match the return type of a GCC
  11394. builtin and then its argument prototype would still apply. */
  11395. #ifdef __cplusplus
  11396. extern "C"
  11397. #endif
  11398. char strftime ();
  11399. int
  11400. main ()
  11401. {
  11402. return strftime ();
  11403. ;
  11404. return 0;
  11405. }
  11406. _ACEOF
  11407. rm -f conftest.$ac_objext conftest$ac_exeext
  11408. if { (ac_try="$ac_link"
  11409. case "(($ac_try" in
  11410. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11411. *) ac_try_echo=$ac_try;;
  11412. esac
  11413. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11414. $as_echo "$ac_try_echo") >&5
  11415. (eval "$ac_link") 2>conftest.er1
  11416. ac_status=$?
  11417. grep -v '^ *+' conftest.er1 >conftest.err
  11418. rm -f conftest.er1
  11419. cat conftest.err >&5
  11420. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11421. (exit $ac_status); } && {
  11422. test -z "$ac_cxx_werror_flag" ||
  11423. test ! -s conftest.err
  11424. } && test -s conftest$ac_exeext && {
  11425. test "$cross_compiling" = yes ||
  11426. $as_test_x conftest$ac_exeext
  11427. }; then
  11428. ac_cv_lib_intl_strftime=yes
  11429. else
  11430. $as_echo "$as_me: failed program was:" >&5
  11431. sed 's/^/| /' conftest.$ac_ext >&5
  11432. ac_cv_lib_intl_strftime=no
  11433. fi
  11434. rm -rf conftest.dSYM
  11435. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11436. conftest$ac_exeext conftest.$ac_ext
  11437. LIBS=$ac_check_lib_save_LIBS
  11438. fi
  11439. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  11440. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  11441. if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  11442. cat >>confdefs.h <<\_ACEOF
  11443. #define HAVE_STRFTIME 1
  11444. _ACEOF
  11445. LIBS="-lintl $LIBS"
  11446. fi
  11447. fi
  11448. done
  11449. #checkpoint
  11450. cat >confcache <<\_ACEOF
  11451. # This file is a shell script that caches the results of configure
  11452. # tests run on this system so they can be shared between configure
  11453. # scripts and configure runs, see configure's option --config-cache.
  11454. # It is not useful on other systems. If it contains results you don't
  11455. # want to keep, you may remove or edit it.
  11456. #
  11457. # config.status only pays attention to the cache file if you give it
  11458. # the --recheck option to rerun configure.
  11459. #
  11460. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11461. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11462. # following values.
  11463. _ACEOF
  11464. # The following way of writing the cache mishandles newlines in values,
  11465. # but we know of no workaround that is simple, portable, and efficient.
  11466. # So, we kill variables containing newlines.
  11467. # Ultrix sh set writes to stderr and can't be redirected directly,
  11468. # and sets the high bit in the cache file unless we assign to the vars.
  11469. (
  11470. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11471. eval ac_val=\$$ac_var
  11472. case $ac_val in #(
  11473. *${as_nl}*)
  11474. case $ac_var in #(
  11475. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  11476. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11477. esac
  11478. case $ac_var in #(
  11479. _ | IFS | as_nl) ;; #(
  11480. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11481. *) $as_unset $ac_var ;;
  11482. esac ;;
  11483. esac
  11484. done
  11485. (set) 2>&1 |
  11486. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11487. *${as_nl}ac_space=\ *)
  11488. # `set' does not quote correctly, so add quotes (double-quote
  11489. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11490. sed -n \
  11491. "s/'/'\\\\''/g;
  11492. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11493. ;; #(
  11494. *)
  11495. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11496. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11497. ;;
  11498. esac |
  11499. sort
  11500. ) |
  11501. sed '
  11502. /^ac_cv_env_/b end
  11503. t clear
  11504. :clear
  11505. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11506. t end
  11507. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11508. :end' >>confcache
  11509. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11510. if test -w "$cache_file"; then
  11511. test "x$cache_file" != "x/dev/null" &&
  11512. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11513. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11514. cat confcache >$cache_file
  11515. else
  11516. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11517. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11518. fi
  11519. fi
  11520. rm -f confcache
  11521. for ac_func in clock fsync getrusage isascii getpassphrase
  11522. do
  11523. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11524. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11525. $as_echo_n "checking for $ac_func... " >&6; }
  11526. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11527. $as_echo_n "(cached) " >&6
  11528. else
  11529. cat >conftest.$ac_ext <<_ACEOF
  11530. /* confdefs.h. */
  11531. _ACEOF
  11532. cat confdefs.h >>conftest.$ac_ext
  11533. cat >>conftest.$ac_ext <<_ACEOF
  11534. /* end confdefs.h. */
  11535. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11536. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11537. #define $ac_func innocuous_$ac_func
  11538. /* System header to define __stub macros and hopefully few prototypes,
  11539. which can conflict with char $ac_func (); below.
  11540. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11541. <limits.h> exists even on freestanding compilers. */
  11542. #ifdef __STDC__
  11543. # include <limits.h>
  11544. #else
  11545. # include <assert.h>
  11546. #endif
  11547. #undef $ac_func
  11548. /* Override any GCC internal prototype to avoid an error.
  11549. Use char because int might match the return type of a GCC
  11550. builtin and then its argument prototype would still apply. */
  11551. #ifdef __cplusplus
  11552. extern "C"
  11553. #endif
  11554. char $ac_func ();
  11555. /* The GNU C library defines this for functions which it implements
  11556. to always fail with ENOSYS. Some functions are actually named
  11557. something starting with __ and the normal name is an alias. */
  11558. #if defined __stub_$ac_func || defined __stub___$ac_func
  11559. choke me
  11560. #endif
  11561. int
  11562. main ()
  11563. {
  11564. return $ac_func ();
  11565. ;
  11566. return 0;
  11567. }
  11568. _ACEOF
  11569. rm -f conftest.$ac_objext conftest$ac_exeext
  11570. if { (ac_try="$ac_link"
  11571. case "(($ac_try" in
  11572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11573. *) ac_try_echo=$ac_try;;
  11574. esac
  11575. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11576. $as_echo "$ac_try_echo") >&5
  11577. (eval "$ac_link") 2>conftest.er1
  11578. ac_status=$?
  11579. grep -v '^ *+' conftest.er1 >conftest.err
  11580. rm -f conftest.er1
  11581. cat conftest.err >&5
  11582. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11583. (exit $ac_status); } && {
  11584. test -z "$ac_cxx_werror_flag" ||
  11585. test ! -s conftest.err
  11586. } && test -s conftest$ac_exeext && {
  11587. test "$cross_compiling" = yes ||
  11588. $as_test_x conftest$ac_exeext
  11589. }; then
  11590. eval "$as_ac_var=yes"
  11591. else
  11592. $as_echo "$as_me: failed program was:" >&5
  11593. sed 's/^/| /' conftest.$ac_ext >&5
  11594. eval "$as_ac_var=no"
  11595. fi
  11596. rm -rf conftest.dSYM
  11597. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11598. conftest$ac_exeext conftest.$ac_ext
  11599. fi
  11600. ac_res=`eval 'as_val=${'$as_ac_var'}
  11601. $as_echo "$as_val"'`
  11602. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11603. $as_echo "$ac_res" >&6; }
  11604. as_val=`eval 'as_val=${'$as_ac_var'}
  11605. $as_echo "$as_val"'`
  11606. if test "x$as_val" = x""yes; then
  11607. cat >>confdefs.h <<_ACEOF
  11608. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11609. _ACEOF
  11610. fi
  11611. done
  11612. for ac_func in memcpy memset random rename snprintf srandom gettime
  11613. do
  11614. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11615. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11616. $as_echo_n "checking for $ac_func... " >&6; }
  11617. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11618. $as_echo_n "(cached) " >&6
  11619. else
  11620. cat >conftest.$ac_ext <<_ACEOF
  11621. /* confdefs.h. */
  11622. _ACEOF
  11623. cat confdefs.h >>conftest.$ac_ext
  11624. cat >>conftest.$ac_ext <<_ACEOF
  11625. /* end confdefs.h. */
  11626. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11627. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11628. #define $ac_func innocuous_$ac_func
  11629. /* System header to define __stub macros and hopefully few prototypes,
  11630. which can conflict with char $ac_func (); below.
  11631. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11632. <limits.h> exists even on freestanding compilers. */
  11633. #ifdef __STDC__
  11634. # include <limits.h>
  11635. #else
  11636. # include <assert.h>
  11637. #endif
  11638. #undef $ac_func
  11639. /* Override any GCC internal prototype to avoid an error.
  11640. Use char because int might match the return type of a GCC
  11641. builtin and then its argument prototype would still apply. */
  11642. #ifdef __cplusplus
  11643. extern "C"
  11644. #endif
  11645. char $ac_func ();
  11646. /* The GNU C library defines this for functions which it implements
  11647. to always fail with ENOSYS. Some functions are actually named
  11648. something starting with __ and the normal name is an alias. */
  11649. #if defined __stub_$ac_func || defined __stub___$ac_func
  11650. choke me
  11651. #endif
  11652. int
  11653. main ()
  11654. {
  11655. return $ac_func ();
  11656. ;
  11657. return 0;
  11658. }
  11659. _ACEOF
  11660. rm -f conftest.$ac_objext conftest$ac_exeext
  11661. if { (ac_try="$ac_link"
  11662. case "(($ac_try" in
  11663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11664. *) ac_try_echo=$ac_try;;
  11665. esac
  11666. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11667. $as_echo "$ac_try_echo") >&5
  11668. (eval "$ac_link") 2>conftest.er1
  11669. ac_status=$?
  11670. grep -v '^ *+' conftest.er1 >conftest.err
  11671. rm -f conftest.er1
  11672. cat conftest.err >&5
  11673. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11674. (exit $ac_status); } && {
  11675. test -z "$ac_cxx_werror_flag" ||
  11676. test ! -s conftest.err
  11677. } && test -s conftest$ac_exeext && {
  11678. test "$cross_compiling" = yes ||
  11679. $as_test_x conftest$ac_exeext
  11680. }; then
  11681. eval "$as_ac_var=yes"
  11682. else
  11683. $as_echo "$as_me: failed program was:" >&5
  11684. sed 's/^/| /' conftest.$ac_ext >&5
  11685. eval "$as_ac_var=no"
  11686. fi
  11687. rm -rf conftest.dSYM
  11688. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11689. conftest$ac_exeext conftest.$ac_ext
  11690. fi
  11691. ac_res=`eval 'as_val=${'$as_ac_var'}
  11692. $as_echo "$as_val"'`
  11693. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11694. $as_echo "$ac_res" >&6; }
  11695. as_val=`eval 'as_val=${'$as_ac_var'}
  11696. $as_echo "$as_val"'`
  11697. if test "x$as_val" = x""yes; then
  11698. cat >>confdefs.h <<_ACEOF
  11699. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11700. _ACEOF
  11701. fi
  11702. done
  11703. #checkpoint
  11704. cat >confcache <<\_ACEOF
  11705. # This file is a shell script that caches the results of configure
  11706. # tests run on this system so they can be shared between configure
  11707. # scripts and configure runs, see configure's option --config-cache.
  11708. # It is not useful on other systems. If it contains results you don't
  11709. # want to keep, you may remove or edit it.
  11710. #
  11711. # config.status only pays attention to the cache file if you give it
  11712. # the --recheck option to rerun configure.
  11713. #
  11714. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11715. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11716. # following values.
  11717. _ACEOF
  11718. # The following way of writing the cache mishandles newlines in values,
  11719. # but we know of no workaround that is simple, portable, and efficient.
  11720. # So, we kill variables containing newlines.
  11721. # Ultrix sh set writes to stderr and can't be redirected directly,
  11722. # and sets the high bit in the cache file unless we assign to the vars.
  11723. (
  11724. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11725. eval ac_val=\$$ac_var
  11726. case $ac_val in #(
  11727. *${as_nl}*)
  11728. case $ac_var in #(
  11729. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  11730. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11731. esac
  11732. case $ac_var in #(
  11733. _ | IFS | as_nl) ;; #(
  11734. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11735. *) $as_unset $ac_var ;;
  11736. esac ;;
  11737. esac
  11738. done
  11739. (set) 2>&1 |
  11740. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11741. *${as_nl}ac_space=\ *)
  11742. # `set' does not quote correctly, so add quotes (double-quote
  11743. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11744. sed -n \
  11745. "s/'/'\\\\''/g;
  11746. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11747. ;; #(
  11748. *)
  11749. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11750. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11751. ;;
  11752. esac |
  11753. sort
  11754. ) |
  11755. sed '
  11756. /^ac_cv_env_/b end
  11757. t clear
  11758. :clear
  11759. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11760. t end
  11761. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11762. :end' >>confcache
  11763. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11764. if test -w "$cache_file"; then
  11765. test "x$cache_file" != "x/dev/null" &&
  11766. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11767. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11768. cat confcache >$cache_file
  11769. else
  11770. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11771. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11772. fi
  11773. fi
  11774. rm -f confcache
  11775. for ac_func in strcasecmp strncasecmp vsnprintf
  11776. do
  11777. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11778. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11779. $as_echo_n "checking for $ac_func... " >&6; }
  11780. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11781. $as_echo_n "(cached) " >&6
  11782. else
  11783. cat >conftest.$ac_ext <<_ACEOF
  11784. /* confdefs.h. */
  11785. _ACEOF
  11786. cat confdefs.h >>conftest.$ac_ext
  11787. cat >>conftest.$ac_ext <<_ACEOF
  11788. /* end confdefs.h. */
  11789. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11790. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11791. #define $ac_func innocuous_$ac_func
  11792. /* System header to define __stub macros and hopefully few prototypes,
  11793. which can conflict with char $ac_func (); below.
  11794. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11795. <limits.h> exists even on freestanding compilers. */
  11796. #ifdef __STDC__
  11797. # include <limits.h>
  11798. #else
  11799. # include <assert.h>
  11800. #endif
  11801. #undef $ac_func
  11802. /* Override any GCC internal prototype to avoid an error.
  11803. Use char because int might match the return type of a GCC
  11804. builtin and then its argument prototype would still apply. */
  11805. #ifdef __cplusplus
  11806. extern "C"
  11807. #endif
  11808. char $ac_func ();
  11809. /* The GNU C library defines this for functions which it implements
  11810. to always fail with ENOSYS. Some functions are actually named
  11811. something starting with __ and the normal name is an alias. */
  11812. #if defined __stub_$ac_func || defined __stub___$ac_func
  11813. choke me
  11814. #endif
  11815. int
  11816. main ()
  11817. {
  11818. return $ac_func ();
  11819. ;
  11820. return 0;
  11821. }
  11822. _ACEOF
  11823. rm -f conftest.$ac_objext conftest$ac_exeext
  11824. if { (ac_try="$ac_link"
  11825. case "(($ac_try" in
  11826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11827. *) ac_try_echo=$ac_try;;
  11828. esac
  11829. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11830. $as_echo "$ac_try_echo") >&5
  11831. (eval "$ac_link") 2>conftest.er1
  11832. ac_status=$?
  11833. grep -v '^ *+' conftest.er1 >conftest.err
  11834. rm -f conftest.er1
  11835. cat conftest.err >&5
  11836. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11837. (exit $ac_status); } && {
  11838. test -z "$ac_cxx_werror_flag" ||
  11839. test ! -s conftest.err
  11840. } && test -s conftest$ac_exeext && {
  11841. test "$cross_compiling" = yes ||
  11842. $as_test_x conftest$ac_exeext
  11843. }; then
  11844. eval "$as_ac_var=yes"
  11845. else
  11846. $as_echo "$as_me: failed program was:" >&5
  11847. sed 's/^/| /' conftest.$ac_ext >&5
  11848. eval "$as_ac_var=no"
  11849. fi
  11850. rm -rf conftest.dSYM
  11851. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11852. conftest$ac_exeext conftest.$ac_ext
  11853. fi
  11854. ac_res=`eval 'as_val=${'$as_ac_var'}
  11855. $as_echo "$as_val"'`
  11856. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11857. $as_echo "$ac_res" >&6; }
  11858. as_val=`eval 'as_val=${'$as_ac_var'}
  11859. $as_echo "$as_val"'`
  11860. if test "x$as_val" = x""yes; then
  11861. cat >>confdefs.h <<_ACEOF
  11862. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11863. _ACEOF
  11864. fi
  11865. done
  11866. #autoscan suggested this....
  11867. #These are recommended by autoscan, but no code supports it currently
  11868. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  11869. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  11870. for ac_func in vsprintf
  11871. do
  11872. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11873. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11874. $as_echo_n "checking for $ac_func... " >&6; }
  11875. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11876. $as_echo_n "(cached) " >&6
  11877. else
  11878. cat >conftest.$ac_ext <<_ACEOF
  11879. /* confdefs.h. */
  11880. _ACEOF
  11881. cat confdefs.h >>conftest.$ac_ext
  11882. cat >>conftest.$ac_ext <<_ACEOF
  11883. /* end confdefs.h. */
  11884. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11885. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11886. #define $ac_func innocuous_$ac_func
  11887. /* System header to define __stub macros and hopefully few prototypes,
  11888. which can conflict with char $ac_func (); below.
  11889. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11890. <limits.h> exists even on freestanding compilers. */
  11891. #ifdef __STDC__
  11892. # include <limits.h>
  11893. #else
  11894. # include <assert.h>
  11895. #endif
  11896. #undef $ac_func
  11897. /* Override any GCC internal prototype to avoid an error.
  11898. Use char because int might match the return type of a GCC
  11899. builtin and then its argument prototype would still apply. */
  11900. #ifdef __cplusplus
  11901. extern "C"
  11902. #endif
  11903. char $ac_func ();
  11904. /* The GNU C library defines this for functions which it implements
  11905. to always fail with ENOSYS. Some functions are actually named
  11906. something starting with __ and the normal name is an alias. */
  11907. #if defined __stub_$ac_func || defined __stub___$ac_func
  11908. choke me
  11909. #endif
  11910. int
  11911. main ()
  11912. {
  11913. return $ac_func ();
  11914. ;
  11915. return 0;
  11916. }
  11917. _ACEOF
  11918. rm -f conftest.$ac_objext conftest$ac_exeext
  11919. if { (ac_try="$ac_link"
  11920. case "(($ac_try" in
  11921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11922. *) ac_try_echo=$ac_try;;
  11923. esac
  11924. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11925. $as_echo "$ac_try_echo") >&5
  11926. (eval "$ac_link") 2>conftest.er1
  11927. ac_status=$?
  11928. grep -v '^ *+' conftest.er1 >conftest.err
  11929. rm -f conftest.er1
  11930. cat conftest.err >&5
  11931. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11932. (exit $ac_status); } && {
  11933. test -z "$ac_cxx_werror_flag" ||
  11934. test ! -s conftest.err
  11935. } && test -s conftest$ac_exeext && {
  11936. test "$cross_compiling" = yes ||
  11937. $as_test_x conftest$ac_exeext
  11938. }; then
  11939. eval "$as_ac_var=yes"
  11940. else
  11941. $as_echo "$as_me: failed program was:" >&5
  11942. sed 's/^/| /' conftest.$ac_ext >&5
  11943. eval "$as_ac_var=no"
  11944. fi
  11945. rm -rf conftest.dSYM
  11946. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11947. conftest$ac_exeext conftest.$ac_ext
  11948. fi
  11949. ac_res=`eval 'as_val=${'$as_ac_var'}
  11950. $as_echo "$as_val"'`
  11951. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11952. $as_echo "$ac_res" >&6; }
  11953. as_val=`eval 'as_val=${'$as_ac_var'}
  11954. $as_echo "$as_val"'`
  11955. if test "x$as_val" = x""yes; then
  11956. cat >>confdefs.h <<_ACEOF
  11957. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11958. _ACEOF
  11959. fi
  11960. done
  11961. if test "$ac_cv_func_vsprintf" = "no"
  11962. then
  11963. cat << 'EOF' >&2
  11964. configure: error:
  11965. Your system does not have the sprintf/vsprintf libraries.
  11966. These are required to compile almost anything. Sorry.
  11967. EOF
  11968. exit 1
  11969. fi
  11970. for ac_func in uname
  11971. do
  11972. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11973. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11974. $as_echo_n "checking for $ac_func... " >&6; }
  11975. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11976. $as_echo_n "(cached) " >&6
  11977. else
  11978. cat >conftest.$ac_ext <<_ACEOF
  11979. /* confdefs.h. */
  11980. _ACEOF
  11981. cat confdefs.h >>conftest.$ac_ext
  11982. cat >>conftest.$ac_ext <<_ACEOF
  11983. /* end confdefs.h. */
  11984. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11985. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11986. #define $ac_func innocuous_$ac_func
  11987. /* System header to define __stub macros and hopefully few prototypes,
  11988. which can conflict with char $ac_func (); below.
  11989. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11990. <limits.h> exists even on freestanding compilers. */
  11991. #ifdef __STDC__
  11992. # include <limits.h>
  11993. #else
  11994. # include <assert.h>
  11995. #endif
  11996. #undef $ac_func
  11997. /* Override any GCC internal prototype to avoid an error.
  11998. Use char because int might match the return type of a GCC
  11999. builtin and then its argument prototype would still apply. */
  12000. #ifdef __cplusplus
  12001. extern "C"
  12002. #endif
  12003. char $ac_func ();
  12004. /* The GNU C library defines this for functions which it implements
  12005. to always fail with ENOSYS. Some functions are actually named
  12006. something starting with __ and the normal name is an alias. */
  12007. #if defined __stub_$ac_func || defined __stub___$ac_func
  12008. choke me
  12009. #endif
  12010. int
  12011. main ()
  12012. {
  12013. return $ac_func ();
  12014. ;
  12015. return 0;
  12016. }
  12017. _ACEOF
  12018. rm -f conftest.$ac_objext conftest$ac_exeext
  12019. if { (ac_try="$ac_link"
  12020. case "(($ac_try" in
  12021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12022. *) ac_try_echo=$ac_try;;
  12023. esac
  12024. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12025. $as_echo "$ac_try_echo") >&5
  12026. (eval "$ac_link") 2>conftest.er1
  12027. ac_status=$?
  12028. grep -v '^ *+' conftest.er1 >conftest.err
  12029. rm -f conftest.er1
  12030. cat conftest.err >&5
  12031. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12032. (exit $ac_status); } && {
  12033. test -z "$ac_cxx_werror_flag" ||
  12034. test ! -s conftest.err
  12035. } && test -s conftest$ac_exeext && {
  12036. test "$cross_compiling" = yes ||
  12037. $as_test_x conftest$ac_exeext
  12038. }; then
  12039. eval "$as_ac_var=yes"
  12040. else
  12041. $as_echo "$as_me: failed program was:" >&5
  12042. sed 's/^/| /' conftest.$ac_ext >&5
  12043. eval "$as_ac_var=no"
  12044. fi
  12045. rm -rf conftest.dSYM
  12046. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12047. conftest$ac_exeext conftest.$ac_ext
  12048. fi
  12049. ac_res=`eval 'as_val=${'$as_ac_var'}
  12050. $as_echo "$as_val"'`
  12051. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12052. $as_echo "$ac_res" >&6; }
  12053. as_val=`eval 'as_val=${'$as_ac_var'}
  12054. $as_echo "$as_val"'`
  12055. if test "x$as_val" = x""yes; then
  12056. cat >>confdefs.h <<_ACEOF
  12057. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12058. _ACEOF
  12059. fi
  12060. done
  12061. if test "$ac_cv_func_uname" = "no"
  12062. then
  12063. cat << 'EOF' >&2
  12064. configure: error:
  12065. Your system does not have the uname() function.
  12066. This is required for the botpack.
  12067. EOF
  12068. exit 1
  12069. fi
  12070. # Make sure we have stdc headers, since we can't compile without them
  12071. if test "$ac_cv_header_stdc" = "no"
  12072. then
  12073. cat << 'EOF' >&2
  12074. configure: error:
  12075. Your system must support ANSI C Header files.
  12076. These are required for the language support. Sorry.
  12077. EOF
  12078. exit 1
  12079. fi
  12080. #checkpoint
  12081. cat >confcache <<\_ACEOF
  12082. # This file is a shell script that caches the results of configure
  12083. # tests run on this system so they can be shared between configure
  12084. # scripts and configure runs, see configure's option --config-cache.
  12085. # It is not useful on other systems. If it contains results you don't
  12086. # want to keep, you may remove or edit it.
  12087. #
  12088. # config.status only pays attention to the cache file if you give it
  12089. # the --recheck option to rerun configure.
  12090. #
  12091. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12092. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12093. # following values.
  12094. _ACEOF
  12095. # The following way of writing the cache mishandles newlines in values,
  12096. # but we know of no workaround that is simple, portable, and efficient.
  12097. # So, we kill variables containing newlines.
  12098. # Ultrix sh set writes to stderr and can't be redirected directly,
  12099. # and sets the high bit in the cache file unless we assign to the vars.
  12100. (
  12101. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12102. eval ac_val=\$$ac_var
  12103. case $ac_val in #(
  12104. *${as_nl}*)
  12105. case $ac_var in #(
  12106. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  12107. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12108. esac
  12109. case $ac_var in #(
  12110. _ | IFS | as_nl) ;; #(
  12111. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12112. *) $as_unset $ac_var ;;
  12113. esac ;;
  12114. esac
  12115. done
  12116. (set) 2>&1 |
  12117. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12118. *${as_nl}ac_space=\ *)
  12119. # `set' does not quote correctly, so add quotes (double-quote
  12120. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12121. sed -n \
  12122. "s/'/'\\\\''/g;
  12123. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12124. ;; #(
  12125. *)
  12126. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12127. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12128. ;;
  12129. esac |
  12130. sort
  12131. ) |
  12132. sed '
  12133. /^ac_cv_env_/b end
  12134. t clear
  12135. :clear
  12136. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12137. t end
  12138. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12139. :end' >>confcache
  12140. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12141. if test -w "$cache_file"; then
  12142. test "x$cache_file" != "x/dev/null" &&
  12143. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12144. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12145. cat confcache >$cache_file
  12146. else
  12147. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12148. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12149. fi
  12150. fi
  12151. rm -f confcache
  12152. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  12153. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  12154. cat >>confdefs.h <<_ACEOF
  12155. #define EGG_VERSION $version_num
  12156. _ACEOF
  12157. #FIND_WRAPS
  12158. case "$srcdir" in
  12159. [\\/]* | ?:[\\/]*)
  12160. MOD_UPDIR=""
  12161. ;;
  12162. *)
  12163. MOD_UPDIR="../"
  12164. ;;
  12165. esac
  12166. files="src/Makefile.in src/compat/Makefile.in src/crypto/Makefile.in src/mod/channels.mod/Makefile src/mod/compress.mod/Makefile src/mod/console.mod/Makefile src/mod/ctcp.mod/Makefile src/mod/irc.mod/Makefile src/mod/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  12167. for mf in $files; do
  12168. # Strip MF so we end up with the name of the file.
  12169. # echo "MF: $mf"
  12170. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12171. dirpart=`$as_dirname -- "$mf" ||
  12172. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12173. X"$mf" : 'X\(//\)[^/]' \| \
  12174. X"$mf" : 'X\(//\)$' \| \
  12175. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12176. $as_echo X"$mf" |
  12177. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12178. s//\1/
  12179. q
  12180. }
  12181. /^X\(\/\/\)[^/].*/{
  12182. s//\1/
  12183. q
  12184. }
  12185. /^X\(\/\/\)$/{
  12186. s//\1/
  12187. q
  12188. }
  12189. /^X\(\/\).*/{
  12190. s//\1/
  12191. q
  12192. }
  12193. s/.*/./; q'`
  12194. # echo "dirpart: $dirpart mf: $mf"
  12195. # rm -rf "$dirpart/.deps/"
  12196. rm -f "$dirpart/.deps/includes"
  12197. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  12198. for file in `sed -n -e '
  12199. /^OBJS = .*\\\\$/ {
  12200. s/^OBJS = //
  12201. :loop
  12202. s/\\\\$//
  12203. p
  12204. n
  12205. /\\\\$/ b loop
  12206. p
  12207. }
  12208. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  12209. do
  12210. base=`basename $file .o`
  12211. test -f "$dirpart/$base.c" || continue
  12212. if ! test -f "$dirpart/.deps/$base.Po"; then
  12213. echo '# dummy' > "$dirpart/.deps/$base.Po"
  12214. #Remove the .o file, because it needs to be recompiled for its dependancies.
  12215. if test -f "$dirpart/$base.o"; then
  12216. rm -f "$dirpart/$base.o"
  12217. fi
  12218. fi
  12219. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  12220. echo "_$base.c:" >> "$dirpart/.deps/includes"
  12221. done
  12222. done
  12223. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/buildinfo.h"
  12224. cat >confcache <<\_ACEOF
  12225. # This file is a shell script that caches the results of configure
  12226. # tests run on this system so they can be shared between configure
  12227. # scripts and configure runs, see configure's option --config-cache.
  12228. # It is not useful on other systems. If it contains results you don't
  12229. # want to keep, you may remove or edit it.
  12230. #
  12231. # config.status only pays attention to the cache file if you give it
  12232. # the --recheck option to rerun configure.
  12233. #
  12234. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12235. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12236. # following values.
  12237. _ACEOF
  12238. # The following way of writing the cache mishandles newlines in values,
  12239. # but we know of no workaround that is simple, portable, and efficient.
  12240. # So, we kill variables containing newlines.
  12241. # Ultrix sh set writes to stderr and can't be redirected directly,
  12242. # and sets the high bit in the cache file unless we assign to the vars.
  12243. (
  12244. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12245. eval ac_val=\$$ac_var
  12246. case $ac_val in #(
  12247. *${as_nl}*)
  12248. case $ac_var in #(
  12249. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  12250. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12251. esac
  12252. case $ac_var in #(
  12253. _ | IFS | as_nl) ;; #(
  12254. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12255. *) $as_unset $ac_var ;;
  12256. esac ;;
  12257. esac
  12258. done
  12259. (set) 2>&1 |
  12260. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12261. *${as_nl}ac_space=\ *)
  12262. # `set' does not quote correctly, so add quotes (double-quote
  12263. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12264. sed -n \
  12265. "s/'/'\\\\''/g;
  12266. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12267. ;; #(
  12268. *)
  12269. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12270. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12271. ;;
  12272. esac |
  12273. sort
  12274. ) |
  12275. sed '
  12276. /^ac_cv_env_/b end
  12277. t clear
  12278. :clear
  12279. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12280. t end
  12281. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12282. :end' >>confcache
  12283. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12284. if test -w "$cache_file"; then
  12285. test "x$cache_file" != "x/dev/null" &&
  12286. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12287. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12288. cat confcache >$cache_file
  12289. else
  12290. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12291. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12292. fi
  12293. fi
  12294. rm -f confcache
  12295. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12296. # Let make expand exec_prefix.
  12297. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12298. DEFS=-DHAVE_CONFIG_H
  12299. ac_libobjs=
  12300. ac_ltlibobjs=
  12301. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12302. # 1. Remove the extension, and $U if already installed.
  12303. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12304. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12305. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12306. # will be set to the directory where LIBOBJS objects are built.
  12307. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12308. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  12309. done
  12310. LIBOBJS=$ac_libobjs
  12311. LTLIBOBJS=$ac_ltlibobjs
  12312. : ${CONFIG_STATUS=./config.status}
  12313. ac_write_fail=0
  12314. ac_clean_files_save=$ac_clean_files
  12315. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12316. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12317. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12318. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12319. #! $SHELL
  12320. # Generated by $as_me.
  12321. # Run this file to recreate the current configuration.
  12322. # Compiler output produced by configure, useful for debugging
  12323. # configure, is in config.log if it exists.
  12324. debug=false
  12325. ac_cs_recheck=false
  12326. ac_cs_silent=false
  12327. SHELL=\${CONFIG_SHELL-$SHELL}
  12328. _ACEOF
  12329. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12330. ## --------------------- ##
  12331. ## M4sh Initialization. ##
  12332. ## --------------------- ##
  12333. # Be more Bourne compatible
  12334. DUALCASE=1; export DUALCASE # for MKS sh
  12335. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12336. emulate sh
  12337. NULLCMD=:
  12338. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12339. # is contrary to our usage. Disable this feature.
  12340. alias -g '${1+"$@"}'='"$@"'
  12341. setopt NO_GLOB_SUBST
  12342. else
  12343. case `(set -o) 2>/dev/null` in
  12344. *posix*) set -o posix ;;
  12345. esac
  12346. fi
  12347. # PATH needs CR
  12348. # Avoid depending upon Character Ranges.
  12349. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12350. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12351. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12352. as_cr_digits='0123456789'
  12353. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12354. as_nl='
  12355. '
  12356. export as_nl
  12357. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12358. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12359. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12360. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12361. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12362. as_echo='printf %s\n'
  12363. as_echo_n='printf %s'
  12364. else
  12365. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12366. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12367. as_echo_n='/usr/ucb/echo -n'
  12368. else
  12369. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12370. as_echo_n_body='eval
  12371. arg=$1;
  12372. case $arg in
  12373. *"$as_nl"*)
  12374. expr "X$arg" : "X\\(.*\\)$as_nl";
  12375. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12376. esac;
  12377. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12378. '
  12379. export as_echo_n_body
  12380. as_echo_n='sh -c $as_echo_n_body as_echo'
  12381. fi
  12382. export as_echo_body
  12383. as_echo='sh -c $as_echo_body as_echo'
  12384. fi
  12385. # The user is always right.
  12386. if test "${PATH_SEPARATOR+set}" != set; then
  12387. PATH_SEPARATOR=:
  12388. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12389. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12390. PATH_SEPARATOR=';'
  12391. }
  12392. fi
  12393. # Support unset when possible.
  12394. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12395. as_unset=unset
  12396. else
  12397. as_unset=false
  12398. fi
  12399. # IFS
  12400. # We need space, tab and new line, in precisely that order. Quoting is
  12401. # there to prevent editors from complaining about space-tab.
  12402. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12403. # splitting by setting IFS to empty value.)
  12404. IFS=" "" $as_nl"
  12405. # Find who we are. Look in the path if we contain no directory separator.
  12406. case $0 in
  12407. *[\\/]* ) as_myself=$0 ;;
  12408. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12409. for as_dir in $PATH
  12410. do
  12411. IFS=$as_save_IFS
  12412. test -z "$as_dir" && as_dir=.
  12413. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12414. done
  12415. IFS=$as_save_IFS
  12416. ;;
  12417. esac
  12418. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12419. # in which case we are not to be found in the path.
  12420. if test "x$as_myself" = x; then
  12421. as_myself=$0
  12422. fi
  12423. if test ! -f "$as_myself"; then
  12424. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12425. { (exit 1); exit 1; }
  12426. fi
  12427. # Work around bugs in pre-3.0 UWIN ksh.
  12428. for as_var in ENV MAIL MAILPATH
  12429. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12430. done
  12431. PS1='$ '
  12432. PS2='> '
  12433. PS4='+ '
  12434. # NLS nuisances.
  12435. LC_ALL=C
  12436. export LC_ALL
  12437. LANGUAGE=C
  12438. export LANGUAGE
  12439. # Required to use basename.
  12440. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12441. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12442. as_expr=expr
  12443. else
  12444. as_expr=false
  12445. fi
  12446. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12447. as_basename=basename
  12448. else
  12449. as_basename=false
  12450. fi
  12451. # Name of the executable.
  12452. as_me=`$as_basename -- "$0" ||
  12453. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12454. X"$0" : 'X\(//\)$' \| \
  12455. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12456. $as_echo X/"$0" |
  12457. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12458. s//\1/
  12459. q
  12460. }
  12461. /^X\/\(\/\/\)$/{
  12462. s//\1/
  12463. q
  12464. }
  12465. /^X\/\(\/\).*/{
  12466. s//\1/
  12467. q
  12468. }
  12469. s/.*/./; q'`
  12470. # CDPATH.
  12471. $as_unset CDPATH
  12472. as_lineno_1=$LINENO
  12473. as_lineno_2=$LINENO
  12474. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12475. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  12476. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12477. # uniformly replaced by the line number. The first 'sed' inserts a
  12478. # line-number line after each line using $LINENO; the second 'sed'
  12479. # does the real work. The second script uses 'N' to pair each
  12480. # line-number line with the line containing $LINENO, and appends
  12481. # trailing '-' during substitution so that $LINENO is not a special
  12482. # case at line end.
  12483. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12484. # scripts with optimization help from Paolo Bonzini. Blame Lee
  12485. # E. McMahon (1931-1989) for sed's syntax. :-)
  12486. sed -n '
  12487. p
  12488. /[$]LINENO/=
  12489. ' <$as_myself |
  12490. sed '
  12491. s/[$]LINENO.*/&-/
  12492. t lineno
  12493. b
  12494. :lineno
  12495. N
  12496. :loop
  12497. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12498. t loop
  12499. s/-\n.*//
  12500. ' >$as_me.lineno &&
  12501. chmod +x "$as_me.lineno" ||
  12502. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12503. { (exit 1); exit 1; }; }
  12504. # Don't try to exec as it changes $[0], causing all sort of problems
  12505. # (the dirname of $[0] is not the place where we might find the
  12506. # original and so on. Autoconf is especially sensitive to this).
  12507. . "./$as_me.lineno"
  12508. # Exit status is that of the last command.
  12509. exit
  12510. }
  12511. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12512. as_dirname=dirname
  12513. else
  12514. as_dirname=false
  12515. fi
  12516. ECHO_C= ECHO_N= ECHO_T=
  12517. case `echo -n x` in
  12518. -n*)
  12519. case `echo 'x\c'` in
  12520. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12521. *) ECHO_C='\c';;
  12522. esac;;
  12523. *)
  12524. ECHO_N='-n';;
  12525. esac
  12526. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12527. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12528. as_expr=expr
  12529. else
  12530. as_expr=false
  12531. fi
  12532. rm -f conf$$ conf$$.exe conf$$.file
  12533. if test -d conf$$.dir; then
  12534. rm -f conf$$.dir/conf$$.file
  12535. else
  12536. rm -f conf$$.dir
  12537. mkdir conf$$.dir 2>/dev/null
  12538. fi
  12539. if (echo >conf$$.file) 2>/dev/null; then
  12540. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12541. as_ln_s='ln -s'
  12542. # ... but there are two gotchas:
  12543. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12544. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12545. # In both cases, we have to default to `cp -p'.
  12546. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12547. as_ln_s='cp -p'
  12548. elif ln conf$$.file conf$$ 2>/dev/null; then
  12549. as_ln_s=ln
  12550. else
  12551. as_ln_s='cp -p'
  12552. fi
  12553. else
  12554. as_ln_s='cp -p'
  12555. fi
  12556. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12557. rmdir conf$$.dir 2>/dev/null
  12558. if mkdir -p . 2>/dev/null; then
  12559. as_mkdir_p=:
  12560. else
  12561. test -d ./-p && rmdir ./-p
  12562. as_mkdir_p=false
  12563. fi
  12564. if test -x / >/dev/null 2>&1; then
  12565. as_test_x='test -x'
  12566. else
  12567. if ls -dL / >/dev/null 2>&1; then
  12568. as_ls_L_option=L
  12569. else
  12570. as_ls_L_option=
  12571. fi
  12572. as_test_x='
  12573. eval sh -c '\''
  12574. if test -d "$1"; then
  12575. test -d "$1/.";
  12576. else
  12577. case $1 in
  12578. -*)set "./$1";;
  12579. esac;
  12580. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  12581. ???[sx]*):;;*)false;;esac;fi
  12582. '\'' sh
  12583. '
  12584. fi
  12585. as_executable_p=$as_test_x
  12586. # Sed expression to map a string onto a valid CPP name.
  12587. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12588. # Sed expression to map a string onto a valid variable name.
  12589. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12590. exec 6>&1
  12591. # Save the log message, to keep $[0] and so on meaningful, and to
  12592. # report actual input values of CONFIG_FILES etc. instead of their
  12593. # values after options handling.
  12594. ac_log="
  12595. This file was extended by $as_me, which was
  12596. generated by GNU Autoconf 2.63. Invocation command line was
  12597. CONFIG_FILES = $CONFIG_FILES
  12598. CONFIG_HEADERS = $CONFIG_HEADERS
  12599. CONFIG_LINKS = $CONFIG_LINKS
  12600. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12601. $ $0 $@
  12602. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12603. "
  12604. _ACEOF
  12605. case $ac_config_files in *"
  12606. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12607. esac
  12608. case $ac_config_headers in *"
  12609. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12610. esac
  12611. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12612. # Files that config.status was made for.
  12613. config_files="$ac_config_files"
  12614. config_headers="$ac_config_headers"
  12615. _ACEOF
  12616. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12617. ac_cs_usage="\
  12618. \`$as_me' instantiates files from templates according to the
  12619. current configuration.
  12620. Usage: $0 [OPTION]... [FILE]...
  12621. -h, --help print this help, then exit
  12622. -V, --version print version number and configuration settings, then exit
  12623. -q, --quiet, --silent
  12624. do not print progress messages
  12625. -d, --debug don't remove temporary files
  12626. --recheck update $as_me by reconfiguring in the same conditions
  12627. --file=FILE[:TEMPLATE]
  12628. instantiate the configuration file FILE
  12629. --header=FILE[:TEMPLATE]
  12630. instantiate the configuration header FILE
  12631. Configuration files:
  12632. $config_files
  12633. Configuration headers:
  12634. $config_headers
  12635. Report bugs to <bug-autoconf@gnu.org>."
  12636. _ACEOF
  12637. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12638. ac_cs_version="\\
  12639. config.status
  12640. configured by $0, generated by GNU Autoconf 2.63,
  12641. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12642. Copyright (C) 2008 Free Software Foundation, Inc.
  12643. This config.status script is free software; the Free Software Foundation
  12644. gives unlimited permission to copy, distribute and modify it."
  12645. ac_pwd='$ac_pwd'
  12646. srcdir='$srcdir'
  12647. AWK='$AWK'
  12648. test -n "\$AWK" || AWK=awk
  12649. _ACEOF
  12650. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12651. # The default lists apply if the user does not specify any file.
  12652. ac_need_defaults=:
  12653. while test $# != 0
  12654. do
  12655. case $1 in
  12656. --*=*)
  12657. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12658. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12659. ac_shift=:
  12660. ;;
  12661. *)
  12662. ac_option=$1
  12663. ac_optarg=$2
  12664. ac_shift=shift
  12665. ;;
  12666. esac
  12667. case $ac_option in
  12668. # Handling of the options.
  12669. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12670. ac_cs_recheck=: ;;
  12671. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12672. $as_echo "$ac_cs_version"; exit ;;
  12673. --debug | --debu | --deb | --de | --d | -d )
  12674. debug=: ;;
  12675. --file | --fil | --fi | --f )
  12676. $ac_shift
  12677. case $ac_optarg in
  12678. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12679. esac
  12680. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  12681. ac_need_defaults=false;;
  12682. --header | --heade | --head | --hea )
  12683. $ac_shift
  12684. case $ac_optarg in
  12685. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12686. esac
  12687. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  12688. ac_need_defaults=false;;
  12689. --he | --h)
  12690. # Conflict between --help and --header
  12691. { $as_echo "$as_me: error: ambiguous option: $1
  12692. Try \`$0 --help' for more information." >&2
  12693. { (exit 1); exit 1; }; };;
  12694. --help | --hel | -h )
  12695. $as_echo "$ac_cs_usage"; exit ;;
  12696. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12697. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12698. ac_cs_silent=: ;;
  12699. # This is an error.
  12700. -*) { $as_echo "$as_me: error: unrecognized option: $1
  12701. Try \`$0 --help' for more information." >&2
  12702. { (exit 1); exit 1; }; } ;;
  12703. *) ac_config_targets="$ac_config_targets $1"
  12704. ac_need_defaults=false ;;
  12705. esac
  12706. shift
  12707. done
  12708. ac_configure_extra_args=
  12709. if $ac_cs_silent; then
  12710. exec 6>/dev/null
  12711. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12712. fi
  12713. _ACEOF
  12714. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12715. if \$ac_cs_recheck; then
  12716. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12717. shift
  12718. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12719. CONFIG_SHELL='$SHELL'
  12720. export CONFIG_SHELL
  12721. exec "\$@"
  12722. fi
  12723. _ACEOF
  12724. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12725. exec 5>>config.log
  12726. {
  12727. echo
  12728. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12729. ## Running $as_me. ##
  12730. _ASBOX
  12731. $as_echo "$ac_log"
  12732. } >&5
  12733. _ACEOF
  12734. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12735. _ACEOF
  12736. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12737. # Handling of arguments.
  12738. for ac_config_target in $ac_config_targets
  12739. do
  12740. case $ac_config_target in
  12741. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12742. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12743. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  12744. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12745. "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  12746. "src/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  12747. "src/mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  12748. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  12749. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12750. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12751. { (exit 1); exit 1; }; };;
  12752. esac
  12753. done
  12754. # If the user did not use the arguments to specify the items to instantiate,
  12755. # then the envvar interface is used. Set only those that are not.
  12756. # We use the long form for the default assignment because of an extremely
  12757. # bizarre bug on SunOS 4.1.3.
  12758. if $ac_need_defaults; then
  12759. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12760. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12761. fi
  12762. # Have a temporary directory for convenience. Make it in the build tree
  12763. # simply because there is no reason against having it here, and in addition,
  12764. # creating and moving files from /tmp can sometimes cause problems.
  12765. # Hook for its removal unless debugging.
  12766. # Note that there is a small window in which the directory will not be cleaned:
  12767. # after its creation but before its name has been assigned to `$tmp'.
  12768. $debug ||
  12769. {
  12770. tmp=
  12771. trap 'exit_status=$?
  12772. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12773. ' 0
  12774. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12775. }
  12776. # Create a (secure) tmp directory for tmp files.
  12777. {
  12778. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12779. test -n "$tmp" && test -d "$tmp"
  12780. } ||
  12781. {
  12782. tmp=./conf$$-$RANDOM
  12783. (umask 077 && mkdir "$tmp")
  12784. } ||
  12785. {
  12786. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  12787. { (exit 1); exit 1; }
  12788. }
  12789. # Set up the scripts for CONFIG_FILES section.
  12790. # No need to generate them if there are no CONFIG_FILES.
  12791. # This happens for instance with `./config.status config.h'.
  12792. if test -n "$CONFIG_FILES"; then
  12793. ac_cr=' '
  12794. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12795. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12796. ac_cs_awk_cr='\\r'
  12797. else
  12798. ac_cs_awk_cr=$ac_cr
  12799. fi
  12800. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  12801. _ACEOF
  12802. {
  12803. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12804. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12805. echo "_ACEOF"
  12806. } >conf$$subs.sh ||
  12807. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12808. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12809. { (exit 1); exit 1; }; }
  12810. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  12811. ac_delim='%!_!# '
  12812. for ac_last_try in false false false false false :; do
  12813. . ./conf$$subs.sh ||
  12814. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12815. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12816. { (exit 1); exit 1; }; }
  12817. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12818. if test $ac_delim_n = $ac_delim_num; then
  12819. break
  12820. elif $ac_last_try; then
  12821. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12822. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12823. { (exit 1); exit 1; }; }
  12824. else
  12825. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12826. fi
  12827. done
  12828. rm -f conf$$subs.sh
  12829. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12830. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  12831. _ACEOF
  12832. sed -n '
  12833. h
  12834. s/^/S["/; s/!.*/"]=/
  12835. p
  12836. g
  12837. s/^[^!]*!//
  12838. :repl
  12839. t repl
  12840. s/'"$ac_delim"'$//
  12841. t delim
  12842. :nl
  12843. h
  12844. s/\(.\{148\}\).*/\1/
  12845. t more1
  12846. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12847. p
  12848. n
  12849. b repl
  12850. :more1
  12851. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12852. p
  12853. g
  12854. s/.\{148\}//
  12855. t nl
  12856. :delim
  12857. h
  12858. s/\(.\{148\}\).*/\1/
  12859. t more2
  12860. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12861. p
  12862. b
  12863. :more2
  12864. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12865. p
  12866. g
  12867. s/.\{148\}//
  12868. t delim
  12869. ' <conf$$subs.awk | sed '
  12870. /^[^""]/{
  12871. N
  12872. s/\n//
  12873. }
  12874. ' >>$CONFIG_STATUS || ac_write_fail=1
  12875. rm -f conf$$subs.awk
  12876. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12877. _ACAWK
  12878. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  12879. for (key in S) S_is_set[key] = 1
  12880. FS = ""
  12881. }
  12882. {
  12883. line = $ 0
  12884. nfields = split(line, field, "@")
  12885. substed = 0
  12886. len = length(field[1])
  12887. for (i = 2; i < nfields; i++) {
  12888. key = field[i]
  12889. keylen = length(key)
  12890. if (S_is_set[key]) {
  12891. value = S[key]
  12892. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12893. len += length(value) + length(field[++i])
  12894. substed = 1
  12895. } else
  12896. len += 1 + keylen
  12897. }
  12898. print line
  12899. }
  12900. _ACAWK
  12901. _ACEOF
  12902. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12903. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12904. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12905. else
  12906. cat
  12907. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  12908. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  12909. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  12910. { (exit 1); exit 1; }; }
  12911. _ACEOF
  12912. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12913. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12914. # trailing colons and then remove the whole line if VPATH becomes empty
  12915. # (actually we leave an empty line to preserve line numbers).
  12916. if test "x$srcdir" = x.; then
  12917. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12918. s/:*\$(srcdir):*/:/
  12919. s/:*\${srcdir}:*/:/
  12920. s/:*@srcdir@:*/:/
  12921. s/^\([^=]*=[ ]*\):*/\1/
  12922. s/:*$//
  12923. s/^[^=]*=[ ]*$//
  12924. }'
  12925. fi
  12926. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12927. fi # test -n "$CONFIG_FILES"
  12928. # Set up the scripts for CONFIG_HEADERS section.
  12929. # No need to generate them if there are no CONFIG_HEADERS.
  12930. # This happens for instance with `./config.status Makefile'.
  12931. if test -n "$CONFIG_HEADERS"; then
  12932. cat >"$tmp/defines.awk" <<\_ACAWK ||
  12933. BEGIN {
  12934. _ACEOF
  12935. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12936. # here-document in config.status, that substitutes the proper values into
  12937. # config.h.in to produce config.h.
  12938. # Create a delimiter string that does not exist in confdefs.h, to ease
  12939. # handling of long lines.
  12940. ac_delim='%!_!# '
  12941. for ac_last_try in false false :; do
  12942. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  12943. if test -z "$ac_t"; then
  12944. break
  12945. elif $ac_last_try; then
  12946. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  12947. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  12948. { (exit 1); exit 1; }; }
  12949. else
  12950. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12951. fi
  12952. done
  12953. # For the awk script, D is an array of macro values keyed by name,
  12954. # likewise P contains macro parameters if any. Preserve backslash
  12955. # newline sequences.
  12956. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12957. sed -n '
  12958. s/.\{148\}/&'"$ac_delim"'/g
  12959. t rset
  12960. :rset
  12961. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12962. t def
  12963. d
  12964. :def
  12965. s/\\$//
  12966. t bsnl
  12967. s/["\\]/\\&/g
  12968. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12969. D["\1"]=" \3"/p
  12970. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12971. d
  12972. :bsnl
  12973. s/["\\]/\\&/g
  12974. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12975. D["\1"]=" \3\\\\\\n"\\/p
  12976. t cont
  12977. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12978. t cont
  12979. d
  12980. :cont
  12981. n
  12982. s/.\{148\}/&'"$ac_delim"'/g
  12983. t clear
  12984. :clear
  12985. s/\\$//
  12986. t bsnlc
  12987. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12988. d
  12989. :bsnlc
  12990. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12991. b cont
  12992. ' <confdefs.h | sed '
  12993. s/'"$ac_delim"'/"\\\
  12994. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12995. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12996. for (key in D) D_is_set[key] = 1
  12997. FS = ""
  12998. }
  12999. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13000. line = \$ 0
  13001. split(line, arg, " ")
  13002. if (arg[1] == "#") {
  13003. defundef = arg[2]
  13004. mac1 = arg[3]
  13005. } else {
  13006. defundef = substr(arg[1], 2)
  13007. mac1 = arg[2]
  13008. }
  13009. split(mac1, mac2, "(") #)
  13010. macro = mac2[1]
  13011. prefix = substr(line, 1, index(line, defundef) - 1)
  13012. if (D_is_set[macro]) {
  13013. # Preserve the white space surrounding the "#".
  13014. print prefix "define", macro P[macro] D[macro]
  13015. next
  13016. } else {
  13017. # Replace #undef with comments. This is necessary, for example,
  13018. # in the case of _POSIX_SOURCE, which is predefined and required
  13019. # on some systems where configure will not decide to define it.
  13020. if (defundef == "undef") {
  13021. print "/*", prefix defundef, macro, "*/"
  13022. next
  13023. }
  13024. }
  13025. }
  13026. { print }
  13027. _ACAWK
  13028. _ACEOF
  13029. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13030. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  13031. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  13032. { (exit 1); exit 1; }; }
  13033. fi # test -n "$CONFIG_HEADERS"
  13034. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  13035. shift
  13036. for ac_tag
  13037. do
  13038. case $ac_tag in
  13039. :[FHLC]) ac_mode=$ac_tag; continue;;
  13040. esac
  13041. case $ac_mode$ac_tag in
  13042. :[FHL]*:*);;
  13043. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  13044. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  13045. { (exit 1); exit 1; }; };;
  13046. :[FH]-) ac_tag=-:-;;
  13047. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13048. esac
  13049. ac_save_IFS=$IFS
  13050. IFS=:
  13051. set x $ac_tag
  13052. IFS=$ac_save_IFS
  13053. shift
  13054. ac_file=$1
  13055. shift
  13056. case $ac_mode in
  13057. :L) ac_source=$1;;
  13058. :[FH])
  13059. ac_file_inputs=
  13060. for ac_f
  13061. do
  13062. case $ac_f in
  13063. -) ac_f="$tmp/stdin";;
  13064. *) # Look for the file first in the build tree, then in the source tree
  13065. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13066. # because $ac_f cannot contain `:'.
  13067. test -f "$ac_f" ||
  13068. case $ac_f in
  13069. [\\/$]*) false;;
  13070. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13071. esac ||
  13072. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  13073. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  13074. { (exit 1); exit 1; }; };;
  13075. esac
  13076. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13077. ac_file_inputs="$ac_file_inputs '$ac_f'"
  13078. done
  13079. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13080. # use $as_me), people would be surprised to read:
  13081. # /* config.h. Generated by config.status. */
  13082. configure_input='Generated from '`
  13083. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13084. `' by configure.'
  13085. if test x"$ac_file" != x-; then
  13086. configure_input="$ac_file. $configure_input"
  13087. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  13088. $as_echo "$as_me: creating $ac_file" >&6;}
  13089. fi
  13090. # Neutralize special characters interpreted by sed in replacement strings.
  13091. case $configure_input in #(
  13092. *\&* | *\|* | *\\* )
  13093. ac_sed_conf_input=`$as_echo "$configure_input" |
  13094. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13095. *) ac_sed_conf_input=$configure_input;;
  13096. esac
  13097. case $ac_tag in
  13098. *:-:* | *:-) cat >"$tmp/stdin" \
  13099. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13100. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13101. { (exit 1); exit 1; }; } ;;
  13102. esac
  13103. ;;
  13104. esac
  13105. ac_dir=`$as_dirname -- "$ac_file" ||
  13106. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13107. X"$ac_file" : 'X\(//\)[^/]' \| \
  13108. X"$ac_file" : 'X\(//\)$' \| \
  13109. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13110. $as_echo X"$ac_file" |
  13111. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13112. s//\1/
  13113. q
  13114. }
  13115. /^X\(\/\/\)[^/].*/{
  13116. s//\1/
  13117. q
  13118. }
  13119. /^X\(\/\/\)$/{
  13120. s//\1/
  13121. q
  13122. }
  13123. /^X\(\/\).*/{
  13124. s//\1/
  13125. q
  13126. }
  13127. s/.*/./; q'`
  13128. { as_dir="$ac_dir"
  13129. case $as_dir in #(
  13130. -*) as_dir=./$as_dir;;
  13131. esac
  13132. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13133. as_dirs=
  13134. while :; do
  13135. case $as_dir in #(
  13136. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13137. *) as_qdir=$as_dir;;
  13138. esac
  13139. as_dirs="'$as_qdir' $as_dirs"
  13140. as_dir=`$as_dirname -- "$as_dir" ||
  13141. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13142. X"$as_dir" : 'X\(//\)[^/]' \| \
  13143. X"$as_dir" : 'X\(//\)$' \| \
  13144. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13145. $as_echo X"$as_dir" |
  13146. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13147. s//\1/
  13148. q
  13149. }
  13150. /^X\(\/\/\)[^/].*/{
  13151. s//\1/
  13152. q
  13153. }
  13154. /^X\(\/\/\)$/{
  13155. s//\1/
  13156. q
  13157. }
  13158. /^X\(\/\).*/{
  13159. s//\1/
  13160. q
  13161. }
  13162. s/.*/./; q'`
  13163. test -d "$as_dir" && break
  13164. done
  13165. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13166. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13167. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13168. { (exit 1); exit 1; }; }; }
  13169. ac_builddir=.
  13170. case "$ac_dir" in
  13171. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13172. *)
  13173. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13174. # A ".." for each directory in $ac_dir_suffix.
  13175. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13176. case $ac_top_builddir_sub in
  13177. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13178. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13179. esac ;;
  13180. esac
  13181. ac_abs_top_builddir=$ac_pwd
  13182. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13183. # for backward compatibility:
  13184. ac_top_builddir=$ac_top_build_prefix
  13185. case $srcdir in
  13186. .) # We are building in place.
  13187. ac_srcdir=.
  13188. ac_top_srcdir=$ac_top_builddir_sub
  13189. ac_abs_top_srcdir=$ac_pwd ;;
  13190. [\\/]* | ?:[\\/]* ) # Absolute name.
  13191. ac_srcdir=$srcdir$ac_dir_suffix;
  13192. ac_top_srcdir=$srcdir
  13193. ac_abs_top_srcdir=$srcdir ;;
  13194. *) # Relative name.
  13195. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13196. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13197. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13198. esac
  13199. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13200. case $ac_mode in
  13201. :F)
  13202. #
  13203. # CONFIG_FILE
  13204. #
  13205. _ACEOF
  13206. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13207. # If the template does not know about datarootdir, expand it.
  13208. # FIXME: This hack should be removed a few years after 2.60.
  13209. ac_datarootdir_hack=; ac_datarootdir_seen=
  13210. ac_sed_dataroot='
  13211. /datarootdir/ {
  13212. p
  13213. q
  13214. }
  13215. /@datadir@/p
  13216. /@docdir@/p
  13217. /@infodir@/p
  13218. /@localedir@/p
  13219. /@mandir@/p
  13220. '
  13221. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13222. *datarootdir*) ac_datarootdir_seen=yes;;
  13223. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13224. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13225. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13226. _ACEOF
  13227. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13228. ac_datarootdir_hack='
  13229. s&@datadir@&$datadir&g
  13230. s&@docdir@&$docdir&g
  13231. s&@infodir@&$infodir&g
  13232. s&@localedir@&$localedir&g
  13233. s&@mandir@&$mandir&g
  13234. s&\\\${datarootdir}&$datarootdir&g' ;;
  13235. esac
  13236. _ACEOF
  13237. # Neutralize VPATH when `$srcdir' = `.'.
  13238. # Shell code in configure.ac might set extrasub.
  13239. # FIXME: do we really want to maintain this feature?
  13240. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13241. ac_sed_extra="$ac_vpsub
  13242. $extrasub
  13243. _ACEOF
  13244. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13245. :t
  13246. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13247. s|@configure_input@|$ac_sed_conf_input|;t t
  13248. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13249. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13250. s&@srcdir@&$ac_srcdir&;t t
  13251. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13252. s&@top_srcdir@&$ac_top_srcdir&;t t
  13253. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13254. s&@builddir@&$ac_builddir&;t t
  13255. s&@abs_builddir@&$ac_abs_builddir&;t t
  13256. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13257. $ac_datarootdir_hack
  13258. "
  13259. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  13260. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13261. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13262. { (exit 1); exit 1; }; }
  13263. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13264. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13265. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13266. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13267. which seems to be undefined. Please make sure it is defined." >&5
  13268. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13269. which seems to be undefined. Please make sure it is defined." >&2;}
  13270. rm -f "$tmp/stdin"
  13271. case $ac_file in
  13272. -) cat "$tmp/out" && rm -f "$tmp/out";;
  13273. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  13274. esac \
  13275. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13276. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13277. { (exit 1); exit 1; }; }
  13278. ;;
  13279. :H)
  13280. #
  13281. # CONFIG_HEADER
  13282. #
  13283. if test x"$ac_file" != x-; then
  13284. {
  13285. $as_echo "/* $configure_input */" \
  13286. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  13287. } >"$tmp/config.h" \
  13288. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13289. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13290. { (exit 1); exit 1; }; }
  13291. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  13292. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13293. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13294. else
  13295. rm -f "$ac_file"
  13296. mv "$tmp/config.h" "$ac_file" \
  13297. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13298. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13299. { (exit 1); exit 1; }; }
  13300. fi
  13301. else
  13302. $as_echo "/* $configure_input */" \
  13303. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  13304. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  13305. $as_echo "$as_me: error: could not create -" >&2;}
  13306. { (exit 1); exit 1; }; }
  13307. fi
  13308. ;;
  13309. esac
  13310. done # for ac_tag
  13311. { (exit 0); exit 0; }
  13312. _ACEOF
  13313. chmod +x $CONFIG_STATUS
  13314. ac_clean_files=$ac_clean_files_save
  13315. test $ac_write_fail = 0 ||
  13316. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  13317. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  13318. { (exit 1); exit 1; }; }
  13319. # configure is writing to config.log, and then calls config.status.
  13320. # config.status does its own redirection, appending to config.log.
  13321. # Unfortunately, on DOS this fails, as config.log is still kept open
  13322. # by configure, so config.status won't be able to write to it; its
  13323. # output is simply discarded. So we exec the FD to /dev/null,
  13324. # effectively closing config.log, so it can be properly (re)opened and
  13325. # appended to by config.status. When coming back to configure, we
  13326. # need to make the FD available again.
  13327. if test "$no_create" != yes; then
  13328. ac_cs_success=:
  13329. ac_config_status_args=
  13330. test "$silent" = yes &&
  13331. ac_config_status_args="$ac_config_status_args --quiet"
  13332. exec 5>/dev/null
  13333. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13334. exec 5>>config.log
  13335. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13336. # would make configure fail if this is the last instruction.
  13337. $ac_cs_success || { (exit 1); exit 1; }
  13338. fi
  13339. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13340. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13341. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13342. fi
  13343. echo ""
  13344. echo ""
  13345. echo "------------ Configuring BDLIB ------------"
  13346. if test -d .git; then
  13347. git submodule update --init
  13348. fi
  13349. cd lib/bdlib && ./configure