configure 275 KB

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