configure 285 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.69.
  5. #
  6. #
  7. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. #
  13. # Copyright (c) Bryan Drewery
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. as_nl='
  35. '
  36. export as_nl
  37. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  38. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  41. # Prefer a ksh shell builtin over an external printf program on Solaris,
  42. # but without wasting forks for bash or zsh.
  43. if test -z "$BASH_VERSION$ZSH_VERSION" \
  44. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='print -r --'
  46. as_echo_n='print -rn --'
  47. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  48. as_echo='printf %s\n'
  49. as_echo_n='printf %s'
  50. else
  51. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  52. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  53. as_echo_n='/usr/ucb/echo -n'
  54. else
  55. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  56. as_echo_n_body='eval
  57. arg=$1;
  58. case $arg in #(
  59. *"$as_nl"*)
  60. expr "X$arg" : "X\\(.*\\)$as_nl";
  61. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  62. esac;
  63. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  64. '
  65. export as_echo_n_body
  66. as_echo_n='sh -c $as_echo_n_body as_echo'
  67. fi
  68. export as_echo_body
  69. as_echo='sh -c $as_echo_body as_echo'
  70. fi
  71. # The user is always right.
  72. if test "${PATH_SEPARATOR+set}" != set; then
  73. PATH_SEPARATOR=:
  74. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  75. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  76. PATH_SEPARATOR=';'
  77. }
  78. fi
  79. # IFS
  80. # We need space, tab and new line, in precisely that order. Quoting is
  81. # there to prevent editors from complaining about space-tab.
  82. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  83. # splitting by setting IFS to empty value.)
  84. IFS=" "" $as_nl"
  85. # Find who we are. Look in the path if we contain no directory separator.
  86. as_myself=
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. # Use a proper internal environment variable to ensure we don't fall
  127. # into an infinite loop, continuously re-executing ourselves.
  128. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  129. _as_can_reexec=no; export _as_can_reexec;
  130. # We cannot yet assume a decent shell, so we have to provide a
  131. # neutralization value for shells without unset; and this also
  132. # works around shells that cannot unset nonexistent variables.
  133. # Preserve -v and -x to the replacement shell.
  134. BASH_ENV=/dev/null
  135. ENV=/dev/null
  136. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  137. case $- in # ((((
  138. *v*x* | *x*v* ) as_opts=-vx ;;
  139. *v* ) as_opts=-v ;;
  140. *x* ) as_opts=-x ;;
  141. * ) as_opts= ;;
  142. esac
  143. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  144. # Admittedly, this is quite paranoid, since all the known shells bail
  145. # out after a failed `exec'.
  146. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  147. as_fn_exit 255
  148. fi
  149. # We don't want this to propagate to other subprocesses.
  150. { _as_can_reexec=; unset _as_can_reexec;}
  151. if test "x$CONFIG_SHELL" = x; then
  152. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  153. emulate sh
  154. NULLCMD=:
  155. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  156. # is contrary to our usage. Disable this feature.
  157. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  158. setopt NO_GLOB_SUBST
  159. else
  160. case \`(set -o) 2>/dev/null\` in #(
  161. *posix*) :
  162. set -o posix ;; #(
  163. *) :
  164. ;;
  165. esac
  166. fi
  167. "
  168. as_required="as_fn_return () { (exit \$1); }
  169. as_fn_success () { as_fn_return 0; }
  170. as_fn_failure () { as_fn_return 1; }
  171. as_fn_ret_success () { return 0; }
  172. as_fn_ret_failure () { return 1; }
  173. exitcode=0
  174. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  175. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  176. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  177. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  178. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  179. else
  180. exitcode=1; echo positional parameters were not saved.
  181. fi
  182. test x\$exitcode = x0 || exit 1
  183. test -x / || exit 1"
  184. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  185. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  186. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  187. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  188. test \$(( 1 + 1 )) = 2 || exit 1"
  189. if (eval "$as_required") 2>/dev/null; then :
  190. as_have_required=yes
  191. else
  192. as_have_required=no
  193. fi
  194. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  195. else
  196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  197. as_found=false
  198. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  199. do
  200. IFS=$as_save_IFS
  201. test -z "$as_dir" && as_dir=.
  202. as_found=:
  203. case $as_dir in #(
  204. /*)
  205. for as_base in sh bash ksh sh5; do
  206. # Try only shells that exist, to save several forks.
  207. as_shell=$as_dir/$as_base
  208. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  209. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  210. CONFIG_SHELL=$as_shell as_have_required=yes
  211. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  212. break 2
  213. fi
  214. fi
  215. done;;
  216. esac
  217. as_found=false
  218. done
  219. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  220. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  221. CONFIG_SHELL=$SHELL as_have_required=yes
  222. fi; }
  223. IFS=$as_save_IFS
  224. if test "x$CONFIG_SHELL" != x; then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno; then :
  246. $as_echo "$0: This script requires a shell more modern than all"
  247. $as_echo "$0: the shells that I found on your system."
  248. if test x${ZSH_VERSION+set} = xset ; then
  249. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  250. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  251. else
  252. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  253. $0: including any error possibly output before this
  254. $0: message. Then install a modern shell, or manually run
  255. $0: the script under such a shell if you do have one."
  256. fi
  257. exit 1
  258. fi
  259. fi
  260. fi
  261. SHELL=${CONFIG_SHELL-/bin/sh}
  262. export SHELL
  263. # Unset more variables known to interfere with behavior of common tools.
  264. CLICOLOR_FORCE= GREP_OPTIONS=
  265. unset CLICOLOR_FORCE GREP_OPTIONS
  266. ## --------------------- ##
  267. ## M4sh Shell Functions. ##
  268. ## --------------------- ##
  269. # as_fn_unset VAR
  270. # ---------------
  271. # Portably unset VAR.
  272. as_fn_unset ()
  273. {
  274. { eval $1=; unset $1;}
  275. }
  276. as_unset=as_fn_unset
  277. # as_fn_set_status STATUS
  278. # -----------------------
  279. # Set $? to STATUS, without forking.
  280. as_fn_set_status ()
  281. {
  282. return $1
  283. } # as_fn_set_status
  284. # as_fn_exit STATUS
  285. # -----------------
  286. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  287. as_fn_exit ()
  288. {
  289. set +e
  290. as_fn_set_status $1
  291. exit $1
  292. } # as_fn_exit
  293. # as_fn_mkdir_p
  294. # -------------
  295. # Create "$as_dir" as a directory, including parents if necessary.
  296. as_fn_mkdir_p ()
  297. {
  298. case $as_dir in #(
  299. -*) as_dir=./$as_dir;;
  300. esac
  301. test -d "$as_dir" || eval $as_mkdir_p || {
  302. as_dirs=
  303. while :; do
  304. case $as_dir in #(
  305. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  306. *) as_qdir=$as_dir;;
  307. esac
  308. as_dirs="'$as_qdir' $as_dirs"
  309. as_dir=`$as_dirname -- "$as_dir" ||
  310. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  311. X"$as_dir" : 'X\(//\)[^/]' \| \
  312. X"$as_dir" : 'X\(//\)$' \| \
  313. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  314. $as_echo X"$as_dir" |
  315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)[^/].*/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\).*/{
  328. s//\1/
  329. q
  330. }
  331. s/.*/./; q'`
  332. test -d "$as_dir" && break
  333. done
  334. test -z "$as_dirs" || eval "mkdir $as_dirs"
  335. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  336. } # as_fn_mkdir_p
  337. # as_fn_executable_p FILE
  338. # -----------------------
  339. # Test if FILE is an executable regular file.
  340. as_fn_executable_p ()
  341. {
  342. test -f "$1" && test -x "$1"
  343. } # as_fn_executable_p
  344. # as_fn_append VAR VALUE
  345. # ----------------------
  346. # Append the text in VALUE to the end of the definition contained in VAR. Take
  347. # advantage of any shell optimizations that allow amortized linear growth over
  348. # repeated appends, instead of the typical quadratic growth present in naive
  349. # implementations.
  350. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  351. eval 'as_fn_append ()
  352. {
  353. eval $1+=\$2
  354. }'
  355. else
  356. as_fn_append ()
  357. {
  358. eval $1=\$$1\$2
  359. }
  360. fi # as_fn_append
  361. # as_fn_arith ARG...
  362. # ------------------
  363. # Perform arithmetic evaluation on the ARGs, and store the result in the
  364. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  365. # must be portable across $(()) and expr.
  366. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  367. eval 'as_fn_arith ()
  368. {
  369. as_val=$(( $* ))
  370. }'
  371. else
  372. as_fn_arith ()
  373. {
  374. as_val=`expr "$@" || test $? -eq 1`
  375. }
  376. fi # as_fn_arith
  377. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  378. # ----------------------------------------
  379. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  380. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  381. # script with STATUS, using 1 if that was 0.
  382. as_fn_error ()
  383. {
  384. as_status=$1; test $as_status -eq 0 && as_status=1
  385. if test "$4"; then
  386. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  387. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  388. fi
  389. $as_echo "$as_me: error: $2" >&2
  390. as_fn_exit $as_status
  391. } # as_fn_error
  392. if expr a : '\(a\)' >/dev/null 2>&1 &&
  393. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  394. as_expr=expr
  395. else
  396. as_expr=false
  397. fi
  398. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  399. as_basename=basename
  400. else
  401. as_basename=false
  402. fi
  403. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  404. as_dirname=dirname
  405. else
  406. as_dirname=false
  407. fi
  408. as_me=`$as_basename -- "$0" ||
  409. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  410. X"$0" : 'X\(//\)$' \| \
  411. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  412. $as_echo X/"$0" |
  413. sed '/^.*\/\([^/][^/]*\)\/*$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\/\)$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\).*/{
  422. s//\1/
  423. q
  424. }
  425. s/.*/./; q'`
  426. # Avoid depending upon Character Ranges.
  427. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  428. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  429. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  430. as_cr_digits='0123456789'
  431. as_cr_alnum=$as_cr_Letters$as_cr_digits
  432. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  433. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  434. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  435. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  436. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  437. sed -n '
  438. p
  439. /[$]LINENO/=
  440. ' <$as_myself |
  441. sed '
  442. s/[$]LINENO.*/&-/
  443. t lineno
  444. b
  445. :lineno
  446. N
  447. :loop
  448. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  449. t loop
  450. s/-\n.*//
  451. ' >$as_me.lineno &&
  452. chmod +x "$as_me.lineno" ||
  453. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  454. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  455. # already done that, so ensure we don't try to do so again and fall
  456. # in an infinite loop. This has already happened in practice.
  457. _as_can_reexec=no; export _as_can_reexec
  458. # Don't try to exec as it changes $[0], causing all sort of problems
  459. # (the dirname of $[0] is not the place where we might find the
  460. # original and so on. Autoconf is especially sensitive to this).
  461. . "./$as_me.lineno"
  462. # Exit status is that of the last command.
  463. exit
  464. }
  465. ECHO_C= ECHO_N= ECHO_T=
  466. case `echo -n x` in #(((((
  467. -n*)
  468. case `echo 'xy\c'` in
  469. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  470. xy) ECHO_C='\c';;
  471. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  472. ECHO_T=' ';;
  473. esac;;
  474. *)
  475. ECHO_N='-n';;
  476. esac
  477. rm -f conf$$ conf$$.exe conf$$.file
  478. if test -d conf$$.dir; then
  479. rm -f conf$$.dir/conf$$.file
  480. else
  481. rm -f conf$$.dir
  482. mkdir conf$$.dir 2>/dev/null
  483. fi
  484. if (echo >conf$$.file) 2>/dev/null; then
  485. if ln -s conf$$.file conf$$ 2>/dev/null; then
  486. as_ln_s='ln -s'
  487. # ... but there are two gotchas:
  488. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  489. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  490. # In both cases, we have to default to `cp -pR'.
  491. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  492. as_ln_s='cp -pR'
  493. elif ln conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s=ln
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. else
  499. as_ln_s='cp -pR'
  500. fi
  501. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  502. rmdir conf$$.dir 2>/dev/null
  503. if mkdir -p . 2>/dev/null; then
  504. as_mkdir_p='mkdir -p "$as_dir"'
  505. else
  506. test -d ./-p && rmdir ./-p
  507. as_mkdir_p=false
  508. fi
  509. as_test_x='test -x'
  510. as_executable_p=as_fn_executable_p
  511. # Sed expression to map a string onto a valid CPP name.
  512. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  513. # Sed expression to map a string onto a valid variable name.
  514. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  515. test -n "$DJDIR" || exec 7<&0 </dev/null
  516. exec 6>&1
  517. # Name of the host.
  518. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  519. # so uname gets run too.
  520. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  521. #
  522. # Initializations.
  523. #
  524. ac_default_prefix=/usr/local
  525. ac_clean_files=
  526. ac_config_libobj_dir=.
  527. LIBOBJS=
  528. cross_compiling=no
  529. subdirs=
  530. MFLAGS=
  531. MAKEFLAGS=
  532. # Identity of this package.
  533. PACKAGE_NAME=
  534. PACKAGE_TARNAME=
  535. PACKAGE_VERSION=
  536. PACKAGE_STRING=
  537. PACKAGE_BUGREPORT=
  538. PACKAGE_URL=
  539. ac_unique_file="wraith"
  540. ac_unique_file="src/eggdrop.h"
  541. # Factoring default headers for most tests.
  542. ac_includes_default="\
  543. #include <stdio.h>
  544. #ifdef HAVE_SYS_TYPES_H
  545. # include <sys/types.h>
  546. #endif
  547. #ifdef HAVE_SYS_STAT_H
  548. # include <sys/stat.h>
  549. #endif
  550. #ifdef STDC_HEADERS
  551. # include <stdlib.h>
  552. # include <stddef.h>
  553. #else
  554. # ifdef HAVE_STDLIB_H
  555. # include <stdlib.h>
  556. # endif
  557. #endif
  558. #ifdef HAVE_STRING_H
  559. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  560. # include <memory.h>
  561. # endif
  562. # include <string.h>
  563. #endif
  564. #ifdef HAVE_STRINGS_H
  565. # include <strings.h>
  566. #endif
  567. #ifdef HAVE_INTTYPES_H
  568. # include <inttypes.h>
  569. #endif
  570. #ifdef HAVE_STDINT_H
  571. # include <stdint.h>
  572. #endif
  573. #ifdef HAVE_UNISTD_H
  574. # include <unistd.h>
  575. #endif"
  576. ac_header_list=
  577. ac_func_list=
  578. enable_option_checking=no
  579. ac_subst_vars='LTLIBOBJS
  580. subdirs
  581. MOD_UPDIR
  582. NUMVER
  583. VERSION
  584. LIBOBJS
  585. TCL_LIBS
  586. TCL_REQS
  587. DEFAULT_MAKE
  588. TCLINCFN
  589. TCL_INCLUDES
  590. TCLLIBFN
  591. TCLLIB
  592. SSL_LIBS
  593. SSL_INCLUDES
  594. EGREP
  595. GREP
  596. DEBCXXFLAGS
  597. CCDEBUG
  598. STATIC
  599. BUILDARCH
  600. BUILDOS
  601. DISTCC
  602. CCACHE
  603. UNAME
  604. DIFF
  605. STRIP
  606. OBJCOPY
  607. BASENAME
  608. AWK
  609. HEAD_1
  610. SED
  611. SET_MAKE
  612. GCC4DEB
  613. GCC3DEB
  614. GCC3
  615. CCDEPMODE
  616. HAVE_CXX11
  617. CXXCPP
  618. OBJEXT
  619. EXEEXT
  620. ac_ct_CXX
  621. CPPFLAGS
  622. LDFLAGS
  623. CXXFLAGS
  624. CXX
  625. egg_ac_parameters
  626. target_alias
  627. host_alias
  628. build_alias
  629. LIBS
  630. ECHO_T
  631. ECHO_N
  632. ECHO_C
  633. DEFS
  634. mandir
  635. localedir
  636. libdir
  637. psdir
  638. pdfdir
  639. dvidir
  640. htmldir
  641. infodir
  642. docdir
  643. oldincludedir
  644. includedir
  645. localstatedir
  646. sharedstatedir
  647. sysconfdir
  648. datadir
  649. datarootdir
  650. libexecdir
  651. sbindir
  652. bindir
  653. program_transform_name
  654. prefix
  655. exec_prefix
  656. PACKAGE_URL
  657. PACKAGE_BUGREPORT
  658. PACKAGE_STRING
  659. PACKAGE_VERSION
  660. PACKAGE_TARNAME
  661. PACKAGE_NAME
  662. PATH_SEPARATOR
  663. SHELL'
  664. ac_subst_files=''
  665. ac_user_opts='
  666. enable_option_checking
  667. enable_ipv6
  668. with_openssl
  669. with_tcllib
  670. with_tclinc
  671. enable_script_tcl
  672. '
  673. ac_precious_vars='build_alias
  674. host_alias
  675. target_alias
  676. CXX
  677. CXXFLAGS
  678. LDFLAGS
  679. LIBS
  680. CPPFLAGS
  681. CCC
  682. CXXCPP'
  683. ac_subdirs_all='lib/bdlib'
  684. # Initialize some variables set by options.
  685. ac_init_help=
  686. ac_init_version=false
  687. ac_unrecognized_opts=
  688. ac_unrecognized_sep=
  689. # The variables have the same names as the options, with
  690. # dashes changed to underlines.
  691. cache_file=/dev/null
  692. exec_prefix=NONE
  693. no_create=
  694. no_recursion=
  695. prefix=NONE
  696. program_prefix=NONE
  697. program_suffix=NONE
  698. program_transform_name=s,x,x,
  699. silent=
  700. site=
  701. srcdir=
  702. verbose=
  703. x_includes=NONE
  704. x_libraries=NONE
  705. # Installation directory options.
  706. # These are left unexpanded so users can "make install exec_prefix=/foo"
  707. # and all the variables that are supposed to be based on exec_prefix
  708. # by default will actually change.
  709. # Use braces instead of parens because sh, perl, etc. also accept them.
  710. # (The list follows the same order as the GNU Coding Standards.)
  711. bindir='${exec_prefix}/bin'
  712. sbindir='${exec_prefix}/sbin'
  713. libexecdir='${exec_prefix}/libexec'
  714. datarootdir='${prefix}/share'
  715. datadir='${datarootdir}'
  716. sysconfdir='${prefix}/etc'
  717. sharedstatedir='${prefix}/com'
  718. localstatedir='${prefix}/var'
  719. includedir='${prefix}/include'
  720. oldincludedir='/usr/include'
  721. docdir='${datarootdir}/doc/${PACKAGE}'
  722. infodir='${datarootdir}/info'
  723. htmldir='${docdir}'
  724. dvidir='${docdir}'
  725. pdfdir='${docdir}'
  726. psdir='${docdir}'
  727. libdir='${exec_prefix}/lib'
  728. localedir='${datarootdir}/locale'
  729. mandir='${datarootdir}/man'
  730. ac_prev=
  731. ac_dashdash=
  732. for ac_option
  733. do
  734. # If the previous option needs an argument, assign it.
  735. if test -n "$ac_prev"; then
  736. eval $ac_prev=\$ac_option
  737. ac_prev=
  738. continue
  739. fi
  740. case $ac_option in
  741. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  742. *=) ac_optarg= ;;
  743. *) ac_optarg=yes ;;
  744. esac
  745. # Accept the important Cygnus configure options, so we can diagnose typos.
  746. case $ac_dashdash$ac_option in
  747. --)
  748. ac_dashdash=yes ;;
  749. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  750. ac_prev=bindir ;;
  751. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  752. bindir=$ac_optarg ;;
  753. -build | --build | --buil | --bui | --bu)
  754. ac_prev=build_alias ;;
  755. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  756. build_alias=$ac_optarg ;;
  757. -cache-file | --cache-file | --cache-fil | --cache-fi \
  758. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  759. ac_prev=cache_file ;;
  760. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  761. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  762. cache_file=$ac_optarg ;;
  763. --config-cache | -C)
  764. cache_file=config.cache ;;
  765. -datadir | --datadir | --datadi | --datad)
  766. ac_prev=datadir ;;
  767. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  768. datadir=$ac_optarg ;;
  769. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  770. | --dataroo | --dataro | --datar)
  771. ac_prev=datarootdir ;;
  772. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  773. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  774. datarootdir=$ac_optarg ;;
  775. -disable-* | --disable-*)
  776. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  777. # Reject names that are not valid shell variable names.
  778. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  779. as_fn_error $? "invalid feature name: $ac_useropt"
  780. ac_useropt_orig=$ac_useropt
  781. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  782. case $ac_user_opts in
  783. *"
  784. "enable_$ac_useropt"
  785. "*) ;;
  786. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  787. ac_unrecognized_sep=', ';;
  788. esac
  789. eval enable_$ac_useropt=no ;;
  790. -docdir | --docdir | --docdi | --doc | --do)
  791. ac_prev=docdir ;;
  792. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  793. docdir=$ac_optarg ;;
  794. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  795. ac_prev=dvidir ;;
  796. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  797. dvidir=$ac_optarg ;;
  798. -enable-* | --enable-*)
  799. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  800. # Reject names that are not valid shell variable names.
  801. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  802. as_fn_error $? "invalid feature name: $ac_useropt"
  803. ac_useropt_orig=$ac_useropt
  804. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  805. case $ac_user_opts in
  806. *"
  807. "enable_$ac_useropt"
  808. "*) ;;
  809. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  810. ac_unrecognized_sep=', ';;
  811. esac
  812. eval enable_$ac_useropt=\$ac_optarg ;;
  813. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  814. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  815. | --exec | --exe | --ex)
  816. ac_prev=exec_prefix ;;
  817. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  818. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  819. | --exec=* | --exe=* | --ex=*)
  820. exec_prefix=$ac_optarg ;;
  821. -gas | --gas | --ga | --g)
  822. # Obsolete; use --with-gas.
  823. with_gas=yes ;;
  824. -help | --help | --hel | --he | -h)
  825. ac_init_help=long ;;
  826. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  827. ac_init_help=recursive ;;
  828. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  829. ac_init_help=short ;;
  830. -host | --host | --hos | --ho)
  831. ac_prev=host_alias ;;
  832. -host=* | --host=* | --hos=* | --ho=*)
  833. host_alias=$ac_optarg ;;
  834. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  835. ac_prev=htmldir ;;
  836. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  837. | --ht=*)
  838. htmldir=$ac_optarg ;;
  839. -includedir | --includedir | --includedi | --included | --include \
  840. | --includ | --inclu | --incl | --inc)
  841. ac_prev=includedir ;;
  842. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  843. | --includ=* | --inclu=* | --incl=* | --inc=*)
  844. includedir=$ac_optarg ;;
  845. -infodir | --infodir | --infodi | --infod | --info | --inf)
  846. ac_prev=infodir ;;
  847. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  848. infodir=$ac_optarg ;;
  849. -libdir | --libdir | --libdi | --libd)
  850. ac_prev=libdir ;;
  851. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  852. libdir=$ac_optarg ;;
  853. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  854. | --libexe | --libex | --libe)
  855. ac_prev=libexecdir ;;
  856. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  857. | --libexe=* | --libex=* | --libe=*)
  858. libexecdir=$ac_optarg ;;
  859. -localedir | --localedir | --localedi | --localed | --locale)
  860. ac_prev=localedir ;;
  861. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  862. localedir=$ac_optarg ;;
  863. -localstatedir | --localstatedir | --localstatedi | --localstated \
  864. | --localstate | --localstat | --localsta | --localst | --locals)
  865. ac_prev=localstatedir ;;
  866. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  867. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  868. localstatedir=$ac_optarg ;;
  869. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  870. ac_prev=mandir ;;
  871. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  872. mandir=$ac_optarg ;;
  873. -nfp | --nfp | --nf)
  874. # Obsolete; use --without-fp.
  875. with_fp=no ;;
  876. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  877. | --no-cr | --no-c | -n)
  878. no_create=yes ;;
  879. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  880. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  881. no_recursion=yes ;;
  882. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  883. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  884. | --oldin | --oldi | --old | --ol | --o)
  885. ac_prev=oldincludedir ;;
  886. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  887. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  888. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  889. oldincludedir=$ac_optarg ;;
  890. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  891. ac_prev=prefix ;;
  892. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  893. prefix=$ac_optarg ;;
  894. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  895. | --program-pre | --program-pr | --program-p)
  896. ac_prev=program_prefix ;;
  897. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  898. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  899. program_prefix=$ac_optarg ;;
  900. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  901. | --program-suf | --program-su | --program-s)
  902. ac_prev=program_suffix ;;
  903. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  904. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  905. program_suffix=$ac_optarg ;;
  906. -program-transform-name | --program-transform-name \
  907. | --program-transform-nam | --program-transform-na \
  908. | --program-transform-n | --program-transform- \
  909. | --program-transform | --program-transfor \
  910. | --program-transfo | --program-transf \
  911. | --program-trans | --program-tran \
  912. | --progr-tra | --program-tr | --program-t)
  913. ac_prev=program_transform_name ;;
  914. -program-transform-name=* | --program-transform-name=* \
  915. | --program-transform-nam=* | --program-transform-na=* \
  916. | --program-transform-n=* | --program-transform-=* \
  917. | --program-transform=* | --program-transfor=* \
  918. | --program-transfo=* | --program-transf=* \
  919. | --program-trans=* | --program-tran=* \
  920. | --progr-tra=* | --program-tr=* | --program-t=*)
  921. program_transform_name=$ac_optarg ;;
  922. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  923. ac_prev=pdfdir ;;
  924. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  925. pdfdir=$ac_optarg ;;
  926. -psdir | --psdir | --psdi | --psd | --ps)
  927. ac_prev=psdir ;;
  928. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  929. psdir=$ac_optarg ;;
  930. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  931. | -silent | --silent | --silen | --sile | --sil)
  932. silent=yes ;;
  933. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  934. ac_prev=sbindir ;;
  935. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  936. | --sbi=* | --sb=*)
  937. sbindir=$ac_optarg ;;
  938. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  939. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  940. | --sharedst | --shareds | --shared | --share | --shar \
  941. | --sha | --sh)
  942. ac_prev=sharedstatedir ;;
  943. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  944. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  945. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  946. | --sha=* | --sh=*)
  947. sharedstatedir=$ac_optarg ;;
  948. -site | --site | --sit)
  949. ac_prev=site ;;
  950. -site=* | --site=* | --sit=*)
  951. site=$ac_optarg ;;
  952. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  953. ac_prev=srcdir ;;
  954. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  955. srcdir=$ac_optarg ;;
  956. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  957. | --syscon | --sysco | --sysc | --sys | --sy)
  958. ac_prev=sysconfdir ;;
  959. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  960. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  961. sysconfdir=$ac_optarg ;;
  962. -target | --target | --targe | --targ | --tar | --ta | --t)
  963. ac_prev=target_alias ;;
  964. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  965. target_alias=$ac_optarg ;;
  966. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  967. verbose=yes ;;
  968. -version | --version | --versio | --versi | --vers | -V)
  969. ac_init_version=: ;;
  970. -with-* | --with-*)
  971. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  972. # Reject names that are not valid shell variable names.
  973. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  974. as_fn_error $? "invalid package name: $ac_useropt"
  975. ac_useropt_orig=$ac_useropt
  976. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  977. case $ac_user_opts in
  978. *"
  979. "with_$ac_useropt"
  980. "*) ;;
  981. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  982. ac_unrecognized_sep=', ';;
  983. esac
  984. eval with_$ac_useropt=\$ac_optarg ;;
  985. -without-* | --without-*)
  986. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  987. # Reject names that are not valid shell variable names.
  988. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  989. as_fn_error $? "invalid package name: $ac_useropt"
  990. ac_useropt_orig=$ac_useropt
  991. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  992. case $ac_user_opts in
  993. *"
  994. "with_$ac_useropt"
  995. "*) ;;
  996. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  997. ac_unrecognized_sep=', ';;
  998. esac
  999. eval with_$ac_useropt=no ;;
  1000. --x)
  1001. # Obsolete; use --with-x.
  1002. with_x=yes ;;
  1003. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1004. | --x-incl | --x-inc | --x-in | --x-i)
  1005. ac_prev=x_includes ;;
  1006. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1007. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1008. x_includes=$ac_optarg ;;
  1009. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1010. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1011. ac_prev=x_libraries ;;
  1012. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1013. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1014. x_libraries=$ac_optarg ;;
  1015. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1016. Try \`$0 --help' for more information"
  1017. ;;
  1018. *=*)
  1019. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1020. # Reject names that are not valid shell variable names.
  1021. case $ac_envvar in #(
  1022. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1023. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1024. esac
  1025. eval $ac_envvar=\$ac_optarg
  1026. export $ac_envvar ;;
  1027. *)
  1028. # FIXME: should be removed in autoconf 3.0.
  1029. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1030. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1031. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1032. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1033. ;;
  1034. esac
  1035. done
  1036. if test -n "$ac_prev"; then
  1037. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1038. as_fn_error $? "missing argument to $ac_option"
  1039. fi
  1040. if test -n "$ac_unrecognized_opts"; then
  1041. case $enable_option_checking in
  1042. no) ;;
  1043. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1044. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1045. esac
  1046. fi
  1047. # Check all directory arguments for consistency.
  1048. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1049. datadir sysconfdir sharedstatedir localstatedir includedir \
  1050. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1051. libdir localedir mandir
  1052. do
  1053. eval ac_val=\$$ac_var
  1054. # Remove trailing slashes.
  1055. case $ac_val in
  1056. */ )
  1057. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1058. eval $ac_var=\$ac_val;;
  1059. esac
  1060. # Be sure to have absolute directory names.
  1061. case $ac_val in
  1062. [\\/$]* | ?:[\\/]* ) continue;;
  1063. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1064. esac
  1065. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1066. done
  1067. # There might be people who depend on the old broken behavior: `$host'
  1068. # used to hold the argument of --host etc.
  1069. # FIXME: To remove some day.
  1070. build=$build_alias
  1071. host=$host_alias
  1072. target=$target_alias
  1073. # FIXME: To remove some day.
  1074. if test "x$host_alias" != x; then
  1075. if test "x$build_alias" = x; then
  1076. cross_compiling=maybe
  1077. elif test "x$build_alias" != "x$host_alias"; then
  1078. cross_compiling=yes
  1079. fi
  1080. fi
  1081. ac_tool_prefix=
  1082. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1083. test "$silent" = yes && exec 6>/dev/null
  1084. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1085. ac_ls_di=`ls -di .` &&
  1086. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1087. as_fn_error $? "working directory cannot be determined"
  1088. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1089. as_fn_error $? "pwd does not report name of working directory"
  1090. # Find the source files, if location was not specified.
  1091. if test -z "$srcdir"; then
  1092. ac_srcdir_defaulted=yes
  1093. # Try the directory containing this script, then the parent directory.
  1094. ac_confdir=`$as_dirname -- "$as_myself" ||
  1095. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1096. X"$as_myself" : 'X\(//\)[^/]' \| \
  1097. X"$as_myself" : 'X\(//\)$' \| \
  1098. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1099. $as_echo X"$as_myself" |
  1100. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1101. s//\1/
  1102. q
  1103. }
  1104. /^X\(\/\/\)[^/].*/{
  1105. s//\1/
  1106. q
  1107. }
  1108. /^X\(\/\/\)$/{
  1109. s//\1/
  1110. q
  1111. }
  1112. /^X\(\/\).*/{
  1113. s//\1/
  1114. q
  1115. }
  1116. s/.*/./; q'`
  1117. srcdir=$ac_confdir
  1118. if test ! -r "$srcdir/$ac_unique_file"; then
  1119. srcdir=..
  1120. fi
  1121. else
  1122. ac_srcdir_defaulted=no
  1123. fi
  1124. if test ! -r "$srcdir/$ac_unique_file"; then
  1125. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1126. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1127. fi
  1128. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1129. ac_abs_confdir=`(
  1130. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1131. pwd)`
  1132. # When building in place, set srcdir=.
  1133. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1134. srcdir=.
  1135. fi
  1136. # Remove unnecessary trailing slashes from srcdir.
  1137. # Double slashes in file names in object file debugging info
  1138. # mess up M-x gdb in Emacs.
  1139. case $srcdir in
  1140. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1141. esac
  1142. for ac_var in $ac_precious_vars; do
  1143. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1144. eval ac_env_${ac_var}_value=\$${ac_var}
  1145. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1146. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1147. done
  1148. #
  1149. # Report the --help message.
  1150. #
  1151. if test "$ac_init_help" = "long"; then
  1152. # Omit some internal or obsolete options to make the list less imposing.
  1153. # This message is too long to be a string in the A/UX 3.1 sh.
  1154. cat <<_ACEOF
  1155. \`configure' configures this package to adapt to many kinds of systems.
  1156. Usage: $0 [OPTION]... [VAR=VALUE]...
  1157. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1158. VAR=VALUE. See below for descriptions of some of the useful variables.
  1159. Defaults for the options are specified in brackets.
  1160. Configuration:
  1161. -h, --help display this help and exit
  1162. --help=short display options specific to this package
  1163. --help=recursive display the short help of all the included packages
  1164. -V, --version display version information and exit
  1165. -q, --quiet, --silent do not print \`checking ...' messages
  1166. --cache-file=FILE cache test results in FILE [disabled]
  1167. -C, --config-cache alias for \`--cache-file=config.cache'
  1168. -n, --no-create do not create output files
  1169. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1170. Installation directories:
  1171. --prefix=PREFIX install architecture-independent files in PREFIX
  1172. [$ac_default_prefix]
  1173. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1174. [PREFIX]
  1175. By default, \`make install' will install all the files in
  1176. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1177. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1178. for instance \`--prefix=\$HOME'.
  1179. For better control, use the options below.
  1180. Fine tuning of the installation directories:
  1181. --bindir=DIR user executables [EPREFIX/bin]
  1182. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1183. --libexecdir=DIR program executables [EPREFIX/libexec]
  1184. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1185. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1186. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1187. --libdir=DIR object code libraries [EPREFIX/lib]
  1188. --includedir=DIR C header files [PREFIX/include]
  1189. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1190. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1191. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1192. --infodir=DIR info documentation [DATAROOTDIR/info]
  1193. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1194. --mandir=DIR man documentation [DATAROOTDIR/man]
  1195. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1196. --htmldir=DIR html documentation [DOCDIR]
  1197. --dvidir=DIR dvi documentation [DOCDIR]
  1198. --pdfdir=DIR pdf documentation [DOCDIR]
  1199. --psdir=DIR ps documentation [DOCDIR]
  1200. _ACEOF
  1201. cat <<\_ACEOF
  1202. _ACEOF
  1203. fi
  1204. if test -n "$ac_init_help"; then
  1205. cat <<\_ACEOF
  1206. Optional Features:
  1207. --disable-option-checking ignore unrecognized --enable/--with options
  1208. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1209. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1210. --disable-ipv6 disable IPv6 support
  1211. --disable-script-tcl disable TCL Script support
  1212. Optional Packages:
  1213. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1214. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1215. --with-openssl=PATH Path to OpenSSL
  1216. --with-tcllib=PATH full path to Tcl library
  1217. --with-tclinc=PATH full path to Tcl header
  1218. Some influential environment variables:
  1219. CXX C++ compiler command
  1220. CXXFLAGS C++ compiler flags
  1221. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1222. nonstandard directory <lib dir>
  1223. LIBS libraries to pass to the linker, e.g. -l<library>
  1224. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1225. you have headers in a nonstandard directory <include dir>
  1226. CXXCPP C++ preprocessor
  1227. Use these variables to override the choices made by `configure' or to help
  1228. it to find libraries and programs with nonstandard names/locations.
  1229. Report bugs to the package provider.
  1230. _ACEOF
  1231. ac_status=$?
  1232. fi
  1233. if test "$ac_init_help" = "recursive"; then
  1234. # If there are subdirs, report their specific --help.
  1235. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1236. test -d "$ac_dir" ||
  1237. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1238. continue
  1239. ac_builddir=.
  1240. case "$ac_dir" in
  1241. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1242. *)
  1243. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1244. # A ".." for each directory in $ac_dir_suffix.
  1245. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1246. case $ac_top_builddir_sub in
  1247. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1248. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1249. esac ;;
  1250. esac
  1251. ac_abs_top_builddir=$ac_pwd
  1252. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1253. # for backward compatibility:
  1254. ac_top_builddir=$ac_top_build_prefix
  1255. case $srcdir in
  1256. .) # We are building in place.
  1257. ac_srcdir=.
  1258. ac_top_srcdir=$ac_top_builddir_sub
  1259. ac_abs_top_srcdir=$ac_pwd ;;
  1260. [\\/]* | ?:[\\/]* ) # Absolute name.
  1261. ac_srcdir=$srcdir$ac_dir_suffix;
  1262. ac_top_srcdir=$srcdir
  1263. ac_abs_top_srcdir=$srcdir ;;
  1264. *) # Relative name.
  1265. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1266. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1267. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1268. esac
  1269. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1270. cd "$ac_dir" || { ac_status=$?; continue; }
  1271. # Check for guested configure.
  1272. if test -f "$ac_srcdir/configure.gnu"; then
  1273. echo &&
  1274. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1275. elif test -f "$ac_srcdir/configure"; then
  1276. echo &&
  1277. $SHELL "$ac_srcdir/configure" --help=recursive
  1278. else
  1279. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1280. fi || ac_status=$?
  1281. cd "$ac_pwd" || { ac_status=$?; break; }
  1282. done
  1283. fi
  1284. test -n "$ac_init_help" && exit $ac_status
  1285. if $ac_init_version; then
  1286. cat <<\_ACEOF
  1287. configure
  1288. generated by GNU Autoconf 2.69
  1289. Copyright (C) 2012 Free Software Foundation, Inc.
  1290. This configure script is free software; the Free Software Foundation
  1291. gives unlimited permission to copy, distribute and modify it.
  1292. Copyright (c) Bryan Drewery
  1293. _ACEOF
  1294. exit
  1295. fi
  1296. ## ------------------------ ##
  1297. ## Autoconf initialization. ##
  1298. ## ------------------------ ##
  1299. # ac_fn_cxx_try_compile LINENO
  1300. # ----------------------------
  1301. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1302. ac_fn_cxx_try_compile ()
  1303. {
  1304. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1305. rm -f conftest.$ac_objext
  1306. if { { ac_try="$ac_compile"
  1307. case "(($ac_try" in
  1308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1309. *) ac_try_echo=$ac_try;;
  1310. esac
  1311. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1312. $as_echo "$ac_try_echo"; } >&5
  1313. (eval "$ac_compile") 2>conftest.err
  1314. ac_status=$?
  1315. if test -s conftest.err; then
  1316. grep -v '^ *+' conftest.err >conftest.er1
  1317. cat conftest.er1 >&5
  1318. mv -f conftest.er1 conftest.err
  1319. fi
  1320. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1321. test $ac_status = 0; } && {
  1322. test -z "$ac_cxx_werror_flag" ||
  1323. test ! -s conftest.err
  1324. } && test -s conftest.$ac_objext; then :
  1325. ac_retval=0
  1326. else
  1327. $as_echo "$as_me: failed program was:" >&5
  1328. sed 's/^/| /' conftest.$ac_ext >&5
  1329. ac_retval=1
  1330. fi
  1331. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1332. as_fn_set_status $ac_retval
  1333. } # ac_fn_cxx_try_compile
  1334. # ac_fn_cxx_try_cpp LINENO
  1335. # ------------------------
  1336. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1337. ac_fn_cxx_try_cpp ()
  1338. {
  1339. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1340. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1341. case "(($ac_try" in
  1342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1343. *) ac_try_echo=$ac_try;;
  1344. esac
  1345. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1346. $as_echo "$ac_try_echo"; } >&5
  1347. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1348. ac_status=$?
  1349. if test -s conftest.err; then
  1350. grep -v '^ *+' conftest.err >conftest.er1
  1351. cat conftest.er1 >&5
  1352. mv -f conftest.er1 conftest.err
  1353. fi
  1354. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1355. test $ac_status = 0; } > conftest.i && {
  1356. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1357. test ! -s conftest.err
  1358. }; then :
  1359. ac_retval=0
  1360. else
  1361. $as_echo "$as_me: failed program was:" >&5
  1362. sed 's/^/| /' conftest.$ac_ext >&5
  1363. ac_retval=1
  1364. fi
  1365. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1366. as_fn_set_status $ac_retval
  1367. } # ac_fn_cxx_try_cpp
  1368. # ac_fn_cxx_try_run LINENO
  1369. # ------------------------
  1370. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1371. # that executables *can* be run.
  1372. ac_fn_cxx_try_run ()
  1373. {
  1374. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1375. if { { ac_try="$ac_link"
  1376. case "(($ac_try" in
  1377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1378. *) ac_try_echo=$ac_try;;
  1379. esac
  1380. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1381. $as_echo "$ac_try_echo"; } >&5
  1382. (eval "$ac_link") 2>&5
  1383. ac_status=$?
  1384. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1385. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1386. { { case "(($ac_try" in
  1387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1388. *) ac_try_echo=$ac_try;;
  1389. esac
  1390. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1391. $as_echo "$ac_try_echo"; } >&5
  1392. (eval "$ac_try") 2>&5
  1393. ac_status=$?
  1394. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1395. test $ac_status = 0; }; }; then :
  1396. ac_retval=0
  1397. else
  1398. $as_echo "$as_me: program exited with status $ac_status" >&5
  1399. $as_echo "$as_me: failed program was:" >&5
  1400. sed 's/^/| /' conftest.$ac_ext >&5
  1401. ac_retval=$ac_status
  1402. fi
  1403. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1404. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1405. as_fn_set_status $ac_retval
  1406. } # ac_fn_cxx_try_run
  1407. # ac_fn_cxx_try_link LINENO
  1408. # -------------------------
  1409. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1410. ac_fn_cxx_try_link ()
  1411. {
  1412. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1413. rm -f conftest.$ac_objext conftest$ac_exeext
  1414. if { { ac_try="$ac_link"
  1415. case "(($ac_try" in
  1416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1417. *) ac_try_echo=$ac_try;;
  1418. esac
  1419. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1420. $as_echo "$ac_try_echo"; } >&5
  1421. (eval "$ac_link") 2>conftest.err
  1422. ac_status=$?
  1423. if test -s conftest.err; then
  1424. grep -v '^ *+' conftest.err >conftest.er1
  1425. cat conftest.er1 >&5
  1426. mv -f conftest.er1 conftest.err
  1427. fi
  1428. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1429. test $ac_status = 0; } && {
  1430. test -z "$ac_cxx_werror_flag" ||
  1431. test ! -s conftest.err
  1432. } && test -s conftest$ac_exeext && {
  1433. test "$cross_compiling" = yes ||
  1434. test -x conftest$ac_exeext
  1435. }; then :
  1436. ac_retval=0
  1437. else
  1438. $as_echo "$as_me: failed program was:" >&5
  1439. sed 's/^/| /' conftest.$ac_ext >&5
  1440. ac_retval=1
  1441. fi
  1442. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1443. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1444. # interfere with the next link command; also delete a directory that is
  1445. # left behind by Apple's compiler. We do this before executing the actions.
  1446. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1447. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1448. as_fn_set_status $ac_retval
  1449. } # ac_fn_cxx_try_link
  1450. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1451. # ---------------------------------------------------------
  1452. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1453. # the include files in INCLUDES and setting the cache variable VAR
  1454. # accordingly.
  1455. ac_fn_cxx_check_header_mongrel ()
  1456. {
  1457. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1458. if eval \${$3+:} false; then :
  1459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1460. $as_echo_n "checking for $2... " >&6; }
  1461. if eval \${$3+:} false; then :
  1462. $as_echo_n "(cached) " >&6
  1463. fi
  1464. eval ac_res=\$$3
  1465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1466. $as_echo "$ac_res" >&6; }
  1467. else
  1468. # Is the header compilable?
  1469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1470. $as_echo_n "checking $2 usability... " >&6; }
  1471. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1472. /* end build/confdefs.h. */
  1473. $4
  1474. #include <$2>
  1475. _ACEOF
  1476. if ac_fn_cxx_try_compile "$LINENO"; then :
  1477. ac_header_compiler=yes
  1478. else
  1479. ac_header_compiler=no
  1480. fi
  1481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1483. $as_echo "$ac_header_compiler" >&6; }
  1484. # Is the header present?
  1485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1486. $as_echo_n "checking $2 presence... " >&6; }
  1487. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1488. /* end build/confdefs.h. */
  1489. #include <$2>
  1490. _ACEOF
  1491. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1492. ac_header_preproc=yes
  1493. else
  1494. ac_header_preproc=no
  1495. fi
  1496. rm -f conftest.err conftest.i conftest.$ac_ext
  1497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1498. $as_echo "$ac_header_preproc" >&6; }
  1499. # So? What about this header?
  1500. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1501. yes:no: )
  1502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1503. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1505. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1506. ;;
  1507. no:yes:* )
  1508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1509. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1511. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1513. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1515. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1517. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1518. ;;
  1519. esac
  1520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1521. $as_echo_n "checking for $2... " >&6; }
  1522. if eval \${$3+:} false; then :
  1523. $as_echo_n "(cached) " >&6
  1524. else
  1525. eval "$3=\$ac_header_compiler"
  1526. fi
  1527. eval ac_res=\$$3
  1528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1529. $as_echo "$ac_res" >&6; }
  1530. fi
  1531. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1532. } # ac_fn_cxx_check_header_mongrel
  1533. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1534. # ---------------------------------------------------------
  1535. # Tests whether HEADER exists and can be compiled using the include files in
  1536. # INCLUDES, setting the cache variable VAR accordingly.
  1537. ac_fn_cxx_check_header_compile ()
  1538. {
  1539. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1541. $as_echo_n "checking for $2... " >&6; }
  1542. if eval \${$3+:} false; then :
  1543. $as_echo_n "(cached) " >&6
  1544. else
  1545. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1546. /* end build/confdefs.h. */
  1547. $4
  1548. #include <$2>
  1549. _ACEOF
  1550. if ac_fn_cxx_try_compile "$LINENO"; then :
  1551. eval "$3=yes"
  1552. else
  1553. eval "$3=no"
  1554. fi
  1555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1556. fi
  1557. eval ac_res=\$$3
  1558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1559. $as_echo "$ac_res" >&6; }
  1560. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1561. } # ac_fn_cxx_check_header_compile
  1562. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1563. # ---------------------------------------------
  1564. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1565. # variable VAR accordingly.
  1566. ac_fn_cxx_check_type ()
  1567. {
  1568. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1570. $as_echo_n "checking for $2... " >&6; }
  1571. if eval \${$3+:} false; then :
  1572. $as_echo_n "(cached) " >&6
  1573. else
  1574. eval "$3=no"
  1575. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1576. /* end build/confdefs.h. */
  1577. $4
  1578. int
  1579. main ()
  1580. {
  1581. if (sizeof ($2))
  1582. return 0;
  1583. ;
  1584. return 0;
  1585. }
  1586. _ACEOF
  1587. if ac_fn_cxx_try_compile "$LINENO"; then :
  1588. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1589. /* end build/confdefs.h. */
  1590. $4
  1591. int
  1592. main ()
  1593. {
  1594. if (sizeof (($2)))
  1595. return 0;
  1596. ;
  1597. return 0;
  1598. }
  1599. _ACEOF
  1600. if ac_fn_cxx_try_compile "$LINENO"; then :
  1601. else
  1602. eval "$3=yes"
  1603. fi
  1604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1605. fi
  1606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1607. fi
  1608. eval ac_res=\$$3
  1609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1610. $as_echo "$ac_res" >&6; }
  1611. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1612. } # ac_fn_cxx_check_type
  1613. # ac_fn_c_find_intX_t LINENO BITS VAR
  1614. # -----------------------------------
  1615. # Finds a signed integer type with width BITS, setting cache variable VAR
  1616. # accordingly.
  1617. ac_fn_c_find_intX_t ()
  1618. {
  1619. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1621. $as_echo_n "checking for int$2_t... " >&6; }
  1622. if eval \${$3+:} false; then :
  1623. $as_echo_n "(cached) " >&6
  1624. else
  1625. eval "$3=no"
  1626. # Order is important - never check a type that is potentially smaller
  1627. # than half of the expected target width.
  1628. for ac_type in int$2_t 'int' 'long int' \
  1629. 'long long int' 'short int' 'signed char'; do
  1630. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1631. /* end build/confdefs.h. */
  1632. $ac_includes_default
  1633. enum { N = $2 / 2 - 1 };
  1634. int
  1635. main ()
  1636. {
  1637. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1638. test_array [0] = 0;
  1639. return test_array [0];
  1640. ;
  1641. return 0;
  1642. }
  1643. _ACEOF
  1644. if ac_fn_cxx_try_compile "$LINENO"; then :
  1645. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1646. /* end build/confdefs.h. */
  1647. $ac_includes_default
  1648. enum { N = $2 / 2 - 1 };
  1649. int
  1650. main ()
  1651. {
  1652. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1653. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1654. test_array [0] = 0;
  1655. return test_array [0];
  1656. ;
  1657. return 0;
  1658. }
  1659. _ACEOF
  1660. if ac_fn_cxx_try_compile "$LINENO"; then :
  1661. else
  1662. case $ac_type in #(
  1663. int$2_t) :
  1664. eval "$3=yes" ;; #(
  1665. *) :
  1666. eval "$3=\$ac_type" ;;
  1667. esac
  1668. fi
  1669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1670. fi
  1671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1672. if eval test \"x\$"$3"\" = x"no"; then :
  1673. else
  1674. break
  1675. fi
  1676. done
  1677. fi
  1678. eval ac_res=\$$3
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1680. $as_echo "$ac_res" >&6; }
  1681. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1682. } # ac_fn_c_find_intX_t
  1683. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1684. # ------------------------------------
  1685. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1686. # accordingly.
  1687. ac_fn_c_find_uintX_t ()
  1688. {
  1689. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1691. $as_echo_n "checking for uint$2_t... " >&6; }
  1692. if eval \${$3+:} false; then :
  1693. $as_echo_n "(cached) " >&6
  1694. else
  1695. eval "$3=no"
  1696. # Order is important - never check a type that is potentially smaller
  1697. # than half of the expected target width.
  1698. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1699. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1700. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1701. /* end build/confdefs.h. */
  1702. $ac_includes_default
  1703. int
  1704. main ()
  1705. {
  1706. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1707. test_array [0] = 0;
  1708. return test_array [0];
  1709. ;
  1710. return 0;
  1711. }
  1712. _ACEOF
  1713. if ac_fn_cxx_try_compile "$LINENO"; then :
  1714. case $ac_type in #(
  1715. uint$2_t) :
  1716. eval "$3=yes" ;; #(
  1717. *) :
  1718. eval "$3=\$ac_type" ;;
  1719. esac
  1720. fi
  1721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1722. if eval test \"x\$"$3"\" = x"no"; then :
  1723. else
  1724. break
  1725. fi
  1726. done
  1727. fi
  1728. eval ac_res=\$$3
  1729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1730. $as_echo "$ac_res" >&6; }
  1731. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1732. } # ac_fn_c_find_uintX_t
  1733. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  1734. # ------------------------------------------------------
  1735. # Tries to find if the field MEMBER exists in type AGGR, after including
  1736. # INCLUDES, setting cache variable VAR accordingly.
  1737. ac_fn_cxx_check_member ()
  1738. {
  1739. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1741. $as_echo_n "checking for $2.$3... " >&6; }
  1742. if eval \${$4+:} false; then :
  1743. $as_echo_n "(cached) " >&6
  1744. else
  1745. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1746. /* end build/confdefs.h. */
  1747. $5
  1748. int
  1749. main ()
  1750. {
  1751. static $2 ac_aggr;
  1752. if (ac_aggr.$3)
  1753. return 0;
  1754. ;
  1755. return 0;
  1756. }
  1757. _ACEOF
  1758. if ac_fn_cxx_try_compile "$LINENO"; then :
  1759. eval "$4=yes"
  1760. else
  1761. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1762. /* end build/confdefs.h. */
  1763. $5
  1764. int
  1765. main ()
  1766. {
  1767. static $2 ac_aggr;
  1768. if (sizeof ac_aggr.$3)
  1769. return 0;
  1770. ;
  1771. return 0;
  1772. }
  1773. _ACEOF
  1774. if ac_fn_cxx_try_compile "$LINENO"; then :
  1775. eval "$4=yes"
  1776. else
  1777. eval "$4=no"
  1778. fi
  1779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1780. fi
  1781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1782. fi
  1783. eval ac_res=\$$4
  1784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1785. $as_echo "$ac_res" >&6; }
  1786. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1787. } # ac_fn_cxx_check_member
  1788. # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
  1789. # -----------------------------------------------
  1790. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1791. # accordingly.
  1792. ac_fn_cxx_check_decl ()
  1793. {
  1794. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1795. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1796. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1798. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1799. if eval \${$3+:} false; then :
  1800. $as_echo_n "(cached) " >&6
  1801. else
  1802. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1803. /* end build/confdefs.h. */
  1804. $4
  1805. int
  1806. main ()
  1807. {
  1808. #ifndef $as_decl_name
  1809. #ifdef __cplusplus
  1810. (void) $as_decl_use;
  1811. #else
  1812. (void) $as_decl_name;
  1813. #endif
  1814. #endif
  1815. ;
  1816. return 0;
  1817. }
  1818. _ACEOF
  1819. if ac_fn_cxx_try_compile "$LINENO"; then :
  1820. eval "$3=yes"
  1821. else
  1822. eval "$3=no"
  1823. fi
  1824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1825. fi
  1826. eval ac_res=\$$3
  1827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1828. $as_echo "$ac_res" >&6; }
  1829. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1830. } # ac_fn_cxx_check_decl
  1831. # ac_fn_cxx_check_func LINENO FUNC VAR
  1832. # ------------------------------------
  1833. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1834. ac_fn_cxx_check_func ()
  1835. {
  1836. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1838. $as_echo_n "checking for $2... " >&6; }
  1839. if eval \${$3+:} false; then :
  1840. $as_echo_n "(cached) " >&6
  1841. else
  1842. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1843. /* end build/confdefs.h. */
  1844. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1845. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1846. #define $2 innocuous_$2
  1847. /* System header to define __stub macros and hopefully few prototypes,
  1848. which can conflict with char $2 (); below.
  1849. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1850. <limits.h> exists even on freestanding compilers. */
  1851. #ifdef __STDC__
  1852. # include <limits.h>
  1853. #else
  1854. # include <assert.h>
  1855. #endif
  1856. #undef $2
  1857. /* Override any GCC internal prototype to avoid an error.
  1858. Use char because int might match the return type of a GCC
  1859. builtin and then its argument prototype would still apply. */
  1860. #ifdef __cplusplus
  1861. extern "C"
  1862. #endif
  1863. char $2 ();
  1864. /* The GNU C library defines this for functions which it implements
  1865. to always fail with ENOSYS. Some functions are actually named
  1866. something starting with __ and the normal name is an alias. */
  1867. #if defined __stub_$2 || defined __stub___$2
  1868. choke me
  1869. #endif
  1870. int
  1871. main ()
  1872. {
  1873. return $2 ();
  1874. ;
  1875. return 0;
  1876. }
  1877. _ACEOF
  1878. if ac_fn_cxx_try_link "$LINENO"; then :
  1879. eval "$3=yes"
  1880. else
  1881. eval "$3=no"
  1882. fi
  1883. rm -f core conftest.err conftest.$ac_objext \
  1884. conftest$ac_exeext conftest.$ac_ext
  1885. fi
  1886. eval ac_res=\$$3
  1887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1888. $as_echo "$ac_res" >&6; }
  1889. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1890. } # ac_fn_cxx_check_func
  1891. cat >build/config.log <<_ACEOF
  1892. This file contains any messages produced by compilers while
  1893. running configure, to aid debugging if configure makes a mistake.
  1894. It was created by $as_me, which was
  1895. generated by GNU Autoconf 2.69. Invocation command line was
  1896. $ $0 $@
  1897. _ACEOF
  1898. exec 5>>build/config.log
  1899. {
  1900. cat <<_ASUNAME
  1901. ## --------- ##
  1902. ## Platform. ##
  1903. ## --------- ##
  1904. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1905. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1906. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1907. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1908. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1909. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1910. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1911. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1912. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1913. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1914. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1915. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1916. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1917. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1918. _ASUNAME
  1919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1920. for as_dir in $PATH
  1921. do
  1922. IFS=$as_save_IFS
  1923. test -z "$as_dir" && as_dir=.
  1924. $as_echo "PATH: $as_dir"
  1925. done
  1926. IFS=$as_save_IFS
  1927. } >&5
  1928. cat >&5 <<_ACEOF
  1929. ## ----------- ##
  1930. ## Core tests. ##
  1931. ## ----------- ##
  1932. _ACEOF
  1933. # Keep a trace of the command line.
  1934. # Strip out --no-create and --no-recursion so they do not pile up.
  1935. # Strip out --silent because we don't want to record it for future runs.
  1936. # Also quote any args containing shell meta-characters.
  1937. # Make two passes to allow for proper duplicate-argument suppression.
  1938. ac_configure_args=
  1939. ac_configure_args0=
  1940. ac_configure_args1=
  1941. ac_must_keep_next=false
  1942. for ac_pass in 1 2
  1943. do
  1944. for ac_arg
  1945. do
  1946. case $ac_arg in
  1947. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1948. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1949. | -silent | --silent | --silen | --sile | --sil)
  1950. continue ;;
  1951. *\'*)
  1952. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1953. esac
  1954. case $ac_pass in
  1955. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1956. 2)
  1957. as_fn_append ac_configure_args1 " '$ac_arg'"
  1958. if test $ac_must_keep_next = true; then
  1959. ac_must_keep_next=false # Got value, back to normal.
  1960. else
  1961. case $ac_arg in
  1962. *=* | --config-cache | -C | -disable-* | --disable-* \
  1963. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1964. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1965. | -with-* | --with-* | -without-* | --without-* | --x)
  1966. case "$ac_configure_args0 " in
  1967. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1968. esac
  1969. ;;
  1970. -* ) ac_must_keep_next=true ;;
  1971. esac
  1972. fi
  1973. as_fn_append ac_configure_args " '$ac_arg'"
  1974. ;;
  1975. esac
  1976. done
  1977. done
  1978. { ac_configure_args0=; unset ac_configure_args0;}
  1979. { ac_configure_args1=; unset ac_configure_args1;}
  1980. # When interrupted or exit'd, cleanup temporary files, and complete
  1981. # build/config.log. We remove comments because anyway the quotes in there
  1982. # would cause problems or look ugly.
  1983. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1984. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1985. trap 'exit_status=$?
  1986. # Save into build/config.log some information that might help in debugging.
  1987. {
  1988. echo
  1989. $as_echo "## ---------------- ##
  1990. ## Cache variables. ##
  1991. ## ---------------- ##"
  1992. echo
  1993. # The following way of writing the cache mishandles newlines in values,
  1994. (
  1995. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1996. eval ac_val=\$$ac_var
  1997. case $ac_val in #(
  1998. *${as_nl}*)
  1999. case $ac_var in #(
  2000. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2001. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2002. esac
  2003. case $ac_var in #(
  2004. _ | IFS | as_nl) ;; #(
  2005. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2006. *) { eval $ac_var=; unset $ac_var;} ;;
  2007. esac ;;
  2008. esac
  2009. done
  2010. (set) 2>&1 |
  2011. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2012. *${as_nl}ac_space=\ *)
  2013. sed -n \
  2014. "s/'\''/'\''\\\\'\'''\''/g;
  2015. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2016. ;; #(
  2017. *)
  2018. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2019. ;;
  2020. esac |
  2021. sort
  2022. )
  2023. echo
  2024. $as_echo "## ----------------- ##
  2025. ## Output variables. ##
  2026. ## ----------------- ##"
  2027. echo
  2028. for ac_var in $ac_subst_vars
  2029. do
  2030. eval ac_val=\$$ac_var
  2031. case $ac_val in
  2032. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2033. esac
  2034. $as_echo "$ac_var='\''$ac_val'\''"
  2035. done | sort
  2036. echo
  2037. if test -n "$ac_subst_files"; then
  2038. $as_echo "## ------------------- ##
  2039. ## File substitutions. ##
  2040. ## ------------------- ##"
  2041. echo
  2042. for ac_var in $ac_subst_files
  2043. do
  2044. eval ac_val=\$$ac_var
  2045. case $ac_val in
  2046. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2047. esac
  2048. $as_echo "$ac_var='\''$ac_val'\''"
  2049. done | sort
  2050. echo
  2051. fi
  2052. if test -s build/confdefs.h; then
  2053. $as_echo "## ----------- ##
  2054. ## build/confdefs.h. ##
  2055. ## ----------- ##"
  2056. echo
  2057. cat build/confdefs.h
  2058. echo
  2059. fi
  2060. test "$ac_signal" != 0 &&
  2061. $as_echo "$as_me: caught signal $ac_signal"
  2062. $as_echo "$as_me: exit $exit_status"
  2063. } >&5
  2064. rm -f core *.core core.conftest.* &&
  2065. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2066. exit $exit_status
  2067. ' 0
  2068. for ac_signal in 1 2 13 15; do
  2069. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2070. done
  2071. ac_signal=0
  2072. # build/confdefs.h avoids OS command line length limits that DEFS can exceed.
  2073. rm -f -r conftest* build/confdefs.h
  2074. $as_echo "/* build/confdefs.h */" > build/confdefs.h
  2075. # Predefined preprocessor variables.
  2076. cat >>build/confdefs.h <<_ACEOF
  2077. #define PACKAGE_NAME "$PACKAGE_NAME"
  2078. _ACEOF
  2079. cat >>build/confdefs.h <<_ACEOF
  2080. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2081. _ACEOF
  2082. cat >>build/confdefs.h <<_ACEOF
  2083. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2084. _ACEOF
  2085. cat >>build/confdefs.h <<_ACEOF
  2086. #define PACKAGE_STRING "$PACKAGE_STRING"
  2087. _ACEOF
  2088. cat >>build/confdefs.h <<_ACEOF
  2089. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2090. _ACEOF
  2091. cat >>build/confdefs.h <<_ACEOF
  2092. #define PACKAGE_URL "$PACKAGE_URL"
  2093. _ACEOF
  2094. # Let the site file select an alternate cache file if it wants to.
  2095. # Prefer an explicitly selected file to automatically selected ones.
  2096. ac_site_file1=NONE
  2097. ac_site_file2=NONE
  2098. if test -n "$CONFIG_SITE"; then
  2099. # We do not want a PATH search for config.site.
  2100. case $CONFIG_SITE in #((
  2101. -*) ac_site_file1=./$CONFIG_SITE;;
  2102. */*) ac_site_file1=$CONFIG_SITE;;
  2103. *) ac_site_file1=./$CONFIG_SITE;;
  2104. esac
  2105. elif test "x$prefix" != xNONE; then
  2106. ac_site_file1=$prefix/share/config.site
  2107. ac_site_file2=$prefix/etc/config.site
  2108. else
  2109. ac_site_file1=$ac_default_prefix/share/config.site
  2110. ac_site_file2=$ac_default_prefix/etc/config.site
  2111. fi
  2112. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2113. do
  2114. test "x$ac_site_file" = xNONE && continue
  2115. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2117. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2118. sed 's/^/| /' "$ac_site_file" >&5
  2119. . "$ac_site_file" \
  2120. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2121. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2122. as_fn_error $? "failed to load site script $ac_site_file
  2123. See \`build/config.log' for more details" "$LINENO" 5; }
  2124. fi
  2125. done
  2126. if test -r "$cache_file"; then
  2127. # Some versions of bash will fail to source /dev/null (special files
  2128. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2129. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2131. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2132. case $cache_file in
  2133. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2134. *) . "./$cache_file";;
  2135. esac
  2136. fi
  2137. else
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2139. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2140. >$cache_file
  2141. fi
  2142. as_fn_append ac_header_list " sys/time.h"
  2143. as_fn_append ac_header_list " unistd.h"
  2144. as_fn_append ac_func_list " alarm"
  2145. as_fn_append ac_header_list " stdlib.h"
  2146. as_fn_append ac_header_list " sys/param.h"
  2147. # Check that the precious variables saved in the cache have kept the same
  2148. # value.
  2149. ac_cache_corrupted=false
  2150. for ac_var in $ac_precious_vars; do
  2151. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2152. eval ac_new_set=\$ac_env_${ac_var}_set
  2153. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2154. eval ac_new_val=\$ac_env_${ac_var}_value
  2155. case $ac_old_set,$ac_new_set in
  2156. set,)
  2157. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2158. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2159. ac_cache_corrupted=: ;;
  2160. ,set)
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2162. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2163. ac_cache_corrupted=: ;;
  2164. ,);;
  2165. *)
  2166. if test "x$ac_old_val" != "x$ac_new_val"; then
  2167. # differences in whitespace do not lead to failure.
  2168. ac_old_val_w=`echo x $ac_old_val`
  2169. ac_new_val_w=`echo x $ac_new_val`
  2170. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2171. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2172. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2173. ac_cache_corrupted=:
  2174. else
  2175. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2176. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2177. eval $ac_var=\$ac_old_val
  2178. fi
  2179. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2180. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2182. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2183. fi;;
  2184. esac
  2185. # Pass precious variables to build/config.status.
  2186. if test "$ac_new_set" = set; then
  2187. case $ac_new_val in
  2188. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2189. *) ac_arg=$ac_var=$ac_new_val ;;
  2190. esac
  2191. case " $ac_configure_args " in
  2192. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2193. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2194. esac
  2195. fi
  2196. done
  2197. if $ac_cache_corrupted; then
  2198. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2199. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2201. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2202. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2203. fi
  2204. ## -------------------- ##
  2205. ## Main body of script. ##
  2206. ## -------------------- ##
  2207. ac_ext=c
  2208. ac_cpp='$CPP $CPPFLAGS'
  2209. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2210. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2211. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2212. ac_config_headers="$ac_config_headers src/config.h"
  2213. ac_aux_dir=
  2214. for ac_dir in build/autotools "$srcdir"/build/autotools; do
  2215. if test -f "$ac_dir/install-sh"; then
  2216. ac_aux_dir=$ac_dir
  2217. ac_install_sh="$ac_aux_dir/install-sh -c"
  2218. break
  2219. elif test -f "$ac_dir/install.sh"; then
  2220. ac_aux_dir=$ac_dir
  2221. ac_install_sh="$ac_aux_dir/install.sh -c"
  2222. break
  2223. elif test -f "$ac_dir/shtool"; then
  2224. ac_aux_dir=$ac_dir
  2225. ac_install_sh="$ac_aux_dir/shtool install -c"
  2226. break
  2227. fi
  2228. done
  2229. if test -z "$ac_aux_dir"; then
  2230. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build/autotools \"$srcdir\"/build/autotools" "$LINENO" 5
  2231. fi
  2232. # These three variables are undocumented and unsupported,
  2233. # and are intended to be withdrawn in a future Autoconf release.
  2234. # They can cause serious problems if a builder's source tree is in a directory
  2235. # whose full name contains unusual characters.
  2236. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2237. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2238. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2239. # Remove --cache-file and --srcdir arguments so they do not pile up.
  2240. egg_ac_parameters=
  2241. ac_prev=
  2242. for ac_arg in $ac_configure_args; do
  2243. if test -n "$ac_prev"; then
  2244. ac_prev=
  2245. continue
  2246. fi
  2247. case $ac_arg in
  2248. -cache-file | --cache-file | --cache-fil | --cache-fi \
  2249. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  2250. ac_prev=cache_file ;;
  2251. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  2252. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  2253. | --c=*)
  2254. ;;
  2255. --config-cache | -C)
  2256. ;;
  2257. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  2258. ac_prev=srcdir ;;
  2259. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  2260. ;;
  2261. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  2262. esac
  2263. done
  2264. # Setup build environment
  2265. #AC_REQUIRE_CPP
  2266. ac_ext=cpp
  2267. ac_cpp='$CXXCPP $CPPFLAGS'
  2268. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2269. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2270. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2271. ac_ext=cpp
  2272. ac_cpp='$CXXCPP $CPPFLAGS'
  2273. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2274. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2275. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2276. if test -z "$CXX"; then
  2277. if test -n "$CCC"; then
  2278. CXX=$CCC
  2279. else
  2280. if test -n "$ac_tool_prefix"; then
  2281. for ac_prog in g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 clang++ g++46 g++-4.6 g++45 g++-4.5 g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 eg++ g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2282. do
  2283. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2284. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2286. $as_echo_n "checking for $ac_word... " >&6; }
  2287. if ${ac_cv_prog_CXX+:} false; then :
  2288. $as_echo_n "(cached) " >&6
  2289. else
  2290. if test -n "$CXX"; then
  2291. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2292. else
  2293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2294. for as_dir in $PATH
  2295. do
  2296. IFS=$as_save_IFS
  2297. test -z "$as_dir" && as_dir=.
  2298. for ac_exec_ext in '' $ac_executable_extensions; do
  2299. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2300. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2301. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2302. break 2
  2303. fi
  2304. done
  2305. done
  2306. IFS=$as_save_IFS
  2307. fi
  2308. fi
  2309. CXX=$ac_cv_prog_CXX
  2310. if test -n "$CXX"; then
  2311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2312. $as_echo "$CXX" >&6; }
  2313. else
  2314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2315. $as_echo "no" >&6; }
  2316. fi
  2317. test -n "$CXX" && break
  2318. done
  2319. fi
  2320. if test -z "$CXX"; then
  2321. ac_ct_CXX=$CXX
  2322. for ac_prog in g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 clang++ g++46 g++-4.6 g++45 g++-4.5 g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 eg++ g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2323. do
  2324. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2325. set dummy $ac_prog; ac_word=$2
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2327. $as_echo_n "checking for $ac_word... " >&6; }
  2328. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2329. $as_echo_n "(cached) " >&6
  2330. else
  2331. if test -n "$ac_ct_CXX"; then
  2332. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2333. else
  2334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2335. for as_dir in $PATH
  2336. do
  2337. IFS=$as_save_IFS
  2338. test -z "$as_dir" && as_dir=.
  2339. for ac_exec_ext in '' $ac_executable_extensions; do
  2340. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2341. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2342. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2343. break 2
  2344. fi
  2345. done
  2346. done
  2347. IFS=$as_save_IFS
  2348. fi
  2349. fi
  2350. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2351. if test -n "$ac_ct_CXX"; then
  2352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2353. $as_echo "$ac_ct_CXX" >&6; }
  2354. else
  2355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2356. $as_echo "no" >&6; }
  2357. fi
  2358. test -n "$ac_ct_CXX" && break
  2359. done
  2360. if test "x$ac_ct_CXX" = x; then
  2361. CXX="g++"
  2362. else
  2363. case $cross_compiling:$ac_tool_warned in
  2364. yes:)
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2366. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2367. ac_tool_warned=yes ;;
  2368. esac
  2369. CXX=$ac_ct_CXX
  2370. fi
  2371. fi
  2372. fi
  2373. fi
  2374. # Provide some information about the compiler.
  2375. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2376. set X $ac_compile
  2377. ac_compiler=$2
  2378. for ac_option in --version -v -V -qversion; do
  2379. { { ac_try="$ac_compiler $ac_option >&5"
  2380. case "(($ac_try" in
  2381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2382. *) ac_try_echo=$ac_try;;
  2383. esac
  2384. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2385. $as_echo "$ac_try_echo"; } >&5
  2386. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2387. ac_status=$?
  2388. if test -s conftest.err; then
  2389. sed '10a\
  2390. ... rest of stderr output deleted ...
  2391. 10q' conftest.err >conftest.er1
  2392. cat conftest.er1 >&5
  2393. fi
  2394. rm -f conftest.er1 conftest.err
  2395. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2396. test $ac_status = 0; }
  2397. done
  2398. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2399. /* end build/confdefs.h. */
  2400. int
  2401. main ()
  2402. {
  2403. ;
  2404. return 0;
  2405. }
  2406. _ACEOF
  2407. ac_clean_files_save=$ac_clean_files
  2408. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2409. # Try to create an executable without -o first, disregard a.out.
  2410. # It will help us diagnose broken compilers, and finding out an intuition
  2411. # of exeext.
  2412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2413. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2414. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2415. # The possible output files:
  2416. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2417. ac_rmfiles=
  2418. for ac_file in $ac_files
  2419. do
  2420. case $ac_file in
  2421. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2422. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2423. esac
  2424. done
  2425. rm -f $ac_rmfiles
  2426. if { { ac_try="$ac_link_default"
  2427. case "(($ac_try" in
  2428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2429. *) ac_try_echo=$ac_try;;
  2430. esac
  2431. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2432. $as_echo "$ac_try_echo"; } >&5
  2433. (eval "$ac_link_default") 2>&5
  2434. ac_status=$?
  2435. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2436. test $ac_status = 0; }; then :
  2437. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2438. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2439. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2440. # so that the user can short-circuit this test for compilers unknown to
  2441. # Autoconf.
  2442. for ac_file in $ac_files ''
  2443. do
  2444. test -f "$ac_file" || continue
  2445. case $ac_file in
  2446. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2447. ;;
  2448. [ab].out )
  2449. # We found the default executable, but exeext='' is most
  2450. # certainly right.
  2451. break;;
  2452. *.* )
  2453. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2454. then :; else
  2455. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2456. fi
  2457. # We set ac_cv_exeext here because the later test for it is not
  2458. # safe: cross compilers may not add the suffix if given an `-o'
  2459. # argument, so we may need to know it at that point already.
  2460. # Even if this section looks crufty: it has the advantage of
  2461. # actually working.
  2462. break;;
  2463. * )
  2464. break;;
  2465. esac
  2466. done
  2467. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2468. else
  2469. ac_file=''
  2470. fi
  2471. if test -z "$ac_file"; then :
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2473. $as_echo "no" >&6; }
  2474. $as_echo "$as_me: failed program was:" >&5
  2475. sed 's/^/| /' conftest.$ac_ext >&5
  2476. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2477. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2478. as_fn_error 77 "C++ compiler cannot create executables
  2479. See \`build/config.log' for more details" "$LINENO" 5; }
  2480. else
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2482. $as_echo "yes" >&6; }
  2483. fi
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2485. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2487. $as_echo "$ac_file" >&6; }
  2488. ac_exeext=$ac_cv_exeext
  2489. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2490. ac_clean_files=$ac_clean_files_save
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2492. $as_echo_n "checking for suffix of executables... " >&6; }
  2493. if { { ac_try="$ac_link"
  2494. case "(($ac_try" in
  2495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2496. *) ac_try_echo=$ac_try;;
  2497. esac
  2498. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2499. $as_echo "$ac_try_echo"; } >&5
  2500. (eval "$ac_link") 2>&5
  2501. ac_status=$?
  2502. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2503. test $ac_status = 0; }; then :
  2504. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2505. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2506. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2507. # `rm'.
  2508. for ac_file in conftest.exe conftest conftest.*; do
  2509. test -f "$ac_file" || continue
  2510. case $ac_file in
  2511. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2512. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2513. break;;
  2514. * ) break;;
  2515. esac
  2516. done
  2517. else
  2518. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2519. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2520. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2521. See \`build/config.log' for more details" "$LINENO" 5; }
  2522. fi
  2523. rm -f conftest conftest$ac_cv_exeext
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2525. $as_echo "$ac_cv_exeext" >&6; }
  2526. rm -f conftest.$ac_ext
  2527. EXEEXT=$ac_cv_exeext
  2528. ac_exeext=$EXEEXT
  2529. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2530. /* end build/confdefs.h. */
  2531. #include <stdio.h>
  2532. int
  2533. main ()
  2534. {
  2535. FILE *f = fopen ("conftest.out", "w");
  2536. return ferror (f) || fclose (f) != 0;
  2537. ;
  2538. return 0;
  2539. }
  2540. _ACEOF
  2541. ac_clean_files="$ac_clean_files conftest.out"
  2542. # Check that the compiler produces executables we can run. If not, either
  2543. # the compiler is broken, or we cross compile.
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2545. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2546. if test "$cross_compiling" != yes; then
  2547. { { ac_try="$ac_link"
  2548. case "(($ac_try" in
  2549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2550. *) ac_try_echo=$ac_try;;
  2551. esac
  2552. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2553. $as_echo "$ac_try_echo"; } >&5
  2554. (eval "$ac_link") 2>&5
  2555. ac_status=$?
  2556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2557. test $ac_status = 0; }
  2558. if { ac_try='./conftest$ac_cv_exeext'
  2559. { { case "(($ac_try" in
  2560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2561. *) ac_try_echo=$ac_try;;
  2562. esac
  2563. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2564. $as_echo "$ac_try_echo"; } >&5
  2565. (eval "$ac_try") 2>&5
  2566. ac_status=$?
  2567. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2568. test $ac_status = 0; }; }; then
  2569. cross_compiling=no
  2570. else
  2571. if test "$cross_compiling" = maybe; then
  2572. cross_compiling=yes
  2573. else
  2574. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2575. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2576. as_fn_error $? "cannot run C++ compiled programs.
  2577. If you meant to cross compile, use \`--host'.
  2578. See \`build/config.log' for more details" "$LINENO" 5; }
  2579. fi
  2580. fi
  2581. fi
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2583. $as_echo "$cross_compiling" >&6; }
  2584. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2585. ac_clean_files=$ac_clean_files_save
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2587. $as_echo_n "checking for suffix of object files... " >&6; }
  2588. if ${ac_cv_objext+:} false; then :
  2589. $as_echo_n "(cached) " >&6
  2590. else
  2591. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2592. /* end build/confdefs.h. */
  2593. int
  2594. main ()
  2595. {
  2596. ;
  2597. return 0;
  2598. }
  2599. _ACEOF
  2600. rm -f conftest.o conftest.obj
  2601. if { { ac_try="$ac_compile"
  2602. case "(($ac_try" in
  2603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2604. *) ac_try_echo=$ac_try;;
  2605. esac
  2606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2607. $as_echo "$ac_try_echo"; } >&5
  2608. (eval "$ac_compile") 2>&5
  2609. ac_status=$?
  2610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2611. test $ac_status = 0; }; then :
  2612. for ac_file in conftest.o conftest.obj conftest.*; do
  2613. test -f "$ac_file" || continue;
  2614. case $ac_file in
  2615. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2616. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2617. break;;
  2618. esac
  2619. done
  2620. else
  2621. $as_echo "$as_me: failed program was:" >&5
  2622. sed 's/^/| /' conftest.$ac_ext >&5
  2623. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2624. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2625. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2626. See \`build/config.log' for more details" "$LINENO" 5; }
  2627. fi
  2628. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2629. fi
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2631. $as_echo "$ac_cv_objext" >&6; }
  2632. OBJEXT=$ac_cv_objext
  2633. ac_objext=$OBJEXT
  2634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2635. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2636. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  2637. $as_echo_n "(cached) " >&6
  2638. else
  2639. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2640. /* end build/confdefs.h. */
  2641. int
  2642. main ()
  2643. {
  2644. #ifndef __GNUC__
  2645. choke me
  2646. #endif
  2647. ;
  2648. return 0;
  2649. }
  2650. _ACEOF
  2651. if ac_fn_cxx_try_compile "$LINENO"; then :
  2652. ac_compiler_gnu=yes
  2653. else
  2654. ac_compiler_gnu=no
  2655. fi
  2656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2657. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2658. fi
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2660. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2661. if test $ac_compiler_gnu = yes; then
  2662. GXX=yes
  2663. else
  2664. GXX=
  2665. fi
  2666. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2667. ac_save_CXXFLAGS=$CXXFLAGS
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2669. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2670. if ${ac_cv_prog_cxx_g+:} false; then :
  2671. $as_echo_n "(cached) " >&6
  2672. else
  2673. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2674. ac_cxx_werror_flag=yes
  2675. ac_cv_prog_cxx_g=no
  2676. CXXFLAGS="-g"
  2677. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2678. /* end build/confdefs.h. */
  2679. int
  2680. main ()
  2681. {
  2682. ;
  2683. return 0;
  2684. }
  2685. _ACEOF
  2686. if ac_fn_cxx_try_compile "$LINENO"; then :
  2687. ac_cv_prog_cxx_g=yes
  2688. else
  2689. CXXFLAGS=""
  2690. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2691. /* end build/confdefs.h. */
  2692. int
  2693. main ()
  2694. {
  2695. ;
  2696. return 0;
  2697. }
  2698. _ACEOF
  2699. if ac_fn_cxx_try_compile "$LINENO"; then :
  2700. else
  2701. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2702. CXXFLAGS="-g"
  2703. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2704. /* end build/confdefs.h. */
  2705. int
  2706. main ()
  2707. {
  2708. ;
  2709. return 0;
  2710. }
  2711. _ACEOF
  2712. if ac_fn_cxx_try_compile "$LINENO"; then :
  2713. ac_cv_prog_cxx_g=yes
  2714. fi
  2715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2716. fi
  2717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2718. fi
  2719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2720. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2721. fi
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  2723. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2724. if test "$ac_test_CXXFLAGS" = set; then
  2725. CXXFLAGS=$ac_save_CXXFLAGS
  2726. elif test $ac_cv_prog_cxx_g = yes; then
  2727. if test "$GXX" = yes; then
  2728. CXXFLAGS="-g -O2"
  2729. else
  2730. CXXFLAGS="-g"
  2731. fi
  2732. else
  2733. if test "$GXX" = yes; then
  2734. CXXFLAGS="-O2"
  2735. else
  2736. CXXFLAGS=
  2737. fi
  2738. fi
  2739. ac_ext=cpp
  2740. ac_cpp='$CXXCPP $CPPFLAGS'
  2741. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2742. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2743. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2744. ac_ext=cpp
  2745. ac_cpp='$CXXCPP $CPPFLAGS'
  2746. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2747. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2748. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  2750. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2751. if test -z "$CXXCPP"; then
  2752. if ${ac_cv_prog_CXXCPP+:} false; then :
  2753. $as_echo_n "(cached) " >&6
  2754. else
  2755. # Double quotes because CXXCPP needs to be expanded
  2756. for CXXCPP in "$CXX -E" "/lib/cpp"
  2757. do
  2758. ac_preproc_ok=false
  2759. for ac_cxx_preproc_warn_flag in '' yes
  2760. do
  2761. # Use a header file that comes with gcc, so configuring glibc
  2762. # with a fresh cross-compiler works.
  2763. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2764. # <limits.h> exists even on freestanding compilers.
  2765. # On the NeXT, cc -E runs the code through the compiler's parser,
  2766. # not just through cpp. "Syntax error" is here to catch this case.
  2767. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2768. /* end build/confdefs.h. */
  2769. #ifdef __STDC__
  2770. # include <limits.h>
  2771. #else
  2772. # include <assert.h>
  2773. #endif
  2774. Syntax error
  2775. _ACEOF
  2776. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2777. else
  2778. # Broken: fails on valid input.
  2779. continue
  2780. fi
  2781. rm -f conftest.err conftest.i conftest.$ac_ext
  2782. # OK, works on sane cases. Now check whether nonexistent headers
  2783. # can be detected and how.
  2784. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2785. /* end build/confdefs.h. */
  2786. #include <ac_nonexistent.h>
  2787. _ACEOF
  2788. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2789. # Broken: success on invalid input.
  2790. continue
  2791. else
  2792. # Passes both tests.
  2793. ac_preproc_ok=:
  2794. break
  2795. fi
  2796. rm -f conftest.err conftest.i conftest.$ac_ext
  2797. done
  2798. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2799. rm -f conftest.i conftest.err conftest.$ac_ext
  2800. if $ac_preproc_ok; then :
  2801. break
  2802. fi
  2803. done
  2804. ac_cv_prog_CXXCPP=$CXXCPP
  2805. fi
  2806. CXXCPP=$ac_cv_prog_CXXCPP
  2807. else
  2808. ac_cv_prog_CXXCPP=$CXXCPP
  2809. fi
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  2811. $as_echo "$CXXCPP" >&6; }
  2812. ac_preproc_ok=false
  2813. for ac_cxx_preproc_warn_flag in '' yes
  2814. do
  2815. # Use a header file that comes with gcc, so configuring glibc
  2816. # with a fresh cross-compiler works.
  2817. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2818. # <limits.h> exists even on freestanding compilers.
  2819. # On the NeXT, cc -E runs the code through the compiler's parser,
  2820. # not just through cpp. "Syntax error" is here to catch this case.
  2821. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2822. /* end build/confdefs.h. */
  2823. #ifdef __STDC__
  2824. # include <limits.h>
  2825. #else
  2826. # include <assert.h>
  2827. #endif
  2828. Syntax error
  2829. _ACEOF
  2830. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2831. else
  2832. # Broken: fails on valid input.
  2833. continue
  2834. fi
  2835. rm -f conftest.err conftest.i conftest.$ac_ext
  2836. # OK, works on sane cases. Now check whether nonexistent headers
  2837. # can be detected and how.
  2838. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2839. /* end build/confdefs.h. */
  2840. #include <ac_nonexistent.h>
  2841. _ACEOF
  2842. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2843. # Broken: success on invalid input.
  2844. continue
  2845. else
  2846. # Passes both tests.
  2847. ac_preproc_ok=:
  2848. break
  2849. fi
  2850. rm -f conftest.err conftest.i conftest.$ac_ext
  2851. done
  2852. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2853. rm -f conftest.i conftest.err conftest.$ac_ext
  2854. if $ac_preproc_ok; then :
  2855. else
  2856. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2857. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2858. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  2859. See \`build/config.log' for more details" "$LINENO" 5; }
  2860. fi
  2861. ac_ext=cpp
  2862. ac_cpp='$CXXCPP $CPPFLAGS'
  2863. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2864. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2865. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2866. ax_cxx_compile_cxx11_required=true
  2867. ac_ext=cpp
  2868. ac_cpp='$CXXCPP $CPPFLAGS'
  2869. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2870. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2871. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2872. ac_success=no
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
  2874. $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
  2875. if ${ax_cv_cxx_compile_cxx11+:} false; then :
  2876. $as_echo_n "(cached) " >&6
  2877. else
  2878. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2879. /* end build/confdefs.h. */
  2880. template <typename T>
  2881. struct check
  2882. {
  2883. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  2884. };
  2885. struct Base {
  2886. virtual void f() {}
  2887. };
  2888. struct Child : public Base {
  2889. virtual void f() override {}
  2890. };
  2891. typedef check<check<bool>> right_angle_brackets;
  2892. int a;
  2893. decltype(a) b;
  2894. typedef check<int> check_type;
  2895. check_type c;
  2896. check_type&& cr = static_cast<check_type&&>(c);
  2897. auto d = a;
  2898. auto l = [](){};
  2899. _ACEOF
  2900. if ac_fn_cxx_try_compile "$LINENO"; then :
  2901. ax_cv_cxx_compile_cxx11=yes
  2902. else
  2903. ax_cv_cxx_compile_cxx11=no
  2904. fi
  2905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2906. fi
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
  2908. $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
  2909. if test x$ax_cv_cxx_compile_cxx11 = xyes; then
  2910. ac_success=yes
  2911. fi
  2912. if test x$ac_success = xno; then
  2913. for switch in -std=c++11 -std=c++0x; do
  2914. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  2916. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  2917. if eval \${$cachevar+:} false; then :
  2918. $as_echo_n "(cached) " >&6
  2919. else
  2920. ac_save_CXXFLAGS="$CXXFLAGS"
  2921. CXXFLAGS="$CXXFLAGS $switch"
  2922. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2923. /* end build/confdefs.h. */
  2924. template <typename T>
  2925. struct check
  2926. {
  2927. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  2928. };
  2929. struct Base {
  2930. virtual void f() {}
  2931. };
  2932. struct Child : public Base {
  2933. virtual void f() override {}
  2934. };
  2935. typedef check<check<bool>> right_angle_brackets;
  2936. int a;
  2937. decltype(a) b;
  2938. typedef check<int> check_type;
  2939. check_type c;
  2940. check_type&& cr = static_cast<check_type&&>(c);
  2941. auto d = a;
  2942. auto l = [](){};
  2943. _ACEOF
  2944. if ac_fn_cxx_try_compile "$LINENO"; then :
  2945. eval $cachevar=yes
  2946. else
  2947. eval $cachevar=no
  2948. fi
  2949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2950. CXXFLAGS="$ac_save_CXXFLAGS"
  2951. fi
  2952. eval ac_res=\$$cachevar
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2954. $as_echo "$ac_res" >&6; }
  2955. if eval test x\$$cachevar = xyes; then
  2956. CXXFLAGS="$CXXFLAGS $switch"
  2957. ac_success=yes
  2958. break
  2959. fi
  2960. done
  2961. fi
  2962. ac_ext=cpp
  2963. ac_cpp='$CXXCPP $CPPFLAGS'
  2964. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2965. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2966. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2967. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  2968. if test x$ac_success = xno; then
  2969. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  2970. fi
  2971. else
  2972. if test x$ac_success = xno; then
  2973. HAVE_CXX11=0
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  2975. $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
  2976. else
  2977. HAVE_CXX11=1
  2978. $as_echo "#define HAVE_CXX11 1" >>build/confdefs.h
  2979. fi
  2980. fi
  2981. if test "${cross_compiling-x}" = "x"
  2982. then
  2983. cat << 'EOF' >&2
  2984. configure: error:
  2985. This system does not appear to have a working C compiler.
  2986. A working C compiler is required to compile Wraith.
  2987. EOF
  2988. exit 1
  2989. fi
  2990. if test -n "$GXX"; then
  2991. CXXFLAGS="$CXXFLAGS"
  2992. fi
  2993. #checkpoint
  2994. cat >confcache <<\_ACEOF
  2995. # This file is a shell script that caches the results of configure
  2996. # tests run on this system so they can be shared between configure
  2997. # scripts and configure runs, see configure's option --config-cache.
  2998. # It is not useful on other systems. If it contains results you don't
  2999. # want to keep, you may remove or edit it.
  3000. #
  3001. # build/config.status only pays attention to the cache file if you give it
  3002. # the --recheck option to rerun configure.
  3003. #
  3004. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3005. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3006. # following values.
  3007. _ACEOF
  3008. # The following way of writing the cache mishandles newlines in values,
  3009. # but we know of no workaround that is simple, portable, and efficient.
  3010. # So, we kill variables containing newlines.
  3011. # Ultrix sh set writes to stderr and can't be redirected directly,
  3012. # and sets the high bit in the cache file unless we assign to the vars.
  3013. (
  3014. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3015. eval ac_val=\$$ac_var
  3016. case $ac_val in #(
  3017. *${as_nl}*)
  3018. case $ac_var in #(
  3019. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3020. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3021. esac
  3022. case $ac_var in #(
  3023. _ | IFS | as_nl) ;; #(
  3024. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3025. *) { eval $ac_var=; unset $ac_var;} ;;
  3026. esac ;;
  3027. esac
  3028. done
  3029. (set) 2>&1 |
  3030. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3031. *${as_nl}ac_space=\ *)
  3032. # `set' does not quote correctly, so add quotes: double-quote
  3033. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3034. sed -n \
  3035. "s/'/'\\\\''/g;
  3036. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3037. ;; #(
  3038. *)
  3039. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3040. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3041. ;;
  3042. esac |
  3043. sort
  3044. ) |
  3045. sed '
  3046. /^ac_cv_env_/b end
  3047. t clear
  3048. :clear
  3049. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3050. t end
  3051. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3052. :end' >>confcache
  3053. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3054. if test -w "$cache_file"; then
  3055. if test "x$cache_file" != "x/dev/null"; then
  3056. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3057. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3058. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3059. cat confcache >"$cache_file"
  3060. else
  3061. case $cache_file in #(
  3062. */* | ?:*)
  3063. mv -f confcache "$cache_file"$$ &&
  3064. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3065. *)
  3066. mv -f confcache "$cache_file" ;;
  3067. esac
  3068. fi
  3069. fi
  3070. else
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3072. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3073. fi
  3074. fi
  3075. rm -f confcache
  3076. # Speedup compile
  3077. if test -n "$GXX" && test -z "$no_wall"; then
  3078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wall" >&5
  3079. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3080. if ${egg_cv_var_ccwall+:} false; then :
  3081. $as_echo_n "(cached) " >&6
  3082. else
  3083. ac_old_CXXFLAGS="$CXXFLAGS"
  3084. CXXFLAGS="$CXXFLAGS -Wall"
  3085. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3086. /* end build/confdefs.h. */
  3087. int main ()
  3088. {
  3089. return(0);
  3090. }
  3091. _ACEOF
  3092. if ac_fn_cxx_try_compile "$LINENO"; then :
  3093. egg_cv_var_ccwall="yes"
  3094. else
  3095. egg_cv_var_ccwall="no"
  3096. fi
  3097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3098. CXXFLAGS="$ac_old_CXXFLAGS"
  3099. fi
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccwall" >&5
  3101. $as_echo "$egg_cv_var_ccwall" >&6; }
  3102. if test "$egg_cv_var_ccwall" = "yes"; then
  3103. CXXFLAGS="$CXXFLAGS -Wall"
  3104. fi
  3105. fi
  3106. if test -n "$GXX" && test -z "$no_pipe"; then
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -pipe" >&5
  3108. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3109. if ${egg_cv_var_ccpipe+:} false; then :
  3110. $as_echo_n "(cached) " >&6
  3111. else
  3112. ac_old_CXX="$CXX"
  3113. CXX="$CXX -pipe"
  3114. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3115. /* end build/confdefs.h. */
  3116. int main ()
  3117. {
  3118. return(0);
  3119. }
  3120. _ACEOF
  3121. if ac_fn_cxx_try_compile "$LINENO"; then :
  3122. egg_cv_var_ccpipe="yes"
  3123. else
  3124. egg_cv_var_ccpipe="no"
  3125. fi
  3126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3127. CXX="$ac_old_CXX"
  3128. fi
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccpipe" >&5
  3130. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3131. if test "$egg_cv_var_ccpipe" = "yes"; then
  3132. CXX="$CXX -pipe"
  3133. fi
  3134. fi
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fcolor-diagnostics" >&5
  3136. $as_echo_n "checking whether the compiler understands -fcolor-diagnostics... " >&6; }
  3137. if ${egg_cv_prog_cc_colordiagnostics+:} false; then :
  3138. $as_echo_n "(cached) " >&6
  3139. else
  3140. ac_ext=cpp
  3141. ac_cpp='$CXXCPP $CPPFLAGS'
  3142. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3143. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3144. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3145. ac_saved_flags="$CXXFLAGS"
  3146. CXXFLAGS="-Werror -fcolor-diagnostics"
  3147. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3148. /* end build/confdefs.h. */
  3149. int
  3150. main ()
  3151. {
  3152. ;
  3153. return 0;
  3154. }
  3155. _ACEOF
  3156. if ac_fn_cxx_try_compile "$LINENO"; then :
  3157. egg_cv_prog_cc_colordiagnostics="yes"
  3158. else
  3159. egg_cv_prog_cc_colordiagnostics="no"
  3160. fi
  3161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3162. CXXFLAGS="$ac_saved_flags"
  3163. ac_ext=cpp
  3164. ac_cpp='$CXXCPP $CPPFLAGS'
  3165. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3166. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3167. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3168. fi
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_prog_cc_colordiagnostics" >&5
  3170. $as_echo "$egg_cv_prog_cc_colordiagnostics" >&6; }
  3171. if [ "$egg_cv_prog_cc_colordiagnostics" = "yes" ]; then
  3172. CXXFLAGS="$CXXFLAGS -fcolor-diagnostics"
  3173. elif [ -n "" ]; then
  3174. cat << 'EOF' >&2
  3175. configure: error:
  3176. Your OS or C++ compiler does not support -fcolor-diagnostics.
  3177. This compile flag is required.
  3178. EOF
  3179. exit 1
  3180. fi
  3181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Qunused-arguments" >&5
  3182. $as_echo_n "checking whether the compiler understands -Qunused-arguments... " >&6; }
  3183. if ${egg_cv_prog_cc_unusedarguments+:} false; then :
  3184. $as_echo_n "(cached) " >&6
  3185. else
  3186. ac_ext=cpp
  3187. ac_cpp='$CXXCPP $CPPFLAGS'
  3188. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3189. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3190. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3191. ac_saved_flags="$CXXFLAGS"
  3192. CXXFLAGS="-Werror -Qunused-arguments"
  3193. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3194. /* end build/confdefs.h. */
  3195. int
  3196. main ()
  3197. {
  3198. ;
  3199. return 0;
  3200. }
  3201. _ACEOF
  3202. if ac_fn_cxx_try_compile "$LINENO"; then :
  3203. egg_cv_prog_cc_unusedarguments="yes"
  3204. else
  3205. egg_cv_prog_cc_unusedarguments="no"
  3206. fi
  3207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3208. CXXFLAGS="$ac_saved_flags"
  3209. ac_ext=cpp
  3210. ac_cpp='$CXXCPP $CPPFLAGS'
  3211. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3212. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3213. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3214. fi
  3215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_prog_cc_unusedarguments" >&5
  3216. $as_echo "$egg_cv_prog_cc_unusedarguments" >&6; }
  3217. if [ "$egg_cv_prog_cc_unusedarguments" = "yes" ]; then
  3218. CXXFLAGS="$CXXFLAGS -Qunused-arguments"
  3219. elif [ -n "" ]; then
  3220. cat << 'EOF' >&2
  3221. configure: error:
  3222. Your OS or C++ compiler does not support -Qunused-arguments.
  3223. This compile flag is required.
  3224. EOF
  3225. exit 1
  3226. fi
  3227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-all" >&5
  3228. $as_echo_n "checking whether the compiler understands -fstack-protector-all... " >&6; }
  3229. if ${egg_cv_prog_cc_stackprotector+:} false; then :
  3230. $as_echo_n "(cached) " >&6
  3231. else
  3232. ac_ext=cpp
  3233. ac_cpp='$CXXCPP $CPPFLAGS'
  3234. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3235. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3236. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3237. ac_saved_flags="$CXXFLAGS"
  3238. CXXFLAGS="-Werror -fstack-protector-all"
  3239. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3240. /* end build/confdefs.h. */
  3241. int
  3242. main ()
  3243. {
  3244. ;
  3245. return 0;
  3246. }
  3247. _ACEOF
  3248. if ac_fn_cxx_try_compile "$LINENO"; then :
  3249. egg_cv_prog_cc_stackprotector="yes"
  3250. else
  3251. egg_cv_prog_cc_stackprotector="no"
  3252. fi
  3253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3254. CXXFLAGS="$ac_saved_flags"
  3255. ac_ext=cpp
  3256. ac_cpp='$CXXCPP $CPPFLAGS'
  3257. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3258. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3259. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3260. fi
  3261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_prog_cc_stackprotector" >&5
  3262. $as_echo "$egg_cv_prog_cc_stackprotector" >&6; }
  3263. if [ "$egg_cv_prog_cc_stackprotector" = "yes" ]; then
  3264. DEBCXXFLAGS="$DEBCXXFLAGS -fstack-protector-all"
  3265. elif [ -n "" ]; then
  3266. cat << 'EOF' >&2
  3267. configure: error:
  3268. Your OS or C++ compiler does not support -fstack-protector-all.
  3269. This compile flag is required.
  3270. EOF
  3271. exit 1
  3272. fi
  3273. CCDEPMODE=gcc
  3274. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3275. if test $num -ge "3"; then
  3276. CCDEPMODE=gcc3
  3277. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3278. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -fno-strict-aliasing -Woverloaded-virtual -Wno-format-y2k"
  3279. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  3280. fi
  3281. #checkpoint
  3282. cat >confcache <<\_ACEOF
  3283. # This file is a shell script that caches the results of configure
  3284. # tests run on this system so they can be shared between configure
  3285. # scripts and configure runs, see configure's option --config-cache.
  3286. # It is not useful on other systems. If it contains results you don't
  3287. # want to keep, you may remove or edit it.
  3288. #
  3289. # build/config.status only pays attention to the cache file if you give it
  3290. # the --recheck option to rerun configure.
  3291. #
  3292. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3293. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3294. # following values.
  3295. _ACEOF
  3296. # The following way of writing the cache mishandles newlines in values,
  3297. # but we know of no workaround that is simple, portable, and efficient.
  3298. # So, we kill variables containing newlines.
  3299. # Ultrix sh set writes to stderr and can't be redirected directly,
  3300. # and sets the high bit in the cache file unless we assign to the vars.
  3301. (
  3302. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3303. eval ac_val=\$$ac_var
  3304. case $ac_val in #(
  3305. *${as_nl}*)
  3306. case $ac_var in #(
  3307. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3308. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3309. esac
  3310. case $ac_var in #(
  3311. _ | IFS | as_nl) ;; #(
  3312. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3313. *) { eval $ac_var=; unset $ac_var;} ;;
  3314. esac ;;
  3315. esac
  3316. done
  3317. (set) 2>&1 |
  3318. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3319. *${as_nl}ac_space=\ *)
  3320. # `set' does not quote correctly, so add quotes: double-quote
  3321. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3322. sed -n \
  3323. "s/'/'\\\\''/g;
  3324. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3325. ;; #(
  3326. *)
  3327. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3328. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3329. ;;
  3330. esac |
  3331. sort
  3332. ) |
  3333. sed '
  3334. /^ac_cv_env_/b end
  3335. t clear
  3336. :clear
  3337. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3338. t end
  3339. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3340. :end' >>confcache
  3341. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3342. if test -w "$cache_file"; then
  3343. if test "x$cache_file" != "x/dev/null"; then
  3344. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3345. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3346. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3347. cat confcache >"$cache_file"
  3348. else
  3349. case $cache_file in #(
  3350. */* | ?:*)
  3351. mv -f confcache "$cache_file"$$ &&
  3352. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3353. *)
  3354. mv -f confcache "$cache_file" ;;
  3355. esac
  3356. fi
  3357. fi
  3358. else
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3360. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3361. fi
  3362. fi
  3363. rm -f confcache
  3364. # Checks for programs
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3366. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3367. set x ${MAKE-make}
  3368. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3369. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3370. $as_echo_n "(cached) " >&6
  3371. else
  3372. cat >conftest.make <<\_ACEOF
  3373. SHELL = /bin/sh
  3374. all:
  3375. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3376. _ACEOF
  3377. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3378. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3379. *@@@%%%=?*=@@@%%%*)
  3380. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3381. *)
  3382. eval ac_cv_prog_make_${ac_make}_set=no;;
  3383. esac
  3384. rm -f conftest.make
  3385. fi
  3386. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3388. $as_echo "yes" >&6; }
  3389. SET_MAKE=
  3390. else
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3392. $as_echo "no" >&6; }
  3393. SET_MAKE="MAKE=${MAKE-make}"
  3394. fi
  3395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3396. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3397. if ${ac_cv_path_SED+:} false; then :
  3398. $as_echo_n "(cached) " >&6
  3399. else
  3400. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3401. for ac_i in 1 2 3 4 5 6 7; do
  3402. ac_script="$ac_script$as_nl$ac_script"
  3403. done
  3404. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3405. { ac_script=; unset ac_script;}
  3406. if test -z "$SED"; then
  3407. ac_path_SED_found=false
  3408. # Loop through the user's path and test for each of PROGNAME-LIST
  3409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3410. for as_dir in $PATH
  3411. do
  3412. IFS=$as_save_IFS
  3413. test -z "$as_dir" && as_dir=.
  3414. for ac_prog in sed gsed; do
  3415. for ac_exec_ext in '' $ac_executable_extensions; do
  3416. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3417. as_fn_executable_p "$ac_path_SED" || continue
  3418. # Check for GNU ac_path_SED and select it if it is found.
  3419. # Check for GNU $ac_path_SED
  3420. case `"$ac_path_SED" --version 2>&1` in
  3421. *GNU*)
  3422. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3423. *)
  3424. ac_count=0
  3425. $as_echo_n 0123456789 >"conftest.in"
  3426. while :
  3427. do
  3428. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3429. mv "conftest.tmp" "conftest.in"
  3430. cp "conftest.in" "conftest.nl"
  3431. $as_echo '' >> "conftest.nl"
  3432. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3433. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3434. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3435. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3436. # Best one so far, save it but keep looking for a better one
  3437. ac_cv_path_SED="$ac_path_SED"
  3438. ac_path_SED_max=$ac_count
  3439. fi
  3440. # 10*(2^10) chars as input seems more than enough
  3441. test $ac_count -gt 10 && break
  3442. done
  3443. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3444. esac
  3445. $ac_path_SED_found && break 3
  3446. done
  3447. done
  3448. done
  3449. IFS=$as_save_IFS
  3450. if test -z "$ac_cv_path_SED"; then
  3451. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3452. fi
  3453. else
  3454. ac_cv_path_SED=$SED
  3455. fi
  3456. fi
  3457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3458. $as_echo "$ac_cv_path_SED" >&6; }
  3459. SED="$ac_cv_path_SED"
  3460. rm -f conftest.sed
  3461. cat << 'EOF' > conftest.head
  3462. a
  3463. b
  3464. c
  3465. EOF
  3466. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3467. do
  3468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_prog works" >&5
  3469. $as_echo_n "checking whether $ac_prog works... " >&6; }
  3470. if ${ac_cv_prog_HEAD_1+:} false; then :
  3471. $as_echo_n "(cached) " >&6
  3472. else
  3473. if test -n "$HEAD_1"
  3474. then
  3475. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3476. else
  3477. if test "`cat conftest.head | $ac_prog`" = "a";
  3478. then
  3479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3480. $as_echo "yes" >&6; }
  3481. ac_cv_prog_HEAD_1=$ac_prog
  3482. else
  3483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3484. $as_echo "no" >&6; }
  3485. fi
  3486. fi
  3487. fi
  3488. test -n "$ac_cv_prog_HEAD_1" && break
  3489. done
  3490. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3491. then
  3492. cat << 'EOF' >&2
  3493. configure: error:
  3494. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3495. A working 'head -1' (or equivalent) command is required to compile Wraith.
  3496. EOF
  3497. exit 1
  3498. fi
  3499. rm -f conftest.head
  3500. HEAD_1=$ac_cv_prog_HEAD_1
  3501. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3502. for ac_prog in gawk mawk nawk awk
  3503. do
  3504. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3505. set dummy $ac_prog; ac_word=$2
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3507. $as_echo_n "checking for $ac_word... " >&6; }
  3508. if ${ac_cv_prog_AWK+:} false; then :
  3509. $as_echo_n "(cached) " >&6
  3510. else
  3511. if test -n "$AWK"; then
  3512. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3513. else
  3514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3515. for as_dir in $PATH
  3516. do
  3517. IFS=$as_save_IFS
  3518. test -z "$as_dir" && as_dir=.
  3519. for ac_exec_ext in '' $ac_executable_extensions; do
  3520. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3521. ac_cv_prog_AWK="$ac_prog"
  3522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3523. break 2
  3524. fi
  3525. done
  3526. done
  3527. IFS=$as_save_IFS
  3528. fi
  3529. fi
  3530. AWK=$ac_cv_prog_AWK
  3531. if test -n "$AWK"; then
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3533. $as_echo "$AWK" >&6; }
  3534. else
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3536. $as_echo "no" >&6; }
  3537. fi
  3538. test -n "$AWK" && break
  3539. done
  3540. if test "${AWK-x}" = "x"
  3541. then
  3542. cat << 'EOF' >&2
  3543. configure: error:
  3544. This system seems to lack a working 'awk' command.
  3545. A working 'awk' command is required to compile Wraith.
  3546. EOF
  3547. exit 1
  3548. fi
  3549. # basename is needed for Tcl library and header checks
  3550. # Extract the first word of "basename", so it can be a program name with args.
  3551. set dummy basename; ac_word=$2
  3552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3553. $as_echo_n "checking for $ac_word... " >&6; }
  3554. if ${ac_cv_prog_BASENAME+:} false; then :
  3555. $as_echo_n "(cached) " >&6
  3556. else
  3557. if test -n "$BASENAME"; then
  3558. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3559. else
  3560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3561. for as_dir in $PATH
  3562. do
  3563. IFS=$as_save_IFS
  3564. test -z "$as_dir" && as_dir=.
  3565. for ac_exec_ext in '' $ac_executable_extensions; do
  3566. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3567. ac_cv_prog_BASENAME="basename"
  3568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3569. break 2
  3570. fi
  3571. done
  3572. done
  3573. IFS=$as_save_IFS
  3574. fi
  3575. fi
  3576. BASENAME=$ac_cv_prog_BASENAME
  3577. if test -n "$BASENAME"; then
  3578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  3579. $as_echo "$BASENAME" >&6; }
  3580. else
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3582. $as_echo "no" >&6; }
  3583. fi
  3584. if test "${BASENAME-x}" = "x"
  3585. then
  3586. cat << 'EOF' >&2
  3587. configure: error:
  3588. This system seems to lack a working 'basename' command.
  3589. A working 'basename' command is required to compile Wraith.
  3590. EOF
  3591. exit 1
  3592. fi
  3593. # Extract the first word of "objcopy", so it can be a program name with args.
  3594. set dummy objcopy; ac_word=$2
  3595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3596. $as_echo_n "checking for $ac_word... " >&6; }
  3597. if ${ac_cv_prog_OBJCOPY+:} false; then :
  3598. $as_echo_n "(cached) " >&6
  3599. else
  3600. if test -n "$OBJCOPY"; then
  3601. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3602. else
  3603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3604. for as_dir in $PATH
  3605. do
  3606. IFS=$as_save_IFS
  3607. test -z "$as_dir" && as_dir=.
  3608. for ac_exec_ext in '' $ac_executable_extensions; do
  3609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3610. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3612. break 2
  3613. fi
  3614. done
  3615. done
  3616. IFS=$as_save_IFS
  3617. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3618. fi
  3619. fi
  3620. OBJCOPY=$ac_cv_prog_OBJCOPY
  3621. if test -n "$OBJCOPY"; then
  3622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  3623. $as_echo "$OBJCOPY" >&6; }
  3624. else
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3626. $as_echo "no" >&6; }
  3627. fi
  3628. # Extract the first word of "strip", so it can be a program name with args.
  3629. set dummy strip; ac_word=$2
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3631. $as_echo_n "checking for $ac_word... " >&6; }
  3632. if ${ac_cv_prog_STRIP+:} false; then :
  3633. $as_echo_n "(cached) " >&6
  3634. else
  3635. if test -n "$STRIP"; then
  3636. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3637. else
  3638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3639. for as_dir in $PATH
  3640. do
  3641. IFS=$as_save_IFS
  3642. test -z "$as_dir" && as_dir=.
  3643. for ac_exec_ext in '' $ac_executable_extensions; do
  3644. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3645. ac_cv_prog_STRIP="strip"
  3646. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3647. break 2
  3648. fi
  3649. done
  3650. done
  3651. IFS=$as_save_IFS
  3652. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3653. fi
  3654. fi
  3655. STRIP=$ac_cv_prog_STRIP
  3656. if test -n "$STRIP"; then
  3657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3658. $as_echo "$STRIP" >&6; }
  3659. else
  3660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3661. $as_echo "no" >&6; }
  3662. fi
  3663. # Extract the first word of "gdiff", so it can be a program name with args.
  3664. set dummy gdiff; ac_word=$2
  3665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3666. $as_echo_n "checking for $ac_word... " >&6; }
  3667. if ${ac_cv_prog_DIFF+:} false; then :
  3668. $as_echo_n "(cached) " >&6
  3669. else
  3670. if test -n "$DIFF"; then
  3671. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  3672. else
  3673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3674. for as_dir in $PATH
  3675. do
  3676. IFS=$as_save_IFS
  3677. test -z "$as_dir" && as_dir=.
  3678. for ac_exec_ext in '' $ac_executable_extensions; do
  3679. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3680. ac_cv_prog_DIFF="gdiff"
  3681. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3682. break 2
  3683. fi
  3684. done
  3685. done
  3686. IFS=$as_save_IFS
  3687. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  3688. fi
  3689. fi
  3690. DIFF=$ac_cv_prog_DIFF
  3691. if test -n "$DIFF"; then
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
  3693. $as_echo "$DIFF" >&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 "uname", so it can be a program name with args.
  3699. set dummy uname; 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 ${ac_cv_prog_UNAME+:} false; then :
  3703. $as_echo_n "(cached) " >&6
  3704. else
  3705. if test -n "$UNAME"; then
  3706. ac_cv_prog_UNAME="$UNAME" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3715. ac_cv_prog_UNAME="uname"
  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. UNAME=$ac_cv_prog_UNAME
  3725. if test -n "$UNAME"; then
  3726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  3727. $as_echo "$UNAME" >&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 "ccache", so it can be a program name with args.
  3733. set dummy ccache; 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 ${ac_cv_prog_CCACHE+:} false; then :
  3737. $as_echo_n "(cached) " >&6
  3738. else
  3739. if test -n "$CCACHE"; then
  3740. ac_cv_prog_CCACHE="$CCACHE" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3749. ac_cv_prog_CCACHE="ccache"
  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. CCACHE=$ac_cv_prog_CCACHE
  3759. if test -n "$CCACHE"; then
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
  3761. $as_echo "$CCACHE" >&6; }
  3762. else
  3763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3764. $as_echo "no" >&6; }
  3765. fi
  3766. # Extract the first word of "distcc", so it can be a program name with args.
  3767. set dummy distcc; ac_word=$2
  3768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3769. $as_echo_n "checking for $ac_word... " >&6; }
  3770. if ${ac_cv_prog_DISTCC+:} false; then :
  3771. $as_echo_n "(cached) " >&6
  3772. else
  3773. if test -n "$DISTCC"; then
  3774. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3775. else
  3776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3777. for as_dir in $PATH
  3778. do
  3779. IFS=$as_save_IFS
  3780. test -z "$as_dir" && as_dir=.
  3781. for ac_exec_ext in '' $ac_executable_extensions; do
  3782. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3783. ac_cv_prog_DISTCC="distcc"
  3784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3785. break 2
  3786. fi
  3787. done
  3788. done
  3789. IFS=$as_save_IFS
  3790. fi
  3791. fi
  3792. DISTCC=$ac_cv_prog_DISTCC
  3793. if test -n "$DISTCC"; then
  3794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
  3795. $as_echo "$DISTCC" >&6; }
  3796. else
  3797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3798. $as_echo "no" >&6; }
  3799. fi
  3800. # Test the os and set the module linking settings
  3801. USE_STATIC=yes
  3802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system type" >&5
  3803. $as_echo_n "checking system type... " >&6; }
  3804. if ${egg_cv_var_system_type+:} false; then :
  3805. $as_echo_n "(cached) " >&6
  3806. else
  3807. egg_cv_var_system_type=`$UNAME -s`
  3808. fi
  3809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_type" >&5
  3810. $as_echo "$egg_cv_var_system_type" >&6; }
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system release" >&5
  3812. $as_echo_n "checking system release... " >&6; }
  3813. if ${egg_cv_var_system_release+:} false; then :
  3814. $as_echo_n "(cached) " >&6
  3815. else
  3816. egg_cv_var_system_release=`$UNAME -r`
  3817. fi
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_release" >&5
  3819. $as_echo "$egg_cv_var_system_release" >&6; }
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system machine" >&5
  3821. $as_echo_n "checking system machine... " >&6; }
  3822. if ${egg_cv_var_system_machine+:} false; then :
  3823. $as_echo_n "(cached) " >&6
  3824. else
  3825. egg_cv_var_system_machine=`$UNAME -m`
  3826. fi
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_machine" >&5
  3828. $as_echo "$egg_cv_var_system_machine" >&6; }
  3829. BUILDOS="$egg_cv_var_system_type"
  3830. BUILDARCH="$egg_cv_var_system_machine"
  3831. USE_GENERIC_I486="yes"
  3832. case "$egg_cv_var_system_type" in
  3833. BSD/OS)
  3834. ;;
  3835. IRIX)
  3836. ;;
  3837. HP-UX)
  3838. $as_echo "#define MD32_XARRAY 1" >>build/confdefs.h
  3839. ;;
  3840. Ultrix)
  3841. SHELL=/bin/sh5
  3842. ;;
  3843. SINIX*)
  3844. ;;
  3845. BeOS)
  3846. ;;
  3847. Linux)
  3848. ;;
  3849. Lynx)
  3850. ;;
  3851. QNX)
  3852. ;;
  3853. OSF1)
  3854. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3855. V*)
  3856. if test "$AWK" = "gawk"
  3857. then
  3858. AWK=awk
  3859. fi
  3860. ;;
  3861. 1.0|1.1|1.2)
  3862. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  3863. ;;
  3864. 1.*)
  3865. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  3866. ;;
  3867. *)
  3868. ;;
  3869. esac
  3870. $as_echo "#define STOP_UAC 1" >>build/confdefs.h
  3871. $as_echo "#define BROKEN_SNPRINTF 1" >>build/confdefs.h
  3872. ;;
  3873. SunOS)
  3874. SUNOS="yes"
  3875. USE_STATIC="no"
  3876. ;;
  3877. Darwin)
  3878. USE_STATIC="no"
  3879. USE_GENERIC_I486="no"
  3880. ;;
  3881. *BSD)
  3882. # FreeBSD/OpenBSD/NetBSD
  3883. ;;
  3884. *)
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is Mach based" >&5
  3886. $as_echo_n "checking if system is Mach based... " >&6; }
  3887. if test -r /mach
  3888. then
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3890. $as_echo "yes" >&6; }
  3891. $as_echo "#define BORGCUBES 1" >>build/confdefs.h
  3892. else
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3894. $as_echo "no" >&6; }
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is QNX" >&5
  3896. $as_echo_n "checking if system is QNX... " >&6; }
  3897. if test -r /cmds
  3898. then
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3900. $as_echo "yes" >&6; }
  3901. else
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3903. $as_echo "no" >&6; }
  3904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Something unknown!" >&5
  3905. $as_echo "Something unknown!" >&6; }
  3906. fi
  3907. fi
  3908. ;;
  3909. esac
  3910. case "$egg_cv_var_system_machine" in
  3911. i*)
  3912. if test "$USE_GENERIC_I486" = "yes"; then
  3913. CXX="$CXX -march=i486"
  3914. BUILDARCH="i486"
  3915. fi
  3916. ;;
  3917. *)
  3918. ;;
  3919. esac
  3920. # Check for IPv6 support
  3921. #EGG_IPV6_SUPPORTED
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether IPv6 is enabled" >&5
  3923. $as_echo_n "checking whether IPv6 is enabled... " >&6; }
  3924. # Check whether --enable-ipv6 was given.
  3925. if test "${enable_ipv6+set}" = set; then :
  3926. enableval=$enable_ipv6;
  3927. enable_ipv6=$enableval
  3928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  3929. $as_echo "$enableval" >&6; }
  3930. else
  3931. # default if not given is ENABLED
  3932. if test "x$enableval" = "x"; then
  3933. enableval="yes"
  3934. fi
  3935. enable_ipv6=$enableval
  3936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  3937. $as_echo "$enableval" >&6; }
  3938. $as_echo "#define USE_IPV6 1" >>build/confdefs.h
  3939. fi
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  3941. $as_echo_n "checking for socklen_t... " >&6; }
  3942. if ${egg_cv_socklen_t+:} false; then :
  3943. $as_echo_n "(cached) " >&6
  3944. else
  3945. if test "$cross_compiling" = yes; then :
  3946. egg_cv_socklen_t=no
  3947. else
  3948. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3949. /* end build/confdefs.h. */
  3950. #include <unistd.h>
  3951. #include <sys/types.h>
  3952. #include <sys/socket.h>
  3953. #include <netinet/in.h>
  3954. #include <arpa/inet.h>
  3955. int main()
  3956. {
  3957. socklen_t test = sizeof(int);
  3958. return 0;
  3959. }
  3960. _ACEOF
  3961. if ac_fn_cxx_try_run "$LINENO"; then :
  3962. egg_cv_socklen_t=yes
  3963. else
  3964. egg_cv_socklen_t=no
  3965. fi
  3966. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3967. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3968. fi
  3969. fi
  3970. if test "$egg_cv_socklen_t" = "yes"; then
  3971. $as_echo "#define HAVE_SOCKLEN_T 1" >>build/confdefs.h
  3972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3973. $as_echo "yes" >&6; }
  3974. else
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3976. $as_echo "no" >&6; }
  3977. fi
  3978. # Check for inconsistent random() functions
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random limit" >&5
  3980. $as_echo_n "checking for random limit... " >&6; }
  3981. case "$egg_cv_var_system_type" in
  3982. SunOS) RMAX=0x7FFFFFFF
  3983. ;;
  3984. *) RMAX=RAND_MAX
  3985. ;;
  3986. esac
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMAX" >&5
  3988. $as_echo "$RMAX" >&6; }
  3989. cat >>build/confdefs.h <<_ACEOF
  3990. #define RANDOM_MAX $RMAX
  3991. _ACEOF
  3992. # Create static binaries
  3993. if test "$USE_STATIC" = "yes"
  3994. then
  3995. if test -n "$GXX"
  3996. then
  3997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
  3998. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  3999. if ${egg_cv_var_ccstatic+:} false; then :
  4000. $as_echo_n "(cached) " >&6
  4001. else
  4002. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4003. /* end build/confdefs.h. */
  4004. int
  4005. main ()
  4006. {
  4007. ;
  4008. return 0;
  4009. }
  4010. _ACEOF
  4011. if ac_fn_cxx_try_compile "$LINENO"; then :
  4012. egg_cv_var_ccstatic="yes"
  4013. else
  4014. egg_cv_var_ccstatic="no"
  4015. fi
  4016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4017. fi
  4018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccstatic" >&5
  4019. $as_echo "$egg_cv_var_ccstatic" >&6; }
  4020. if ! test "$egg_cv_var_ccstatic" = "yes"
  4021. then
  4022. cat << 'EOF' >&2
  4023. configure: error:
  4024. Your OS or C++ compiler does not support -static.
  4025. This compile flag is required for the botpack on this OS.
  4026. EOF
  4027. exit 1
  4028. fi
  4029. fi
  4030. STATIC="-static"
  4031. else
  4032. STATIC=""
  4033. fi
  4034. #checkpoint
  4035. cat >confcache <<\_ACEOF
  4036. # This file is a shell script that caches the results of configure
  4037. # tests run on this system so they can be shared between configure
  4038. # scripts and configure runs, see configure's option --config-cache.
  4039. # It is not useful on other systems. If it contains results you don't
  4040. # want to keep, you may remove or edit it.
  4041. #
  4042. # build/config.status only pays attention to the cache file if you give it
  4043. # the --recheck option to rerun configure.
  4044. #
  4045. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4046. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4047. # following values.
  4048. _ACEOF
  4049. # The following way of writing the cache mishandles newlines in values,
  4050. # but we know of no workaround that is simple, portable, and efficient.
  4051. # So, we kill variables containing newlines.
  4052. # Ultrix sh set writes to stderr and can't be redirected directly,
  4053. # and sets the high bit in the cache file unless we assign to the vars.
  4054. (
  4055. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4056. eval ac_val=\$$ac_var
  4057. case $ac_val in #(
  4058. *${as_nl}*)
  4059. case $ac_var in #(
  4060. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4061. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4062. esac
  4063. case $ac_var in #(
  4064. _ | IFS | as_nl) ;; #(
  4065. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4066. *) { eval $ac_var=; unset $ac_var;} ;;
  4067. esac ;;
  4068. esac
  4069. done
  4070. (set) 2>&1 |
  4071. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4072. *${as_nl}ac_space=\ *)
  4073. # `set' does not quote correctly, so add quotes: double-quote
  4074. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4075. sed -n \
  4076. "s/'/'\\\\''/g;
  4077. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4078. ;; #(
  4079. *)
  4080. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4081. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4082. ;;
  4083. esac |
  4084. sort
  4085. ) |
  4086. sed '
  4087. /^ac_cv_env_/b end
  4088. t clear
  4089. :clear
  4090. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4091. t end
  4092. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4093. :end' >>confcache
  4094. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4095. if test -w "$cache_file"; then
  4096. if test "x$cache_file" != "x/dev/null"; then
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4098. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4099. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4100. cat confcache >"$cache_file"
  4101. else
  4102. case $cache_file in #(
  4103. */* | ?:*)
  4104. mv -f confcache "$cache_file"$$ &&
  4105. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4106. *)
  4107. mv -f confcache "$cache_file" ;;
  4108. esac
  4109. fi
  4110. fi
  4111. else
  4112. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4113. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4114. fi
  4115. fi
  4116. rm -f confcache
  4117. # Checks for system libraries
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  4119. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4120. if ${ac_cv_lib_socket_socket+:} false; then :
  4121. $as_echo_n "(cached) " >&6
  4122. else
  4123. ac_check_lib_save_LIBS=$LIBS
  4124. LIBS="-lsocket $LIBS"
  4125. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4126. /* end build/confdefs.h. */
  4127. /* Override any GCC internal prototype to avoid an error.
  4128. Use char because int might match the return type of a GCC
  4129. builtin and then its argument prototype would still apply. */
  4130. #ifdef __cplusplus
  4131. extern "C"
  4132. #endif
  4133. char socket ();
  4134. int
  4135. main ()
  4136. {
  4137. return socket ();
  4138. ;
  4139. return 0;
  4140. }
  4141. _ACEOF
  4142. if ac_fn_cxx_try_link "$LINENO"; then :
  4143. ac_cv_lib_socket_socket=yes
  4144. else
  4145. ac_cv_lib_socket_socket=no
  4146. fi
  4147. rm -f core conftest.err conftest.$ac_objext \
  4148. conftest$ac_exeext conftest.$ac_ext
  4149. LIBS=$ac_check_lib_save_LIBS
  4150. fi
  4151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  4152. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4153. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  4154. cat >>build/confdefs.h <<_ACEOF
  4155. #define HAVE_LIBSOCKET 1
  4156. _ACEOF
  4157. LIBS="-lsocket $LIBS"
  4158. fi
  4159. # AC_CHECK_LIB(nsl, connect)
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  4161. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  4162. if ${ac_cv_lib_dl_dlopen+:} false; then :
  4163. $as_echo_n "(cached) " >&6
  4164. else
  4165. ac_check_lib_save_LIBS=$LIBS
  4166. LIBS="-ldl $LIBS"
  4167. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4168. /* end build/confdefs.h. */
  4169. /* Override any GCC internal prototype to avoid an error.
  4170. Use char because int might match the return type of a GCC
  4171. builtin and then its argument prototype would still apply. */
  4172. #ifdef __cplusplus
  4173. extern "C"
  4174. #endif
  4175. char dlopen ();
  4176. int
  4177. main ()
  4178. {
  4179. return dlopen ();
  4180. ;
  4181. return 0;
  4182. }
  4183. _ACEOF
  4184. if ac_fn_cxx_try_link "$LINENO"; then :
  4185. ac_cv_lib_dl_dlopen=yes
  4186. else
  4187. ac_cv_lib_dl_dlopen=no
  4188. fi
  4189. rm -f core conftest.err conftest.$ac_objext \
  4190. conftest$ac_exeext conftest.$ac_ext
  4191. LIBS=$ac_check_lib_save_LIBS
  4192. fi
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  4194. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  4195. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  4196. cat >>build/confdefs.h <<_ACEOF
  4197. #define HAVE_LIBDL 1
  4198. _ACEOF
  4199. LIBS="-ldl $LIBS"
  4200. fi
  4201. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4202. # This is needed for Tcl libraries compiled with thread support
  4203. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4204. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4205. # ac_cv_lib_pthread="-lpthread"], [dnl
  4206. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4207. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4208. # ac_cv_lib_pthread="-lpthread"], [dnl
  4209. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4210. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4211. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4212. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4213. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4214. # ac_cv_lib_pthread=""],
  4215. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4216. if test "$SUNOS" = "yes"; then
  4217. # For suns without yp
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  4219. $as_echo_n "checking for main in -ldl... " >&6; }
  4220. if ${ac_cv_lib_dl_main+:} false; then :
  4221. $as_echo_n "(cached) " >&6
  4222. else
  4223. ac_check_lib_save_LIBS=$LIBS
  4224. LIBS="-ldl $LIBS"
  4225. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4226. /* end build/confdefs.h. */
  4227. int
  4228. main ()
  4229. {
  4230. return main ();
  4231. ;
  4232. return 0;
  4233. }
  4234. _ACEOF
  4235. if ac_fn_cxx_try_link "$LINENO"; then :
  4236. ac_cv_lib_dl_main=yes
  4237. else
  4238. ac_cv_lib_dl_main=no
  4239. fi
  4240. rm -f core conftest.err conftest.$ac_objext \
  4241. conftest$ac_exeext conftest.$ac_ext
  4242. LIBS=$ac_check_lib_save_LIBS
  4243. fi
  4244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  4245. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4246. if test "x$ac_cv_lib_dl_main" = xyes; then :
  4247. cat >>build/confdefs.h <<_ACEOF
  4248. #define HAVE_LIBDL 1
  4249. _ACEOF
  4250. LIBS="-ldl $LIBS"
  4251. fi
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  4253. $as_echo_n "checking for main in -lsocket... " >&6; }
  4254. if ${ac_cv_lib_socket_main+:} false; then :
  4255. $as_echo_n "(cached) " >&6
  4256. else
  4257. ac_check_lib_save_LIBS=$LIBS
  4258. LIBS="-lsocket $LIBS"
  4259. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4260. /* end build/confdefs.h. */
  4261. int
  4262. main ()
  4263. {
  4264. return main ();
  4265. ;
  4266. return 0;
  4267. }
  4268. _ACEOF
  4269. if ac_fn_cxx_try_link "$LINENO"; then :
  4270. ac_cv_lib_socket_main=yes
  4271. else
  4272. ac_cv_lib_socket_main=no
  4273. fi
  4274. rm -f core conftest.err conftest.$ac_objext \
  4275. conftest$ac_exeext conftest.$ac_ext
  4276. LIBS=$ac_check_lib_save_LIBS
  4277. fi
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  4279. $as_echo "$ac_cv_lib_socket_main" >&6; }
  4280. if test "x$ac_cv_lib_socket_main" = xyes; then :
  4281. cat >>build/confdefs.h <<_ACEOF
  4282. #define HAVE_LIBSOCKET 1
  4283. _ACEOF
  4284. LIBS="-lsocket $LIBS"
  4285. fi
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  4287. $as_echo_n "checking for main in -lnsl... " >&6; }
  4288. if ${ac_cv_lib_nsl_main+:} false; then :
  4289. $as_echo_n "(cached) " >&6
  4290. else
  4291. ac_check_lib_save_LIBS=$LIBS
  4292. LIBS="-lnsl $LIBS"
  4293. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4294. /* end build/confdefs.h. */
  4295. int
  4296. main ()
  4297. {
  4298. return main ();
  4299. ;
  4300. return 0;
  4301. }
  4302. _ACEOF
  4303. if ac_fn_cxx_try_link "$LINENO"; then :
  4304. ac_cv_lib_nsl_main=yes
  4305. else
  4306. ac_cv_lib_nsl_main=no
  4307. fi
  4308. rm -f core conftest.err conftest.$ac_objext \
  4309. conftest$ac_exeext conftest.$ac_ext
  4310. LIBS=$ac_check_lib_save_LIBS
  4311. fi
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  4313. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4314. if test "x$ac_cv_lib_nsl_main" = xyes; then :
  4315. cat >>build/confdefs.h <<_ACEOF
  4316. #define HAVE_LIBNSL 1
  4317. _ACEOF
  4318. LIBS="-lnsl $LIBS"
  4319. fi
  4320. fi
  4321. # Checks for header files
  4322. ac_header_dirent=no
  4323. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4324. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  4326. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  4327. if eval \${$as_ac_Header+:} false; then :
  4328. $as_echo_n "(cached) " >&6
  4329. else
  4330. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4331. /* end build/confdefs.h. */
  4332. #include <sys/types.h>
  4333. #include <$ac_hdr>
  4334. int
  4335. main ()
  4336. {
  4337. if ((DIR *) 0)
  4338. return 0;
  4339. ;
  4340. return 0;
  4341. }
  4342. _ACEOF
  4343. if ac_fn_cxx_try_compile "$LINENO"; then :
  4344. eval "$as_ac_Header=yes"
  4345. else
  4346. eval "$as_ac_Header=no"
  4347. fi
  4348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4349. fi
  4350. eval ac_res=\$$as_ac_Header
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  4352. $as_echo "$ac_res" >&6; }
  4353. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4354. cat >>build/confdefs.h <<_ACEOF
  4355. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4356. _ACEOF
  4357. ac_header_dirent=$ac_hdr; break
  4358. fi
  4359. done
  4360. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4361. if test $ac_header_dirent = dirent.h; then
  4362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4363. $as_echo_n "checking for library containing opendir... " >&6; }
  4364. if ${ac_cv_search_opendir+:} false; then :
  4365. $as_echo_n "(cached) " >&6
  4366. else
  4367. ac_func_search_save_LIBS=$LIBS
  4368. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4369. /* end build/confdefs.h. */
  4370. /* Override any GCC internal prototype to avoid an error.
  4371. Use char because int might match the return type of a GCC
  4372. builtin and then its argument prototype would still apply. */
  4373. #ifdef __cplusplus
  4374. extern "C"
  4375. #endif
  4376. char opendir ();
  4377. int
  4378. main ()
  4379. {
  4380. return opendir ();
  4381. ;
  4382. return 0;
  4383. }
  4384. _ACEOF
  4385. for ac_lib in '' dir; do
  4386. if test -z "$ac_lib"; then
  4387. ac_res="none required"
  4388. else
  4389. ac_res=-l$ac_lib
  4390. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4391. fi
  4392. if ac_fn_cxx_try_link "$LINENO"; then :
  4393. ac_cv_search_opendir=$ac_res
  4394. fi
  4395. rm -f core conftest.err conftest.$ac_objext \
  4396. conftest$ac_exeext
  4397. if ${ac_cv_search_opendir+:} false; then :
  4398. break
  4399. fi
  4400. done
  4401. if ${ac_cv_search_opendir+:} false; then :
  4402. else
  4403. ac_cv_search_opendir=no
  4404. fi
  4405. rm conftest.$ac_ext
  4406. LIBS=$ac_func_search_save_LIBS
  4407. fi
  4408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4409. $as_echo "$ac_cv_search_opendir" >&6; }
  4410. ac_res=$ac_cv_search_opendir
  4411. if test "$ac_res" != no; then :
  4412. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4413. fi
  4414. else
  4415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4416. $as_echo_n "checking for library containing opendir... " >&6; }
  4417. if ${ac_cv_search_opendir+:} false; then :
  4418. $as_echo_n "(cached) " >&6
  4419. else
  4420. ac_func_search_save_LIBS=$LIBS
  4421. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4422. /* end build/confdefs.h. */
  4423. /* Override any GCC internal prototype to avoid an error.
  4424. Use char because int might match the return type of a GCC
  4425. builtin and then its argument prototype would still apply. */
  4426. #ifdef __cplusplus
  4427. extern "C"
  4428. #endif
  4429. char opendir ();
  4430. int
  4431. main ()
  4432. {
  4433. return opendir ();
  4434. ;
  4435. return 0;
  4436. }
  4437. _ACEOF
  4438. for ac_lib in '' x; do
  4439. if test -z "$ac_lib"; then
  4440. ac_res="none required"
  4441. else
  4442. ac_res=-l$ac_lib
  4443. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4444. fi
  4445. if ac_fn_cxx_try_link "$LINENO"; then :
  4446. ac_cv_search_opendir=$ac_res
  4447. fi
  4448. rm -f core conftest.err conftest.$ac_objext \
  4449. conftest$ac_exeext
  4450. if ${ac_cv_search_opendir+:} false; then :
  4451. break
  4452. fi
  4453. done
  4454. if ${ac_cv_search_opendir+:} false; then :
  4455. else
  4456. ac_cv_search_opendir=no
  4457. fi
  4458. rm conftest.$ac_ext
  4459. LIBS=$ac_func_search_save_LIBS
  4460. fi
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4462. $as_echo "$ac_cv_search_opendir" >&6; }
  4463. ac_res=$ac_cv_search_opendir
  4464. if test "$ac_res" != no; then :
  4465. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4466. fi
  4467. fi
  4468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4469. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4470. if ${ac_cv_header_sys_wait_h+:} false; then :
  4471. $as_echo_n "(cached) " >&6
  4472. else
  4473. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4474. /* end build/confdefs.h. */
  4475. #include <sys/types.h>
  4476. #include <sys/wait.h>
  4477. #ifndef WEXITSTATUS
  4478. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4479. #endif
  4480. #ifndef WIFEXITED
  4481. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4482. #endif
  4483. int
  4484. main ()
  4485. {
  4486. int s;
  4487. wait (&s);
  4488. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4489. ;
  4490. return 0;
  4491. }
  4492. _ACEOF
  4493. if ac_fn_cxx_try_compile "$LINENO"; then :
  4494. ac_cv_header_sys_wait_h=yes
  4495. else
  4496. ac_cv_header_sys_wait_h=no
  4497. fi
  4498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4499. fi
  4500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  4501. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4502. if test $ac_cv_header_sys_wait_h = yes; then
  4503. $as_echo "#define HAVE_SYS_WAIT_H 1" >>build/confdefs.h
  4504. fi
  4505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  4506. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4507. if ${ac_cv_header_time+:} false; then :
  4508. $as_echo_n "(cached) " >&6
  4509. else
  4510. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4511. /* end build/confdefs.h. */
  4512. #include <sys/types.h>
  4513. #include <sys/time.h>
  4514. #include <time.h>
  4515. int
  4516. main ()
  4517. {
  4518. if ((struct tm *) 0)
  4519. return 0;
  4520. ;
  4521. return 0;
  4522. }
  4523. _ACEOF
  4524. if ac_fn_cxx_try_compile "$LINENO"; then :
  4525. ac_cv_header_time=yes
  4526. else
  4527. ac_cv_header_time=no
  4528. fi
  4529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4530. fi
  4531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  4532. $as_echo "$ac_cv_header_time" >&6; }
  4533. if test $ac_cv_header_time = yes; then
  4534. $as_echo "#define TIME_WITH_SYS_TIME 1" >>build/confdefs.h
  4535. fi
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  4537. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  4538. if ${ac_cv_header_stat_broken+:} false; then :
  4539. $as_echo_n "(cached) " >&6
  4540. else
  4541. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4542. /* end build/confdefs.h. */
  4543. #include <sys/types.h>
  4544. #include <sys/stat.h>
  4545. #if defined S_ISBLK && defined S_IFDIR
  4546. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  4547. #endif
  4548. #if defined S_ISBLK && defined S_IFCHR
  4549. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  4550. #endif
  4551. #if defined S_ISLNK && defined S_IFREG
  4552. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  4553. #endif
  4554. #if defined S_ISSOCK && defined S_IFREG
  4555. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  4556. #endif
  4557. _ACEOF
  4558. if ac_fn_cxx_try_compile "$LINENO"; then :
  4559. ac_cv_header_stat_broken=no
  4560. else
  4561. ac_cv_header_stat_broken=yes
  4562. fi
  4563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4564. fi
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  4566. $as_echo "$ac_cv_header_stat_broken" >&6; }
  4567. if test $ac_cv_header_stat_broken = yes; then
  4568. $as_echo "#define STAT_MACROS_BROKEN 1" >>build/confdefs.h
  4569. fi
  4570. #checkpoint
  4571. cat >confcache <<\_ACEOF
  4572. # This file is a shell script that caches the results of configure
  4573. # tests run on this system so they can be shared between configure
  4574. # scripts and configure runs, see configure's option --config-cache.
  4575. # It is not useful on other systems. If it contains results you don't
  4576. # want to keep, you may remove or edit it.
  4577. #
  4578. # build/config.status only pays attention to the cache file if you give it
  4579. # the --recheck option to rerun configure.
  4580. #
  4581. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4582. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4583. # following values.
  4584. _ACEOF
  4585. # The following way of writing the cache mishandles newlines in values,
  4586. # but we know of no workaround that is simple, portable, and efficient.
  4587. # So, we kill variables containing newlines.
  4588. # Ultrix sh set writes to stderr and can't be redirected directly,
  4589. # and sets the high bit in the cache file unless we assign to the vars.
  4590. (
  4591. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4592. eval ac_val=\$$ac_var
  4593. case $ac_val in #(
  4594. *${as_nl}*)
  4595. case $ac_var in #(
  4596. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4597. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4598. esac
  4599. case $ac_var in #(
  4600. _ | IFS | as_nl) ;; #(
  4601. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4602. *) { eval $ac_var=; unset $ac_var;} ;;
  4603. esac ;;
  4604. esac
  4605. done
  4606. (set) 2>&1 |
  4607. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4608. *${as_nl}ac_space=\ *)
  4609. # `set' does not quote correctly, so add quotes: double-quote
  4610. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4611. sed -n \
  4612. "s/'/'\\\\''/g;
  4613. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4614. ;; #(
  4615. *)
  4616. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4617. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4618. ;;
  4619. esac |
  4620. sort
  4621. ) |
  4622. sed '
  4623. /^ac_cv_env_/b end
  4624. t clear
  4625. :clear
  4626. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4627. t end
  4628. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4629. :end' >>confcache
  4630. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4631. if test -w "$cache_file"; then
  4632. if test "x$cache_file" != "x/dev/null"; then
  4633. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4634. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4635. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4636. cat confcache >"$cache_file"
  4637. else
  4638. case $cache_file in #(
  4639. */* | ?:*)
  4640. mv -f confcache "$cache_file"$$ &&
  4641. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4642. *)
  4643. mv -f confcache "$cache_file" ;;
  4644. esac
  4645. fi
  4646. fi
  4647. else
  4648. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4649. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4650. fi
  4651. fi
  4652. rm -f confcache
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4654. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4655. if ${ac_cv_path_GREP+:} false; then :
  4656. $as_echo_n "(cached) " >&6
  4657. else
  4658. if test -z "$GREP"; then
  4659. ac_path_GREP_found=false
  4660. # Loop through the user's path and test for each of PROGNAME-LIST
  4661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4662. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4663. do
  4664. IFS=$as_save_IFS
  4665. test -z "$as_dir" && as_dir=.
  4666. for ac_prog in grep ggrep; do
  4667. for ac_exec_ext in '' $ac_executable_extensions; do
  4668. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4669. as_fn_executable_p "$ac_path_GREP" || continue
  4670. # Check for GNU ac_path_GREP and select it if it is found.
  4671. # Check for GNU $ac_path_GREP
  4672. case `"$ac_path_GREP" --version 2>&1` in
  4673. *GNU*)
  4674. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4675. *)
  4676. ac_count=0
  4677. $as_echo_n 0123456789 >"conftest.in"
  4678. while :
  4679. do
  4680. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4681. mv "conftest.tmp" "conftest.in"
  4682. cp "conftest.in" "conftest.nl"
  4683. $as_echo 'GREP' >> "conftest.nl"
  4684. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4685. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4686. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4687. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4688. # Best one so far, save it but keep looking for a better one
  4689. ac_cv_path_GREP="$ac_path_GREP"
  4690. ac_path_GREP_max=$ac_count
  4691. fi
  4692. # 10*(2^10) chars as input seems more than enough
  4693. test $ac_count -gt 10 && break
  4694. done
  4695. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4696. esac
  4697. $ac_path_GREP_found && break 3
  4698. done
  4699. done
  4700. done
  4701. IFS=$as_save_IFS
  4702. if test -z "$ac_cv_path_GREP"; then
  4703. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4704. fi
  4705. else
  4706. ac_cv_path_GREP=$GREP
  4707. fi
  4708. fi
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4710. $as_echo "$ac_cv_path_GREP" >&6; }
  4711. GREP="$ac_cv_path_GREP"
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4713. $as_echo_n "checking for egrep... " >&6; }
  4714. if ${ac_cv_path_EGREP+:} false; then :
  4715. $as_echo_n "(cached) " >&6
  4716. else
  4717. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4718. then ac_cv_path_EGREP="$GREP -E"
  4719. else
  4720. if test -z "$EGREP"; then
  4721. ac_path_EGREP_found=false
  4722. # Loop through the user's path and test for each of PROGNAME-LIST
  4723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4724. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4725. do
  4726. IFS=$as_save_IFS
  4727. test -z "$as_dir" && as_dir=.
  4728. for ac_prog in egrep; do
  4729. for ac_exec_ext in '' $ac_executable_extensions; do
  4730. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4731. as_fn_executable_p "$ac_path_EGREP" || continue
  4732. # Check for GNU ac_path_EGREP and select it if it is found.
  4733. # Check for GNU $ac_path_EGREP
  4734. case `"$ac_path_EGREP" --version 2>&1` in
  4735. *GNU*)
  4736. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4737. *)
  4738. ac_count=0
  4739. $as_echo_n 0123456789 >"conftest.in"
  4740. while :
  4741. do
  4742. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4743. mv "conftest.tmp" "conftest.in"
  4744. cp "conftest.in" "conftest.nl"
  4745. $as_echo 'EGREP' >> "conftest.nl"
  4746. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4747. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4748. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4749. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4750. # Best one so far, save it but keep looking for a better one
  4751. ac_cv_path_EGREP="$ac_path_EGREP"
  4752. ac_path_EGREP_max=$ac_count
  4753. fi
  4754. # 10*(2^10) chars as input seems more than enough
  4755. test $ac_count -gt 10 && break
  4756. done
  4757. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4758. esac
  4759. $ac_path_EGREP_found && break 3
  4760. done
  4761. done
  4762. done
  4763. IFS=$as_save_IFS
  4764. if test -z "$ac_cv_path_EGREP"; then
  4765. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4766. fi
  4767. else
  4768. ac_cv_path_EGREP=$EGREP
  4769. fi
  4770. fi
  4771. fi
  4772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4773. $as_echo "$ac_cv_path_EGREP" >&6; }
  4774. EGREP="$ac_cv_path_EGREP"
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4776. $as_echo_n "checking for ANSI C header files... " >&6; }
  4777. if ${ac_cv_header_stdc+:} false; then :
  4778. $as_echo_n "(cached) " >&6
  4779. else
  4780. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4781. /* end build/confdefs.h. */
  4782. #include <stdlib.h>
  4783. #include <stdarg.h>
  4784. #include <string.h>
  4785. #include <float.h>
  4786. int
  4787. main ()
  4788. {
  4789. ;
  4790. return 0;
  4791. }
  4792. _ACEOF
  4793. if ac_fn_cxx_try_compile "$LINENO"; then :
  4794. ac_cv_header_stdc=yes
  4795. else
  4796. ac_cv_header_stdc=no
  4797. fi
  4798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4799. if test $ac_cv_header_stdc = yes; then
  4800. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4801. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4802. /* end build/confdefs.h. */
  4803. #include <string.h>
  4804. _ACEOF
  4805. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4806. $EGREP "memchr" >/dev/null 2>&1; then :
  4807. else
  4808. ac_cv_header_stdc=no
  4809. fi
  4810. rm -f conftest*
  4811. fi
  4812. if test $ac_cv_header_stdc = yes; then
  4813. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4814. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4815. /* end build/confdefs.h. */
  4816. #include <stdlib.h>
  4817. _ACEOF
  4818. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4819. $EGREP "free" >/dev/null 2>&1; then :
  4820. else
  4821. ac_cv_header_stdc=no
  4822. fi
  4823. rm -f conftest*
  4824. fi
  4825. if test $ac_cv_header_stdc = yes; then
  4826. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4827. if test "$cross_compiling" = yes; then :
  4828. :
  4829. else
  4830. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4831. /* end build/confdefs.h. */
  4832. #include <ctype.h>
  4833. #include <stdlib.h>
  4834. #if ((' ' & 0x0FF) == 0x020)
  4835. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4836. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4837. #else
  4838. # define ISLOWER(c) \
  4839. (('a' <= (c) && (c) <= 'i') \
  4840. || ('j' <= (c) && (c) <= 'r') \
  4841. || ('s' <= (c) && (c) <= 'z'))
  4842. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4843. #endif
  4844. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4845. int
  4846. main ()
  4847. {
  4848. int i;
  4849. for (i = 0; i < 256; i++)
  4850. if (XOR (islower (i), ISLOWER (i))
  4851. || toupper (i) != TOUPPER (i))
  4852. return 2;
  4853. return 0;
  4854. }
  4855. _ACEOF
  4856. if ac_fn_cxx_try_run "$LINENO"; then :
  4857. else
  4858. ac_cv_header_stdc=no
  4859. fi
  4860. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4861. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4862. fi
  4863. fi
  4864. fi
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4866. $as_echo "$ac_cv_header_stdc" >&6; }
  4867. if test $ac_cv_header_stdc = yes; then
  4868. $as_echo "#define STDC_HEADERS 1" >>build/confdefs.h
  4869. fi
  4870. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4871. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4872. inttypes.h stdint.h unistd.h
  4873. do :
  4874. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4875. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4876. "
  4877. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4878. cat >>build/confdefs.h <<_ACEOF
  4879. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4880. _ACEOF
  4881. fi
  4882. done
  4883. for ac_header in stdarg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4884. do :
  4885. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4886. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4887. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4888. cat >>build/confdefs.h <<_ACEOF
  4889. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4890. _ACEOF
  4891. fi
  4892. done
  4893. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h sys/prctl.h
  4894. do :
  4895. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4896. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4897. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4898. cat >>build/confdefs.h <<_ACEOF
  4899. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4900. _ACEOF
  4901. fi
  4902. done
  4903. #checkpoint
  4904. cat >confcache <<\_ACEOF
  4905. # This file is a shell script that caches the results of configure
  4906. # tests run on this system so they can be shared between configure
  4907. # scripts and configure runs, see configure's option --config-cache.
  4908. # It is not useful on other systems. If it contains results you don't
  4909. # want to keep, you may remove or edit it.
  4910. #
  4911. # build/config.status only pays attention to the cache file if you give it
  4912. # the --recheck option to rerun configure.
  4913. #
  4914. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4915. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4916. # following values.
  4917. _ACEOF
  4918. # The following way of writing the cache mishandles newlines in values,
  4919. # but we know of no workaround that is simple, portable, and efficient.
  4920. # So, we kill variables containing newlines.
  4921. # Ultrix sh set writes to stderr and can't be redirected directly,
  4922. # and sets the high bit in the cache file unless we assign to the vars.
  4923. (
  4924. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4925. eval ac_val=\$$ac_var
  4926. case $ac_val in #(
  4927. *${as_nl}*)
  4928. case $ac_var in #(
  4929. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4930. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4931. esac
  4932. case $ac_var in #(
  4933. _ | IFS | as_nl) ;; #(
  4934. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4935. *) { eval $ac_var=; unset $ac_var;} ;;
  4936. esac ;;
  4937. esac
  4938. done
  4939. (set) 2>&1 |
  4940. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4941. *${as_nl}ac_space=\ *)
  4942. # `set' does not quote correctly, so add quotes: double-quote
  4943. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4944. sed -n \
  4945. "s/'/'\\\\''/g;
  4946. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4947. ;; #(
  4948. *)
  4949. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4950. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4951. ;;
  4952. esac |
  4953. sort
  4954. ) |
  4955. sed '
  4956. /^ac_cv_env_/b end
  4957. t clear
  4958. :clear
  4959. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4960. t end
  4961. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4962. :end' >>confcache
  4963. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4964. if test -w "$cache_file"; then
  4965. if test "x$cache_file" != "x/dev/null"; then
  4966. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4967. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4968. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4969. cat confcache >"$cache_file"
  4970. else
  4971. case $cache_file in #(
  4972. */* | ?:*)
  4973. mv -f confcache "$cache_file"$$ &&
  4974. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4975. *)
  4976. mv -f confcache "$cache_file" ;;
  4977. esac
  4978. fi
  4979. fi
  4980. else
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4982. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4983. fi
  4984. fi
  4985. rm -f confcache
  4986. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  4987. #AC_CHECK_HEADERS(zlib.h)
  4988. #EGG_CHECK_ZLIB
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
  4990. $as_echo_n "checking for path to OpenSSL... " >&6; }
  4991. # Check whether --with-openssl was given.
  4992. if test "${with_openssl+set}" = set; then :
  4993. withval=$with_openssl; with_openssl_path=$withval
  4994. else
  4995. with_openssl_path=auto
  4996. fi
  4997. cf_openssl_basedir=""
  4998. if test "$with_openssl_path" != "auto"; then
  4999. cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`"
  5000. else
  5001. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  5002. if test -f "${dirs}/include/openssl/opensslv.h" && test -f "${dirs}/lib/libssl.so"; then
  5003. cf_openssl_basedir="${dirs}"
  5004. break
  5005. fi
  5006. done
  5007. unset dirs
  5008. fi
  5009. if test ! -z "$cf_openssl_basedir"; then
  5010. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
  5011. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  5012. SSL_LIBS="-L${cf_openssl_basedir}/lib"
  5013. else
  5014. cf_openssl_basedir=""
  5015. fi
  5016. else
  5017. if test -f "/usr/include/openssl/opensslv.h" ; then
  5018. cf_openssl_basedir="/usr"
  5019. fi
  5020. fi
  5021. if test ! -z "$cf_openssl_basedir"; then
  5022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
  5023. $as_echo "$cf_openssl_basedir" >&6; }
  5024. else
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5026. $as_echo "not found" >&6; }
  5027. as_fn_error 1 "OpenSSL is required." "$LINENO" 5
  5028. fi
  5029. unset cf_openssl_basedir
  5030. save_CXX="$CXX"
  5031. CXX="$CXX $SSL_INCLUDES"
  5032. save_LIBS="$LIBS"
  5033. LIBS="$LIBS $SSL_LIBS"
  5034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
  5035. $as_echo_n "checking for OpenSSL version... " >&6; }
  5036. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5037. /* end build/confdefs.h. */
  5038. #include <openssl/opensslv.h>
  5039. int
  5040. main ()
  5041. {
  5042. #if !defined(OPENSSL_VERSION_NUMBER)
  5043. #error "Missing openssl version"
  5044. #endif
  5045. #if (OPENSSL_VERSION_NUMBER < 0x0090800f)
  5046. #error "Old/Insecure OpenSSL version " OPENSSL_VERSION_TEXT
  5047. #endif
  5048. ;
  5049. return 0;
  5050. }
  5051. _ACEOF
  5052. if ac_fn_cxx_try_compile "$LINENO"; then :
  5053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  5054. $as_echo "OK" >&6; }
  5055. else
  5056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old." >&5
  5057. $as_echo "too old." >&6; }
  5058. as_fn_error 1 "OpenSSL version is too old. Must be 0.9.8f+" "$LINENO" 5
  5059. fi
  5060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5061. CXX="$CXX $SSL_LIBS"
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5
  5063. $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
  5064. if ${ac_cv_lib_crypto_AES_encrypt+:} false; then :
  5065. $as_echo_n "(cached) " >&6
  5066. else
  5067. ac_check_lib_save_LIBS=$LIBS
  5068. LIBS="-lcrypto $LIBS"
  5069. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5070. /* end build/confdefs.h. */
  5071. /* Override any GCC internal prototype to avoid an error.
  5072. Use char because int might match the return type of a GCC
  5073. builtin and then its argument prototype would still apply. */
  5074. #ifdef __cplusplus
  5075. extern "C"
  5076. #endif
  5077. char AES_encrypt ();
  5078. int
  5079. main ()
  5080. {
  5081. return AES_encrypt ();
  5082. ;
  5083. return 0;
  5084. }
  5085. _ACEOF
  5086. if ac_fn_cxx_try_link "$LINENO"; then :
  5087. ac_cv_lib_crypto_AES_encrypt=yes
  5088. else
  5089. ac_cv_lib_crypto_AES_encrypt=no
  5090. fi
  5091. rm -f core conftest.err conftest.$ac_objext \
  5092. conftest$ac_exeext conftest.$ac_ext
  5093. LIBS=$ac_check_lib_save_LIBS
  5094. fi
  5095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  5096. $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  5097. if test "x$ac_cv_lib_crypto_AES_encrypt" = xyes; then :
  5098. if test "$USE_STATIC" = "yes"; then
  5099. SSL_LIBS="$SSL_LIBS -Wl,-Bstatic -lcrypto -Wl,-Bdynamic"
  5100. else
  5101. SSL_LIBS="$SSL_LIBS -lcrypto"
  5102. fi
  5103. else
  5104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  5105. $as_echo "not found." >&6; }
  5106. as_fn_error 1 "Libcrypto/openssl is required." "$LINENO" 5
  5107. fi
  5108. CXX="$save_CXX"
  5109. LIBS="$save_LIBS"
  5110. cat >>build/confdefs.h <<_ACEOF
  5111. #define EGG_SSL_EXT 1
  5112. _ACEOF
  5113. # TCL checks
  5114. # Tcl version to recommend if no Tcl is found, and the site where it can be
  5115. # found for download.
  5116. tclrecommendver="8.5.X"
  5117. tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_5/"
  5118. # Tcl library filename prefixes, suffixes, and search paths.
  5119. tcllibnames="tcl8.6 tcl86 tcl8.5 tcl85 tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 \
  5120. tcl8.1 tcl81 tcl8.0 tcl80 tcl tcl7.6 tcl76 tcl7.5 tcl75 \
  5121. tcl7.4 tcl74 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 \
  5122. tcl7.0 tcl70"
  5123. tcllibextensions=".so .so.1 .so.1.0 .so.1.1 .so.1.2 .dll .dylib .sl .a"
  5124. tcllibpaths="$HOME/lib $HOME/tcl/lib \
  5125. /usr/local/lib /usr/lib /lib /lib64 /usr/lib64 \
  5126. /usr/local/lib/tcl8.6 /usr/lib/tcl8.6 \
  5127. /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
  5128. /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 \
  5129. /usr/local/lib/tcl8.3 /usr/lib/tcl8.3 \
  5130. /usr/local/pkgs/tcl/lib /sys/lib /usr/pkg/lib \
  5131. /usr/i486-linuxaout/lib /beos/system/lib $HOME"
  5132. # Tcl header filenames and search paths.
  5133. tclheadernames="tcl.h"
  5134. tclheaderpaths="$HOME/include $HOME/tcl/include \
  5135. /usr/local/include /usr/include \
  5136. /usr/local/include/tcl8.6 /usr/include/tcl8.6 \
  5137. /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
  5138. /usr/local/include/tcl8.4 /usr/include/tcl8.4 \
  5139. /usr/local/include/tcl8.3 /usr/include/tcl8.3 \
  5140. /usr/local/pkgs/tcl/include /sys/include \
  5141. /usr/pkg/lib /beos/system/include /beos/devel/include $HOME"
  5142. # Misc Tcl checks.
  5143. # Check whether --with-tcllib was given.
  5144. if test "${with_tcllib+set}" = set; then :
  5145. withval=$with_tcllib; tcllibname="$withval"
  5146. fi
  5147. # Check whether --with-tclinc was given.
  5148. if test "${with_tclinc+set}" = set; then :
  5149. withval=$with_tclinc; tclincname="$withval"
  5150. fi
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCL Script is enabled" >&5
  5152. $as_echo_n "checking whether TCL Script is enabled... " >&6; }
  5153. # Check whether --enable-script-tcl was given.
  5154. if test "${enable_script_tcl+set}" = set; then :
  5155. enableval=$enable_script_tcl;
  5156. enable_script_tcl=$enableval
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5158. $as_echo "$enableval" >&6; }
  5159. else
  5160. # default if not given is ENABLED
  5161. if test "x$enableval" = "x"; then
  5162. enableval="yes"
  5163. fi
  5164. enable_script_tcl=$enableval
  5165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5166. $as_echo "$enableval" >&6; }
  5167. $as_echo "#define USE_SCRIPT_TCL 1" >>build/confdefs.h
  5168. fi
  5169. WARN=0
  5170. # Make sure either both or neither $tcllibname and $tclincname are set
  5171. if test "x$tcllibname" != x; then
  5172. if test "x$tclincname" = x; then
  5173. WARN=1
  5174. tcllibname=""
  5175. TCLLIB=""
  5176. TCLINC=""
  5177. fi
  5178. else
  5179. if test "x$tclincname" != x; then
  5180. WARN=1
  5181. tclincname=""
  5182. TCLLIB=""
  5183. TCLINC=""
  5184. fi
  5185. fi
  5186. if test "$WARN" = 1; then
  5187. cat << 'EOF' >&2
  5188. configure: WARNING:
  5189. You must specify both --with-tcllib and --with-tclinc for either to work.
  5190. configure will now attempt to autodetect both the Tcl library and header.
  5191. EOF
  5192. fi
  5193. WARN=0
  5194. # Make sure either both or neither $TCLLIB and $TCLINC are set
  5195. if test "x$TCLLIB" != x; then
  5196. if test "x$TCLINC" = x; then
  5197. WARN=1
  5198. WVAR1=TCLLIB
  5199. WVAR2=TCLINC
  5200. TCLLIB=""
  5201. fi
  5202. else
  5203. if test "x$TCLINC" != x; then
  5204. WARN=1
  5205. WVAR1=TCLINC
  5206. WVAR2=TCLLIB
  5207. TCLINC=""
  5208. fi
  5209. fi
  5210. if test "$WARN" = 1; then
  5211. cat << EOF >&2
  5212. configure: WARNING:
  5213. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  5214. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5215. configure will now attempt to autodetect both the Tcl library and header.
  5216. EOF
  5217. fi
  5218. # Look for Tcl library: if $tcllibname is set, check there first
  5219. if test "x$tcllibname" != x; then
  5220. if test -f "$tcllibname" && test -r "$tcllibname"; then
  5221. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  5222. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  5223. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  5224. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  5225. else
  5226. cat << EOF >&2
  5227. configure: WARNING:
  5228. The file '$tcllibname' given to option --with-tcllib is not valid.
  5229. configure will now attempt to autodetect both the Tcl library and header.
  5230. EOF
  5231. tcllibname=""
  5232. tclincname=""
  5233. TCLLIB=""
  5234. TCLLIBFN=""
  5235. TCLINC=""
  5236. TCLINCFN=""
  5237. fi
  5238. fi
  5239. # Look for Tcl header: if $tclincname is set, check there first
  5240. if test "x$tclincname" != x; then
  5241. if test -f "$tclincname" && test -r "$tclincname"; then
  5242. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  5243. TCLINCFN=`$BASENAME $tclincname`
  5244. else
  5245. cat << EOF >&2
  5246. configure: WARNING:
  5247. The file '$tclincname' given to option --with-tclinc is not valid.
  5248. configure will now attempt to autodetect both the Tcl library and header.
  5249. EOF
  5250. tcllibname=""
  5251. tclincname=""
  5252. TCLLIB=""
  5253. TCLLIBFN=""
  5254. TCLINC=""
  5255. TCLINCFN=""
  5256. fi
  5257. fi
  5258. # Look for Tcl library: if $TCLLIB is set, check there first
  5259. if test "x$TCLLIBFN" = x && test "x$TCLLIB" != x; then
  5260. if test -d "$TCLLIB"; then
  5261. for tcllibfns in $tcllibnames; do
  5262. for tcllibext in $tcllibextensions; do
  5263. if test -r "${TCLLIB}/lib${tcllibfns}${tcllibext}"; then
  5264. TCLLIBFN="${tcllibfns}${tcllibext}"
  5265. TCLLIBEXT="$tcllibext"
  5266. TCLLIBFNS="$tcllibfns"
  5267. break 2
  5268. fi
  5269. done
  5270. done
  5271. fi
  5272. if test "x$TCLLIBFN" = x; then
  5273. cat << 'EOF' >&2
  5274. configure: WARNING:
  5275. Environment variable TCLLIB was set, but incorrectly.
  5276. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5277. configure will now attempt to autodetect both the Tcl library and header.
  5278. EOF
  5279. TCLLIB=""
  5280. TCLLIBFN=""
  5281. TCLINC=""
  5282. TCLINCFN=""
  5283. fi
  5284. fi
  5285. # Look for Tcl header: if $TCLINC is set, check there first
  5286. if test "x$TCLINCFN" = x && test "x$TCLINC" != x; then
  5287. if test -d "$TCLINC"; then
  5288. for tclheaderfn in $tclheadernames; do
  5289. if test -r "${TCLINC}/${tclheaderfn}"; then
  5290. TCLINCFN="$tclheaderfn"
  5291. break
  5292. fi
  5293. done
  5294. fi
  5295. if test "x$TCLINCFN" = x; then
  5296. cat << 'EOF' >&2
  5297. configure: WARNING:
  5298. Environment variable TCLINC was set, but incorrectly.
  5299. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5300. configure will now attempt to autodetect both the Tcl library and header.
  5301. EOF
  5302. TCLLIB=""
  5303. TCLLIBFN=""
  5304. TCLINC=""
  5305. TCLINCFN=""
  5306. fi
  5307. fi
  5308. if test "$enable_script_tcl" = "yes"; then
  5309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library" >&5
  5310. $as_echo_n "checking for Tcl library... " >&6; }
  5311. # Attempt autodetect for $TCLLIBFN if it's not set
  5312. if test "x$TCLLIBFN" != x; then
  5313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLLIB}/lib${TCLLIBFN}" >&5
  5314. $as_echo "using ${TCLLIB}/lib${TCLLIBFN}" >&6; }
  5315. else
  5316. for tcllibfns in $tcllibnames; do
  5317. for tcllibext in $tcllibextensions; do
  5318. for tcllibpath in $tcllibpaths; do
  5319. if test -r "${tcllibpath}/lib${tcllibfns}${tcllibext}"; then
  5320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&5
  5321. $as_echo "found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&6; }
  5322. TCLLIB="$tcllibpath"
  5323. TCLLIBFN="${tcllibfns}${tcllibext}"
  5324. TCLLIBEXT="$tcllibext"
  5325. TCLLIBFNS="$tcllibfns"
  5326. break 3
  5327. fi
  5328. done
  5329. done
  5330. done
  5331. fi
  5332. # Show if $TCLLIBFN wasn't found
  5333. if test "x$TCLLIBFN" = x; then
  5334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5335. $as_echo "not found" >&6; }
  5336. fi
  5337. fi
  5338. if test "$enable_script_tcl" = "yes"; then
  5339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl header" >&5
  5340. $as_echo_n "checking for Tcl header... " >&6; }
  5341. # Attempt autodetect for $TCLINCFN if it's not set
  5342. if test "x$TCLINCFN" != x; then
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLINC}/${TCLINCFN}" >&5
  5344. $as_echo "using ${TCLINC}/${TCLINCFN}" >&6; }
  5345. else
  5346. for tclheaderpath in $tclheaderpaths; do
  5347. for tclheaderfn in $tclheadernames; do
  5348. if test -r "${tclheaderpath}/${tclheaderfn}"; then
  5349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tclheaderfn}" >&5
  5350. $as_echo "found ${tclheaderpath}/${tclheaderfn}" >&6; }
  5351. TCLINC="$tclheaderpath"
  5352. TCLINCFN="$tclheaderfn"
  5353. break 2
  5354. fi
  5355. done
  5356. done
  5357. # FreeBSD hack ...
  5358. if test "x$TCLINCFN" = x; then
  5359. for tcllibfns in $tcllibnames; do
  5360. for tclheaderpath in $tclheaderpaths; do
  5361. for tclheaderfn in $tclheadernames; do
  5362. if test -r "${tclheaderpath}/${tcllibfns}/${tclheaderfn}"; then
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&5
  5364. $as_echo "found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&6; }
  5365. TCLINC="${tclheaderpath}/${tcllibfns}"
  5366. TCLINCFN="$tclheaderfn"
  5367. break 3
  5368. fi
  5369. done
  5370. done
  5371. done
  5372. fi
  5373. fi
  5374. TCL_INCLUDES=""
  5375. if ! test "x$TCLINC" = x; then
  5376. TCL_INCLUDES="-I$TCLINC"
  5377. fi
  5378. if test "x$TCLINCFN" = x; then
  5379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5380. $as_echo "not found" >&6; }
  5381. fi
  5382. fi
  5383. if test "$enable_script_tcl" = "yes"; then
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Tcl system has changed" >&5
  5385. $as_echo_n "checking whether the Tcl system has changed... " >&6; }
  5386. egg_tcl_changed="yes"
  5387. egg_tcl_id="${TCLLIB}:${TCLLIBFN}:${TCLINC}:${TCLINCFN}"
  5388. if test "$egg_tcl_id" != ":::"; then
  5389. egg_tcl_cached="yes"
  5390. if ${egg_cv_var_tcl_id+:} false; then :
  5391. $as_echo_n "(cached) " >&6
  5392. else
  5393. egg_cv_var_tcl_id="$egg_tcl_id"
  5394. egg_tcl_cached="no"
  5395. fi
  5396. if test "$egg_tcl_cached" = yes; then
  5397. if test "x$egg_cv_var_tcl_id" = "x$egg_tcl_id"; then
  5398. egg_tcl_changed="no"
  5399. else
  5400. egg_cv_var_tcl_id="$egg_tcl_id"
  5401. fi
  5402. fi
  5403. fi
  5404. if test "$egg_tcl_changed" = yes; then
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5406. $as_echo "yes" >&6; }
  5407. else
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5409. $as_echo "no" >&6; }
  5410. fi
  5411. fi
  5412. if test "$enable_script_tcl" = "yes"; then
  5413. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  5414. TCL_FOUND=0
  5415. if test "x$TCLLIBFN" != x && test "x$TCLINCFN" != x; then
  5416. TCL_FOUND=1
  5417. # Check Tcl's version
  5418. if test "$egg_tcl_changed" = yes; then
  5419. unset egg_cv_var_tcl_version
  5420. fi
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl version" >&5
  5422. $as_echo_n "checking for Tcl version... " >&6; }
  5423. if ${egg_cv_var_tcl_version+:} false; then :
  5424. $as_echo_n "(cached) " >&6
  5425. else
  5426. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  5427. fi
  5428. if test "x$egg_cv_var_tcl_version" != x; then
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_version" >&5
  5430. $as_echo "$egg_cv_var_tcl_version" >&6; }
  5431. else
  5432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5433. $as_echo "not found" >&6; }
  5434. TCL_FOUND=0
  5435. fi
  5436. # Check Tcl's patch level (if available)
  5437. if test "$egg_tcl_changed" = yes; then
  5438. unset egg_cv_var_tcl_patch_level
  5439. fi
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl patch level" >&5
  5441. $as_echo_n "checking for Tcl patch level... " >&6; }
  5442. if ${egg_cv_var_tcl_patch_level+:} false; then :
  5443. $as_echo_n "(cached) " >&6
  5444. else
  5445. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  5446. fi
  5447. if test "x$egg_cv_var_tcl_patch_level" != x; then
  5448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_patch_level" >&5
  5449. $as_echo "$egg_cv_var_tcl_patch_level" >&6; }
  5450. else
  5451. egg_cv_var_tcl_patch_level="unknown"
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  5453. $as_echo "unknown" >&6; }
  5454. fi
  5455. fi
  5456. # Check if we found Tcl's version
  5457. if test "$TCL_FOUND" = 0; then
  5458. cat << 'EOF' >&2
  5459. configure: error:
  5460. Tcl cannot be found on this system.
  5461. Tcl is not required. Wraith will be compiled without TCL support. If you
  5462. already have Tcl installed on this system, please specify the path by
  5463. rerunning ./configure using the --with-tcllib='/path/to/libtcl.so' and
  5464. --with-tclinc='/path/to/tcl.h' options.
  5465. EOF
  5466. enable_script_tcl="no"
  5467. else
  5468. $as_echo "#define HAVE_LIBTCL 1" >>build/confdefs.h
  5469. fi
  5470. fi
  5471. if test "$enable_script_tcl" = "yes"; then
  5472. # Is this version of Tcl too old for us to use ?
  5473. TCL_VER_PRE70=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 7) print "yes"; else print "no"}'`
  5474. if test "$TCL_VER_PRE70" = yes; then
  5475. cat << EOF >&2
  5476. configure: error:
  5477. Your Tcl version is much too old for Wraith to use. You should
  5478. download and compile a more recent version. The most reliable
  5479. current version is $tclrecommendver and can be downloaded from
  5480. ${tclrecommendsite}.
  5481. See doc/COMPILE-GUIDE's 'Tcl Detection and Installation' section
  5482. for more information.
  5483. EOF
  5484. exit 1
  5485. fi
  5486. fi
  5487. # Set variables for Tcl library tests
  5488. TCL_TEST_LIB="$TCLLIBFNS"
  5489. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  5490. if test "x$ac_cv_lib_pthread" != x; then
  5491. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  5492. fi
  5493. if test "$enable_script_tcl" = "yes"; then
  5494. if test "$egg_tcl_changed" = yes; then
  5495. unset egg_cv_var_tcl_free
  5496. fi
  5497. # Check for Tcl_Free()
  5498. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  5500. $as_echo_n "checking for Tcl_Free in -l$TCL_TEST_LIB... " >&6; }
  5501. if eval \${$as_ac_Lib+:} false; then :
  5502. $as_echo_n "(cached) " >&6
  5503. else
  5504. ac_check_lib_save_LIBS=$LIBS
  5505. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  5506. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5507. /* end build/confdefs.h. */
  5508. /* Override any GCC internal prototype to avoid an error.
  5509. Use char because int might match the return type of a GCC
  5510. builtin and then its argument prototype would still apply. */
  5511. #ifdef __cplusplus
  5512. extern "C"
  5513. #endif
  5514. char Tcl_Free ();
  5515. int
  5516. main ()
  5517. {
  5518. return Tcl_Free ();
  5519. ;
  5520. return 0;
  5521. }
  5522. _ACEOF
  5523. if ac_fn_cxx_try_link "$LINENO"; then :
  5524. eval "$as_ac_Lib=yes"
  5525. else
  5526. eval "$as_ac_Lib=no"
  5527. fi
  5528. rm -f core conftest.err conftest.$ac_objext \
  5529. conftest$ac_exeext conftest.$ac_ext
  5530. LIBS=$ac_check_lib_save_LIBS
  5531. fi
  5532. eval ac_res=\$$as_ac_Lib
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5534. $as_echo "$ac_res" >&6; }
  5535. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  5536. egg_cv_var_tcl_free="yes"
  5537. else
  5538. egg_cv_var_tcl_free="no"
  5539. fi
  5540. if test "$egg_cv_var_tcl_free" = yes; then
  5541. $as_echo "#define HAVE_TCL_FREE 1" >>build/confdefs.h
  5542. fi
  5543. fi
  5544. #EGG_TCL_CHECK_GETCURRENTTHREAD
  5545. #EGG_TCL_CHECK_GETTHREADDATA
  5546. if test "$enable_script_tcl" = "yes"; then
  5547. if test "$egg_tcl_changed" = yes; then
  5548. unset egg_cv_var_tcl_setnotifier
  5549. fi
  5550. # Check for Tcl_SetNotifier()
  5551. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_SetNotifier" | $as_tr_sh`
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_SetNotifier in -l$TCL_TEST_LIB" >&5
  5553. $as_echo_n "checking for Tcl_SetNotifier in -l$TCL_TEST_LIB... " >&6; }
  5554. if eval \${$as_ac_Lib+:} false; then :
  5555. $as_echo_n "(cached) " >&6
  5556. else
  5557. ac_check_lib_save_LIBS=$LIBS
  5558. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  5559. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5560. /* end build/confdefs.h. */
  5561. /* Override any GCC internal prototype to avoid an error.
  5562. Use char because int might match the return type of a GCC
  5563. builtin and then its argument prototype would still apply. */
  5564. #ifdef __cplusplus
  5565. extern "C"
  5566. #endif
  5567. char Tcl_SetNotifier ();
  5568. int
  5569. main ()
  5570. {
  5571. return Tcl_SetNotifier ();
  5572. ;
  5573. return 0;
  5574. }
  5575. _ACEOF
  5576. if ac_fn_cxx_try_link "$LINENO"; then :
  5577. eval "$as_ac_Lib=yes"
  5578. else
  5579. eval "$as_ac_Lib=no"
  5580. fi
  5581. rm -f core conftest.err conftest.$ac_objext \
  5582. conftest$ac_exeext conftest.$ac_ext
  5583. LIBS=$ac_check_lib_save_LIBS
  5584. fi
  5585. eval ac_res=\$$as_ac_Lib
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5587. $as_echo "$ac_res" >&6; }
  5588. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  5589. egg_cv_var_tcl_setnotifier="yes"
  5590. else
  5591. egg_cv_var_tcl_setnotifier="no"
  5592. fi
  5593. if test "$egg_cv_var_tcl_setnotifier" = yes; then
  5594. $as_echo "#define HAVE_TCL_SETNOTIFIER 1" >>build/confdefs.h
  5595. fi
  5596. fi
  5597. if test "$enable_script_tcl" = "yes"; then
  5598. if test "$EGG_CYGWIN" = yes; then
  5599. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5600. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5601. else
  5602. if test "$TCLLIBEXT" != ".a"; then
  5603. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5604. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5605. else
  5606. # Set default make as static for unshared Tcl library
  5607. if test "$DEFAULT_MAKE" != static; then
  5608. cat << 'EOF' >&2
  5609. configure: WARNING:
  5610. Your Tcl library is not a shared lib.
  5611. configure will now set default make type to static.
  5612. EOF
  5613. DEFAULT_MAKE="static"
  5614. fi
  5615. # Are we using a pre 7.4 Tcl version ?
  5616. TCL_VER_PRE74=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (((i[1] == 7) && (i[2] < 4)) || (i[1] < 7)) print "yes"; else print "no"}'`
  5617. if test "$TCL_VER_PRE74" = no; then
  5618. # Was the --with-tcllib option given ?
  5619. if test "x$tcllibname" != x; then
  5620. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5621. TCL_LIBS="${TCLLIB}/lib${TCLLIBFN} $EGG_MATH_LIB"
  5622. else
  5623. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5624. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5625. fi
  5626. else
  5627. cat << EOF >&2
  5628. configure: WARNING:
  5629. Your Tcl version ($egg_cv_var_tcl_version) is older than 7.4.
  5630. There are known problems, but we will attempt to work around them.
  5631. EOF
  5632. TCL_REQS="libtcle.a"
  5633. TCL_LIBS="-L`pwd` -ltcle $EGG_MATH_LIB"
  5634. fi
  5635. fi
  5636. fi
  5637. fi
  5638. cat >confcache <<\_ACEOF
  5639. # This file is a shell script that caches the results of configure
  5640. # tests run on this system so they can be shared between configure
  5641. # scripts and configure runs, see configure's option --config-cache.
  5642. # It is not useful on other systems. If it contains results you don't
  5643. # want to keep, you may remove or edit it.
  5644. #
  5645. # build/config.status only pays attention to the cache file if you give it
  5646. # the --recheck option to rerun configure.
  5647. #
  5648. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5649. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5650. # following values.
  5651. _ACEOF
  5652. # The following way of writing the cache mishandles newlines in values,
  5653. # but we know of no workaround that is simple, portable, and efficient.
  5654. # So, we kill variables containing newlines.
  5655. # Ultrix sh set writes to stderr and can't be redirected directly,
  5656. # and sets the high bit in the cache file unless we assign to the vars.
  5657. (
  5658. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5659. eval ac_val=\$$ac_var
  5660. case $ac_val in #(
  5661. *${as_nl}*)
  5662. case $ac_var in #(
  5663. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5664. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5665. esac
  5666. case $ac_var in #(
  5667. _ | IFS | as_nl) ;; #(
  5668. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5669. *) { eval $ac_var=; unset $ac_var;} ;;
  5670. esac ;;
  5671. esac
  5672. done
  5673. (set) 2>&1 |
  5674. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5675. *${as_nl}ac_space=\ *)
  5676. # `set' does not quote correctly, so add quotes: double-quote
  5677. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5678. sed -n \
  5679. "s/'/'\\\\''/g;
  5680. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5681. ;; #(
  5682. *)
  5683. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5684. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5685. ;;
  5686. esac |
  5687. sort
  5688. ) |
  5689. sed '
  5690. /^ac_cv_env_/b end
  5691. t clear
  5692. :clear
  5693. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5694. t end
  5695. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5696. :end' >>confcache
  5697. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5698. if test -w "$cache_file"; then
  5699. if test "x$cache_file" != "x/dev/null"; then
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5701. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5702. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5703. cat confcache >"$cache_file"
  5704. else
  5705. case $cache_file in #(
  5706. */* | ?:*)
  5707. mv -f confcache "$cache_file"$$ &&
  5708. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5709. *)
  5710. mv -f confcache "$cache_file" ;;
  5711. esac
  5712. fi
  5713. fi
  5714. else
  5715. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5716. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5717. fi
  5718. fi
  5719. rm -f confcache
  5720. #AC_SUBST(ZLIB)dnl
  5721. # Checks for typedefs, structures, and compiler characteristics
  5722. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  5723. if test "x$ac_cv_type_pid_t" = xyes; then :
  5724. else
  5725. cat >>build/confdefs.h <<_ACEOF
  5726. #define pid_t int
  5727. _ACEOF
  5728. fi
  5729. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  5730. if test "x$ac_cv_type_size_t" = xyes; then :
  5731. else
  5732. cat >>build/confdefs.h <<_ACEOF
  5733. #define size_t unsigned int
  5734. _ACEOF
  5735. fi
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  5737. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5738. if ${ac_cv_type_uid_t+:} false; then :
  5739. $as_echo_n "(cached) " >&6
  5740. else
  5741. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5742. /* end build/confdefs.h. */
  5743. #include <sys/types.h>
  5744. _ACEOF
  5745. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5746. $EGREP "uid_t" >/dev/null 2>&1; then :
  5747. ac_cv_type_uid_t=yes
  5748. else
  5749. ac_cv_type_uid_t=no
  5750. fi
  5751. rm -f conftest*
  5752. fi
  5753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  5754. $as_echo "$ac_cv_type_uid_t" >&6; }
  5755. if test $ac_cv_type_uid_t = no; then
  5756. $as_echo "#define uid_t int" >>build/confdefs.h
  5757. $as_echo "#define gid_t int" >>build/confdefs.h
  5758. fi
  5759. #AC_C_CONST
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  5761. $as_echo_n "checking for working volatile... " >&6; }
  5762. if ${ac_cv_c_volatile+:} false; then :
  5763. $as_echo_n "(cached) " >&6
  5764. else
  5765. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5766. /* end build/confdefs.h. */
  5767. int
  5768. main ()
  5769. {
  5770. volatile int x;
  5771. int * volatile y = (int *) 0;
  5772. return !x && !y;
  5773. ;
  5774. return 0;
  5775. }
  5776. _ACEOF
  5777. if ac_fn_cxx_try_compile "$LINENO"; then :
  5778. ac_cv_c_volatile=yes
  5779. else
  5780. ac_cv_c_volatile=no
  5781. fi
  5782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5783. fi
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  5785. $as_echo "$ac_cv_c_volatile" >&6; }
  5786. if test $ac_cv_c_volatile = no; then
  5787. $as_echo "#define volatile /**/" >>build/confdefs.h
  5788. fi
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  5790. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5791. if ${ac_cv_c_bigendian+:} false; then :
  5792. $as_echo_n "(cached) " >&6
  5793. else
  5794. ac_cv_c_bigendian=unknown
  5795. # See if we're dealing with a universal compiler.
  5796. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5797. /* end build/confdefs.h. */
  5798. #ifndef __APPLE_CC__
  5799. not a universal capable compiler
  5800. #endif
  5801. typedef int dummy;
  5802. _ACEOF
  5803. if ac_fn_cxx_try_compile "$LINENO"; then :
  5804. # Check for potential -arch flags. It is not universal unless
  5805. # there are at least two -arch flags with different values.
  5806. ac_arch=
  5807. ac_prev=
  5808. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  5809. if test -n "$ac_prev"; then
  5810. case $ac_word in
  5811. i?86 | x86_64 | ppc | ppc64)
  5812. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  5813. ac_arch=$ac_word
  5814. else
  5815. ac_cv_c_bigendian=universal
  5816. break
  5817. fi
  5818. ;;
  5819. esac
  5820. ac_prev=
  5821. elif test "x$ac_word" = "x-arch"; then
  5822. ac_prev=arch
  5823. fi
  5824. done
  5825. fi
  5826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5827. if test $ac_cv_c_bigendian = unknown; then
  5828. # See if sys/param.h defines the BYTE_ORDER macro.
  5829. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5830. /* end build/confdefs.h. */
  5831. #include <sys/types.h>
  5832. #include <sys/param.h>
  5833. int
  5834. main ()
  5835. {
  5836. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  5837. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  5838. && LITTLE_ENDIAN)
  5839. bogus endian macros
  5840. #endif
  5841. ;
  5842. return 0;
  5843. }
  5844. _ACEOF
  5845. if ac_fn_cxx_try_compile "$LINENO"; then :
  5846. # It does; now see whether it defined to BIG_ENDIAN or not.
  5847. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5848. /* end build/confdefs.h. */
  5849. #include <sys/types.h>
  5850. #include <sys/param.h>
  5851. int
  5852. main ()
  5853. {
  5854. #if BYTE_ORDER != BIG_ENDIAN
  5855. not big endian
  5856. #endif
  5857. ;
  5858. return 0;
  5859. }
  5860. _ACEOF
  5861. if ac_fn_cxx_try_compile "$LINENO"; then :
  5862. ac_cv_c_bigendian=yes
  5863. else
  5864. ac_cv_c_bigendian=no
  5865. fi
  5866. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5867. fi
  5868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5869. fi
  5870. if test $ac_cv_c_bigendian = unknown; then
  5871. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  5872. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5873. /* end build/confdefs.h. */
  5874. #include <limits.h>
  5875. int
  5876. main ()
  5877. {
  5878. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  5879. bogus endian macros
  5880. #endif
  5881. ;
  5882. return 0;
  5883. }
  5884. _ACEOF
  5885. if ac_fn_cxx_try_compile "$LINENO"; then :
  5886. # It does; now see whether it defined to _BIG_ENDIAN or not.
  5887. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5888. /* end build/confdefs.h. */
  5889. #include <limits.h>
  5890. int
  5891. main ()
  5892. {
  5893. #ifndef _BIG_ENDIAN
  5894. not big endian
  5895. #endif
  5896. ;
  5897. return 0;
  5898. }
  5899. _ACEOF
  5900. if ac_fn_cxx_try_compile "$LINENO"; then :
  5901. ac_cv_c_bigendian=yes
  5902. else
  5903. ac_cv_c_bigendian=no
  5904. fi
  5905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5906. fi
  5907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5908. fi
  5909. if test $ac_cv_c_bigendian = unknown; then
  5910. # Compile a test program.
  5911. if test "$cross_compiling" = yes; then :
  5912. # Try to guess by grepping values from an object file.
  5913. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5914. /* end build/confdefs.h. */
  5915. short int ascii_mm[] =
  5916. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5917. short int ascii_ii[] =
  5918. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5919. int use_ascii (int i) {
  5920. return ascii_mm[i] + ascii_ii[i];
  5921. }
  5922. short int ebcdic_ii[] =
  5923. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5924. short int ebcdic_mm[] =
  5925. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5926. int use_ebcdic (int i) {
  5927. return ebcdic_mm[i] + ebcdic_ii[i];
  5928. }
  5929. extern int foo;
  5930. int
  5931. main ()
  5932. {
  5933. return use_ascii (foo) == use_ebcdic (foo);
  5934. ;
  5935. return 0;
  5936. }
  5937. _ACEOF
  5938. if ac_fn_cxx_try_compile "$LINENO"; then :
  5939. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  5940. ac_cv_c_bigendian=yes
  5941. fi
  5942. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5943. if test "$ac_cv_c_bigendian" = unknown; then
  5944. ac_cv_c_bigendian=no
  5945. else
  5946. # finding both strings is unlikely to happen, but who knows?
  5947. ac_cv_c_bigendian=unknown
  5948. fi
  5949. fi
  5950. fi
  5951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5952. else
  5953. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5954. /* end build/confdefs.h. */
  5955. $ac_includes_default
  5956. int
  5957. main ()
  5958. {
  5959. /* Are we little or big endian? From Harbison&Steele. */
  5960. union
  5961. {
  5962. long int l;
  5963. char c[sizeof (long int)];
  5964. } u;
  5965. u.l = 1;
  5966. return u.c[sizeof (long int) - 1] == 1;
  5967. ;
  5968. return 0;
  5969. }
  5970. _ACEOF
  5971. if ac_fn_cxx_try_run "$LINENO"; then :
  5972. ac_cv_c_bigendian=no
  5973. else
  5974. ac_cv_c_bigendian=yes
  5975. fi
  5976. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5977. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5978. fi
  5979. fi
  5980. fi
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  5982. $as_echo "$ac_cv_c_bigendian" >&6; }
  5983. case $ac_cv_c_bigendian in #(
  5984. yes)
  5985. $as_echo "#define B_ENDIAN 1" >>build/confdefs.h
  5986. ;; #(
  5987. no)
  5988. $as_echo "#define L_ENDIAN 1" >>build/confdefs.h
  5989. ;; #(
  5990. universal)
  5991. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>build/confdefs.h
  5992. ;; #(
  5993. *)
  5994. as_fn_error $? "unknown endianness
  5995. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  5996. esac
  5997. #AC_C_INLINE
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  5999. $as_echo_n "checking whether char is unsigned... " >&6; }
  6000. if ${ac_cv_c_char_unsigned+:} false; then :
  6001. $as_echo_n "(cached) " >&6
  6002. else
  6003. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6004. /* end build/confdefs.h. */
  6005. $ac_includes_default
  6006. int
  6007. main ()
  6008. {
  6009. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6010. test_array [0] = 0;
  6011. return test_array [0];
  6012. ;
  6013. return 0;
  6014. }
  6015. _ACEOF
  6016. if ac_fn_cxx_try_compile "$LINENO"; then :
  6017. ac_cv_c_char_unsigned=no
  6018. else
  6019. ac_cv_c_char_unsigned=yes
  6020. fi
  6021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6022. fi
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  6024. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  6025. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6026. $as_echo "#define __CHAR_UNSIGNED__ 1" >>build/confdefs.h
  6027. fi
  6028. #AC_C_STRINGIZE
  6029. #AC_C_PROTOTYPES
  6030. #checkpoint
  6031. cat >confcache <<\_ACEOF
  6032. # This file is a shell script that caches the results of configure
  6033. # tests run on this system so they can be shared between configure
  6034. # scripts and configure runs, see configure's option --config-cache.
  6035. # It is not useful on other systems. If it contains results you don't
  6036. # want to keep, you may remove or edit it.
  6037. #
  6038. # build/config.status only pays attention to the cache file if you give it
  6039. # the --recheck option to rerun configure.
  6040. #
  6041. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6042. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6043. # following values.
  6044. _ACEOF
  6045. # The following way of writing the cache mishandles newlines in values,
  6046. # but we know of no workaround that is simple, portable, and efficient.
  6047. # So, we kill variables containing newlines.
  6048. # Ultrix sh set writes to stderr and can't be redirected directly,
  6049. # and sets the high bit in the cache file unless we assign to the vars.
  6050. (
  6051. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6052. eval ac_val=\$$ac_var
  6053. case $ac_val in #(
  6054. *${as_nl}*)
  6055. case $ac_var in #(
  6056. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6057. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6058. esac
  6059. case $ac_var in #(
  6060. _ | IFS | as_nl) ;; #(
  6061. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6062. *) { eval $ac_var=; unset $ac_var;} ;;
  6063. esac ;;
  6064. esac
  6065. done
  6066. (set) 2>&1 |
  6067. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6068. *${as_nl}ac_space=\ *)
  6069. # `set' does not quote correctly, so add quotes: double-quote
  6070. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6071. sed -n \
  6072. "s/'/'\\\\''/g;
  6073. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6074. ;; #(
  6075. *)
  6076. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6077. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6078. ;;
  6079. esac |
  6080. sort
  6081. ) |
  6082. sed '
  6083. /^ac_cv_env_/b end
  6084. t clear
  6085. :clear
  6086. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6087. t end
  6088. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6089. :end' >>confcache
  6090. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6091. if test -w "$cache_file"; then
  6092. if test "x$cache_file" != "x/dev/null"; then
  6093. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6094. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6095. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6096. cat confcache >"$cache_file"
  6097. else
  6098. case $cache_file in #(
  6099. */* | ?:*)
  6100. mv -f confcache "$cache_file"$$ &&
  6101. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6102. *)
  6103. mv -f confcache "$cache_file" ;;
  6104. esac
  6105. fi
  6106. fi
  6107. else
  6108. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6109. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6110. fi
  6111. fi
  6112. rm -f confcache
  6113. # Checks for typedefs, structures, and compiler characteristics
  6114. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  6115. if test "x$ac_cv_type_pid_t" = xyes; then :
  6116. else
  6117. cat >>build/confdefs.h <<_ACEOF
  6118. #define pid_t int
  6119. _ACEOF
  6120. fi
  6121. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  6122. if test "x$ac_cv_type_size_t" = xyes; then :
  6123. else
  6124. cat >>build/confdefs.h <<_ACEOF
  6125. #define size_t unsigned int
  6126. _ACEOF
  6127. fi
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  6129. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  6130. if ${ac_cv_type_uid_t+:} false; then :
  6131. $as_echo_n "(cached) " >&6
  6132. else
  6133. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6134. /* end build/confdefs.h. */
  6135. #include <sys/types.h>
  6136. _ACEOF
  6137. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6138. $EGREP "uid_t" >/dev/null 2>&1; then :
  6139. ac_cv_type_uid_t=yes
  6140. else
  6141. ac_cv_type_uid_t=no
  6142. fi
  6143. rm -f conftest*
  6144. fi
  6145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  6146. $as_echo "$ac_cv_type_uid_t" >&6; }
  6147. if test $ac_cv_type_uid_t = no; then
  6148. $as_echo "#define uid_t int" >>build/confdefs.h
  6149. $as_echo "#define gid_t int" >>build/confdefs.h
  6150. fi
  6151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  6152. $as_echo_n "checking for long long int... " >&6; }
  6153. if ${ac_cv_type_long_long_int+:} false; then :
  6154. $as_echo_n "(cached) " >&6
  6155. else
  6156. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6157. /* end build/confdefs.h. */
  6158. /* For now, do not test the preprocessor; as of 2007 there are too many
  6159. implementations with broken preprocessors. Perhaps this can
  6160. be revisited in 2012. In the meantime, code should not expect
  6161. #if to work with literals wider than 32 bits. */
  6162. /* Test literals. */
  6163. long long int ll = 9223372036854775807ll;
  6164. long long int nll = -9223372036854775807LL;
  6165. unsigned long long int ull = 18446744073709551615ULL;
  6166. /* Test constant expressions. */
  6167. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  6168. ? 1 : -1)];
  6169. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  6170. ? 1 : -1)];
  6171. int i = 63;
  6172. int
  6173. main ()
  6174. {
  6175. /* Test availability of runtime routines for shift and division. */
  6176. long long int llmax = 9223372036854775807ll;
  6177. unsigned long long int ullmax = 18446744073709551615ull;
  6178. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  6179. | (llmax / ll) | (llmax % ll)
  6180. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  6181. | (ullmax / ull) | (ullmax % ull));
  6182. ;
  6183. return 0;
  6184. }
  6185. _ACEOF
  6186. if ac_fn_cxx_try_link "$LINENO"; then :
  6187. if test "$cross_compiling" = yes; then :
  6188. ac_cv_type_long_long_int=yes
  6189. else
  6190. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6191. /* end build/confdefs.h. */
  6192. #include <limits.h>
  6193. #ifndef LLONG_MAX
  6194. # define HALF \
  6195. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  6196. # define LLONG_MAX (HALF - 1 + HALF)
  6197. #endif
  6198. int
  6199. main ()
  6200. {
  6201. long long int n = 1;
  6202. int i;
  6203. for (i = 0; ; i++)
  6204. {
  6205. long long int m = n << i;
  6206. if (m >> i != n)
  6207. return 1;
  6208. if (LLONG_MAX / 2 < m)
  6209. break;
  6210. }
  6211. return 0;
  6212. ;
  6213. return 0;
  6214. }
  6215. _ACEOF
  6216. if ac_fn_cxx_try_run "$LINENO"; then :
  6217. ac_cv_type_long_long_int=yes
  6218. else
  6219. ac_cv_type_long_long_int=no
  6220. fi
  6221. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6222. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6223. fi
  6224. else
  6225. ac_cv_type_long_long_int=no
  6226. fi
  6227. rm -f core conftest.err conftest.$ac_objext \
  6228. conftest$ac_exeext conftest.$ac_ext
  6229. fi
  6230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  6231. $as_echo "$ac_cv_type_long_long_int" >&6; }
  6232. if test $ac_cv_type_long_long_int = yes; then
  6233. $as_echo "#define HAVE_LONG_LONG_INT 1" >>build/confdefs.h
  6234. fi
  6235. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  6236. case $ac_cv_c_int8_t in #(
  6237. no|yes) ;; #(
  6238. *)
  6239. cat >>build/confdefs.h <<_ACEOF
  6240. #define int8_t $ac_cv_c_int8_t
  6241. _ACEOF
  6242. ;;
  6243. esac
  6244. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  6245. case $ac_cv_c_uint8_t in #(
  6246. no|yes) ;; #(
  6247. *)
  6248. $as_echo "#define _UINT8_T 1" >>build/confdefs.h
  6249. cat >>build/confdefs.h <<_ACEOF
  6250. #define uint8_t $ac_cv_c_uint8_t
  6251. _ACEOF
  6252. ;;
  6253. esac
  6254. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  6255. case $ac_cv_c_int16_t in #(
  6256. no|yes) ;; #(
  6257. *)
  6258. cat >>build/confdefs.h <<_ACEOF
  6259. #define int16_t $ac_cv_c_int16_t
  6260. _ACEOF
  6261. ;;
  6262. esac
  6263. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  6264. case $ac_cv_c_uint16_t in #(
  6265. no|yes) ;; #(
  6266. *)
  6267. cat >>build/confdefs.h <<_ACEOF
  6268. #define uint16_t $ac_cv_c_uint16_t
  6269. _ACEOF
  6270. ;;
  6271. esac
  6272. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  6273. case $ac_cv_c_int32_t in #(
  6274. no|yes) ;; #(
  6275. *)
  6276. cat >>build/confdefs.h <<_ACEOF
  6277. #define int32_t $ac_cv_c_int32_t
  6278. _ACEOF
  6279. ;;
  6280. esac
  6281. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  6282. case $ac_cv_c_uint32_t in #(
  6283. no|yes) ;; #(
  6284. *)
  6285. $as_echo "#define _UINT32_T 1" >>build/confdefs.h
  6286. cat >>build/confdefs.h <<_ACEOF
  6287. #define uint32_t $ac_cv_c_uint32_t
  6288. _ACEOF
  6289. ;;
  6290. esac
  6291. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  6292. case $ac_cv_c_int64_t in #(
  6293. no|yes) ;; #(
  6294. *)
  6295. cat >>build/confdefs.h <<_ACEOF
  6296. #define int64_t $ac_cv_c_int64_t
  6297. _ACEOF
  6298. ;;
  6299. esac
  6300. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  6301. case $ac_cv_c_uint64_t in #(
  6302. no|yes) ;; #(
  6303. *)
  6304. $as_echo "#define _UINT64_T 1" >>build/confdefs.h
  6305. cat >>build/confdefs.h <<_ACEOF
  6306. #define uint64_t $ac_cv_c_uint64_t
  6307. _ACEOF
  6308. ;;
  6309. esac
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  6311. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  6312. if ${ac_cv_struct_tm+:} false; then :
  6313. $as_echo_n "(cached) " >&6
  6314. else
  6315. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6316. /* end build/confdefs.h. */
  6317. #include <sys/types.h>
  6318. #include <time.h>
  6319. int
  6320. main ()
  6321. {
  6322. struct tm tm;
  6323. int *p = &tm.tm_sec;
  6324. return !p;
  6325. ;
  6326. return 0;
  6327. }
  6328. _ACEOF
  6329. if ac_fn_cxx_try_compile "$LINENO"; then :
  6330. ac_cv_struct_tm=time.h
  6331. else
  6332. ac_cv_struct_tm=sys/time.h
  6333. fi
  6334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6335. fi
  6336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  6337. $as_echo "$ac_cv_struct_tm" >&6; }
  6338. if test $ac_cv_struct_tm = sys/time.h; then
  6339. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  6340. fi
  6341. ac_fn_cxx_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  6342. #include <$ac_cv_struct_tm>
  6343. "
  6344. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  6345. cat >>build/confdefs.h <<_ACEOF
  6346. #define HAVE_STRUCT_TM_TM_ZONE 1
  6347. _ACEOF
  6348. fi
  6349. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  6350. $as_echo "#define HAVE_TM_ZONE 1" >>build/confdefs.h
  6351. else
  6352. ac_fn_cxx_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  6353. "
  6354. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  6355. ac_have_decl=1
  6356. else
  6357. ac_have_decl=0
  6358. fi
  6359. cat >>build/confdefs.h <<_ACEOF
  6360. #define HAVE_DECL_TZNAME $ac_have_decl
  6361. _ACEOF
  6362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  6363. $as_echo_n "checking for tzname... " >&6; }
  6364. if ${ac_cv_var_tzname+:} false; then :
  6365. $as_echo_n "(cached) " >&6
  6366. else
  6367. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6368. /* end build/confdefs.h. */
  6369. #include <time.h>
  6370. #if !HAVE_DECL_TZNAME
  6371. extern char *tzname[];
  6372. #endif
  6373. int
  6374. main ()
  6375. {
  6376. return tzname[0][0];
  6377. ;
  6378. return 0;
  6379. }
  6380. _ACEOF
  6381. if ac_fn_cxx_try_link "$LINENO"; then :
  6382. ac_cv_var_tzname=yes
  6383. else
  6384. ac_cv_var_tzname=no
  6385. fi
  6386. rm -f core conftest.err conftest.$ac_objext \
  6387. conftest$ac_exeext conftest.$ac_ext
  6388. fi
  6389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  6390. $as_echo "$ac_cv_var_tzname" >&6; }
  6391. if test $ac_cv_var_tzname = yes; then
  6392. $as_echo "#define HAVE_TZNAME 1" >>build/confdefs.h
  6393. fi
  6394. fi
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  6396. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  6397. if ${ac_cv_struct_tm+:} false; then :
  6398. $as_echo_n "(cached) " >&6
  6399. else
  6400. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6401. /* end build/confdefs.h. */
  6402. #include <sys/types.h>
  6403. #include <time.h>
  6404. int
  6405. main ()
  6406. {
  6407. struct tm tm;
  6408. int *p = &tm.tm_sec;
  6409. return !p;
  6410. ;
  6411. return 0;
  6412. }
  6413. _ACEOF
  6414. if ac_fn_cxx_try_compile "$LINENO"; then :
  6415. ac_cv_struct_tm=time.h
  6416. else
  6417. ac_cv_struct_tm=sys/time.h
  6418. fi
  6419. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6420. fi
  6421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  6422. $as_echo "$ac_cv_struct_tm" >&6; }
  6423. if test $ac_cv_struct_tm = sys/time.h; then
  6424. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  6425. fi
  6426. # Checks for library functions
  6427. for ac_header in vfork.h
  6428. do :
  6429. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  6430. if test "x$ac_cv_header_vfork_h" = xyes; then :
  6431. cat >>build/confdefs.h <<_ACEOF
  6432. #define HAVE_VFORK_H 1
  6433. _ACEOF
  6434. fi
  6435. done
  6436. for ac_func in fork vfork
  6437. do :
  6438. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6439. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6440. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6441. cat >>build/confdefs.h <<_ACEOF
  6442. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6443. _ACEOF
  6444. fi
  6445. done
  6446. if test "x$ac_cv_func_fork" = xyes; then
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  6448. $as_echo_n "checking for working fork... " >&6; }
  6449. if ${ac_cv_func_fork_works+:} false; then :
  6450. $as_echo_n "(cached) " >&6
  6451. else
  6452. if test "$cross_compiling" = yes; then :
  6453. ac_cv_func_fork_works=cross
  6454. else
  6455. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6456. /* end build/confdefs.h. */
  6457. $ac_includes_default
  6458. int
  6459. main ()
  6460. {
  6461. /* By Ruediger Kuhlmann. */
  6462. return fork () < 0;
  6463. ;
  6464. return 0;
  6465. }
  6466. _ACEOF
  6467. if ac_fn_cxx_try_run "$LINENO"; then :
  6468. ac_cv_func_fork_works=yes
  6469. else
  6470. ac_cv_func_fork_works=no
  6471. fi
  6472. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6473. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6474. fi
  6475. fi
  6476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  6477. $as_echo "$ac_cv_func_fork_works" >&6; }
  6478. else
  6479. ac_cv_func_fork_works=$ac_cv_func_fork
  6480. fi
  6481. if test "x$ac_cv_func_fork_works" = xcross; then
  6482. case $host in
  6483. *-*-amigaos* | *-*-msdosdjgpp*)
  6484. # Override, as these systems have only a dummy fork() stub
  6485. ac_cv_func_fork_works=no
  6486. ;;
  6487. *)
  6488. ac_cv_func_fork_works=yes
  6489. ;;
  6490. esac
  6491. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  6492. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  6493. fi
  6494. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6495. if test "x$ac_cv_func_vfork" = xyes; then
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  6497. $as_echo_n "checking for working vfork... " >&6; }
  6498. if ${ac_cv_func_vfork_works+:} false; then :
  6499. $as_echo_n "(cached) " >&6
  6500. else
  6501. if test "$cross_compiling" = yes; then :
  6502. ac_cv_func_vfork_works=cross
  6503. else
  6504. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6505. /* end build/confdefs.h. */
  6506. /* Thanks to Paul Eggert for this test. */
  6507. $ac_includes_default
  6508. #include <sys/wait.h>
  6509. #ifdef HAVE_VFORK_H
  6510. # include <vfork.h>
  6511. #endif
  6512. /* On some sparc systems, changes by the child to local and incoming
  6513. argument registers are propagated back to the parent. The compiler
  6514. is told about this with #include <vfork.h>, but some compilers
  6515. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  6516. static variable whose address is put into a register that is
  6517. clobbered by the vfork. */
  6518. static void
  6519. #ifdef __cplusplus
  6520. sparc_address_test (int arg)
  6521. # else
  6522. sparc_address_test (arg) int arg;
  6523. #endif
  6524. {
  6525. static pid_t child;
  6526. if (!child) {
  6527. child = vfork ();
  6528. if (child < 0) {
  6529. perror ("vfork");
  6530. _exit(2);
  6531. }
  6532. if (!child) {
  6533. arg = getpid();
  6534. write(-1, "", 0);
  6535. _exit (arg);
  6536. }
  6537. }
  6538. }
  6539. int
  6540. main ()
  6541. {
  6542. pid_t parent = getpid ();
  6543. pid_t child;
  6544. sparc_address_test (0);
  6545. child = vfork ();
  6546. if (child == 0) {
  6547. /* Here is another test for sparc vfork register problems. This
  6548. test uses lots of local variables, at least as many local
  6549. variables as main has allocated so far including compiler
  6550. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  6551. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  6552. reuse the register of parent for one of the local variables,
  6553. since it will think that parent can't possibly be used any more
  6554. in this routine. Assigning to the local variable will thus
  6555. munge parent in the parent process. */
  6556. pid_t
  6557. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  6558. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  6559. /* Convince the compiler that p..p7 are live; otherwise, it might
  6560. use the same hardware register for all 8 local variables. */
  6561. if (p != p1 || p != p2 || p != p3 || p != p4
  6562. || p != p5 || p != p6 || p != p7)
  6563. _exit(1);
  6564. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  6565. from child file descriptors. If the child closes a descriptor
  6566. before it execs or exits, this munges the parent's descriptor
  6567. as well. Test for this by closing stdout in the child. */
  6568. _exit(close(fileno(stdout)) != 0);
  6569. } else {
  6570. int status;
  6571. struct stat st;
  6572. while (wait(&status) != child)
  6573. ;
  6574. return (
  6575. /* Was there some problem with vforking? */
  6576. child < 0
  6577. /* Did the child fail? (This shouldn't happen.) */
  6578. || status
  6579. /* Did the vfork/compiler bug occur? */
  6580. || parent != getpid()
  6581. /* Did the file descriptor bug occur? */
  6582. || fstat(fileno(stdout), &st) != 0
  6583. );
  6584. }
  6585. }
  6586. _ACEOF
  6587. if ac_fn_cxx_try_run "$LINENO"; then :
  6588. ac_cv_func_vfork_works=yes
  6589. else
  6590. ac_cv_func_vfork_works=no
  6591. fi
  6592. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6593. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6594. fi
  6595. fi
  6596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  6597. $as_echo "$ac_cv_func_vfork_works" >&6; }
  6598. fi;
  6599. if test "x$ac_cv_func_fork_works" = xcross; then
  6600. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6601. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  6602. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  6603. fi
  6604. if test "x$ac_cv_func_vfork_works" = xyes; then
  6605. $as_echo "#define HAVE_WORKING_VFORK 1" >>build/confdefs.h
  6606. else
  6607. $as_echo "#define vfork fork" >>build/confdefs.h
  6608. fi
  6609. if test "x$ac_cv_func_fork_works" = xyes; then
  6610. $as_echo "#define HAVE_WORKING_FORK 1" >>build/confdefs.h
  6611. fi
  6612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  6613. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  6614. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  6615. $as_echo_n "(cached) " >&6
  6616. else
  6617. rm -f conftest.sym conftest.file
  6618. echo >conftest.file
  6619. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  6620. if test "$cross_compiling" = yes; then :
  6621. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6622. else
  6623. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6624. /* end build/confdefs.h. */
  6625. $ac_includes_default
  6626. int
  6627. main ()
  6628. {
  6629. struct stat sbuf;
  6630. /* Linux will dereference the symlink and fail, as required by POSIX.
  6631. That is better in the sense that it means we will not
  6632. have to compile and use the lstat wrapper. */
  6633. return lstat ("conftest.sym/", &sbuf) == 0;
  6634. ;
  6635. return 0;
  6636. }
  6637. _ACEOF
  6638. if ac_fn_cxx_try_run "$LINENO"; then :
  6639. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  6640. else
  6641. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6642. fi
  6643. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6644. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6645. fi
  6646. else
  6647. # If the `ln -s' command failed, then we probably don't even
  6648. # have an lstat function.
  6649. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6650. fi
  6651. rm -f conftest.sym conftest.file
  6652. fi
  6653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  6654. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  6655. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  6656. cat >>build/confdefs.h <<_ACEOF
  6657. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  6658. _ACEOF
  6659. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  6660. case " $LIBOBJS " in
  6661. *" lstat.$ac_objext "* ) ;;
  6662. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6663. ;;
  6664. esac
  6665. fi
  6666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  6667. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  6668. if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
  6669. $as_echo_n "(cached) " >&6
  6670. else
  6671. if test "$cross_compiling" = yes; then :
  6672. ac_cv_func_lstat_empty_string_bug=yes
  6673. else
  6674. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6675. /* end build/confdefs.h. */
  6676. $ac_includes_default
  6677. int
  6678. main ()
  6679. {
  6680. struct stat sbuf;
  6681. return lstat ("", &sbuf) == 0;
  6682. ;
  6683. return 0;
  6684. }
  6685. _ACEOF
  6686. if ac_fn_cxx_try_run "$LINENO"; then :
  6687. ac_cv_func_lstat_empty_string_bug=no
  6688. else
  6689. ac_cv_func_lstat_empty_string_bug=yes
  6690. fi
  6691. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6692. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6693. fi
  6694. fi
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  6696. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  6697. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  6698. case " $LIBOBJS " in
  6699. *" lstat.$ac_objext "* ) ;;
  6700. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6701. ;;
  6702. esac
  6703. cat >>build/confdefs.h <<_ACEOF
  6704. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  6705. _ACEOF
  6706. fi
  6707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  6708. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  6709. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  6710. $as_echo_n "(cached) " >&6
  6711. else
  6712. rm -f conftest.sym conftest.file
  6713. echo >conftest.file
  6714. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  6715. if test "$cross_compiling" = yes; then :
  6716. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6717. else
  6718. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6719. /* end build/confdefs.h. */
  6720. $ac_includes_default
  6721. int
  6722. main ()
  6723. {
  6724. struct stat sbuf;
  6725. /* Linux will dereference the symlink and fail, as required by POSIX.
  6726. That is better in the sense that it means we will not
  6727. have to compile and use the lstat wrapper. */
  6728. return lstat ("conftest.sym/", &sbuf) == 0;
  6729. ;
  6730. return 0;
  6731. }
  6732. _ACEOF
  6733. if ac_fn_cxx_try_run "$LINENO"; then :
  6734. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  6735. else
  6736. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6737. fi
  6738. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6739. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6740. fi
  6741. else
  6742. # If the `ln -s' command failed, then we probably don't even
  6743. # have an lstat function.
  6744. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6745. fi
  6746. rm -f conftest.sym conftest.file
  6747. fi
  6748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  6749. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  6750. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  6751. cat >>build/confdefs.h <<_ACEOF
  6752. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  6753. _ACEOF
  6754. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  6755. case " $LIBOBJS " in
  6756. *" lstat.$ac_objext "* ) ;;
  6757. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6758. ;;
  6759. esac
  6760. fi
  6761. for ac_header in stdlib.h
  6762. do :
  6763. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  6764. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  6765. cat >>build/confdefs.h <<_ACEOF
  6766. #define HAVE_STDLIB_H 1
  6767. _ACEOF
  6768. fi
  6769. done
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  6771. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  6772. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  6773. $as_echo_n "(cached) " >&6
  6774. else
  6775. if test "$cross_compiling" = yes; then :
  6776. ac_cv_func_malloc_0_nonnull=no
  6777. else
  6778. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6779. /* end build/confdefs.h. */
  6780. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  6781. # include <stdlib.h>
  6782. #else
  6783. char *malloc ();
  6784. #endif
  6785. int
  6786. main ()
  6787. {
  6788. return ! malloc (0);
  6789. ;
  6790. return 0;
  6791. }
  6792. _ACEOF
  6793. if ac_fn_cxx_try_run "$LINENO"; then :
  6794. ac_cv_func_malloc_0_nonnull=yes
  6795. else
  6796. ac_cv_func_malloc_0_nonnull=no
  6797. fi
  6798. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6799. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6800. fi
  6801. fi
  6802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  6803. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  6804. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  6805. $as_echo "#define HAVE_MALLOC 1" >>build/confdefs.h
  6806. else
  6807. $as_echo "#define HAVE_MALLOC 0" >>build/confdefs.h
  6808. case " $LIBOBJS " in
  6809. *" malloc.$ac_objext "* ) ;;
  6810. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  6811. ;;
  6812. esac
  6813. $as_echo "#define malloc rpl_malloc" >>build/confdefs.h
  6814. fi
  6815. for ac_header in $ac_header_list
  6816. do :
  6817. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6818. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6819. "
  6820. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6821. cat >>build/confdefs.h <<_ACEOF
  6822. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6823. _ACEOF
  6824. fi
  6825. done
  6826. for ac_func in $ac_func_list
  6827. do :
  6828. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6829. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6830. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6831. cat >>build/confdefs.h <<_ACEOF
  6832. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6833. _ACEOF
  6834. fi
  6835. done
  6836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  6837. $as_echo_n "checking for working mktime... " >&6; }
  6838. if ${ac_cv_func_working_mktime+:} false; then :
  6839. $as_echo_n "(cached) " >&6
  6840. else
  6841. if test "$cross_compiling" = yes; then :
  6842. ac_cv_func_working_mktime=no
  6843. else
  6844. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6845. /* end build/confdefs.h. */
  6846. /* Test program from Paul Eggert and Tony Leneis. */
  6847. #ifdef TIME_WITH_SYS_TIME
  6848. # include <sys/time.h>
  6849. # include <time.h>
  6850. #else
  6851. # ifdef HAVE_SYS_TIME_H
  6852. # include <sys/time.h>
  6853. # else
  6854. # include <time.h>
  6855. # endif
  6856. #endif
  6857. #include <limits.h>
  6858. #include <stdlib.h>
  6859. #ifdef HAVE_UNISTD_H
  6860. # include <unistd.h>
  6861. #endif
  6862. #ifndef HAVE_ALARM
  6863. # define alarm(X) /* empty */
  6864. #endif
  6865. /* Work around redefinition to rpl_putenv by other config tests. */
  6866. #undef putenv
  6867. static time_t time_t_max;
  6868. static time_t time_t_min;
  6869. /* Values we'll use to set the TZ environment variable. */
  6870. static const char *tz_strings[] = {
  6871. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  6872. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  6873. };
  6874. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  6875. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  6876. Based on a problem report from Andreas Jaeger. */
  6877. static int
  6878. spring_forward_gap ()
  6879. {
  6880. /* glibc (up to about 1998-10-07) failed this test. */
  6881. struct tm tm;
  6882. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  6883. instead of "TZ=America/Vancouver" in order to detect the bug even
  6884. on systems that don't support the Olson extension, or don't have the
  6885. full zoneinfo tables installed. */
  6886. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  6887. tm.tm_year = 98;
  6888. tm.tm_mon = 3;
  6889. tm.tm_mday = 5;
  6890. tm.tm_hour = 2;
  6891. tm.tm_min = 0;
  6892. tm.tm_sec = 0;
  6893. tm.tm_isdst = -1;
  6894. return mktime (&tm) != (time_t) -1;
  6895. }
  6896. static int
  6897. mktime_test1 (time_t now)
  6898. {
  6899. struct tm *lt;
  6900. return ! (lt = localtime (&now)) || mktime (lt) == now;
  6901. }
  6902. static int
  6903. mktime_test (time_t now)
  6904. {
  6905. return (mktime_test1 (now)
  6906. && mktime_test1 ((time_t) (time_t_max - now))
  6907. && mktime_test1 ((time_t) (time_t_min + now)));
  6908. }
  6909. static int
  6910. irix_6_4_bug ()
  6911. {
  6912. /* Based on code from Ariel Faigon. */
  6913. struct tm tm;
  6914. tm.tm_year = 96;
  6915. tm.tm_mon = 3;
  6916. tm.tm_mday = 0;
  6917. tm.tm_hour = 0;
  6918. tm.tm_min = 0;
  6919. tm.tm_sec = 0;
  6920. tm.tm_isdst = -1;
  6921. mktime (&tm);
  6922. return tm.tm_mon == 2 && tm.tm_mday == 31;
  6923. }
  6924. static int
  6925. bigtime_test (int j)
  6926. {
  6927. struct tm tm;
  6928. time_t now;
  6929. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  6930. now = mktime (&tm);
  6931. if (now != (time_t) -1)
  6932. {
  6933. struct tm *lt = localtime (&now);
  6934. if (! (lt
  6935. && lt->tm_year == tm.tm_year
  6936. && lt->tm_mon == tm.tm_mon
  6937. && lt->tm_mday == tm.tm_mday
  6938. && lt->tm_hour == tm.tm_hour
  6939. && lt->tm_min == tm.tm_min
  6940. && lt->tm_sec == tm.tm_sec
  6941. && lt->tm_yday == tm.tm_yday
  6942. && lt->tm_wday == tm.tm_wday
  6943. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  6944. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  6945. return 0;
  6946. }
  6947. return 1;
  6948. }
  6949. static int
  6950. year_2050_test ()
  6951. {
  6952. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  6953. ignoring leap seconds. */
  6954. unsigned long int answer = 2527315200UL;
  6955. struct tm tm;
  6956. time_t t;
  6957. tm.tm_year = 2050 - 1900;
  6958. tm.tm_mon = 2 - 1;
  6959. tm.tm_mday = 1;
  6960. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  6961. tm.tm_isdst = -1;
  6962. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  6963. instead of "TZ=America/Vancouver" in order to detect the bug even
  6964. on systems that don't support the Olson extension, or don't have the
  6965. full zoneinfo tables installed. */
  6966. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  6967. t = mktime (&tm);
  6968. /* Check that the result is either a failure, or close enough
  6969. to the correct answer that we can assume the discrepancy is
  6970. due to leap seconds. */
  6971. return (t == (time_t) -1
  6972. || (0 < t && answer - 120 <= t && t <= answer + 120));
  6973. }
  6974. int
  6975. main ()
  6976. {
  6977. time_t t, delta;
  6978. int i, j;
  6979. /* This test makes some buggy mktime implementations loop.
  6980. Give up after 60 seconds; a mktime slower than that
  6981. isn't worth using anyway. */
  6982. alarm (60);
  6983. for (;;)
  6984. {
  6985. t = (time_t_max << 1) + 1;
  6986. if (t <= time_t_max)
  6987. break;
  6988. time_t_max = t;
  6989. }
  6990. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  6991. delta = time_t_max / 997; /* a suitable prime number */
  6992. for (i = 0; i < N_STRINGS; i++)
  6993. {
  6994. if (tz_strings[i])
  6995. putenv ((char*) tz_strings[i]);
  6996. for (t = 0; t <= time_t_max - delta; t += delta)
  6997. if (! mktime_test (t))
  6998. return 1;
  6999. if (! (mktime_test ((time_t) 1)
  7000. && mktime_test ((time_t) (60 * 60))
  7001. && mktime_test ((time_t) (60 * 60 * 24))))
  7002. return 1;
  7003. for (j = 1; ; j <<= 1)
  7004. if (! bigtime_test (j))
  7005. return 1;
  7006. else if (INT_MAX / 2 < j)
  7007. break;
  7008. if (! bigtime_test (INT_MAX))
  7009. return 1;
  7010. }
  7011. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  7012. }
  7013. _ACEOF
  7014. if ac_fn_cxx_try_run "$LINENO"; then :
  7015. ac_cv_func_working_mktime=yes
  7016. else
  7017. ac_cv_func_working_mktime=no
  7018. fi
  7019. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7020. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7021. fi
  7022. fi
  7023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  7024. $as_echo "$ac_cv_func_working_mktime" >&6; }
  7025. if test $ac_cv_func_working_mktime = no; then
  7026. case " $LIBOBJS " in
  7027. *" mktime.$ac_objext "* ) ;;
  7028. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  7029. ;;
  7030. esac
  7031. fi
  7032. for ac_func in getpagesize
  7033. do :
  7034. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  7035. if test "x$ac_cv_func_getpagesize" = xyes; then :
  7036. cat >>build/confdefs.h <<_ACEOF
  7037. #define HAVE_GETPAGESIZE 1
  7038. _ACEOF
  7039. fi
  7040. done
  7041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  7042. $as_echo_n "checking for working mmap... " >&6; }
  7043. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  7044. $as_echo_n "(cached) " >&6
  7045. else
  7046. if test "$cross_compiling" = yes; then :
  7047. ac_cv_func_mmap_fixed_mapped=no
  7048. else
  7049. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7050. /* end build/confdefs.h. */
  7051. $ac_includes_default
  7052. /* malloc might have been renamed as rpl_malloc. */
  7053. #undef malloc
  7054. /* Thanks to Mike Haertel and Jim Avera for this test.
  7055. Here is a matrix of mmap possibilities:
  7056. mmap private not fixed
  7057. mmap private fixed at somewhere currently unmapped
  7058. mmap private fixed at somewhere already mapped
  7059. mmap shared not fixed
  7060. mmap shared fixed at somewhere currently unmapped
  7061. mmap shared fixed at somewhere already mapped
  7062. For private mappings, we should verify that changes cannot be read()
  7063. back from the file, nor mmap's back from the file at a different
  7064. address. (There have been systems where private was not correctly
  7065. implemented like the infamous i386 svr4.0, and systems where the
  7066. VM page cache was not coherent with the file system buffer cache
  7067. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7068. For shared mappings, we should conversely verify that changes get
  7069. propagated back to all the places they're supposed to be.
  7070. Grep wants private fixed already mapped.
  7071. The main things grep needs to know about mmap are:
  7072. * does it exist and is it safe to write into the mmap'd area
  7073. * how to use it (BSD variants) */
  7074. #include <fcntl.h>
  7075. #include <sys/mman.h>
  7076. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7077. char *malloc ();
  7078. #endif
  7079. /* This mess was copied from the GNU getpagesize.h. */
  7080. #ifndef HAVE_GETPAGESIZE
  7081. # ifdef _SC_PAGESIZE
  7082. # define getpagesize() sysconf(_SC_PAGESIZE)
  7083. # else /* no _SC_PAGESIZE */
  7084. # ifdef HAVE_SYS_PARAM_H
  7085. # include <sys/param.h>
  7086. # ifdef EXEC_PAGESIZE
  7087. # define getpagesize() EXEC_PAGESIZE
  7088. # else /* no EXEC_PAGESIZE */
  7089. # ifdef NBPG
  7090. # define getpagesize() NBPG * CLSIZE
  7091. # ifndef CLSIZE
  7092. # define CLSIZE 1
  7093. # endif /* no CLSIZE */
  7094. # else /* no NBPG */
  7095. # ifdef NBPC
  7096. # define getpagesize() NBPC
  7097. # else /* no NBPC */
  7098. # ifdef PAGESIZE
  7099. # define getpagesize() PAGESIZE
  7100. # endif /* PAGESIZE */
  7101. # endif /* no NBPC */
  7102. # endif /* no NBPG */
  7103. # endif /* no EXEC_PAGESIZE */
  7104. # else /* no HAVE_SYS_PARAM_H */
  7105. # define getpagesize() 8192 /* punt totally */
  7106. # endif /* no HAVE_SYS_PARAM_H */
  7107. # endif /* no _SC_PAGESIZE */
  7108. #endif /* no HAVE_GETPAGESIZE */
  7109. int
  7110. main ()
  7111. {
  7112. char *data, *data2, *data3;
  7113. const char *cdata2;
  7114. int i, pagesize;
  7115. int fd, fd2;
  7116. pagesize = getpagesize ();
  7117. /* First, make a file with some known garbage in it. */
  7118. data = (char *) malloc (pagesize);
  7119. if (!data)
  7120. return 1;
  7121. for (i = 0; i < pagesize; ++i)
  7122. *(data + i) = rand ();
  7123. umask (0);
  7124. fd = creat ("conftest.mmap", 0600);
  7125. if (fd < 0)
  7126. return 2;
  7127. if (write (fd, data, pagesize) != pagesize)
  7128. return 3;
  7129. close (fd);
  7130. /* Next, check that the tail of a page is zero-filled. File must have
  7131. non-zero length, otherwise we risk SIGBUS for entire page. */
  7132. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  7133. if (fd2 < 0)
  7134. return 4;
  7135. cdata2 = "";
  7136. if (write (fd2, cdata2, 1) != 1)
  7137. return 5;
  7138. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  7139. if (data2 == MAP_FAILED)
  7140. return 6;
  7141. for (i = 0; i < pagesize; ++i)
  7142. if (*(data2 + i))
  7143. return 7;
  7144. close (fd2);
  7145. if (munmap (data2, pagesize))
  7146. return 8;
  7147. /* Next, try to mmap the file at a fixed address which already has
  7148. something else allocated at it. If we can, also make sure that
  7149. we see the same garbage. */
  7150. fd = open ("conftest.mmap", O_RDWR);
  7151. if (fd < 0)
  7152. return 9;
  7153. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7154. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7155. return 10;
  7156. for (i = 0; i < pagesize; ++i)
  7157. if (*(data + i) != *(data2 + i))
  7158. return 11;
  7159. /* Finally, make sure that changes to the mapped area do not
  7160. percolate back to the file as seen by read(). (This is a bug on
  7161. some variants of i386 svr4.0.) */
  7162. for (i = 0; i < pagesize; ++i)
  7163. *(data2 + i) = *(data2 + i) + 1;
  7164. data3 = (char *) malloc (pagesize);
  7165. if (!data3)
  7166. return 12;
  7167. if (read (fd, data3, pagesize) != pagesize)
  7168. return 13;
  7169. for (i = 0; i < pagesize; ++i)
  7170. if (*(data + i) != *(data3 + i))
  7171. return 14;
  7172. close (fd);
  7173. return 0;
  7174. }
  7175. _ACEOF
  7176. if ac_fn_cxx_try_run "$LINENO"; then :
  7177. ac_cv_func_mmap_fixed_mapped=yes
  7178. else
  7179. ac_cv_func_mmap_fixed_mapped=no
  7180. fi
  7181. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7182. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7183. fi
  7184. fi
  7185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7186. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  7187. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7188. $as_echo "#define HAVE_MMAP 1" >>build/confdefs.h
  7189. fi
  7190. rm -f conftest.mmap conftest.txt
  7191. for ac_header in stdlib.h
  7192. do :
  7193. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  7194. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  7195. cat >>build/confdefs.h <<_ACEOF
  7196. #define HAVE_STDLIB_H 1
  7197. _ACEOF
  7198. fi
  7199. done
  7200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  7201. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  7202. if ${ac_cv_func_realloc_0_nonnull+:} false; then :
  7203. $as_echo_n "(cached) " >&6
  7204. else
  7205. if test "$cross_compiling" = yes; then :
  7206. ac_cv_func_realloc_0_nonnull=no
  7207. else
  7208. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7209. /* end build/confdefs.h. */
  7210. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  7211. # include <stdlib.h>
  7212. #else
  7213. char *realloc ();
  7214. #endif
  7215. int
  7216. main ()
  7217. {
  7218. return ! realloc (0, 0);
  7219. ;
  7220. return 0;
  7221. }
  7222. _ACEOF
  7223. if ac_fn_cxx_try_run "$LINENO"; then :
  7224. ac_cv_func_realloc_0_nonnull=yes
  7225. else
  7226. ac_cv_func_realloc_0_nonnull=no
  7227. fi
  7228. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7229. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7230. fi
  7231. fi
  7232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  7233. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  7234. if test $ac_cv_func_realloc_0_nonnull = yes; then :
  7235. $as_echo "#define HAVE_REALLOC 1" >>build/confdefs.h
  7236. else
  7237. $as_echo "#define HAVE_REALLOC 0" >>build/confdefs.h
  7238. case " $LIBOBJS " in
  7239. *" realloc.$ac_objext "* ) ;;
  7240. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  7241. ;;
  7242. esac
  7243. $as_echo "#define realloc rpl_realloc" >>build/confdefs.h
  7244. fi
  7245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  7246. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  7247. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  7248. $as_echo_n "(cached) " >&6
  7249. else
  7250. if test "$cross_compiling" = yes; then :
  7251. ac_cv_func_stat_empty_string_bug=yes
  7252. else
  7253. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7254. /* end build/confdefs.h. */
  7255. $ac_includes_default
  7256. int
  7257. main ()
  7258. {
  7259. struct stat sbuf;
  7260. return stat ("", &sbuf) == 0;
  7261. ;
  7262. return 0;
  7263. }
  7264. _ACEOF
  7265. if ac_fn_cxx_try_run "$LINENO"; then :
  7266. ac_cv_func_stat_empty_string_bug=no
  7267. else
  7268. ac_cv_func_stat_empty_string_bug=yes
  7269. fi
  7270. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7271. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7272. fi
  7273. fi
  7274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  7275. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  7276. if test $ac_cv_func_stat_empty_string_bug = yes; then
  7277. case " $LIBOBJS " in
  7278. *" stat.$ac_objext "* ) ;;
  7279. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  7280. ;;
  7281. esac
  7282. cat >>build/confdefs.h <<_ACEOF
  7283. #define HAVE_STAT_EMPTY_STRING_BUG 1
  7284. _ACEOF
  7285. fi
  7286. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
  7287. #include <sys/time.h>
  7288. #include <time.h>
  7289. "
  7290. if test "x$ac_cv_type_struct_timespec" = xyes; then :
  7291. $as_echo "#define HAVE_TIMESPEC 1" >>build/confdefs.h
  7292. fi
  7293. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  7294. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
  7295. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
  7296. $as_echo "#define HAVE_ST_MTIM 1" >>build/confdefs.h
  7297. else
  7298. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
  7299. if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
  7300. $as_echo "#define HAVE_ST_MTIMESPEC 1" >>build/confdefs.h
  7301. fi
  7302. fi
  7303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-parameter timespecsub" >&5
  7304. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  7305. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7306. /* end build/confdefs.h. */
  7307. #include <sys/types.h>
  7308. #include <sys/time.h>
  7309. int
  7310. main ()
  7311. {
  7312. struct timespec ts1, ts2;
  7313. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  7314. #ifndef timespecsub
  7315. #error missing timespecsub
  7316. #endif
  7317. timespecsub(&ts1, &ts2);
  7318. ;
  7319. return 0;
  7320. }
  7321. _ACEOF
  7322. if ac_fn_cxx_try_compile "$LINENO"; then :
  7323. $as_echo "#define HAVE_TIMESPECSUB2 1" >>build/confdefs.h
  7324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7325. $as_echo "yes" >&6; }
  7326. else
  7327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7328. $as_echo "no" >&6; }
  7329. fi
  7330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7331. fi
  7332. for ac_func in strftime
  7333. do :
  7334. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  7335. if test "x$ac_cv_func_strftime" = xyes; then :
  7336. cat >>build/confdefs.h <<_ACEOF
  7337. #define HAVE_STRFTIME 1
  7338. _ACEOF
  7339. else
  7340. # strftime is in -lintl on SCO UNIX.
  7341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  7342. $as_echo_n "checking for strftime in -lintl... " >&6; }
  7343. if ${ac_cv_lib_intl_strftime+:} false; then :
  7344. $as_echo_n "(cached) " >&6
  7345. else
  7346. ac_check_lib_save_LIBS=$LIBS
  7347. LIBS="-lintl $LIBS"
  7348. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7349. /* end build/confdefs.h. */
  7350. /* Override any GCC internal prototype to avoid an error.
  7351. Use char because int might match the return type of a GCC
  7352. builtin and then its argument prototype would still apply. */
  7353. #ifdef __cplusplus
  7354. extern "C"
  7355. #endif
  7356. char strftime ();
  7357. int
  7358. main ()
  7359. {
  7360. return strftime ();
  7361. ;
  7362. return 0;
  7363. }
  7364. _ACEOF
  7365. if ac_fn_cxx_try_link "$LINENO"; then :
  7366. ac_cv_lib_intl_strftime=yes
  7367. else
  7368. ac_cv_lib_intl_strftime=no
  7369. fi
  7370. rm -f core conftest.err conftest.$ac_objext \
  7371. conftest$ac_exeext conftest.$ac_ext
  7372. LIBS=$ac_check_lib_save_LIBS
  7373. fi
  7374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  7375. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  7376. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  7377. $as_echo "#define HAVE_STRFTIME 1" >>build/confdefs.h
  7378. LIBS="-lintl $LIBS"
  7379. fi
  7380. fi
  7381. done
  7382. #checkpoint
  7383. cat >confcache <<\_ACEOF
  7384. # This file is a shell script that caches the results of configure
  7385. # tests run on this system so they can be shared between configure
  7386. # scripts and configure runs, see configure's option --config-cache.
  7387. # It is not useful on other systems. If it contains results you don't
  7388. # want to keep, you may remove or edit it.
  7389. #
  7390. # build/config.status only pays attention to the cache file if you give it
  7391. # the --recheck option to rerun configure.
  7392. #
  7393. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7394. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7395. # following values.
  7396. _ACEOF
  7397. # The following way of writing the cache mishandles newlines in values,
  7398. # but we know of no workaround that is simple, portable, and efficient.
  7399. # So, we kill variables containing newlines.
  7400. # Ultrix sh set writes to stderr and can't be redirected directly,
  7401. # and sets the high bit in the cache file unless we assign to the vars.
  7402. (
  7403. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7404. eval ac_val=\$$ac_var
  7405. case $ac_val in #(
  7406. *${as_nl}*)
  7407. case $ac_var in #(
  7408. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7409. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7410. esac
  7411. case $ac_var in #(
  7412. _ | IFS | as_nl) ;; #(
  7413. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7414. *) { eval $ac_var=; unset $ac_var;} ;;
  7415. esac ;;
  7416. esac
  7417. done
  7418. (set) 2>&1 |
  7419. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7420. *${as_nl}ac_space=\ *)
  7421. # `set' does not quote correctly, so add quotes: double-quote
  7422. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7423. sed -n \
  7424. "s/'/'\\\\''/g;
  7425. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7426. ;; #(
  7427. *)
  7428. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7429. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7430. ;;
  7431. esac |
  7432. sort
  7433. ) |
  7434. sed '
  7435. /^ac_cv_env_/b end
  7436. t clear
  7437. :clear
  7438. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7439. t end
  7440. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7441. :end' >>confcache
  7442. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7443. if test -w "$cache_file"; then
  7444. if test "x$cache_file" != "x/dev/null"; then
  7445. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7446. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7447. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7448. cat confcache >"$cache_file"
  7449. else
  7450. case $cache_file in #(
  7451. */* | ?:*)
  7452. mv -f confcache "$cache_file"$$ &&
  7453. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7454. *)
  7455. mv -f confcache "$cache_file" ;;
  7456. esac
  7457. fi
  7458. fi
  7459. else
  7460. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7461. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7462. fi
  7463. fi
  7464. rm -f confcache
  7465. for ac_func in clock fsync getrusage isascii getpassphrase
  7466. do :
  7467. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7468. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7469. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7470. cat >>build/confdefs.h <<_ACEOF
  7471. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7472. _ACEOF
  7473. fi
  7474. done
  7475. for ac_func in memcpy memset random rename snprintf srandom gettime
  7476. do :
  7477. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7478. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7479. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7480. cat >>build/confdefs.h <<_ACEOF
  7481. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7482. _ACEOF
  7483. fi
  7484. done
  7485. #checkpoint
  7486. cat >confcache <<\_ACEOF
  7487. # This file is a shell script that caches the results of configure
  7488. # tests run on this system so they can be shared between configure
  7489. # scripts and configure runs, see configure's option --config-cache.
  7490. # It is not useful on other systems. If it contains results you don't
  7491. # want to keep, you may remove or edit it.
  7492. #
  7493. # build/config.status only pays attention to the cache file if you give it
  7494. # the --recheck option to rerun configure.
  7495. #
  7496. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7497. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7498. # following values.
  7499. _ACEOF
  7500. # The following way of writing the cache mishandles newlines in values,
  7501. # but we know of no workaround that is simple, portable, and efficient.
  7502. # So, we kill variables containing newlines.
  7503. # Ultrix sh set writes to stderr and can't be redirected directly,
  7504. # and sets the high bit in the cache file unless we assign to the vars.
  7505. (
  7506. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7507. eval ac_val=\$$ac_var
  7508. case $ac_val in #(
  7509. *${as_nl}*)
  7510. case $ac_var in #(
  7511. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7512. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7513. esac
  7514. case $ac_var in #(
  7515. _ | IFS | as_nl) ;; #(
  7516. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7517. *) { eval $ac_var=; unset $ac_var;} ;;
  7518. esac ;;
  7519. esac
  7520. done
  7521. (set) 2>&1 |
  7522. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7523. *${as_nl}ac_space=\ *)
  7524. # `set' does not quote correctly, so add quotes: double-quote
  7525. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7526. sed -n \
  7527. "s/'/'\\\\''/g;
  7528. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7529. ;; #(
  7530. *)
  7531. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7532. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7533. ;;
  7534. esac |
  7535. sort
  7536. ) |
  7537. sed '
  7538. /^ac_cv_env_/b end
  7539. t clear
  7540. :clear
  7541. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7542. t end
  7543. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7544. :end' >>confcache
  7545. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7546. if test -w "$cache_file"; then
  7547. if test "x$cache_file" != "x/dev/null"; then
  7548. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7549. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7550. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7551. cat confcache >"$cache_file"
  7552. else
  7553. case $cache_file in #(
  7554. */* | ?:*)
  7555. mv -f confcache "$cache_file"$$ &&
  7556. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7557. *)
  7558. mv -f confcache "$cache_file" ;;
  7559. esac
  7560. fi
  7561. fi
  7562. else
  7563. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7564. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7565. fi
  7566. fi
  7567. rm -f confcache
  7568. for ac_func in strcasecmp strncasecmp vsnprintf inet_ntop
  7569. do :
  7570. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7571. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7572. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7573. cat >>build/confdefs.h <<_ACEOF
  7574. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7575. _ACEOF
  7576. fi
  7577. done
  7578. #autoscan suggested this....
  7579. #These are recommended by autoscan, but no code supports it currently
  7580. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostname getpass gettimeofday mbrlen
  7581. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  7582. for ac_func in vsprintf
  7583. do :
  7584. ac_fn_cxx_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
  7585. if test "x$ac_cv_func_vsprintf" = xyes; then :
  7586. cat >>build/confdefs.h <<_ACEOF
  7587. #define HAVE_VSPRINTF 1
  7588. _ACEOF
  7589. fi
  7590. done
  7591. if test "$ac_cv_func_vsprintf" = "no"
  7592. then
  7593. cat << 'EOF' >&2
  7594. configure: error:
  7595. Your system does not have the sprintf/vsprintf libraries.
  7596. These are required to compile almost anything. Sorry.
  7597. EOF
  7598. exit 1
  7599. fi
  7600. for ac_func in uname
  7601. do :
  7602. ac_fn_cxx_check_func "$LINENO" "uname" "ac_cv_func_uname"
  7603. if test "x$ac_cv_func_uname" = xyes; then :
  7604. cat >>build/confdefs.h <<_ACEOF
  7605. #define HAVE_UNAME 1
  7606. _ACEOF
  7607. fi
  7608. done
  7609. if test "$ac_cv_func_uname" = "no"
  7610. then
  7611. cat << 'EOF' >&2
  7612. configure: error:
  7613. Your system does not have the uname() function.
  7614. This is required for the botpack.
  7615. EOF
  7616. exit 1
  7617. fi
  7618. # Make sure we have stdc headers, since we can't compile without them
  7619. if test "$ac_cv_header_stdc" = "no"
  7620. then
  7621. cat << 'EOF' >&2
  7622. configure: error:
  7623. Your system must support ANSI C Header files.
  7624. These are required for the language support. Sorry.
  7625. EOF
  7626. exit 1
  7627. fi
  7628. #checkpoint
  7629. cat >confcache <<\_ACEOF
  7630. # This file is a shell script that caches the results of configure
  7631. # tests run on this system so they can be shared between configure
  7632. # scripts and configure runs, see configure's option --config-cache.
  7633. # It is not useful on other systems. If it contains results you don't
  7634. # want to keep, you may remove or edit it.
  7635. #
  7636. # build/config.status only pays attention to the cache file if you give it
  7637. # the --recheck option to rerun configure.
  7638. #
  7639. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7640. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7641. # following values.
  7642. _ACEOF
  7643. # The following way of writing the cache mishandles newlines in values,
  7644. # but we know of no workaround that is simple, portable, and efficient.
  7645. # So, we kill variables containing newlines.
  7646. # Ultrix sh set writes to stderr and can't be redirected directly,
  7647. # and sets the high bit in the cache file unless we assign to the vars.
  7648. (
  7649. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7650. eval ac_val=\$$ac_var
  7651. case $ac_val in #(
  7652. *${as_nl}*)
  7653. case $ac_var in #(
  7654. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7655. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7656. esac
  7657. case $ac_var in #(
  7658. _ | IFS | as_nl) ;; #(
  7659. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7660. *) { eval $ac_var=; unset $ac_var;} ;;
  7661. esac ;;
  7662. esac
  7663. done
  7664. (set) 2>&1 |
  7665. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7666. *${as_nl}ac_space=\ *)
  7667. # `set' does not quote correctly, so add quotes: double-quote
  7668. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7669. sed -n \
  7670. "s/'/'\\\\''/g;
  7671. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7672. ;; #(
  7673. *)
  7674. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7675. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7676. ;;
  7677. esac |
  7678. sort
  7679. ) |
  7680. sed '
  7681. /^ac_cv_env_/b end
  7682. t clear
  7683. :clear
  7684. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7685. t end
  7686. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7687. :end' >>confcache
  7688. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7689. if test -w "$cache_file"; then
  7690. if test "x$cache_file" != "x/dev/null"; then
  7691. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7692. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7693. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7694. cat confcache >"$cache_file"
  7695. else
  7696. case $cache_file in #(
  7697. */* | ?:*)
  7698. mv -f confcache "$cache_file"$$ &&
  7699. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7700. *)
  7701. mv -f confcache "$cache_file" ;;
  7702. esac
  7703. fi
  7704. fi
  7705. else
  7706. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7707. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7708. fi
  7709. fi
  7710. rm -f confcache
  7711. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  7712. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  7713. cat >>build/confdefs.h <<_ACEOF
  7714. #define EGG_VERSION $version_num
  7715. _ACEOF
  7716. #FIND_WRAPS
  7717. case "$srcdir" in
  7718. [\\/]* | ?:[\\/]*)
  7719. MOD_UPDIR=""
  7720. ;;
  7721. *)
  7722. MOD_UPDIR="../"
  7723. ;;
  7724. esac
  7725. 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"
  7726. for mf in $files; do
  7727. # Strip MF so we end up with the name of the file.
  7728. # echo "MF: $mf"
  7729. mf=`echo "$mf" | sed -e 's/:.*$//'`
  7730. dirpart=`$as_dirname -- "$mf" ||
  7731. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7732. X"$mf" : 'X\(//\)[^/]' \| \
  7733. X"$mf" : 'X\(//\)$' \| \
  7734. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  7735. $as_echo X"$mf" |
  7736. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7737. s//\1/
  7738. q
  7739. }
  7740. /^X\(\/\/\)[^/].*/{
  7741. s//\1/
  7742. q
  7743. }
  7744. /^X\(\/\/\)$/{
  7745. s//\1/
  7746. q
  7747. }
  7748. /^X\(\/\).*/{
  7749. s//\1/
  7750. q
  7751. }
  7752. s/.*/./; q'`
  7753. # echo "dirpart: $dirpart mf: $mf"
  7754. # rm -rf "$dirpart/.deps/"
  7755. rm -f "$dirpart/.deps/includes"
  7756. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  7757. for file in `sed -n -e '
  7758. /^OBJS = .*\\\\$/ {
  7759. s/^OBJS = //
  7760. :loop
  7761. s/\\\\$//
  7762. p
  7763. n
  7764. /\\\\$/ b loop
  7765. p
  7766. }
  7767. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  7768. do
  7769. suffix=${file##*.}
  7770. base=${file%%.*}
  7771. test -f "$dirpart/$base.c" || continue
  7772. if ! test -f "$dirpart/.deps/$base.Po"; then
  7773. echo '# dummy' > "$dirpart/.deps/$base.Po"
  7774. #Remove the .o file, because it needs to be recompiled for its dependancies.
  7775. if test -f "$dirpart/${base}.${suffix}"; then
  7776. rm -f "$dirpart/${base}.${suffix}"
  7777. fi
  7778. fi
  7779. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  7780. done
  7781. done
  7782. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/buildinfo.h"
  7783. GIT_REQUIRED=1
  7784. if [ "$GIT_REQUIRED" = "1" ]; then
  7785. if ! test -d .git; then
  7786. echo ""
  7787. echo ""
  7788. echo "You have downloaded a GIT version of wraith."
  7789. echo "Either 'git clone' from a git repository or download a source tarball"
  7790. echo "A distribution version can be found at http://wraith.botpack.net/wiki/Download"
  7791. echo ""
  7792. echo ""
  7793. exit 1
  7794. fi
  7795. fi
  7796. if test -d .git; then
  7797. git submodule init
  7798. git submodule update
  7799. fi
  7800. if [ -f lib/bdlib/configure ]; then
  7801. subdirs="$subdirs lib/bdlib"
  7802. fi
  7803. cat >confcache <<\_ACEOF
  7804. # This file is a shell script that caches the results of configure
  7805. # tests run on this system so they can be shared between configure
  7806. # scripts and configure runs, see configure's option --config-cache.
  7807. # It is not useful on other systems. If it contains results you don't
  7808. # want to keep, you may remove or edit it.
  7809. #
  7810. # build/config.status only pays attention to the cache file if you give it
  7811. # the --recheck option to rerun configure.
  7812. #
  7813. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7814. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7815. # following values.
  7816. _ACEOF
  7817. # The following way of writing the cache mishandles newlines in values,
  7818. # but we know of no workaround that is simple, portable, and efficient.
  7819. # So, we kill variables containing newlines.
  7820. # Ultrix sh set writes to stderr and can't be redirected directly,
  7821. # and sets the high bit in the cache file unless we assign to the vars.
  7822. (
  7823. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7824. eval ac_val=\$$ac_var
  7825. case $ac_val in #(
  7826. *${as_nl}*)
  7827. case $ac_var in #(
  7828. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7829. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7830. esac
  7831. case $ac_var in #(
  7832. _ | IFS | as_nl) ;; #(
  7833. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7834. *) { eval $ac_var=; unset $ac_var;} ;;
  7835. esac ;;
  7836. esac
  7837. done
  7838. (set) 2>&1 |
  7839. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7840. *${as_nl}ac_space=\ *)
  7841. # `set' does not quote correctly, so add quotes: double-quote
  7842. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7843. sed -n \
  7844. "s/'/'\\\\''/g;
  7845. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7846. ;; #(
  7847. *)
  7848. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7849. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7850. ;;
  7851. esac |
  7852. sort
  7853. ) |
  7854. sed '
  7855. /^ac_cv_env_/b end
  7856. t clear
  7857. :clear
  7858. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7859. t end
  7860. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7861. :end' >>confcache
  7862. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7863. if test -w "$cache_file"; then
  7864. if test "x$cache_file" != "x/dev/null"; then
  7865. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7866. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7867. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7868. cat confcache >"$cache_file"
  7869. else
  7870. case $cache_file in #(
  7871. */* | ?:*)
  7872. mv -f confcache "$cache_file"$$ &&
  7873. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7874. *)
  7875. mv -f confcache "$cache_file" ;;
  7876. esac
  7877. fi
  7878. fi
  7879. else
  7880. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7881. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7882. fi
  7883. fi
  7884. rm -f confcache
  7885. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  7886. # Let make expand exec_prefix.
  7887. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7888. DEFS=-DHAVE_CONFIG_H
  7889. ac_libobjs=
  7890. ac_ltlibobjs=
  7891. U=
  7892. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  7893. # 1. Remove the extension, and $U if already installed.
  7894. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  7895. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  7896. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  7897. # will be set to the directory where LIBOBJS objects are built.
  7898. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  7899. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  7900. done
  7901. LIBOBJS=$ac_libobjs
  7902. LTLIBOBJS=$ac_ltlibobjs
  7903. : "${CONFIG_STATUS=./build/config.status}"
  7904. ac_write_fail=0
  7905. ac_clean_files_save=$ac_clean_files
  7906. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  7907. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  7908. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  7909. as_write_fail=0
  7910. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  7911. #! $SHELL
  7912. # Generated by $as_me.
  7913. # Run this file to recreate the current configuration.
  7914. # Compiler output produced by configure, useful for debugging
  7915. # configure, is in build/config.log if it exists.
  7916. debug=false
  7917. ac_cs_recheck=false
  7918. ac_cs_silent=false
  7919. SHELL=\${CONFIG_SHELL-$SHELL}
  7920. export SHELL
  7921. _ASEOF
  7922. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  7923. ## -------------------- ##
  7924. ## M4sh Initialization. ##
  7925. ## -------------------- ##
  7926. # Be more Bourne compatible
  7927. DUALCASE=1; export DUALCASE # for MKS sh
  7928. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  7929. emulate sh
  7930. NULLCMD=:
  7931. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  7932. # is contrary to our usage. Disable this feature.
  7933. alias -g '${1+"$@"}'='"$@"'
  7934. setopt NO_GLOB_SUBST
  7935. else
  7936. case `(set -o) 2>/dev/null` in #(
  7937. *posix*) :
  7938. set -o posix ;; #(
  7939. *) :
  7940. ;;
  7941. esac
  7942. fi
  7943. as_nl='
  7944. '
  7945. export as_nl
  7946. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  7947. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  7948. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  7949. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  7950. # Prefer a ksh shell builtin over an external printf program on Solaris,
  7951. # but without wasting forks for bash or zsh.
  7952. if test -z "$BASH_VERSION$ZSH_VERSION" \
  7953. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  7954. as_echo='print -r --'
  7955. as_echo_n='print -rn --'
  7956. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  7957. as_echo='printf %s\n'
  7958. as_echo_n='printf %s'
  7959. else
  7960. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  7961. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  7962. as_echo_n='/usr/ucb/echo -n'
  7963. else
  7964. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  7965. as_echo_n_body='eval
  7966. arg=$1;
  7967. case $arg in #(
  7968. *"$as_nl"*)
  7969. expr "X$arg" : "X\\(.*\\)$as_nl";
  7970. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  7971. esac;
  7972. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  7973. '
  7974. export as_echo_n_body
  7975. as_echo_n='sh -c $as_echo_n_body as_echo'
  7976. fi
  7977. export as_echo_body
  7978. as_echo='sh -c $as_echo_body as_echo'
  7979. fi
  7980. # The user is always right.
  7981. if test "${PATH_SEPARATOR+set}" != set; then
  7982. PATH_SEPARATOR=:
  7983. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  7984. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  7985. PATH_SEPARATOR=';'
  7986. }
  7987. fi
  7988. # IFS
  7989. # We need space, tab and new line, in precisely that order. Quoting is
  7990. # there to prevent editors from complaining about space-tab.
  7991. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  7992. # splitting by setting IFS to empty value.)
  7993. IFS=" "" $as_nl"
  7994. # Find who we are. Look in the path if we contain no directory separator.
  7995. as_myself=
  7996. case $0 in #((
  7997. *[\\/]* ) as_myself=$0 ;;
  7998. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7999. for as_dir in $PATH
  8000. do
  8001. IFS=$as_save_IFS
  8002. test -z "$as_dir" && as_dir=.
  8003. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8004. done
  8005. IFS=$as_save_IFS
  8006. ;;
  8007. esac
  8008. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8009. # in which case we are not to be found in the path.
  8010. if test "x$as_myself" = x; then
  8011. as_myself=$0
  8012. fi
  8013. if test ! -f "$as_myself"; then
  8014. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8015. exit 1
  8016. fi
  8017. # Unset variables that we do not need and which cause bugs (e.g. in
  8018. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  8019. # suppresses any "Segmentation fault" message there. '((' could
  8020. # trigger a bug in pdksh 5.2.14.
  8021. for as_var in BASH_ENV ENV MAIL MAILPATH
  8022. do eval test x\${$as_var+set} = xset \
  8023. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8024. done
  8025. PS1='$ '
  8026. PS2='> '
  8027. PS4='+ '
  8028. # NLS nuisances.
  8029. LC_ALL=C
  8030. export LC_ALL
  8031. LANGUAGE=C
  8032. export LANGUAGE
  8033. # CDPATH.
  8034. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8035. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8036. # ----------------------------------------
  8037. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8038. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8039. # script with STATUS, using 1 if that was 0.
  8040. as_fn_error ()
  8041. {
  8042. as_status=$1; test $as_status -eq 0 && as_status=1
  8043. if test "$4"; then
  8044. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8045. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8046. fi
  8047. $as_echo "$as_me: error: $2" >&2
  8048. as_fn_exit $as_status
  8049. } # as_fn_error
  8050. # as_fn_set_status STATUS
  8051. # -----------------------
  8052. # Set $? to STATUS, without forking.
  8053. as_fn_set_status ()
  8054. {
  8055. return $1
  8056. } # as_fn_set_status
  8057. # as_fn_exit STATUS
  8058. # -----------------
  8059. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8060. as_fn_exit ()
  8061. {
  8062. set +e
  8063. as_fn_set_status $1
  8064. exit $1
  8065. } # as_fn_exit
  8066. # as_fn_unset VAR
  8067. # ---------------
  8068. # Portably unset VAR.
  8069. as_fn_unset ()
  8070. {
  8071. { eval $1=; unset $1;}
  8072. }
  8073. as_unset=as_fn_unset
  8074. # as_fn_append VAR VALUE
  8075. # ----------------------
  8076. # Append the text in VALUE to the end of the definition contained in VAR. Take
  8077. # advantage of any shell optimizations that allow amortized linear growth over
  8078. # repeated appends, instead of the typical quadratic growth present in naive
  8079. # implementations.
  8080. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  8081. eval 'as_fn_append ()
  8082. {
  8083. eval $1+=\$2
  8084. }'
  8085. else
  8086. as_fn_append ()
  8087. {
  8088. eval $1=\$$1\$2
  8089. }
  8090. fi # as_fn_append
  8091. # as_fn_arith ARG...
  8092. # ------------------
  8093. # Perform arithmetic evaluation on the ARGs, and store the result in the
  8094. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  8095. # must be portable across $(()) and expr.
  8096. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  8097. eval 'as_fn_arith ()
  8098. {
  8099. as_val=$(( $* ))
  8100. }'
  8101. else
  8102. as_fn_arith ()
  8103. {
  8104. as_val=`expr "$@" || test $? -eq 1`
  8105. }
  8106. fi # as_fn_arith
  8107. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8108. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8109. as_expr=expr
  8110. else
  8111. as_expr=false
  8112. fi
  8113. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  8114. as_basename=basename
  8115. else
  8116. as_basename=false
  8117. fi
  8118. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8119. as_dirname=dirname
  8120. else
  8121. as_dirname=false
  8122. fi
  8123. as_me=`$as_basename -- "$0" ||
  8124. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8125. X"$0" : 'X\(//\)$' \| \
  8126. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8127. $as_echo X/"$0" |
  8128. sed '/^.*\/\([^/][^/]*\)\/*$/{
  8129. s//\1/
  8130. q
  8131. }
  8132. /^X\/\(\/\/\)$/{
  8133. s//\1/
  8134. q
  8135. }
  8136. /^X\/\(\/\).*/{
  8137. s//\1/
  8138. q
  8139. }
  8140. s/.*/./; q'`
  8141. # Avoid depending upon Character Ranges.
  8142. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8143. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8144. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8145. as_cr_digits='0123456789'
  8146. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8147. ECHO_C= ECHO_N= ECHO_T=
  8148. case `echo -n x` in #(((((
  8149. -n*)
  8150. case `echo 'xy\c'` in
  8151. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8152. xy) ECHO_C='\c';;
  8153. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  8154. ECHO_T=' ';;
  8155. esac;;
  8156. *)
  8157. ECHO_N='-n';;
  8158. esac
  8159. rm -f conf$$ conf$$.exe conf$$.file
  8160. if test -d conf$$.dir; then
  8161. rm -f conf$$.dir/conf$$.file
  8162. else
  8163. rm -f conf$$.dir
  8164. mkdir conf$$.dir 2>/dev/null
  8165. fi
  8166. if (echo >conf$$.file) 2>/dev/null; then
  8167. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8168. as_ln_s='ln -s'
  8169. # ... but there are two gotchas:
  8170. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8171. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8172. # In both cases, we have to default to `cp -pR'.
  8173. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8174. as_ln_s='cp -pR'
  8175. elif ln conf$$.file conf$$ 2>/dev/null; then
  8176. as_ln_s=ln
  8177. else
  8178. as_ln_s='cp -pR'
  8179. fi
  8180. else
  8181. as_ln_s='cp -pR'
  8182. fi
  8183. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8184. rmdir conf$$.dir 2>/dev/null
  8185. # as_fn_mkdir_p
  8186. # -------------
  8187. # Create "$as_dir" as a directory, including parents if necessary.
  8188. as_fn_mkdir_p ()
  8189. {
  8190. case $as_dir in #(
  8191. -*) as_dir=./$as_dir;;
  8192. esac
  8193. test -d "$as_dir" || eval $as_mkdir_p || {
  8194. as_dirs=
  8195. while :; do
  8196. case $as_dir in #(
  8197. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  8198. *) as_qdir=$as_dir;;
  8199. esac
  8200. as_dirs="'$as_qdir' $as_dirs"
  8201. as_dir=`$as_dirname -- "$as_dir" ||
  8202. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8203. X"$as_dir" : 'X\(//\)[^/]' \| \
  8204. X"$as_dir" : 'X\(//\)$' \| \
  8205. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  8206. $as_echo X"$as_dir" |
  8207. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8208. s//\1/
  8209. q
  8210. }
  8211. /^X\(\/\/\)[^/].*/{
  8212. s//\1/
  8213. q
  8214. }
  8215. /^X\(\/\/\)$/{
  8216. s//\1/
  8217. q
  8218. }
  8219. /^X\(\/\).*/{
  8220. s//\1/
  8221. q
  8222. }
  8223. s/.*/./; q'`
  8224. test -d "$as_dir" && break
  8225. done
  8226. test -z "$as_dirs" || eval "mkdir $as_dirs"
  8227. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  8228. } # as_fn_mkdir_p
  8229. if mkdir -p . 2>/dev/null; then
  8230. as_mkdir_p='mkdir -p "$as_dir"'
  8231. else
  8232. test -d ./-p && rmdir ./-p
  8233. as_mkdir_p=false
  8234. fi
  8235. # as_fn_executable_p FILE
  8236. # -----------------------
  8237. # Test if FILE is an executable regular file.
  8238. as_fn_executable_p ()
  8239. {
  8240. test -f "$1" && test -x "$1"
  8241. } # as_fn_executable_p
  8242. as_test_x='test -x'
  8243. as_executable_p=as_fn_executable_p
  8244. # Sed expression to map a string onto a valid CPP name.
  8245. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8246. # Sed expression to map a string onto a valid variable name.
  8247. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8248. exec 6>&1
  8249. ## ----------------------------------- ##
  8250. ## Main body of $CONFIG_STATUS script. ##
  8251. ## ----------------------------------- ##
  8252. _ASEOF
  8253. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  8254. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8255. # Save the log message, to keep $0 and so on meaningful, and to
  8256. # report actual input values of CONFIG_FILES etc. instead of their
  8257. # values after options handling.
  8258. ac_log="
  8259. This file was extended by $as_me, which was
  8260. generated by GNU Autoconf 2.69. Invocation command line was
  8261. CONFIG_FILES = $CONFIG_FILES
  8262. CONFIG_HEADERS = $CONFIG_HEADERS
  8263. CONFIG_LINKS = $CONFIG_LINKS
  8264. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8265. $ $0 $@
  8266. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8267. "
  8268. _ACEOF
  8269. case $ac_config_files in *"
  8270. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  8271. esac
  8272. case $ac_config_headers in *"
  8273. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  8274. esac
  8275. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8276. # Files that build/config.status was made for.
  8277. config_files="$ac_config_files"
  8278. config_headers="$ac_config_headers"
  8279. _ACEOF
  8280. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8281. ac_cs_usage="\
  8282. \`$as_me' instantiates files and other configuration actions
  8283. from templates according to the current configuration. Unless the files
  8284. and actions are specified as TAGs, all are instantiated by default.
  8285. Usage: $0 [OPTION]... [TAG]...
  8286. -h, --help print this help, then exit
  8287. -V, --version print version number and configuration settings, then exit
  8288. --config print configuration, then exit
  8289. -q, --quiet, --silent
  8290. do not print progress messages
  8291. -d, --debug don't remove temporary files
  8292. --recheck update $as_me by reconfiguring in the same conditions
  8293. --file=FILE[:TEMPLATE]
  8294. instantiate the configuration file FILE
  8295. --header=FILE[:TEMPLATE]
  8296. instantiate the configuration header FILE
  8297. Configuration files:
  8298. $config_files
  8299. Configuration headers:
  8300. $config_headers
  8301. Report bugs to the package provider."
  8302. _ACEOF
  8303. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8304. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  8305. ac_cs_version="\\
  8306. build/config.status
  8307. configured by $0, generated by GNU Autoconf 2.69,
  8308. with options \\"\$ac_cs_config\\"
  8309. Copyright (C) 2012 Free Software Foundation, Inc.
  8310. This build/config.status script is free software; the Free Software Foundation
  8311. gives unlimited permission to copy, distribute and modify it."
  8312. ac_pwd='$ac_pwd'
  8313. srcdir='$srcdir'
  8314. AWK='$AWK'
  8315. test -n "\$AWK" || AWK=awk
  8316. _ACEOF
  8317. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8318. # The default lists apply if the user does not specify any file.
  8319. ac_need_defaults=:
  8320. while test $# != 0
  8321. do
  8322. case $1 in
  8323. --*=?*)
  8324. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8325. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  8326. ac_shift=:
  8327. ;;
  8328. --*=)
  8329. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8330. ac_optarg=
  8331. ac_shift=:
  8332. ;;
  8333. *)
  8334. ac_option=$1
  8335. ac_optarg=$2
  8336. ac_shift=shift
  8337. ;;
  8338. esac
  8339. case $ac_option in
  8340. # Handling of the options.
  8341. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8342. ac_cs_recheck=: ;;
  8343. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  8344. $as_echo "$ac_cs_version"; exit ;;
  8345. --config | --confi | --conf | --con | --co | --c )
  8346. $as_echo "$ac_cs_config"; exit ;;
  8347. --debug | --debu | --deb | --de | --d | -d )
  8348. debug=: ;;
  8349. --file | --fil | --fi | --f )
  8350. $ac_shift
  8351. case $ac_optarg in
  8352. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8353. '') as_fn_error $? "missing file argument" ;;
  8354. esac
  8355. as_fn_append CONFIG_FILES " '$ac_optarg'"
  8356. ac_need_defaults=false;;
  8357. --header | --heade | --head | --hea )
  8358. $ac_shift
  8359. case $ac_optarg in
  8360. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8361. esac
  8362. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  8363. ac_need_defaults=false;;
  8364. --he | --h)
  8365. # Conflict between --help and --header
  8366. as_fn_error $? "ambiguous option: \`$1'
  8367. Try \`$0 --help' for more information.";;
  8368. --help | --hel | -h )
  8369. $as_echo "$ac_cs_usage"; exit ;;
  8370. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8371. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8372. ac_cs_silent=: ;;
  8373. # This is an error.
  8374. -*) as_fn_error $? "unrecognized option: \`$1'
  8375. Try \`$0 --help' for more information." ;;
  8376. *) as_fn_append ac_config_targets " $1"
  8377. ac_need_defaults=false ;;
  8378. esac
  8379. shift
  8380. done
  8381. ac_configure_extra_args=
  8382. if $ac_cs_silent; then
  8383. exec 6>/dev/null
  8384. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8385. fi
  8386. _ACEOF
  8387. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8388. if \$ac_cs_recheck; then
  8389. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8390. shift
  8391. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  8392. CONFIG_SHELL='$SHELL'
  8393. export CONFIG_SHELL
  8394. exec "\$@"
  8395. fi
  8396. _ACEOF
  8397. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8398. exec 5>>build/config.log
  8399. {
  8400. echo
  8401. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8402. ## Running $as_me. ##
  8403. _ASBOX
  8404. $as_echo "$ac_log"
  8405. } >&5
  8406. _ACEOF
  8407. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8408. _ACEOF
  8409. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8410. # Handling of arguments.
  8411. for ac_config_target in $ac_config_targets
  8412. do
  8413. case $ac_config_target in
  8414. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  8415. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8416. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  8417. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8418. "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  8419. "src/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  8420. "src/mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  8421. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  8422. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  8423. esac
  8424. done
  8425. # If the user did not use the arguments to specify the items to instantiate,
  8426. # then the envvar interface is used. Set only those that are not.
  8427. # We use the long form for the default assignment because of an extremely
  8428. # bizarre bug on SunOS 4.1.3.
  8429. if $ac_need_defaults; then
  8430. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8431. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8432. fi
  8433. # Have a temporary directory for convenience. Make it in the build tree
  8434. # simply because there is no reason against having it here, and in addition,
  8435. # creating and moving files from /tmp can sometimes cause problems.
  8436. # Hook for its removal unless debugging.
  8437. # Note that there is a small window in which the directory will not be cleaned:
  8438. # after its creation but before its name has been assigned to `$tmp'.
  8439. $debug ||
  8440. {
  8441. tmp= ac_tmp=
  8442. trap 'exit_status=$?
  8443. : "${ac_tmp:=$tmp}"
  8444. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  8445. ' 0
  8446. trap 'as_fn_exit 1' 1 2 13 15
  8447. }
  8448. # Create a (secure) tmp directory for tmp files.
  8449. {
  8450. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  8451. test -d "$tmp"
  8452. } ||
  8453. {
  8454. tmp=./conf$$-$RANDOM
  8455. (umask 077 && mkdir "$tmp")
  8456. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  8457. ac_tmp=$tmp
  8458. # Set up the scripts for CONFIG_FILES section.
  8459. # No need to generate them if there are no CONFIG_FILES.
  8460. # This happens for instance with `./build/config.status config.h'.
  8461. if test -n "$CONFIG_FILES"; then
  8462. ac_cr=`echo X | tr X '\015'`
  8463. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  8464. # But we know of no other shell where ac_cr would be empty at this
  8465. # point, so we can use a bashism as a fallback.
  8466. if test "x$ac_cr" = x; then
  8467. eval ac_cr=\$\'\\r\'
  8468. fi
  8469. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  8470. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  8471. ac_cs_awk_cr='\\r'
  8472. else
  8473. ac_cs_awk_cr=$ac_cr
  8474. fi
  8475. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  8476. _ACEOF
  8477. {
  8478. echo "cat >conf$$subs.awk <<_ACEOF" &&
  8479. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  8480. echo "_ACEOF"
  8481. } >conf$$subs.sh ||
  8482. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8483. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  8484. ac_delim='%!_!# '
  8485. for ac_last_try in false false false false false :; do
  8486. . ./conf$$subs.sh ||
  8487. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8488. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  8489. if test $ac_delim_n = $ac_delim_num; then
  8490. break
  8491. elif $ac_last_try; then
  8492. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8493. else
  8494. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8495. fi
  8496. done
  8497. rm -f conf$$subs.sh
  8498. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8499. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  8500. _ACEOF
  8501. sed -n '
  8502. h
  8503. s/^/S["/; s/!.*/"]=/
  8504. p
  8505. g
  8506. s/^[^!]*!//
  8507. :repl
  8508. t repl
  8509. s/'"$ac_delim"'$//
  8510. t delim
  8511. :nl
  8512. h
  8513. s/\(.\{148\}\)..*/\1/
  8514. t more1
  8515. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  8516. p
  8517. n
  8518. b repl
  8519. :more1
  8520. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8521. p
  8522. g
  8523. s/.\{148\}//
  8524. t nl
  8525. :delim
  8526. h
  8527. s/\(.\{148\}\)..*/\1/
  8528. t more2
  8529. s/["\\]/\\&/g; s/^/"/; s/$/"/
  8530. p
  8531. b
  8532. :more2
  8533. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8534. p
  8535. g
  8536. s/.\{148\}//
  8537. t delim
  8538. ' <conf$$subs.awk | sed '
  8539. /^[^""]/{
  8540. N
  8541. s/\n//
  8542. }
  8543. ' >>$CONFIG_STATUS || ac_write_fail=1
  8544. rm -f conf$$subs.awk
  8545. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8546. _ACAWK
  8547. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  8548. for (key in S) S_is_set[key] = 1
  8549. FS = ""
  8550. }
  8551. {
  8552. line = $ 0
  8553. nfields = split(line, field, "@")
  8554. substed = 0
  8555. len = length(field[1])
  8556. for (i = 2; i < nfields; i++) {
  8557. key = field[i]
  8558. keylen = length(key)
  8559. if (S_is_set[key]) {
  8560. value = S[key]
  8561. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8562. len += length(value) + length(field[++i])
  8563. substed = 1
  8564. } else
  8565. len += 1 + keylen
  8566. }
  8567. print line
  8568. }
  8569. _ACAWK
  8570. _ACEOF
  8571. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8572. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8573. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8574. else
  8575. cat
  8576. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8577. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8578. _ACEOF
  8579. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8580. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8581. # trailing colons and then remove the whole line if VPATH becomes empty
  8582. # (actually we leave an empty line to preserve line numbers).
  8583. if test "x$srcdir" = x.; then
  8584. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8585. h
  8586. s///
  8587. s/^/:/
  8588. s/[ ]*$/:/
  8589. s/:\$(srcdir):/:/g
  8590. s/:\${srcdir}:/:/g
  8591. s/:@srcdir@:/:/g
  8592. s/^:*//
  8593. s/:*$//
  8594. x
  8595. s/\(=[ ]*\).*/\1/
  8596. G
  8597. s/\n//
  8598. s/^[^=]*=[ ]*$//
  8599. }'
  8600. fi
  8601. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8602. fi # test -n "$CONFIG_FILES"
  8603. # Set up the scripts for CONFIG_HEADERS section.
  8604. # No need to generate them if there are no CONFIG_HEADERS.
  8605. # This happens for instance with `./build/config.status Makefile'.
  8606. if test -n "$CONFIG_HEADERS"; then
  8607. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  8608. BEGIN {
  8609. _ACEOF
  8610. # Transform build/confdefs.h into an awk script `defines.awk', embedded as
  8611. # here-document in build/config.status, that substitutes the proper values into
  8612. # config.h.in to produce config.h.
  8613. # Create a delimiter string that does not exist in build/confdefs.h, to ease
  8614. # handling of long lines.
  8615. ac_delim='%!_!# '
  8616. for ac_last_try in false false :; do
  8617. ac_tt=`sed -n "/$ac_delim/p" build/confdefs.h`
  8618. if test -z "$ac_tt"; then
  8619. break
  8620. elif $ac_last_try; then
  8621. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  8622. else
  8623. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8624. fi
  8625. done
  8626. # For the awk script, D is an array of macro values keyed by name,
  8627. # likewise P contains macro parameters if any. Preserve backslash
  8628. # newline sequences.
  8629. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  8630. sed -n '
  8631. s/.\{148\}/&'"$ac_delim"'/g
  8632. t rset
  8633. :rset
  8634. s/^[ ]*#[ ]*define[ ][ ]*/ /
  8635. t def
  8636. d
  8637. :def
  8638. s/\\$//
  8639. t bsnl
  8640. s/["\\]/\\&/g
  8641. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8642. D["\1"]=" \3"/p
  8643. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  8644. d
  8645. :bsnl
  8646. s/["\\]/\\&/g
  8647. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8648. D["\1"]=" \3\\\\\\n"\\/p
  8649. t cont
  8650. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  8651. t cont
  8652. d
  8653. :cont
  8654. n
  8655. s/.\{148\}/&'"$ac_delim"'/g
  8656. t clear
  8657. :clear
  8658. s/\\$//
  8659. t bsnlc
  8660. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  8661. d
  8662. :bsnlc
  8663. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  8664. b cont
  8665. ' <build/confdefs.h | sed '
  8666. s/'"$ac_delim"'/"\\\
  8667. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  8668. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8669. for (key in D) D_is_set[key] = 1
  8670. FS = ""
  8671. }
  8672. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  8673. line = \$ 0
  8674. split(line, arg, " ")
  8675. if (arg[1] == "#") {
  8676. defundef = arg[2]
  8677. mac1 = arg[3]
  8678. } else {
  8679. defundef = substr(arg[1], 2)
  8680. mac1 = arg[2]
  8681. }
  8682. split(mac1, mac2, "(") #)
  8683. macro = mac2[1]
  8684. prefix = substr(line, 1, index(line, defundef) - 1)
  8685. if (D_is_set[macro]) {
  8686. # Preserve the white space surrounding the "#".
  8687. print prefix "define", macro P[macro] D[macro]
  8688. next
  8689. } else {
  8690. # Replace #undef with comments. This is necessary, for example,
  8691. # in the case of _POSIX_SOURCE, which is predefined and required
  8692. # on some systems where configure will not decide to define it.
  8693. if (defundef == "undef") {
  8694. print "/*", prefix defundef, macro, "*/"
  8695. next
  8696. }
  8697. }
  8698. }
  8699. { print }
  8700. _ACAWK
  8701. _ACEOF
  8702. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8703. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  8704. fi # test -n "$CONFIG_HEADERS"
  8705. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  8706. shift
  8707. for ac_tag
  8708. do
  8709. case $ac_tag in
  8710. :[FHLC]) ac_mode=$ac_tag; continue;;
  8711. esac
  8712. case $ac_mode$ac_tag in
  8713. :[FHL]*:*);;
  8714. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  8715. :[FH]-) ac_tag=-:-;;
  8716. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  8717. esac
  8718. ac_save_IFS=$IFS
  8719. IFS=:
  8720. set x $ac_tag
  8721. IFS=$ac_save_IFS
  8722. shift
  8723. ac_file=$1
  8724. shift
  8725. case $ac_mode in
  8726. :L) ac_source=$1;;
  8727. :[FH])
  8728. ac_file_inputs=
  8729. for ac_f
  8730. do
  8731. case $ac_f in
  8732. -) ac_f="$ac_tmp/stdin";;
  8733. *) # Look for the file first in the build tree, then in the source tree
  8734. # (if the path is not absolute). The absolute path cannot be DOS-style,
  8735. # because $ac_f cannot contain `:'.
  8736. test -f "$ac_f" ||
  8737. case $ac_f in
  8738. [\\/$]*) false;;
  8739. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  8740. esac ||
  8741. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  8742. esac
  8743. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  8744. as_fn_append ac_file_inputs " '$ac_f'"
  8745. done
  8746. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8747. # use $as_me), people would be surprised to read:
  8748. # /* config.h. Generated by build/config.status. */
  8749. configure_input='Generated from '`
  8750. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  8751. `' by configure.'
  8752. if test x"$ac_file" != x-; then
  8753. configure_input="$ac_file. $configure_input"
  8754. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  8755. $as_echo "$as_me: creating $ac_file" >&6;}
  8756. fi
  8757. # Neutralize special characters interpreted by sed in replacement strings.
  8758. case $configure_input in #(
  8759. *\&* | *\|* | *\\* )
  8760. ac_sed_conf_input=`$as_echo "$configure_input" |
  8761. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  8762. *) ac_sed_conf_input=$configure_input;;
  8763. esac
  8764. case $ac_tag in
  8765. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  8766. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  8767. esac
  8768. ;;
  8769. esac
  8770. ac_dir=`$as_dirname -- "$ac_file" ||
  8771. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8772. X"$ac_file" : 'X\(//\)[^/]' \| \
  8773. X"$ac_file" : 'X\(//\)$' \| \
  8774. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  8775. $as_echo X"$ac_file" |
  8776. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8777. s//\1/
  8778. q
  8779. }
  8780. /^X\(\/\/\)[^/].*/{
  8781. s//\1/
  8782. q
  8783. }
  8784. /^X\(\/\/\)$/{
  8785. s//\1/
  8786. q
  8787. }
  8788. /^X\(\/\).*/{
  8789. s//\1/
  8790. q
  8791. }
  8792. s/.*/./; q'`
  8793. as_dir="$ac_dir"; as_fn_mkdir_p
  8794. ac_builddir=.
  8795. case "$ac_dir" in
  8796. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8797. *)
  8798. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8799. # A ".." for each directory in $ac_dir_suffix.
  8800. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8801. case $ac_top_builddir_sub in
  8802. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8803. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8804. esac ;;
  8805. esac
  8806. ac_abs_top_builddir=$ac_pwd
  8807. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8808. # for backward compatibility:
  8809. ac_top_builddir=$ac_top_build_prefix
  8810. case $srcdir in
  8811. .) # We are building in place.
  8812. ac_srcdir=.
  8813. ac_top_srcdir=$ac_top_builddir_sub
  8814. ac_abs_top_srcdir=$ac_pwd ;;
  8815. [\\/]* | ?:[\\/]* ) # Absolute name.
  8816. ac_srcdir=$srcdir$ac_dir_suffix;
  8817. ac_top_srcdir=$srcdir
  8818. ac_abs_top_srcdir=$srcdir ;;
  8819. *) # Relative name.
  8820. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8821. ac_top_srcdir=$ac_top_build_prefix$srcdir
  8822. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8823. esac
  8824. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8825. case $ac_mode in
  8826. :F)
  8827. #
  8828. # CONFIG_FILE
  8829. #
  8830. _ACEOF
  8831. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8832. # If the template does not know about datarootdir, expand it.
  8833. # FIXME: This hack should be removed a few years after 2.60.
  8834. ac_datarootdir_hack=; ac_datarootdir_seen=
  8835. ac_sed_dataroot='
  8836. /datarootdir/ {
  8837. p
  8838. q
  8839. }
  8840. /@datadir@/p
  8841. /@docdir@/p
  8842. /@infodir@/p
  8843. /@localedir@/p
  8844. /@mandir@/p'
  8845. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  8846. *datarootdir*) ac_datarootdir_seen=yes;;
  8847. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  8848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  8849. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  8850. _ACEOF
  8851. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8852. ac_datarootdir_hack='
  8853. s&@datadir@&$datadir&g
  8854. s&@docdir@&$docdir&g
  8855. s&@infodir@&$infodir&g
  8856. s&@localedir@&$localedir&g
  8857. s&@mandir@&$mandir&g
  8858. s&\\\${datarootdir}&$datarootdir&g' ;;
  8859. esac
  8860. _ACEOF
  8861. # Neutralize VPATH when `$srcdir' = `.'.
  8862. # Shell code in configure.ac might set extrasub.
  8863. # FIXME: do we really want to maintain this feature?
  8864. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8865. ac_sed_extra="$ac_vpsub
  8866. $extrasub
  8867. _ACEOF
  8868. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8869. :t
  8870. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8871. s|@configure_input@|$ac_sed_conf_input|;t t
  8872. s&@top_builddir@&$ac_top_builddir_sub&;t t
  8873. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  8874. s&@srcdir@&$ac_srcdir&;t t
  8875. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  8876. s&@top_srcdir@&$ac_top_srcdir&;t t
  8877. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  8878. s&@builddir@&$ac_builddir&;t t
  8879. s&@abs_builddir@&$ac_abs_builddir&;t t
  8880. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  8881. $ac_datarootdir_hack
  8882. "
  8883. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  8884. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8885. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  8886. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  8887. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  8888. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  8889. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8890. which seems to be undefined. Please make sure it is defined" >&5
  8891. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8892. which seems to be undefined. Please make sure it is defined" >&2;}
  8893. rm -f "$ac_tmp/stdin"
  8894. case $ac_file in
  8895. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  8896. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  8897. esac \
  8898. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8899. ;;
  8900. :H)
  8901. #
  8902. # CONFIG_HEADER
  8903. #
  8904. if test x"$ac_file" != x-; then
  8905. {
  8906. $as_echo "/* $configure_input */" \
  8907. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  8908. } >"$ac_tmp/config.h" \
  8909. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8910. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  8911. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  8912. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  8913. else
  8914. rm -f "$ac_file"
  8915. mv "$ac_tmp/config.h" "$ac_file" \
  8916. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8917. fi
  8918. else
  8919. $as_echo "/* $configure_input */" \
  8920. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  8921. || as_fn_error $? "could not create -" "$LINENO" 5
  8922. fi
  8923. ;;
  8924. esac
  8925. done # for ac_tag
  8926. as_fn_exit 0
  8927. _ACEOF
  8928. ac_clean_files=$ac_clean_files_save
  8929. test $ac_write_fail = 0 ||
  8930. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  8931. # configure is writing to build/config.log, and then calls build/config.status.
  8932. # build/config.status does its own redirection, appending to build/config.log.
  8933. # Unfortunately, on DOS this fails, as build/config.log is still kept open
  8934. # by configure, so build/config.status won't be able to write to it; its
  8935. # output is simply discarded. So we exec the FD to /dev/null,
  8936. # effectively closing build/config.log, so it can be properly (re)opened and
  8937. # appended to by build/config.status. When coming back to configure, we
  8938. # need to make the FD available again.
  8939. if test "$no_create" != yes; then
  8940. ac_cs_success=:
  8941. ac_config_status_args=
  8942. test "$silent" = yes &&
  8943. ac_config_status_args="$ac_config_status_args --quiet"
  8944. exec 5>/dev/null
  8945. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  8946. exec 5>>build/config.log
  8947. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  8948. # would make configure fail if this is the last instruction.
  8949. $ac_cs_success || as_fn_exit 1
  8950. fi
  8951. #
  8952. # CONFIG_SUBDIRS section.
  8953. #
  8954. if test "$no_recursion" != yes; then
  8955. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  8956. # so they do not pile up.
  8957. ac_sub_configure_args=
  8958. ac_prev=
  8959. eval "set x $ac_configure_args"
  8960. shift
  8961. for ac_arg
  8962. do
  8963. if test -n "$ac_prev"; then
  8964. ac_prev=
  8965. continue
  8966. fi
  8967. case $ac_arg in
  8968. -cache-file | --cache-file | --cache-fil | --cache-fi \
  8969. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  8970. ac_prev=cache_file ;;
  8971. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  8972. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  8973. | --c=*)
  8974. ;;
  8975. --config-cache | -C)
  8976. ;;
  8977. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  8978. ac_prev=srcdir ;;
  8979. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  8980. ;;
  8981. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  8982. ac_prev=prefix ;;
  8983. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  8984. ;;
  8985. --disable-option-checking)
  8986. ;;
  8987. *)
  8988. case $ac_arg in
  8989. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8990. esac
  8991. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  8992. esac
  8993. done
  8994. # Always prepend --prefix to ensure using the same prefix
  8995. # in subdir configurations.
  8996. ac_arg="--prefix=$prefix"
  8997. case $ac_arg in
  8998. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8999. esac
  9000. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  9001. # Pass --silent
  9002. if test "$silent" = yes; then
  9003. ac_sub_configure_args="--silent $ac_sub_configure_args"
  9004. fi
  9005. # Always prepend --disable-option-checking to silence warnings, since
  9006. # different subdirs can have different --enable and --with options.
  9007. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  9008. ac_popdir=`pwd`
  9009. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  9010. # Do not complain, so a configure script can configure whichever
  9011. # parts of a large source tree are present.
  9012. test -d "$srcdir/$ac_dir" || continue
  9013. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  9014. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  9015. $as_echo "$ac_msg" >&6
  9016. as_dir="$ac_dir"; as_fn_mkdir_p
  9017. ac_builddir=.
  9018. case "$ac_dir" in
  9019. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9020. *)
  9021. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9022. # A ".." for each directory in $ac_dir_suffix.
  9023. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9024. case $ac_top_builddir_sub in
  9025. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9026. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9027. esac ;;
  9028. esac
  9029. ac_abs_top_builddir=$ac_pwd
  9030. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9031. # for backward compatibility:
  9032. ac_top_builddir=$ac_top_build_prefix
  9033. case $srcdir in
  9034. .) # We are building in place.
  9035. ac_srcdir=.
  9036. ac_top_srcdir=$ac_top_builddir_sub
  9037. ac_abs_top_srcdir=$ac_pwd ;;
  9038. [\\/]* | ?:[\\/]* ) # Absolute name.
  9039. ac_srcdir=$srcdir$ac_dir_suffix;
  9040. ac_top_srcdir=$srcdir
  9041. ac_abs_top_srcdir=$srcdir ;;
  9042. *) # Relative name.
  9043. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9044. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9045. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9046. esac
  9047. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9048. cd "$ac_dir"
  9049. # Check for guested configure; otherwise get Cygnus style configure.
  9050. if test -f "$ac_srcdir/configure.gnu"; then
  9051. ac_sub_configure=$ac_srcdir/configure.gnu
  9052. elif test -f "$ac_srcdir/configure"; then
  9053. ac_sub_configure=$ac_srcdir/configure
  9054. elif test -f "$ac_srcdir/configure.in"; then
  9055. # This should be Cygnus configure.
  9056. ac_sub_configure=$ac_aux_dir/configure
  9057. else
  9058. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  9059. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  9060. ac_sub_configure=
  9061. fi
  9062. # The recursion is here.
  9063. if test -n "$ac_sub_configure"; then
  9064. # Make the cache file name correct relative to the subdirectory.
  9065. case $cache_file in
  9066. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  9067. *) # Relative name.
  9068. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  9069. esac
  9070. { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  9071. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  9072. # The eval makes quoting arguments work.
  9073. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  9074. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  9075. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  9076. fi
  9077. cd "$ac_popdir"
  9078. done
  9079. fi
  9080. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9081. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9082. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9083. fi
  9084. CXX="$CXX" CXXFLAGS="$CXXFLAGS" TCL_INCLUDES="$TCL_INCLUDES" SSL_INCLUDES="$SSL_INCLUDES" \
  9085. SED="$SED" src/generate_defs.sh || exit 1