configure 247 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.67.
  5. #
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  9. # Foundation, Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. #
  15. # Copyright (c) 2003 - 2010 Bryan Drewery
  16. ## -------------------- ##
  17. ## M4sh Initialization. ##
  18. ## -------------------- ##
  19. # Be more Bourne compatible
  20. DUALCASE=1; export DUALCASE # for MKS sh
  21. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22. emulate sh
  23. NULLCMD=:
  24. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25. # is contrary to our usage. Disable this feature.
  26. alias -g '${1+"$@"}'='"$@"'
  27. setopt NO_GLOB_SUBST
  28. else
  29. case `(set -o) 2>/dev/null` in #(
  30. *posix*) :
  31. set -o posix ;; #(
  32. *) :
  33. ;;
  34. esac
  35. fi
  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. # Prefer a ksh shell builtin over an external printf program on Solaris,
  44. # but without wasting forks for bash or zsh.
  45. if test -z "$BASH_VERSION$ZSH_VERSION" \
  46. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='print -r --'
  48. as_echo_n='print -rn --'
  49. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  50. as_echo='printf %s\n'
  51. as_echo_n='printf %s'
  52. else
  53. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  54. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  55. as_echo_n='/usr/ucb/echo -n'
  56. else
  57. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  58. as_echo_n_body='eval
  59. arg=$1;
  60. case $arg in #(
  61. *"$as_nl"*)
  62. expr "X$arg" : "X\\(.*\\)$as_nl";
  63. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  64. esac;
  65. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  66. '
  67. export as_echo_n_body
  68. as_echo_n='sh -c $as_echo_n_body as_echo'
  69. fi
  70. export as_echo_body
  71. as_echo='sh -c $as_echo_body as_echo'
  72. fi
  73. # The user is always right.
  74. if test "${PATH_SEPARATOR+set}" != set; then
  75. PATH_SEPARATOR=:
  76. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  77. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  78. PATH_SEPARATOR=';'
  79. }
  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
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test \$(( 1 + 1 )) = 2 || exit 1"
  164. if (eval "$as_required") 2>/dev/null; then :
  165. as_have_required=yes
  166. else
  167. as_have_required=no
  168. fi
  169. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  170. else
  171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  172. as_found=false
  173. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  174. do
  175. IFS=$as_save_IFS
  176. test -z "$as_dir" && as_dir=.
  177. as_found=:
  178. case $as_dir in #(
  179. /*)
  180. for as_base in sh bash ksh sh5; do
  181. # Try only shells that exist, to save several forks.
  182. as_shell=$as_dir/$as_base
  183. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  184. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  185. CONFIG_SHELL=$as_shell as_have_required=yes
  186. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. break 2
  188. fi
  189. fi
  190. done;;
  191. esac
  192. as_found=false
  193. done
  194. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  195. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  196. CONFIG_SHELL=$SHELL as_have_required=yes
  197. fi; }
  198. IFS=$as_save_IFS
  199. if test "x$CONFIG_SHELL" != x; then :
  200. # We cannot yet assume a decent shell, so we have to provide a
  201. # neutralization value for shells without unset; and this also
  202. # works around shells that cannot unset nonexistent variables.
  203. BASH_ENV=/dev/null
  204. ENV=/dev/null
  205. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  206. export CONFIG_SHELL
  207. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  208. fi
  209. if test x$as_have_required = xno; then :
  210. $as_echo "$0: This script requires a shell more modern than all"
  211. $as_echo "$0: the shells that I found on your system."
  212. if test x${ZSH_VERSION+set} = xset ; then
  213. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  214. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  215. else
  216. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  217. $0: including any error possibly output before this
  218. $0: message. Then install a modern shell, or manually run
  219. $0: the script under such a shell if you do have one."
  220. fi
  221. exit 1
  222. fi
  223. fi
  224. fi
  225. SHELL=${CONFIG_SHELL-/bin/sh}
  226. export SHELL
  227. # Unset more variables known to interfere with behavior of common tools.
  228. CLICOLOR_FORCE= GREP_OPTIONS=
  229. unset CLICOLOR_FORCE GREP_OPTIONS
  230. ## --------------------- ##
  231. ## M4sh Shell Functions. ##
  232. ## --------------------- ##
  233. # as_fn_unset VAR
  234. # ---------------
  235. # Portably unset VAR.
  236. as_fn_unset ()
  237. {
  238. { eval $1=; unset $1;}
  239. }
  240. as_unset=as_fn_unset
  241. # as_fn_set_status STATUS
  242. # -----------------------
  243. # Set $? to STATUS, without forking.
  244. as_fn_set_status ()
  245. {
  246. return $1
  247. } # as_fn_set_status
  248. # as_fn_exit STATUS
  249. # -----------------
  250. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  251. as_fn_exit ()
  252. {
  253. set +e
  254. as_fn_set_status $1
  255. exit $1
  256. } # as_fn_exit
  257. # as_fn_mkdir_p
  258. # -------------
  259. # Create "$as_dir" as a directory, including parents if necessary.
  260. as_fn_mkdir_p ()
  261. {
  262. case $as_dir in #(
  263. -*) as_dir=./$as_dir;;
  264. esac
  265. test -d "$as_dir" || eval $as_mkdir_p || {
  266. as_dirs=
  267. while :; do
  268. case $as_dir in #(
  269. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  270. *) as_qdir=$as_dir;;
  271. esac
  272. as_dirs="'$as_qdir' $as_dirs"
  273. as_dir=`$as_dirname -- "$as_dir" ||
  274. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  275. X"$as_dir" : 'X\(//\)[^/]' \| \
  276. X"$as_dir" : 'X\(//\)$' \| \
  277. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  278. $as_echo X"$as_dir" |
  279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  280. s//\1/
  281. q
  282. }
  283. /^X\(\/\/\)[^/].*/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\).*/{
  292. s//\1/
  293. q
  294. }
  295. s/.*/./; q'`
  296. test -d "$as_dir" && break
  297. done
  298. test -z "$as_dirs" || eval "mkdir $as_dirs"
  299. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  300. } # as_fn_mkdir_p
  301. # as_fn_append VAR VALUE
  302. # ----------------------
  303. # Append the text in VALUE to the end of the definition contained in VAR. Take
  304. # advantage of any shell optimizations that allow amortized linear growth over
  305. # repeated appends, instead of the typical quadratic growth present in naive
  306. # implementations.
  307. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  308. eval 'as_fn_append ()
  309. {
  310. eval $1+=\$2
  311. }'
  312. else
  313. as_fn_append ()
  314. {
  315. eval $1=\$$1\$2
  316. }
  317. fi # as_fn_append
  318. # as_fn_arith ARG...
  319. # ------------------
  320. # Perform arithmetic evaluation on the ARGs, and store the result in the
  321. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  322. # must be portable across $(()) and expr.
  323. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  324. eval 'as_fn_arith ()
  325. {
  326. as_val=$(( $* ))
  327. }'
  328. else
  329. as_fn_arith ()
  330. {
  331. as_val=`expr "$@" || test $? -eq 1`
  332. }
  333. fi # as_fn_arith
  334. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  335. # ----------------------------------------
  336. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  337. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  338. # script with STATUS, using 1 if that was 0.
  339. as_fn_error ()
  340. {
  341. as_status=$1; test $as_status -eq 0 && as_status=1
  342. if test "$4"; then
  343. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  344. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  345. fi
  346. $as_echo "$as_me: error: $2" >&2
  347. as_fn_exit $as_status
  348. } # as_fn_error
  349. if expr a : '\(a\)' >/dev/null 2>&1 &&
  350. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  351. as_expr=expr
  352. else
  353. as_expr=false
  354. fi
  355. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  356. as_basename=basename
  357. else
  358. as_basename=false
  359. fi
  360. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  361. as_dirname=dirname
  362. else
  363. as_dirname=false
  364. fi
  365. as_me=`$as_basename -- "$0" ||
  366. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  367. X"$0" : 'X\(//\)$' \| \
  368. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  369. $as_echo X/"$0" |
  370. sed '/^.*\/\([^/][^/]*\)\/*$/{
  371. s//\1/
  372. q
  373. }
  374. /^X\/\(\/\/\)$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\).*/{
  379. s//\1/
  380. q
  381. }
  382. s/.*/./; q'`
  383. # Avoid depending upon Character Ranges.
  384. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  385. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  386. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  387. as_cr_digits='0123456789'
  388. as_cr_alnum=$as_cr_Letters$as_cr_digits
  389. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  390. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  391. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  392. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  393. # Blame Lee 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; as_fn_exit 1; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. ECHO_C= ECHO_N= ECHO_T=
  419. case `echo -n x` in #(((((
  420. -n*)
  421. case `echo 'xy\c'` in
  422. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  423. xy) ECHO_C='\c';;
  424. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  425. ECHO_T=' ';;
  426. esac;;
  427. *)
  428. ECHO_N='-n';;
  429. esac
  430. rm -f conf$$ conf$$.exe conf$$.file
  431. if test -d conf$$.dir; then
  432. rm -f conf$$.dir/conf$$.file
  433. else
  434. rm -f conf$$.dir
  435. mkdir conf$$.dir 2>/dev/null
  436. fi
  437. if (echo >conf$$.file) 2>/dev/null; then
  438. if ln -s conf$$.file conf$$ 2>/dev/null; then
  439. as_ln_s='ln -s'
  440. # ... but there are two gotchas:
  441. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  442. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  443. # In both cases, we have to default to `cp -p'.
  444. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  445. as_ln_s='cp -p'
  446. elif ln conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s=ln
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. else
  452. as_ln_s='cp -p'
  453. fi
  454. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  455. rmdir conf$$.dir 2>/dev/null
  456. if mkdir -p . 2>/dev/null; then
  457. as_mkdir_p='mkdir -p "$as_dir"'
  458. else
  459. test -d ./-p && rmdir ./-p
  460. as_mkdir_p=false
  461. fi
  462. if test -x / >/dev/null 2>&1; then
  463. as_test_x='test -x'
  464. else
  465. if ls -dL / >/dev/null 2>&1; then
  466. as_ls_L_option=L
  467. else
  468. as_ls_L_option=
  469. fi
  470. as_test_x='
  471. eval sh -c '\''
  472. if test -d "$1"; then
  473. test -d "$1/.";
  474. else
  475. case $1 in #(
  476. -*)set "./$1";;
  477. esac;
  478. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  479. ???[sx]*):;;*)false;;esac;fi
  480. '\'' sh
  481. '
  482. fi
  483. as_executable_p=$as_test_x
  484. # Sed expression to map a string onto a valid CPP name.
  485. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  486. # Sed expression to map a string onto a valid variable name.
  487. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  488. test -n "$DJDIR" || exec 7<&0 </dev/null
  489. exec 6>&1
  490. # Name of the host.
  491. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  492. # so uname gets run too.
  493. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  494. #
  495. # Initializations.
  496. #
  497. ac_default_prefix=/usr/local
  498. ac_clean_files=
  499. ac_config_libobj_dir=.
  500. LIBOBJS=
  501. cross_compiling=no
  502. subdirs=
  503. MFLAGS=
  504. MAKEFLAGS=
  505. # Identity of this package.
  506. PACKAGE_NAME=
  507. PACKAGE_TARNAME=
  508. PACKAGE_VERSION=
  509. PACKAGE_STRING=
  510. PACKAGE_BUGREPORT=
  511. PACKAGE_URL=
  512. ac_unique_file="wraith"
  513. ac_unique_file="src/eggdrop.h"
  514. # Factoring default headers for most tests.
  515. ac_includes_default="\
  516. #include <stdio.h>
  517. #ifdef HAVE_SYS_TYPES_H
  518. # include <sys/types.h>
  519. #endif
  520. #ifdef HAVE_SYS_STAT_H
  521. # include <sys/stat.h>
  522. #endif
  523. #ifdef STDC_HEADERS
  524. # include <stdlib.h>
  525. # include <stddef.h>
  526. #else
  527. # ifdef HAVE_STDLIB_H
  528. # include <stdlib.h>
  529. # endif
  530. #endif
  531. #ifdef HAVE_STRING_H
  532. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  533. # include <memory.h>
  534. # endif
  535. # include <string.h>
  536. #endif
  537. #ifdef HAVE_STRINGS_H
  538. # include <strings.h>
  539. #endif
  540. #ifdef HAVE_INTTYPES_H
  541. # include <inttypes.h>
  542. #endif
  543. #ifdef HAVE_STDINT_H
  544. # include <stdint.h>
  545. #endif
  546. #ifdef HAVE_UNISTD_H
  547. # include <unistd.h>
  548. #endif"
  549. ac_header_list=
  550. ac_func_list=
  551. ac_subst_vars='LTLIBOBJS
  552. MOD_UPDIR
  553. NUMVER
  554. VERSION
  555. LIBOBJS
  556. SSL_LIBS
  557. SSL_INCLUDES
  558. MAKEJOBS
  559. CCDEBUG
  560. STATIC
  561. BUILDARCH
  562. BUILDOS
  563. DISTCC
  564. CCACHE
  565. UNAME
  566. DIFF
  567. STRIP
  568. OBJCOPY
  569. BASENAME
  570. AWK
  571. HEAD_1
  572. SET_MAKE
  573. GCC4DEB
  574. GCC3DEB
  575. GCC3
  576. CCDEPMODE
  577. EGREP
  578. GREP
  579. CXXCPP
  580. OBJEXT
  581. EXEEXT
  582. ac_ct_CXX
  583. CPPFLAGS
  584. LDFLAGS
  585. CXXFLAGS
  586. CXX
  587. egg_ac_parameters
  588. target_alias
  589. host_alias
  590. build_alias
  591. LIBS
  592. ECHO_T
  593. ECHO_N
  594. ECHO_C
  595. DEFS
  596. mandir
  597. localedir
  598. libdir
  599. psdir
  600. pdfdir
  601. dvidir
  602. htmldir
  603. infodir
  604. docdir
  605. oldincludedir
  606. includedir
  607. localstatedir
  608. sharedstatedir
  609. sysconfdir
  610. datadir
  611. datarootdir
  612. libexecdir
  613. sbindir
  614. bindir
  615. program_transform_name
  616. prefix
  617. exec_prefix
  618. PACKAGE_URL
  619. PACKAGE_BUGREPORT
  620. PACKAGE_STRING
  621. PACKAGE_VERSION
  622. PACKAGE_TARNAME
  623. PACKAGE_NAME
  624. PATH_SEPARATOR
  625. SHELL'
  626. ac_subst_files=''
  627. ac_user_opts='
  628. enable_option_checking
  629. enable_ipv6
  630. with_openssl
  631. '
  632. ac_precious_vars='build_alias
  633. host_alias
  634. target_alias
  635. CXX
  636. CXXFLAGS
  637. LDFLAGS
  638. LIBS
  639. CPPFLAGS
  640. CCC
  641. CXXCPP'
  642. # Initialize some variables set by options.
  643. ac_init_help=
  644. ac_init_version=false
  645. ac_unrecognized_opts=
  646. ac_unrecognized_sep=
  647. # The variables have the same names as the options, with
  648. # dashes changed to underlines.
  649. cache_file=./config.cache
  650. exec_prefix=NONE
  651. no_create=
  652. no_recursion=
  653. prefix=NONE
  654. program_prefix=NONE
  655. program_suffix=NONE
  656. program_transform_name=s,x,x,
  657. silent=
  658. site=
  659. srcdir=
  660. verbose=
  661. x_includes=NONE
  662. x_libraries=NONE
  663. # Installation directory options.
  664. # These are left unexpanded so users can "make install exec_prefix=/foo"
  665. # and all the variables that are supposed to be based on exec_prefix
  666. # by default will actually change.
  667. # Use braces instead of parens because sh, perl, etc. also accept them.
  668. # (The list follows the same order as the GNU Coding Standards.)
  669. bindir='${exec_prefix}/bin'
  670. sbindir='${exec_prefix}/sbin'
  671. libexecdir='${exec_prefix}/libexec'
  672. datarootdir='${prefix}/share'
  673. datadir='${datarootdir}'
  674. sysconfdir='${prefix}/etc'
  675. sharedstatedir='${prefix}/com'
  676. localstatedir='${prefix}/var'
  677. includedir='${prefix}/include'
  678. oldincludedir='/usr/include'
  679. docdir='${datarootdir}/doc/${PACKAGE}'
  680. infodir='${datarootdir}/info'
  681. htmldir='${docdir}'
  682. dvidir='${docdir}'
  683. pdfdir='${docdir}'
  684. psdir='${docdir}'
  685. libdir='${exec_prefix}/lib'
  686. localedir='${datarootdir}/locale'
  687. mandir='${datarootdir}/man'
  688. ac_prev=
  689. ac_dashdash=
  690. for ac_option
  691. do
  692. # If the previous option needs an argument, assign it.
  693. if test -n "$ac_prev"; then
  694. eval $ac_prev=\$ac_option
  695. ac_prev=
  696. continue
  697. fi
  698. case $ac_option in
  699. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  700. *=) ac_optarg= ;;
  701. *) ac_optarg=yes ;;
  702. esac
  703. # Accept the important Cygnus configure options, so we can diagnose typos.
  704. case $ac_dashdash$ac_option in
  705. --)
  706. ac_dashdash=yes ;;
  707. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  708. ac_prev=bindir ;;
  709. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  710. bindir=$ac_optarg ;;
  711. -build | --build | --buil | --bui | --bu)
  712. ac_prev=build_alias ;;
  713. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  714. build_alias=$ac_optarg ;;
  715. -cache-file | --cache-file | --cache-fil | --cache-fi \
  716. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  717. ac_prev=cache_file ;;
  718. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  719. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  720. cache_file=$ac_optarg ;;
  721. --config-cache | -C)
  722. cache_file=config.cache ;;
  723. -datadir | --datadir | --datadi | --datad)
  724. ac_prev=datadir ;;
  725. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  726. datadir=$ac_optarg ;;
  727. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  728. | --dataroo | --dataro | --datar)
  729. ac_prev=datarootdir ;;
  730. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  731. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  732. datarootdir=$ac_optarg ;;
  733. -disable-* | --disable-*)
  734. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  735. # Reject names that are not valid shell variable names.
  736. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  737. as_fn_error $? "invalid feature name: $ac_useropt"
  738. ac_useropt_orig=$ac_useropt
  739. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  740. case $ac_user_opts in
  741. *"
  742. "enable_$ac_useropt"
  743. "*) ;;
  744. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  745. ac_unrecognized_sep=', ';;
  746. esac
  747. eval enable_$ac_useropt=no ;;
  748. -docdir | --docdir | --docdi | --doc | --do)
  749. ac_prev=docdir ;;
  750. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  751. docdir=$ac_optarg ;;
  752. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  753. ac_prev=dvidir ;;
  754. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  755. dvidir=$ac_optarg ;;
  756. -enable-* | --enable-*)
  757. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  758. # Reject names that are not valid shell variable names.
  759. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  760. as_fn_error $? "invalid feature name: $ac_useropt"
  761. ac_useropt_orig=$ac_useropt
  762. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  763. case $ac_user_opts in
  764. *"
  765. "enable_$ac_useropt"
  766. "*) ;;
  767. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  768. ac_unrecognized_sep=', ';;
  769. esac
  770. eval enable_$ac_useropt=\$ac_optarg ;;
  771. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  772. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  773. | --exec | --exe | --ex)
  774. ac_prev=exec_prefix ;;
  775. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  776. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  777. | --exec=* | --exe=* | --ex=*)
  778. exec_prefix=$ac_optarg ;;
  779. -gas | --gas | --ga | --g)
  780. # Obsolete; use --with-gas.
  781. with_gas=yes ;;
  782. -help | --help | --hel | --he | -h)
  783. ac_init_help=long ;;
  784. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  785. ac_init_help=recursive ;;
  786. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  787. ac_init_help=short ;;
  788. -host | --host | --hos | --ho)
  789. ac_prev=host_alias ;;
  790. -host=* | --host=* | --hos=* | --ho=*)
  791. host_alias=$ac_optarg ;;
  792. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  793. ac_prev=htmldir ;;
  794. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  795. | --ht=*)
  796. htmldir=$ac_optarg ;;
  797. -includedir | --includedir | --includedi | --included | --include \
  798. | --includ | --inclu | --incl | --inc)
  799. ac_prev=includedir ;;
  800. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  801. | --includ=* | --inclu=* | --incl=* | --inc=*)
  802. includedir=$ac_optarg ;;
  803. -infodir | --infodir | --infodi | --infod | --info | --inf)
  804. ac_prev=infodir ;;
  805. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  806. infodir=$ac_optarg ;;
  807. -libdir | --libdir | --libdi | --libd)
  808. ac_prev=libdir ;;
  809. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  810. libdir=$ac_optarg ;;
  811. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  812. | --libexe | --libex | --libe)
  813. ac_prev=libexecdir ;;
  814. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  815. | --libexe=* | --libex=* | --libe=*)
  816. libexecdir=$ac_optarg ;;
  817. -localedir | --localedir | --localedi | --localed | --locale)
  818. ac_prev=localedir ;;
  819. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  820. localedir=$ac_optarg ;;
  821. -localstatedir | --localstatedir | --localstatedi | --localstated \
  822. | --localstate | --localstat | --localsta | --localst | --locals)
  823. ac_prev=localstatedir ;;
  824. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  825. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  826. localstatedir=$ac_optarg ;;
  827. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  828. ac_prev=mandir ;;
  829. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  830. mandir=$ac_optarg ;;
  831. -nfp | --nfp | --nf)
  832. # Obsolete; use --without-fp.
  833. with_fp=no ;;
  834. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  835. | --no-cr | --no-c | -n)
  836. no_create=yes ;;
  837. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  838. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  839. no_recursion=yes ;;
  840. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  841. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  842. | --oldin | --oldi | --old | --ol | --o)
  843. ac_prev=oldincludedir ;;
  844. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  845. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  846. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  847. oldincludedir=$ac_optarg ;;
  848. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  849. ac_prev=prefix ;;
  850. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  851. prefix=$ac_optarg ;;
  852. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  853. | --program-pre | --program-pr | --program-p)
  854. ac_prev=program_prefix ;;
  855. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  856. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  857. program_prefix=$ac_optarg ;;
  858. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  859. | --program-suf | --program-su | --program-s)
  860. ac_prev=program_suffix ;;
  861. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  862. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  863. program_suffix=$ac_optarg ;;
  864. -program-transform-name | --program-transform-name \
  865. | --program-transform-nam | --program-transform-na \
  866. | --program-transform-n | --program-transform- \
  867. | --program-transform | --program-transfor \
  868. | --program-transfo | --program-transf \
  869. | --program-trans | --program-tran \
  870. | --progr-tra | --program-tr | --program-t)
  871. ac_prev=program_transform_name ;;
  872. -program-transform-name=* | --program-transform-name=* \
  873. | --program-transform-nam=* | --program-transform-na=* \
  874. | --program-transform-n=* | --program-transform-=* \
  875. | --program-transform=* | --program-transfor=* \
  876. | --program-transfo=* | --program-transf=* \
  877. | --program-trans=* | --program-tran=* \
  878. | --progr-tra=* | --program-tr=* | --program-t=*)
  879. program_transform_name=$ac_optarg ;;
  880. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  881. ac_prev=pdfdir ;;
  882. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  883. pdfdir=$ac_optarg ;;
  884. -psdir | --psdir | --psdi | --psd | --ps)
  885. ac_prev=psdir ;;
  886. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  887. psdir=$ac_optarg ;;
  888. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  889. | -silent | --silent | --silen | --sile | --sil)
  890. silent=yes ;;
  891. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  892. ac_prev=sbindir ;;
  893. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  894. | --sbi=* | --sb=*)
  895. sbindir=$ac_optarg ;;
  896. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  897. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  898. | --sharedst | --shareds | --shared | --share | --shar \
  899. | --sha | --sh)
  900. ac_prev=sharedstatedir ;;
  901. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  902. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  903. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  904. | --sha=* | --sh=*)
  905. sharedstatedir=$ac_optarg ;;
  906. -site | --site | --sit)
  907. ac_prev=site ;;
  908. -site=* | --site=* | --sit=*)
  909. site=$ac_optarg ;;
  910. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  911. ac_prev=srcdir ;;
  912. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  913. srcdir=$ac_optarg ;;
  914. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  915. | --syscon | --sysco | --sysc | --sys | --sy)
  916. ac_prev=sysconfdir ;;
  917. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  918. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  919. sysconfdir=$ac_optarg ;;
  920. -target | --target | --targe | --targ | --tar | --ta | --t)
  921. ac_prev=target_alias ;;
  922. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  923. target_alias=$ac_optarg ;;
  924. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  925. verbose=yes ;;
  926. -version | --version | --versio | --versi | --vers | -V)
  927. ac_init_version=: ;;
  928. -with-* | --with-*)
  929. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  930. # Reject names that are not valid shell variable names.
  931. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  932. as_fn_error $? "invalid package name: $ac_useropt"
  933. ac_useropt_orig=$ac_useropt
  934. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  935. case $ac_user_opts in
  936. *"
  937. "with_$ac_useropt"
  938. "*) ;;
  939. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  940. ac_unrecognized_sep=', ';;
  941. esac
  942. eval with_$ac_useropt=\$ac_optarg ;;
  943. -without-* | --without-*)
  944. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  945. # Reject names that are not valid shell variable names.
  946. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  947. as_fn_error $? "invalid package name: $ac_useropt"
  948. ac_useropt_orig=$ac_useropt
  949. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  950. case $ac_user_opts in
  951. *"
  952. "with_$ac_useropt"
  953. "*) ;;
  954. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  955. ac_unrecognized_sep=', ';;
  956. esac
  957. eval with_$ac_useropt=no ;;
  958. --x)
  959. # Obsolete; use --with-x.
  960. with_x=yes ;;
  961. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  962. | --x-incl | --x-inc | --x-in | --x-i)
  963. ac_prev=x_includes ;;
  964. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  965. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  966. x_includes=$ac_optarg ;;
  967. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  968. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  969. ac_prev=x_libraries ;;
  970. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  971. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  972. x_libraries=$ac_optarg ;;
  973. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  974. Try \`$0 --help' for more information"
  975. ;;
  976. *=*)
  977. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  978. # Reject names that are not valid shell variable names.
  979. case $ac_envvar in #(
  980. '' | [0-9]* | *[!_$as_cr_alnum]* )
  981. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  982. esac
  983. eval $ac_envvar=\$ac_optarg
  984. export $ac_envvar ;;
  985. *)
  986. # FIXME: should be removed in autoconf 3.0.
  987. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  988. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  989. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  990. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  991. ;;
  992. esac
  993. done
  994. if test -n "$ac_prev"; then
  995. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  996. as_fn_error $? "missing argument to $ac_option"
  997. fi
  998. if test -n "$ac_unrecognized_opts"; then
  999. case $enable_option_checking in
  1000. no) ;;
  1001. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1002. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1003. esac
  1004. fi
  1005. # Check all directory arguments for consistency.
  1006. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1007. datadir sysconfdir sharedstatedir localstatedir includedir \
  1008. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1009. libdir localedir mandir
  1010. do
  1011. eval ac_val=\$$ac_var
  1012. # Remove trailing slashes.
  1013. case $ac_val in
  1014. */ )
  1015. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1016. eval $ac_var=\$ac_val;;
  1017. esac
  1018. # Be sure to have absolute directory names.
  1019. case $ac_val in
  1020. [\\/$]* | ?:[\\/]* ) continue;;
  1021. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1022. esac
  1023. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1024. done
  1025. # There might be people who depend on the old broken behavior: `$host'
  1026. # used to hold the argument of --host etc.
  1027. # FIXME: To remove some day.
  1028. build=$build_alias
  1029. host=$host_alias
  1030. target=$target_alias
  1031. # FIXME: To remove some day.
  1032. if test "x$host_alias" != x; then
  1033. if test "x$build_alias" = x; then
  1034. cross_compiling=maybe
  1035. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1036. If a cross compiler is detected then cross compile mode will be used" >&2
  1037. elif test "x$build_alias" != "x$host_alias"; then
  1038. cross_compiling=yes
  1039. fi
  1040. fi
  1041. ac_tool_prefix=
  1042. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1043. test "$silent" = yes && exec 6>/dev/null
  1044. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1045. ac_ls_di=`ls -di .` &&
  1046. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1047. as_fn_error $? "working directory cannot be determined"
  1048. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1049. as_fn_error $? "pwd does not report name of working directory"
  1050. # Find the source files, if location was not specified.
  1051. if test -z "$srcdir"; then
  1052. ac_srcdir_defaulted=yes
  1053. # Try the directory containing this script, then the parent directory.
  1054. ac_confdir=`$as_dirname -- "$as_myself" ||
  1055. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1056. X"$as_myself" : 'X\(//\)[^/]' \| \
  1057. X"$as_myself" : 'X\(//\)$' \| \
  1058. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1059. $as_echo X"$as_myself" |
  1060. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1061. s//\1/
  1062. q
  1063. }
  1064. /^X\(\/\/\)[^/].*/{
  1065. s//\1/
  1066. q
  1067. }
  1068. /^X\(\/\/\)$/{
  1069. s//\1/
  1070. q
  1071. }
  1072. /^X\(\/\).*/{
  1073. s//\1/
  1074. q
  1075. }
  1076. s/.*/./; q'`
  1077. srcdir=$ac_confdir
  1078. if test ! -r "$srcdir/$ac_unique_file"; then
  1079. srcdir=..
  1080. fi
  1081. else
  1082. ac_srcdir_defaulted=no
  1083. fi
  1084. if test ! -r "$srcdir/$ac_unique_file"; then
  1085. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1086. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1087. fi
  1088. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1089. ac_abs_confdir=`(
  1090. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1091. pwd)`
  1092. # When building in place, set srcdir=.
  1093. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1094. srcdir=.
  1095. fi
  1096. # Remove unnecessary trailing slashes from srcdir.
  1097. # Double slashes in file names in object file debugging info
  1098. # mess up M-x gdb in Emacs.
  1099. case $srcdir in
  1100. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1101. esac
  1102. for ac_var in $ac_precious_vars; do
  1103. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1104. eval ac_env_${ac_var}_value=\$${ac_var}
  1105. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1106. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1107. done
  1108. #
  1109. # Report the --help message.
  1110. #
  1111. if test "$ac_init_help" = "long"; then
  1112. # Omit some internal or obsolete options to make the list less imposing.
  1113. # This message is too long to be a string in the A/UX 3.1 sh.
  1114. cat <<_ACEOF
  1115. \`configure' configures this package to adapt to many kinds of systems.
  1116. Usage: $0 [OPTION]... [VAR=VALUE]...
  1117. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1118. VAR=VALUE. See below for descriptions of some of the useful variables.
  1119. Defaults for the options are specified in brackets.
  1120. Configuration:
  1121. -h, --help display this help and exit
  1122. --help=short display options specific to this package
  1123. --help=recursive display the short help of all the included packages
  1124. -V, --version display version information and exit
  1125. -q, --quiet, --silent do not print \`checking ...' messages
  1126. --cache-file=FILE cache test results in FILE [disabled]
  1127. -C, --config-cache alias for \`--cache-file=config.cache'
  1128. -n, --no-create do not create output files
  1129. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1130. Installation directories:
  1131. --prefix=PREFIX install architecture-independent files in PREFIX
  1132. [$ac_default_prefix]
  1133. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1134. [PREFIX]
  1135. By default, \`make install' will install all the files in
  1136. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1137. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1138. for instance \`--prefix=\$HOME'.
  1139. For better control, use the options below.
  1140. Fine tuning of the installation directories:
  1141. --bindir=DIR user executables [EPREFIX/bin]
  1142. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1143. --libexecdir=DIR program executables [EPREFIX/libexec]
  1144. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1145. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1146. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1147. --libdir=DIR object code libraries [EPREFIX/lib]
  1148. --includedir=DIR C header files [PREFIX/include]
  1149. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1150. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1151. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1152. --infodir=DIR info documentation [DATAROOTDIR/info]
  1153. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1154. --mandir=DIR man documentation [DATAROOTDIR/man]
  1155. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1156. --htmldir=DIR html documentation [DOCDIR]
  1157. --dvidir=DIR dvi documentation [DOCDIR]
  1158. --pdfdir=DIR pdf documentation [DOCDIR]
  1159. --psdir=DIR ps documentation [DOCDIR]
  1160. _ACEOF
  1161. cat <<\_ACEOF
  1162. _ACEOF
  1163. fi
  1164. if test -n "$ac_init_help"; then
  1165. cat <<\_ACEOF
  1166. Optional Features:
  1167. --disable-option-checking ignore unrecognized --enable/--with options
  1168. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1169. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1170. --disable-ipv6 disable IPv6 support
  1171. Optional Packages:
  1172. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1173. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1174. --with-openssl=DIR Path to OpenSSL
  1175. Some influential environment variables:
  1176. CXX C++ compiler command
  1177. CXXFLAGS C++ compiler flags
  1178. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1179. nonstandard directory <lib dir>
  1180. LIBS libraries to pass to the linker, e.g. -l<library>
  1181. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1182. you have headers in a nonstandard directory <include dir>
  1183. CXXCPP C++ preprocessor
  1184. Use these variables to override the choices made by `configure' or to help
  1185. it to find libraries and programs with nonstandard names/locations.
  1186. Report bugs to the package provider.
  1187. _ACEOF
  1188. ac_status=$?
  1189. fi
  1190. if test "$ac_init_help" = "recursive"; then
  1191. # If there are subdirs, report their specific --help.
  1192. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1193. test -d "$ac_dir" ||
  1194. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1195. continue
  1196. ac_builddir=.
  1197. case "$ac_dir" in
  1198. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1199. *)
  1200. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1201. # A ".." for each directory in $ac_dir_suffix.
  1202. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1203. case $ac_top_builddir_sub in
  1204. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1205. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1206. esac ;;
  1207. esac
  1208. ac_abs_top_builddir=$ac_pwd
  1209. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1210. # for backward compatibility:
  1211. ac_top_builddir=$ac_top_build_prefix
  1212. case $srcdir in
  1213. .) # We are building in place.
  1214. ac_srcdir=.
  1215. ac_top_srcdir=$ac_top_builddir_sub
  1216. ac_abs_top_srcdir=$ac_pwd ;;
  1217. [\\/]* | ?:[\\/]* ) # Absolute name.
  1218. ac_srcdir=$srcdir$ac_dir_suffix;
  1219. ac_top_srcdir=$srcdir
  1220. ac_abs_top_srcdir=$srcdir ;;
  1221. *) # Relative name.
  1222. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1223. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1224. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1225. esac
  1226. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1227. cd "$ac_dir" || { ac_status=$?; continue; }
  1228. # Check for guested configure.
  1229. if test -f "$ac_srcdir/configure.gnu"; then
  1230. echo &&
  1231. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1232. elif test -f "$ac_srcdir/configure"; then
  1233. echo &&
  1234. $SHELL "$ac_srcdir/configure" --help=recursive
  1235. else
  1236. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1237. fi || ac_status=$?
  1238. cd "$ac_pwd" || { ac_status=$?; break; }
  1239. done
  1240. fi
  1241. test -n "$ac_init_help" && exit $ac_status
  1242. if $ac_init_version; then
  1243. cat <<\_ACEOF
  1244. configure
  1245. generated by GNU Autoconf 2.67
  1246. Copyright (C) 2010 Free Software Foundation, Inc.
  1247. This configure script is free software; the Free Software Foundation
  1248. gives unlimited permission to copy, distribute and modify it.
  1249. Copyright (c) 2003 - 2010 Bryan Drewery
  1250. _ACEOF
  1251. exit
  1252. fi
  1253. ## ------------------------ ##
  1254. ## Autoconf initialization. ##
  1255. ## ------------------------ ##
  1256. # ac_fn_cxx_try_compile LINENO
  1257. # ----------------------------
  1258. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1259. ac_fn_cxx_try_compile ()
  1260. {
  1261. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1262. rm -f conftest.$ac_objext
  1263. if { { ac_try="$ac_compile"
  1264. case "(($ac_try" in
  1265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1266. *) ac_try_echo=$ac_try;;
  1267. esac
  1268. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1269. $as_echo "$ac_try_echo"; } >&5
  1270. (eval "$ac_compile") 2>conftest.err
  1271. ac_status=$?
  1272. if test -s conftest.err; then
  1273. grep -v '^ *+' conftest.err >conftest.er1
  1274. cat conftest.er1 >&5
  1275. mv -f conftest.er1 conftest.err
  1276. fi
  1277. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1278. test $ac_status = 0; } && {
  1279. test -z "$ac_cxx_werror_flag" ||
  1280. test ! -s conftest.err
  1281. } && test -s conftest.$ac_objext; then :
  1282. ac_retval=0
  1283. else
  1284. $as_echo "$as_me: failed program was:" >&5
  1285. sed 's/^/| /' conftest.$ac_ext >&5
  1286. ac_retval=1
  1287. fi
  1288. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1289. as_fn_set_status $ac_retval
  1290. } # ac_fn_cxx_try_compile
  1291. # ac_fn_cxx_try_cpp LINENO
  1292. # ------------------------
  1293. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1294. ac_fn_cxx_try_cpp ()
  1295. {
  1296. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1297. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1298. case "(($ac_try" in
  1299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1300. *) ac_try_echo=$ac_try;;
  1301. esac
  1302. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1303. $as_echo "$ac_try_echo"; } >&5
  1304. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1305. ac_status=$?
  1306. if test -s conftest.err; then
  1307. grep -v '^ *+' conftest.err >conftest.er1
  1308. cat conftest.er1 >&5
  1309. mv -f conftest.er1 conftest.err
  1310. fi
  1311. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1312. test $ac_status = 0; } > conftest.i && {
  1313. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1314. test ! -s conftest.err
  1315. }; then :
  1316. ac_retval=0
  1317. else
  1318. $as_echo "$as_me: failed program was:" >&5
  1319. sed 's/^/| /' conftest.$ac_ext >&5
  1320. ac_retval=1
  1321. fi
  1322. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1323. as_fn_set_status $ac_retval
  1324. } # ac_fn_cxx_try_cpp
  1325. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1326. # ---------------------------------------------------------
  1327. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1328. # the include files in INCLUDES and setting the cache variable VAR
  1329. # accordingly.
  1330. ac_fn_cxx_check_header_mongrel ()
  1331. {
  1332. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1333. if eval "test \"\${$3+set}\"" = set; then :
  1334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1335. $as_echo_n "checking for $2... " >&6; }
  1336. if eval "test \"\${$3+set}\"" = set; then :
  1337. $as_echo_n "(cached) " >&6
  1338. fi
  1339. eval ac_res=\$$3
  1340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1341. $as_echo "$ac_res" >&6; }
  1342. else
  1343. # Is the header compilable?
  1344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1345. $as_echo_n "checking $2 usability... " >&6; }
  1346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1347. /* end confdefs.h. */
  1348. $4
  1349. #include <$2>
  1350. _ACEOF
  1351. if ac_fn_cxx_try_compile "$LINENO"; then :
  1352. ac_header_compiler=yes
  1353. else
  1354. ac_header_compiler=no
  1355. fi
  1356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1358. $as_echo "$ac_header_compiler" >&6; }
  1359. # Is the header present?
  1360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1361. $as_echo_n "checking $2 presence... " >&6; }
  1362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1363. /* end confdefs.h. */
  1364. #include <$2>
  1365. _ACEOF
  1366. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1367. ac_header_preproc=yes
  1368. else
  1369. ac_header_preproc=no
  1370. fi
  1371. rm -f conftest.err conftest.i conftest.$ac_ext
  1372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1373. $as_echo "$ac_header_preproc" >&6; }
  1374. # So? What about this header?
  1375. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1376. yes:no: )
  1377. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1378. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1379. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1380. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1381. ;;
  1382. no:yes:* )
  1383. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1384. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1385. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1386. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1387. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1388. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1389. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1390. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1391. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1392. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1393. ;;
  1394. esac
  1395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1396. $as_echo_n "checking for $2... " >&6; }
  1397. if eval "test \"\${$3+set}\"" = set; then :
  1398. $as_echo_n "(cached) " >&6
  1399. else
  1400. eval "$3=\$ac_header_compiler"
  1401. fi
  1402. eval ac_res=\$$3
  1403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1404. $as_echo "$ac_res" >&6; }
  1405. fi
  1406. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1407. } # ac_fn_cxx_check_header_mongrel
  1408. # ac_fn_cxx_try_run LINENO
  1409. # ------------------------
  1410. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1411. # that executables *can* be run.
  1412. ac_fn_cxx_try_run ()
  1413. {
  1414. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1415. if { { ac_try="$ac_link"
  1416. case "(($ac_try" in
  1417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1418. *) ac_try_echo=$ac_try;;
  1419. esac
  1420. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1421. $as_echo "$ac_try_echo"; } >&5
  1422. (eval "$ac_link") 2>&5
  1423. ac_status=$?
  1424. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1425. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1426. { { case "(($ac_try" in
  1427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1428. *) ac_try_echo=$ac_try;;
  1429. esac
  1430. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1431. $as_echo "$ac_try_echo"; } >&5
  1432. (eval "$ac_try") 2>&5
  1433. ac_status=$?
  1434. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1435. test $ac_status = 0; }; }; then :
  1436. ac_retval=0
  1437. else
  1438. $as_echo "$as_me: program exited with status $ac_status" >&5
  1439. $as_echo "$as_me: failed program was:" >&5
  1440. sed 's/^/| /' conftest.$ac_ext >&5
  1441. ac_retval=$ac_status
  1442. fi
  1443. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1444. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1445. as_fn_set_status $ac_retval
  1446. } # ac_fn_cxx_try_run
  1447. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1448. # ---------------------------------------------------------
  1449. # Tests whether HEADER exists and can be compiled using the include files in
  1450. # INCLUDES, setting the cache variable VAR accordingly.
  1451. ac_fn_cxx_check_header_compile ()
  1452. {
  1453. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1455. $as_echo_n "checking for $2... " >&6; }
  1456. if eval "test \"\${$3+set}\"" = set; then :
  1457. $as_echo_n "(cached) " >&6
  1458. else
  1459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1460. /* end confdefs.h. */
  1461. $4
  1462. #include <$2>
  1463. _ACEOF
  1464. if ac_fn_cxx_try_compile "$LINENO"; then :
  1465. eval "$3=yes"
  1466. else
  1467. eval "$3=no"
  1468. fi
  1469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1470. fi
  1471. eval ac_res=\$$3
  1472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1473. $as_echo "$ac_res" >&6; }
  1474. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1475. } # ac_fn_cxx_check_header_compile
  1476. # ac_fn_cxx_try_link LINENO
  1477. # -------------------------
  1478. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1479. ac_fn_cxx_try_link ()
  1480. {
  1481. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1482. rm -f conftest.$ac_objext conftest$ac_exeext
  1483. if { { ac_try="$ac_link"
  1484. case "(($ac_try" in
  1485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1486. *) ac_try_echo=$ac_try;;
  1487. esac
  1488. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1489. $as_echo "$ac_try_echo"; } >&5
  1490. (eval "$ac_link") 2>conftest.err
  1491. ac_status=$?
  1492. if test -s conftest.err; then
  1493. grep -v '^ *+' conftest.err >conftest.er1
  1494. cat conftest.er1 >&5
  1495. mv -f conftest.er1 conftest.err
  1496. fi
  1497. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1498. test $ac_status = 0; } && {
  1499. test -z "$ac_cxx_werror_flag" ||
  1500. test ! -s conftest.err
  1501. } && test -s conftest$ac_exeext && {
  1502. test "$cross_compiling" = yes ||
  1503. $as_test_x conftest$ac_exeext
  1504. }; then :
  1505. ac_retval=0
  1506. else
  1507. $as_echo "$as_me: failed program was:" >&5
  1508. sed 's/^/| /' conftest.$ac_ext >&5
  1509. ac_retval=1
  1510. fi
  1511. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1512. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1513. # interfere with the next link command; also delete a directory that is
  1514. # left behind by Apple's compiler. We do this before executing the actions.
  1515. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1516. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1517. as_fn_set_status $ac_retval
  1518. } # ac_fn_cxx_try_link
  1519. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1520. # ---------------------------------------------
  1521. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1522. # variable VAR accordingly.
  1523. ac_fn_cxx_check_type ()
  1524. {
  1525. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1527. $as_echo_n "checking for $2... " >&6; }
  1528. if eval "test \"\${$3+set}\"" = set; then :
  1529. $as_echo_n "(cached) " >&6
  1530. else
  1531. eval "$3=no"
  1532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1533. /* end confdefs.h. */
  1534. $4
  1535. int
  1536. main ()
  1537. {
  1538. if (sizeof ($2))
  1539. return 0;
  1540. ;
  1541. return 0;
  1542. }
  1543. _ACEOF
  1544. if ac_fn_cxx_try_compile "$LINENO"; then :
  1545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1546. /* end confdefs.h. */
  1547. $4
  1548. int
  1549. main ()
  1550. {
  1551. if (sizeof (($2)))
  1552. return 0;
  1553. ;
  1554. return 0;
  1555. }
  1556. _ACEOF
  1557. if ac_fn_cxx_try_compile "$LINENO"; then :
  1558. else
  1559. eval "$3=yes"
  1560. fi
  1561. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1562. fi
  1563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1564. fi
  1565. eval ac_res=\$$3
  1566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1567. $as_echo "$ac_res" >&6; }
  1568. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1569. } # ac_fn_cxx_check_type
  1570. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  1571. # ----------------------------------------------
  1572. # Tries to find the compile-time value of EXPR in a program that includes
  1573. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1574. # computed
  1575. ac_fn_cxx_compute_int ()
  1576. {
  1577. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1578. if test "$cross_compiling" = yes; then
  1579. # Depending upon the size, compute the lo and hi bounds.
  1580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1581. /* end confdefs.h. */
  1582. $4
  1583. int
  1584. main ()
  1585. {
  1586. static int test_array [1 - 2 * !(($2) >= 0)];
  1587. test_array [0] = 0
  1588. ;
  1589. return 0;
  1590. }
  1591. _ACEOF
  1592. if ac_fn_cxx_try_compile "$LINENO"; then :
  1593. ac_lo=0 ac_mid=0
  1594. while :; do
  1595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1596. /* end confdefs.h. */
  1597. $4
  1598. int
  1599. main ()
  1600. {
  1601. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1602. test_array [0] = 0
  1603. ;
  1604. return 0;
  1605. }
  1606. _ACEOF
  1607. if ac_fn_cxx_try_compile "$LINENO"; then :
  1608. ac_hi=$ac_mid; break
  1609. else
  1610. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1611. if test $ac_lo -le $ac_mid; then
  1612. ac_lo= ac_hi=
  1613. break
  1614. fi
  1615. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1616. fi
  1617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1618. done
  1619. else
  1620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1621. /* end confdefs.h. */
  1622. $4
  1623. int
  1624. main ()
  1625. {
  1626. static int test_array [1 - 2 * !(($2) < 0)];
  1627. test_array [0] = 0
  1628. ;
  1629. return 0;
  1630. }
  1631. _ACEOF
  1632. if ac_fn_cxx_try_compile "$LINENO"; then :
  1633. ac_hi=-1 ac_mid=-1
  1634. while :; do
  1635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1636. /* end confdefs.h. */
  1637. $4
  1638. int
  1639. main ()
  1640. {
  1641. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1642. test_array [0] = 0
  1643. ;
  1644. return 0;
  1645. }
  1646. _ACEOF
  1647. if ac_fn_cxx_try_compile "$LINENO"; then :
  1648. ac_lo=$ac_mid; break
  1649. else
  1650. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1651. if test $ac_mid -le $ac_hi; then
  1652. ac_lo= ac_hi=
  1653. break
  1654. fi
  1655. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1656. fi
  1657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1658. done
  1659. else
  1660. ac_lo= ac_hi=
  1661. fi
  1662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1663. fi
  1664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1665. # Binary search between lo and hi bounds.
  1666. while test "x$ac_lo" != "x$ac_hi"; do
  1667. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1669. /* end confdefs.h. */
  1670. $4
  1671. int
  1672. main ()
  1673. {
  1674. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1675. test_array [0] = 0
  1676. ;
  1677. return 0;
  1678. }
  1679. _ACEOF
  1680. if ac_fn_cxx_try_compile "$LINENO"; then :
  1681. ac_hi=$ac_mid
  1682. else
  1683. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1684. fi
  1685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1686. done
  1687. case $ac_lo in #((
  1688. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1689. '') ac_retval=1 ;;
  1690. esac
  1691. else
  1692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1693. /* end confdefs.h. */
  1694. $4
  1695. static long int longval () { return $2; }
  1696. static unsigned long int ulongval () { return $2; }
  1697. #include <stdio.h>
  1698. #include <stdlib.h>
  1699. int
  1700. main ()
  1701. {
  1702. FILE *f = fopen ("conftest.val", "w");
  1703. if (! f)
  1704. return 1;
  1705. if (($2) < 0)
  1706. {
  1707. long int i = longval ();
  1708. if (i != ($2))
  1709. return 1;
  1710. fprintf (f, "%ld", i);
  1711. }
  1712. else
  1713. {
  1714. unsigned long int i = ulongval ();
  1715. if (i != ($2))
  1716. return 1;
  1717. fprintf (f, "%lu", i);
  1718. }
  1719. /* Do not output a trailing newline, as this causes \r\n confusion
  1720. on some platforms. */
  1721. return ferror (f) || fclose (f) != 0;
  1722. ;
  1723. return 0;
  1724. }
  1725. _ACEOF
  1726. if ac_fn_cxx_try_run "$LINENO"; then :
  1727. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1728. else
  1729. ac_retval=1
  1730. fi
  1731. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1732. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1733. rm -f conftest.val
  1734. fi
  1735. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1736. as_fn_set_status $ac_retval
  1737. } # ac_fn_cxx_compute_int
  1738. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  1739. # ------------------------------------------------------
  1740. # Tries to find if the field MEMBER exists in type AGGR, after including
  1741. # INCLUDES, setting cache variable VAR accordingly.
  1742. ac_fn_cxx_check_member ()
  1743. {
  1744. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1746. $as_echo_n "checking for $2.$3... " >&6; }
  1747. if eval "test \"\${$4+set}\"" = set; then :
  1748. $as_echo_n "(cached) " >&6
  1749. else
  1750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1751. /* end confdefs.h. */
  1752. $5
  1753. int
  1754. main ()
  1755. {
  1756. static $2 ac_aggr;
  1757. if (ac_aggr.$3)
  1758. return 0;
  1759. ;
  1760. return 0;
  1761. }
  1762. _ACEOF
  1763. if ac_fn_cxx_try_compile "$LINENO"; then :
  1764. eval "$4=yes"
  1765. else
  1766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1767. /* end confdefs.h. */
  1768. $5
  1769. int
  1770. main ()
  1771. {
  1772. static $2 ac_aggr;
  1773. if (sizeof ac_aggr.$3)
  1774. return 0;
  1775. ;
  1776. return 0;
  1777. }
  1778. _ACEOF
  1779. if ac_fn_cxx_try_compile "$LINENO"; then :
  1780. eval "$4=yes"
  1781. else
  1782. eval "$4=no"
  1783. fi
  1784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1785. fi
  1786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1787. fi
  1788. eval ac_res=\$$4
  1789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1790. $as_echo "$ac_res" >&6; }
  1791. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1792. } # ac_fn_cxx_check_member
  1793. # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
  1794. # -----------------------------------------------
  1795. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1796. # accordingly.
  1797. ac_fn_cxx_check_decl ()
  1798. {
  1799. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1800. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1801. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1803. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1804. if eval "test \"\${$3+set}\"" = set; then :
  1805. $as_echo_n "(cached) " >&6
  1806. else
  1807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1808. /* end confdefs.h. */
  1809. $4
  1810. int
  1811. main ()
  1812. {
  1813. #ifndef $as_decl_name
  1814. #ifdef __cplusplus
  1815. (void) $as_decl_use;
  1816. #else
  1817. (void) $as_decl_name;
  1818. #endif
  1819. #endif
  1820. ;
  1821. return 0;
  1822. }
  1823. _ACEOF
  1824. if ac_fn_cxx_try_compile "$LINENO"; then :
  1825. eval "$3=yes"
  1826. else
  1827. eval "$3=no"
  1828. fi
  1829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1830. fi
  1831. eval ac_res=\$$3
  1832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1833. $as_echo "$ac_res" >&6; }
  1834. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1835. } # ac_fn_cxx_check_decl
  1836. # ac_fn_cxx_check_func LINENO FUNC VAR
  1837. # ------------------------------------
  1838. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1839. ac_fn_cxx_check_func ()
  1840. {
  1841. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1843. $as_echo_n "checking for $2... " >&6; }
  1844. if eval "test \"\${$3+set}\"" = set; then :
  1845. $as_echo_n "(cached) " >&6
  1846. else
  1847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1848. /* end confdefs.h. */
  1849. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1850. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1851. #define $2 innocuous_$2
  1852. /* System header to define __stub macros and hopefully few prototypes,
  1853. which can conflict with char $2 (); below.
  1854. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1855. <limits.h> exists even on freestanding compilers. */
  1856. #ifdef __STDC__
  1857. # include <limits.h>
  1858. #else
  1859. # include <assert.h>
  1860. #endif
  1861. #undef $2
  1862. /* Override any GCC internal prototype to avoid an error.
  1863. Use char because int might match the return type of a GCC
  1864. builtin and then its argument prototype would still apply. */
  1865. #ifdef __cplusplus
  1866. extern "C"
  1867. #endif
  1868. char $2 ();
  1869. /* The GNU C library defines this for functions which it implements
  1870. to always fail with ENOSYS. Some functions are actually named
  1871. something starting with __ and the normal name is an alias. */
  1872. #if defined __stub_$2 || defined __stub___$2
  1873. choke me
  1874. #endif
  1875. int
  1876. main ()
  1877. {
  1878. return $2 ();
  1879. ;
  1880. return 0;
  1881. }
  1882. _ACEOF
  1883. if ac_fn_cxx_try_link "$LINENO"; then :
  1884. eval "$3=yes"
  1885. else
  1886. eval "$3=no"
  1887. fi
  1888. rm -f core conftest.err conftest.$ac_objext \
  1889. conftest$ac_exeext conftest.$ac_ext
  1890. fi
  1891. eval ac_res=\$$3
  1892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1893. $as_echo "$ac_res" >&6; }
  1894. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1895. } # ac_fn_cxx_check_func
  1896. cat >config.log <<_ACEOF
  1897. This file contains any messages produced by compilers while
  1898. running configure, to aid debugging if configure makes a mistake.
  1899. It was created by $as_me, which was
  1900. generated by GNU Autoconf 2.67. Invocation command line was
  1901. $ $0 $@
  1902. _ACEOF
  1903. exec 5>>config.log
  1904. {
  1905. cat <<_ASUNAME
  1906. ## --------- ##
  1907. ## Platform. ##
  1908. ## --------- ##
  1909. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1910. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1911. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1912. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1913. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1914. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1915. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1916. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1917. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1918. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1919. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1920. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1921. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1922. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1923. _ASUNAME
  1924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1925. for as_dir in $PATH
  1926. do
  1927. IFS=$as_save_IFS
  1928. test -z "$as_dir" && as_dir=.
  1929. $as_echo "PATH: $as_dir"
  1930. done
  1931. IFS=$as_save_IFS
  1932. } >&5
  1933. cat >&5 <<_ACEOF
  1934. ## ----------- ##
  1935. ## Core tests. ##
  1936. ## ----------- ##
  1937. _ACEOF
  1938. # Keep a trace of the command line.
  1939. # Strip out --no-create and --no-recursion so they do not pile up.
  1940. # Strip out --silent because we don't want to record it for future runs.
  1941. # Also quote any args containing shell meta-characters.
  1942. # Make two passes to allow for proper duplicate-argument suppression.
  1943. ac_configure_args=
  1944. ac_configure_args0=
  1945. ac_configure_args1=
  1946. ac_must_keep_next=false
  1947. for ac_pass in 1 2
  1948. do
  1949. for ac_arg
  1950. do
  1951. case $ac_arg in
  1952. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1953. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1954. | -silent | --silent | --silen | --sile | --sil)
  1955. continue ;;
  1956. *\'*)
  1957. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1958. esac
  1959. case $ac_pass in
  1960. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1961. 2)
  1962. as_fn_append ac_configure_args1 " '$ac_arg'"
  1963. if test $ac_must_keep_next = true; then
  1964. ac_must_keep_next=false # Got value, back to normal.
  1965. else
  1966. case $ac_arg in
  1967. *=* | --config-cache | -C | -disable-* | --disable-* \
  1968. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1969. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1970. | -with-* | --with-* | -without-* | --without-* | --x)
  1971. case "$ac_configure_args0 " in
  1972. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1973. esac
  1974. ;;
  1975. -* ) ac_must_keep_next=true ;;
  1976. esac
  1977. fi
  1978. as_fn_append ac_configure_args " '$ac_arg'"
  1979. ;;
  1980. esac
  1981. done
  1982. done
  1983. { ac_configure_args0=; unset ac_configure_args0;}
  1984. { ac_configure_args1=; unset ac_configure_args1;}
  1985. # When interrupted or exit'd, cleanup temporary files, and complete
  1986. # config.log. We remove comments because anyway the quotes in there
  1987. # would cause problems or look ugly.
  1988. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1989. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1990. trap 'exit_status=$?
  1991. # Save into config.log some information that might help in debugging.
  1992. {
  1993. echo
  1994. $as_echo "## ---------------- ##
  1995. ## Cache variables. ##
  1996. ## ---------------- ##"
  1997. echo
  1998. # The following way of writing the cache mishandles newlines in values,
  1999. (
  2000. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2001. eval ac_val=\$$ac_var
  2002. case $ac_val in #(
  2003. *${as_nl}*)
  2004. case $ac_var in #(
  2005. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2006. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2007. esac
  2008. case $ac_var in #(
  2009. _ | IFS | as_nl) ;; #(
  2010. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2011. *) { eval $ac_var=; unset $ac_var;} ;;
  2012. esac ;;
  2013. esac
  2014. done
  2015. (set) 2>&1 |
  2016. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2017. *${as_nl}ac_space=\ *)
  2018. sed -n \
  2019. "s/'\''/'\''\\\\'\'''\''/g;
  2020. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2021. ;; #(
  2022. *)
  2023. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2024. ;;
  2025. esac |
  2026. sort
  2027. )
  2028. echo
  2029. $as_echo "## ----------------- ##
  2030. ## Output variables. ##
  2031. ## ----------------- ##"
  2032. echo
  2033. for ac_var in $ac_subst_vars
  2034. do
  2035. eval ac_val=\$$ac_var
  2036. case $ac_val in
  2037. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2038. esac
  2039. $as_echo "$ac_var='\''$ac_val'\''"
  2040. done | sort
  2041. echo
  2042. if test -n "$ac_subst_files"; then
  2043. $as_echo "## ------------------- ##
  2044. ## File substitutions. ##
  2045. ## ------------------- ##"
  2046. echo
  2047. for ac_var in $ac_subst_files
  2048. do
  2049. eval ac_val=\$$ac_var
  2050. case $ac_val in
  2051. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2052. esac
  2053. $as_echo "$ac_var='\''$ac_val'\''"
  2054. done | sort
  2055. echo
  2056. fi
  2057. if test -s confdefs.h; then
  2058. $as_echo "## ----------- ##
  2059. ## confdefs.h. ##
  2060. ## ----------- ##"
  2061. echo
  2062. cat confdefs.h
  2063. echo
  2064. fi
  2065. test "$ac_signal" != 0 &&
  2066. $as_echo "$as_me: caught signal $ac_signal"
  2067. $as_echo "$as_me: exit $exit_status"
  2068. } >&5
  2069. rm -f core *.core core.conftest.* &&
  2070. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2071. exit $exit_status
  2072. ' 0
  2073. for ac_signal in 1 2 13 15; do
  2074. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2075. done
  2076. ac_signal=0
  2077. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2078. rm -f -r conftest* confdefs.h
  2079. $as_echo "/* confdefs.h */" > confdefs.h
  2080. # Predefined preprocessor variables.
  2081. cat >>confdefs.h <<_ACEOF
  2082. #define PACKAGE_NAME "$PACKAGE_NAME"
  2083. _ACEOF
  2084. cat >>confdefs.h <<_ACEOF
  2085. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2086. _ACEOF
  2087. cat >>confdefs.h <<_ACEOF
  2088. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2089. _ACEOF
  2090. cat >>confdefs.h <<_ACEOF
  2091. #define PACKAGE_STRING "$PACKAGE_STRING"
  2092. _ACEOF
  2093. cat >>confdefs.h <<_ACEOF
  2094. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2095. _ACEOF
  2096. cat >>confdefs.h <<_ACEOF
  2097. #define PACKAGE_URL "$PACKAGE_URL"
  2098. _ACEOF
  2099. # Let the site file select an alternate cache file if it wants to.
  2100. # Prefer an explicitly selected file to automatically selected ones.
  2101. ac_site_file1=NONE
  2102. ac_site_file2=NONE
  2103. if test -n "$CONFIG_SITE"; then
  2104. # We do not want a PATH search for config.site.
  2105. case $CONFIG_SITE in #((
  2106. -*) ac_site_file1=./$CONFIG_SITE;;
  2107. */*) ac_site_file1=$CONFIG_SITE;;
  2108. *) ac_site_file1=./$CONFIG_SITE;;
  2109. esac
  2110. elif test "x$prefix" != xNONE; then
  2111. ac_site_file1=$prefix/share/config.site
  2112. ac_site_file2=$prefix/etc/config.site
  2113. else
  2114. ac_site_file1=$ac_default_prefix/share/config.site
  2115. ac_site_file2=$ac_default_prefix/etc/config.site
  2116. fi
  2117. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2118. do
  2119. test "x$ac_site_file" = xNONE && continue
  2120. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2121. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2122. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2123. sed 's/^/| /' "$ac_site_file" >&5
  2124. . "$ac_site_file" \
  2125. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2126. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2127. as_fn_error $? "failed to load site script $ac_site_file
  2128. See \`config.log' for more details" "$LINENO" 5 ; }
  2129. fi
  2130. done
  2131. if test -r "$cache_file"; then
  2132. # Some versions of bash will fail to source /dev/null (special files
  2133. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2134. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2135. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2136. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2137. case $cache_file in
  2138. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2139. *) . "./$cache_file";;
  2140. esac
  2141. fi
  2142. else
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2144. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2145. >$cache_file
  2146. fi
  2147. as_fn_append ac_header_list " sys/time.h"
  2148. as_fn_append ac_header_list " unistd.h"
  2149. as_fn_append ac_func_list " alarm"
  2150. as_fn_append ac_header_list " stdlib.h"
  2151. as_fn_append ac_header_list " sys/param.h"
  2152. # Check that the precious variables saved in the cache have kept the same
  2153. # value.
  2154. ac_cache_corrupted=false
  2155. for ac_var in $ac_precious_vars; do
  2156. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2157. eval ac_new_set=\$ac_env_${ac_var}_set
  2158. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2159. eval ac_new_val=\$ac_env_${ac_var}_value
  2160. case $ac_old_set,$ac_new_set in
  2161. set,)
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2163. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2164. ac_cache_corrupted=: ;;
  2165. ,set)
  2166. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2167. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2168. ac_cache_corrupted=: ;;
  2169. ,);;
  2170. *)
  2171. if test "x$ac_old_val" != "x$ac_new_val"; then
  2172. # differences in whitespace do not lead to failure.
  2173. ac_old_val_w=`echo x $ac_old_val`
  2174. ac_new_val_w=`echo x $ac_new_val`
  2175. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2176. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2177. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2178. ac_cache_corrupted=:
  2179. else
  2180. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2181. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2182. eval $ac_var=\$ac_old_val
  2183. fi
  2184. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2185. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2186. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2187. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2188. fi;;
  2189. esac
  2190. # Pass precious variables to config.status.
  2191. if test "$ac_new_set" = set; then
  2192. case $ac_new_val in
  2193. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2194. *) ac_arg=$ac_var=$ac_new_val ;;
  2195. esac
  2196. case " $ac_configure_args " in
  2197. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2198. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2199. esac
  2200. fi
  2201. done
  2202. if $ac_cache_corrupted; then
  2203. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2204. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2205. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2206. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2207. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2208. fi
  2209. ## -------------------- ##
  2210. ## Main body of script. ##
  2211. ## -------------------- ##
  2212. ac_ext=c
  2213. ac_cpp='$CPP $CPPFLAGS'
  2214. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2215. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2216. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2217. ac_config_headers="$ac_config_headers config.h"
  2218. # Remove --cache-file and --srcdir arguments so they do not pile up.
  2219. egg_ac_parameters=
  2220. ac_prev=
  2221. for ac_arg in $ac_configure_args; do
  2222. if test -n "$ac_prev"; then
  2223. ac_prev=
  2224. continue
  2225. fi
  2226. case $ac_arg in
  2227. -cache-file | --cache-file | --cache-fil | --cache-fi \
  2228. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  2229. ac_prev=cache_file ;;
  2230. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  2231. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  2232. | --c=*)
  2233. ;;
  2234. --config-cache | -C)
  2235. ;;
  2236. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  2237. ac_prev=srcdir ;;
  2238. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  2239. ;;
  2240. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  2241. esac
  2242. done
  2243. # Setup build environment
  2244. #AC_REQUIRE_CPP
  2245. ac_ext=cpp
  2246. ac_cpp='$CXXCPP $CPPFLAGS'
  2247. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2248. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2249. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2250. ac_ext=cpp
  2251. ac_cpp='$CXXCPP $CPPFLAGS'
  2252. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2253. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2254. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2255. if test -z "$CXX"; then
  2256. if test -n "$CCC"; then
  2257. CXX=$CCC
  2258. else
  2259. if test -n "$ac_tool_prefix"; then
  2260. for ac_prog in g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2261. do
  2262. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2263. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2265. $as_echo_n "checking for $ac_word... " >&6; }
  2266. if test "${ac_cv_prog_CXX+set}" = set; then :
  2267. $as_echo_n "(cached) " >&6
  2268. else
  2269. if test -n "$CXX"; then
  2270. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2271. else
  2272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2273. for as_dir in $PATH
  2274. do
  2275. IFS=$as_save_IFS
  2276. test -z "$as_dir" && as_dir=.
  2277. for ac_exec_ext in '' $ac_executable_extensions; do
  2278. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2279. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2280. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2281. break 2
  2282. fi
  2283. done
  2284. done
  2285. IFS=$as_save_IFS
  2286. fi
  2287. fi
  2288. CXX=$ac_cv_prog_CXX
  2289. if test -n "$CXX"; then
  2290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2291. $as_echo "$CXX" >&6; }
  2292. else
  2293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2294. $as_echo "no" >&6; }
  2295. fi
  2296. test -n "$CXX" && break
  2297. done
  2298. fi
  2299. if test -z "$CXX"; then
  2300. ac_ct_CXX=$CXX
  2301. for ac_prog in g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2302. do
  2303. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2304. set dummy $ac_prog; ac_word=$2
  2305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2306. $as_echo_n "checking for $ac_word... " >&6; }
  2307. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  2308. $as_echo_n "(cached) " >&6
  2309. else
  2310. if test -n "$ac_ct_CXX"; then
  2311. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2312. else
  2313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2314. for as_dir in $PATH
  2315. do
  2316. IFS=$as_save_IFS
  2317. test -z "$as_dir" && as_dir=.
  2318. for ac_exec_ext in '' $ac_executable_extensions; do
  2319. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2320. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2321. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2322. break 2
  2323. fi
  2324. done
  2325. done
  2326. IFS=$as_save_IFS
  2327. fi
  2328. fi
  2329. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2330. if test -n "$ac_ct_CXX"; then
  2331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2332. $as_echo "$ac_ct_CXX" >&6; }
  2333. else
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2335. $as_echo "no" >&6; }
  2336. fi
  2337. test -n "$ac_ct_CXX" && break
  2338. done
  2339. if test "x$ac_ct_CXX" = x; then
  2340. CXX="g++"
  2341. else
  2342. case $cross_compiling:$ac_tool_warned in
  2343. yes:)
  2344. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2345. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2346. ac_tool_warned=yes ;;
  2347. esac
  2348. CXX=$ac_ct_CXX
  2349. fi
  2350. fi
  2351. fi
  2352. fi
  2353. # Provide some information about the compiler.
  2354. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2355. set X $ac_compile
  2356. ac_compiler=$2
  2357. for ac_option in --version -v -V -qversion; do
  2358. { { ac_try="$ac_compiler $ac_option >&5"
  2359. case "(($ac_try" in
  2360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2361. *) ac_try_echo=$ac_try;;
  2362. esac
  2363. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2364. $as_echo "$ac_try_echo"; } >&5
  2365. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2366. ac_status=$?
  2367. if test -s conftest.err; then
  2368. sed '10a\
  2369. ... rest of stderr output deleted ...
  2370. 10q' conftest.err >conftest.er1
  2371. cat conftest.er1 >&5
  2372. fi
  2373. rm -f conftest.er1 conftest.err
  2374. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2375. test $ac_status = 0; }
  2376. done
  2377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2378. /* end confdefs.h. */
  2379. int
  2380. main ()
  2381. {
  2382. ;
  2383. return 0;
  2384. }
  2385. _ACEOF
  2386. ac_clean_files_save=$ac_clean_files
  2387. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2388. # Try to create an executable without -o first, disregard a.out.
  2389. # It will help us diagnose broken compilers, and finding out an intuition
  2390. # of exeext.
  2391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2392. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2393. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2394. # The possible output files:
  2395. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2396. ac_rmfiles=
  2397. for ac_file in $ac_files
  2398. do
  2399. case $ac_file in
  2400. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2401. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2402. esac
  2403. done
  2404. rm -f $ac_rmfiles
  2405. if { { ac_try="$ac_link_default"
  2406. case "(($ac_try" in
  2407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2408. *) ac_try_echo=$ac_try;;
  2409. esac
  2410. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2411. $as_echo "$ac_try_echo"; } >&5
  2412. (eval "$ac_link_default") 2>&5
  2413. ac_status=$?
  2414. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2415. test $ac_status = 0; }; then :
  2416. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2417. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2418. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2419. # so that the user can short-circuit this test for compilers unknown to
  2420. # Autoconf.
  2421. for ac_file in $ac_files ''
  2422. do
  2423. test -f "$ac_file" || continue
  2424. case $ac_file in
  2425. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2426. ;;
  2427. [ab].out )
  2428. # We found the default executable, but exeext='' is most
  2429. # certainly right.
  2430. break;;
  2431. *.* )
  2432. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2433. then :; else
  2434. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2435. fi
  2436. # We set ac_cv_exeext here because the later test for it is not
  2437. # safe: cross compilers may not add the suffix if given an `-o'
  2438. # argument, so we may need to know it at that point already.
  2439. # Even if this section looks crufty: it has the advantage of
  2440. # actually working.
  2441. break;;
  2442. * )
  2443. break;;
  2444. esac
  2445. done
  2446. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2447. else
  2448. ac_file=''
  2449. fi
  2450. if test -z "$ac_file"; then :
  2451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2452. $as_echo "no" >&6; }
  2453. $as_echo "$as_me: failed program was:" >&5
  2454. sed 's/^/| /' conftest.$ac_ext >&5
  2455. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2456. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2457. as_fn_error 77 "C++ compiler cannot create executables
  2458. See \`config.log' for more details" "$LINENO" 5 ; }
  2459. else
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2461. $as_echo "yes" >&6; }
  2462. fi
  2463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2464. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2466. $as_echo "$ac_file" >&6; }
  2467. ac_exeext=$ac_cv_exeext
  2468. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2469. ac_clean_files=$ac_clean_files_save
  2470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2471. $as_echo_n "checking for suffix of executables... " >&6; }
  2472. if { { ac_try="$ac_link"
  2473. case "(($ac_try" in
  2474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2475. *) ac_try_echo=$ac_try;;
  2476. esac
  2477. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2478. $as_echo "$ac_try_echo"; } >&5
  2479. (eval "$ac_link") 2>&5
  2480. ac_status=$?
  2481. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2482. test $ac_status = 0; }; then :
  2483. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2484. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2485. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2486. # `rm'.
  2487. for ac_file in conftest.exe conftest conftest.*; do
  2488. test -f "$ac_file" || continue
  2489. case $ac_file in
  2490. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2491. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2492. break;;
  2493. * ) break;;
  2494. esac
  2495. done
  2496. else
  2497. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2498. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2499. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2500. See \`config.log' for more details" "$LINENO" 5 ; }
  2501. fi
  2502. rm -f conftest conftest$ac_cv_exeext
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2504. $as_echo "$ac_cv_exeext" >&6; }
  2505. rm -f conftest.$ac_ext
  2506. EXEEXT=$ac_cv_exeext
  2507. ac_exeext=$EXEEXT
  2508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2509. /* end confdefs.h. */
  2510. #include <stdio.h>
  2511. int
  2512. main ()
  2513. {
  2514. FILE *f = fopen ("conftest.out", "w");
  2515. return ferror (f) || fclose (f) != 0;
  2516. ;
  2517. return 0;
  2518. }
  2519. _ACEOF
  2520. ac_clean_files="$ac_clean_files conftest.out"
  2521. # Check that the compiler produces executables we can run. If not, either
  2522. # the compiler is broken, or we cross compile.
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2524. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2525. if test "$cross_compiling" != yes; then
  2526. { { ac_try="$ac_link"
  2527. case "(($ac_try" in
  2528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2529. *) ac_try_echo=$ac_try;;
  2530. esac
  2531. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2532. $as_echo "$ac_try_echo"; } >&5
  2533. (eval "$ac_link") 2>&5
  2534. ac_status=$?
  2535. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2536. test $ac_status = 0; }
  2537. if { ac_try='./conftest$ac_cv_exeext'
  2538. { { case "(($ac_try" in
  2539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2540. *) ac_try_echo=$ac_try;;
  2541. esac
  2542. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2543. $as_echo "$ac_try_echo"; } >&5
  2544. (eval "$ac_try") 2>&5
  2545. ac_status=$?
  2546. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2547. test $ac_status = 0; }; }; then
  2548. cross_compiling=no
  2549. else
  2550. if test "$cross_compiling" = maybe; then
  2551. cross_compiling=yes
  2552. else
  2553. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2554. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2555. as_fn_error $? "cannot run C++ compiled programs.
  2556. If you meant to cross compile, use \`--host'.
  2557. See \`config.log' for more details" "$LINENO" 5 ; }
  2558. fi
  2559. fi
  2560. fi
  2561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2562. $as_echo "$cross_compiling" >&6; }
  2563. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2564. ac_clean_files=$ac_clean_files_save
  2565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2566. $as_echo_n "checking for suffix of object files... " >&6; }
  2567. if test "${ac_cv_objext+set}" = set; then :
  2568. $as_echo_n "(cached) " >&6
  2569. else
  2570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2571. /* end confdefs.h. */
  2572. int
  2573. main ()
  2574. {
  2575. ;
  2576. return 0;
  2577. }
  2578. _ACEOF
  2579. rm -f conftest.o conftest.obj
  2580. if { { ac_try="$ac_compile"
  2581. case "(($ac_try" in
  2582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2583. *) ac_try_echo=$ac_try;;
  2584. esac
  2585. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2586. $as_echo "$ac_try_echo"; } >&5
  2587. (eval "$ac_compile") 2>&5
  2588. ac_status=$?
  2589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2590. test $ac_status = 0; }; then :
  2591. for ac_file in conftest.o conftest.obj conftest.*; do
  2592. test -f "$ac_file" || continue;
  2593. case $ac_file in
  2594. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2595. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2596. break;;
  2597. esac
  2598. done
  2599. else
  2600. $as_echo "$as_me: failed program was:" >&5
  2601. sed 's/^/| /' conftest.$ac_ext >&5
  2602. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2603. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2604. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2605. See \`config.log' for more details" "$LINENO" 5 ; }
  2606. fi
  2607. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2608. fi
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2610. $as_echo "$ac_cv_objext" >&6; }
  2611. OBJEXT=$ac_cv_objext
  2612. ac_objext=$OBJEXT
  2613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2614. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2615. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  2616. $as_echo_n "(cached) " >&6
  2617. else
  2618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2619. /* end confdefs.h. */
  2620. int
  2621. main ()
  2622. {
  2623. #ifndef __GNUC__
  2624. choke me
  2625. #endif
  2626. ;
  2627. return 0;
  2628. }
  2629. _ACEOF
  2630. if ac_fn_cxx_try_compile "$LINENO"; then :
  2631. ac_compiler_gnu=yes
  2632. else
  2633. ac_compiler_gnu=no
  2634. fi
  2635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2636. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2637. fi
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2639. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2640. if test $ac_compiler_gnu = yes; then
  2641. GXX=yes
  2642. else
  2643. GXX=
  2644. fi
  2645. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2646. ac_save_CXXFLAGS=$CXXFLAGS
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2648. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2649. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  2650. $as_echo_n "(cached) " >&6
  2651. else
  2652. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2653. ac_cxx_werror_flag=yes
  2654. ac_cv_prog_cxx_g=no
  2655. CXXFLAGS="-g"
  2656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2657. /* end confdefs.h. */
  2658. int
  2659. main ()
  2660. {
  2661. ;
  2662. return 0;
  2663. }
  2664. _ACEOF
  2665. if ac_fn_cxx_try_compile "$LINENO"; then :
  2666. ac_cv_prog_cxx_g=yes
  2667. else
  2668. CXXFLAGS=""
  2669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2670. /* end confdefs.h. */
  2671. int
  2672. main ()
  2673. {
  2674. ;
  2675. return 0;
  2676. }
  2677. _ACEOF
  2678. if ac_fn_cxx_try_compile "$LINENO"; then :
  2679. else
  2680. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2681. CXXFLAGS="-g"
  2682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2683. /* end confdefs.h. */
  2684. int
  2685. main ()
  2686. {
  2687. ;
  2688. return 0;
  2689. }
  2690. _ACEOF
  2691. if ac_fn_cxx_try_compile "$LINENO"; then :
  2692. ac_cv_prog_cxx_g=yes
  2693. fi
  2694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2695. fi
  2696. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2697. fi
  2698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2699. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2700. fi
  2701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  2702. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2703. if test "$ac_test_CXXFLAGS" = set; then
  2704. CXXFLAGS=$ac_save_CXXFLAGS
  2705. elif test $ac_cv_prog_cxx_g = yes; then
  2706. if test "$GXX" = yes; then
  2707. CXXFLAGS="-g -O2"
  2708. else
  2709. CXXFLAGS="-g"
  2710. fi
  2711. else
  2712. if test "$GXX" = yes; then
  2713. CXXFLAGS="-O2"
  2714. else
  2715. CXXFLAGS=
  2716. fi
  2717. fi
  2718. ac_ext=cpp
  2719. ac_cpp='$CXXCPP $CPPFLAGS'
  2720. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2721. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2722. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2723. if test "${cross_compiling-x}" = "x"
  2724. then
  2725. cat << 'EOF' >&2
  2726. configure: error:
  2727. This system does not appear to have a working C compiler.
  2728. A working C compiler is required to compile Eggdrop.
  2729. EOF
  2730. exit 1
  2731. fi
  2732. if test -n "$GXX"; then
  2733. CXXFLAGS="$CXXFLAGS"
  2734. fi
  2735. # Crazy machines
  2736. ac_ext=cpp
  2737. ac_cpp='$CXXCPP $CPPFLAGS'
  2738. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2739. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2740. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  2742. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2743. if test -z "$CXXCPP"; then
  2744. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  2745. $as_echo_n "(cached) " >&6
  2746. else
  2747. # Double quotes because CXXCPP needs to be expanded
  2748. for CXXCPP in "$CXX -E" "/lib/cpp"
  2749. do
  2750. ac_preproc_ok=false
  2751. for ac_cxx_preproc_warn_flag in '' yes
  2752. do
  2753. # Use a header file that comes with gcc, so configuring glibc
  2754. # with a fresh cross-compiler works.
  2755. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2756. # <limits.h> exists even on freestanding compilers.
  2757. # On the NeXT, cc -E runs the code through the compiler's parser,
  2758. # not just through cpp. "Syntax error" is here to catch this case.
  2759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2760. /* end confdefs.h. */
  2761. #ifdef __STDC__
  2762. # include <limits.h>
  2763. #else
  2764. # include <assert.h>
  2765. #endif
  2766. Syntax error
  2767. _ACEOF
  2768. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2769. else
  2770. # Broken: fails on valid input.
  2771. continue
  2772. fi
  2773. rm -f conftest.err conftest.i conftest.$ac_ext
  2774. # OK, works on sane cases. Now check whether nonexistent headers
  2775. # can be detected and how.
  2776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2777. /* end confdefs.h. */
  2778. #include <ac_nonexistent.h>
  2779. _ACEOF
  2780. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2781. # Broken: success on invalid input.
  2782. continue
  2783. else
  2784. # Passes both tests.
  2785. ac_preproc_ok=:
  2786. break
  2787. fi
  2788. rm -f conftest.err conftest.i conftest.$ac_ext
  2789. done
  2790. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2791. rm -f conftest.i conftest.err conftest.$ac_ext
  2792. if $ac_preproc_ok; then :
  2793. break
  2794. fi
  2795. done
  2796. ac_cv_prog_CXXCPP=$CXXCPP
  2797. fi
  2798. CXXCPP=$ac_cv_prog_CXXCPP
  2799. else
  2800. ac_cv_prog_CXXCPP=$CXXCPP
  2801. fi
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  2803. $as_echo "$CXXCPP" >&6; }
  2804. ac_preproc_ok=false
  2805. for ac_cxx_preproc_warn_flag in '' yes
  2806. do
  2807. # Use a header file that comes with gcc, so configuring glibc
  2808. # with a fresh cross-compiler works.
  2809. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2810. # <limits.h> exists even on freestanding compilers.
  2811. # On the NeXT, cc -E runs the code through the compiler's parser,
  2812. # not just through cpp. "Syntax error" is here to catch this case.
  2813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2814. /* end confdefs.h. */
  2815. #ifdef __STDC__
  2816. # include <limits.h>
  2817. #else
  2818. # include <assert.h>
  2819. #endif
  2820. Syntax error
  2821. _ACEOF
  2822. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2823. else
  2824. # Broken: fails on valid input.
  2825. continue
  2826. fi
  2827. rm -f conftest.err conftest.i conftest.$ac_ext
  2828. # OK, works on sane cases. Now check whether nonexistent headers
  2829. # can be detected and how.
  2830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2831. /* end confdefs.h. */
  2832. #include <ac_nonexistent.h>
  2833. _ACEOF
  2834. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2835. # Broken: success on invalid input.
  2836. continue
  2837. else
  2838. # Passes both tests.
  2839. ac_preproc_ok=:
  2840. break
  2841. fi
  2842. rm -f conftest.err conftest.i conftest.$ac_ext
  2843. done
  2844. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2845. rm -f conftest.i conftest.err conftest.$ac_ext
  2846. if $ac_preproc_ok; then :
  2847. else
  2848. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2849. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2850. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  2851. See \`config.log' for more details" "$LINENO" 5 ; }
  2852. fi
  2853. ac_ext=cpp
  2854. ac_cpp='$CXXCPP $CPPFLAGS'
  2855. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2856. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2857. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  2859. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2860. if test "${ac_cv_path_GREP+set}" = set; then :
  2861. $as_echo_n "(cached) " >&6
  2862. else
  2863. if test -z "$GREP"; then
  2864. ac_path_GREP_found=false
  2865. # Loop through the user's path and test for each of PROGNAME-LIST
  2866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2867. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2868. do
  2869. IFS=$as_save_IFS
  2870. test -z "$as_dir" && as_dir=.
  2871. for ac_prog in grep ggrep; do
  2872. for ac_exec_ext in '' $ac_executable_extensions; do
  2873. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2874. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2875. # Check for GNU ac_path_GREP and select it if it is found.
  2876. # Check for GNU $ac_path_GREP
  2877. case `"$ac_path_GREP" --version 2>&1` in
  2878. *GNU*)
  2879. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2880. *)
  2881. ac_count=0
  2882. $as_echo_n 0123456789 >"conftest.in"
  2883. while :
  2884. do
  2885. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2886. mv "conftest.tmp" "conftest.in"
  2887. cp "conftest.in" "conftest.nl"
  2888. $as_echo 'GREP' >> "conftest.nl"
  2889. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2890. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2891. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2892. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2893. # Best one so far, save it but keep looking for a better one
  2894. ac_cv_path_GREP="$ac_path_GREP"
  2895. ac_path_GREP_max=$ac_count
  2896. fi
  2897. # 10*(2^10) chars as input seems more than enough
  2898. test $ac_count -gt 10 && break
  2899. done
  2900. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2901. esac
  2902. $ac_path_GREP_found && break 3
  2903. done
  2904. done
  2905. done
  2906. IFS=$as_save_IFS
  2907. if test -z "$ac_cv_path_GREP"; then
  2908. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2909. fi
  2910. else
  2911. ac_cv_path_GREP=$GREP
  2912. fi
  2913. fi
  2914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  2915. $as_echo "$ac_cv_path_GREP" >&6; }
  2916. GREP="$ac_cv_path_GREP"
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  2918. $as_echo_n "checking for egrep... " >&6; }
  2919. if test "${ac_cv_path_EGREP+set}" = set; then :
  2920. $as_echo_n "(cached) " >&6
  2921. else
  2922. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2923. then ac_cv_path_EGREP="$GREP -E"
  2924. else
  2925. if test -z "$EGREP"; then
  2926. ac_path_EGREP_found=false
  2927. # Loop through the user's path and test for each of PROGNAME-LIST
  2928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2929. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2930. do
  2931. IFS=$as_save_IFS
  2932. test -z "$as_dir" && as_dir=.
  2933. for ac_prog in egrep; do
  2934. for ac_exec_ext in '' $ac_executable_extensions; do
  2935. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2936. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2937. # Check for GNU ac_path_EGREP and select it if it is found.
  2938. # Check for GNU $ac_path_EGREP
  2939. case `"$ac_path_EGREP" --version 2>&1` in
  2940. *GNU*)
  2941. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2942. *)
  2943. ac_count=0
  2944. $as_echo_n 0123456789 >"conftest.in"
  2945. while :
  2946. do
  2947. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2948. mv "conftest.tmp" "conftest.in"
  2949. cp "conftest.in" "conftest.nl"
  2950. $as_echo 'EGREP' >> "conftest.nl"
  2951. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2952. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2953. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2954. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2955. # Best one so far, save it but keep looking for a better one
  2956. ac_cv_path_EGREP="$ac_path_EGREP"
  2957. ac_path_EGREP_max=$ac_count
  2958. fi
  2959. # 10*(2^10) chars as input seems more than enough
  2960. test $ac_count -gt 10 && break
  2961. done
  2962. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2963. esac
  2964. $ac_path_EGREP_found && break 3
  2965. done
  2966. done
  2967. done
  2968. IFS=$as_save_IFS
  2969. if test -z "$ac_cv_path_EGREP"; then
  2970. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2971. fi
  2972. else
  2973. ac_cv_path_EGREP=$EGREP
  2974. fi
  2975. fi
  2976. fi
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  2978. $as_echo "$ac_cv_path_EGREP" >&6; }
  2979. EGREP="$ac_cv_path_EGREP"
  2980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  2981. $as_echo_n "checking for ANSI C header files... " >&6; }
  2982. if test "${ac_cv_header_stdc+set}" = set; then :
  2983. $as_echo_n "(cached) " >&6
  2984. else
  2985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2986. /* end confdefs.h. */
  2987. #include <stdlib.h>
  2988. #include <stdarg.h>
  2989. #include <string.h>
  2990. #include <float.h>
  2991. int
  2992. main ()
  2993. {
  2994. ;
  2995. return 0;
  2996. }
  2997. _ACEOF
  2998. if ac_fn_cxx_try_compile "$LINENO"; then :
  2999. ac_cv_header_stdc=yes
  3000. else
  3001. ac_cv_header_stdc=no
  3002. fi
  3003. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3004. if test $ac_cv_header_stdc = yes; then
  3005. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3007. /* end confdefs.h. */
  3008. #include <string.h>
  3009. _ACEOF
  3010. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3011. $EGREP "memchr" >/dev/null 2>&1; then :
  3012. else
  3013. ac_cv_header_stdc=no
  3014. fi
  3015. rm -f conftest*
  3016. fi
  3017. if test $ac_cv_header_stdc = yes; then
  3018. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3020. /* end confdefs.h. */
  3021. #include <stdlib.h>
  3022. _ACEOF
  3023. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3024. $EGREP "free" >/dev/null 2>&1; then :
  3025. else
  3026. ac_cv_header_stdc=no
  3027. fi
  3028. rm -f conftest*
  3029. fi
  3030. if test $ac_cv_header_stdc = yes; then
  3031. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3032. if test "$cross_compiling" = yes; then :
  3033. :
  3034. else
  3035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3036. /* end confdefs.h. */
  3037. #include <ctype.h>
  3038. #include <stdlib.h>
  3039. #if ((' ' & 0x0FF) == 0x020)
  3040. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3041. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3042. #else
  3043. # define ISLOWER(c) \
  3044. (('a' <= (c) && (c) <= 'i') \
  3045. || ('j' <= (c) && (c) <= 'r') \
  3046. || ('s' <= (c) && (c) <= 'z'))
  3047. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3048. #endif
  3049. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3050. int
  3051. main ()
  3052. {
  3053. int i;
  3054. for (i = 0; i < 256; i++)
  3055. if (XOR (islower (i), ISLOWER (i))
  3056. || toupper (i) != TOUPPER (i))
  3057. return 2;
  3058. return 0;
  3059. }
  3060. _ACEOF
  3061. if ac_fn_cxx_try_run "$LINENO"; then :
  3062. else
  3063. ac_cv_header_stdc=no
  3064. fi
  3065. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3066. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3067. fi
  3068. fi
  3069. fi
  3070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3071. $as_echo "$ac_cv_header_stdc" >&6; }
  3072. if test $ac_cv_header_stdc = yes; then
  3073. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3074. fi
  3075. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3076. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3077. inttypes.h stdint.h unistd.h
  3078. do :
  3079. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3080. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3081. "
  3082. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3083. cat >>confdefs.h <<_ACEOF
  3084. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3085. _ACEOF
  3086. fi
  3087. done
  3088. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3089. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  3090. MINIX=yes
  3091. else
  3092. MINIX=
  3093. fi
  3094. if test "$MINIX" = yes; then
  3095. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3096. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3097. $as_echo "#define _MINIX 1" >>confdefs.h
  3098. fi
  3099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3100. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3101. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  3102. $as_echo_n "(cached) " >&6
  3103. else
  3104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3105. /* end confdefs.h. */
  3106. # define __EXTENSIONS__ 1
  3107. $ac_includes_default
  3108. int
  3109. main ()
  3110. {
  3111. ;
  3112. return 0;
  3113. }
  3114. _ACEOF
  3115. if ac_fn_cxx_try_compile "$LINENO"; then :
  3116. ac_cv_safe_to_define___extensions__=yes
  3117. else
  3118. ac_cv_safe_to_define___extensions__=no
  3119. fi
  3120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3121. fi
  3122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3123. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3124. test $ac_cv_safe_to_define___extensions__ = yes &&
  3125. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3126. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3127. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3128. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3129. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  3131. $as_echo_n "checking for library containing strerror... " >&6; }
  3132. if test "${ac_cv_search_strerror+set}" = set; then :
  3133. $as_echo_n "(cached) " >&6
  3134. else
  3135. ac_func_search_save_LIBS=$LIBS
  3136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3137. /* end confdefs.h. */
  3138. /* Override any GCC internal prototype to avoid an error.
  3139. Use char because int might match the return type of a GCC
  3140. builtin and then its argument prototype would still apply. */
  3141. #ifdef __cplusplus
  3142. extern "C"
  3143. #endif
  3144. char strerror ();
  3145. int
  3146. main ()
  3147. {
  3148. return strerror ();
  3149. ;
  3150. return 0;
  3151. }
  3152. _ACEOF
  3153. for ac_lib in '' cposix; do
  3154. if test -z "$ac_lib"; then
  3155. ac_res="none required"
  3156. else
  3157. ac_res=-l$ac_lib
  3158. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3159. fi
  3160. if ac_fn_cxx_try_link "$LINENO"; then :
  3161. ac_cv_search_strerror=$ac_res
  3162. fi
  3163. rm -f core conftest.err conftest.$ac_objext \
  3164. conftest$ac_exeext
  3165. if test "${ac_cv_search_strerror+set}" = set; then :
  3166. break
  3167. fi
  3168. done
  3169. if test "${ac_cv_search_strerror+set}" = set; then :
  3170. else
  3171. ac_cv_search_strerror=no
  3172. fi
  3173. rm conftest.$ac_ext
  3174. LIBS=$ac_func_search_save_LIBS
  3175. fi
  3176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  3177. $as_echo "$ac_cv_search_strerror" >&6; }
  3178. ac_res=$ac_cv_search_strerror
  3179. if test "$ac_res" != no; then :
  3180. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3181. fi
  3182. #checkpoint
  3183. cat >confcache <<\_ACEOF
  3184. # This file is a shell script that caches the results of configure
  3185. # tests run on this system so they can be shared between configure
  3186. # scripts and configure runs, see configure's option --config-cache.
  3187. # It is not useful on other systems. If it contains results you don't
  3188. # want to keep, you may remove or edit it.
  3189. #
  3190. # config.status only pays attention to the cache file if you give it
  3191. # the --recheck option to rerun configure.
  3192. #
  3193. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3194. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3195. # following values.
  3196. _ACEOF
  3197. # The following way of writing the cache mishandles newlines in values,
  3198. # but we know of no workaround that is simple, portable, and efficient.
  3199. # So, we kill variables containing newlines.
  3200. # Ultrix sh set writes to stderr and can't be redirected directly,
  3201. # and sets the high bit in the cache file unless we assign to the vars.
  3202. (
  3203. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3204. eval ac_val=\$$ac_var
  3205. case $ac_val in #(
  3206. *${as_nl}*)
  3207. case $ac_var in #(
  3208. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3209. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3210. esac
  3211. case $ac_var in #(
  3212. _ | IFS | as_nl) ;; #(
  3213. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3214. *) { eval $ac_var=; unset $ac_var;} ;;
  3215. esac ;;
  3216. esac
  3217. done
  3218. (set) 2>&1 |
  3219. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3220. *${as_nl}ac_space=\ *)
  3221. # `set' does not quote correctly, so add quotes: double-quote
  3222. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3223. sed -n \
  3224. "s/'/'\\\\''/g;
  3225. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3226. ;; #(
  3227. *)
  3228. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3229. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3230. ;;
  3231. esac |
  3232. sort
  3233. ) |
  3234. sed '
  3235. /^ac_cv_env_/b end
  3236. t clear
  3237. :clear
  3238. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3239. t end
  3240. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3241. :end' >>confcache
  3242. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3243. if test -w "$cache_file"; then
  3244. test "x$cache_file" != "x/dev/null" &&
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3246. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3247. cat confcache >$cache_file
  3248. else
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3250. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3251. fi
  3252. fi
  3253. rm -f confcache
  3254. # Speedup compile
  3255. if test -n "$GXX" && test -z "$no_wall"; then
  3256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wall" >&5
  3257. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3258. if test "${egg_cv_var_ccwall+set}" = set; then :
  3259. $as_echo_n "(cached) " >&6
  3260. else
  3261. ac_old_CXXFLAGS="$CXXFLAGS"
  3262. CXXFLAGS="$CXXFLAGS -Wall"
  3263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3264. /* end confdefs.h. */
  3265. int main ()
  3266. {
  3267. return(0);
  3268. }
  3269. _ACEOF
  3270. if ac_fn_cxx_try_compile "$LINENO"; then :
  3271. egg_cv_var_ccwall="yes"
  3272. else
  3273. egg_cv_var_ccwall="no"
  3274. fi
  3275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3276. CXXFLAGS="$ac_old_CXXFLAGS"
  3277. fi
  3278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccwall" >&5
  3279. $as_echo "$egg_cv_var_ccwall" >&6; }
  3280. if test "$egg_cv_var_ccwall" = "yes"; then
  3281. CXXFLAGS="$CXXFLAGS -Wall"
  3282. fi
  3283. fi
  3284. if test -n "$GXX" && test -z "$no_pipe"; then
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -pipe" >&5
  3286. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3287. if test "${egg_cv_var_ccpipe+set}" = set; then :
  3288. $as_echo_n "(cached) " >&6
  3289. else
  3290. ac_old_CXX="$CXX"
  3291. CXX="$CXX -pipe"
  3292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3293. /* end confdefs.h. */
  3294. int main ()
  3295. {
  3296. return(0);
  3297. }
  3298. _ACEOF
  3299. if ac_fn_cxx_try_compile "$LINENO"; then :
  3300. egg_cv_var_ccpipe="yes"
  3301. else
  3302. egg_cv_var_ccpipe="no"
  3303. fi
  3304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3305. CXX="$ac_old_CXX"
  3306. fi
  3307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccpipe" >&5
  3308. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3309. if test "$egg_cv_var_ccpipe" = "yes"; then
  3310. CXX="$CXX -pipe"
  3311. fi
  3312. fi
  3313. CCDEPMODE=gcc
  3314. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3315. if test $num -ge "3"; then
  3316. CCDEPMODE=gcc3
  3317. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3318. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -fno-strict-aliasing -Woverloaded-virtual -Wno-format-y2k"
  3319. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  3320. fi
  3321. if test $num -ge "4"; then
  3322. GCC4DEB="-fstack-protector-all"
  3323. fi
  3324. #checkpoint
  3325. cat >confcache <<\_ACEOF
  3326. # This file is a shell script that caches the results of configure
  3327. # tests run on this system so they can be shared between configure
  3328. # scripts and configure runs, see configure's option --config-cache.
  3329. # It is not useful on other systems. If it contains results you don't
  3330. # want to keep, you may remove or edit it.
  3331. #
  3332. # config.status only pays attention to the cache file if you give it
  3333. # the --recheck option to rerun configure.
  3334. #
  3335. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3336. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3337. # following values.
  3338. _ACEOF
  3339. # The following way of writing the cache mishandles newlines in values,
  3340. # but we know of no workaround that is simple, portable, and efficient.
  3341. # So, we kill variables containing newlines.
  3342. # Ultrix sh set writes to stderr and can't be redirected directly,
  3343. # and sets the high bit in the cache file unless we assign to the vars.
  3344. (
  3345. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3346. eval ac_val=\$$ac_var
  3347. case $ac_val in #(
  3348. *${as_nl}*)
  3349. case $ac_var in #(
  3350. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3351. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3352. esac
  3353. case $ac_var in #(
  3354. _ | IFS | as_nl) ;; #(
  3355. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3356. *) { eval $ac_var=; unset $ac_var;} ;;
  3357. esac ;;
  3358. esac
  3359. done
  3360. (set) 2>&1 |
  3361. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3362. *${as_nl}ac_space=\ *)
  3363. # `set' does not quote correctly, so add quotes: double-quote
  3364. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3365. sed -n \
  3366. "s/'/'\\\\''/g;
  3367. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3368. ;; #(
  3369. *)
  3370. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3371. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3372. ;;
  3373. esac |
  3374. sort
  3375. ) |
  3376. sed '
  3377. /^ac_cv_env_/b end
  3378. t clear
  3379. :clear
  3380. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3381. t end
  3382. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3383. :end' >>confcache
  3384. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3385. if test -w "$cache_file"; then
  3386. test "x$cache_file" != "x/dev/null" &&
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3388. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3389. cat confcache >$cache_file
  3390. else
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3392. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3393. fi
  3394. fi
  3395. rm -f confcache
  3396. # Checks for programs
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3398. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3399. set x ${MAKE-make}
  3400. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3401. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
  3402. $as_echo_n "(cached) " >&6
  3403. else
  3404. cat >conftest.make <<\_ACEOF
  3405. SHELL = /bin/sh
  3406. all:
  3407. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3408. _ACEOF
  3409. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3410. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3411. *@@@%%%=?*=@@@%%%*)
  3412. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3413. *)
  3414. eval ac_cv_prog_make_${ac_make}_set=no;;
  3415. esac
  3416. rm -f conftest.make
  3417. fi
  3418. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3420. $as_echo "yes" >&6; }
  3421. SET_MAKE=
  3422. else
  3423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3424. $as_echo "no" >&6; }
  3425. SET_MAKE="MAKE=${MAKE-make}"
  3426. fi
  3427. cat << 'EOF' > conftest.head
  3428. a
  3429. b
  3430. c
  3431. EOF
  3432. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3433. do
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_prog works" >&5
  3435. $as_echo_n "checking whether $ac_prog works... " >&6; }
  3436. if test "${ac_cv_prog_HEAD_1+set}" = set; then :
  3437. $as_echo_n "(cached) " >&6
  3438. else
  3439. if test -n "$HEAD_1"
  3440. then
  3441. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3442. else
  3443. if test "`cat conftest.head | $ac_prog`" = "a";
  3444. then
  3445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3446. $as_echo "yes" >&6; }
  3447. ac_cv_prog_HEAD_1=$ac_prog
  3448. else
  3449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3450. $as_echo "no" >&6; }
  3451. fi
  3452. fi
  3453. fi
  3454. test -n "$ac_cv_prog_HEAD_1" && break
  3455. done
  3456. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3457. then
  3458. cat << 'EOF' >&2
  3459. configure: error:
  3460. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3461. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  3462. EOF
  3463. exit 1
  3464. fi
  3465. rm -f conftest.head
  3466. HEAD_1=$ac_cv_prog_HEAD_1
  3467. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3468. for ac_prog in gawk mawk nawk awk
  3469. do
  3470. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3471. set dummy $ac_prog; ac_word=$2
  3472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3473. $as_echo_n "checking for $ac_word... " >&6; }
  3474. if test "${ac_cv_prog_AWK+set}" = set; then :
  3475. $as_echo_n "(cached) " >&6
  3476. else
  3477. if test -n "$AWK"; then
  3478. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3479. else
  3480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3481. for as_dir in $PATH
  3482. do
  3483. IFS=$as_save_IFS
  3484. test -z "$as_dir" && as_dir=.
  3485. for ac_exec_ext in '' $ac_executable_extensions; do
  3486. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3487. ac_cv_prog_AWK="$ac_prog"
  3488. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3489. break 2
  3490. fi
  3491. done
  3492. done
  3493. IFS=$as_save_IFS
  3494. fi
  3495. fi
  3496. AWK=$ac_cv_prog_AWK
  3497. if test -n "$AWK"; then
  3498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3499. $as_echo "$AWK" >&6; }
  3500. else
  3501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3502. $as_echo "no" >&6; }
  3503. fi
  3504. test -n "$AWK" && break
  3505. done
  3506. if test "${AWK-x}" = "x"
  3507. then
  3508. cat << 'EOF' >&2
  3509. configure: error:
  3510. This system seems to lack a working 'awk' command.
  3511. A working 'awk' command is required to compile Eggdrop.
  3512. EOF
  3513. exit 1
  3514. fi
  3515. # basename is needed for Tcl library and header checks
  3516. # Extract the first word of "basename", so it can be a program name with args.
  3517. set dummy basename; ac_word=$2
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3519. $as_echo_n "checking for $ac_word... " >&6; }
  3520. if test "${ac_cv_prog_BASENAME+set}" = set; then :
  3521. $as_echo_n "(cached) " >&6
  3522. else
  3523. if test -n "$BASENAME"; then
  3524. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3525. else
  3526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3527. for as_dir in $PATH
  3528. do
  3529. IFS=$as_save_IFS
  3530. test -z "$as_dir" && as_dir=.
  3531. for ac_exec_ext in '' $ac_executable_extensions; do
  3532. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3533. ac_cv_prog_BASENAME="basename"
  3534. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3535. break 2
  3536. fi
  3537. done
  3538. done
  3539. IFS=$as_save_IFS
  3540. fi
  3541. fi
  3542. BASENAME=$ac_cv_prog_BASENAME
  3543. if test -n "$BASENAME"; then
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  3545. $as_echo "$BASENAME" >&6; }
  3546. else
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3548. $as_echo "no" >&6; }
  3549. fi
  3550. if test "${BASENAME-x}" = "x"
  3551. then
  3552. cat << 'EOF' >&2
  3553. configure: error:
  3554. This system seems to lack a working 'basename' command.
  3555. A working 'basename' command is required to compile Eggdrop.
  3556. EOF
  3557. exit 1
  3558. fi
  3559. # Extract the first word of "objcopy", so it can be a program name with args.
  3560. set dummy objcopy; ac_word=$2
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3562. $as_echo_n "checking for $ac_word... " >&6; }
  3563. if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
  3564. $as_echo_n "(cached) " >&6
  3565. else
  3566. if test -n "$OBJCOPY"; then
  3567. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3568. else
  3569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3570. for as_dir in $PATH
  3571. do
  3572. IFS=$as_save_IFS
  3573. test -z "$as_dir" && as_dir=.
  3574. for ac_exec_ext in '' $ac_executable_extensions; do
  3575. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3576. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3577. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3578. break 2
  3579. fi
  3580. done
  3581. done
  3582. IFS=$as_save_IFS
  3583. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3584. fi
  3585. fi
  3586. OBJCOPY=$ac_cv_prog_OBJCOPY
  3587. if test -n "$OBJCOPY"; then
  3588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  3589. $as_echo "$OBJCOPY" >&6; }
  3590. else
  3591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3592. $as_echo "no" >&6; }
  3593. fi
  3594. # Extract the first word of "strip", so it can be a program name with args.
  3595. set dummy strip; ac_word=$2
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3597. $as_echo_n "checking for $ac_word... " >&6; }
  3598. if test "${ac_cv_prog_STRIP+set}" = set; then :
  3599. $as_echo_n "(cached) " >&6
  3600. else
  3601. if test -n "$STRIP"; then
  3602. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3603. else
  3604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3605. for as_dir in $PATH
  3606. do
  3607. IFS=$as_save_IFS
  3608. test -z "$as_dir" && as_dir=.
  3609. for ac_exec_ext in '' $ac_executable_extensions; do
  3610. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3611. ac_cv_prog_STRIP="strip"
  3612. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3613. break 2
  3614. fi
  3615. done
  3616. done
  3617. IFS=$as_save_IFS
  3618. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3619. fi
  3620. fi
  3621. STRIP=$ac_cv_prog_STRIP
  3622. if test -n "$STRIP"; then
  3623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3624. $as_echo "$STRIP" >&6; }
  3625. else
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3627. $as_echo "no" >&6; }
  3628. fi
  3629. # Extract the first word of "gdiff", so it can be a program name with args.
  3630. set dummy gdiff; ac_word=$2
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3632. $as_echo_n "checking for $ac_word... " >&6; }
  3633. if test "${ac_cv_prog_DIFF+set}" = set; then :
  3634. $as_echo_n "(cached) " >&6
  3635. else
  3636. if test -n "$DIFF"; then
  3637. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  3638. else
  3639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3640. for as_dir in $PATH
  3641. do
  3642. IFS=$as_save_IFS
  3643. test -z "$as_dir" && as_dir=.
  3644. for ac_exec_ext in '' $ac_executable_extensions; do
  3645. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3646. ac_cv_prog_DIFF="gdiff"
  3647. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3648. break 2
  3649. fi
  3650. done
  3651. done
  3652. IFS=$as_save_IFS
  3653. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  3654. fi
  3655. fi
  3656. DIFF=$ac_cv_prog_DIFF
  3657. if test -n "$DIFF"; then
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
  3659. $as_echo "$DIFF" >&6; }
  3660. else
  3661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3662. $as_echo "no" >&6; }
  3663. fi
  3664. # Extract the first word of "uname", so it can be a program name with args.
  3665. set dummy uname; ac_word=$2
  3666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3667. $as_echo_n "checking for $ac_word... " >&6; }
  3668. if test "${ac_cv_prog_UNAME+set}" = set; then :
  3669. $as_echo_n "(cached) " >&6
  3670. else
  3671. if test -n "$UNAME"; then
  3672. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3673. else
  3674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3675. for as_dir in $PATH
  3676. do
  3677. IFS=$as_save_IFS
  3678. test -z "$as_dir" && as_dir=.
  3679. for ac_exec_ext in '' $ac_executable_extensions; do
  3680. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3681. ac_cv_prog_UNAME="uname"
  3682. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3683. break 2
  3684. fi
  3685. done
  3686. done
  3687. IFS=$as_save_IFS
  3688. fi
  3689. fi
  3690. UNAME=$ac_cv_prog_UNAME
  3691. if test -n "$UNAME"; then
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  3693. $as_echo "$UNAME" >&6; }
  3694. else
  3695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3696. $as_echo "no" >&6; }
  3697. fi
  3698. # Extract the first word of "ccache", so it can be a program name with args.
  3699. set dummy ccache; ac_word=$2
  3700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3701. $as_echo_n "checking for $ac_word... " >&6; }
  3702. if test "${ac_cv_prog_CCACHE+set}" = set; then :
  3703. $as_echo_n "(cached) " >&6
  3704. else
  3705. if test -n "$CCACHE"; then
  3706. ac_cv_prog_CCACHE="$CCACHE" # 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_CCACHE="ccache"
  3716. $as_echo "$as_me:${as_lineno-$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. fi
  3723. fi
  3724. CCACHE=$ac_cv_prog_CCACHE
  3725. if test -n "$CCACHE"; then
  3726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
  3727. $as_echo "$CCACHE" >&6; }
  3728. else
  3729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3730. $as_echo "no" >&6; }
  3731. fi
  3732. # Extract the first word of "distcc", so it can be a program name with args.
  3733. set dummy distcc; ac_word=$2
  3734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3735. $as_echo_n "checking for $ac_word... " >&6; }
  3736. if test "${ac_cv_prog_DISTCC+set}" = set; then :
  3737. $as_echo_n "(cached) " >&6
  3738. else
  3739. if test -n "$DISTCC"; then
  3740. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3741. else
  3742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3743. for as_dir in $PATH
  3744. do
  3745. IFS=$as_save_IFS
  3746. test -z "$as_dir" && as_dir=.
  3747. for ac_exec_ext in '' $ac_executable_extensions; do
  3748. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3749. ac_cv_prog_DISTCC="distcc"
  3750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3751. break 2
  3752. fi
  3753. done
  3754. done
  3755. IFS=$as_save_IFS
  3756. fi
  3757. fi
  3758. DISTCC=$ac_cv_prog_DISTCC
  3759. if test -n "$DISTCC"; then
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
  3761. $as_echo "$DISTCC" >&6; }
  3762. else
  3763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3764. $as_echo "no" >&6; }
  3765. fi
  3766. # Test the os and set the module linking settings
  3767. USE_STATIC=yes
  3768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system type" >&5
  3769. $as_echo_n "checking system type... " >&6; }
  3770. if test "${egg_cv_var_system_type+set}" = set; then :
  3771. $as_echo_n "(cached) " >&6
  3772. else
  3773. egg_cv_var_system_type=`$UNAME -s`
  3774. fi
  3775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_type" >&5
  3776. $as_echo "$egg_cv_var_system_type" >&6; }
  3777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system release" >&5
  3778. $as_echo_n "checking system release... " >&6; }
  3779. if test "${egg_cv_var_system_release+set}" = set; then :
  3780. $as_echo_n "(cached) " >&6
  3781. else
  3782. egg_cv_var_system_release=`$UNAME -r`
  3783. fi
  3784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_release" >&5
  3785. $as_echo "$egg_cv_var_system_release" >&6; }
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system machine" >&5
  3787. $as_echo_n "checking system machine... " >&6; }
  3788. if test "${egg_cv_var_system_machine+set}" = set; then :
  3789. $as_echo_n "(cached) " >&6
  3790. else
  3791. egg_cv_var_system_machine=`$UNAME -m`
  3792. fi
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_machine" >&5
  3794. $as_echo "$egg_cv_var_system_machine" >&6; }
  3795. BUILDOS="$egg_cv_var_system_type"
  3796. BUILDARCH="$egg_cv_var_system_machine"
  3797. USE_GENERIC_I486="yes"
  3798. case "$egg_cv_var_system_type" in
  3799. BSD/OS)
  3800. ;;
  3801. IRIX)
  3802. ;;
  3803. HP-UX)
  3804. $as_echo "#define MD32_XARRAY 1" >>confdefs.h
  3805. ;;
  3806. Ultrix)
  3807. SHELL=/bin/sh5
  3808. ;;
  3809. SINIX*)
  3810. ;;
  3811. BeOS)
  3812. ;;
  3813. Linux)
  3814. ;;
  3815. Lynx)
  3816. ;;
  3817. QNX)
  3818. ;;
  3819. OSF1)
  3820. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3821. V*)
  3822. if test "$AWK" = "gawk"
  3823. then
  3824. AWK=awk
  3825. fi
  3826. ;;
  3827. 1.0|1.1|1.2)
  3828. $as_echo "#define OSF1_HACKS 1" >>confdefs.h
  3829. ;;
  3830. 1.*)
  3831. $as_echo "#define OSF1_HACKS 1" >>confdefs.h
  3832. ;;
  3833. *)
  3834. ;;
  3835. esac
  3836. $as_echo "#define STOP_UAC 1" >>confdefs.h
  3837. $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
  3838. ;;
  3839. SunOS)
  3840. SUNOS="yes"
  3841. USE_STATIC="no"
  3842. ;;
  3843. Darwin)
  3844. USE_STATIC="no"
  3845. USE_GENERIC_I486="no"
  3846. ;;
  3847. *BSD)
  3848. # FreeBSD/OpenBSD/NetBSD
  3849. ;;
  3850. *)
  3851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is Mach based" >&5
  3852. $as_echo_n "checking if system is Mach based... " >&6; }
  3853. if test -r /mach
  3854. then
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3856. $as_echo "yes" >&6; }
  3857. $as_echo "#define BORGCUBES 1" >>confdefs.h
  3858. else
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3860. $as_echo "no" >&6; }
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is QNX" >&5
  3862. $as_echo_n "checking if system is QNX... " >&6; }
  3863. if test -r /cmds
  3864. then
  3865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3866. $as_echo "yes" >&6; }
  3867. else
  3868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3869. $as_echo "no" >&6; }
  3870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Something unknown!" >&5
  3871. $as_echo "Something unknown!" >&6; }
  3872. fi
  3873. fi
  3874. ;;
  3875. esac
  3876. case "$egg_cv_var_system_machine" in
  3877. i*)
  3878. if test "$USE_GENERIC_I486" = "yes"; then
  3879. CXX="$CXX -march=i486"
  3880. BUILDARCH="i486"
  3881. fi
  3882. ;;
  3883. *)
  3884. ;;
  3885. esac
  3886. # Check for IPv6 support
  3887. #EGG_IPV6_SUPPORTED
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not you disabled IPv6 support" >&5
  3889. $as_echo_n "checking whether or not you disabled IPv6 support... " >&6; }
  3890. # Check whether --enable-ipv6 was given.
  3891. if test "${enable_ipv6+set}" = set; then :
  3892. enableval=$enable_ipv6; ac_cv_dipv6="yes"
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3894. $as_echo "yes" >&6; }
  3895. else
  3896. ac_cv_dipv6="no"
  3897. if test "$egg_cv_ipv6_supported" = "no"; then
  3898. ac_cv_dipv6="no"
  3899. fi
  3900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dipv6" >&5
  3901. $as_echo "$ac_cv_dipv6" >&6; }
  3902. fi
  3903. if test "$ac_cv_dipv6" = "no"; then
  3904. $as_echo "#define USE_IPV6 1" >>confdefs.h
  3905. fi
  3906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  3907. $as_echo_n "checking for socklen_t... " >&6; }
  3908. if test "${egg_cv_socklen_t+set}" = set; then :
  3909. $as_echo_n "(cached) " >&6
  3910. else
  3911. if test "$cross_compiling" = yes; then :
  3912. egg_cv_socklen_t=no
  3913. else
  3914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3915. /* end confdefs.h. */
  3916. #include <unistd.h>
  3917. #include <sys/types.h>
  3918. #include <sys/socket.h>
  3919. #include <netinet/in.h>
  3920. #include <arpa/inet.h>
  3921. int main()
  3922. {
  3923. socklen_t test = sizeof(int);
  3924. return 0;
  3925. }
  3926. _ACEOF
  3927. if ac_fn_cxx_try_run "$LINENO"; then :
  3928. egg_cv_socklen_t=yes
  3929. else
  3930. egg_cv_socklen_t=no
  3931. fi
  3932. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3933. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3934. fi
  3935. fi
  3936. if test "$egg_cv_socklen_t" = "yes"; then
  3937. $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
  3938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3939. $as_echo "yes" >&6; }
  3940. else
  3941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3942. $as_echo "no" >&6; }
  3943. fi
  3944. # Check for inconsistent random() functions
  3945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random limit" >&5
  3946. $as_echo_n "checking for random limit... " >&6; }
  3947. case "$egg_cv_var_system_type" in
  3948. SunOS) RMAX=0x7FFFFFFF
  3949. ;;
  3950. *) RMAX=RAND_MAX
  3951. ;;
  3952. esac
  3953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMAX" >&5
  3954. $as_echo "$RMAX" >&6; }
  3955. cat >>confdefs.h <<_ACEOF
  3956. #define RANDOM_MAX $RMAX
  3957. _ACEOF
  3958. # Create static binaries
  3959. if test "$USE_STATIC" = "yes"
  3960. then
  3961. if test -n "$GXX"
  3962. then
  3963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
  3964. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  3965. if test "${egg_cv_var_ccstatic+set}" = set; then :
  3966. $as_echo_n "(cached) " >&6
  3967. else
  3968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3969. /* end confdefs.h. */
  3970. int
  3971. main ()
  3972. {
  3973. ;
  3974. return 0;
  3975. }
  3976. _ACEOF
  3977. if ac_fn_cxx_try_compile "$LINENO"; then :
  3978. egg_cv_var_ccstatic="yes"
  3979. else
  3980. egg_cv_var_ccstatic="no"
  3981. fi
  3982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3983. fi
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccstatic" >&5
  3985. $as_echo "$egg_cv_var_ccstatic" >&6; }
  3986. if ! test "$egg_cv_var_ccstatic" = "yes"
  3987. then
  3988. cat << 'EOF' >&2
  3989. configure: error:
  3990. Your OS or C++ compiler does not support -static.
  3991. This compile flag is required for the botpack on this OS.
  3992. EOF
  3993. exit 1
  3994. fi
  3995. fi
  3996. STATIC="-static"
  3997. else
  3998. STATIC=""
  3999. fi
  4000. #checkpoint
  4001. cat >confcache <<\_ACEOF
  4002. # This file is a shell script that caches the results of configure
  4003. # tests run on this system so they can be shared between configure
  4004. # scripts and configure runs, see configure's option --config-cache.
  4005. # It is not useful on other systems. If it contains results you don't
  4006. # want to keep, you may remove or edit it.
  4007. #
  4008. # config.status only pays attention to the cache file if you give it
  4009. # the --recheck option to rerun configure.
  4010. #
  4011. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4012. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4013. # following values.
  4014. _ACEOF
  4015. # The following way of writing the cache mishandles newlines in values,
  4016. # but we know of no workaround that is simple, portable, and efficient.
  4017. # So, we kill variables containing newlines.
  4018. # Ultrix sh set writes to stderr and can't be redirected directly,
  4019. # and sets the high bit in the cache file unless we assign to the vars.
  4020. (
  4021. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4022. eval ac_val=\$$ac_var
  4023. case $ac_val in #(
  4024. *${as_nl}*)
  4025. case $ac_var in #(
  4026. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4027. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4028. esac
  4029. case $ac_var in #(
  4030. _ | IFS | as_nl) ;; #(
  4031. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4032. *) { eval $ac_var=; unset $ac_var;} ;;
  4033. esac ;;
  4034. esac
  4035. done
  4036. (set) 2>&1 |
  4037. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4038. *${as_nl}ac_space=\ *)
  4039. # `set' does not quote correctly, so add quotes: double-quote
  4040. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4041. sed -n \
  4042. "s/'/'\\\\''/g;
  4043. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4044. ;; #(
  4045. *)
  4046. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4047. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4048. ;;
  4049. esac |
  4050. sort
  4051. ) |
  4052. sed '
  4053. /^ac_cv_env_/b end
  4054. t clear
  4055. :clear
  4056. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4057. t end
  4058. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4059. :end' >>confcache
  4060. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4061. if test -w "$cache_file"; then
  4062. test "x$cache_file" != "x/dev/null" &&
  4063. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4064. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4065. cat confcache >$cache_file
  4066. else
  4067. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4068. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4069. fi
  4070. fi
  4071. rm -f confcache
  4072. # Checks for system libraries
  4073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  4074. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4075. if test "${ac_cv_lib_socket_socket+set}" = set; then :
  4076. $as_echo_n "(cached) " >&6
  4077. else
  4078. ac_check_lib_save_LIBS=$LIBS
  4079. LIBS="-lsocket $LIBS"
  4080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4081. /* end confdefs.h. */
  4082. /* Override any GCC internal prototype to avoid an error.
  4083. Use char because int might match the return type of a GCC
  4084. builtin and then its argument prototype would still apply. */
  4085. #ifdef __cplusplus
  4086. extern "C"
  4087. #endif
  4088. char socket ();
  4089. int
  4090. main ()
  4091. {
  4092. return socket ();
  4093. ;
  4094. return 0;
  4095. }
  4096. _ACEOF
  4097. if ac_fn_cxx_try_link "$LINENO"; then :
  4098. ac_cv_lib_socket_socket=yes
  4099. else
  4100. ac_cv_lib_socket_socket=no
  4101. fi
  4102. rm -f core conftest.err conftest.$ac_objext \
  4103. conftest$ac_exeext conftest.$ac_ext
  4104. LIBS=$ac_check_lib_save_LIBS
  4105. fi
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  4107. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4108. if test "x$ac_cv_lib_socket_socket" = x""yes; then :
  4109. cat >>confdefs.h <<_ACEOF
  4110. #define HAVE_LIBSOCKET 1
  4111. _ACEOF
  4112. LIBS="-lsocket $LIBS"
  4113. fi
  4114. # AC_CHECK_LIB(nsl, connect)
  4115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  4116. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  4117. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  4118. $as_echo_n "(cached) " >&6
  4119. else
  4120. ac_check_lib_save_LIBS=$LIBS
  4121. LIBS="-ldl $LIBS"
  4122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4123. /* end confdefs.h. */
  4124. /* Override any GCC internal prototype to avoid an error.
  4125. Use char because int might match the return type of a GCC
  4126. builtin and then its argument prototype would still apply. */
  4127. #ifdef __cplusplus
  4128. extern "C"
  4129. #endif
  4130. char dlopen ();
  4131. int
  4132. main ()
  4133. {
  4134. return dlopen ();
  4135. ;
  4136. return 0;
  4137. }
  4138. _ACEOF
  4139. if ac_fn_cxx_try_link "$LINENO"; then :
  4140. ac_cv_lib_dl_dlopen=yes
  4141. else
  4142. ac_cv_lib_dl_dlopen=no
  4143. fi
  4144. rm -f core conftest.err conftest.$ac_objext \
  4145. conftest$ac_exeext conftest.$ac_ext
  4146. LIBS=$ac_check_lib_save_LIBS
  4147. fi
  4148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  4149. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  4150. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  4151. cat >>confdefs.h <<_ACEOF
  4152. #define HAVE_LIBDL 1
  4153. _ACEOF
  4154. LIBS="-ldl $LIBS"
  4155. fi
  4156. # AC_CHECK_LIB(nsl, gethostbyname)
  4157. # AC_CHECK_LIB(dns, gethostbyname)
  4158. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4159. # This is needed for Tcl libraries compiled with thread support
  4160. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4161. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4162. # ac_cv_lib_pthread="-lpthread"], [dnl
  4163. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4164. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4165. # ac_cv_lib_pthread="-lpthread"], [dnl
  4166. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4167. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4168. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4169. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4170. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4171. # ac_cv_lib_pthread=""],
  4172. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4173. if test "$SUNOS" = "yes"; then
  4174. # For suns without yp
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  4176. $as_echo_n "checking for main in -ldl... " >&6; }
  4177. if test "${ac_cv_lib_dl_main+set}" = set; then :
  4178. $as_echo_n "(cached) " >&6
  4179. else
  4180. ac_check_lib_save_LIBS=$LIBS
  4181. LIBS="-ldl $LIBS"
  4182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4183. /* end confdefs.h. */
  4184. int
  4185. main ()
  4186. {
  4187. return main ();
  4188. ;
  4189. return 0;
  4190. }
  4191. _ACEOF
  4192. if ac_fn_cxx_try_link "$LINENO"; then :
  4193. ac_cv_lib_dl_main=yes
  4194. else
  4195. ac_cv_lib_dl_main=no
  4196. fi
  4197. rm -f core conftest.err conftest.$ac_objext \
  4198. conftest$ac_exeext conftest.$ac_ext
  4199. LIBS=$ac_check_lib_save_LIBS
  4200. fi
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  4202. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4203. if test "x$ac_cv_lib_dl_main" = x""yes; then :
  4204. cat >>confdefs.h <<_ACEOF
  4205. #define HAVE_LIBDL 1
  4206. _ACEOF
  4207. LIBS="-ldl $LIBS"
  4208. fi
  4209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  4210. $as_echo_n "checking for main in -lsocket... " >&6; }
  4211. if test "${ac_cv_lib_socket_main+set}" = set; then :
  4212. $as_echo_n "(cached) " >&6
  4213. else
  4214. ac_check_lib_save_LIBS=$LIBS
  4215. LIBS="-lsocket $LIBS"
  4216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4217. /* end confdefs.h. */
  4218. int
  4219. main ()
  4220. {
  4221. return main ();
  4222. ;
  4223. return 0;
  4224. }
  4225. _ACEOF
  4226. if ac_fn_cxx_try_link "$LINENO"; then :
  4227. ac_cv_lib_socket_main=yes
  4228. else
  4229. ac_cv_lib_socket_main=no
  4230. fi
  4231. rm -f core conftest.err conftest.$ac_objext \
  4232. conftest$ac_exeext conftest.$ac_ext
  4233. LIBS=$ac_check_lib_save_LIBS
  4234. fi
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  4236. $as_echo "$ac_cv_lib_socket_main" >&6; }
  4237. if test "x$ac_cv_lib_socket_main" = x""yes; then :
  4238. cat >>confdefs.h <<_ACEOF
  4239. #define HAVE_LIBSOCKET 1
  4240. _ACEOF
  4241. LIBS="-lsocket $LIBS"
  4242. fi
  4243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  4244. $as_echo_n "checking for main in -lnsl... " >&6; }
  4245. if test "${ac_cv_lib_nsl_main+set}" = set; then :
  4246. $as_echo_n "(cached) " >&6
  4247. else
  4248. ac_check_lib_save_LIBS=$LIBS
  4249. LIBS="-lnsl $LIBS"
  4250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4251. /* end confdefs.h. */
  4252. int
  4253. main ()
  4254. {
  4255. return main ();
  4256. ;
  4257. return 0;
  4258. }
  4259. _ACEOF
  4260. if ac_fn_cxx_try_link "$LINENO"; then :
  4261. ac_cv_lib_nsl_main=yes
  4262. else
  4263. ac_cv_lib_nsl_main=no
  4264. fi
  4265. rm -f core conftest.err conftest.$ac_objext \
  4266. conftest$ac_exeext conftest.$ac_ext
  4267. LIBS=$ac_check_lib_save_LIBS
  4268. fi
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  4270. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4271. if test "x$ac_cv_lib_nsl_main" = x""yes; then :
  4272. cat >>confdefs.h <<_ACEOF
  4273. #define HAVE_LIBNSL 1
  4274. _ACEOF
  4275. LIBS="-lnsl $LIBS"
  4276. fi
  4277. fi
  4278. # Checks for header files
  4279. ac_header_dirent=no
  4280. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4281. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  4283. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  4284. if eval "test \"\${$as_ac_Header+set}\"" = set; then :
  4285. $as_echo_n "(cached) " >&6
  4286. else
  4287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4288. /* end confdefs.h. */
  4289. #include <sys/types.h>
  4290. #include <$ac_hdr>
  4291. int
  4292. main ()
  4293. {
  4294. if ((DIR *) 0)
  4295. return 0;
  4296. ;
  4297. return 0;
  4298. }
  4299. _ACEOF
  4300. if ac_fn_cxx_try_compile "$LINENO"; then :
  4301. eval "$as_ac_Header=yes"
  4302. else
  4303. eval "$as_ac_Header=no"
  4304. fi
  4305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4306. fi
  4307. eval ac_res=\$$as_ac_Header
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  4309. $as_echo "$ac_res" >&6; }
  4310. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4311. cat >>confdefs.h <<_ACEOF
  4312. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4313. _ACEOF
  4314. ac_header_dirent=$ac_hdr; break
  4315. fi
  4316. done
  4317. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4318. if test $ac_header_dirent = dirent.h; then
  4319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4320. $as_echo_n "checking for library containing opendir... " >&6; }
  4321. if test "${ac_cv_search_opendir+set}" = set; then :
  4322. $as_echo_n "(cached) " >&6
  4323. else
  4324. ac_func_search_save_LIBS=$LIBS
  4325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4326. /* end confdefs.h. */
  4327. /* Override any GCC internal prototype to avoid an error.
  4328. Use char because int might match the return type of a GCC
  4329. builtin and then its argument prototype would still apply. */
  4330. #ifdef __cplusplus
  4331. extern "C"
  4332. #endif
  4333. char opendir ();
  4334. int
  4335. main ()
  4336. {
  4337. return opendir ();
  4338. ;
  4339. return 0;
  4340. }
  4341. _ACEOF
  4342. for ac_lib in '' dir; do
  4343. if test -z "$ac_lib"; then
  4344. ac_res="none required"
  4345. else
  4346. ac_res=-l$ac_lib
  4347. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4348. fi
  4349. if ac_fn_cxx_try_link "$LINENO"; then :
  4350. ac_cv_search_opendir=$ac_res
  4351. fi
  4352. rm -f core conftest.err conftest.$ac_objext \
  4353. conftest$ac_exeext
  4354. if test "${ac_cv_search_opendir+set}" = set; then :
  4355. break
  4356. fi
  4357. done
  4358. if test "${ac_cv_search_opendir+set}" = set; then :
  4359. else
  4360. ac_cv_search_opendir=no
  4361. fi
  4362. rm conftest.$ac_ext
  4363. LIBS=$ac_func_search_save_LIBS
  4364. fi
  4365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4366. $as_echo "$ac_cv_search_opendir" >&6; }
  4367. ac_res=$ac_cv_search_opendir
  4368. if test "$ac_res" != no; then :
  4369. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4370. fi
  4371. else
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4373. $as_echo_n "checking for library containing opendir... " >&6; }
  4374. if test "${ac_cv_search_opendir+set}" = set; then :
  4375. $as_echo_n "(cached) " >&6
  4376. else
  4377. ac_func_search_save_LIBS=$LIBS
  4378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4379. /* end confdefs.h. */
  4380. /* Override any GCC internal prototype to avoid an error.
  4381. Use char because int might match the return type of a GCC
  4382. builtin and then its argument prototype would still apply. */
  4383. #ifdef __cplusplus
  4384. extern "C"
  4385. #endif
  4386. char opendir ();
  4387. int
  4388. main ()
  4389. {
  4390. return opendir ();
  4391. ;
  4392. return 0;
  4393. }
  4394. _ACEOF
  4395. for ac_lib in '' x; do
  4396. if test -z "$ac_lib"; then
  4397. ac_res="none required"
  4398. else
  4399. ac_res=-l$ac_lib
  4400. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4401. fi
  4402. if ac_fn_cxx_try_link "$LINENO"; then :
  4403. ac_cv_search_opendir=$ac_res
  4404. fi
  4405. rm -f core conftest.err conftest.$ac_objext \
  4406. conftest$ac_exeext
  4407. if test "${ac_cv_search_opendir+set}" = set; then :
  4408. break
  4409. fi
  4410. done
  4411. if test "${ac_cv_search_opendir+set}" = set; then :
  4412. else
  4413. ac_cv_search_opendir=no
  4414. fi
  4415. rm conftest.$ac_ext
  4416. LIBS=$ac_func_search_save_LIBS
  4417. fi
  4418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4419. $as_echo "$ac_cv_search_opendir" >&6; }
  4420. ac_res=$ac_cv_search_opendir
  4421. if test "$ac_res" != no; then :
  4422. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4423. fi
  4424. fi
  4425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4426. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4427. if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  4428. $as_echo_n "(cached) " >&6
  4429. else
  4430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4431. /* end confdefs.h. */
  4432. #include <sys/types.h>
  4433. #include <sys/wait.h>
  4434. #ifndef WEXITSTATUS
  4435. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4436. #endif
  4437. #ifndef WIFEXITED
  4438. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4439. #endif
  4440. int
  4441. main ()
  4442. {
  4443. int s;
  4444. wait (&s);
  4445. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4446. ;
  4447. return 0;
  4448. }
  4449. _ACEOF
  4450. if ac_fn_cxx_try_compile "$LINENO"; then :
  4451. ac_cv_header_sys_wait_h=yes
  4452. else
  4453. ac_cv_header_sys_wait_h=no
  4454. fi
  4455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4456. fi
  4457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  4458. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4459. if test $ac_cv_header_sys_wait_h = yes; then
  4460. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  4461. fi
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  4463. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4464. if test "${ac_cv_header_time+set}" = set; then :
  4465. $as_echo_n "(cached) " >&6
  4466. else
  4467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4468. /* end confdefs.h. */
  4469. #include <sys/types.h>
  4470. #include <sys/time.h>
  4471. #include <time.h>
  4472. int
  4473. main ()
  4474. {
  4475. if ((struct tm *) 0)
  4476. return 0;
  4477. ;
  4478. return 0;
  4479. }
  4480. _ACEOF
  4481. if ac_fn_cxx_try_compile "$LINENO"; then :
  4482. ac_cv_header_time=yes
  4483. else
  4484. ac_cv_header_time=no
  4485. fi
  4486. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4487. fi
  4488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  4489. $as_echo "$ac_cv_header_time" >&6; }
  4490. if test $ac_cv_header_time = yes; then
  4491. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  4492. fi
  4493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  4494. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  4495. if test "${ac_cv_header_stat_broken+set}" = set; then :
  4496. $as_echo_n "(cached) " >&6
  4497. else
  4498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4499. /* end confdefs.h. */
  4500. #include <sys/types.h>
  4501. #include <sys/stat.h>
  4502. #if defined S_ISBLK && defined S_IFDIR
  4503. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  4504. #endif
  4505. #if defined S_ISBLK && defined S_IFCHR
  4506. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  4507. #endif
  4508. #if defined S_ISLNK && defined S_IFREG
  4509. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  4510. #endif
  4511. #if defined S_ISSOCK && defined S_IFREG
  4512. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  4513. #endif
  4514. _ACEOF
  4515. if ac_fn_cxx_try_compile "$LINENO"; then :
  4516. ac_cv_header_stat_broken=no
  4517. else
  4518. ac_cv_header_stat_broken=yes
  4519. fi
  4520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4521. fi
  4522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  4523. $as_echo "$ac_cv_header_stat_broken" >&6; }
  4524. if test $ac_cv_header_stat_broken = yes; then
  4525. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  4526. fi
  4527. #checkpoint
  4528. cat >confcache <<\_ACEOF
  4529. # This file is a shell script that caches the results of configure
  4530. # tests run on this system so they can be shared between configure
  4531. # scripts and configure runs, see configure's option --config-cache.
  4532. # It is not useful on other systems. If it contains results you don't
  4533. # want to keep, you may remove or edit it.
  4534. #
  4535. # config.status only pays attention to the cache file if you give it
  4536. # the --recheck option to rerun configure.
  4537. #
  4538. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4539. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4540. # following values.
  4541. _ACEOF
  4542. # The following way of writing the cache mishandles newlines in values,
  4543. # but we know of no workaround that is simple, portable, and efficient.
  4544. # So, we kill variables containing newlines.
  4545. # Ultrix sh set writes to stderr and can't be redirected directly,
  4546. # and sets the high bit in the cache file unless we assign to the vars.
  4547. (
  4548. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4549. eval ac_val=\$$ac_var
  4550. case $ac_val in #(
  4551. *${as_nl}*)
  4552. case $ac_var in #(
  4553. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4554. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4555. esac
  4556. case $ac_var in #(
  4557. _ | IFS | as_nl) ;; #(
  4558. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4559. *) { eval $ac_var=; unset $ac_var;} ;;
  4560. esac ;;
  4561. esac
  4562. done
  4563. (set) 2>&1 |
  4564. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4565. *${as_nl}ac_space=\ *)
  4566. # `set' does not quote correctly, so add quotes: double-quote
  4567. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4568. sed -n \
  4569. "s/'/'\\\\''/g;
  4570. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4571. ;; #(
  4572. *)
  4573. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4574. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4575. ;;
  4576. esac |
  4577. sort
  4578. ) |
  4579. sed '
  4580. /^ac_cv_env_/b end
  4581. t clear
  4582. :clear
  4583. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4584. t end
  4585. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4586. :end' >>confcache
  4587. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4588. if test -w "$cache_file"; then
  4589. test "x$cache_file" != "x/dev/null" &&
  4590. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4591. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4592. cat confcache >$cache_file
  4593. else
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4595. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4596. fi
  4597. fi
  4598. rm -f confcache
  4599. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4600. do :
  4601. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4602. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4603. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4604. cat >>confdefs.h <<_ACEOF
  4605. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4606. _ACEOF
  4607. fi
  4608. done
  4609. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h
  4610. do :
  4611. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4612. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4613. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4614. cat >>confdefs.h <<_ACEOF
  4615. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4616. _ACEOF
  4617. fi
  4618. done
  4619. #checkpoint
  4620. cat >confcache <<\_ACEOF
  4621. # This file is a shell script that caches the results of configure
  4622. # tests run on this system so they can be shared between configure
  4623. # scripts and configure runs, see configure's option --config-cache.
  4624. # It is not useful on other systems. If it contains results you don't
  4625. # want to keep, you may remove or edit it.
  4626. #
  4627. # config.status only pays attention to the cache file if you give it
  4628. # the --recheck option to rerun configure.
  4629. #
  4630. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4631. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4632. # following values.
  4633. _ACEOF
  4634. # The following way of writing the cache mishandles newlines in values,
  4635. # but we know of no workaround that is simple, portable, and efficient.
  4636. # So, we kill variables containing newlines.
  4637. # Ultrix sh set writes to stderr and can't be redirected directly,
  4638. # and sets the high bit in the cache file unless we assign to the vars.
  4639. (
  4640. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4641. eval ac_val=\$$ac_var
  4642. case $ac_val in #(
  4643. *${as_nl}*)
  4644. case $ac_var in #(
  4645. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4646. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4647. esac
  4648. case $ac_var in #(
  4649. _ | IFS | as_nl) ;; #(
  4650. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4651. *) { eval $ac_var=; unset $ac_var;} ;;
  4652. esac ;;
  4653. esac
  4654. done
  4655. (set) 2>&1 |
  4656. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4657. *${as_nl}ac_space=\ *)
  4658. # `set' does not quote correctly, so add quotes: double-quote
  4659. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4660. sed -n \
  4661. "s/'/'\\\\''/g;
  4662. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4663. ;; #(
  4664. *)
  4665. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4666. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4667. ;;
  4668. esac |
  4669. sort
  4670. ) |
  4671. sed '
  4672. /^ac_cv_env_/b end
  4673. t clear
  4674. :clear
  4675. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4676. t end
  4677. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4678. :end' >>confcache
  4679. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4680. if test -w "$cache_file"; then
  4681. test "x$cache_file" != "x/dev/null" &&
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4683. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4684. cat confcache >$cache_file
  4685. else
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4687. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4688. fi
  4689. fi
  4690. rm -f confcache
  4691. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  4692. #AC_CHECK_HEADERS(zlib.h)
  4693. #EGG_CHECK_ZLIB
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
  4695. $as_echo_n "checking for path to OpenSSL... " >&6; }
  4696. # Check whether --with-openssl was given.
  4697. if test "${with_openssl+set}" = set; then :
  4698. withval=$with_openssl; cf_with_openssl=$withval
  4699. else
  4700. cf_with_openssl="auto"
  4701. fi
  4702. cf_openssl_basedir=""
  4703. if test "$cf_with_openssl" != "auto"; then
  4704. cf_openssl_basedir="`echo ${cf_with_openssl} | sed 's/\/$//'`"
  4705. else
  4706. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  4707. if test -f "${dirs}/include/openssl/opensslv.h" ; then
  4708. cf_openssl_basedir="${dirs}"
  4709. break
  4710. fi
  4711. done
  4712. unset dirs
  4713. fi
  4714. if test ! -z "$cf_openssl_basedir"; then
  4715. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
  4716. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  4717. SSL_LIBS="-L${cf_openssl_basedir}/lib"
  4718. else
  4719. cf_openssl_basedir=""
  4720. fi
  4721. else
  4722. if test -f "/usr/include/openssl/opensslv.h" ; then
  4723. cf_openssl_basedir="/usr"
  4724. fi
  4725. fi
  4726. if test ! -z "$cf_openssl_basedir"; then
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
  4728. $as_echo "$cf_openssl_basedir" >&6; }
  4729. else
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  4731. $as_echo "not found" >&6; }
  4732. as_fn_error 1 "OpenSSL is required." "$LINENO" 5
  4733. fi
  4734. unset cf_openssl_basedir
  4735. save_CXX="$CXX"
  4736. CXX="$CXX $SSL_INCLUDES"
  4737. save_LIBS="$LIBS"
  4738. LIBS="$LIBS $SSL_LIBS"
  4739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
  4740. $as_echo_n "checking for OpenSSL version... " >&6; }
  4741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4742. /* end confdefs.h. */
  4743. #include <openssl/opensslv.h>
  4744. int
  4745. main ()
  4746. {
  4747. #if !defined(OPENSSL_VERSION_NUMBER)
  4748. #error "Missing openssl version"
  4749. #endif
  4750. #if (OPENSSL_VERSION_NUMBER < 0x0090800f)
  4751. #error "Old/Insecure OpenSSL version " OPENSSL_VERSION_TEXT
  4752. #endif
  4753. ;
  4754. return 0;
  4755. }
  4756. _ACEOF
  4757. if ac_fn_cxx_try_compile "$LINENO"; then :
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  4759. $as_echo "OK" >&6; }
  4760. else
  4761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old." >&5
  4762. $as_echo "too old." >&6; }
  4763. as_fn_error 1 "OpenSSL version is too old." "$LINENO" 5
  4764. fi
  4765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4766. CXX="$CXX $SSL_LIBS"
  4767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5
  4768. $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
  4769. if test "${ac_cv_lib_crypto_AES_encrypt+set}" = set; then :
  4770. $as_echo_n "(cached) " >&6
  4771. else
  4772. ac_check_lib_save_LIBS=$LIBS
  4773. LIBS="-lcrypto $LIBS"
  4774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4775. /* end confdefs.h. */
  4776. /* Override any GCC internal prototype to avoid an error.
  4777. Use char because int might match the return type of a GCC
  4778. builtin and then its argument prototype would still apply. */
  4779. #ifdef __cplusplus
  4780. extern "C"
  4781. #endif
  4782. char AES_encrypt ();
  4783. int
  4784. main ()
  4785. {
  4786. return AES_encrypt ();
  4787. ;
  4788. return 0;
  4789. }
  4790. _ACEOF
  4791. if ac_fn_cxx_try_link "$LINENO"; then :
  4792. ac_cv_lib_crypto_AES_encrypt=yes
  4793. else
  4794. ac_cv_lib_crypto_AES_encrypt=no
  4795. fi
  4796. rm -f core conftest.err conftest.$ac_objext \
  4797. conftest$ac_exeext conftest.$ac_ext
  4798. LIBS=$ac_check_lib_save_LIBS
  4799. fi
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  4801. $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  4802. if test "x$ac_cv_lib_crypto_AES_encrypt" = x""yes; then :
  4803. if test "$USE_STATIC" = "yes"; then
  4804. SSL_LIBS="$SSL_LIBS -Wl,-Bstatic -lcrypto -Wl,-Bdynamic"
  4805. else
  4806. SSL_LIBS="$SSL_LIBS -lcrypto"
  4807. fi
  4808. else
  4809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  4810. $as_echo "not found." >&6; }
  4811. as_fn_error 1 "Libcrypto/openssl is required." "$LINENO" 5
  4812. fi
  4813. CXX="$save_CXX"
  4814. LIBS="$save_LIBS"
  4815. #AC_SUBST(ZLIB)dnl
  4816. # Checks for typedefs, structures, and compiler characteristics
  4817. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  4818. if test "x$ac_cv_type_pid_t" = x""yes; then :
  4819. else
  4820. cat >>confdefs.h <<_ACEOF
  4821. #define pid_t int
  4822. _ACEOF
  4823. fi
  4824. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  4825. if test "x$ac_cv_type_size_t" = x""yes; then :
  4826. else
  4827. cat >>confdefs.h <<_ACEOF
  4828. #define size_t unsigned int
  4829. _ACEOF
  4830. fi
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  4832. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  4833. if test "${ac_cv_type_uid_t+set}" = set; then :
  4834. $as_echo_n "(cached) " >&6
  4835. else
  4836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4837. /* end confdefs.h. */
  4838. #include <sys/types.h>
  4839. _ACEOF
  4840. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4841. $EGREP "uid_t" >/dev/null 2>&1; then :
  4842. ac_cv_type_uid_t=yes
  4843. else
  4844. ac_cv_type_uid_t=no
  4845. fi
  4846. rm -f conftest*
  4847. fi
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  4849. $as_echo "$ac_cv_type_uid_t" >&6; }
  4850. if test $ac_cv_type_uid_t = no; then
  4851. $as_echo "#define uid_t int" >>confdefs.h
  4852. $as_echo "#define gid_t int" >>confdefs.h
  4853. fi
  4854. #AC_C_CONST
  4855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  4856. $as_echo_n "checking for working volatile... " >&6; }
  4857. if test "${ac_cv_c_volatile+set}" = set; then :
  4858. $as_echo_n "(cached) " >&6
  4859. else
  4860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4861. /* end confdefs.h. */
  4862. int
  4863. main ()
  4864. {
  4865. volatile int x;
  4866. int * volatile y = (int *) 0;
  4867. return !x && !y;
  4868. ;
  4869. return 0;
  4870. }
  4871. _ACEOF
  4872. if ac_fn_cxx_try_compile "$LINENO"; then :
  4873. ac_cv_c_volatile=yes
  4874. else
  4875. ac_cv_c_volatile=no
  4876. fi
  4877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4878. fi
  4879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  4880. $as_echo "$ac_cv_c_volatile" >&6; }
  4881. if test $ac_cv_c_volatile = no; then
  4882. $as_echo "#define volatile /**/" >>confdefs.h
  4883. fi
  4884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4885. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4886. if test "${ac_cv_c_bigendian+set}" = set; then :
  4887. $as_echo_n "(cached) " >&6
  4888. else
  4889. ac_cv_c_bigendian=unknown
  4890. # See if we're dealing with a universal compiler.
  4891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4892. /* end confdefs.h. */
  4893. #ifndef __APPLE_CC__
  4894. not a universal capable compiler
  4895. #endif
  4896. typedef int dummy;
  4897. _ACEOF
  4898. if ac_fn_cxx_try_compile "$LINENO"; then :
  4899. # Check for potential -arch flags. It is not universal unless
  4900. # there are at least two -arch flags with different values.
  4901. ac_arch=
  4902. ac_prev=
  4903. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4904. if test -n "$ac_prev"; then
  4905. case $ac_word in
  4906. i?86 | x86_64 | ppc | ppc64)
  4907. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4908. ac_arch=$ac_word
  4909. else
  4910. ac_cv_c_bigendian=universal
  4911. break
  4912. fi
  4913. ;;
  4914. esac
  4915. ac_prev=
  4916. elif test "x$ac_word" = "x-arch"; then
  4917. ac_prev=arch
  4918. fi
  4919. done
  4920. fi
  4921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4922. if test $ac_cv_c_bigendian = unknown; then
  4923. # See if sys/param.h defines the BYTE_ORDER macro.
  4924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4925. /* end confdefs.h. */
  4926. #include <sys/types.h>
  4927. #include <sys/param.h>
  4928. int
  4929. main ()
  4930. {
  4931. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4932. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4933. && LITTLE_ENDIAN)
  4934. bogus endian macros
  4935. #endif
  4936. ;
  4937. return 0;
  4938. }
  4939. _ACEOF
  4940. if ac_fn_cxx_try_compile "$LINENO"; then :
  4941. # It does; now see whether it defined to BIG_ENDIAN or not.
  4942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4943. /* end confdefs.h. */
  4944. #include <sys/types.h>
  4945. #include <sys/param.h>
  4946. int
  4947. main ()
  4948. {
  4949. #if BYTE_ORDER != BIG_ENDIAN
  4950. not big endian
  4951. #endif
  4952. ;
  4953. return 0;
  4954. }
  4955. _ACEOF
  4956. if ac_fn_cxx_try_compile "$LINENO"; then :
  4957. ac_cv_c_bigendian=yes
  4958. else
  4959. ac_cv_c_bigendian=no
  4960. fi
  4961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4962. fi
  4963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4964. fi
  4965. if test $ac_cv_c_bigendian = unknown; then
  4966. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4968. /* end confdefs.h. */
  4969. #include <limits.h>
  4970. int
  4971. main ()
  4972. {
  4973. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4974. bogus endian macros
  4975. #endif
  4976. ;
  4977. return 0;
  4978. }
  4979. _ACEOF
  4980. if ac_fn_cxx_try_compile "$LINENO"; then :
  4981. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4983. /* end confdefs.h. */
  4984. #include <limits.h>
  4985. int
  4986. main ()
  4987. {
  4988. #ifndef _BIG_ENDIAN
  4989. not big endian
  4990. #endif
  4991. ;
  4992. return 0;
  4993. }
  4994. _ACEOF
  4995. if ac_fn_cxx_try_compile "$LINENO"; then :
  4996. ac_cv_c_bigendian=yes
  4997. else
  4998. ac_cv_c_bigendian=no
  4999. fi
  5000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5001. fi
  5002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5003. fi
  5004. if test $ac_cv_c_bigendian = unknown; then
  5005. # Compile a test program.
  5006. if test "$cross_compiling" = yes; then :
  5007. # Try to guess by grepping values from an object file.
  5008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5009. /* end confdefs.h. */
  5010. short int ascii_mm[] =
  5011. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5012. short int ascii_ii[] =
  5013. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5014. int use_ascii (int i) {
  5015. return ascii_mm[i] + ascii_ii[i];
  5016. }
  5017. short int ebcdic_ii[] =
  5018. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5019. short int ebcdic_mm[] =
  5020. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5021. int use_ebcdic (int i) {
  5022. return ebcdic_mm[i] + ebcdic_ii[i];
  5023. }
  5024. extern int foo;
  5025. int
  5026. main ()
  5027. {
  5028. return use_ascii (foo) == use_ebcdic (foo);
  5029. ;
  5030. return 0;
  5031. }
  5032. _ACEOF
  5033. if ac_fn_cxx_try_compile "$LINENO"; then :
  5034. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  5035. ac_cv_c_bigendian=yes
  5036. fi
  5037. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5038. if test "$ac_cv_c_bigendian" = unknown; then
  5039. ac_cv_c_bigendian=no
  5040. else
  5041. # finding both strings is unlikely to happen, but who knows?
  5042. ac_cv_c_bigendian=unknown
  5043. fi
  5044. fi
  5045. fi
  5046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5047. else
  5048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5049. /* end confdefs.h. */
  5050. $ac_includes_default
  5051. int
  5052. main ()
  5053. {
  5054. /* Are we little or big endian? From Harbison&Steele. */
  5055. union
  5056. {
  5057. long int l;
  5058. char c[sizeof (long int)];
  5059. } u;
  5060. u.l = 1;
  5061. return u.c[sizeof (long int) - 1] == 1;
  5062. ;
  5063. return 0;
  5064. }
  5065. _ACEOF
  5066. if ac_fn_cxx_try_run "$LINENO"; then :
  5067. ac_cv_c_bigendian=no
  5068. else
  5069. ac_cv_c_bigendian=yes
  5070. fi
  5071. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5072. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5073. fi
  5074. fi
  5075. fi
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  5077. $as_echo "$ac_cv_c_bigendian" >&6; }
  5078. case $ac_cv_c_bigendian in #(
  5079. yes)
  5080. $as_echo "#define B_ENDIAN 1" >>confdefs.h
  5081. ;; #(
  5082. no)
  5083. $as_echo "#define L_ENDIAN 1" >>confdefs.h
  5084. ;; #(
  5085. universal)
  5086. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  5087. ;; #(
  5088. *)
  5089. as_fn_error $? "unknown endianness
  5090. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  5091. esac
  5092. #AC_C_INLINE
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  5094. $as_echo_n "checking whether char is unsigned... " >&6; }
  5095. if test "${ac_cv_c_char_unsigned+set}" = set; then :
  5096. $as_echo_n "(cached) " >&6
  5097. else
  5098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5099. /* end confdefs.h. */
  5100. $ac_includes_default
  5101. int
  5102. main ()
  5103. {
  5104. static int test_array [1 - 2 * !(((char) -1) < 0)];
  5105. test_array [0] = 0
  5106. ;
  5107. return 0;
  5108. }
  5109. _ACEOF
  5110. if ac_fn_cxx_try_compile "$LINENO"; then :
  5111. ac_cv_c_char_unsigned=no
  5112. else
  5113. ac_cv_c_char_unsigned=yes
  5114. fi
  5115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5116. fi
  5117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  5118. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  5119. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  5120. $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
  5121. fi
  5122. #AC_C_STRINGIZE
  5123. #AC_C_PROTOTYPES
  5124. #checkpoint
  5125. cat >confcache <<\_ACEOF
  5126. # This file is a shell script that caches the results of configure
  5127. # tests run on this system so they can be shared between configure
  5128. # scripts and configure runs, see configure's option --config-cache.
  5129. # It is not useful on other systems. If it contains results you don't
  5130. # want to keep, you may remove or edit it.
  5131. #
  5132. # config.status only pays attention to the cache file if you give it
  5133. # the --recheck option to rerun configure.
  5134. #
  5135. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5136. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5137. # following values.
  5138. _ACEOF
  5139. # The following way of writing the cache mishandles newlines in values,
  5140. # but we know of no workaround that is simple, portable, and efficient.
  5141. # So, we kill variables containing newlines.
  5142. # Ultrix sh set writes to stderr and can't be redirected directly,
  5143. # and sets the high bit in the cache file unless we assign to the vars.
  5144. (
  5145. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5146. eval ac_val=\$$ac_var
  5147. case $ac_val in #(
  5148. *${as_nl}*)
  5149. case $ac_var in #(
  5150. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5151. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5152. esac
  5153. case $ac_var in #(
  5154. _ | IFS | as_nl) ;; #(
  5155. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5156. *) { eval $ac_var=; unset $ac_var;} ;;
  5157. esac ;;
  5158. esac
  5159. done
  5160. (set) 2>&1 |
  5161. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5162. *${as_nl}ac_space=\ *)
  5163. # `set' does not quote correctly, so add quotes: double-quote
  5164. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5165. sed -n \
  5166. "s/'/'\\\\''/g;
  5167. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5168. ;; #(
  5169. *)
  5170. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5171. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5172. ;;
  5173. esac |
  5174. sort
  5175. ) |
  5176. sed '
  5177. /^ac_cv_env_/b end
  5178. t clear
  5179. :clear
  5180. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5181. t end
  5182. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5183. :end' >>confcache
  5184. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5185. if test -w "$cache_file"; then
  5186. test "x$cache_file" != "x/dev/null" &&
  5187. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5188. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5189. cat confcache >$cache_file
  5190. else
  5191. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5192. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5193. fi
  5194. fi
  5195. rm -f confcache
  5196. # The cast to long int works around a bug in the HP C Compiler
  5197. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5198. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5199. # This bug is HP SR number 8606223364.
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  5201. $as_echo_n "checking size of short... " >&6; }
  5202. if test "${ac_cv_sizeof_short+set}" = set; then :
  5203. $as_echo_n "(cached) " >&6
  5204. else
  5205. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  5206. else
  5207. if test "$ac_cv_type_short" = yes; then
  5208. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5209. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5210. as_fn_error 77 "cannot compute sizeof (short)
  5211. See \`config.log' for more details" "$LINENO" 5 ; }
  5212. else
  5213. ac_cv_sizeof_short=0
  5214. fi
  5215. fi
  5216. fi
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  5218. $as_echo "$ac_cv_sizeof_short" >&6; }
  5219. cat >>confdefs.h <<_ACEOF
  5220. #define SIZEOF_SHORT $ac_cv_sizeof_short
  5221. _ACEOF
  5222. # The cast to long int works around a bug in the HP C Compiler
  5223. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5224. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5225. # This bug is HP SR number 8606223364.
  5226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  5227. $as_echo_n "checking size of int... " >&6; }
  5228. if test "${ac_cv_sizeof_int+set}" = set; then :
  5229. $as_echo_n "(cached) " >&6
  5230. else
  5231. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  5232. else
  5233. if test "$ac_cv_type_int" = yes; then
  5234. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5235. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5236. as_fn_error 77 "cannot compute sizeof (int)
  5237. See \`config.log' for more details" "$LINENO" 5 ; }
  5238. else
  5239. ac_cv_sizeof_int=0
  5240. fi
  5241. fi
  5242. fi
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  5244. $as_echo "$ac_cv_sizeof_int" >&6; }
  5245. cat >>confdefs.h <<_ACEOF
  5246. #define SIZEOF_INT $ac_cv_sizeof_int
  5247. _ACEOF
  5248. # The cast to long int works around a bug in the HP C Compiler
  5249. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5250. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5251. # This bug is HP SR number 8606223364.
  5252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  5253. $as_echo_n "checking size of long... " >&6; }
  5254. if test "${ac_cv_sizeof_long+set}" = set; then :
  5255. $as_echo_n "(cached) " >&6
  5256. else
  5257. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  5258. else
  5259. if test "$ac_cv_type_long" = yes; then
  5260. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5261. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5262. as_fn_error 77 "cannot compute sizeof (long)
  5263. See \`config.log' for more details" "$LINENO" 5 ; }
  5264. else
  5265. ac_cv_sizeof_long=0
  5266. fi
  5267. fi
  5268. fi
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  5270. $as_echo "$ac_cv_sizeof_long" >&6; }
  5271. cat >>confdefs.h <<_ACEOF
  5272. #define SIZEOF_LONG $ac_cv_sizeof_long
  5273. _ACEOF
  5274. # The cast to long int works around a bug in the HP C Compiler
  5275. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5276. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5277. # This bug is HP SR number 8606223364.
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  5279. $as_echo_n "checking size of long long... " >&6; }
  5280. if test "${ac_cv_sizeof_long_long+set}" = set; then :
  5281. $as_echo_n "(cached) " >&6
  5282. else
  5283. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  5284. else
  5285. if test "$ac_cv_type_long_long" = yes; then
  5286. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5287. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5288. as_fn_error 77 "cannot compute sizeof (long long)
  5289. See \`config.log' for more details" "$LINENO" 5 ; }
  5290. else
  5291. ac_cv_sizeof_long_long=0
  5292. fi
  5293. fi
  5294. fi
  5295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  5296. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  5297. cat >>confdefs.h <<_ACEOF
  5298. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  5299. _ACEOF
  5300. # The cast to long int works around a bug in the HP C Compiler
  5301. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5302. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5303. # This bug is HP SR number 8606223364.
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  5305. $as_echo_n "checking size of size_t... " >&6; }
  5306. if test "${ac_cv_sizeof_size_t+set}" = set; then :
  5307. $as_echo_n "(cached) " >&6
  5308. else
  5309. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  5310. else
  5311. if test "$ac_cv_type_size_t" = yes; then
  5312. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5313. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5314. as_fn_error 77 "cannot compute sizeof (size_t)
  5315. See \`config.log' for more details" "$LINENO" 5 ; }
  5316. else
  5317. ac_cv_sizeof_size_t=0
  5318. fi
  5319. fi
  5320. fi
  5321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  5322. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  5323. cat >>confdefs.h <<_ACEOF
  5324. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  5325. _ACEOF
  5326. # The cast to long int works around a bug in the HP C Compiler
  5327. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5328. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5329. # This bug is HP SR number 8606223364.
  5330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5
  5331. $as_echo_n "checking size of ptrdiff_t... " >&6; }
  5332. if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then :
  5333. $as_echo_n "(cached) " >&6
  5334. else
  5335. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default"; then :
  5336. else
  5337. if test "$ac_cv_type_ptrdiff_t" = yes; then
  5338. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5339. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5340. as_fn_error 77 "cannot compute sizeof (ptrdiff_t)
  5341. See \`config.log' for more details" "$LINENO" 5 ; }
  5342. else
  5343. ac_cv_sizeof_ptrdiff_t=0
  5344. fi
  5345. fi
  5346. fi
  5347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5
  5348. $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
  5349. cat >>confdefs.h <<_ACEOF
  5350. #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
  5351. _ACEOF
  5352. # The cast to long int works around a bug in the HP C Compiler
  5353. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5354. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5355. # This bug is HP SR number 8606223364.
  5356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
  5357. $as_echo_n "checking size of time_t... " >&6; }
  5358. if test "${ac_cv_sizeof_time_t+set}" = set; then :
  5359. $as_echo_n "(cached) " >&6
  5360. else
  5361. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
  5362. else
  5363. if test "$ac_cv_type_time_t" = yes; then
  5364. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5365. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5366. as_fn_error 77 "cannot compute sizeof (time_t)
  5367. See \`config.log' for more details" "$LINENO" 5 ; }
  5368. else
  5369. ac_cv_sizeof_time_t=0
  5370. fi
  5371. fi
  5372. fi
  5373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
  5374. $as_echo "$ac_cv_sizeof_time_t" >&6; }
  5375. cat >>confdefs.h <<_ACEOF
  5376. #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
  5377. _ACEOF
  5378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  5379. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  5380. if test "${ac_cv_struct_tm+set}" = set; then :
  5381. $as_echo_n "(cached) " >&6
  5382. else
  5383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5384. /* end confdefs.h. */
  5385. #include <sys/types.h>
  5386. #include <time.h>
  5387. int
  5388. main ()
  5389. {
  5390. struct tm tm;
  5391. int *p = &tm.tm_sec;
  5392. return !p;
  5393. ;
  5394. return 0;
  5395. }
  5396. _ACEOF
  5397. if ac_fn_cxx_try_compile "$LINENO"; then :
  5398. ac_cv_struct_tm=time.h
  5399. else
  5400. ac_cv_struct_tm=sys/time.h
  5401. fi
  5402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5403. fi
  5404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  5405. $as_echo "$ac_cv_struct_tm" >&6; }
  5406. if test $ac_cv_struct_tm = sys/time.h; then
  5407. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  5408. fi
  5409. ac_fn_cxx_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  5410. #include <$ac_cv_struct_tm>
  5411. "
  5412. if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
  5413. cat >>confdefs.h <<_ACEOF
  5414. #define HAVE_STRUCT_TM_TM_ZONE 1
  5415. _ACEOF
  5416. fi
  5417. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  5418. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  5419. else
  5420. ac_fn_cxx_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  5421. "
  5422. if test "x$ac_cv_have_decl_tzname" = x""yes; then :
  5423. ac_have_decl=1
  5424. else
  5425. ac_have_decl=0
  5426. fi
  5427. cat >>confdefs.h <<_ACEOF
  5428. #define HAVE_DECL_TZNAME $ac_have_decl
  5429. _ACEOF
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  5431. $as_echo_n "checking for tzname... " >&6; }
  5432. if test "${ac_cv_var_tzname+set}" = set; then :
  5433. $as_echo_n "(cached) " >&6
  5434. else
  5435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5436. /* end confdefs.h. */
  5437. #include <time.h>
  5438. #if !HAVE_DECL_TZNAME
  5439. extern char *tzname[];
  5440. #endif
  5441. int
  5442. main ()
  5443. {
  5444. return tzname[0][0];
  5445. ;
  5446. return 0;
  5447. }
  5448. _ACEOF
  5449. if ac_fn_cxx_try_link "$LINENO"; then :
  5450. ac_cv_var_tzname=yes
  5451. else
  5452. ac_cv_var_tzname=no
  5453. fi
  5454. rm -f core conftest.err conftest.$ac_objext \
  5455. conftest$ac_exeext conftest.$ac_ext
  5456. fi
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  5458. $as_echo "$ac_cv_var_tzname" >&6; }
  5459. if test $ac_cv_var_tzname = yes; then
  5460. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  5461. fi
  5462. fi
  5463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  5464. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  5465. if test "${ac_cv_struct_tm+set}" = set; then :
  5466. $as_echo_n "(cached) " >&6
  5467. else
  5468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5469. /* end confdefs.h. */
  5470. #include <sys/types.h>
  5471. #include <time.h>
  5472. int
  5473. main ()
  5474. {
  5475. struct tm tm;
  5476. int *p = &tm.tm_sec;
  5477. return !p;
  5478. ;
  5479. return 0;
  5480. }
  5481. _ACEOF
  5482. if ac_fn_cxx_try_compile "$LINENO"; then :
  5483. ac_cv_struct_tm=time.h
  5484. else
  5485. ac_cv_struct_tm=sys/time.h
  5486. fi
  5487. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5488. fi
  5489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  5490. $as_echo "$ac_cv_struct_tm" >&6; }
  5491. if test $ac_cv_struct_tm = sys/time.h; then
  5492. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  5493. fi
  5494. # Checks for library functions
  5495. for ac_header in vfork.h
  5496. do :
  5497. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  5498. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  5499. cat >>confdefs.h <<_ACEOF
  5500. #define HAVE_VFORK_H 1
  5501. _ACEOF
  5502. fi
  5503. done
  5504. for ac_func in fork vfork
  5505. do :
  5506. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5507. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5508. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5509. cat >>confdefs.h <<_ACEOF
  5510. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5511. _ACEOF
  5512. fi
  5513. done
  5514. if test "x$ac_cv_func_fork" = xyes; then
  5515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  5516. $as_echo_n "checking for working fork... " >&6; }
  5517. if test "${ac_cv_func_fork_works+set}" = set; then :
  5518. $as_echo_n "(cached) " >&6
  5519. else
  5520. if test "$cross_compiling" = yes; then :
  5521. ac_cv_func_fork_works=cross
  5522. else
  5523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5524. /* end confdefs.h. */
  5525. $ac_includes_default
  5526. int
  5527. main ()
  5528. {
  5529. /* By Ruediger Kuhlmann. */
  5530. return fork () < 0;
  5531. ;
  5532. return 0;
  5533. }
  5534. _ACEOF
  5535. if ac_fn_cxx_try_run "$LINENO"; then :
  5536. ac_cv_func_fork_works=yes
  5537. else
  5538. ac_cv_func_fork_works=no
  5539. fi
  5540. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5541. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5542. fi
  5543. fi
  5544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  5545. $as_echo "$ac_cv_func_fork_works" >&6; }
  5546. else
  5547. ac_cv_func_fork_works=$ac_cv_func_fork
  5548. fi
  5549. if test "x$ac_cv_func_fork_works" = xcross; then
  5550. case $host in
  5551. *-*-amigaos* | *-*-msdosdjgpp*)
  5552. # Override, as these systems have only a dummy fork() stub
  5553. ac_cv_func_fork_works=no
  5554. ;;
  5555. *)
  5556. ac_cv_func_fork_works=yes
  5557. ;;
  5558. esac
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  5560. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  5561. fi
  5562. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5563. if test "x$ac_cv_func_vfork" = xyes; then
  5564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  5565. $as_echo_n "checking for working vfork... " >&6; }
  5566. if test "${ac_cv_func_vfork_works+set}" = set; then :
  5567. $as_echo_n "(cached) " >&6
  5568. else
  5569. if test "$cross_compiling" = yes; then :
  5570. ac_cv_func_vfork_works=cross
  5571. else
  5572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5573. /* end confdefs.h. */
  5574. /* Thanks to Paul Eggert for this test. */
  5575. $ac_includes_default
  5576. #include <sys/wait.h>
  5577. #ifdef HAVE_VFORK_H
  5578. # include <vfork.h>
  5579. #endif
  5580. /* On some sparc systems, changes by the child to local and incoming
  5581. argument registers are propagated back to the parent. The compiler
  5582. is told about this with #include <vfork.h>, but some compilers
  5583. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  5584. static variable whose address is put into a register that is
  5585. clobbered by the vfork. */
  5586. static void
  5587. #ifdef __cplusplus
  5588. sparc_address_test (int arg)
  5589. # else
  5590. sparc_address_test (arg) int arg;
  5591. #endif
  5592. {
  5593. static pid_t child;
  5594. if (!child) {
  5595. child = vfork ();
  5596. if (child < 0) {
  5597. perror ("vfork");
  5598. _exit(2);
  5599. }
  5600. if (!child) {
  5601. arg = getpid();
  5602. write(-1, "", 0);
  5603. _exit (arg);
  5604. }
  5605. }
  5606. }
  5607. int
  5608. main ()
  5609. {
  5610. pid_t parent = getpid ();
  5611. pid_t child;
  5612. sparc_address_test (0);
  5613. child = vfork ();
  5614. if (child == 0) {
  5615. /* Here is another test for sparc vfork register problems. This
  5616. test uses lots of local variables, at least as many local
  5617. variables as main has allocated so far including compiler
  5618. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  5619. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  5620. reuse the register of parent for one of the local variables,
  5621. since it will think that parent can't possibly be used any more
  5622. in this routine. Assigning to the local variable will thus
  5623. munge parent in the parent process. */
  5624. pid_t
  5625. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  5626. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  5627. /* Convince the compiler that p..p7 are live; otherwise, it might
  5628. use the same hardware register for all 8 local variables. */
  5629. if (p != p1 || p != p2 || p != p3 || p != p4
  5630. || p != p5 || p != p6 || p != p7)
  5631. _exit(1);
  5632. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  5633. from child file descriptors. If the child closes a descriptor
  5634. before it execs or exits, this munges the parent's descriptor
  5635. as well. Test for this by closing stdout in the child. */
  5636. _exit(close(fileno(stdout)) != 0);
  5637. } else {
  5638. int status;
  5639. struct stat st;
  5640. while (wait(&status) != child)
  5641. ;
  5642. return (
  5643. /* Was there some problem with vforking? */
  5644. child < 0
  5645. /* Did the child fail? (This shouldn't happen.) */
  5646. || status
  5647. /* Did the vfork/compiler bug occur? */
  5648. || parent != getpid()
  5649. /* Did the file descriptor bug occur? */
  5650. || fstat(fileno(stdout), &st) != 0
  5651. );
  5652. }
  5653. }
  5654. _ACEOF
  5655. if ac_fn_cxx_try_run "$LINENO"; then :
  5656. ac_cv_func_vfork_works=yes
  5657. else
  5658. ac_cv_func_vfork_works=no
  5659. fi
  5660. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5661. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5662. fi
  5663. fi
  5664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  5665. $as_echo "$ac_cv_func_vfork_works" >&6; }
  5666. fi;
  5667. if test "x$ac_cv_func_fork_works" = xcross; then
  5668. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  5670. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  5671. fi
  5672. if test "x$ac_cv_func_vfork_works" = xyes; then
  5673. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  5674. else
  5675. $as_echo "#define vfork fork" >>confdefs.h
  5676. fi
  5677. if test "x$ac_cv_func_fork_works" = xyes; then
  5678. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  5679. fi
  5680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  5681. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  5682. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  5683. $as_echo_n "(cached) " >&6
  5684. else
  5685. rm -f conftest.sym conftest.file
  5686. echo >conftest.file
  5687. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  5688. if test "$cross_compiling" = yes; then :
  5689. ac_cv_func_lstat_dereferences_slashed_symlink=no
  5690. else
  5691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5692. /* end confdefs.h. */
  5693. $ac_includes_default
  5694. int
  5695. main ()
  5696. {
  5697. struct stat sbuf;
  5698. /* Linux will dereference the symlink and fail, as required by POSIX.
  5699. That is better in the sense that it means we will not
  5700. have to compile and use the lstat wrapper. */
  5701. return lstat ("conftest.sym/", &sbuf) == 0;
  5702. ;
  5703. return 0;
  5704. }
  5705. _ACEOF
  5706. if ac_fn_cxx_try_run "$LINENO"; then :
  5707. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  5708. else
  5709. ac_cv_func_lstat_dereferences_slashed_symlink=no
  5710. fi
  5711. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5712. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5713. fi
  5714. else
  5715. # If the `ln -s' command failed, then we probably don't even
  5716. # have an lstat function.
  5717. ac_cv_func_lstat_dereferences_slashed_symlink=no
  5718. fi
  5719. rm -f conftest.sym conftest.file
  5720. fi
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  5722. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  5723. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  5724. cat >>confdefs.h <<_ACEOF
  5725. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  5726. _ACEOF
  5727. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  5728. case " $LIBOBJS " in
  5729. *" lstat.$ac_objext "* ) ;;
  5730. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  5731. ;;
  5732. esac
  5733. fi
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  5735. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  5736. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
  5737. $as_echo_n "(cached) " >&6
  5738. else
  5739. if test "$cross_compiling" = yes; then :
  5740. ac_cv_func_lstat_empty_string_bug=yes
  5741. else
  5742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5743. /* end confdefs.h. */
  5744. $ac_includes_default
  5745. int
  5746. main ()
  5747. {
  5748. struct stat sbuf;
  5749. return lstat ("", &sbuf) == 0;
  5750. ;
  5751. return 0;
  5752. }
  5753. _ACEOF
  5754. if ac_fn_cxx_try_run "$LINENO"; then :
  5755. ac_cv_func_lstat_empty_string_bug=no
  5756. else
  5757. ac_cv_func_lstat_empty_string_bug=yes
  5758. fi
  5759. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5760. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5761. fi
  5762. fi
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  5764. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  5765. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  5766. case " $LIBOBJS " in
  5767. *" lstat.$ac_objext "* ) ;;
  5768. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  5769. ;;
  5770. esac
  5771. cat >>confdefs.h <<_ACEOF
  5772. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  5773. _ACEOF
  5774. fi
  5775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  5776. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  5777. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  5778. $as_echo_n "(cached) " >&6
  5779. else
  5780. rm -f conftest.sym conftest.file
  5781. echo >conftest.file
  5782. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  5783. if test "$cross_compiling" = yes; then :
  5784. ac_cv_func_lstat_dereferences_slashed_symlink=no
  5785. else
  5786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5787. /* end confdefs.h. */
  5788. $ac_includes_default
  5789. int
  5790. main ()
  5791. {
  5792. struct stat sbuf;
  5793. /* Linux will dereference the symlink and fail, as required by POSIX.
  5794. That is better in the sense that it means we will not
  5795. have to compile and use the lstat wrapper. */
  5796. return lstat ("conftest.sym/", &sbuf) == 0;
  5797. ;
  5798. return 0;
  5799. }
  5800. _ACEOF
  5801. if ac_fn_cxx_try_run "$LINENO"; then :
  5802. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  5803. else
  5804. ac_cv_func_lstat_dereferences_slashed_symlink=no
  5805. fi
  5806. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5807. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5808. fi
  5809. else
  5810. # If the `ln -s' command failed, then we probably don't even
  5811. # have an lstat function.
  5812. ac_cv_func_lstat_dereferences_slashed_symlink=no
  5813. fi
  5814. rm -f conftest.sym conftest.file
  5815. fi
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  5817. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  5818. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  5819. cat >>confdefs.h <<_ACEOF
  5820. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  5821. _ACEOF
  5822. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  5823. case " $LIBOBJS " in
  5824. *" lstat.$ac_objext "* ) ;;
  5825. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  5826. ;;
  5827. esac
  5828. fi
  5829. for ac_header in stdlib.h
  5830. do :
  5831. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  5832. if test "x$ac_cv_header_stdlib_h" = x""yes; then :
  5833. cat >>confdefs.h <<_ACEOF
  5834. #define HAVE_STDLIB_H 1
  5835. _ACEOF
  5836. fi
  5837. done
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  5839. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  5840. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
  5841. $as_echo_n "(cached) " >&6
  5842. else
  5843. if test "$cross_compiling" = yes; then :
  5844. ac_cv_func_malloc_0_nonnull=no
  5845. else
  5846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5847. /* end confdefs.h. */
  5848. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  5849. # include <stdlib.h>
  5850. #else
  5851. char *malloc ();
  5852. #endif
  5853. int
  5854. main ()
  5855. {
  5856. return ! malloc (0);
  5857. ;
  5858. return 0;
  5859. }
  5860. _ACEOF
  5861. if ac_fn_cxx_try_run "$LINENO"; then :
  5862. ac_cv_func_malloc_0_nonnull=yes
  5863. else
  5864. ac_cv_func_malloc_0_nonnull=no
  5865. fi
  5866. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5867. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5868. fi
  5869. fi
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  5871. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  5872. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  5873. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  5874. else
  5875. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  5876. case " $LIBOBJS " in
  5877. *" malloc.$ac_objext "* ) ;;
  5878. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  5879. ;;
  5880. esac
  5881. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  5882. fi
  5883. for ac_header in $ac_header_list
  5884. do :
  5885. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5886. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5887. "
  5888. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5889. cat >>confdefs.h <<_ACEOF
  5890. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5891. _ACEOF
  5892. fi
  5893. done
  5894. for ac_func in $ac_func_list
  5895. do :
  5896. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5897. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5898. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5899. cat >>confdefs.h <<_ACEOF
  5900. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5901. _ACEOF
  5902. fi
  5903. done
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  5905. $as_echo_n "checking for working mktime... " >&6; }
  5906. if test "${ac_cv_func_working_mktime+set}" = set; then :
  5907. $as_echo_n "(cached) " >&6
  5908. else
  5909. if test "$cross_compiling" = yes; then :
  5910. ac_cv_func_working_mktime=no
  5911. else
  5912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5913. /* end confdefs.h. */
  5914. /* Test program from Paul Eggert and Tony Leneis. */
  5915. #ifdef TIME_WITH_SYS_TIME
  5916. # include <sys/time.h>
  5917. # include <time.h>
  5918. #else
  5919. # ifdef HAVE_SYS_TIME_H
  5920. # include <sys/time.h>
  5921. # else
  5922. # include <time.h>
  5923. # endif
  5924. #endif
  5925. #include <limits.h>
  5926. #include <stdlib.h>
  5927. #ifdef HAVE_UNISTD_H
  5928. # include <unistd.h>
  5929. #endif
  5930. #ifndef HAVE_ALARM
  5931. # define alarm(X) /* empty */
  5932. #endif
  5933. /* Work around redefinition to rpl_putenv by other config tests. */
  5934. #undef putenv
  5935. static time_t time_t_max;
  5936. static time_t time_t_min;
  5937. /* Values we'll use to set the TZ environment variable. */
  5938. static const char *tz_strings[] = {
  5939. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  5940. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  5941. };
  5942. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  5943. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  5944. Based on a problem report from Andreas Jaeger. */
  5945. static int
  5946. spring_forward_gap ()
  5947. {
  5948. /* glibc (up to about 1998-10-07) failed this test. */
  5949. struct tm tm;
  5950. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  5951. instead of "TZ=America/Vancouver" in order to detect the bug even
  5952. on systems that don't support the Olson extension, or don't have the
  5953. full zoneinfo tables installed. */
  5954. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  5955. tm.tm_year = 98;
  5956. tm.tm_mon = 3;
  5957. tm.tm_mday = 5;
  5958. tm.tm_hour = 2;
  5959. tm.tm_min = 0;
  5960. tm.tm_sec = 0;
  5961. tm.tm_isdst = -1;
  5962. return mktime (&tm) != (time_t) -1;
  5963. }
  5964. static int
  5965. mktime_test1 (time_t now)
  5966. {
  5967. struct tm *lt;
  5968. return ! (lt = localtime (&now)) || mktime (lt) == now;
  5969. }
  5970. static int
  5971. mktime_test (time_t now)
  5972. {
  5973. return (mktime_test1 (now)
  5974. && mktime_test1 ((time_t) (time_t_max - now))
  5975. && mktime_test1 ((time_t) (time_t_min + now)));
  5976. }
  5977. static int
  5978. irix_6_4_bug ()
  5979. {
  5980. /* Based on code from Ariel Faigon. */
  5981. struct tm tm;
  5982. tm.tm_year = 96;
  5983. tm.tm_mon = 3;
  5984. tm.tm_mday = 0;
  5985. tm.tm_hour = 0;
  5986. tm.tm_min = 0;
  5987. tm.tm_sec = 0;
  5988. tm.tm_isdst = -1;
  5989. mktime (&tm);
  5990. return tm.tm_mon == 2 && tm.tm_mday == 31;
  5991. }
  5992. static int
  5993. bigtime_test (int j)
  5994. {
  5995. struct tm tm;
  5996. time_t now;
  5997. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  5998. now = mktime (&tm);
  5999. if (now != (time_t) -1)
  6000. {
  6001. struct tm *lt = localtime (&now);
  6002. if (! (lt
  6003. && lt->tm_year == tm.tm_year
  6004. && lt->tm_mon == tm.tm_mon
  6005. && lt->tm_mday == tm.tm_mday
  6006. && lt->tm_hour == tm.tm_hour
  6007. && lt->tm_min == tm.tm_min
  6008. && lt->tm_sec == tm.tm_sec
  6009. && lt->tm_yday == tm.tm_yday
  6010. && lt->tm_wday == tm.tm_wday
  6011. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  6012. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  6013. return 0;
  6014. }
  6015. return 1;
  6016. }
  6017. static int
  6018. year_2050_test ()
  6019. {
  6020. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  6021. ignoring leap seconds. */
  6022. unsigned long int answer = 2527315200UL;
  6023. struct tm tm;
  6024. time_t t;
  6025. tm.tm_year = 2050 - 1900;
  6026. tm.tm_mon = 2 - 1;
  6027. tm.tm_mday = 1;
  6028. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  6029. tm.tm_isdst = -1;
  6030. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  6031. instead of "TZ=America/Vancouver" in order to detect the bug even
  6032. on systems that don't support the Olson extension, or don't have the
  6033. full zoneinfo tables installed. */
  6034. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  6035. t = mktime (&tm);
  6036. /* Check that the result is either a failure, or close enough
  6037. to the correct answer that we can assume the discrepancy is
  6038. due to leap seconds. */
  6039. return (t == (time_t) -1
  6040. || (0 < t && answer - 120 <= t && t <= answer + 120));
  6041. }
  6042. int
  6043. main ()
  6044. {
  6045. time_t t, delta;
  6046. int i, j;
  6047. /* This test makes some buggy mktime implementations loop.
  6048. Give up after 60 seconds; a mktime slower than that
  6049. isn't worth using anyway. */
  6050. alarm (60);
  6051. for (;;)
  6052. {
  6053. t = (time_t_max << 1) + 1;
  6054. if (t <= time_t_max)
  6055. break;
  6056. time_t_max = t;
  6057. }
  6058. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  6059. delta = time_t_max / 997; /* a suitable prime number */
  6060. for (i = 0; i < N_STRINGS; i++)
  6061. {
  6062. if (tz_strings[i])
  6063. putenv ((char*) tz_strings[i]);
  6064. for (t = 0; t <= time_t_max - delta; t += delta)
  6065. if (! mktime_test (t))
  6066. return 1;
  6067. if (! (mktime_test ((time_t) 1)
  6068. && mktime_test ((time_t) (60 * 60))
  6069. && mktime_test ((time_t) (60 * 60 * 24))))
  6070. return 1;
  6071. for (j = 1; ; j <<= 1)
  6072. if (! bigtime_test (j))
  6073. return 1;
  6074. else if (INT_MAX / 2 < j)
  6075. break;
  6076. if (! bigtime_test (INT_MAX))
  6077. return 1;
  6078. }
  6079. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  6080. }
  6081. _ACEOF
  6082. if ac_fn_cxx_try_run "$LINENO"; then :
  6083. ac_cv_func_working_mktime=yes
  6084. else
  6085. ac_cv_func_working_mktime=no
  6086. fi
  6087. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6088. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6089. fi
  6090. fi
  6091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  6092. $as_echo "$ac_cv_func_working_mktime" >&6; }
  6093. if test $ac_cv_func_working_mktime = no; then
  6094. case " $LIBOBJS " in
  6095. *" mktime.$ac_objext "* ) ;;
  6096. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  6097. ;;
  6098. esac
  6099. fi
  6100. for ac_func in getpagesize
  6101. do :
  6102. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  6103. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  6104. cat >>confdefs.h <<_ACEOF
  6105. #define HAVE_GETPAGESIZE 1
  6106. _ACEOF
  6107. fi
  6108. done
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  6110. $as_echo_n "checking for working mmap... " >&6; }
  6111. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  6112. $as_echo_n "(cached) " >&6
  6113. else
  6114. if test "$cross_compiling" = yes; then :
  6115. ac_cv_func_mmap_fixed_mapped=no
  6116. else
  6117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6118. /* end confdefs.h. */
  6119. $ac_includes_default
  6120. /* malloc might have been renamed as rpl_malloc. */
  6121. #undef malloc
  6122. /* Thanks to Mike Haertel and Jim Avera for this test.
  6123. Here is a matrix of mmap possibilities:
  6124. mmap private not fixed
  6125. mmap private fixed at somewhere currently unmapped
  6126. mmap private fixed at somewhere already mapped
  6127. mmap shared not fixed
  6128. mmap shared fixed at somewhere currently unmapped
  6129. mmap shared fixed at somewhere already mapped
  6130. For private mappings, we should verify that changes cannot be read()
  6131. back from the file, nor mmap's back from the file at a different
  6132. address. (There have been systems where private was not correctly
  6133. implemented like the infamous i386 svr4.0, and systems where the
  6134. VM page cache was not coherent with the file system buffer cache
  6135. like early versions of FreeBSD and possibly contemporary NetBSD.)
  6136. For shared mappings, we should conversely verify that changes get
  6137. propagated back to all the places they're supposed to be.
  6138. Grep wants private fixed already mapped.
  6139. The main things grep needs to know about mmap are:
  6140. * does it exist and is it safe to write into the mmap'd area
  6141. * how to use it (BSD variants) */
  6142. #include <fcntl.h>
  6143. #include <sys/mman.h>
  6144. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  6145. char *malloc ();
  6146. #endif
  6147. /* This mess was copied from the GNU getpagesize.h. */
  6148. #ifndef HAVE_GETPAGESIZE
  6149. # ifdef _SC_PAGESIZE
  6150. # define getpagesize() sysconf(_SC_PAGESIZE)
  6151. # else /* no _SC_PAGESIZE */
  6152. # ifdef HAVE_SYS_PARAM_H
  6153. # include <sys/param.h>
  6154. # ifdef EXEC_PAGESIZE
  6155. # define getpagesize() EXEC_PAGESIZE
  6156. # else /* no EXEC_PAGESIZE */
  6157. # ifdef NBPG
  6158. # define getpagesize() NBPG * CLSIZE
  6159. # ifndef CLSIZE
  6160. # define CLSIZE 1
  6161. # endif /* no CLSIZE */
  6162. # else /* no NBPG */
  6163. # ifdef NBPC
  6164. # define getpagesize() NBPC
  6165. # else /* no NBPC */
  6166. # ifdef PAGESIZE
  6167. # define getpagesize() PAGESIZE
  6168. # endif /* PAGESIZE */
  6169. # endif /* no NBPC */
  6170. # endif /* no NBPG */
  6171. # endif /* no EXEC_PAGESIZE */
  6172. # else /* no HAVE_SYS_PARAM_H */
  6173. # define getpagesize() 8192 /* punt totally */
  6174. # endif /* no HAVE_SYS_PARAM_H */
  6175. # endif /* no _SC_PAGESIZE */
  6176. #endif /* no HAVE_GETPAGESIZE */
  6177. int
  6178. main ()
  6179. {
  6180. char *data, *data2, *data3;
  6181. const char *cdata2;
  6182. int i, pagesize;
  6183. int fd, fd2;
  6184. pagesize = getpagesize ();
  6185. /* First, make a file with some known garbage in it. */
  6186. data = (char *) malloc (pagesize);
  6187. if (!data)
  6188. return 1;
  6189. for (i = 0; i < pagesize; ++i)
  6190. *(data + i) = rand ();
  6191. umask (0);
  6192. fd = creat ("conftest.mmap", 0600);
  6193. if (fd < 0)
  6194. return 2;
  6195. if (write (fd, data, pagesize) != pagesize)
  6196. return 3;
  6197. close (fd);
  6198. /* Next, check that the tail of a page is zero-filled. File must have
  6199. non-zero length, otherwise we risk SIGBUS for entire page. */
  6200. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  6201. if (fd2 < 0)
  6202. return 4;
  6203. cdata2 = "";
  6204. if (write (fd2, cdata2, 1) != 1)
  6205. return 5;
  6206. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  6207. if (data2 == MAP_FAILED)
  6208. return 6;
  6209. for (i = 0; i < pagesize; ++i)
  6210. if (*(data2 + i))
  6211. return 7;
  6212. close (fd2);
  6213. if (munmap (data2, pagesize))
  6214. return 8;
  6215. /* Next, try to mmap the file at a fixed address which already has
  6216. something else allocated at it. If we can, also make sure that
  6217. we see the same garbage. */
  6218. fd = open ("conftest.mmap", O_RDWR);
  6219. if (fd < 0)
  6220. return 9;
  6221. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  6222. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  6223. return 10;
  6224. for (i = 0; i < pagesize; ++i)
  6225. if (*(data + i) != *(data2 + i))
  6226. return 11;
  6227. /* Finally, make sure that changes to the mapped area do not
  6228. percolate back to the file as seen by read(). (This is a bug on
  6229. some variants of i386 svr4.0.) */
  6230. for (i = 0; i < pagesize; ++i)
  6231. *(data2 + i) = *(data2 + i) + 1;
  6232. data3 = (char *) malloc (pagesize);
  6233. if (!data3)
  6234. return 12;
  6235. if (read (fd, data3, pagesize) != pagesize)
  6236. return 13;
  6237. for (i = 0; i < pagesize; ++i)
  6238. if (*(data + i) != *(data3 + i))
  6239. return 14;
  6240. close (fd);
  6241. return 0;
  6242. }
  6243. _ACEOF
  6244. if ac_fn_cxx_try_run "$LINENO"; then :
  6245. ac_cv_func_mmap_fixed_mapped=yes
  6246. else
  6247. ac_cv_func_mmap_fixed_mapped=no
  6248. fi
  6249. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6250. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6251. fi
  6252. fi
  6253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  6254. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  6255. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  6256. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  6257. fi
  6258. rm -f conftest.mmap conftest.txt
  6259. for ac_header in stdlib.h
  6260. do :
  6261. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  6262. if test "x$ac_cv_header_stdlib_h" = x""yes; then :
  6263. cat >>confdefs.h <<_ACEOF
  6264. #define HAVE_STDLIB_H 1
  6265. _ACEOF
  6266. fi
  6267. done
  6268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  6269. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  6270. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
  6271. $as_echo_n "(cached) " >&6
  6272. else
  6273. if test "$cross_compiling" = yes; then :
  6274. ac_cv_func_realloc_0_nonnull=no
  6275. else
  6276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6277. /* end confdefs.h. */
  6278. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  6279. # include <stdlib.h>
  6280. #else
  6281. char *realloc ();
  6282. #endif
  6283. int
  6284. main ()
  6285. {
  6286. return ! realloc (0, 0);
  6287. ;
  6288. return 0;
  6289. }
  6290. _ACEOF
  6291. if ac_fn_cxx_try_run "$LINENO"; then :
  6292. ac_cv_func_realloc_0_nonnull=yes
  6293. else
  6294. ac_cv_func_realloc_0_nonnull=no
  6295. fi
  6296. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6297. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6298. fi
  6299. fi
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  6301. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  6302. if test $ac_cv_func_realloc_0_nonnull = yes; then :
  6303. $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
  6304. else
  6305. $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
  6306. case " $LIBOBJS " in
  6307. *" realloc.$ac_objext "* ) ;;
  6308. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  6309. ;;
  6310. esac
  6311. $as_echo "#define realloc rpl_realloc" >>confdefs.h
  6312. fi
  6313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  6314. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  6315. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  6316. $as_echo_n "(cached) " >&6
  6317. else
  6318. if test "$cross_compiling" = yes; then :
  6319. ac_cv_func_stat_empty_string_bug=yes
  6320. else
  6321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6322. /* end confdefs.h. */
  6323. $ac_includes_default
  6324. int
  6325. main ()
  6326. {
  6327. struct stat sbuf;
  6328. return stat ("", &sbuf) == 0;
  6329. ;
  6330. return 0;
  6331. }
  6332. _ACEOF
  6333. if ac_fn_cxx_try_run "$LINENO"; then :
  6334. ac_cv_func_stat_empty_string_bug=no
  6335. else
  6336. ac_cv_func_stat_empty_string_bug=yes
  6337. fi
  6338. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6339. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6340. fi
  6341. fi
  6342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  6343. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  6344. if test $ac_cv_func_stat_empty_string_bug = yes; then
  6345. case " $LIBOBJS " in
  6346. *" stat.$ac_objext "* ) ;;
  6347. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  6348. ;;
  6349. esac
  6350. cat >>confdefs.h <<_ACEOF
  6351. #define HAVE_STAT_EMPTY_STRING_BUG 1
  6352. _ACEOF
  6353. fi
  6354. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
  6355. #include <sys/time.h>
  6356. #include <time.h>
  6357. "
  6358. if test "x$ac_cv_type_struct_timespec" = x""yes; then :
  6359. $as_echo "#define HAVE_TIMESPEC 1" >>confdefs.h
  6360. fi
  6361. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  6362. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
  6363. if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
  6364. $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
  6365. else
  6366. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
  6367. if test "x$ac_cv_member_struct_stat_st_mtimespec" = x""yes; then :
  6368. $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
  6369. fi
  6370. fi
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-parameter timespecsub" >&5
  6372. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  6373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6374. /* end confdefs.h. */
  6375. #include <sys/types.h>
  6376. #include <sys/time.h>
  6377. int
  6378. main ()
  6379. {
  6380. struct timespec ts1, ts2;
  6381. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  6382. #ifndef timespecsub
  6383. #error missing timespecsub
  6384. #endif
  6385. timespecsub(&ts1, &ts2);
  6386. ;
  6387. return 0;
  6388. }
  6389. _ACEOF
  6390. if ac_fn_cxx_try_compile "$LINENO"; then :
  6391. $as_echo "#define HAVE_TIMESPECSUB2 1" >>confdefs.h
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6393. $as_echo "yes" >&6; }
  6394. else
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6396. $as_echo "no" >&6; }
  6397. fi
  6398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6399. fi
  6400. for ac_func in strftime
  6401. do :
  6402. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  6403. if test "x$ac_cv_func_strftime" = x""yes; then :
  6404. cat >>confdefs.h <<_ACEOF
  6405. #define HAVE_STRFTIME 1
  6406. _ACEOF
  6407. else
  6408. # strftime is in -lintl on SCO UNIX.
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  6410. $as_echo_n "checking for strftime in -lintl... " >&6; }
  6411. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  6412. $as_echo_n "(cached) " >&6
  6413. else
  6414. ac_check_lib_save_LIBS=$LIBS
  6415. LIBS="-lintl $LIBS"
  6416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6417. /* end confdefs.h. */
  6418. /* Override any GCC internal prototype to avoid an error.
  6419. Use char because int might match the return type of a GCC
  6420. builtin and then its argument prototype would still apply. */
  6421. #ifdef __cplusplus
  6422. extern "C"
  6423. #endif
  6424. char strftime ();
  6425. int
  6426. main ()
  6427. {
  6428. return strftime ();
  6429. ;
  6430. return 0;
  6431. }
  6432. _ACEOF
  6433. if ac_fn_cxx_try_link "$LINENO"; then :
  6434. ac_cv_lib_intl_strftime=yes
  6435. else
  6436. ac_cv_lib_intl_strftime=no
  6437. fi
  6438. rm -f core conftest.err conftest.$ac_objext \
  6439. conftest$ac_exeext conftest.$ac_ext
  6440. LIBS=$ac_check_lib_save_LIBS
  6441. fi
  6442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  6443. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  6444. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  6445. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  6446. LIBS="-lintl $LIBS"
  6447. fi
  6448. fi
  6449. done
  6450. #checkpoint
  6451. cat >confcache <<\_ACEOF
  6452. # This file is a shell script that caches the results of configure
  6453. # tests run on this system so they can be shared between configure
  6454. # scripts and configure runs, see configure's option --config-cache.
  6455. # It is not useful on other systems. If it contains results you don't
  6456. # want to keep, you may remove or edit it.
  6457. #
  6458. # config.status only pays attention to the cache file if you give it
  6459. # the --recheck option to rerun configure.
  6460. #
  6461. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6462. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6463. # following values.
  6464. _ACEOF
  6465. # The following way of writing the cache mishandles newlines in values,
  6466. # but we know of no workaround that is simple, portable, and efficient.
  6467. # So, we kill variables containing newlines.
  6468. # Ultrix sh set writes to stderr and can't be redirected directly,
  6469. # and sets the high bit in the cache file unless we assign to the vars.
  6470. (
  6471. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6472. eval ac_val=\$$ac_var
  6473. case $ac_val in #(
  6474. *${as_nl}*)
  6475. case $ac_var in #(
  6476. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6477. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6478. esac
  6479. case $ac_var in #(
  6480. _ | IFS | as_nl) ;; #(
  6481. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6482. *) { eval $ac_var=; unset $ac_var;} ;;
  6483. esac ;;
  6484. esac
  6485. done
  6486. (set) 2>&1 |
  6487. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6488. *${as_nl}ac_space=\ *)
  6489. # `set' does not quote correctly, so add quotes: double-quote
  6490. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6491. sed -n \
  6492. "s/'/'\\\\''/g;
  6493. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6494. ;; #(
  6495. *)
  6496. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6497. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6498. ;;
  6499. esac |
  6500. sort
  6501. ) |
  6502. sed '
  6503. /^ac_cv_env_/b end
  6504. t clear
  6505. :clear
  6506. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6507. t end
  6508. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6509. :end' >>confcache
  6510. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6511. if test -w "$cache_file"; then
  6512. test "x$cache_file" != "x/dev/null" &&
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6514. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6515. cat confcache >$cache_file
  6516. else
  6517. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6518. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6519. fi
  6520. fi
  6521. rm -f confcache
  6522. for ac_func in clock fsync getrusage isascii getpassphrase
  6523. do :
  6524. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6525. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6526. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6527. cat >>confdefs.h <<_ACEOF
  6528. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6529. _ACEOF
  6530. fi
  6531. done
  6532. for ac_func in memcpy memset random rename snprintf srandom gettime
  6533. do :
  6534. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6535. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6536. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6537. cat >>confdefs.h <<_ACEOF
  6538. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6539. _ACEOF
  6540. fi
  6541. done
  6542. #checkpoint
  6543. cat >confcache <<\_ACEOF
  6544. # This file is a shell script that caches the results of configure
  6545. # tests run on this system so they can be shared between configure
  6546. # scripts and configure runs, see configure's option --config-cache.
  6547. # It is not useful on other systems. If it contains results you don't
  6548. # want to keep, you may remove or edit it.
  6549. #
  6550. # config.status only pays attention to the cache file if you give it
  6551. # the --recheck option to rerun configure.
  6552. #
  6553. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6554. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6555. # following values.
  6556. _ACEOF
  6557. # The following way of writing the cache mishandles newlines in values,
  6558. # but we know of no workaround that is simple, portable, and efficient.
  6559. # So, we kill variables containing newlines.
  6560. # Ultrix sh set writes to stderr and can't be redirected directly,
  6561. # and sets the high bit in the cache file unless we assign to the vars.
  6562. (
  6563. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6564. eval ac_val=\$$ac_var
  6565. case $ac_val in #(
  6566. *${as_nl}*)
  6567. case $ac_var in #(
  6568. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6569. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6570. esac
  6571. case $ac_var in #(
  6572. _ | IFS | as_nl) ;; #(
  6573. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6574. *) { eval $ac_var=; unset $ac_var;} ;;
  6575. esac ;;
  6576. esac
  6577. done
  6578. (set) 2>&1 |
  6579. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6580. *${as_nl}ac_space=\ *)
  6581. # `set' does not quote correctly, so add quotes: double-quote
  6582. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6583. sed -n \
  6584. "s/'/'\\\\''/g;
  6585. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6586. ;; #(
  6587. *)
  6588. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6589. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6590. ;;
  6591. esac |
  6592. sort
  6593. ) |
  6594. sed '
  6595. /^ac_cv_env_/b end
  6596. t clear
  6597. :clear
  6598. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6599. t end
  6600. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6601. :end' >>confcache
  6602. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6603. if test -w "$cache_file"; then
  6604. test "x$cache_file" != "x/dev/null" &&
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6606. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6607. cat confcache >$cache_file
  6608. else
  6609. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6610. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6611. fi
  6612. fi
  6613. rm -f confcache
  6614. for ac_func in strcasecmp strncasecmp vsnprintf
  6615. do :
  6616. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6617. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6618. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6619. cat >>confdefs.h <<_ACEOF
  6620. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6621. _ACEOF
  6622. fi
  6623. done
  6624. #autoscan suggested this....
  6625. #These are recommended by autoscan, but no code supports it currently
  6626. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  6627. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  6628. for ac_func in vsprintf
  6629. do :
  6630. ac_fn_cxx_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
  6631. if test "x$ac_cv_func_vsprintf" = x""yes; then :
  6632. cat >>confdefs.h <<_ACEOF
  6633. #define HAVE_VSPRINTF 1
  6634. _ACEOF
  6635. fi
  6636. done
  6637. if test "$ac_cv_func_vsprintf" = "no"
  6638. then
  6639. cat << 'EOF' >&2
  6640. configure: error:
  6641. Your system does not have the sprintf/vsprintf libraries.
  6642. These are required to compile almost anything. Sorry.
  6643. EOF
  6644. exit 1
  6645. fi
  6646. for ac_func in uname
  6647. do :
  6648. ac_fn_cxx_check_func "$LINENO" "uname" "ac_cv_func_uname"
  6649. if test "x$ac_cv_func_uname" = x""yes; then :
  6650. cat >>confdefs.h <<_ACEOF
  6651. #define HAVE_UNAME 1
  6652. _ACEOF
  6653. fi
  6654. done
  6655. if test "$ac_cv_func_uname" = "no"
  6656. then
  6657. cat << 'EOF' >&2
  6658. configure: error:
  6659. Your system does not have the uname() function.
  6660. This is required for the botpack.
  6661. EOF
  6662. exit 1
  6663. fi
  6664. # Make sure we have stdc headers, since we can't compile without them
  6665. if test "$ac_cv_header_stdc" = "no"
  6666. then
  6667. cat << 'EOF' >&2
  6668. configure: error:
  6669. Your system must support ANSI C Header files.
  6670. These are required for the language support. Sorry.
  6671. EOF
  6672. exit 1
  6673. fi
  6674. #checkpoint
  6675. cat >confcache <<\_ACEOF
  6676. # This file is a shell script that caches the results of configure
  6677. # tests run on this system so they can be shared between configure
  6678. # scripts and configure runs, see configure's option --config-cache.
  6679. # It is not useful on other systems. If it contains results you don't
  6680. # want to keep, you may remove or edit it.
  6681. #
  6682. # config.status only pays attention to the cache file if you give it
  6683. # the --recheck option to rerun configure.
  6684. #
  6685. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6686. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6687. # following values.
  6688. _ACEOF
  6689. # The following way of writing the cache mishandles newlines in values,
  6690. # but we know of no workaround that is simple, portable, and efficient.
  6691. # So, we kill variables containing newlines.
  6692. # Ultrix sh set writes to stderr and can't be redirected directly,
  6693. # and sets the high bit in the cache file unless we assign to the vars.
  6694. (
  6695. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6696. eval ac_val=\$$ac_var
  6697. case $ac_val in #(
  6698. *${as_nl}*)
  6699. case $ac_var in #(
  6700. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6701. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6702. esac
  6703. case $ac_var in #(
  6704. _ | IFS | as_nl) ;; #(
  6705. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6706. *) { eval $ac_var=; unset $ac_var;} ;;
  6707. esac ;;
  6708. esac
  6709. done
  6710. (set) 2>&1 |
  6711. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6712. *${as_nl}ac_space=\ *)
  6713. # `set' does not quote correctly, so add quotes: double-quote
  6714. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6715. sed -n \
  6716. "s/'/'\\\\''/g;
  6717. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6718. ;; #(
  6719. *)
  6720. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6721. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6722. ;;
  6723. esac |
  6724. sort
  6725. ) |
  6726. sed '
  6727. /^ac_cv_env_/b end
  6728. t clear
  6729. :clear
  6730. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6731. t end
  6732. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6733. :end' >>confcache
  6734. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6735. if test -w "$cache_file"; then
  6736. test "x$cache_file" != "x/dev/null" &&
  6737. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6738. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6739. cat confcache >$cache_file
  6740. else
  6741. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6742. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6743. fi
  6744. fi
  6745. rm -f confcache
  6746. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  6747. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  6748. cat >>confdefs.h <<_ACEOF
  6749. #define EGG_VERSION $version_num
  6750. _ACEOF
  6751. #FIND_WRAPS
  6752. case "$srcdir" in
  6753. [\\/]* | ?:[\\/]*)
  6754. MOD_UPDIR=""
  6755. ;;
  6756. *)
  6757. MOD_UPDIR="../"
  6758. ;;
  6759. esac
  6760. 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"
  6761. for mf in $files; do
  6762. # Strip MF so we end up with the name of the file.
  6763. # echo "MF: $mf"
  6764. mf=`echo "$mf" | sed -e 's/:.*$//'`
  6765. dirpart=`$as_dirname -- "$mf" ||
  6766. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6767. X"$mf" : 'X\(//\)[^/]' \| \
  6768. X"$mf" : 'X\(//\)$' \| \
  6769. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  6770. $as_echo X"$mf" |
  6771. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6772. s//\1/
  6773. q
  6774. }
  6775. /^X\(\/\/\)[^/].*/{
  6776. s//\1/
  6777. q
  6778. }
  6779. /^X\(\/\/\)$/{
  6780. s//\1/
  6781. q
  6782. }
  6783. /^X\(\/\).*/{
  6784. s//\1/
  6785. q
  6786. }
  6787. s/.*/./; q'`
  6788. # echo "dirpart: $dirpart mf: $mf"
  6789. # rm -rf "$dirpart/.deps/"
  6790. rm -f "$dirpart/.deps/includes"
  6791. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  6792. for file in `sed -n -e '
  6793. /^OBJS = .*\\\\$/ {
  6794. s/^OBJS = //
  6795. :loop
  6796. s/\\\\$//
  6797. p
  6798. n
  6799. /\\\\$/ b loop
  6800. p
  6801. }
  6802. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  6803. do
  6804. base=`basename $file .o`
  6805. test -f "$dirpart/$base.c" || continue
  6806. if ! test -f "$dirpart/.deps/$base.Po"; then
  6807. echo '# dummy' > "$dirpart/.deps/$base.Po"
  6808. #Remove the .o file, because it needs to be recompiled for its dependancies.
  6809. if test -f "$dirpart/$base.o"; then
  6810. rm -f "$dirpart/$base.o"
  6811. fi
  6812. fi
  6813. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  6814. echo "_$base.c:" >> "$dirpart/.deps/includes"
  6815. done
  6816. done
  6817. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/buildinfo.h"
  6818. cat >confcache <<\_ACEOF
  6819. # This file is a shell script that caches the results of configure
  6820. # tests run on this system so they can be shared between configure
  6821. # scripts and configure runs, see configure's option --config-cache.
  6822. # It is not useful on other systems. If it contains results you don't
  6823. # want to keep, you may remove or edit it.
  6824. #
  6825. # config.status only pays attention to the cache file if you give it
  6826. # the --recheck option to rerun configure.
  6827. #
  6828. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6829. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6830. # following values.
  6831. _ACEOF
  6832. # The following way of writing the cache mishandles newlines in values,
  6833. # but we know of no workaround that is simple, portable, and efficient.
  6834. # So, we kill variables containing newlines.
  6835. # Ultrix sh set writes to stderr and can't be redirected directly,
  6836. # and sets the high bit in the cache file unless we assign to the vars.
  6837. (
  6838. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6839. eval ac_val=\$$ac_var
  6840. case $ac_val in #(
  6841. *${as_nl}*)
  6842. case $ac_var in #(
  6843. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6844. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6845. esac
  6846. case $ac_var in #(
  6847. _ | IFS | as_nl) ;; #(
  6848. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6849. *) { eval $ac_var=; unset $ac_var;} ;;
  6850. esac ;;
  6851. esac
  6852. done
  6853. (set) 2>&1 |
  6854. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6855. *${as_nl}ac_space=\ *)
  6856. # `set' does not quote correctly, so add quotes: double-quote
  6857. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6858. sed -n \
  6859. "s/'/'\\\\''/g;
  6860. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6861. ;; #(
  6862. *)
  6863. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6864. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6865. ;;
  6866. esac |
  6867. sort
  6868. ) |
  6869. sed '
  6870. /^ac_cv_env_/b end
  6871. t clear
  6872. :clear
  6873. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6874. t end
  6875. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6876. :end' >>confcache
  6877. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6878. if test -w "$cache_file"; then
  6879. test "x$cache_file" != "x/dev/null" &&
  6880. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6881. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6882. cat confcache >$cache_file
  6883. else
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6885. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6886. fi
  6887. fi
  6888. rm -f confcache
  6889. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6890. # Let make expand exec_prefix.
  6891. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6892. DEFS=-DHAVE_CONFIG_H
  6893. ac_libobjs=
  6894. ac_ltlibobjs=
  6895. U=
  6896. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  6897. # 1. Remove the extension, and $U if already installed.
  6898. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  6899. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  6900. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  6901. # will be set to the directory where LIBOBJS objects are built.
  6902. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  6903. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  6904. done
  6905. LIBOBJS=$ac_libobjs
  6906. LTLIBOBJS=$ac_ltlibobjs
  6907. : ${CONFIG_STATUS=./config.status}
  6908. ac_write_fail=0
  6909. ac_clean_files_save=$ac_clean_files
  6910. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  6911. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  6912. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  6913. as_write_fail=0
  6914. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  6915. #! $SHELL
  6916. # Generated by $as_me.
  6917. # Run this file to recreate the current configuration.
  6918. # Compiler output produced by configure, useful for debugging
  6919. # configure, is in config.log if it exists.
  6920. debug=false
  6921. ac_cs_recheck=false
  6922. ac_cs_silent=false
  6923. SHELL=\${CONFIG_SHELL-$SHELL}
  6924. export SHELL
  6925. _ASEOF
  6926. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  6927. ## -------------------- ##
  6928. ## M4sh Initialization. ##
  6929. ## -------------------- ##
  6930. # Be more Bourne compatible
  6931. DUALCASE=1; export DUALCASE # for MKS sh
  6932. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  6933. emulate sh
  6934. NULLCMD=:
  6935. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  6936. # is contrary to our usage. Disable this feature.
  6937. alias -g '${1+"$@"}'='"$@"'
  6938. setopt NO_GLOB_SUBST
  6939. else
  6940. case `(set -o) 2>/dev/null` in #(
  6941. *posix*) :
  6942. set -o posix ;; #(
  6943. *) :
  6944. ;;
  6945. esac
  6946. fi
  6947. as_nl='
  6948. '
  6949. export as_nl
  6950. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  6951. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6952. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  6953. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  6954. # Prefer a ksh shell builtin over an external printf program on Solaris,
  6955. # but without wasting forks for bash or zsh.
  6956. if test -z "$BASH_VERSION$ZSH_VERSION" \
  6957. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  6958. as_echo='print -r --'
  6959. as_echo_n='print -rn --'
  6960. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  6961. as_echo='printf %s\n'
  6962. as_echo_n='printf %s'
  6963. else
  6964. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  6965. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  6966. as_echo_n='/usr/ucb/echo -n'
  6967. else
  6968. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  6969. as_echo_n_body='eval
  6970. arg=$1;
  6971. case $arg in #(
  6972. *"$as_nl"*)
  6973. expr "X$arg" : "X\\(.*\\)$as_nl";
  6974. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  6975. esac;
  6976. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  6977. '
  6978. export as_echo_n_body
  6979. as_echo_n='sh -c $as_echo_n_body as_echo'
  6980. fi
  6981. export as_echo_body
  6982. as_echo='sh -c $as_echo_body as_echo'
  6983. fi
  6984. # The user is always right.
  6985. if test "${PATH_SEPARATOR+set}" != set; then
  6986. PATH_SEPARATOR=:
  6987. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  6988. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  6989. PATH_SEPARATOR=';'
  6990. }
  6991. fi
  6992. # IFS
  6993. # We need space, tab and new line, in precisely that order. Quoting is
  6994. # there to prevent editors from complaining about space-tab.
  6995. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  6996. # splitting by setting IFS to empty value.)
  6997. IFS=" "" $as_nl"
  6998. # Find who we are. Look in the path if we contain no directory separator.
  6999. case $0 in #((
  7000. *[\\/]* ) as_myself=$0 ;;
  7001. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7002. for as_dir in $PATH
  7003. do
  7004. IFS=$as_save_IFS
  7005. test -z "$as_dir" && as_dir=.
  7006. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  7007. done
  7008. IFS=$as_save_IFS
  7009. ;;
  7010. esac
  7011. # We did not find ourselves, most probably we were run as `sh COMMAND'
  7012. # in which case we are not to be found in the path.
  7013. if test "x$as_myself" = x; then
  7014. as_myself=$0
  7015. fi
  7016. if test ! -f "$as_myself"; then
  7017. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  7018. exit 1
  7019. fi
  7020. # Unset variables that we do not need and which cause bugs (e.g. in
  7021. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  7022. # suppresses any "Segmentation fault" message there. '((' could
  7023. # trigger a bug in pdksh 5.2.14.
  7024. for as_var in BASH_ENV ENV MAIL MAILPATH
  7025. do eval test x\${$as_var+set} = xset \
  7026. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  7027. done
  7028. PS1='$ '
  7029. PS2='> '
  7030. PS4='+ '
  7031. # NLS nuisances.
  7032. LC_ALL=C
  7033. export LC_ALL
  7034. LANGUAGE=C
  7035. export LANGUAGE
  7036. # CDPATH.
  7037. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7038. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  7039. # ----------------------------------------
  7040. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  7041. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  7042. # script with STATUS, using 1 if that was 0.
  7043. as_fn_error ()
  7044. {
  7045. as_status=$1; test $as_status -eq 0 && as_status=1
  7046. if test "$4"; then
  7047. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7048. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  7049. fi
  7050. $as_echo "$as_me: error: $2" >&2
  7051. as_fn_exit $as_status
  7052. } # as_fn_error
  7053. # as_fn_set_status STATUS
  7054. # -----------------------
  7055. # Set $? to STATUS, without forking.
  7056. as_fn_set_status ()
  7057. {
  7058. return $1
  7059. } # as_fn_set_status
  7060. # as_fn_exit STATUS
  7061. # -----------------
  7062. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  7063. as_fn_exit ()
  7064. {
  7065. set +e
  7066. as_fn_set_status $1
  7067. exit $1
  7068. } # as_fn_exit
  7069. # as_fn_unset VAR
  7070. # ---------------
  7071. # Portably unset VAR.
  7072. as_fn_unset ()
  7073. {
  7074. { eval $1=; unset $1;}
  7075. }
  7076. as_unset=as_fn_unset
  7077. # as_fn_append VAR VALUE
  7078. # ----------------------
  7079. # Append the text in VALUE to the end of the definition contained in VAR. Take
  7080. # advantage of any shell optimizations that allow amortized linear growth over
  7081. # repeated appends, instead of the typical quadratic growth present in naive
  7082. # implementations.
  7083. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  7084. eval 'as_fn_append ()
  7085. {
  7086. eval $1+=\$2
  7087. }'
  7088. else
  7089. as_fn_append ()
  7090. {
  7091. eval $1=\$$1\$2
  7092. }
  7093. fi # as_fn_append
  7094. # as_fn_arith ARG...
  7095. # ------------------
  7096. # Perform arithmetic evaluation on the ARGs, and store the result in the
  7097. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  7098. # must be portable across $(()) and expr.
  7099. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  7100. eval 'as_fn_arith ()
  7101. {
  7102. as_val=$(( $* ))
  7103. }'
  7104. else
  7105. as_fn_arith ()
  7106. {
  7107. as_val=`expr "$@" || test $? -eq 1`
  7108. }
  7109. fi # as_fn_arith
  7110. if expr a : '\(a\)' >/dev/null 2>&1 &&
  7111. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  7112. as_expr=expr
  7113. else
  7114. as_expr=false
  7115. fi
  7116. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  7117. as_basename=basename
  7118. else
  7119. as_basename=false
  7120. fi
  7121. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  7122. as_dirname=dirname
  7123. else
  7124. as_dirname=false
  7125. fi
  7126. as_me=`$as_basename -- "$0" ||
  7127. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  7128. X"$0" : 'X\(//\)$' \| \
  7129. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  7130. $as_echo X/"$0" |
  7131. sed '/^.*\/\([^/][^/]*\)\/*$/{
  7132. s//\1/
  7133. q
  7134. }
  7135. /^X\/\(\/\/\)$/{
  7136. s//\1/
  7137. q
  7138. }
  7139. /^X\/\(\/\).*/{
  7140. s//\1/
  7141. q
  7142. }
  7143. s/.*/./; q'`
  7144. # Avoid depending upon Character Ranges.
  7145. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  7146. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  7147. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  7148. as_cr_digits='0123456789'
  7149. as_cr_alnum=$as_cr_Letters$as_cr_digits
  7150. ECHO_C= ECHO_N= ECHO_T=
  7151. case `echo -n x` in #(((((
  7152. -n*)
  7153. case `echo 'xy\c'` in
  7154. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  7155. xy) ECHO_C='\c';;
  7156. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  7157. ECHO_T=' ';;
  7158. esac;;
  7159. *)
  7160. ECHO_N='-n';;
  7161. esac
  7162. rm -f conf$$ conf$$.exe conf$$.file
  7163. if test -d conf$$.dir; then
  7164. rm -f conf$$.dir/conf$$.file
  7165. else
  7166. rm -f conf$$.dir
  7167. mkdir conf$$.dir 2>/dev/null
  7168. fi
  7169. if (echo >conf$$.file) 2>/dev/null; then
  7170. if ln -s conf$$.file conf$$ 2>/dev/null; then
  7171. as_ln_s='ln -s'
  7172. # ... but there are two gotchas:
  7173. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  7174. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  7175. # In both cases, we have to default to `cp -p'.
  7176. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  7177. as_ln_s='cp -p'
  7178. elif ln conf$$.file conf$$ 2>/dev/null; then
  7179. as_ln_s=ln
  7180. else
  7181. as_ln_s='cp -p'
  7182. fi
  7183. else
  7184. as_ln_s='cp -p'
  7185. fi
  7186. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  7187. rmdir conf$$.dir 2>/dev/null
  7188. # as_fn_mkdir_p
  7189. # -------------
  7190. # Create "$as_dir" as a directory, including parents if necessary.
  7191. as_fn_mkdir_p ()
  7192. {
  7193. case $as_dir in #(
  7194. -*) as_dir=./$as_dir;;
  7195. esac
  7196. test -d "$as_dir" || eval $as_mkdir_p || {
  7197. as_dirs=
  7198. while :; do
  7199. case $as_dir in #(
  7200. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  7201. *) as_qdir=$as_dir;;
  7202. esac
  7203. as_dirs="'$as_qdir' $as_dirs"
  7204. as_dir=`$as_dirname -- "$as_dir" ||
  7205. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7206. X"$as_dir" : 'X\(//\)[^/]' \| \
  7207. X"$as_dir" : 'X\(//\)$' \| \
  7208. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  7209. $as_echo X"$as_dir" |
  7210. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7211. s//\1/
  7212. q
  7213. }
  7214. /^X\(\/\/\)[^/].*/{
  7215. s//\1/
  7216. q
  7217. }
  7218. /^X\(\/\/\)$/{
  7219. s//\1/
  7220. q
  7221. }
  7222. /^X\(\/\).*/{
  7223. s//\1/
  7224. q
  7225. }
  7226. s/.*/./; q'`
  7227. test -d "$as_dir" && break
  7228. done
  7229. test -z "$as_dirs" || eval "mkdir $as_dirs"
  7230. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  7231. } # as_fn_mkdir_p
  7232. if mkdir -p . 2>/dev/null; then
  7233. as_mkdir_p='mkdir -p "$as_dir"'
  7234. else
  7235. test -d ./-p && rmdir ./-p
  7236. as_mkdir_p=false
  7237. fi
  7238. if test -x / >/dev/null 2>&1; then
  7239. as_test_x='test -x'
  7240. else
  7241. if ls -dL / >/dev/null 2>&1; then
  7242. as_ls_L_option=L
  7243. else
  7244. as_ls_L_option=
  7245. fi
  7246. as_test_x='
  7247. eval sh -c '\''
  7248. if test -d "$1"; then
  7249. test -d "$1/.";
  7250. else
  7251. case $1 in #(
  7252. -*)set "./$1";;
  7253. esac;
  7254. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  7255. ???[sx]*):;;*)false;;esac;fi
  7256. '\'' sh
  7257. '
  7258. fi
  7259. as_executable_p=$as_test_x
  7260. # Sed expression to map a string onto a valid CPP name.
  7261. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  7262. # Sed expression to map a string onto a valid variable name.
  7263. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  7264. exec 6>&1
  7265. ## ----------------------------------- ##
  7266. ## Main body of $CONFIG_STATUS script. ##
  7267. ## ----------------------------------- ##
  7268. _ASEOF
  7269. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  7270. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7271. # Save the log message, to keep $0 and so on meaningful, and to
  7272. # report actual input values of CONFIG_FILES etc. instead of their
  7273. # values after options handling.
  7274. ac_log="
  7275. This file was extended by $as_me, which was
  7276. generated by GNU Autoconf 2.67. Invocation command line was
  7277. CONFIG_FILES = $CONFIG_FILES
  7278. CONFIG_HEADERS = $CONFIG_HEADERS
  7279. CONFIG_LINKS = $CONFIG_LINKS
  7280. CONFIG_COMMANDS = $CONFIG_COMMANDS
  7281. $ $0 $@
  7282. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  7283. "
  7284. _ACEOF
  7285. case $ac_config_files in *"
  7286. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  7287. esac
  7288. case $ac_config_headers in *"
  7289. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  7290. esac
  7291. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7292. # Files that config.status was made for.
  7293. config_files="$ac_config_files"
  7294. config_headers="$ac_config_headers"
  7295. _ACEOF
  7296. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7297. ac_cs_usage="\
  7298. \`$as_me' instantiates files and other configuration actions
  7299. from templates according to the current configuration. Unless the files
  7300. and actions are specified as TAGs, all are instantiated by default.
  7301. Usage: $0 [OPTION]... [TAG]...
  7302. -h, --help print this help, then exit
  7303. -V, --version print version number and configuration settings, then exit
  7304. --config print configuration, then exit
  7305. -q, --quiet, --silent
  7306. do not print progress messages
  7307. -d, --debug don't remove temporary files
  7308. --recheck update $as_me by reconfiguring in the same conditions
  7309. --file=FILE[:TEMPLATE]
  7310. instantiate the configuration file FILE
  7311. --header=FILE[:TEMPLATE]
  7312. instantiate the configuration header FILE
  7313. Configuration files:
  7314. $config_files
  7315. Configuration headers:
  7316. $config_headers
  7317. Report bugs to the package provider."
  7318. _ACEOF
  7319. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7320. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  7321. ac_cs_version="\\
  7322. config.status
  7323. configured by $0, generated by GNU Autoconf 2.67,
  7324. with options \\"\$ac_cs_config\\"
  7325. Copyright (C) 2010 Free Software Foundation, Inc.
  7326. This config.status script is free software; the Free Software Foundation
  7327. gives unlimited permission to copy, distribute and modify it."
  7328. ac_pwd='$ac_pwd'
  7329. srcdir='$srcdir'
  7330. AWK='$AWK'
  7331. test -n "\$AWK" || AWK=awk
  7332. _ACEOF
  7333. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7334. # The default lists apply if the user does not specify any file.
  7335. ac_need_defaults=:
  7336. while test $# != 0
  7337. do
  7338. case $1 in
  7339. --*=?*)
  7340. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7341. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  7342. ac_shift=:
  7343. ;;
  7344. --*=)
  7345. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7346. ac_optarg=
  7347. ac_shift=:
  7348. ;;
  7349. *)
  7350. ac_option=$1
  7351. ac_optarg=$2
  7352. ac_shift=shift
  7353. ;;
  7354. esac
  7355. case $ac_option in
  7356. # Handling of the options.
  7357. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  7358. ac_cs_recheck=: ;;
  7359. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  7360. $as_echo "$ac_cs_version"; exit ;;
  7361. --config | --confi | --conf | --con | --co | --c )
  7362. $as_echo "$ac_cs_config"; exit ;;
  7363. --debug | --debu | --deb | --de | --d | -d )
  7364. debug=: ;;
  7365. --file | --fil | --fi | --f )
  7366. $ac_shift
  7367. case $ac_optarg in
  7368. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7369. '') as_fn_error $? "missing file argument" ;;
  7370. esac
  7371. as_fn_append CONFIG_FILES " '$ac_optarg'"
  7372. ac_need_defaults=false;;
  7373. --header | --heade | --head | --hea )
  7374. $ac_shift
  7375. case $ac_optarg in
  7376. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7377. esac
  7378. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  7379. ac_need_defaults=false;;
  7380. --he | --h)
  7381. # Conflict between --help and --header
  7382. as_fn_error $? "ambiguous option: \`$1'
  7383. Try \`$0 --help' for more information.";;
  7384. --help | --hel | -h )
  7385. $as_echo "$ac_cs_usage"; exit ;;
  7386. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  7387. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  7388. ac_cs_silent=: ;;
  7389. # This is an error.
  7390. -*) as_fn_error $? "unrecognized option: \`$1'
  7391. Try \`$0 --help' for more information." ;;
  7392. *) as_fn_append ac_config_targets " $1"
  7393. ac_need_defaults=false ;;
  7394. esac
  7395. shift
  7396. done
  7397. ac_configure_extra_args=
  7398. if $ac_cs_silent; then
  7399. exec 6>/dev/null
  7400. ac_configure_extra_args="$ac_configure_extra_args --silent"
  7401. fi
  7402. _ACEOF
  7403. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7404. if \$ac_cs_recheck; then
  7405. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  7406. shift
  7407. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  7408. CONFIG_SHELL='$SHELL'
  7409. export CONFIG_SHELL
  7410. exec "\$@"
  7411. fi
  7412. _ACEOF
  7413. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7414. exec 5>>config.log
  7415. {
  7416. echo
  7417. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  7418. ## Running $as_me. ##
  7419. _ASBOX
  7420. $as_echo "$ac_log"
  7421. } >&5
  7422. _ACEOF
  7423. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7424. _ACEOF
  7425. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7426. # Handling of arguments.
  7427. for ac_config_target in $ac_config_targets
  7428. do
  7429. case $ac_config_target in
  7430. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  7431. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  7432. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  7433. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  7434. "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  7435. "src/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  7436. "src/mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  7437. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  7438. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  7439. esac
  7440. done
  7441. # If the user did not use the arguments to specify the items to instantiate,
  7442. # then the envvar interface is used. Set only those that are not.
  7443. # We use the long form for the default assignment because of an extremely
  7444. # bizarre bug on SunOS 4.1.3.
  7445. if $ac_need_defaults; then
  7446. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  7447. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  7448. fi
  7449. # Have a temporary directory for convenience. Make it in the build tree
  7450. # simply because there is no reason against having it here, and in addition,
  7451. # creating and moving files from /tmp can sometimes cause problems.
  7452. # Hook for its removal unless debugging.
  7453. # Note that there is a small window in which the directory will not be cleaned:
  7454. # after its creation but before its name has been assigned to `$tmp'.
  7455. $debug ||
  7456. {
  7457. tmp=
  7458. trap 'exit_status=$?
  7459. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  7460. ' 0
  7461. trap 'as_fn_exit 1' 1 2 13 15
  7462. }
  7463. # Create a (secure) tmp directory for tmp files.
  7464. {
  7465. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  7466. test -n "$tmp" && test -d "$tmp"
  7467. } ||
  7468. {
  7469. tmp=./conf$$-$RANDOM
  7470. (umask 077 && mkdir "$tmp")
  7471. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  7472. # Set up the scripts for CONFIG_FILES section.
  7473. # No need to generate them if there are no CONFIG_FILES.
  7474. # This happens for instance with `./config.status config.h'.
  7475. if test -n "$CONFIG_FILES"; then
  7476. ac_cr=`echo X | tr X '\015'`
  7477. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  7478. # But we know of no other shell where ac_cr would be empty at this
  7479. # point, so we can use a bashism as a fallback.
  7480. if test "x$ac_cr" = x; then
  7481. eval ac_cr=\$\'\\r\'
  7482. fi
  7483. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  7484. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  7485. ac_cs_awk_cr='\\r'
  7486. else
  7487. ac_cs_awk_cr=$ac_cr
  7488. fi
  7489. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  7490. _ACEOF
  7491. {
  7492. echo "cat >conf$$subs.awk <<_ACEOF" &&
  7493. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  7494. echo "_ACEOF"
  7495. } >conf$$subs.sh ||
  7496. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7497. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  7498. ac_delim='%!_!# '
  7499. for ac_last_try in false false false false false :; do
  7500. . ./conf$$subs.sh ||
  7501. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7502. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  7503. if test $ac_delim_n = $ac_delim_num; then
  7504. break
  7505. elif $ac_last_try; then
  7506. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7507. else
  7508. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7509. fi
  7510. done
  7511. rm -f conf$$subs.sh
  7512. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7513. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  7514. _ACEOF
  7515. sed -n '
  7516. h
  7517. s/^/S["/; s/!.*/"]=/
  7518. p
  7519. g
  7520. s/^[^!]*!//
  7521. :repl
  7522. t repl
  7523. s/'"$ac_delim"'$//
  7524. t delim
  7525. :nl
  7526. h
  7527. s/\(.\{148\}\)..*/\1/
  7528. t more1
  7529. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  7530. p
  7531. n
  7532. b repl
  7533. :more1
  7534. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7535. p
  7536. g
  7537. s/.\{148\}//
  7538. t nl
  7539. :delim
  7540. h
  7541. s/\(.\{148\}\)..*/\1/
  7542. t more2
  7543. s/["\\]/\\&/g; s/^/"/; s/$/"/
  7544. p
  7545. b
  7546. :more2
  7547. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7548. p
  7549. g
  7550. s/.\{148\}//
  7551. t delim
  7552. ' <conf$$subs.awk | sed '
  7553. /^[^""]/{
  7554. N
  7555. s/\n//
  7556. }
  7557. ' >>$CONFIG_STATUS || ac_write_fail=1
  7558. rm -f conf$$subs.awk
  7559. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7560. _ACAWK
  7561. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  7562. for (key in S) S_is_set[key] = 1
  7563. FS = ""
  7564. }
  7565. {
  7566. line = $ 0
  7567. nfields = split(line, field, "@")
  7568. substed = 0
  7569. len = length(field[1])
  7570. for (i = 2; i < nfields; i++) {
  7571. key = field[i]
  7572. keylen = length(key)
  7573. if (S_is_set[key]) {
  7574. value = S[key]
  7575. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  7576. len += length(value) + length(field[++i])
  7577. substed = 1
  7578. } else
  7579. len += 1 + keylen
  7580. }
  7581. print line
  7582. }
  7583. _ACAWK
  7584. _ACEOF
  7585. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7586. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  7587. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  7588. else
  7589. cat
  7590. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  7591. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  7592. _ACEOF
  7593. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  7594. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  7595. # trailing colons and then remove the whole line if VPATH becomes empty
  7596. # (actually we leave an empty line to preserve line numbers).
  7597. if test "x$srcdir" = x.; then
  7598. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  7599. h
  7600. s///
  7601. s/^/:/
  7602. s/[ ]*$/:/
  7603. s/:\$(srcdir):/:/g
  7604. s/:\${srcdir}:/:/g
  7605. s/:@srcdir@:/:/g
  7606. s/^:*//
  7607. s/:*$//
  7608. x
  7609. s/\(=[ ]*\).*/\1/
  7610. G
  7611. s/\n//
  7612. s/^[^=]*=[ ]*$//
  7613. }'
  7614. fi
  7615. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7616. fi # test -n "$CONFIG_FILES"
  7617. # Set up the scripts for CONFIG_HEADERS section.
  7618. # No need to generate them if there are no CONFIG_HEADERS.
  7619. # This happens for instance with `./config.status Makefile'.
  7620. if test -n "$CONFIG_HEADERS"; then
  7621. cat >"$tmp/defines.awk" <<\_ACAWK ||
  7622. BEGIN {
  7623. _ACEOF
  7624. # Transform confdefs.h into an awk script `defines.awk', embedded as
  7625. # here-document in config.status, that substitutes the proper values into
  7626. # config.h.in to produce config.h.
  7627. # Create a delimiter string that does not exist in confdefs.h, to ease
  7628. # handling of long lines.
  7629. ac_delim='%!_!# '
  7630. for ac_last_try in false false :; do
  7631. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  7632. if test -z "$ac_t"; then
  7633. break
  7634. elif $ac_last_try; then
  7635. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  7636. else
  7637. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7638. fi
  7639. done
  7640. # For the awk script, D is an array of macro values keyed by name,
  7641. # likewise P contains macro parameters if any. Preserve backslash
  7642. # newline sequences.
  7643. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  7644. sed -n '
  7645. s/.\{148\}/&'"$ac_delim"'/g
  7646. t rset
  7647. :rset
  7648. s/^[ ]*#[ ]*define[ ][ ]*/ /
  7649. t def
  7650. d
  7651. :def
  7652. s/\\$//
  7653. t bsnl
  7654. s/["\\]/\\&/g
  7655. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7656. D["\1"]=" \3"/p
  7657. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  7658. d
  7659. :bsnl
  7660. s/["\\]/\\&/g
  7661. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7662. D["\1"]=" \3\\\\\\n"\\/p
  7663. t cont
  7664. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  7665. t cont
  7666. d
  7667. :cont
  7668. n
  7669. s/.\{148\}/&'"$ac_delim"'/g
  7670. t clear
  7671. :clear
  7672. s/\\$//
  7673. t bsnlc
  7674. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  7675. d
  7676. :bsnlc
  7677. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  7678. b cont
  7679. ' <confdefs.h | sed '
  7680. s/'"$ac_delim"'/"\\\
  7681. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  7682. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7683. for (key in D) D_is_set[key] = 1
  7684. FS = ""
  7685. }
  7686. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  7687. line = \$ 0
  7688. split(line, arg, " ")
  7689. if (arg[1] == "#") {
  7690. defundef = arg[2]
  7691. mac1 = arg[3]
  7692. } else {
  7693. defundef = substr(arg[1], 2)
  7694. mac1 = arg[2]
  7695. }
  7696. split(mac1, mac2, "(") #)
  7697. macro = mac2[1]
  7698. prefix = substr(line, 1, index(line, defundef) - 1)
  7699. if (D_is_set[macro]) {
  7700. # Preserve the white space surrounding the "#".
  7701. print prefix "define", macro P[macro] D[macro]
  7702. next
  7703. } else {
  7704. # Replace #undef with comments. This is necessary, for example,
  7705. # in the case of _POSIX_SOURCE, which is predefined and required
  7706. # on some systems where configure will not decide to define it.
  7707. if (defundef == "undef") {
  7708. print "/*", prefix defundef, macro, "*/"
  7709. next
  7710. }
  7711. }
  7712. }
  7713. { print }
  7714. _ACAWK
  7715. _ACEOF
  7716. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7717. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  7718. fi # test -n "$CONFIG_HEADERS"
  7719. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  7720. shift
  7721. for ac_tag
  7722. do
  7723. case $ac_tag in
  7724. :[FHLC]) ac_mode=$ac_tag; continue;;
  7725. esac
  7726. case $ac_mode$ac_tag in
  7727. :[FHL]*:*);;
  7728. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  7729. :[FH]-) ac_tag=-:-;;
  7730. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  7731. esac
  7732. ac_save_IFS=$IFS
  7733. IFS=:
  7734. set x $ac_tag
  7735. IFS=$ac_save_IFS
  7736. shift
  7737. ac_file=$1
  7738. shift
  7739. case $ac_mode in
  7740. :L) ac_source=$1;;
  7741. :[FH])
  7742. ac_file_inputs=
  7743. for ac_f
  7744. do
  7745. case $ac_f in
  7746. -) ac_f="$tmp/stdin";;
  7747. *) # Look for the file first in the build tree, then in the source tree
  7748. # (if the path is not absolute). The absolute path cannot be DOS-style,
  7749. # because $ac_f cannot contain `:'.
  7750. test -f "$ac_f" ||
  7751. case $ac_f in
  7752. [\\/$]*) false;;
  7753. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  7754. esac ||
  7755. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  7756. esac
  7757. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  7758. as_fn_append ac_file_inputs " '$ac_f'"
  7759. done
  7760. # Let's still pretend it is `configure' which instantiates (i.e., don't
  7761. # use $as_me), people would be surprised to read:
  7762. # /* config.h. Generated by config.status. */
  7763. configure_input='Generated from '`
  7764. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  7765. `' by configure.'
  7766. if test x"$ac_file" != x-; then
  7767. configure_input="$ac_file. $configure_input"
  7768. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  7769. $as_echo "$as_me: creating $ac_file" >&6;}
  7770. fi
  7771. # Neutralize special characters interpreted by sed in replacement strings.
  7772. case $configure_input in #(
  7773. *\&* | *\|* | *\\* )
  7774. ac_sed_conf_input=`$as_echo "$configure_input" |
  7775. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  7776. *) ac_sed_conf_input=$configure_input;;
  7777. esac
  7778. case $ac_tag in
  7779. *:-:* | *:-) cat >"$tmp/stdin" \
  7780. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  7781. esac
  7782. ;;
  7783. esac
  7784. ac_dir=`$as_dirname -- "$ac_file" ||
  7785. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7786. X"$ac_file" : 'X\(//\)[^/]' \| \
  7787. X"$ac_file" : 'X\(//\)$' \| \
  7788. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  7789. $as_echo X"$ac_file" |
  7790. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7791. s//\1/
  7792. q
  7793. }
  7794. /^X\(\/\/\)[^/].*/{
  7795. s//\1/
  7796. q
  7797. }
  7798. /^X\(\/\/\)$/{
  7799. s//\1/
  7800. q
  7801. }
  7802. /^X\(\/\).*/{
  7803. s//\1/
  7804. q
  7805. }
  7806. s/.*/./; q'`
  7807. as_dir="$ac_dir"; as_fn_mkdir_p
  7808. ac_builddir=.
  7809. case "$ac_dir" in
  7810. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7811. *)
  7812. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  7813. # A ".." for each directory in $ac_dir_suffix.
  7814. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  7815. case $ac_top_builddir_sub in
  7816. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7817. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  7818. esac ;;
  7819. esac
  7820. ac_abs_top_builddir=$ac_pwd
  7821. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  7822. # for backward compatibility:
  7823. ac_top_builddir=$ac_top_build_prefix
  7824. case $srcdir in
  7825. .) # We are building in place.
  7826. ac_srcdir=.
  7827. ac_top_srcdir=$ac_top_builddir_sub
  7828. ac_abs_top_srcdir=$ac_pwd ;;
  7829. [\\/]* | ?:[\\/]* ) # Absolute name.
  7830. ac_srcdir=$srcdir$ac_dir_suffix;
  7831. ac_top_srcdir=$srcdir
  7832. ac_abs_top_srcdir=$srcdir ;;
  7833. *) # Relative name.
  7834. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  7835. ac_top_srcdir=$ac_top_build_prefix$srcdir
  7836. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  7837. esac
  7838. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  7839. case $ac_mode in
  7840. :F)
  7841. #
  7842. # CONFIG_FILE
  7843. #
  7844. _ACEOF
  7845. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7846. # If the template does not know about datarootdir, expand it.
  7847. # FIXME: This hack should be removed a few years after 2.60.
  7848. ac_datarootdir_hack=; ac_datarootdir_seen=
  7849. ac_sed_dataroot='
  7850. /datarootdir/ {
  7851. p
  7852. q
  7853. }
  7854. /@datadir@/p
  7855. /@docdir@/p
  7856. /@infodir@/p
  7857. /@localedir@/p
  7858. /@mandir@/p'
  7859. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  7860. *datarootdir*) ac_datarootdir_seen=yes;;
  7861. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  7862. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  7863. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  7864. _ACEOF
  7865. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7866. ac_datarootdir_hack='
  7867. s&@datadir@&$datadir&g
  7868. s&@docdir@&$docdir&g
  7869. s&@infodir@&$infodir&g
  7870. s&@localedir@&$localedir&g
  7871. s&@mandir@&$mandir&g
  7872. s&\\\${datarootdir}&$datarootdir&g' ;;
  7873. esac
  7874. _ACEOF
  7875. # Neutralize VPATH when `$srcdir' = `.'.
  7876. # Shell code in configure.ac might set extrasub.
  7877. # FIXME: do we really want to maintain this feature?
  7878. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7879. ac_sed_extra="$ac_vpsub
  7880. $extrasub
  7881. _ACEOF
  7882. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7883. :t
  7884. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  7885. s|@configure_input@|$ac_sed_conf_input|;t t
  7886. s&@top_builddir@&$ac_top_builddir_sub&;t t
  7887. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  7888. s&@srcdir@&$ac_srcdir&;t t
  7889. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  7890. s&@top_srcdir@&$ac_top_srcdir&;t t
  7891. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  7892. s&@builddir@&$ac_builddir&;t t
  7893. s&@abs_builddir@&$ac_abs_builddir&;t t
  7894. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  7895. $ac_datarootdir_hack
  7896. "
  7897. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  7898. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7899. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  7900. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  7901. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  7902. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7903. which seems to be undefined. Please make sure it is defined" >&5
  7904. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7905. which seems to be undefined. Please make sure it is defined" >&2;}
  7906. rm -f "$tmp/stdin"
  7907. case $ac_file in
  7908. -) cat "$tmp/out" && rm -f "$tmp/out";;
  7909. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  7910. esac \
  7911. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7912. ;;
  7913. :H)
  7914. #
  7915. # CONFIG_HEADER
  7916. #
  7917. if test x"$ac_file" != x-; then
  7918. {
  7919. $as_echo "/* $configure_input */" \
  7920. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  7921. } >"$tmp/config.h" \
  7922. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7923. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  7924. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  7925. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  7926. else
  7927. rm -f "$ac_file"
  7928. mv "$tmp/config.h" "$ac_file" \
  7929. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7930. fi
  7931. else
  7932. $as_echo "/* $configure_input */" \
  7933. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  7934. || as_fn_error $? "could not create -" "$LINENO" 5
  7935. fi
  7936. ;;
  7937. esac
  7938. done # for ac_tag
  7939. as_fn_exit 0
  7940. _ACEOF
  7941. ac_clean_files=$ac_clean_files_save
  7942. test $ac_write_fail = 0 ||
  7943. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  7944. # configure is writing to config.log, and then calls config.status.
  7945. # config.status does its own redirection, appending to config.log.
  7946. # Unfortunately, on DOS this fails, as config.log is still kept open
  7947. # by configure, so config.status won't be able to write to it; its
  7948. # output is simply discarded. So we exec the FD to /dev/null,
  7949. # effectively closing config.log, so it can be properly (re)opened and
  7950. # appended to by config.status. When coming back to configure, we
  7951. # need to make the FD available again.
  7952. if test "$no_create" != yes; then
  7953. ac_cs_success=:
  7954. ac_config_status_args=
  7955. test "$silent" = yes &&
  7956. ac_config_status_args="$ac_config_status_args --quiet"
  7957. exec 5>/dev/null
  7958. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  7959. exec 5>>config.log
  7960. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  7961. # would make configure fail if this is the last instruction.
  7962. $ac_cs_success || as_fn_exit 1
  7963. fi
  7964. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  7965. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  7966. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  7967. fi
  7968. GIT_REQUIRED=1
  7969. if [ "$GIT_REQUIRED" = "1" ]; then
  7970. if ! test -d .git; then
  7971. echo ""
  7972. echo ""
  7973. echo "You have downloaded a GIT version of wraith."
  7974. echo "Either 'git clone' from a git repository or download a source tarball"
  7975. echo "A distribution version can be found at http://wraith.botpack.net/wiki/Download"
  7976. echo ""
  7977. echo ""
  7978. exit 1
  7979. fi
  7980. fi
  7981. echo ""
  7982. echo ""
  7983. echo "------------ Configuring BDLIB ------------"
  7984. if test -d .git; then
  7985. git submodule init
  7986. git submodule update
  7987. fi
  7988. test -f lib/bdlib/configure && cd lib/bdlib && MAKEJOBS="$MAKEJOBS" ./configure