configure 288 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.69.
  5. #
  6. #
  7. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. #
  13. # Copyright (c) Bryan Drewery
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. as_nl='
  35. '
  36. export as_nl
  37. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  38. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  41. # Prefer a ksh shell builtin over an external printf program on Solaris,
  42. # but without wasting forks for bash or zsh.
  43. if test -z "$BASH_VERSION$ZSH_VERSION" \
  44. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='print -r --'
  46. as_echo_n='print -rn --'
  47. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  48. as_echo='printf %s\n'
  49. as_echo_n='printf %s'
  50. else
  51. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  52. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  53. as_echo_n='/usr/ucb/echo -n'
  54. else
  55. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  56. as_echo_n_body='eval
  57. arg=$1;
  58. case $arg in #(
  59. *"$as_nl"*)
  60. expr "X$arg" : "X\\(.*\\)$as_nl";
  61. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  62. esac;
  63. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  64. '
  65. export as_echo_n_body
  66. as_echo_n='sh -c $as_echo_n_body as_echo'
  67. fi
  68. export as_echo_body
  69. as_echo='sh -c $as_echo_body as_echo'
  70. fi
  71. # The user is always right.
  72. if test "${PATH_SEPARATOR+set}" != set; then
  73. PATH_SEPARATOR=:
  74. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  75. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  76. PATH_SEPARATOR=';'
  77. }
  78. fi
  79. # IFS
  80. # We need space, tab and new line, in precisely that order. Quoting is
  81. # there to prevent editors from complaining about space-tab.
  82. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  83. # splitting by setting IFS to empty value.)
  84. IFS=" "" $as_nl"
  85. # Find who we are. Look in the path if we contain no directory separator.
  86. as_myself=
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. # Use a proper internal environment variable to ensure we don't fall
  127. # into an infinite loop, continuously re-executing ourselves.
  128. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  129. _as_can_reexec=no; export _as_can_reexec;
  130. # We cannot yet assume a decent shell, so we have to provide a
  131. # neutralization value for shells without unset; and this also
  132. # works around shells that cannot unset nonexistent variables.
  133. # Preserve -v and -x to the replacement shell.
  134. BASH_ENV=/dev/null
  135. ENV=/dev/null
  136. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  137. case $- in # ((((
  138. *v*x* | *x*v* ) as_opts=-vx ;;
  139. *v* ) as_opts=-v ;;
  140. *x* ) as_opts=-x ;;
  141. * ) as_opts= ;;
  142. esac
  143. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  144. # Admittedly, this is quite paranoid, since all the known shells bail
  145. # out after a failed `exec'.
  146. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  147. as_fn_exit 255
  148. fi
  149. # We don't want this to propagate to other subprocesses.
  150. { _as_can_reexec=; unset _as_can_reexec;}
  151. if test "x$CONFIG_SHELL" = x; then
  152. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  153. emulate sh
  154. NULLCMD=:
  155. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  156. # is contrary to our usage. Disable this feature.
  157. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  158. setopt NO_GLOB_SUBST
  159. else
  160. case \`(set -o) 2>/dev/null\` in #(
  161. *posix*) :
  162. set -o posix ;; #(
  163. *) :
  164. ;;
  165. esac
  166. fi
  167. "
  168. as_required="as_fn_return () { (exit \$1); }
  169. as_fn_success () { as_fn_return 0; }
  170. as_fn_failure () { as_fn_return 1; }
  171. as_fn_ret_success () { return 0; }
  172. as_fn_ret_failure () { return 1; }
  173. exitcode=0
  174. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  175. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  176. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  177. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  178. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  179. else
  180. exitcode=1; echo positional parameters were not saved.
  181. fi
  182. test x\$exitcode = x0 || exit 1
  183. test -x / || exit 1"
  184. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  185. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  186. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  187. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  188. test \$(( 1 + 1 )) = 2 || exit 1"
  189. if (eval "$as_required") 2>/dev/null; then :
  190. as_have_required=yes
  191. else
  192. as_have_required=no
  193. fi
  194. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  195. else
  196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  197. as_found=false
  198. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  199. do
  200. IFS=$as_save_IFS
  201. test -z "$as_dir" && as_dir=.
  202. as_found=:
  203. case $as_dir in #(
  204. /*)
  205. for as_base in sh bash ksh sh5; do
  206. # Try only shells that exist, to save several forks.
  207. as_shell=$as_dir/$as_base
  208. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  209. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  210. CONFIG_SHELL=$as_shell as_have_required=yes
  211. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  212. break 2
  213. fi
  214. fi
  215. done;;
  216. esac
  217. as_found=false
  218. done
  219. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  220. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  221. CONFIG_SHELL=$SHELL as_have_required=yes
  222. fi; }
  223. IFS=$as_save_IFS
  224. if test "x$CONFIG_SHELL" != x; then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno; then :
  246. $as_echo "$0: This script requires a shell more modern than all"
  247. $as_echo "$0: the shells that I found on your system."
  248. if test x${ZSH_VERSION+set} = xset ; then
  249. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  250. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  251. else
  252. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  253. $0: including any error possibly output before this
  254. $0: message. Then install a modern shell, or manually run
  255. $0: the script under such a shell if you do have one."
  256. fi
  257. exit 1
  258. fi
  259. fi
  260. fi
  261. SHELL=${CONFIG_SHELL-/bin/sh}
  262. export SHELL
  263. # Unset more variables known to interfere with behavior of common tools.
  264. CLICOLOR_FORCE= GREP_OPTIONS=
  265. unset CLICOLOR_FORCE GREP_OPTIONS
  266. ## --------------------- ##
  267. ## M4sh Shell Functions. ##
  268. ## --------------------- ##
  269. # as_fn_unset VAR
  270. # ---------------
  271. # Portably unset VAR.
  272. as_fn_unset ()
  273. {
  274. { eval $1=; unset $1;}
  275. }
  276. as_unset=as_fn_unset
  277. # as_fn_set_status STATUS
  278. # -----------------------
  279. # Set $? to STATUS, without forking.
  280. as_fn_set_status ()
  281. {
  282. return $1
  283. } # as_fn_set_status
  284. # as_fn_exit STATUS
  285. # -----------------
  286. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  287. as_fn_exit ()
  288. {
  289. set +e
  290. as_fn_set_status $1
  291. exit $1
  292. } # as_fn_exit
  293. # as_fn_mkdir_p
  294. # -------------
  295. # Create "$as_dir" as a directory, including parents if necessary.
  296. as_fn_mkdir_p ()
  297. {
  298. case $as_dir in #(
  299. -*) as_dir=./$as_dir;;
  300. esac
  301. test -d "$as_dir" || eval $as_mkdir_p || {
  302. as_dirs=
  303. while :; do
  304. case $as_dir in #(
  305. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  306. *) as_qdir=$as_dir;;
  307. esac
  308. as_dirs="'$as_qdir' $as_dirs"
  309. as_dir=`$as_dirname -- "$as_dir" ||
  310. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  311. X"$as_dir" : 'X\(//\)[^/]' \| \
  312. X"$as_dir" : 'X\(//\)$' \| \
  313. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  314. $as_echo X"$as_dir" |
  315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)[^/].*/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\).*/{
  328. s//\1/
  329. q
  330. }
  331. s/.*/./; q'`
  332. test -d "$as_dir" && break
  333. done
  334. test -z "$as_dirs" || eval "mkdir $as_dirs"
  335. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  336. } # as_fn_mkdir_p
  337. # as_fn_executable_p FILE
  338. # -----------------------
  339. # Test if FILE is an executable regular file.
  340. as_fn_executable_p ()
  341. {
  342. test -f "$1" && test -x "$1"
  343. } # as_fn_executable_p
  344. # as_fn_append VAR VALUE
  345. # ----------------------
  346. # Append the text in VALUE to the end of the definition contained in VAR. Take
  347. # advantage of any shell optimizations that allow amortized linear growth over
  348. # repeated appends, instead of the typical quadratic growth present in naive
  349. # implementations.
  350. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  351. eval 'as_fn_append ()
  352. {
  353. eval $1+=\$2
  354. }'
  355. else
  356. as_fn_append ()
  357. {
  358. eval $1=\$$1\$2
  359. }
  360. fi # as_fn_append
  361. # as_fn_arith ARG...
  362. # ------------------
  363. # Perform arithmetic evaluation on the ARGs, and store the result in the
  364. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  365. # must be portable across $(()) and expr.
  366. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  367. eval 'as_fn_arith ()
  368. {
  369. as_val=$(( $* ))
  370. }'
  371. else
  372. as_fn_arith ()
  373. {
  374. as_val=`expr "$@" || test $? -eq 1`
  375. }
  376. fi # as_fn_arith
  377. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  378. # ----------------------------------------
  379. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  380. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  381. # script with STATUS, using 1 if that was 0.
  382. as_fn_error ()
  383. {
  384. as_status=$1; test $as_status -eq 0 && as_status=1
  385. if test "$4"; then
  386. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  387. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  388. fi
  389. $as_echo "$as_me: error: $2" >&2
  390. as_fn_exit $as_status
  391. } # as_fn_error
  392. if expr a : '\(a\)' >/dev/null 2>&1 &&
  393. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  394. as_expr=expr
  395. else
  396. as_expr=false
  397. fi
  398. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  399. as_basename=basename
  400. else
  401. as_basename=false
  402. fi
  403. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  404. as_dirname=dirname
  405. else
  406. as_dirname=false
  407. fi
  408. as_me=`$as_basename -- "$0" ||
  409. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  410. X"$0" : 'X\(//\)$' \| \
  411. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  412. $as_echo X/"$0" |
  413. sed '/^.*\/\([^/][^/]*\)\/*$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\/\)$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\).*/{
  422. s//\1/
  423. q
  424. }
  425. s/.*/./; q'`
  426. # Avoid depending upon Character Ranges.
  427. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  428. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  429. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  430. as_cr_digits='0123456789'
  431. as_cr_alnum=$as_cr_Letters$as_cr_digits
  432. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  433. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  434. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  435. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  436. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  437. sed -n '
  438. p
  439. /[$]LINENO/=
  440. ' <$as_myself |
  441. sed '
  442. s/[$]LINENO.*/&-/
  443. t lineno
  444. b
  445. :lineno
  446. N
  447. :loop
  448. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  449. t loop
  450. s/-\n.*//
  451. ' >$as_me.lineno &&
  452. chmod +x "$as_me.lineno" ||
  453. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  454. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  455. # already done that, so ensure we don't try to do so again and fall
  456. # in an infinite loop. This has already happened in practice.
  457. _as_can_reexec=no; export _as_can_reexec
  458. # Don't try to exec as it changes $[0], causing all sort of problems
  459. # (the dirname of $[0] is not the place where we might find the
  460. # original and so on. Autoconf is especially sensitive to this).
  461. . "./$as_me.lineno"
  462. # Exit status is that of the last command.
  463. exit
  464. }
  465. ECHO_C= ECHO_N= ECHO_T=
  466. case `echo -n x` in #(((((
  467. -n*)
  468. case `echo 'xy\c'` in
  469. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  470. xy) ECHO_C='\c';;
  471. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  472. ECHO_T=' ';;
  473. esac;;
  474. *)
  475. ECHO_N='-n';;
  476. esac
  477. rm -f conf$$ conf$$.exe conf$$.file
  478. if test -d conf$$.dir; then
  479. rm -f conf$$.dir/conf$$.file
  480. else
  481. rm -f conf$$.dir
  482. mkdir conf$$.dir 2>/dev/null
  483. fi
  484. if (echo >conf$$.file) 2>/dev/null; then
  485. if ln -s conf$$.file conf$$ 2>/dev/null; then
  486. as_ln_s='ln -s'
  487. # ... but there are two gotchas:
  488. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  489. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  490. # In both cases, we have to default to `cp -pR'.
  491. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  492. as_ln_s='cp -pR'
  493. elif ln conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s=ln
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. else
  499. as_ln_s='cp -pR'
  500. fi
  501. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  502. rmdir conf$$.dir 2>/dev/null
  503. if mkdir -p . 2>/dev/null; then
  504. as_mkdir_p='mkdir -p "$as_dir"'
  505. else
  506. test -d ./-p && rmdir ./-p
  507. as_mkdir_p=false
  508. fi
  509. as_test_x='test -x'
  510. as_executable_p=as_fn_executable_p
  511. # Sed expression to map a string onto a valid CPP name.
  512. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  513. # Sed expression to map a string onto a valid variable name.
  514. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  515. test -n "$DJDIR" || exec 7<&0 </dev/null
  516. exec 6>&1
  517. # Name of the host.
  518. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  519. # so uname gets run too.
  520. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  521. #
  522. # Initializations.
  523. #
  524. ac_default_prefix=/usr/local
  525. ac_clean_files=
  526. ac_config_libobj_dir=.
  527. LIBOBJS=
  528. cross_compiling=no
  529. subdirs=
  530. MFLAGS=
  531. MAKEFLAGS=
  532. # Identity of this package.
  533. PACKAGE_NAME=
  534. PACKAGE_TARNAME=
  535. PACKAGE_VERSION=
  536. PACKAGE_STRING=
  537. PACKAGE_BUGREPORT=
  538. PACKAGE_URL=
  539. ac_unique_file="wraith"
  540. ac_unique_file="src/eggdrop.h"
  541. # Factoring default headers for most tests.
  542. ac_includes_default="\
  543. #include <stdio.h>
  544. #ifdef HAVE_SYS_TYPES_H
  545. # include <sys/types.h>
  546. #endif
  547. #ifdef HAVE_SYS_STAT_H
  548. # include <sys/stat.h>
  549. #endif
  550. #ifdef STDC_HEADERS
  551. # include <stdlib.h>
  552. # include <stddef.h>
  553. #else
  554. # ifdef HAVE_STDLIB_H
  555. # include <stdlib.h>
  556. # endif
  557. #endif
  558. #ifdef HAVE_STRING_H
  559. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  560. # include <memory.h>
  561. # endif
  562. # include <string.h>
  563. #endif
  564. #ifdef HAVE_STRINGS_H
  565. # include <strings.h>
  566. #endif
  567. #ifdef HAVE_INTTYPES_H
  568. # include <inttypes.h>
  569. #endif
  570. #ifdef HAVE_STDINT_H
  571. # include <stdint.h>
  572. #endif
  573. #ifdef HAVE_UNISTD_H
  574. # include <unistd.h>
  575. #endif"
  576. ac_header_list=
  577. ac_func_list=
  578. enable_option_checking=no
  579. ac_subst_vars='LTLIBOBJS
  580. subdirs
  581. NUMVER
  582. VERSION
  583. LIBOBJS
  584. TCL_LIBS
  585. TCL_REQS
  586. DEFAULT_MAKE
  587. TCLINCFN
  588. TCL_INCLUDES
  589. TCLLIBFN
  590. TCLLIB
  591. SSL_LIBS
  592. SSL_INCLUDES
  593. LIBELF_LIB
  594. LIBELF_BUNDLED
  595. EGREP
  596. GREP
  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. CXXCPP
  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. ac_subdirs_all='lib/bdlib
  683. lib/libelf'
  684. # Initialize some variables set by options.
  685. ac_init_help=
  686. ac_init_version=false
  687. ac_unrecognized_opts=
  688. ac_unrecognized_sep=
  689. # The variables have the same names as the options, with
  690. # dashes changed to underlines.
  691. cache_file=/dev/null
  692. exec_prefix=NONE
  693. no_create=
  694. no_recursion=
  695. prefix=NONE
  696. program_prefix=NONE
  697. program_suffix=NONE
  698. program_transform_name=s,x,x,
  699. silent=
  700. site=
  701. srcdir=
  702. verbose=
  703. x_includes=NONE
  704. x_libraries=NONE
  705. # Installation directory options.
  706. # These are left unexpanded so users can "make install exec_prefix=/foo"
  707. # and all the variables that are supposed to be based on exec_prefix
  708. # by default will actually change.
  709. # Use braces instead of parens because sh, perl, etc. also accept them.
  710. # (The list follows the same order as the GNU Coding Standards.)
  711. bindir='${exec_prefix}/bin'
  712. sbindir='${exec_prefix}/sbin'
  713. libexecdir='${exec_prefix}/libexec'
  714. datarootdir='${prefix}/share'
  715. datadir='${datarootdir}'
  716. sysconfdir='${prefix}/etc'
  717. sharedstatedir='${prefix}/com'
  718. localstatedir='${prefix}/var'
  719. includedir='${prefix}/include'
  720. oldincludedir='/usr/include'
  721. docdir='${datarootdir}/doc/${PACKAGE}'
  722. infodir='${datarootdir}/info'
  723. htmldir='${docdir}'
  724. dvidir='${docdir}'
  725. pdfdir='${docdir}'
  726. psdir='${docdir}'
  727. libdir='${exec_prefix}/lib'
  728. localedir='${datarootdir}/locale'
  729. mandir='${datarootdir}/man'
  730. ac_prev=
  731. ac_dashdash=
  732. for ac_option
  733. do
  734. # If the previous option needs an argument, assign it.
  735. if test -n "$ac_prev"; then
  736. eval $ac_prev=\$ac_option
  737. ac_prev=
  738. continue
  739. fi
  740. case $ac_option in
  741. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  742. *=) ac_optarg= ;;
  743. *) ac_optarg=yes ;;
  744. esac
  745. # Accept the important Cygnus configure options, so we can diagnose typos.
  746. case $ac_dashdash$ac_option in
  747. --)
  748. ac_dashdash=yes ;;
  749. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  750. ac_prev=bindir ;;
  751. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  752. bindir=$ac_optarg ;;
  753. -build | --build | --buil | --bui | --bu)
  754. ac_prev=build_alias ;;
  755. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  756. build_alias=$ac_optarg ;;
  757. -cache-file | --cache-file | --cache-fil | --cache-fi \
  758. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  759. ac_prev=cache_file ;;
  760. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  761. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  762. cache_file=$ac_optarg ;;
  763. --config-cache | -C)
  764. cache_file=config.cache ;;
  765. -datadir | --datadir | --datadi | --datad)
  766. ac_prev=datadir ;;
  767. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  768. datadir=$ac_optarg ;;
  769. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  770. | --dataroo | --dataro | --datar)
  771. ac_prev=datarootdir ;;
  772. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  773. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  774. datarootdir=$ac_optarg ;;
  775. -disable-* | --disable-*)
  776. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  777. # Reject names that are not valid shell variable names.
  778. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  779. as_fn_error $? "invalid feature name: $ac_useropt"
  780. ac_useropt_orig=$ac_useropt
  781. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  782. case $ac_user_opts in
  783. *"
  784. "enable_$ac_useropt"
  785. "*) ;;
  786. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  787. ac_unrecognized_sep=', ';;
  788. esac
  789. eval enable_$ac_useropt=no ;;
  790. -docdir | --docdir | --docdi | --doc | --do)
  791. ac_prev=docdir ;;
  792. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  793. docdir=$ac_optarg ;;
  794. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  795. ac_prev=dvidir ;;
  796. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  797. dvidir=$ac_optarg ;;
  798. -enable-* | --enable-*)
  799. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  800. # Reject names that are not valid shell variable names.
  801. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  802. as_fn_error $? "invalid feature name: $ac_useropt"
  803. ac_useropt_orig=$ac_useropt
  804. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  805. case $ac_user_opts in
  806. *"
  807. "enable_$ac_useropt"
  808. "*) ;;
  809. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  810. ac_unrecognized_sep=', ';;
  811. esac
  812. eval enable_$ac_useropt=\$ac_optarg ;;
  813. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  814. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  815. | --exec | --exe | --ex)
  816. ac_prev=exec_prefix ;;
  817. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  818. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  819. | --exec=* | --exe=* | --ex=*)
  820. exec_prefix=$ac_optarg ;;
  821. -gas | --gas | --ga | --g)
  822. # Obsolete; use --with-gas.
  823. with_gas=yes ;;
  824. -help | --help | --hel | --he | -h)
  825. ac_init_help=long ;;
  826. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  827. ac_init_help=recursive ;;
  828. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  829. ac_init_help=short ;;
  830. -host | --host | --hos | --ho)
  831. ac_prev=host_alias ;;
  832. -host=* | --host=* | --hos=* | --ho=*)
  833. host_alias=$ac_optarg ;;
  834. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  835. ac_prev=htmldir ;;
  836. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  837. | --ht=*)
  838. htmldir=$ac_optarg ;;
  839. -includedir | --includedir | --includedi | --included | --include \
  840. | --includ | --inclu | --incl | --inc)
  841. ac_prev=includedir ;;
  842. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  843. | --includ=* | --inclu=* | --incl=* | --inc=*)
  844. includedir=$ac_optarg ;;
  845. -infodir | --infodir | --infodi | --infod | --info | --inf)
  846. ac_prev=infodir ;;
  847. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  848. infodir=$ac_optarg ;;
  849. -libdir | --libdir | --libdi | --libd)
  850. ac_prev=libdir ;;
  851. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  852. libdir=$ac_optarg ;;
  853. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  854. | --libexe | --libex | --libe)
  855. ac_prev=libexecdir ;;
  856. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  857. | --libexe=* | --libex=* | --libe=*)
  858. libexecdir=$ac_optarg ;;
  859. -localedir | --localedir | --localedi | --localed | --locale)
  860. ac_prev=localedir ;;
  861. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  862. localedir=$ac_optarg ;;
  863. -localstatedir | --localstatedir | --localstatedi | --localstated \
  864. | --localstate | --localstat | --localsta | --localst | --locals)
  865. ac_prev=localstatedir ;;
  866. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  867. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  868. localstatedir=$ac_optarg ;;
  869. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  870. ac_prev=mandir ;;
  871. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  872. mandir=$ac_optarg ;;
  873. -nfp | --nfp | --nf)
  874. # Obsolete; use --without-fp.
  875. with_fp=no ;;
  876. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  877. | --no-cr | --no-c | -n)
  878. no_create=yes ;;
  879. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  880. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  881. no_recursion=yes ;;
  882. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  883. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  884. | --oldin | --oldi | --old | --ol | --o)
  885. ac_prev=oldincludedir ;;
  886. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  887. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  888. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  889. oldincludedir=$ac_optarg ;;
  890. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  891. ac_prev=prefix ;;
  892. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  893. prefix=$ac_optarg ;;
  894. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  895. | --program-pre | --program-pr | --program-p)
  896. ac_prev=program_prefix ;;
  897. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  898. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  899. program_prefix=$ac_optarg ;;
  900. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  901. | --program-suf | --program-su | --program-s)
  902. ac_prev=program_suffix ;;
  903. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  904. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  905. program_suffix=$ac_optarg ;;
  906. -program-transform-name | --program-transform-name \
  907. | --program-transform-nam | --program-transform-na \
  908. | --program-transform-n | --program-transform- \
  909. | --program-transform | --program-transfor \
  910. | --program-transfo | --program-transf \
  911. | --program-trans | --program-tran \
  912. | --progr-tra | --program-tr | --program-t)
  913. ac_prev=program_transform_name ;;
  914. -program-transform-name=* | --program-transform-name=* \
  915. | --program-transform-nam=* | --program-transform-na=* \
  916. | --program-transform-n=* | --program-transform-=* \
  917. | --program-transform=* | --program-transfor=* \
  918. | --program-transfo=* | --program-transf=* \
  919. | --program-trans=* | --program-tran=* \
  920. | --progr-tra=* | --program-tr=* | --program-t=*)
  921. program_transform_name=$ac_optarg ;;
  922. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  923. ac_prev=pdfdir ;;
  924. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  925. pdfdir=$ac_optarg ;;
  926. -psdir | --psdir | --psdi | --psd | --ps)
  927. ac_prev=psdir ;;
  928. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  929. psdir=$ac_optarg ;;
  930. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  931. | -silent | --silent | --silen | --sile | --sil)
  932. silent=yes ;;
  933. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  934. ac_prev=sbindir ;;
  935. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  936. | --sbi=* | --sb=*)
  937. sbindir=$ac_optarg ;;
  938. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  939. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  940. | --sharedst | --shareds | --shared | --share | --shar \
  941. | --sha | --sh)
  942. ac_prev=sharedstatedir ;;
  943. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  944. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  945. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  946. | --sha=* | --sh=*)
  947. sharedstatedir=$ac_optarg ;;
  948. -site | --site | --sit)
  949. ac_prev=site ;;
  950. -site=* | --site=* | --sit=*)
  951. site=$ac_optarg ;;
  952. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  953. ac_prev=srcdir ;;
  954. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  955. srcdir=$ac_optarg ;;
  956. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  957. | --syscon | --sysco | --sysc | --sys | --sy)
  958. ac_prev=sysconfdir ;;
  959. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  960. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  961. sysconfdir=$ac_optarg ;;
  962. -target | --target | --targe | --targ | --tar | --ta | --t)
  963. ac_prev=target_alias ;;
  964. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  965. target_alias=$ac_optarg ;;
  966. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  967. verbose=yes ;;
  968. -version | --version | --versio | --versi | --vers | -V)
  969. ac_init_version=: ;;
  970. -with-* | --with-*)
  971. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  972. # Reject names that are not valid shell variable names.
  973. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  974. as_fn_error $? "invalid package name: $ac_useropt"
  975. ac_useropt_orig=$ac_useropt
  976. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  977. case $ac_user_opts in
  978. *"
  979. "with_$ac_useropt"
  980. "*) ;;
  981. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  982. ac_unrecognized_sep=', ';;
  983. esac
  984. eval with_$ac_useropt=\$ac_optarg ;;
  985. -without-* | --without-*)
  986. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  987. # Reject names that are not valid shell variable names.
  988. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  989. as_fn_error $? "invalid package name: $ac_useropt"
  990. ac_useropt_orig=$ac_useropt
  991. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  992. case $ac_user_opts in
  993. *"
  994. "with_$ac_useropt"
  995. "*) ;;
  996. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  997. ac_unrecognized_sep=', ';;
  998. esac
  999. eval with_$ac_useropt=no ;;
  1000. --x)
  1001. # Obsolete; use --with-x.
  1002. with_x=yes ;;
  1003. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1004. | --x-incl | --x-inc | --x-in | --x-i)
  1005. ac_prev=x_includes ;;
  1006. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1007. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1008. x_includes=$ac_optarg ;;
  1009. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1010. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1011. ac_prev=x_libraries ;;
  1012. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1013. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1014. x_libraries=$ac_optarg ;;
  1015. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1016. Try \`$0 --help' for more information"
  1017. ;;
  1018. *=*)
  1019. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1020. # Reject names that are not valid shell variable names.
  1021. case $ac_envvar in #(
  1022. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1023. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1024. esac
  1025. eval $ac_envvar=\$ac_optarg
  1026. export $ac_envvar ;;
  1027. *)
  1028. # FIXME: should be removed in autoconf 3.0.
  1029. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1030. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1031. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1032. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1033. ;;
  1034. esac
  1035. done
  1036. if test -n "$ac_prev"; then
  1037. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1038. as_fn_error $? "missing argument to $ac_option"
  1039. fi
  1040. if test -n "$ac_unrecognized_opts"; then
  1041. case $enable_option_checking in
  1042. no) ;;
  1043. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1044. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1045. esac
  1046. fi
  1047. # Check all directory arguments for consistency.
  1048. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1049. datadir sysconfdir sharedstatedir localstatedir includedir \
  1050. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1051. libdir localedir mandir
  1052. do
  1053. eval ac_val=\$$ac_var
  1054. # Remove trailing slashes.
  1055. case $ac_val in
  1056. */ )
  1057. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1058. eval $ac_var=\$ac_val;;
  1059. esac
  1060. # Be sure to have absolute directory names.
  1061. case $ac_val in
  1062. [\\/$]* | ?:[\\/]* ) continue;;
  1063. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1064. esac
  1065. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1066. done
  1067. # There might be people who depend on the old broken behavior: `$host'
  1068. # used to hold the argument of --host etc.
  1069. # FIXME: To remove some day.
  1070. build=$build_alias
  1071. host=$host_alias
  1072. target=$target_alias
  1073. # FIXME: To remove some day.
  1074. if test "x$host_alias" != x; then
  1075. if test "x$build_alias" = x; then
  1076. cross_compiling=maybe
  1077. elif test "x$build_alias" != "x$host_alias"; then
  1078. cross_compiling=yes
  1079. fi
  1080. fi
  1081. ac_tool_prefix=
  1082. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1083. test "$silent" = yes && exec 6>/dev/null
  1084. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1085. ac_ls_di=`ls -di .` &&
  1086. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1087. as_fn_error $? "working directory cannot be determined"
  1088. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1089. as_fn_error $? "pwd does not report name of working directory"
  1090. # Find the source files, if location was not specified.
  1091. if test -z "$srcdir"; then
  1092. ac_srcdir_defaulted=yes
  1093. # Try the directory containing this script, then the parent directory.
  1094. ac_confdir=`$as_dirname -- "$as_myself" ||
  1095. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1096. X"$as_myself" : 'X\(//\)[^/]' \| \
  1097. X"$as_myself" : 'X\(//\)$' \| \
  1098. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1099. $as_echo X"$as_myself" |
  1100. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1101. s//\1/
  1102. q
  1103. }
  1104. /^X\(\/\/\)[^/].*/{
  1105. s//\1/
  1106. q
  1107. }
  1108. /^X\(\/\/\)$/{
  1109. s//\1/
  1110. q
  1111. }
  1112. /^X\(\/\).*/{
  1113. s//\1/
  1114. q
  1115. }
  1116. s/.*/./; q'`
  1117. srcdir=$ac_confdir
  1118. if test ! -r "$srcdir/$ac_unique_file"; then
  1119. srcdir=..
  1120. fi
  1121. else
  1122. ac_srcdir_defaulted=no
  1123. fi
  1124. if test ! -r "$srcdir/$ac_unique_file"; then
  1125. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1126. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1127. fi
  1128. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1129. ac_abs_confdir=`(
  1130. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1131. pwd)`
  1132. # When building in place, set srcdir=.
  1133. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1134. srcdir=.
  1135. fi
  1136. # Remove unnecessary trailing slashes from srcdir.
  1137. # Double slashes in file names in object file debugging info
  1138. # mess up M-x gdb in Emacs.
  1139. case $srcdir in
  1140. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1141. esac
  1142. for ac_var in $ac_precious_vars; do
  1143. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1144. eval ac_env_${ac_var}_value=\$${ac_var}
  1145. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1146. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1147. done
  1148. #
  1149. # Report the --help message.
  1150. #
  1151. if test "$ac_init_help" = "long"; then
  1152. # Omit some internal or obsolete options to make the list less imposing.
  1153. # This message is too long to be a string in the A/UX 3.1 sh.
  1154. cat <<_ACEOF
  1155. \`configure' configures this package to adapt to many kinds of systems.
  1156. Usage: $0 [OPTION]... [VAR=VALUE]...
  1157. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1158. VAR=VALUE. See below for descriptions of some of the useful variables.
  1159. Defaults for the options are specified in brackets.
  1160. Configuration:
  1161. -h, --help display this help and exit
  1162. --help=short display options specific to this package
  1163. --help=recursive display the short help of all the included packages
  1164. -V, --version display version information and exit
  1165. -q, --quiet, --silent do not print \`checking ...' messages
  1166. --cache-file=FILE cache test results in FILE [disabled]
  1167. -C, --config-cache alias for \`--cache-file=config.cache'
  1168. -n, --no-create do not create output files
  1169. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1170. Installation directories:
  1171. --prefix=PREFIX install architecture-independent files in PREFIX
  1172. [$ac_default_prefix]
  1173. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1174. [PREFIX]
  1175. By default, \`make install' will install all the files in
  1176. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1177. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1178. for instance \`--prefix=\$HOME'.
  1179. For better control, use the options below.
  1180. Fine tuning of the installation directories:
  1181. --bindir=DIR user executables [EPREFIX/bin]
  1182. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1183. --libexecdir=DIR program executables [EPREFIX/libexec]
  1184. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1185. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1186. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1187. --libdir=DIR object code libraries [EPREFIX/lib]
  1188. --includedir=DIR C header files [PREFIX/include]
  1189. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1190. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1191. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1192. --infodir=DIR info documentation [DATAROOTDIR/info]
  1193. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1194. --mandir=DIR man documentation [DATAROOTDIR/man]
  1195. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1196. --htmldir=DIR html documentation [DOCDIR]
  1197. --dvidir=DIR dvi documentation [DOCDIR]
  1198. --pdfdir=DIR pdf documentation [DOCDIR]
  1199. --psdir=DIR ps documentation [DOCDIR]
  1200. _ACEOF
  1201. cat <<\_ACEOF
  1202. _ACEOF
  1203. fi
  1204. if test -n "$ac_init_help"; then
  1205. cat <<\_ACEOF
  1206. Optional Features:
  1207. --disable-option-checking ignore unrecognized --enable/--with options
  1208. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1209. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1210. --disable-ipv6 disable IPv6 support
  1211. --disable-script-tcl disable TCL Script support
  1212. Optional Packages:
  1213. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1214. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1215. --with-openssl=PATH Path to OpenSSL
  1216. --with-tcllib=PATH full path to Tcl library
  1217. --with-tclinc=PATH full path to Tcl header
  1218. Some influential environment variables:
  1219. CXX C++ compiler command
  1220. CXXFLAGS C++ compiler flags
  1221. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1222. nonstandard directory <lib dir>
  1223. LIBS libraries to pass to the linker, e.g. -l<library>
  1224. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1225. you have headers in a nonstandard directory <include dir>
  1226. CXXCPP C++ preprocessor
  1227. Use these variables to override the choices made by `configure' or to help
  1228. it to find libraries and programs with nonstandard names/locations.
  1229. Report bugs to the package provider.
  1230. _ACEOF
  1231. ac_status=$?
  1232. fi
  1233. if test "$ac_init_help" = "recursive"; then
  1234. # If there are subdirs, report their specific --help.
  1235. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1236. test -d "$ac_dir" ||
  1237. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1238. continue
  1239. ac_builddir=.
  1240. case "$ac_dir" in
  1241. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1242. *)
  1243. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1244. # A ".." for each directory in $ac_dir_suffix.
  1245. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1246. case $ac_top_builddir_sub in
  1247. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1248. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1249. esac ;;
  1250. esac
  1251. ac_abs_top_builddir=$ac_pwd
  1252. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1253. # for backward compatibility:
  1254. ac_top_builddir=$ac_top_build_prefix
  1255. case $srcdir in
  1256. .) # We are building in place.
  1257. ac_srcdir=.
  1258. ac_top_srcdir=$ac_top_builddir_sub
  1259. ac_abs_top_srcdir=$ac_pwd ;;
  1260. [\\/]* | ?:[\\/]* ) # Absolute name.
  1261. ac_srcdir=$srcdir$ac_dir_suffix;
  1262. ac_top_srcdir=$srcdir
  1263. ac_abs_top_srcdir=$srcdir ;;
  1264. *) # Relative name.
  1265. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1266. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1267. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1268. esac
  1269. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1270. cd "$ac_dir" || { ac_status=$?; continue; }
  1271. # Check for guested configure.
  1272. if test -f "$ac_srcdir/configure.gnu"; then
  1273. echo &&
  1274. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1275. elif test -f "$ac_srcdir/configure"; then
  1276. echo &&
  1277. $SHELL "$ac_srcdir/configure" --help=recursive
  1278. else
  1279. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1280. fi || ac_status=$?
  1281. cd "$ac_pwd" || { ac_status=$?; break; }
  1282. done
  1283. fi
  1284. test -n "$ac_init_help" && exit $ac_status
  1285. if $ac_init_version; then
  1286. cat <<\_ACEOF
  1287. configure
  1288. generated by GNU Autoconf 2.69
  1289. Copyright (C) 2012 Free Software Foundation, Inc.
  1290. This configure script is free software; the Free Software Foundation
  1291. gives unlimited permission to copy, distribute and modify it.
  1292. Copyright (c) Bryan Drewery
  1293. _ACEOF
  1294. exit
  1295. fi
  1296. ## ------------------------ ##
  1297. ## Autoconf initialization. ##
  1298. ## ------------------------ ##
  1299. # ac_fn_cxx_try_compile LINENO
  1300. # ----------------------------
  1301. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1302. ac_fn_cxx_try_compile ()
  1303. {
  1304. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1305. rm -f conftest.$ac_objext
  1306. if { { ac_try="$ac_compile"
  1307. case "(($ac_try" in
  1308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1309. *) ac_try_echo=$ac_try;;
  1310. esac
  1311. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1312. $as_echo "$ac_try_echo"; } >&5
  1313. (eval "$ac_compile") 2>conftest.err
  1314. ac_status=$?
  1315. if test -s conftest.err; then
  1316. grep -v '^ *+' conftest.err >conftest.er1
  1317. cat conftest.er1 >&5
  1318. mv -f conftest.er1 conftest.err
  1319. fi
  1320. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1321. test $ac_status = 0; } && {
  1322. test -z "$ac_cxx_werror_flag" ||
  1323. test ! -s conftest.err
  1324. } && test -s conftest.$ac_objext; then :
  1325. ac_retval=0
  1326. else
  1327. $as_echo "$as_me: failed program was:" >&5
  1328. sed 's/^/| /' conftest.$ac_ext >&5
  1329. ac_retval=1
  1330. fi
  1331. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1332. as_fn_set_status $ac_retval
  1333. } # ac_fn_cxx_try_compile
  1334. # ac_fn_cxx_try_cpp LINENO
  1335. # ------------------------
  1336. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1337. ac_fn_cxx_try_cpp ()
  1338. {
  1339. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1340. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1341. case "(($ac_try" in
  1342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1343. *) ac_try_echo=$ac_try;;
  1344. esac
  1345. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1346. $as_echo "$ac_try_echo"; } >&5
  1347. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1348. ac_status=$?
  1349. if test -s conftest.err; then
  1350. grep -v '^ *+' conftest.err >conftest.er1
  1351. cat conftest.er1 >&5
  1352. mv -f conftest.er1 conftest.err
  1353. fi
  1354. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1355. test $ac_status = 0; } > conftest.i && {
  1356. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1357. test ! -s conftest.err
  1358. }; then :
  1359. ac_retval=0
  1360. else
  1361. $as_echo "$as_me: failed program was:" >&5
  1362. sed 's/^/| /' conftest.$ac_ext >&5
  1363. ac_retval=1
  1364. fi
  1365. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1366. as_fn_set_status $ac_retval
  1367. } # ac_fn_cxx_try_cpp
  1368. # ac_fn_cxx_try_run LINENO
  1369. # ------------------------
  1370. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1371. # that executables *can* be run.
  1372. ac_fn_cxx_try_run ()
  1373. {
  1374. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1375. if { { ac_try="$ac_link"
  1376. case "(($ac_try" in
  1377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1378. *) ac_try_echo=$ac_try;;
  1379. esac
  1380. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1381. $as_echo "$ac_try_echo"; } >&5
  1382. (eval "$ac_link") 2>&5
  1383. ac_status=$?
  1384. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1385. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1386. { { case "(($ac_try" in
  1387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1388. *) ac_try_echo=$ac_try;;
  1389. esac
  1390. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1391. $as_echo "$ac_try_echo"; } >&5
  1392. (eval "$ac_try") 2>&5
  1393. ac_status=$?
  1394. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1395. test $ac_status = 0; }; }; then :
  1396. ac_retval=0
  1397. else
  1398. $as_echo "$as_me: program exited with status $ac_status" >&5
  1399. $as_echo "$as_me: failed program was:" >&5
  1400. sed 's/^/| /' conftest.$ac_ext >&5
  1401. ac_retval=$ac_status
  1402. fi
  1403. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1404. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1405. as_fn_set_status $ac_retval
  1406. } # ac_fn_cxx_try_run
  1407. # ac_fn_cxx_try_link LINENO
  1408. # -------------------------
  1409. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1410. ac_fn_cxx_try_link ()
  1411. {
  1412. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1413. rm -f conftest.$ac_objext conftest$ac_exeext
  1414. if { { ac_try="$ac_link"
  1415. case "(($ac_try" in
  1416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1417. *) ac_try_echo=$ac_try;;
  1418. esac
  1419. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1420. $as_echo "$ac_try_echo"; } >&5
  1421. (eval "$ac_link") 2>conftest.err
  1422. ac_status=$?
  1423. if test -s conftest.err; then
  1424. grep -v '^ *+' conftest.err >conftest.er1
  1425. cat conftest.er1 >&5
  1426. mv -f conftest.er1 conftest.err
  1427. fi
  1428. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1429. test $ac_status = 0; } && {
  1430. test -z "$ac_cxx_werror_flag" ||
  1431. test ! -s conftest.err
  1432. } && test -s conftest$ac_exeext && {
  1433. test "$cross_compiling" = yes ||
  1434. test -x conftest$ac_exeext
  1435. }; then :
  1436. ac_retval=0
  1437. else
  1438. $as_echo "$as_me: failed program was:" >&5
  1439. sed 's/^/| /' conftest.$ac_ext >&5
  1440. ac_retval=1
  1441. fi
  1442. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1443. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1444. # interfere with the next link command; also delete a directory that is
  1445. # left behind by Apple's compiler. We do this before executing the actions.
  1446. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1447. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1448. as_fn_set_status $ac_retval
  1449. } # ac_fn_cxx_try_link
  1450. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1451. # ---------------------------------------------------------
  1452. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1453. # the include files in INCLUDES and setting the cache variable VAR
  1454. # accordingly.
  1455. ac_fn_cxx_check_header_mongrel ()
  1456. {
  1457. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1458. if eval \${$3+:} false; then :
  1459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1460. $as_echo_n "checking for $2... " >&6; }
  1461. if eval \${$3+:} false; then :
  1462. $as_echo_n "(cached) " >&6
  1463. fi
  1464. eval ac_res=\$$3
  1465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1466. $as_echo "$ac_res" >&6; }
  1467. else
  1468. # Is the header compilable?
  1469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1470. $as_echo_n "checking $2 usability... " >&6; }
  1471. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1472. /* end build/confdefs.h. */
  1473. $4
  1474. #include <$2>
  1475. _ACEOF
  1476. if ac_fn_cxx_try_compile "$LINENO"; then :
  1477. ac_header_compiler=yes
  1478. else
  1479. ac_header_compiler=no
  1480. fi
  1481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1483. $as_echo "$ac_header_compiler" >&6; }
  1484. # Is the header present?
  1485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1486. $as_echo_n "checking $2 presence... " >&6; }
  1487. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1488. /* end build/confdefs.h. */
  1489. #include <$2>
  1490. _ACEOF
  1491. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1492. ac_header_preproc=yes
  1493. else
  1494. ac_header_preproc=no
  1495. fi
  1496. rm -f conftest.err conftest.i conftest.$ac_ext
  1497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1498. $as_echo "$ac_header_preproc" >&6; }
  1499. # So? What about this header?
  1500. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1501. yes:no: )
  1502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1503. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1505. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1506. ;;
  1507. no:yes:* )
  1508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1509. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1511. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1513. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1515. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1517. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1518. ;;
  1519. esac
  1520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1521. $as_echo_n "checking for $2... " >&6; }
  1522. if eval \${$3+:} false; then :
  1523. $as_echo_n "(cached) " >&6
  1524. else
  1525. eval "$3=\$ac_header_compiler"
  1526. fi
  1527. eval ac_res=\$$3
  1528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1529. $as_echo "$ac_res" >&6; }
  1530. fi
  1531. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1532. } # ac_fn_cxx_check_header_mongrel
  1533. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1534. # ---------------------------------------------------------
  1535. # Tests whether HEADER exists and can be compiled using the include files in
  1536. # INCLUDES, setting the cache variable VAR accordingly.
  1537. ac_fn_cxx_check_header_compile ()
  1538. {
  1539. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1541. $as_echo_n "checking for $2... " >&6; }
  1542. if eval \${$3+:} false; then :
  1543. $as_echo_n "(cached) " >&6
  1544. else
  1545. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1546. /* end build/confdefs.h. */
  1547. $4
  1548. #include <$2>
  1549. _ACEOF
  1550. if ac_fn_cxx_try_compile "$LINENO"; then :
  1551. eval "$3=yes"
  1552. else
  1553. eval "$3=no"
  1554. fi
  1555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1556. fi
  1557. eval ac_res=\$$3
  1558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1559. $as_echo "$ac_res" >&6; }
  1560. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1561. } # ac_fn_cxx_check_header_compile
  1562. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1563. # ---------------------------------------------
  1564. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1565. # variable VAR accordingly.
  1566. ac_fn_cxx_check_type ()
  1567. {
  1568. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1570. $as_echo_n "checking for $2... " >&6; }
  1571. if eval \${$3+:} false; then :
  1572. $as_echo_n "(cached) " >&6
  1573. else
  1574. eval "$3=no"
  1575. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1576. /* end build/confdefs.h. */
  1577. $4
  1578. int
  1579. main ()
  1580. {
  1581. if (sizeof ($2))
  1582. return 0;
  1583. ;
  1584. return 0;
  1585. }
  1586. _ACEOF
  1587. if ac_fn_cxx_try_compile "$LINENO"; then :
  1588. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1589. /* end build/confdefs.h. */
  1590. $4
  1591. int
  1592. main ()
  1593. {
  1594. if (sizeof (($2)))
  1595. return 0;
  1596. ;
  1597. return 0;
  1598. }
  1599. _ACEOF
  1600. if ac_fn_cxx_try_compile "$LINENO"; then :
  1601. else
  1602. eval "$3=yes"
  1603. fi
  1604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1605. fi
  1606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1607. fi
  1608. eval ac_res=\$$3
  1609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1610. $as_echo "$ac_res" >&6; }
  1611. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1612. } # ac_fn_cxx_check_type
  1613. # ac_fn_c_find_intX_t LINENO BITS VAR
  1614. # -----------------------------------
  1615. # Finds a signed integer type with width BITS, setting cache variable VAR
  1616. # accordingly.
  1617. ac_fn_c_find_intX_t ()
  1618. {
  1619. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1621. $as_echo_n "checking for int$2_t... " >&6; }
  1622. if eval \${$3+:} false; then :
  1623. $as_echo_n "(cached) " >&6
  1624. else
  1625. eval "$3=no"
  1626. # Order is important - never check a type that is potentially smaller
  1627. # than half of the expected target width.
  1628. for ac_type in int$2_t 'int' 'long int' \
  1629. 'long long int' 'short int' 'signed char'; do
  1630. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1631. /* end build/confdefs.h. */
  1632. $ac_includes_default
  1633. enum { N = $2 / 2 - 1 };
  1634. int
  1635. main ()
  1636. {
  1637. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1638. test_array [0] = 0;
  1639. return test_array [0];
  1640. ;
  1641. return 0;
  1642. }
  1643. _ACEOF
  1644. if ac_fn_cxx_try_compile "$LINENO"; then :
  1645. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1646. /* end build/confdefs.h. */
  1647. $ac_includes_default
  1648. enum { N = $2 / 2 - 1 };
  1649. int
  1650. main ()
  1651. {
  1652. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1653. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1654. test_array [0] = 0;
  1655. return test_array [0];
  1656. ;
  1657. return 0;
  1658. }
  1659. _ACEOF
  1660. if ac_fn_cxx_try_compile "$LINENO"; then :
  1661. else
  1662. case $ac_type in #(
  1663. int$2_t) :
  1664. eval "$3=yes" ;; #(
  1665. *) :
  1666. eval "$3=\$ac_type" ;;
  1667. esac
  1668. fi
  1669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1670. fi
  1671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1672. if eval test \"x\$"$3"\" = x"no"; then :
  1673. else
  1674. break
  1675. fi
  1676. done
  1677. fi
  1678. eval ac_res=\$$3
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1680. $as_echo "$ac_res" >&6; }
  1681. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1682. } # ac_fn_c_find_intX_t
  1683. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1684. # ------------------------------------
  1685. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1686. # accordingly.
  1687. ac_fn_c_find_uintX_t ()
  1688. {
  1689. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1691. $as_echo_n "checking for uint$2_t... " >&6; }
  1692. if eval \${$3+:} false; then :
  1693. $as_echo_n "(cached) " >&6
  1694. else
  1695. eval "$3=no"
  1696. # Order is important - never check a type that is potentially smaller
  1697. # than half of the expected target width.
  1698. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1699. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1700. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1701. /* end build/confdefs.h. */
  1702. $ac_includes_default
  1703. int
  1704. main ()
  1705. {
  1706. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1707. test_array [0] = 0;
  1708. return test_array [0];
  1709. ;
  1710. return 0;
  1711. }
  1712. _ACEOF
  1713. if ac_fn_cxx_try_compile "$LINENO"; then :
  1714. case $ac_type in #(
  1715. uint$2_t) :
  1716. eval "$3=yes" ;; #(
  1717. *) :
  1718. eval "$3=\$ac_type" ;;
  1719. esac
  1720. fi
  1721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1722. if eval test \"x\$"$3"\" = x"no"; then :
  1723. else
  1724. break
  1725. fi
  1726. done
  1727. fi
  1728. eval ac_res=\$$3
  1729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1730. $as_echo "$ac_res" >&6; }
  1731. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1732. } # ac_fn_c_find_uintX_t
  1733. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  1734. # ------------------------------------------------------
  1735. # Tries to find if the field MEMBER exists in type AGGR, after including
  1736. # INCLUDES, setting cache variable VAR accordingly.
  1737. ac_fn_cxx_check_member ()
  1738. {
  1739. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1741. $as_echo_n "checking for $2.$3... " >&6; }
  1742. if eval \${$4+:} false; then :
  1743. $as_echo_n "(cached) " >&6
  1744. else
  1745. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1746. /* end build/confdefs.h. */
  1747. $5
  1748. int
  1749. main ()
  1750. {
  1751. static $2 ac_aggr;
  1752. if (ac_aggr.$3)
  1753. return 0;
  1754. ;
  1755. return 0;
  1756. }
  1757. _ACEOF
  1758. if ac_fn_cxx_try_compile "$LINENO"; then :
  1759. eval "$4=yes"
  1760. else
  1761. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1762. /* end build/confdefs.h. */
  1763. $5
  1764. int
  1765. main ()
  1766. {
  1767. static $2 ac_aggr;
  1768. if (sizeof ac_aggr.$3)
  1769. return 0;
  1770. ;
  1771. return 0;
  1772. }
  1773. _ACEOF
  1774. if ac_fn_cxx_try_compile "$LINENO"; then :
  1775. eval "$4=yes"
  1776. else
  1777. eval "$4=no"
  1778. fi
  1779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1780. fi
  1781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1782. fi
  1783. eval ac_res=\$$4
  1784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1785. $as_echo "$ac_res" >&6; }
  1786. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1787. } # ac_fn_cxx_check_member
  1788. # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
  1789. # -----------------------------------------------
  1790. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1791. # accordingly.
  1792. ac_fn_cxx_check_decl ()
  1793. {
  1794. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1795. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1796. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1798. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1799. if eval \${$3+:} false; then :
  1800. $as_echo_n "(cached) " >&6
  1801. else
  1802. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1803. /* end build/confdefs.h. */
  1804. $4
  1805. int
  1806. main ()
  1807. {
  1808. #ifndef $as_decl_name
  1809. #ifdef __cplusplus
  1810. (void) $as_decl_use;
  1811. #else
  1812. (void) $as_decl_name;
  1813. #endif
  1814. #endif
  1815. ;
  1816. return 0;
  1817. }
  1818. _ACEOF
  1819. if ac_fn_cxx_try_compile "$LINENO"; then :
  1820. eval "$3=yes"
  1821. else
  1822. eval "$3=no"
  1823. fi
  1824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1825. fi
  1826. eval ac_res=\$$3
  1827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1828. $as_echo "$ac_res" >&6; }
  1829. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1830. } # ac_fn_cxx_check_decl
  1831. # ac_fn_cxx_check_func LINENO FUNC VAR
  1832. # ------------------------------------
  1833. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1834. ac_fn_cxx_check_func ()
  1835. {
  1836. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1838. $as_echo_n "checking for $2... " >&6; }
  1839. if eval \${$3+:} false; then :
  1840. $as_echo_n "(cached) " >&6
  1841. else
  1842. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1843. /* end build/confdefs.h. */
  1844. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1845. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1846. #define $2 innocuous_$2
  1847. /* System header to define __stub macros and hopefully few prototypes,
  1848. which can conflict with char $2 (); below.
  1849. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1850. <limits.h> exists even on freestanding compilers. */
  1851. #ifdef __STDC__
  1852. # include <limits.h>
  1853. #else
  1854. # include <assert.h>
  1855. #endif
  1856. #undef $2
  1857. /* Override any GCC internal prototype to avoid an error.
  1858. Use char because int might match the return type of a GCC
  1859. builtin and then its argument prototype would still apply. */
  1860. #ifdef __cplusplus
  1861. extern "C"
  1862. #endif
  1863. char $2 ();
  1864. /* The GNU C library defines this for functions which it implements
  1865. to always fail with ENOSYS. Some functions are actually named
  1866. something starting with __ and the normal name is an alias. */
  1867. #if defined __stub_$2 || defined __stub___$2
  1868. choke me
  1869. #endif
  1870. int
  1871. main ()
  1872. {
  1873. return $2 ();
  1874. ;
  1875. return 0;
  1876. }
  1877. _ACEOF
  1878. if ac_fn_cxx_try_link "$LINENO"; then :
  1879. eval "$3=yes"
  1880. else
  1881. eval "$3=no"
  1882. fi
  1883. rm -f core conftest.err conftest.$ac_objext \
  1884. conftest$ac_exeext conftest.$ac_ext
  1885. fi
  1886. eval ac_res=\$$3
  1887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1888. $as_echo "$ac_res" >&6; }
  1889. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1890. } # ac_fn_cxx_check_func
  1891. cat >build/config.log <<_ACEOF
  1892. This file contains any messages produced by compilers while
  1893. running configure, to aid debugging if configure makes a mistake.
  1894. It was created by $as_me, which was
  1895. generated by GNU Autoconf 2.69. Invocation command line was
  1896. $ $0 $@
  1897. _ACEOF
  1898. exec 5>>build/config.log
  1899. {
  1900. cat <<_ASUNAME
  1901. ## --------- ##
  1902. ## Platform. ##
  1903. ## --------- ##
  1904. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1905. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1906. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1907. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1908. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1909. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1910. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1911. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1912. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1913. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1914. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1915. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1916. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1917. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1918. _ASUNAME
  1919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1920. for as_dir in $PATH
  1921. do
  1922. IFS=$as_save_IFS
  1923. test -z "$as_dir" && as_dir=.
  1924. $as_echo "PATH: $as_dir"
  1925. done
  1926. IFS=$as_save_IFS
  1927. } >&5
  1928. cat >&5 <<_ACEOF
  1929. ## ----------- ##
  1930. ## Core tests. ##
  1931. ## ----------- ##
  1932. _ACEOF
  1933. # Keep a trace of the command line.
  1934. # Strip out --no-create and --no-recursion so they do not pile up.
  1935. # Strip out --silent because we don't want to record it for future runs.
  1936. # Also quote any args containing shell meta-characters.
  1937. # Make two passes to allow for proper duplicate-argument suppression.
  1938. ac_configure_args=
  1939. ac_configure_args0=
  1940. ac_configure_args1=
  1941. ac_must_keep_next=false
  1942. for ac_pass in 1 2
  1943. do
  1944. for ac_arg
  1945. do
  1946. case $ac_arg in
  1947. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1948. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1949. | -silent | --silent | --silen | --sile | --sil)
  1950. continue ;;
  1951. *\'*)
  1952. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1953. esac
  1954. case $ac_pass in
  1955. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1956. 2)
  1957. as_fn_append ac_configure_args1 " '$ac_arg'"
  1958. if test $ac_must_keep_next = true; then
  1959. ac_must_keep_next=false # Got value, back to normal.
  1960. else
  1961. case $ac_arg in
  1962. *=* | --config-cache | -C | -disable-* | --disable-* \
  1963. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1964. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1965. | -with-* | --with-* | -without-* | --without-* | --x)
  1966. case "$ac_configure_args0 " in
  1967. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1968. esac
  1969. ;;
  1970. -* ) ac_must_keep_next=true ;;
  1971. esac
  1972. fi
  1973. as_fn_append ac_configure_args " '$ac_arg'"
  1974. ;;
  1975. esac
  1976. done
  1977. done
  1978. { ac_configure_args0=; unset ac_configure_args0;}
  1979. { ac_configure_args1=; unset ac_configure_args1;}
  1980. # When interrupted or exit'd, cleanup temporary files, and complete
  1981. # build/config.log. We remove comments because anyway the quotes in there
  1982. # would cause problems or look ugly.
  1983. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1984. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1985. trap 'exit_status=$?
  1986. # Save into build/config.log some information that might help in debugging.
  1987. {
  1988. echo
  1989. $as_echo "## ---------------- ##
  1990. ## Cache variables. ##
  1991. ## ---------------- ##"
  1992. echo
  1993. # The following way of writing the cache mishandles newlines in values,
  1994. (
  1995. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1996. eval ac_val=\$$ac_var
  1997. case $ac_val in #(
  1998. *${as_nl}*)
  1999. case $ac_var in #(
  2000. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2001. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2002. esac
  2003. case $ac_var in #(
  2004. _ | IFS | as_nl) ;; #(
  2005. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2006. *) { eval $ac_var=; unset $ac_var;} ;;
  2007. esac ;;
  2008. esac
  2009. done
  2010. (set) 2>&1 |
  2011. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2012. *${as_nl}ac_space=\ *)
  2013. sed -n \
  2014. "s/'\''/'\''\\\\'\'''\''/g;
  2015. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2016. ;; #(
  2017. *)
  2018. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2019. ;;
  2020. esac |
  2021. sort
  2022. )
  2023. echo
  2024. $as_echo "## ----------------- ##
  2025. ## Output variables. ##
  2026. ## ----------------- ##"
  2027. echo
  2028. for ac_var in $ac_subst_vars
  2029. do
  2030. eval ac_val=\$$ac_var
  2031. case $ac_val in
  2032. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2033. esac
  2034. $as_echo "$ac_var='\''$ac_val'\''"
  2035. done | sort
  2036. echo
  2037. if test -n "$ac_subst_files"; then
  2038. $as_echo "## ------------------- ##
  2039. ## File substitutions. ##
  2040. ## ------------------- ##"
  2041. echo
  2042. for ac_var in $ac_subst_files
  2043. do
  2044. eval ac_val=\$$ac_var
  2045. case $ac_val in
  2046. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2047. esac
  2048. $as_echo "$ac_var='\''$ac_val'\''"
  2049. done | sort
  2050. echo
  2051. fi
  2052. if test -s build/confdefs.h; then
  2053. $as_echo "## ----------- ##
  2054. ## build/confdefs.h. ##
  2055. ## ----------- ##"
  2056. echo
  2057. cat build/confdefs.h
  2058. echo
  2059. fi
  2060. test "$ac_signal" != 0 &&
  2061. $as_echo "$as_me: caught signal $ac_signal"
  2062. $as_echo "$as_me: exit $exit_status"
  2063. } >&5
  2064. rm -f core *.core core.conftest.* &&
  2065. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2066. exit $exit_status
  2067. ' 0
  2068. for ac_signal in 1 2 13 15; do
  2069. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2070. done
  2071. ac_signal=0
  2072. # build/confdefs.h avoids OS command line length limits that DEFS can exceed.
  2073. rm -f -r conftest* build/confdefs.h
  2074. $as_echo "/* build/confdefs.h */" > build/confdefs.h
  2075. # Predefined preprocessor variables.
  2076. cat >>build/confdefs.h <<_ACEOF
  2077. #define PACKAGE_NAME "$PACKAGE_NAME"
  2078. _ACEOF
  2079. cat >>build/confdefs.h <<_ACEOF
  2080. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2081. _ACEOF
  2082. cat >>build/confdefs.h <<_ACEOF
  2083. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2084. _ACEOF
  2085. cat >>build/confdefs.h <<_ACEOF
  2086. #define PACKAGE_STRING "$PACKAGE_STRING"
  2087. _ACEOF
  2088. cat >>build/confdefs.h <<_ACEOF
  2089. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2090. _ACEOF
  2091. cat >>build/confdefs.h <<_ACEOF
  2092. #define PACKAGE_URL "$PACKAGE_URL"
  2093. _ACEOF
  2094. # Let the site file select an alternate cache file if it wants to.
  2095. # Prefer an explicitly selected file to automatically selected ones.
  2096. ac_site_file1=NONE
  2097. ac_site_file2=NONE
  2098. if test -n "$CONFIG_SITE"; then
  2099. # We do not want a PATH search for config.site.
  2100. case $CONFIG_SITE in #((
  2101. -*) ac_site_file1=./$CONFIG_SITE;;
  2102. */*) ac_site_file1=$CONFIG_SITE;;
  2103. *) ac_site_file1=./$CONFIG_SITE;;
  2104. esac
  2105. elif test "x$prefix" != xNONE; then
  2106. ac_site_file1=$prefix/share/config.site
  2107. ac_site_file2=$prefix/etc/config.site
  2108. else
  2109. ac_site_file1=$ac_default_prefix/share/config.site
  2110. ac_site_file2=$ac_default_prefix/etc/config.site
  2111. fi
  2112. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2113. do
  2114. test "x$ac_site_file" = xNONE && continue
  2115. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2117. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2118. sed 's/^/| /' "$ac_site_file" >&5
  2119. . "$ac_site_file" \
  2120. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2121. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2122. as_fn_error $? "failed to load site script $ac_site_file
  2123. See \`build/config.log' for more details" "$LINENO" 5; }
  2124. fi
  2125. done
  2126. if test -r "$cache_file"; then
  2127. # Some versions of bash will fail to source /dev/null (special files
  2128. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2129. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2131. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2132. case $cache_file in
  2133. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2134. *) . "./$cache_file";;
  2135. esac
  2136. fi
  2137. else
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2139. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2140. >$cache_file
  2141. fi
  2142. as_fn_append ac_header_list " sys/time.h"
  2143. as_fn_append ac_header_list " unistd.h"
  2144. as_fn_append ac_func_list " alarm"
  2145. as_fn_append ac_header_list " stdlib.h"
  2146. as_fn_append ac_header_list " sys/param.h"
  2147. # Check that the precious variables saved in the cache have kept the same
  2148. # value.
  2149. ac_cache_corrupted=false
  2150. for ac_var in $ac_precious_vars; do
  2151. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2152. eval ac_new_set=\$ac_env_${ac_var}_set
  2153. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2154. eval ac_new_val=\$ac_env_${ac_var}_value
  2155. case $ac_old_set,$ac_new_set in
  2156. set,)
  2157. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2158. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2159. ac_cache_corrupted=: ;;
  2160. ,set)
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2162. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2163. ac_cache_corrupted=: ;;
  2164. ,);;
  2165. *)
  2166. if test "x$ac_old_val" != "x$ac_new_val"; then
  2167. # differences in whitespace do not lead to failure.
  2168. ac_old_val_w=`echo x $ac_old_val`
  2169. ac_new_val_w=`echo x $ac_new_val`
  2170. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2171. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2172. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2173. ac_cache_corrupted=:
  2174. else
  2175. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2176. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2177. eval $ac_var=\$ac_old_val
  2178. fi
  2179. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2180. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2182. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2183. fi;;
  2184. esac
  2185. # Pass precious variables to build/config.status.
  2186. if test "$ac_new_set" = set; then
  2187. case $ac_new_val in
  2188. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2189. *) ac_arg=$ac_var=$ac_new_val ;;
  2190. esac
  2191. case " $ac_configure_args " in
  2192. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2193. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2194. esac
  2195. fi
  2196. done
  2197. if $ac_cache_corrupted; then
  2198. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2199. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2201. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2202. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2203. fi
  2204. ## -------------------- ##
  2205. ## Main body of script. ##
  2206. ## -------------------- ##
  2207. ac_ext=c
  2208. ac_cpp='$CPP $CPPFLAGS'
  2209. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2210. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2211. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2212. ac_config_headers="$ac_config_headers src/config.h"
  2213. ac_aux_dir=
  2214. for ac_dir in build/autotools "$srcdir"/build/autotools; do
  2215. if test -f "$ac_dir/install-sh"; then
  2216. ac_aux_dir=$ac_dir
  2217. ac_install_sh="$ac_aux_dir/install-sh -c"
  2218. break
  2219. elif test -f "$ac_dir/install.sh"; then
  2220. ac_aux_dir=$ac_dir
  2221. ac_install_sh="$ac_aux_dir/install.sh -c"
  2222. break
  2223. elif test -f "$ac_dir/shtool"; then
  2224. ac_aux_dir=$ac_dir
  2225. ac_install_sh="$ac_aux_dir/shtool install -c"
  2226. break
  2227. fi
  2228. done
  2229. if test -z "$ac_aux_dir"; then
  2230. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build/autotools \"$srcdir\"/build/autotools" "$LINENO" 5
  2231. fi
  2232. # These three variables are undocumented and unsupported,
  2233. # and are intended to be withdrawn in a future Autoconf release.
  2234. # They can cause serious problems if a builder's source tree is in a directory
  2235. # whose full name contains unusual characters.
  2236. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2237. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2238. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2239. # Remove --cache-file and --srcdir arguments so they do not pile up.
  2240. egg_ac_parameters=
  2241. ac_prev=
  2242. for ac_arg in $ac_configure_args; do
  2243. if test -n "$ac_prev"; then
  2244. ac_prev=
  2245. continue
  2246. fi
  2247. case $ac_arg in
  2248. -cache-file | --cache-file | --cache-fil | --cache-fi \
  2249. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  2250. ac_prev=cache_file ;;
  2251. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  2252. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  2253. | --c=*)
  2254. ;;
  2255. --config-cache | -C)
  2256. ;;
  2257. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  2258. ac_prev=srcdir ;;
  2259. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  2260. ;;
  2261. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  2262. esac
  2263. done
  2264. # Setup build environment
  2265. #AC_REQUIRE_CPP
  2266. ac_ext=cpp
  2267. ac_cpp='$CXXCPP $CPPFLAGS'
  2268. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2269. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2270. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2271. ac_ext=cpp
  2272. ac_cpp='$CXXCPP $CPPFLAGS'
  2273. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2274. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2275. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2276. if test -z "$CXX"; then
  2277. if test -n "$CCC"; then
  2278. CXX=$CCC
  2279. else
  2280. if test -n "$ac_tool_prefix"; then
  2281. for ac_prog in g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 clang++ g++46 g++-4.6 g++45 g++-4.5 g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 eg++ g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2282. do
  2283. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2284. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2286. $as_echo_n "checking for $ac_word... " >&6; }
  2287. if ${ac_cv_prog_CXX+:} false; then :
  2288. $as_echo_n "(cached) " >&6
  2289. else
  2290. if test -n "$CXX"; then
  2291. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2292. else
  2293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2294. for as_dir in $PATH
  2295. do
  2296. IFS=$as_save_IFS
  2297. test -z "$as_dir" && as_dir=.
  2298. for ac_exec_ext in '' $ac_executable_extensions; do
  2299. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2300. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2301. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2302. break 2
  2303. fi
  2304. done
  2305. done
  2306. IFS=$as_save_IFS
  2307. fi
  2308. fi
  2309. CXX=$ac_cv_prog_CXX
  2310. if test -n "$CXX"; then
  2311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2312. $as_echo "$CXX" >&6; }
  2313. else
  2314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2315. $as_echo "no" >&6; }
  2316. fi
  2317. test -n "$CXX" && break
  2318. done
  2319. fi
  2320. if test -z "$CXX"; then
  2321. ac_ct_CXX=$CXX
  2322. for ac_prog in g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 clang++ g++46 g++-4.6 g++45 g++-4.5 g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 eg++ g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2323. do
  2324. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2325. set dummy $ac_prog; ac_word=$2
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2327. $as_echo_n "checking for $ac_word... " >&6; }
  2328. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2329. $as_echo_n "(cached) " >&6
  2330. else
  2331. if test -n "$ac_ct_CXX"; then
  2332. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2333. else
  2334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2335. for as_dir in $PATH
  2336. do
  2337. IFS=$as_save_IFS
  2338. test -z "$as_dir" && as_dir=.
  2339. for ac_exec_ext in '' $ac_executable_extensions; do
  2340. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2341. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2342. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2343. break 2
  2344. fi
  2345. done
  2346. done
  2347. IFS=$as_save_IFS
  2348. fi
  2349. fi
  2350. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2351. if test -n "$ac_ct_CXX"; then
  2352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2353. $as_echo "$ac_ct_CXX" >&6; }
  2354. else
  2355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2356. $as_echo "no" >&6; }
  2357. fi
  2358. test -n "$ac_ct_CXX" && break
  2359. done
  2360. if test "x$ac_ct_CXX" = x; then
  2361. CXX="g++"
  2362. else
  2363. case $cross_compiling:$ac_tool_warned in
  2364. yes:)
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2366. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2367. ac_tool_warned=yes ;;
  2368. esac
  2369. CXX=$ac_ct_CXX
  2370. fi
  2371. fi
  2372. fi
  2373. fi
  2374. # Provide some information about the compiler.
  2375. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2376. set X $ac_compile
  2377. ac_compiler=$2
  2378. for ac_option in --version -v -V -qversion; do
  2379. { { ac_try="$ac_compiler $ac_option >&5"
  2380. case "(($ac_try" in
  2381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2382. *) ac_try_echo=$ac_try;;
  2383. esac
  2384. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2385. $as_echo "$ac_try_echo"; } >&5
  2386. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2387. ac_status=$?
  2388. if test -s conftest.err; then
  2389. sed '10a\
  2390. ... rest of stderr output deleted ...
  2391. 10q' conftest.err >conftest.er1
  2392. cat conftest.er1 >&5
  2393. fi
  2394. rm -f conftest.er1 conftest.err
  2395. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2396. test $ac_status = 0; }
  2397. done
  2398. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2399. /* end build/confdefs.h. */
  2400. int
  2401. main ()
  2402. {
  2403. ;
  2404. return 0;
  2405. }
  2406. _ACEOF
  2407. ac_clean_files_save=$ac_clean_files
  2408. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2409. # Try to create an executable without -o first, disregard a.out.
  2410. # It will help us diagnose broken compilers, and finding out an intuition
  2411. # of exeext.
  2412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2413. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2414. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2415. # The possible output files:
  2416. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2417. ac_rmfiles=
  2418. for ac_file in $ac_files
  2419. do
  2420. case $ac_file in
  2421. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2422. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2423. esac
  2424. done
  2425. rm -f $ac_rmfiles
  2426. if { { ac_try="$ac_link_default"
  2427. case "(($ac_try" in
  2428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2429. *) ac_try_echo=$ac_try;;
  2430. esac
  2431. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2432. $as_echo "$ac_try_echo"; } >&5
  2433. (eval "$ac_link_default") 2>&5
  2434. ac_status=$?
  2435. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2436. test $ac_status = 0; }; then :
  2437. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2438. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2439. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2440. # so that the user can short-circuit this test for compilers unknown to
  2441. # Autoconf.
  2442. for ac_file in $ac_files ''
  2443. do
  2444. test -f "$ac_file" || continue
  2445. case $ac_file in
  2446. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2447. ;;
  2448. [ab].out )
  2449. # We found the default executable, but exeext='' is most
  2450. # certainly right.
  2451. break;;
  2452. *.* )
  2453. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2454. then :; else
  2455. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2456. fi
  2457. # We set ac_cv_exeext here because the later test for it is not
  2458. # safe: cross compilers may not add the suffix if given an `-o'
  2459. # argument, so we may need to know it at that point already.
  2460. # Even if this section looks crufty: it has the advantage of
  2461. # actually working.
  2462. break;;
  2463. * )
  2464. break;;
  2465. esac
  2466. done
  2467. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2468. else
  2469. ac_file=''
  2470. fi
  2471. if test -z "$ac_file"; then :
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2473. $as_echo "no" >&6; }
  2474. $as_echo "$as_me: failed program was:" >&5
  2475. sed 's/^/| /' conftest.$ac_ext >&5
  2476. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2477. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2478. as_fn_error 77 "C++ compiler cannot create executables
  2479. See \`build/config.log' for more details" "$LINENO" 5; }
  2480. else
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2482. $as_echo "yes" >&6; }
  2483. fi
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2485. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2487. $as_echo "$ac_file" >&6; }
  2488. ac_exeext=$ac_cv_exeext
  2489. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2490. ac_clean_files=$ac_clean_files_save
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2492. $as_echo_n "checking for suffix of executables... " >&6; }
  2493. if { { ac_try="$ac_link"
  2494. case "(($ac_try" in
  2495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2496. *) ac_try_echo=$ac_try;;
  2497. esac
  2498. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2499. $as_echo "$ac_try_echo"; } >&5
  2500. (eval "$ac_link") 2>&5
  2501. ac_status=$?
  2502. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2503. test $ac_status = 0; }; then :
  2504. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2505. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2506. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2507. # `rm'.
  2508. for ac_file in conftest.exe conftest conftest.*; do
  2509. test -f "$ac_file" || continue
  2510. case $ac_file in
  2511. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2512. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2513. break;;
  2514. * ) break;;
  2515. esac
  2516. done
  2517. else
  2518. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2519. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2520. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2521. See \`build/config.log' for more details" "$LINENO" 5; }
  2522. fi
  2523. rm -f conftest conftest$ac_cv_exeext
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2525. $as_echo "$ac_cv_exeext" >&6; }
  2526. rm -f conftest.$ac_ext
  2527. EXEEXT=$ac_cv_exeext
  2528. ac_exeext=$EXEEXT
  2529. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2530. /* end build/confdefs.h. */
  2531. #include <stdio.h>
  2532. int
  2533. main ()
  2534. {
  2535. FILE *f = fopen ("conftest.out", "w");
  2536. return ferror (f) || fclose (f) != 0;
  2537. ;
  2538. return 0;
  2539. }
  2540. _ACEOF
  2541. ac_clean_files="$ac_clean_files conftest.out"
  2542. # Check that the compiler produces executables we can run. If not, either
  2543. # the compiler is broken, or we cross compile.
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2545. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2546. if test "$cross_compiling" != yes; then
  2547. { { ac_try="$ac_link"
  2548. case "(($ac_try" in
  2549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2550. *) ac_try_echo=$ac_try;;
  2551. esac
  2552. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2553. $as_echo "$ac_try_echo"; } >&5
  2554. (eval "$ac_link") 2>&5
  2555. ac_status=$?
  2556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2557. test $ac_status = 0; }
  2558. if { ac_try='./conftest$ac_cv_exeext'
  2559. { { case "(($ac_try" in
  2560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2561. *) ac_try_echo=$ac_try;;
  2562. esac
  2563. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2564. $as_echo "$ac_try_echo"; } >&5
  2565. (eval "$ac_try") 2>&5
  2566. ac_status=$?
  2567. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2568. test $ac_status = 0; }; }; then
  2569. cross_compiling=no
  2570. else
  2571. if test "$cross_compiling" = maybe; then
  2572. cross_compiling=yes
  2573. else
  2574. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2575. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2576. as_fn_error $? "cannot run C++ compiled programs.
  2577. If you meant to cross compile, use \`--host'.
  2578. See \`build/config.log' for more details" "$LINENO" 5; }
  2579. fi
  2580. fi
  2581. fi
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2583. $as_echo "$cross_compiling" >&6; }
  2584. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2585. ac_clean_files=$ac_clean_files_save
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2587. $as_echo_n "checking for suffix of object files... " >&6; }
  2588. if ${ac_cv_objext+:} false; then :
  2589. $as_echo_n "(cached) " >&6
  2590. else
  2591. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2592. /* end build/confdefs.h. */
  2593. int
  2594. main ()
  2595. {
  2596. ;
  2597. return 0;
  2598. }
  2599. _ACEOF
  2600. rm -f conftest.o conftest.obj
  2601. if { { ac_try="$ac_compile"
  2602. case "(($ac_try" in
  2603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2604. *) ac_try_echo=$ac_try;;
  2605. esac
  2606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2607. $as_echo "$ac_try_echo"; } >&5
  2608. (eval "$ac_compile") 2>&5
  2609. ac_status=$?
  2610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2611. test $ac_status = 0; }; then :
  2612. for ac_file in conftest.o conftest.obj conftest.*; do
  2613. test -f "$ac_file" || continue;
  2614. case $ac_file in
  2615. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2616. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2617. break;;
  2618. esac
  2619. done
  2620. else
  2621. $as_echo "$as_me: failed program was:" >&5
  2622. sed 's/^/| /' conftest.$ac_ext >&5
  2623. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2624. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2625. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2626. See \`build/config.log' for more details" "$LINENO" 5; }
  2627. fi
  2628. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2629. fi
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2631. $as_echo "$ac_cv_objext" >&6; }
  2632. OBJEXT=$ac_cv_objext
  2633. ac_objext=$OBJEXT
  2634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2635. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2636. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  2637. $as_echo_n "(cached) " >&6
  2638. else
  2639. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2640. /* end build/confdefs.h. */
  2641. int
  2642. main ()
  2643. {
  2644. #ifndef __GNUC__
  2645. choke me
  2646. #endif
  2647. ;
  2648. return 0;
  2649. }
  2650. _ACEOF
  2651. if ac_fn_cxx_try_compile "$LINENO"; then :
  2652. ac_compiler_gnu=yes
  2653. else
  2654. ac_compiler_gnu=no
  2655. fi
  2656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2657. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2658. fi
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2660. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2661. if test $ac_compiler_gnu = yes; then
  2662. GXX=yes
  2663. else
  2664. GXX=
  2665. fi
  2666. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2667. ac_save_CXXFLAGS=$CXXFLAGS
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2669. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2670. if ${ac_cv_prog_cxx_g+:} false; then :
  2671. $as_echo_n "(cached) " >&6
  2672. else
  2673. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2674. ac_cxx_werror_flag=yes
  2675. ac_cv_prog_cxx_g=no
  2676. CXXFLAGS="-g"
  2677. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2678. /* end build/confdefs.h. */
  2679. int
  2680. main ()
  2681. {
  2682. ;
  2683. return 0;
  2684. }
  2685. _ACEOF
  2686. if ac_fn_cxx_try_compile "$LINENO"; then :
  2687. ac_cv_prog_cxx_g=yes
  2688. else
  2689. CXXFLAGS=""
  2690. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2691. /* end build/confdefs.h. */
  2692. int
  2693. main ()
  2694. {
  2695. ;
  2696. return 0;
  2697. }
  2698. _ACEOF
  2699. if ac_fn_cxx_try_compile "$LINENO"; then :
  2700. else
  2701. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2702. CXXFLAGS="-g"
  2703. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2704. /* end build/confdefs.h. */
  2705. int
  2706. main ()
  2707. {
  2708. ;
  2709. return 0;
  2710. }
  2711. _ACEOF
  2712. if ac_fn_cxx_try_compile "$LINENO"; then :
  2713. ac_cv_prog_cxx_g=yes
  2714. fi
  2715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2716. fi
  2717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2718. fi
  2719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2720. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2721. fi
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  2723. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2724. if test "$ac_test_CXXFLAGS" = set; then
  2725. CXXFLAGS=$ac_save_CXXFLAGS
  2726. elif test $ac_cv_prog_cxx_g = yes; then
  2727. if test "$GXX" = yes; then
  2728. CXXFLAGS="-g -O2"
  2729. else
  2730. CXXFLAGS="-g"
  2731. fi
  2732. else
  2733. if test "$GXX" = yes; then
  2734. CXXFLAGS="-O2"
  2735. else
  2736. CXXFLAGS=
  2737. fi
  2738. fi
  2739. ac_ext=cpp
  2740. ac_cpp='$CXXCPP $CPPFLAGS'
  2741. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2742. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2743. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2744. ac_ext=cpp
  2745. ac_cpp='$CXXCPP $CPPFLAGS'
  2746. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2747. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2748. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  2750. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2751. if test -z "$CXXCPP"; then
  2752. if ${ac_cv_prog_CXXCPP+:} false; then :
  2753. $as_echo_n "(cached) " >&6
  2754. else
  2755. # Double quotes because CXXCPP needs to be expanded
  2756. for CXXCPP in "$CXX -E" "/lib/cpp"
  2757. do
  2758. ac_preproc_ok=false
  2759. for ac_cxx_preproc_warn_flag in '' yes
  2760. do
  2761. # Use a header file that comes with gcc, so configuring glibc
  2762. # with a fresh cross-compiler works.
  2763. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2764. # <limits.h> exists even on freestanding compilers.
  2765. # On the NeXT, cc -E runs the code through the compiler's parser,
  2766. # not just through cpp. "Syntax error" is here to catch this case.
  2767. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2768. /* end build/confdefs.h. */
  2769. #ifdef __STDC__
  2770. # include <limits.h>
  2771. #else
  2772. # include <assert.h>
  2773. #endif
  2774. Syntax error
  2775. _ACEOF
  2776. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2777. else
  2778. # Broken: fails on valid input.
  2779. continue
  2780. fi
  2781. rm -f conftest.err conftest.i conftest.$ac_ext
  2782. # OK, works on sane cases. Now check whether nonexistent headers
  2783. # can be detected and how.
  2784. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2785. /* end build/confdefs.h. */
  2786. #include <ac_nonexistent.h>
  2787. _ACEOF
  2788. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2789. # Broken: success on invalid input.
  2790. continue
  2791. else
  2792. # Passes both tests.
  2793. ac_preproc_ok=:
  2794. break
  2795. fi
  2796. rm -f conftest.err conftest.i conftest.$ac_ext
  2797. done
  2798. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2799. rm -f conftest.i conftest.err conftest.$ac_ext
  2800. if $ac_preproc_ok; then :
  2801. break
  2802. fi
  2803. done
  2804. ac_cv_prog_CXXCPP=$CXXCPP
  2805. fi
  2806. CXXCPP=$ac_cv_prog_CXXCPP
  2807. else
  2808. ac_cv_prog_CXXCPP=$CXXCPP
  2809. fi
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  2811. $as_echo "$CXXCPP" >&6; }
  2812. ac_preproc_ok=false
  2813. for ac_cxx_preproc_warn_flag in '' yes
  2814. do
  2815. # Use a header file that comes with gcc, so configuring glibc
  2816. # with a fresh cross-compiler works.
  2817. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2818. # <limits.h> exists even on freestanding compilers.
  2819. # On the NeXT, cc -E runs the code through the compiler's parser,
  2820. # not just through cpp. "Syntax error" is here to catch this case.
  2821. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2822. /* end build/confdefs.h. */
  2823. #ifdef __STDC__
  2824. # include <limits.h>
  2825. #else
  2826. # include <assert.h>
  2827. #endif
  2828. Syntax error
  2829. _ACEOF
  2830. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2831. else
  2832. # Broken: fails on valid input.
  2833. continue
  2834. fi
  2835. rm -f conftest.err conftest.i conftest.$ac_ext
  2836. # OK, works on sane cases. Now check whether nonexistent headers
  2837. # can be detected and how.
  2838. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2839. /* end build/confdefs.h. */
  2840. #include <ac_nonexistent.h>
  2841. _ACEOF
  2842. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2843. # Broken: success on invalid input.
  2844. continue
  2845. else
  2846. # Passes both tests.
  2847. ac_preproc_ok=:
  2848. break
  2849. fi
  2850. rm -f conftest.err conftest.i conftest.$ac_ext
  2851. done
  2852. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2853. rm -f conftest.i conftest.err conftest.$ac_ext
  2854. if $ac_preproc_ok; then :
  2855. else
  2856. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2857. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2858. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  2859. See \`build/config.log' for more details" "$LINENO" 5; }
  2860. fi
  2861. ac_ext=cpp
  2862. ac_cpp='$CXXCPP $CPPFLAGS'
  2863. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2864. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2865. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2866. ax_cxx_compile_cxx11_required=true
  2867. ac_ext=cpp
  2868. ac_cpp='$CXXCPP $CPPFLAGS'
  2869. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2870. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2871. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2872. ac_success=no
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
  2874. $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
  2875. if ${ax_cv_cxx_compile_cxx11+:} false; then :
  2876. $as_echo_n "(cached) " >&6
  2877. else
  2878. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2879. /* end build/confdefs.h. */
  2880. template <typename T>
  2881. struct check
  2882. {
  2883. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  2884. };
  2885. struct Base {
  2886. virtual void f() {}
  2887. };
  2888. struct Child : public Base {
  2889. virtual void f() override {}
  2890. };
  2891. typedef check<check<bool>> right_angle_brackets;
  2892. int a;
  2893. decltype(a) b;
  2894. typedef check<int> check_type;
  2895. check_type c;
  2896. check_type&& cr = static_cast<check_type&&>(c);
  2897. auto d = a;
  2898. auto l = [](){};
  2899. _ACEOF
  2900. if ac_fn_cxx_try_compile "$LINENO"; then :
  2901. ax_cv_cxx_compile_cxx11=yes
  2902. else
  2903. ax_cv_cxx_compile_cxx11=no
  2904. fi
  2905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2906. fi
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
  2908. $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
  2909. if test x$ax_cv_cxx_compile_cxx11 = xyes; then
  2910. ac_success=yes
  2911. fi
  2912. if test x$ac_success = xno; then
  2913. for switch in -std=c++11 -std=c++0x; do
  2914. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  2916. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  2917. if eval \${$cachevar+:} false; then :
  2918. $as_echo_n "(cached) " >&6
  2919. else
  2920. ac_save_CXXFLAGS="$CXXFLAGS"
  2921. CXXFLAGS="$CXXFLAGS $switch"
  2922. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2923. /* end build/confdefs.h. */
  2924. template <typename T>
  2925. struct check
  2926. {
  2927. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  2928. };
  2929. struct Base {
  2930. virtual void f() {}
  2931. };
  2932. struct Child : public Base {
  2933. virtual void f() override {}
  2934. };
  2935. typedef check<check<bool>> right_angle_brackets;
  2936. int a;
  2937. decltype(a) b;
  2938. typedef check<int> check_type;
  2939. check_type c;
  2940. check_type&& cr = static_cast<check_type&&>(c);
  2941. auto d = a;
  2942. auto l = [](){};
  2943. _ACEOF
  2944. if ac_fn_cxx_try_compile "$LINENO"; then :
  2945. eval $cachevar=yes
  2946. else
  2947. eval $cachevar=no
  2948. fi
  2949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2950. CXXFLAGS="$ac_save_CXXFLAGS"
  2951. fi
  2952. eval ac_res=\$$cachevar
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2954. $as_echo "$ac_res" >&6; }
  2955. if eval test x\$$cachevar = xyes; then
  2956. CXXFLAGS="$CXXFLAGS $switch"
  2957. ac_success=yes
  2958. break
  2959. fi
  2960. done
  2961. fi
  2962. ac_ext=cpp
  2963. ac_cpp='$CXXCPP $CPPFLAGS'
  2964. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2965. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2966. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2967. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  2968. if test x$ac_success = xno; then
  2969. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  2970. fi
  2971. else
  2972. if test x$ac_success = xno; then
  2973. HAVE_CXX11=0
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  2975. $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
  2976. else
  2977. HAVE_CXX11=1
  2978. $as_echo "#define HAVE_CXX11 1" >>build/confdefs.h
  2979. fi
  2980. fi
  2981. if test "${cross_compiling-x}" = "x"
  2982. then
  2983. cat << 'EOF' >&2
  2984. configure: error:
  2985. This system does not appear to have a working C compiler.
  2986. A working C compiler is required to compile Wraith.
  2987. EOF
  2988. exit 1
  2989. fi
  2990. if test -n "$GXX"; then
  2991. CXXFLAGS="$CXXFLAGS"
  2992. fi
  2993. #checkpoint
  2994. cat >confcache <<\_ACEOF
  2995. # This file is a shell script that caches the results of configure
  2996. # tests run on this system so they can be shared between configure
  2997. # scripts and configure runs, see configure's option --config-cache.
  2998. # It is not useful on other systems. If it contains results you don't
  2999. # want to keep, you may remove or edit it.
  3000. #
  3001. # build/config.status only pays attention to the cache file if you give it
  3002. # the --recheck option to rerun configure.
  3003. #
  3004. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3005. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3006. # following values.
  3007. _ACEOF
  3008. # The following way of writing the cache mishandles newlines in values,
  3009. # but we know of no workaround that is simple, portable, and efficient.
  3010. # So, we kill variables containing newlines.
  3011. # Ultrix sh set writes to stderr and can't be redirected directly,
  3012. # and sets the high bit in the cache file unless we assign to the vars.
  3013. (
  3014. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3015. eval ac_val=\$$ac_var
  3016. case $ac_val in #(
  3017. *${as_nl}*)
  3018. case $ac_var in #(
  3019. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3020. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3021. esac
  3022. case $ac_var in #(
  3023. _ | IFS | as_nl) ;; #(
  3024. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3025. *) { eval $ac_var=; unset $ac_var;} ;;
  3026. esac ;;
  3027. esac
  3028. done
  3029. (set) 2>&1 |
  3030. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3031. *${as_nl}ac_space=\ *)
  3032. # `set' does not quote correctly, so add quotes: double-quote
  3033. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3034. sed -n \
  3035. "s/'/'\\\\''/g;
  3036. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3037. ;; #(
  3038. *)
  3039. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3040. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3041. ;;
  3042. esac |
  3043. sort
  3044. ) |
  3045. sed '
  3046. /^ac_cv_env_/b end
  3047. t clear
  3048. :clear
  3049. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3050. t end
  3051. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3052. :end' >>confcache
  3053. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3054. if test -w "$cache_file"; then
  3055. if test "x$cache_file" != "x/dev/null"; then
  3056. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3057. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3058. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3059. cat confcache >"$cache_file"
  3060. else
  3061. case $cache_file in #(
  3062. */* | ?:*)
  3063. mv -f confcache "$cache_file"$$ &&
  3064. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3065. *)
  3066. mv -f confcache "$cache_file" ;;
  3067. esac
  3068. fi
  3069. fi
  3070. else
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3072. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3073. fi
  3074. fi
  3075. rm -f confcache
  3076. # Speedup compile
  3077. if test -n "$GXX" && test -z "$no_wall"; then
  3078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wall" >&5
  3079. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3080. if ${egg_cv_var_ccwall+:} false; then :
  3081. $as_echo_n "(cached) " >&6
  3082. else
  3083. ac_old_CXXFLAGS="$CXXFLAGS"
  3084. CXXFLAGS="$CXXFLAGS -Wall"
  3085. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3086. /* end build/confdefs.h. */
  3087. int main ()
  3088. {
  3089. return(0);
  3090. }
  3091. _ACEOF
  3092. if ac_fn_cxx_try_compile "$LINENO"; then :
  3093. egg_cv_var_ccwall="yes"
  3094. else
  3095. egg_cv_var_ccwall="no"
  3096. fi
  3097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3098. CXXFLAGS="$ac_old_CXXFLAGS"
  3099. fi
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccwall" >&5
  3101. $as_echo "$egg_cv_var_ccwall" >&6; }
  3102. if test "$egg_cv_var_ccwall" = "yes"; then
  3103. CXXFLAGS="$CXXFLAGS -Wall"
  3104. fi
  3105. fi
  3106. if test -n "$GXX" && test -z "$no_pipe"; then
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -pipe" >&5
  3108. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3109. if ${egg_cv_var_ccpipe+:} false; then :
  3110. $as_echo_n "(cached) " >&6
  3111. else
  3112. ac_old_CXX="$CXX"
  3113. CXX="$CXX -pipe"
  3114. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3115. /* end build/confdefs.h. */
  3116. int main ()
  3117. {
  3118. return(0);
  3119. }
  3120. _ACEOF
  3121. if ac_fn_cxx_try_compile "$LINENO"; then :
  3122. egg_cv_var_ccpipe="yes"
  3123. else
  3124. egg_cv_var_ccpipe="no"
  3125. fi
  3126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3127. CXX="$ac_old_CXX"
  3128. fi
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccpipe" >&5
  3130. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3131. if test "$egg_cv_var_ccpipe" = "yes"; then
  3132. CXX="$CXX -pipe"
  3133. fi
  3134. fi
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fcolor-diagnostics" >&5
  3136. $as_echo_n "checking whether the compiler understands -fcolor-diagnostics... " >&6; }
  3137. if ${ax_cv_prog_cc_colordiagnostics+:} false; then :
  3138. $as_echo_n "(cached) " >&6
  3139. else
  3140. ac_ext=cpp
  3141. ac_cpp='$CXXCPP $CPPFLAGS'
  3142. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3143. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3144. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3145. ac_saved_flags="$CXXFLAGS"
  3146. CXXFLAGS="-Werror -fcolor-diagnostics"
  3147. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3148. /* end build/confdefs.h. */
  3149. int
  3150. main ()
  3151. {
  3152. ;
  3153. return 0;
  3154. }
  3155. _ACEOF
  3156. if ac_fn_cxx_try_compile "$LINENO"; then :
  3157. ax_cv_prog_cc_colordiagnostics="yes"
  3158. else
  3159. ax_cv_prog_cc_colordiagnostics="no"
  3160. fi
  3161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3162. CXXFLAGS="$ac_saved_flags"
  3163. ac_ext=cpp
  3164. ac_cpp='$CXXCPP $CPPFLAGS'
  3165. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3166. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3167. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3168. fi
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_colordiagnostics" >&5
  3170. $as_echo "$ax_cv_prog_cc_colordiagnostics" >&6; }
  3171. if [ "$ax_cv_prog_cc_colordiagnostics" = "yes" ]; then
  3172. CXXFLAGS="$CXXFLAGS -fcolor-diagnostics"
  3173. elif [ -n "" ]; then
  3174. cat << 'EOF' >&2
  3175. configure: error:
  3176. Your OS or C++ compiler does not support -fcolor-diagnostics.
  3177. This compile flag is required.
  3178. EOF
  3179. exit 1
  3180. fi
  3181. #CXX_FLAG_CHECK([CXXFLAGS], [-Qunused-arguments], [unusedarguments])
  3182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-invalid-source-encoding" >&5
  3183. $as_echo_n "checking whether the compiler understands -Wno-invalid-source-encoding... " >&6; }
  3184. if ${ax_cv_prog_cc_invalid_source_encoding+:} false; then :
  3185. $as_echo_n "(cached) " >&6
  3186. else
  3187. ac_ext=cpp
  3188. ac_cpp='$CXXCPP $CPPFLAGS'
  3189. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3190. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3191. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3192. ac_saved_flags="$CXXFLAGS"
  3193. CXXFLAGS="-Werror -Wno-invalid-source-encoding"
  3194. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3195. /* end build/confdefs.h. */
  3196. int
  3197. main ()
  3198. {
  3199. ;
  3200. return 0;
  3201. }
  3202. _ACEOF
  3203. if ac_fn_cxx_try_compile "$LINENO"; then :
  3204. ax_cv_prog_cc_invalid_source_encoding="yes"
  3205. else
  3206. ax_cv_prog_cc_invalid_source_encoding="no"
  3207. fi
  3208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3209. CXXFLAGS="$ac_saved_flags"
  3210. ac_ext=cpp
  3211. ac_cpp='$CXXCPP $CPPFLAGS'
  3212. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3213. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3214. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3215. fi
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_invalid_source_encoding" >&5
  3217. $as_echo "$ax_cv_prog_cc_invalid_source_encoding" >&6; }
  3218. if [ "$ax_cv_prog_cc_invalid_source_encoding" = "yes" ]; then
  3219. CXXFLAGS="$CXXFLAGS -Wno-invalid-source-encoding"
  3220. elif [ -n "" ]; then
  3221. cat << 'EOF' >&2
  3222. configure: error:
  3223. Your OS or C++ compiler does not support -Wno-invalid-source-encoding.
  3224. This compile flag is required.
  3225. EOF
  3226. exit 1
  3227. fi
  3228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector" >&5
  3229. $as_echo_n "checking whether the compiler understands -fstack-protector... " >&6; }
  3230. if ${ax_cv_prog_cc_stackprotector+:} false; then :
  3231. $as_echo_n "(cached) " >&6
  3232. else
  3233. ac_ext=cpp
  3234. ac_cpp='$CXXCPP $CPPFLAGS'
  3235. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3236. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3237. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3238. ac_saved_flags="$CXXFLAGS"
  3239. CXXFLAGS="-Werror -fstack-protector"
  3240. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3241. /* end build/confdefs.h. */
  3242. int
  3243. main ()
  3244. {
  3245. ;
  3246. return 0;
  3247. }
  3248. _ACEOF
  3249. if ac_fn_cxx_try_compile "$LINENO"; then :
  3250. ax_cv_prog_cc_stackprotector="yes"
  3251. else
  3252. ax_cv_prog_cc_stackprotector="no"
  3253. fi
  3254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3255. CXXFLAGS="$ac_saved_flags"
  3256. ac_ext=cpp
  3257. ac_cpp='$CXXCPP $CPPFLAGS'
  3258. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3259. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3260. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3261. fi
  3262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotector" >&5
  3263. $as_echo "$ax_cv_prog_cc_stackprotector" >&6; }
  3264. if [ "$ax_cv_prog_cc_stackprotector" = "yes" ]; then
  3265. CXXFLAGS="$CXXFLAGS -fstack-protector"
  3266. elif [ -n "" ]; then
  3267. cat << 'EOF' >&2
  3268. configure: error:
  3269. Your OS or C++ compiler does not support -fstack-protector.
  3270. This compile flag is required.
  3271. EOF
  3272. exit 1
  3273. fi
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-strong" >&5
  3275. $as_echo_n "checking whether the compiler understands -fstack-protector-strong... " >&6; }
  3276. if ${ax_cv_prog_cc_stackprotectorstrong+:} false; then :
  3277. $as_echo_n "(cached) " >&6
  3278. else
  3279. ac_ext=cpp
  3280. ac_cpp='$CXXCPP $CPPFLAGS'
  3281. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3282. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3283. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3284. ac_saved_flags="$CXXFLAGS"
  3285. CXXFLAGS="-Werror -fstack-protector-strong"
  3286. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3287. /* end build/confdefs.h. */
  3288. int
  3289. main ()
  3290. {
  3291. ;
  3292. return 0;
  3293. }
  3294. _ACEOF
  3295. if ac_fn_cxx_try_compile "$LINENO"; then :
  3296. ax_cv_prog_cc_stackprotectorstrong="yes"
  3297. else
  3298. ax_cv_prog_cc_stackprotectorstrong="no"
  3299. fi
  3300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3301. CXXFLAGS="$ac_saved_flags"
  3302. ac_ext=cpp
  3303. ac_cpp='$CXXCPP $CPPFLAGS'
  3304. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3305. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3306. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3307. fi
  3308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorstrong" >&5
  3309. $as_echo "$ax_cv_prog_cc_stackprotectorstrong" >&6; }
  3310. if [ "$ax_cv_prog_cc_stackprotectorstrong" = "yes" ]; then
  3311. CXXFLAGS="$CXXFLAGS -fstack-protector-strong"
  3312. elif [ -n "" ]; then
  3313. cat << 'EOF' >&2
  3314. configure: error:
  3315. Your OS or C++ compiler does not support -fstack-protector-strong.
  3316. This compile flag is required.
  3317. EOF
  3318. exit 1
  3319. fi
  3320. if [ "${ax_cv_prog_cc_stackprotectorstrong}" = "yes" ]; then
  3321. LDFLAGS="${LDFLAGS} -fstack-protector-strong"
  3322. elif [ "${ax_cv_prog_cc_stackprotector}" = "yes" ]; then
  3323. LDFLAGS="${LDFLAGS} -fstack-protector"
  3324. fi
  3325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-all" >&5
  3326. $as_echo_n "checking whether the compiler understands -fstack-protector-all... " >&6; }
  3327. if ${ax_cv_prog_cc_stackprotectorall+:} 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-all"
  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_stackprotectorall="yes"
  3348. else
  3349. ax_cv_prog_cc_stackprotectorall="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_stackprotectorall" >&5
  3360. $as_echo "$ax_cv_prog_cc_stackprotectorall" >&6; }
  3361. if [ "$ax_cv_prog_cc_stackprotectorall" = "yes" ]; then
  3362. DEBCXXFLAGS="$DEBCXXFLAGS -fstack-protector-all"
  3363. elif [ -n "" ]; then
  3364. cat << 'EOF' >&2
  3365. configure: error:
  3366. Your OS or C++ compiler does not support -fstack-protector-all.
  3367. This compile flag is required.
  3368. EOF
  3369. exit 1
  3370. fi
  3371. CCDEPMODE=gcc
  3372. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3373. if test $num -ge "3"; then
  3374. CCDEPMODE=gcc3
  3375. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3376. GCC3_CFLAGS="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -fno-strict-aliasing -Wno-format-y2k"
  3377. GCC3_CXXFLAGS="-Woverloaded-virtual"
  3378. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  3379. fi
  3380. #checkpoint
  3381. cat >confcache <<\_ACEOF
  3382. # This file is a shell script that caches the results of configure
  3383. # tests run on this system so they can be shared between configure
  3384. # scripts and configure runs, see configure's option --config-cache.
  3385. # It is not useful on other systems. If it contains results you don't
  3386. # want to keep, you may remove or edit it.
  3387. #
  3388. # build/config.status only pays attention to the cache file if you give it
  3389. # the --recheck option to rerun configure.
  3390. #
  3391. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3392. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3393. # following values.
  3394. _ACEOF
  3395. # The following way of writing the cache mishandles newlines in values,
  3396. # but we know of no workaround that is simple, portable, and efficient.
  3397. # So, we kill variables containing newlines.
  3398. # Ultrix sh set writes to stderr and can't be redirected directly,
  3399. # and sets the high bit in the cache file unless we assign to the vars.
  3400. (
  3401. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3402. eval ac_val=\$$ac_var
  3403. case $ac_val in #(
  3404. *${as_nl}*)
  3405. case $ac_var in #(
  3406. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3407. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3408. esac
  3409. case $ac_var in #(
  3410. _ | IFS | as_nl) ;; #(
  3411. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3412. *) { eval $ac_var=; unset $ac_var;} ;;
  3413. esac ;;
  3414. esac
  3415. done
  3416. (set) 2>&1 |
  3417. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3418. *${as_nl}ac_space=\ *)
  3419. # `set' does not quote correctly, so add quotes: double-quote
  3420. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3421. sed -n \
  3422. "s/'/'\\\\''/g;
  3423. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3424. ;; #(
  3425. *)
  3426. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3427. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3428. ;;
  3429. esac |
  3430. sort
  3431. ) |
  3432. sed '
  3433. /^ac_cv_env_/b end
  3434. t clear
  3435. :clear
  3436. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3437. t end
  3438. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3439. :end' >>confcache
  3440. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3441. if test -w "$cache_file"; then
  3442. if test "x$cache_file" != "x/dev/null"; then
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3444. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3445. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3446. cat confcache >"$cache_file"
  3447. else
  3448. case $cache_file in #(
  3449. */* | ?:*)
  3450. mv -f confcache "$cache_file"$$ &&
  3451. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3452. *)
  3453. mv -f confcache "$cache_file" ;;
  3454. esac
  3455. fi
  3456. fi
  3457. else
  3458. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3459. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3460. fi
  3461. fi
  3462. rm -f confcache
  3463. # Checks for programs
  3464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3465. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3466. set x ${MAKE-make}
  3467. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3468. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3469. $as_echo_n "(cached) " >&6
  3470. else
  3471. cat >conftest.make <<\_ACEOF
  3472. SHELL = /bin/sh
  3473. all:
  3474. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3475. _ACEOF
  3476. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3477. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3478. *@@@%%%=?*=@@@%%%*)
  3479. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3480. *)
  3481. eval ac_cv_prog_make_${ac_make}_set=no;;
  3482. esac
  3483. rm -f conftest.make
  3484. fi
  3485. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3487. $as_echo "yes" >&6; }
  3488. SET_MAKE=
  3489. else
  3490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3491. $as_echo "no" >&6; }
  3492. SET_MAKE="MAKE=${MAKE-make}"
  3493. fi
  3494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3495. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3496. if ${ac_cv_path_SED+:} false; then :
  3497. $as_echo_n "(cached) " >&6
  3498. else
  3499. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3500. for ac_i in 1 2 3 4 5 6 7; do
  3501. ac_script="$ac_script$as_nl$ac_script"
  3502. done
  3503. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3504. { ac_script=; unset ac_script;}
  3505. if test -z "$SED"; then
  3506. ac_path_SED_found=false
  3507. # Loop through the user's path and test for each of PROGNAME-LIST
  3508. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3509. for as_dir in $PATH
  3510. do
  3511. IFS=$as_save_IFS
  3512. test -z "$as_dir" && as_dir=.
  3513. for ac_prog in sed gsed; do
  3514. for ac_exec_ext in '' $ac_executable_extensions; do
  3515. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3516. as_fn_executable_p "$ac_path_SED" || continue
  3517. # Check for GNU ac_path_SED and select it if it is found.
  3518. # Check for GNU $ac_path_SED
  3519. case `"$ac_path_SED" --version 2>&1` in
  3520. *GNU*)
  3521. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3522. *)
  3523. ac_count=0
  3524. $as_echo_n 0123456789 >"conftest.in"
  3525. while :
  3526. do
  3527. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3528. mv "conftest.tmp" "conftest.in"
  3529. cp "conftest.in" "conftest.nl"
  3530. $as_echo '' >> "conftest.nl"
  3531. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3532. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3533. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3534. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3535. # Best one so far, save it but keep looking for a better one
  3536. ac_cv_path_SED="$ac_path_SED"
  3537. ac_path_SED_max=$ac_count
  3538. fi
  3539. # 10*(2^10) chars as input seems more than enough
  3540. test $ac_count -gt 10 && break
  3541. done
  3542. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3543. esac
  3544. $ac_path_SED_found && break 3
  3545. done
  3546. done
  3547. done
  3548. IFS=$as_save_IFS
  3549. if test -z "$ac_cv_path_SED"; then
  3550. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3551. fi
  3552. else
  3553. ac_cv_path_SED=$SED
  3554. fi
  3555. fi
  3556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3557. $as_echo "$ac_cv_path_SED" >&6; }
  3558. SED="$ac_cv_path_SED"
  3559. rm -f conftest.sed
  3560. cat << 'EOF' > conftest.head
  3561. a
  3562. b
  3563. c
  3564. EOF
  3565. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3566. do
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_prog works" >&5
  3568. $as_echo_n "checking whether $ac_prog works... " >&6; }
  3569. if ${ac_cv_prog_HEAD_1+:} false; then :
  3570. $as_echo_n "(cached) " >&6
  3571. else
  3572. if test -n "$HEAD_1"
  3573. then
  3574. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3575. else
  3576. if test "`cat conftest.head | $ac_prog`" = "a";
  3577. then
  3578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3579. $as_echo "yes" >&6; }
  3580. ac_cv_prog_HEAD_1=$ac_prog
  3581. else
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3583. $as_echo "no" >&6; }
  3584. fi
  3585. fi
  3586. fi
  3587. test -n "$ac_cv_prog_HEAD_1" && break
  3588. done
  3589. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3590. then
  3591. cat << 'EOF' >&2
  3592. configure: error:
  3593. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3594. A working 'head -1' (or equivalent) command is required to compile Wraith.
  3595. EOF
  3596. exit 1
  3597. fi
  3598. rm -f conftest.head
  3599. HEAD_1=$ac_cv_prog_HEAD_1
  3600. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3601. for ac_prog in gawk mawk nawk awk
  3602. do
  3603. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3604. set dummy $ac_prog; ac_word=$2
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3606. $as_echo_n "checking for $ac_word... " >&6; }
  3607. if ${ac_cv_prog_AWK+:} false; then :
  3608. $as_echo_n "(cached) " >&6
  3609. else
  3610. if test -n "$AWK"; then
  3611. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3612. else
  3613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3614. for as_dir in $PATH
  3615. do
  3616. IFS=$as_save_IFS
  3617. test -z "$as_dir" && as_dir=.
  3618. for ac_exec_ext in '' $ac_executable_extensions; do
  3619. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3620. ac_cv_prog_AWK="$ac_prog"
  3621. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3622. break 2
  3623. fi
  3624. done
  3625. done
  3626. IFS=$as_save_IFS
  3627. fi
  3628. fi
  3629. AWK=$ac_cv_prog_AWK
  3630. if test -n "$AWK"; then
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3632. $as_echo "$AWK" >&6; }
  3633. else
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3635. $as_echo "no" >&6; }
  3636. fi
  3637. test -n "$AWK" && break
  3638. done
  3639. if test "${AWK-x}" = "x"
  3640. then
  3641. cat << 'EOF' >&2
  3642. configure: error:
  3643. This system seems to lack a working 'awk' command.
  3644. A working 'awk' command is required to compile Wraith.
  3645. EOF
  3646. exit 1
  3647. fi
  3648. # basename is needed for Tcl library and header checks
  3649. # Extract the first word of "basename", so it can be a program name with args.
  3650. set dummy basename; ac_word=$2
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3652. $as_echo_n "checking for $ac_word... " >&6; }
  3653. if ${ac_cv_prog_BASENAME+:} false; then :
  3654. $as_echo_n "(cached) " >&6
  3655. else
  3656. if test -n "$BASENAME"; then
  3657. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3658. else
  3659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3660. for as_dir in $PATH
  3661. do
  3662. IFS=$as_save_IFS
  3663. test -z "$as_dir" && as_dir=.
  3664. for ac_exec_ext in '' $ac_executable_extensions; do
  3665. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3666. ac_cv_prog_BASENAME="basename"
  3667. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3668. break 2
  3669. fi
  3670. done
  3671. done
  3672. IFS=$as_save_IFS
  3673. fi
  3674. fi
  3675. BASENAME=$ac_cv_prog_BASENAME
  3676. if test -n "$BASENAME"; then
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  3678. $as_echo "$BASENAME" >&6; }
  3679. else
  3680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3681. $as_echo "no" >&6; }
  3682. fi
  3683. if test "${BASENAME-x}" = "x"
  3684. then
  3685. cat << 'EOF' >&2
  3686. configure: error:
  3687. This system seems to lack a working 'basename' command.
  3688. A working 'basename' command is required to compile Wraith.
  3689. EOF
  3690. exit 1
  3691. fi
  3692. # Extract the first word of "objcopy", so it can be a program name with args.
  3693. set dummy objcopy; ac_word=$2
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3695. $as_echo_n "checking for $ac_word... " >&6; }
  3696. if ${ac_cv_prog_OBJCOPY+:} false; then :
  3697. $as_echo_n "(cached) " >&6
  3698. else
  3699. if test -n "$OBJCOPY"; then
  3700. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3701. else
  3702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3703. for as_dir in $PATH
  3704. do
  3705. IFS=$as_save_IFS
  3706. test -z "$as_dir" && as_dir=.
  3707. for ac_exec_ext in '' $ac_executable_extensions; do
  3708. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3709. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3711. break 2
  3712. fi
  3713. done
  3714. done
  3715. IFS=$as_save_IFS
  3716. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3717. fi
  3718. fi
  3719. OBJCOPY=$ac_cv_prog_OBJCOPY
  3720. if test -n "$OBJCOPY"; then
  3721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  3722. $as_echo "$OBJCOPY" >&6; }
  3723. else
  3724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3725. $as_echo "no" >&6; }
  3726. fi
  3727. # Extract the first word of "strip", so it can be a program name with args.
  3728. set dummy strip; ac_word=$2
  3729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3730. $as_echo_n "checking for $ac_word... " >&6; }
  3731. if ${ac_cv_prog_STRIP+:} false; then :
  3732. $as_echo_n "(cached) " >&6
  3733. else
  3734. if test -n "$STRIP"; then
  3735. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3736. else
  3737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3738. for as_dir in $PATH
  3739. do
  3740. IFS=$as_save_IFS
  3741. test -z "$as_dir" && as_dir=.
  3742. for ac_exec_ext in '' $ac_executable_extensions; do
  3743. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3744. ac_cv_prog_STRIP="strip"
  3745. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3746. break 2
  3747. fi
  3748. done
  3749. done
  3750. IFS=$as_save_IFS
  3751. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3752. fi
  3753. fi
  3754. STRIP=$ac_cv_prog_STRIP
  3755. if test -n "$STRIP"; then
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3757. $as_echo "$STRIP" >&6; }
  3758. else
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3760. $as_echo "no" >&6; }
  3761. fi
  3762. # Extract the first word of "gdiff", so it can be a program name with args.
  3763. set dummy gdiff; ac_word=$2
  3764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3765. $as_echo_n "checking for $ac_word... " >&6; }
  3766. if ${ac_cv_prog_DIFF+:} false; then :
  3767. $as_echo_n "(cached) " >&6
  3768. else
  3769. if test -n "$DIFF"; then
  3770. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  3771. else
  3772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3773. for as_dir in $PATH
  3774. do
  3775. IFS=$as_save_IFS
  3776. test -z "$as_dir" && as_dir=.
  3777. for ac_exec_ext in '' $ac_executable_extensions; do
  3778. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3779. ac_cv_prog_DIFF="gdiff"
  3780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3781. break 2
  3782. fi
  3783. done
  3784. done
  3785. IFS=$as_save_IFS
  3786. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  3787. fi
  3788. fi
  3789. DIFF=$ac_cv_prog_DIFF
  3790. if test -n "$DIFF"; then
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
  3792. $as_echo "$DIFF" >&6; }
  3793. else
  3794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3795. $as_echo "no" >&6; }
  3796. fi
  3797. # Extract the first word of "uname", so it can be a program name with args.
  3798. set dummy uname; ac_word=$2
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3800. $as_echo_n "checking for $ac_word... " >&6; }
  3801. if ${ac_cv_prog_UNAME+:} false; then :
  3802. $as_echo_n "(cached) " >&6
  3803. else
  3804. if test -n "$UNAME"; then
  3805. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3806. else
  3807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3808. for as_dir in $PATH
  3809. do
  3810. IFS=$as_save_IFS
  3811. test -z "$as_dir" && as_dir=.
  3812. for ac_exec_ext in '' $ac_executable_extensions; do
  3813. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3814. ac_cv_prog_UNAME="uname"
  3815. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3816. break 2
  3817. fi
  3818. done
  3819. done
  3820. IFS=$as_save_IFS
  3821. fi
  3822. fi
  3823. UNAME=$ac_cv_prog_UNAME
  3824. if test -n "$UNAME"; then
  3825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  3826. $as_echo "$UNAME" >&6; }
  3827. else
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3829. $as_echo "no" >&6; }
  3830. fi
  3831. # Test the os and set the module linking settings
  3832. USE_STATIC=yes
  3833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system type" >&5
  3834. $as_echo_n "checking system type... " >&6; }
  3835. if ${egg_cv_var_system_type+:} false; then :
  3836. $as_echo_n "(cached) " >&6
  3837. else
  3838. egg_cv_var_system_type=`$UNAME -s`
  3839. fi
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_type" >&5
  3841. $as_echo "$egg_cv_var_system_type" >&6; }
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system release" >&5
  3843. $as_echo_n "checking system release... " >&6; }
  3844. if ${egg_cv_var_system_release+:} false; then :
  3845. $as_echo_n "(cached) " >&6
  3846. else
  3847. egg_cv_var_system_release=`$UNAME -r`
  3848. fi
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_release" >&5
  3850. $as_echo "$egg_cv_var_system_release" >&6; }
  3851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system machine" >&5
  3852. $as_echo_n "checking system machine... " >&6; }
  3853. if ${egg_cv_var_system_machine+:} false; then :
  3854. $as_echo_n "(cached) " >&6
  3855. else
  3856. egg_cv_var_system_machine=`$UNAME -m`
  3857. fi
  3858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_machine" >&5
  3859. $as_echo "$egg_cv_var_system_machine" >&6; }
  3860. BUILDOS="$egg_cv_var_system_type"
  3861. BUILDARCH="$egg_cv_var_system_machine"
  3862. USE_GENERIC_I486="yes"
  3863. case "$egg_cv_var_system_type" in
  3864. BSD/OS)
  3865. ;;
  3866. IRIX)
  3867. ;;
  3868. HP-UX)
  3869. $as_echo "#define MD32_XARRAY 1" >>build/confdefs.h
  3870. ;;
  3871. Ultrix)
  3872. SHELL=/bin/sh5
  3873. ;;
  3874. SINIX*)
  3875. ;;
  3876. BeOS)
  3877. ;;
  3878. Linux)
  3879. ;;
  3880. Lynx)
  3881. ;;
  3882. QNX)
  3883. ;;
  3884. OSF1)
  3885. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3886. V*)
  3887. if test "$AWK" = "gawk"
  3888. then
  3889. AWK=awk
  3890. fi
  3891. ;;
  3892. 1.0|1.1|1.2)
  3893. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  3894. ;;
  3895. 1.*)
  3896. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  3897. ;;
  3898. *)
  3899. ;;
  3900. esac
  3901. $as_echo "#define STOP_UAC 1" >>build/confdefs.h
  3902. $as_echo "#define BROKEN_SNPRINTF 1" >>build/confdefs.h
  3903. ;;
  3904. SunOS)
  3905. SUNOS="yes"
  3906. USE_STATIC="no"
  3907. ;;
  3908. Darwin)
  3909. USE_STATIC="no"
  3910. USE_GENERIC_I486="no"
  3911. ;;
  3912. *BSD)
  3913. # FreeBSD/OpenBSD/NetBSD
  3914. ;;
  3915. *)
  3916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is Mach based" >&5
  3917. $as_echo_n "checking if system is Mach based... " >&6; }
  3918. if test -r /mach
  3919. then
  3920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3921. $as_echo "yes" >&6; }
  3922. $as_echo "#define BORGCUBES 1" >>build/confdefs.h
  3923. else
  3924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3925. $as_echo "no" >&6; }
  3926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is QNX" >&5
  3927. $as_echo_n "checking if system is QNX... " >&6; }
  3928. if test -r /cmds
  3929. then
  3930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3931. $as_echo "yes" >&6; }
  3932. else
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3934. $as_echo "no" >&6; }
  3935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Something unknown!" >&5
  3936. $as_echo "Something unknown!" >&6; }
  3937. fi
  3938. fi
  3939. ;;
  3940. esac
  3941. case "$egg_cv_var_system_machine" in
  3942. i*)
  3943. if test "$USE_GENERIC_I486" = "yes"; then
  3944. CXX="$CXX -march=i486"
  3945. BUILDARCH="i486"
  3946. fi
  3947. ;;
  3948. *)
  3949. ;;
  3950. esac
  3951. # Check for IPv6 support
  3952. #EGG_IPV6_SUPPORTED
  3953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether IPv6 is enabled" >&5
  3954. $as_echo_n "checking whether IPv6 is enabled... " >&6; }
  3955. # Check whether --enable-ipv6 was given.
  3956. if test "${enable_ipv6+set}" = set; then :
  3957. enableval=$enable_ipv6;
  3958. enable_ipv6=$enableval
  3959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  3960. $as_echo "$enableval" >&6; }
  3961. else
  3962. # default if not given is ENABLED
  3963. if test "x$enableval" = "x"; then
  3964. enableval="yes"
  3965. fi
  3966. enable_ipv6=$enableval
  3967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  3968. $as_echo "$enableval" >&6; }
  3969. $as_echo "#define USE_IPV6 1" >>build/confdefs.h
  3970. fi
  3971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  3972. $as_echo_n "checking for socklen_t... " >&6; }
  3973. if ${egg_cv_socklen_t+:} false; then :
  3974. $as_echo_n "(cached) " >&6
  3975. else
  3976. if test "$cross_compiling" = yes; then :
  3977. egg_cv_socklen_t=no
  3978. else
  3979. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3980. /* end build/confdefs.h. */
  3981. #include <unistd.h>
  3982. #include <sys/types.h>
  3983. #include <sys/socket.h>
  3984. #include <netinet/in.h>
  3985. #include <arpa/inet.h>
  3986. int main()
  3987. {
  3988. socklen_t test = sizeof(int);
  3989. return 0;
  3990. }
  3991. _ACEOF
  3992. if ac_fn_cxx_try_run "$LINENO"; then :
  3993. egg_cv_socklen_t=yes
  3994. else
  3995. egg_cv_socklen_t=no
  3996. fi
  3997. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3998. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3999. fi
  4000. fi
  4001. if test "$egg_cv_socklen_t" = "yes"; then
  4002. $as_echo "#define HAVE_SOCKLEN_T 1" >>build/confdefs.h
  4003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4004. $as_echo "yes" >&6; }
  4005. else
  4006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4007. $as_echo "no" >&6; }
  4008. fi
  4009. # Check for inconsistent random() functions
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random limit" >&5
  4011. $as_echo_n "checking for random limit... " >&6; }
  4012. case "$egg_cv_var_system_type" in
  4013. SunOS) RMAX=0x7FFFFFFF
  4014. ;;
  4015. *) RMAX=RAND_MAX
  4016. ;;
  4017. esac
  4018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMAX" >&5
  4019. $as_echo "$RMAX" >&6; }
  4020. cat >>build/confdefs.h <<_ACEOF
  4021. #define RANDOM_MAX $RMAX
  4022. _ACEOF
  4023. # Create static binaries
  4024. if test "$USE_STATIC" = "yes"
  4025. then
  4026. if test -n "$GXX"
  4027. then
  4028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
  4029. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  4030. if ${egg_cv_var_ccstatic+:} false; then :
  4031. $as_echo_n "(cached) " >&6
  4032. else
  4033. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4034. /* end build/confdefs.h. */
  4035. int
  4036. main ()
  4037. {
  4038. ;
  4039. return 0;
  4040. }
  4041. _ACEOF
  4042. if ac_fn_cxx_try_compile "$LINENO"; then :
  4043. egg_cv_var_ccstatic="yes"
  4044. else
  4045. egg_cv_var_ccstatic="no"
  4046. fi
  4047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4048. fi
  4049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccstatic" >&5
  4050. $as_echo "$egg_cv_var_ccstatic" >&6; }
  4051. if ! test "$egg_cv_var_ccstatic" = "yes"
  4052. then
  4053. cat << 'EOF' >&2
  4054. configure: error:
  4055. Your OS or C++ compiler does not support -static.
  4056. This compile flag is required for the botpack on this OS.
  4057. EOF
  4058. exit 1
  4059. fi
  4060. fi
  4061. STATIC="-static"
  4062. else
  4063. STATIC=""
  4064. fi
  4065. #checkpoint
  4066. cat >confcache <<\_ACEOF
  4067. # This file is a shell script that caches the results of configure
  4068. # tests run on this system so they can be shared between configure
  4069. # scripts and configure runs, see configure's option --config-cache.
  4070. # It is not useful on other systems. If it contains results you don't
  4071. # want to keep, you may remove or edit it.
  4072. #
  4073. # build/config.status only pays attention to the cache file if you give it
  4074. # the --recheck option to rerun configure.
  4075. #
  4076. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4077. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4078. # following values.
  4079. _ACEOF
  4080. # The following way of writing the cache mishandles newlines in values,
  4081. # but we know of no workaround that is simple, portable, and efficient.
  4082. # So, we kill variables containing newlines.
  4083. # Ultrix sh set writes to stderr and can't be redirected directly,
  4084. # and sets the high bit in the cache file unless we assign to the vars.
  4085. (
  4086. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4087. eval ac_val=\$$ac_var
  4088. case $ac_val in #(
  4089. *${as_nl}*)
  4090. case $ac_var in #(
  4091. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4092. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4093. esac
  4094. case $ac_var in #(
  4095. _ | IFS | as_nl) ;; #(
  4096. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4097. *) { eval $ac_var=; unset $ac_var;} ;;
  4098. esac ;;
  4099. esac
  4100. done
  4101. (set) 2>&1 |
  4102. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4103. *${as_nl}ac_space=\ *)
  4104. # `set' does not quote correctly, so add quotes: double-quote
  4105. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4106. sed -n \
  4107. "s/'/'\\\\''/g;
  4108. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4109. ;; #(
  4110. *)
  4111. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4112. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4113. ;;
  4114. esac |
  4115. sort
  4116. ) |
  4117. sed '
  4118. /^ac_cv_env_/b end
  4119. t clear
  4120. :clear
  4121. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4122. t end
  4123. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4124. :end' >>confcache
  4125. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4126. if test -w "$cache_file"; then
  4127. if test "x$cache_file" != "x/dev/null"; then
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4129. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4130. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4131. cat confcache >"$cache_file"
  4132. else
  4133. case $cache_file in #(
  4134. */* | ?:*)
  4135. mv -f confcache "$cache_file"$$ &&
  4136. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4137. *)
  4138. mv -f confcache "$cache_file" ;;
  4139. esac
  4140. fi
  4141. fi
  4142. else
  4143. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4144. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4145. fi
  4146. fi
  4147. rm -f confcache
  4148. # Checks for system libraries
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  4150. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4151. if ${ac_cv_lib_socket_socket+:} false; then :
  4152. $as_echo_n "(cached) " >&6
  4153. else
  4154. ac_check_lib_save_LIBS=$LIBS
  4155. LIBS="-lsocket $LIBS"
  4156. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4157. /* end build/confdefs.h. */
  4158. /* Override any GCC internal prototype to avoid an error.
  4159. Use char because int might match the return type of a GCC
  4160. builtin and then its argument prototype would still apply. */
  4161. #ifdef __cplusplus
  4162. extern "C"
  4163. #endif
  4164. char socket ();
  4165. int
  4166. main ()
  4167. {
  4168. return socket ();
  4169. ;
  4170. return 0;
  4171. }
  4172. _ACEOF
  4173. if ac_fn_cxx_try_link "$LINENO"; then :
  4174. ac_cv_lib_socket_socket=yes
  4175. else
  4176. ac_cv_lib_socket_socket=no
  4177. fi
  4178. rm -f core conftest.err conftest.$ac_objext \
  4179. conftest$ac_exeext conftest.$ac_ext
  4180. LIBS=$ac_check_lib_save_LIBS
  4181. fi
  4182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  4183. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4184. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  4185. cat >>build/confdefs.h <<_ACEOF
  4186. #define HAVE_LIBSOCKET 1
  4187. _ACEOF
  4188. LIBS="-lsocket $LIBS"
  4189. fi
  4190. # AC_CHECK_LIB(nsl, connect)
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  4192. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  4193. if ${ac_cv_lib_dl_dlopen+:} false; then :
  4194. $as_echo_n "(cached) " >&6
  4195. else
  4196. ac_check_lib_save_LIBS=$LIBS
  4197. LIBS="-ldl $LIBS"
  4198. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4199. /* end build/confdefs.h. */
  4200. /* Override any GCC internal prototype to avoid an error.
  4201. Use char because int might match the return type of a GCC
  4202. builtin and then its argument prototype would still apply. */
  4203. #ifdef __cplusplus
  4204. extern "C"
  4205. #endif
  4206. char dlopen ();
  4207. int
  4208. main ()
  4209. {
  4210. return dlopen ();
  4211. ;
  4212. return 0;
  4213. }
  4214. _ACEOF
  4215. if ac_fn_cxx_try_link "$LINENO"; then :
  4216. ac_cv_lib_dl_dlopen=yes
  4217. else
  4218. ac_cv_lib_dl_dlopen=no
  4219. fi
  4220. rm -f core conftest.err conftest.$ac_objext \
  4221. conftest$ac_exeext conftest.$ac_ext
  4222. LIBS=$ac_check_lib_save_LIBS
  4223. fi
  4224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  4225. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  4226. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  4227. cat >>build/confdefs.h <<_ACEOF
  4228. #define HAVE_LIBDL 1
  4229. _ACEOF
  4230. LIBS="-ldl $LIBS"
  4231. fi
  4232. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4233. # This is needed for Tcl libraries compiled with thread support
  4234. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4235. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4236. # ac_cv_lib_pthread="-lpthread"], [dnl
  4237. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4238. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4239. # ac_cv_lib_pthread="-lpthread"], [dnl
  4240. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4241. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4242. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4243. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4244. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4245. # ac_cv_lib_pthread=""],
  4246. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4247. if test "$SUNOS" = "yes"; then
  4248. # For suns without yp
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  4250. $as_echo_n "checking for main in -ldl... " >&6; }
  4251. if ${ac_cv_lib_dl_main+:} false; then :
  4252. $as_echo_n "(cached) " >&6
  4253. else
  4254. ac_check_lib_save_LIBS=$LIBS
  4255. LIBS="-ldl $LIBS"
  4256. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4257. /* end build/confdefs.h. */
  4258. int
  4259. main ()
  4260. {
  4261. return main ();
  4262. ;
  4263. return 0;
  4264. }
  4265. _ACEOF
  4266. if ac_fn_cxx_try_link "$LINENO"; then :
  4267. ac_cv_lib_dl_main=yes
  4268. else
  4269. ac_cv_lib_dl_main=no
  4270. fi
  4271. rm -f core conftest.err conftest.$ac_objext \
  4272. conftest$ac_exeext conftest.$ac_ext
  4273. LIBS=$ac_check_lib_save_LIBS
  4274. fi
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  4276. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4277. if test "x$ac_cv_lib_dl_main" = xyes; then :
  4278. cat >>build/confdefs.h <<_ACEOF
  4279. #define HAVE_LIBDL 1
  4280. _ACEOF
  4281. LIBS="-ldl $LIBS"
  4282. fi
  4283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  4284. $as_echo_n "checking for main in -lsocket... " >&6; }
  4285. if ${ac_cv_lib_socket_main+:} false; then :
  4286. $as_echo_n "(cached) " >&6
  4287. else
  4288. ac_check_lib_save_LIBS=$LIBS
  4289. LIBS="-lsocket $LIBS"
  4290. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4291. /* end build/confdefs.h. */
  4292. int
  4293. main ()
  4294. {
  4295. return main ();
  4296. ;
  4297. return 0;
  4298. }
  4299. _ACEOF
  4300. if ac_fn_cxx_try_link "$LINENO"; then :
  4301. ac_cv_lib_socket_main=yes
  4302. else
  4303. ac_cv_lib_socket_main=no
  4304. fi
  4305. rm -f core conftest.err conftest.$ac_objext \
  4306. conftest$ac_exeext conftest.$ac_ext
  4307. LIBS=$ac_check_lib_save_LIBS
  4308. fi
  4309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  4310. $as_echo "$ac_cv_lib_socket_main" >&6; }
  4311. if test "x$ac_cv_lib_socket_main" = xyes; then :
  4312. cat >>build/confdefs.h <<_ACEOF
  4313. #define HAVE_LIBSOCKET 1
  4314. _ACEOF
  4315. LIBS="-lsocket $LIBS"
  4316. fi
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  4318. $as_echo_n "checking for main in -lnsl... " >&6; }
  4319. if ${ac_cv_lib_nsl_main+:} false; then :
  4320. $as_echo_n "(cached) " >&6
  4321. else
  4322. ac_check_lib_save_LIBS=$LIBS
  4323. LIBS="-lnsl $LIBS"
  4324. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4325. /* end build/confdefs.h. */
  4326. int
  4327. main ()
  4328. {
  4329. return main ();
  4330. ;
  4331. return 0;
  4332. }
  4333. _ACEOF
  4334. if ac_fn_cxx_try_link "$LINENO"; then :
  4335. ac_cv_lib_nsl_main=yes
  4336. else
  4337. ac_cv_lib_nsl_main=no
  4338. fi
  4339. rm -f core conftest.err conftest.$ac_objext \
  4340. conftest$ac_exeext conftest.$ac_ext
  4341. LIBS=$ac_check_lib_save_LIBS
  4342. fi
  4343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  4344. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4345. if test "x$ac_cv_lib_nsl_main" = xyes; then :
  4346. cat >>build/confdefs.h <<_ACEOF
  4347. #define HAVE_LIBNSL 1
  4348. _ACEOF
  4349. LIBS="-lnsl $LIBS"
  4350. fi
  4351. fi
  4352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4353. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4354. if ${ac_cv_path_GREP+:} false; then :
  4355. $as_echo_n "(cached) " >&6
  4356. else
  4357. if test -z "$GREP"; then
  4358. ac_path_GREP_found=false
  4359. # Loop through the user's path and test for each of PROGNAME-LIST
  4360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4361. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4362. do
  4363. IFS=$as_save_IFS
  4364. test -z "$as_dir" && as_dir=.
  4365. for ac_prog in grep ggrep; do
  4366. for ac_exec_ext in '' $ac_executable_extensions; do
  4367. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4368. as_fn_executable_p "$ac_path_GREP" || continue
  4369. # Check for GNU ac_path_GREP and select it if it is found.
  4370. # Check for GNU $ac_path_GREP
  4371. case `"$ac_path_GREP" --version 2>&1` in
  4372. *GNU*)
  4373. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4374. *)
  4375. ac_count=0
  4376. $as_echo_n 0123456789 >"conftest.in"
  4377. while :
  4378. do
  4379. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4380. mv "conftest.tmp" "conftest.in"
  4381. cp "conftest.in" "conftest.nl"
  4382. $as_echo 'GREP' >> "conftest.nl"
  4383. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4384. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4385. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4386. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4387. # Best one so far, save it but keep looking for a better one
  4388. ac_cv_path_GREP="$ac_path_GREP"
  4389. ac_path_GREP_max=$ac_count
  4390. fi
  4391. # 10*(2^10) chars as input seems more than enough
  4392. test $ac_count -gt 10 && break
  4393. done
  4394. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4395. esac
  4396. $ac_path_GREP_found && break 3
  4397. done
  4398. done
  4399. done
  4400. IFS=$as_save_IFS
  4401. if test -z "$ac_cv_path_GREP"; then
  4402. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4403. fi
  4404. else
  4405. ac_cv_path_GREP=$GREP
  4406. fi
  4407. fi
  4408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4409. $as_echo "$ac_cv_path_GREP" >&6; }
  4410. GREP="$ac_cv_path_GREP"
  4411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4412. $as_echo_n "checking for egrep... " >&6; }
  4413. if ${ac_cv_path_EGREP+:} false; then :
  4414. $as_echo_n "(cached) " >&6
  4415. else
  4416. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4417. then ac_cv_path_EGREP="$GREP -E"
  4418. else
  4419. if test -z "$EGREP"; then
  4420. ac_path_EGREP_found=false
  4421. # Loop through the user's path and test for each of PROGNAME-LIST
  4422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4423. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4424. do
  4425. IFS=$as_save_IFS
  4426. test -z "$as_dir" && as_dir=.
  4427. for ac_prog in egrep; do
  4428. for ac_exec_ext in '' $ac_executable_extensions; do
  4429. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4430. as_fn_executable_p "$ac_path_EGREP" || continue
  4431. # Check for GNU ac_path_EGREP and select it if it is found.
  4432. # Check for GNU $ac_path_EGREP
  4433. case `"$ac_path_EGREP" --version 2>&1` in
  4434. *GNU*)
  4435. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4436. *)
  4437. ac_count=0
  4438. $as_echo_n 0123456789 >"conftest.in"
  4439. while :
  4440. do
  4441. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4442. mv "conftest.tmp" "conftest.in"
  4443. cp "conftest.in" "conftest.nl"
  4444. $as_echo 'EGREP' >> "conftest.nl"
  4445. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4446. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4447. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4448. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4449. # Best one so far, save it but keep looking for a better one
  4450. ac_cv_path_EGREP="$ac_path_EGREP"
  4451. ac_path_EGREP_max=$ac_count
  4452. fi
  4453. # 10*(2^10) chars as input seems more than enough
  4454. test $ac_count -gt 10 && break
  4455. done
  4456. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4457. esac
  4458. $ac_path_EGREP_found && break 3
  4459. done
  4460. done
  4461. done
  4462. IFS=$as_save_IFS
  4463. if test -z "$ac_cv_path_EGREP"; then
  4464. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4465. fi
  4466. else
  4467. ac_cv_path_EGREP=$EGREP
  4468. fi
  4469. fi
  4470. fi
  4471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4472. $as_echo "$ac_cv_path_EGREP" >&6; }
  4473. EGREP="$ac_cv_path_EGREP"
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4475. $as_echo_n "checking for ANSI C header files... " >&6; }
  4476. if ${ac_cv_header_stdc+:} false; then :
  4477. $as_echo_n "(cached) " >&6
  4478. else
  4479. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4480. /* end build/confdefs.h. */
  4481. #include <stdlib.h>
  4482. #include <stdarg.h>
  4483. #include <string.h>
  4484. #include <float.h>
  4485. int
  4486. main ()
  4487. {
  4488. ;
  4489. return 0;
  4490. }
  4491. _ACEOF
  4492. if ac_fn_cxx_try_compile "$LINENO"; then :
  4493. ac_cv_header_stdc=yes
  4494. else
  4495. ac_cv_header_stdc=no
  4496. fi
  4497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4498. if test $ac_cv_header_stdc = yes; then
  4499. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4500. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4501. /* end build/confdefs.h. */
  4502. #include <string.h>
  4503. _ACEOF
  4504. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4505. $EGREP "memchr" >/dev/null 2>&1; then :
  4506. else
  4507. ac_cv_header_stdc=no
  4508. fi
  4509. rm -f conftest*
  4510. fi
  4511. if test $ac_cv_header_stdc = yes; then
  4512. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4513. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4514. /* end build/confdefs.h. */
  4515. #include <stdlib.h>
  4516. _ACEOF
  4517. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4518. $EGREP "free" >/dev/null 2>&1; then :
  4519. else
  4520. ac_cv_header_stdc=no
  4521. fi
  4522. rm -f conftest*
  4523. fi
  4524. if test $ac_cv_header_stdc = yes; then
  4525. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4526. if test "$cross_compiling" = yes; then :
  4527. :
  4528. else
  4529. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4530. /* end build/confdefs.h. */
  4531. #include <ctype.h>
  4532. #include <stdlib.h>
  4533. #if ((' ' & 0x0FF) == 0x020)
  4534. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4535. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4536. #else
  4537. # define ISLOWER(c) \
  4538. (('a' <= (c) && (c) <= 'i') \
  4539. || ('j' <= (c) && (c) <= 'r') \
  4540. || ('s' <= (c) && (c) <= 'z'))
  4541. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4542. #endif
  4543. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4544. int
  4545. main ()
  4546. {
  4547. int i;
  4548. for (i = 0; i < 256; i++)
  4549. if (XOR (islower (i), ISLOWER (i))
  4550. || toupper (i) != TOUPPER (i))
  4551. return 2;
  4552. return 0;
  4553. }
  4554. _ACEOF
  4555. if ac_fn_cxx_try_run "$LINENO"; then :
  4556. else
  4557. ac_cv_header_stdc=no
  4558. fi
  4559. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4560. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4561. fi
  4562. fi
  4563. fi
  4564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4565. $as_echo "$ac_cv_header_stdc" >&6; }
  4566. if test $ac_cv_header_stdc = yes; then
  4567. $as_echo "#define STDC_HEADERS 1" >>build/confdefs.h
  4568. fi
  4569. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4570. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4571. inttypes.h stdint.h unistd.h
  4572. do :
  4573. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4574. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4575. "
  4576. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4577. cat >>build/confdefs.h <<_ACEOF
  4578. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4579. _ACEOF
  4580. fi
  4581. done
  4582. LIBELF_DIR="\$(top_srcdir)/lib/libelf/lib"
  4583. LIBELF_LIB="${LIBELF_DIR}/libelf.a"
  4584. LIBELF_BUNDLED="${LIBELF_LIB}"
  4585. LIBELF_INCLUDE="-I${LIBELF_DIR}"
  4586. for ac_header in gelf.h libelf.h
  4587. do :
  4588. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4589. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4590. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4591. cat >>build/confdefs.h <<_ACEOF
  4592. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4593. _ACEOF
  4594. ac_fn_cxx_check_type "$LINENO" "Elf_Note" "ac_cv_type_Elf_Note" "
  4595. #include \"gelf.h\"
  4596. #include \"libelf.h\"
  4597. "
  4598. if test "x$ac_cv_type_Elf_Note" = xyes; then :
  4599. cat >>build/confdefs.h <<_ACEOF
  4600. #define HAVE_ELF_NOTE 1
  4601. _ACEOF
  4602. $as_echo "#define HAVE_GELF_H 1" >>build/confdefs.h
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gelf_getehdr in -lelf" >&5
  4604. $as_echo_n "checking for gelf_getehdr in -lelf... " >&6; }
  4605. if ${ac_cv_lib_elf_gelf_getehdr+:} false; then :
  4606. $as_echo_n "(cached) " >&6
  4607. else
  4608. ac_check_lib_save_LIBS=$LIBS
  4609. LIBS="-lelf $LIBS"
  4610. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4611. /* end build/confdefs.h. */
  4612. /* Override any GCC internal prototype to avoid an error.
  4613. Use char because int might match the return type of a GCC
  4614. builtin and then its argument prototype would still apply. */
  4615. #ifdef __cplusplus
  4616. extern "C"
  4617. #endif
  4618. char gelf_getehdr ();
  4619. int
  4620. main ()
  4621. {
  4622. return gelf_getehdr ();
  4623. ;
  4624. return 0;
  4625. }
  4626. _ACEOF
  4627. if ac_fn_cxx_try_link "$LINENO"; then :
  4628. ac_cv_lib_elf_gelf_getehdr=yes
  4629. else
  4630. ac_cv_lib_elf_gelf_getehdr=no
  4631. fi
  4632. rm -f core conftest.err conftest.$ac_objext \
  4633. conftest$ac_exeext conftest.$ac_ext
  4634. LIBS=$ac_check_lib_save_LIBS
  4635. fi
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_gelf_getehdr" >&5
  4637. $as_echo "$ac_cv_lib_elf_gelf_getehdr" >&6; }
  4638. if test "x$ac_cv_lib_elf_gelf_getehdr" = xyes; then :
  4639. $as_echo "#define HAVE_LIBELF 1" >>build/confdefs.h
  4640. LIBELF_LIB="-Wl,-Bstatic -lelf -Wl,-Bdynamic"
  4641. LIBELF_BUNDLED=
  4642. LIBELF_INCLUDE=
  4643. fi
  4644. fi
  4645. fi
  4646. done
  4647. CPPFLAGS="${CPPFLAGS} ${LIBELF_INCLUDE}"
  4648. # Checks for header files
  4649. ac_header_dirent=no
  4650. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4651. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  4653. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  4654. if eval \${$as_ac_Header+:} false; then :
  4655. $as_echo_n "(cached) " >&6
  4656. else
  4657. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4658. /* end build/confdefs.h. */
  4659. #include <sys/types.h>
  4660. #include <$ac_hdr>
  4661. int
  4662. main ()
  4663. {
  4664. if ((DIR *) 0)
  4665. return 0;
  4666. ;
  4667. return 0;
  4668. }
  4669. _ACEOF
  4670. if ac_fn_cxx_try_compile "$LINENO"; then :
  4671. eval "$as_ac_Header=yes"
  4672. else
  4673. eval "$as_ac_Header=no"
  4674. fi
  4675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4676. fi
  4677. eval ac_res=\$$as_ac_Header
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  4679. $as_echo "$ac_res" >&6; }
  4680. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4681. cat >>build/confdefs.h <<_ACEOF
  4682. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4683. _ACEOF
  4684. ac_header_dirent=$ac_hdr; break
  4685. fi
  4686. done
  4687. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4688. if test $ac_header_dirent = dirent.h; then
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4690. $as_echo_n "checking for library containing opendir... " >&6; }
  4691. if ${ac_cv_search_opendir+:} false; then :
  4692. $as_echo_n "(cached) " >&6
  4693. else
  4694. ac_func_search_save_LIBS=$LIBS
  4695. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4696. /* end build/confdefs.h. */
  4697. /* Override any GCC internal prototype to avoid an error.
  4698. Use char because int might match the return type of a GCC
  4699. builtin and then its argument prototype would still apply. */
  4700. #ifdef __cplusplus
  4701. extern "C"
  4702. #endif
  4703. char opendir ();
  4704. int
  4705. main ()
  4706. {
  4707. return opendir ();
  4708. ;
  4709. return 0;
  4710. }
  4711. _ACEOF
  4712. for ac_lib in '' dir; do
  4713. if test -z "$ac_lib"; then
  4714. ac_res="none required"
  4715. else
  4716. ac_res=-l$ac_lib
  4717. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4718. fi
  4719. if ac_fn_cxx_try_link "$LINENO"; then :
  4720. ac_cv_search_opendir=$ac_res
  4721. fi
  4722. rm -f core conftest.err conftest.$ac_objext \
  4723. conftest$ac_exeext
  4724. if ${ac_cv_search_opendir+:} false; then :
  4725. break
  4726. fi
  4727. done
  4728. if ${ac_cv_search_opendir+:} false; then :
  4729. else
  4730. ac_cv_search_opendir=no
  4731. fi
  4732. rm conftest.$ac_ext
  4733. LIBS=$ac_func_search_save_LIBS
  4734. fi
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4736. $as_echo "$ac_cv_search_opendir" >&6; }
  4737. ac_res=$ac_cv_search_opendir
  4738. if test "$ac_res" != no; then :
  4739. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4740. fi
  4741. else
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4743. $as_echo_n "checking for library containing opendir... " >&6; }
  4744. if ${ac_cv_search_opendir+:} false; then :
  4745. $as_echo_n "(cached) " >&6
  4746. else
  4747. ac_func_search_save_LIBS=$LIBS
  4748. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4749. /* end build/confdefs.h. */
  4750. /* Override any GCC internal prototype to avoid an error.
  4751. Use char because int might match the return type of a GCC
  4752. builtin and then its argument prototype would still apply. */
  4753. #ifdef __cplusplus
  4754. extern "C"
  4755. #endif
  4756. char opendir ();
  4757. int
  4758. main ()
  4759. {
  4760. return opendir ();
  4761. ;
  4762. return 0;
  4763. }
  4764. _ACEOF
  4765. for ac_lib in '' x; do
  4766. if test -z "$ac_lib"; then
  4767. ac_res="none required"
  4768. else
  4769. ac_res=-l$ac_lib
  4770. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4771. fi
  4772. if ac_fn_cxx_try_link "$LINENO"; then :
  4773. ac_cv_search_opendir=$ac_res
  4774. fi
  4775. rm -f core conftest.err conftest.$ac_objext \
  4776. conftest$ac_exeext
  4777. if ${ac_cv_search_opendir+:} false; then :
  4778. break
  4779. fi
  4780. done
  4781. if ${ac_cv_search_opendir+:} false; then :
  4782. else
  4783. ac_cv_search_opendir=no
  4784. fi
  4785. rm conftest.$ac_ext
  4786. LIBS=$ac_func_search_save_LIBS
  4787. fi
  4788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4789. $as_echo "$ac_cv_search_opendir" >&6; }
  4790. ac_res=$ac_cv_search_opendir
  4791. if test "$ac_res" != no; then :
  4792. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4793. fi
  4794. fi
  4795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4796. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4797. if ${ac_cv_header_sys_wait_h+:} false; then :
  4798. $as_echo_n "(cached) " >&6
  4799. else
  4800. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4801. /* end build/confdefs.h. */
  4802. #include <sys/types.h>
  4803. #include <sys/wait.h>
  4804. #ifndef WEXITSTATUS
  4805. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4806. #endif
  4807. #ifndef WIFEXITED
  4808. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4809. #endif
  4810. int
  4811. main ()
  4812. {
  4813. int s;
  4814. wait (&s);
  4815. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4816. ;
  4817. return 0;
  4818. }
  4819. _ACEOF
  4820. if ac_fn_cxx_try_compile "$LINENO"; then :
  4821. ac_cv_header_sys_wait_h=yes
  4822. else
  4823. ac_cv_header_sys_wait_h=no
  4824. fi
  4825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4826. fi
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  4828. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4829. if test $ac_cv_header_sys_wait_h = yes; then
  4830. $as_echo "#define HAVE_SYS_WAIT_H 1" >>build/confdefs.h
  4831. fi
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  4833. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4834. if ${ac_cv_header_time+:} false; then :
  4835. $as_echo_n "(cached) " >&6
  4836. else
  4837. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4838. /* end build/confdefs.h. */
  4839. #include <sys/types.h>
  4840. #include <sys/time.h>
  4841. #include <time.h>
  4842. int
  4843. main ()
  4844. {
  4845. if ((struct tm *) 0)
  4846. return 0;
  4847. ;
  4848. return 0;
  4849. }
  4850. _ACEOF
  4851. if ac_fn_cxx_try_compile "$LINENO"; then :
  4852. ac_cv_header_time=yes
  4853. else
  4854. ac_cv_header_time=no
  4855. fi
  4856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4857. fi
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  4859. $as_echo "$ac_cv_header_time" >&6; }
  4860. if test $ac_cv_header_time = yes; then
  4861. $as_echo "#define TIME_WITH_SYS_TIME 1" >>build/confdefs.h
  4862. fi
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  4864. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  4865. if ${ac_cv_header_stat_broken+:} false; then :
  4866. $as_echo_n "(cached) " >&6
  4867. else
  4868. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4869. /* end build/confdefs.h. */
  4870. #include <sys/types.h>
  4871. #include <sys/stat.h>
  4872. #if defined S_ISBLK && defined S_IFDIR
  4873. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  4874. #endif
  4875. #if defined S_ISBLK && defined S_IFCHR
  4876. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  4877. #endif
  4878. #if defined S_ISLNK && defined S_IFREG
  4879. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  4880. #endif
  4881. #if defined S_ISSOCK && defined S_IFREG
  4882. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  4883. #endif
  4884. _ACEOF
  4885. if ac_fn_cxx_try_compile "$LINENO"; then :
  4886. ac_cv_header_stat_broken=no
  4887. else
  4888. ac_cv_header_stat_broken=yes
  4889. fi
  4890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4891. fi
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  4893. $as_echo "$ac_cv_header_stat_broken" >&6; }
  4894. if test $ac_cv_header_stat_broken = yes; then
  4895. $as_echo "#define STAT_MACROS_BROKEN 1" >>build/confdefs.h
  4896. fi
  4897. #checkpoint
  4898. cat >confcache <<\_ACEOF
  4899. # This file is a shell script that caches the results of configure
  4900. # tests run on this system so they can be shared between configure
  4901. # scripts and configure runs, see configure's option --config-cache.
  4902. # It is not useful on other systems. If it contains results you don't
  4903. # want to keep, you may remove or edit it.
  4904. #
  4905. # build/config.status only pays attention to the cache file if you give it
  4906. # the --recheck option to rerun configure.
  4907. #
  4908. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4909. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4910. # following values.
  4911. _ACEOF
  4912. # The following way of writing the cache mishandles newlines in values,
  4913. # but we know of no workaround that is simple, portable, and efficient.
  4914. # So, we kill variables containing newlines.
  4915. # Ultrix sh set writes to stderr and can't be redirected directly,
  4916. # and sets the high bit in the cache file unless we assign to the vars.
  4917. (
  4918. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4919. eval ac_val=\$$ac_var
  4920. case $ac_val in #(
  4921. *${as_nl}*)
  4922. case $ac_var in #(
  4923. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4924. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4925. esac
  4926. case $ac_var in #(
  4927. _ | IFS | as_nl) ;; #(
  4928. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4929. *) { eval $ac_var=; unset $ac_var;} ;;
  4930. esac ;;
  4931. esac
  4932. done
  4933. (set) 2>&1 |
  4934. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4935. *${as_nl}ac_space=\ *)
  4936. # `set' does not quote correctly, so add quotes: double-quote
  4937. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4938. sed -n \
  4939. "s/'/'\\\\''/g;
  4940. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4941. ;; #(
  4942. *)
  4943. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4944. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4945. ;;
  4946. esac |
  4947. sort
  4948. ) |
  4949. sed '
  4950. /^ac_cv_env_/b end
  4951. t clear
  4952. :clear
  4953. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4954. t end
  4955. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4956. :end' >>confcache
  4957. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4958. if test -w "$cache_file"; then
  4959. if test "x$cache_file" != "x/dev/null"; then
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4961. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4962. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4963. cat confcache >"$cache_file"
  4964. else
  4965. case $cache_file in #(
  4966. */* | ?:*)
  4967. mv -f confcache "$cache_file"$$ &&
  4968. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4969. *)
  4970. mv -f confcache "$cache_file" ;;
  4971. esac
  4972. fi
  4973. fi
  4974. else
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4976. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4977. fi
  4978. fi
  4979. rm -f confcache
  4980. for ac_header in stdarg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4981. do :
  4982. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4983. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4984. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4985. cat >>build/confdefs.h <<_ACEOF
  4986. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4987. _ACEOF
  4988. fi
  4989. done
  4990. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h sys/prctl.h
  4991. do :
  4992. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4993. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4994. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4995. cat >>build/confdefs.h <<_ACEOF
  4996. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4997. _ACEOF
  4998. fi
  4999. done
  5000. #checkpoint
  5001. cat >confcache <<\_ACEOF
  5002. # This file is a shell script that caches the results of configure
  5003. # tests run on this system so they can be shared between configure
  5004. # scripts and configure runs, see configure's option --config-cache.
  5005. # It is not useful on other systems. If it contains results you don't
  5006. # want to keep, you may remove or edit it.
  5007. #
  5008. # build/config.status only pays attention to the cache file if you give it
  5009. # the --recheck option to rerun configure.
  5010. #
  5011. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5012. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5013. # following values.
  5014. _ACEOF
  5015. # The following way of writing the cache mishandles newlines in values,
  5016. # but we know of no workaround that is simple, portable, and efficient.
  5017. # So, we kill variables containing newlines.
  5018. # Ultrix sh set writes to stderr and can't be redirected directly,
  5019. # and sets the high bit in the cache file unless we assign to the vars.
  5020. (
  5021. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5022. eval ac_val=\$$ac_var
  5023. case $ac_val in #(
  5024. *${as_nl}*)
  5025. case $ac_var in #(
  5026. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5027. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5028. esac
  5029. case $ac_var in #(
  5030. _ | IFS | as_nl) ;; #(
  5031. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5032. *) { eval $ac_var=; unset $ac_var;} ;;
  5033. esac ;;
  5034. esac
  5035. done
  5036. (set) 2>&1 |
  5037. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5038. *${as_nl}ac_space=\ *)
  5039. # `set' does not quote correctly, so add quotes: double-quote
  5040. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5041. sed -n \
  5042. "s/'/'\\\\''/g;
  5043. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5044. ;; #(
  5045. *)
  5046. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5047. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5048. ;;
  5049. esac |
  5050. sort
  5051. ) |
  5052. sed '
  5053. /^ac_cv_env_/b end
  5054. t clear
  5055. :clear
  5056. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5057. t end
  5058. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5059. :end' >>confcache
  5060. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5061. if test -w "$cache_file"; then
  5062. if test "x$cache_file" != "x/dev/null"; then
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5064. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5065. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5066. cat confcache >"$cache_file"
  5067. else
  5068. case $cache_file in #(
  5069. */* | ?:*)
  5070. mv -f confcache "$cache_file"$$ &&
  5071. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5072. *)
  5073. mv -f confcache "$cache_file" ;;
  5074. esac
  5075. fi
  5076. fi
  5077. else
  5078. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5079. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5080. fi
  5081. fi
  5082. rm -f confcache
  5083. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5084. #AC_CHECK_HEADERS(zlib.h)
  5085. #EGG_CHECK_ZLIB
  5086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
  5087. $as_echo_n "checking for path to OpenSSL... " >&6; }
  5088. # Check whether --with-openssl was given.
  5089. if test "${with_openssl+set}" = set; then :
  5090. withval=$with_openssl; with_openssl_path=$withval
  5091. else
  5092. with_openssl_path=auto
  5093. fi
  5094. cf_openssl_basedir=""
  5095. if test "$with_openssl_path" != "auto"; then
  5096. cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`"
  5097. else
  5098. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  5099. if test -f "${dirs}/include/openssl/opensslv.h" && test -f "${dirs}/lib/libssl.so"; then
  5100. cf_openssl_basedir="${dirs}"
  5101. break
  5102. fi
  5103. done
  5104. unset dirs
  5105. fi
  5106. if test ! -z "$cf_openssl_basedir"; then
  5107. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
  5108. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  5109. SSL_LIBS="-L${cf_openssl_basedir}/lib"
  5110. else
  5111. cf_openssl_basedir=""
  5112. fi
  5113. else
  5114. if test -f "/usr/include/openssl/opensslv.h" ; then
  5115. cf_openssl_basedir="/usr"
  5116. fi
  5117. fi
  5118. if test ! -z "$cf_openssl_basedir"; then
  5119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
  5120. $as_echo "$cf_openssl_basedir" >&6; }
  5121. else
  5122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5123. $as_echo "not found" >&6; }
  5124. as_fn_error 1 "OpenSSL is required." "$LINENO" 5
  5125. fi
  5126. unset cf_openssl_basedir
  5127. save_CXX="$CXX"
  5128. CXX="$CXX $SSL_INCLUDES"
  5129. save_LIBS="$LIBS"
  5130. LIBS="$LIBS $SSL_LIBS"
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
  5132. $as_echo_n "checking for OpenSSL version... " >&6; }
  5133. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5134. /* end build/confdefs.h. */
  5135. #include <openssl/opensslv.h>
  5136. int
  5137. main ()
  5138. {
  5139. #if !defined(OPENSSL_VERSION_NUMBER)
  5140. #error "Missing openssl version"
  5141. #endif
  5142. #if (OPENSSL_VERSION_NUMBER < 0x0090800f)
  5143. #error "Old/Insecure OpenSSL version " OPENSSL_VERSION_TEXT
  5144. #endif
  5145. ;
  5146. return 0;
  5147. }
  5148. _ACEOF
  5149. if ac_fn_cxx_try_compile "$LINENO"; then :
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  5151. $as_echo "OK" >&6; }
  5152. else
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old." >&5
  5154. $as_echo "too old." >&6; }
  5155. as_fn_error 1 "OpenSSL version is too old. Must be 0.9.8f+" "$LINENO" 5
  5156. fi
  5157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5158. CXX="$CXX $SSL_LIBS"
  5159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5
  5160. $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
  5161. if ${ac_cv_lib_crypto_AES_encrypt+:} false; then :
  5162. $as_echo_n "(cached) " >&6
  5163. else
  5164. ac_check_lib_save_LIBS=$LIBS
  5165. LIBS="-lcrypto $LIBS"
  5166. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5167. /* end build/confdefs.h. */
  5168. /* Override any GCC internal prototype to avoid an error.
  5169. Use char because int might match the return type of a GCC
  5170. builtin and then its argument prototype would still apply. */
  5171. #ifdef __cplusplus
  5172. extern "C"
  5173. #endif
  5174. char AES_encrypt ();
  5175. int
  5176. main ()
  5177. {
  5178. return AES_encrypt ();
  5179. ;
  5180. return 0;
  5181. }
  5182. _ACEOF
  5183. if ac_fn_cxx_try_link "$LINENO"; then :
  5184. ac_cv_lib_crypto_AES_encrypt=yes
  5185. else
  5186. ac_cv_lib_crypto_AES_encrypt=no
  5187. fi
  5188. rm -f core conftest.err conftest.$ac_objext \
  5189. conftest$ac_exeext conftest.$ac_ext
  5190. LIBS=$ac_check_lib_save_LIBS
  5191. fi
  5192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  5193. $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  5194. if test "x$ac_cv_lib_crypto_AES_encrypt" = xyes; then :
  5195. if test "$USE_STATIC" = "yes"; then
  5196. SSL_LIBS="$SSL_LIBS -Wl,-Bstatic -lcrypto -Wl,-Bdynamic"
  5197. else
  5198. SSL_LIBS="$SSL_LIBS -lcrypto"
  5199. fi
  5200. else
  5201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  5202. $as_echo "not found." >&6; }
  5203. as_fn_error 1 "Libcrypto/openssl is required." "$LINENO" 5
  5204. fi
  5205. CXX="$save_CXX"
  5206. LIBS="$save_LIBS"
  5207. cat >>build/confdefs.h <<_ACEOF
  5208. #define EGG_SSL_EXT 1
  5209. _ACEOF
  5210. # TCL checks
  5211. # Tcl version to recommend if no Tcl is found, and the site where it can be
  5212. # found for download.
  5213. tclrecommendver="8.5.X"
  5214. tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_5/"
  5215. # Tcl library filename prefixes, suffixes, and search paths.
  5216. tcllibnames="tcl8.6 tcl86 tcl8.5 tcl85 tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 \
  5217. tcl8.1 tcl81 tcl8.0 tcl80 tcl tcl7.6 tcl76 tcl7.5 tcl75 \
  5218. tcl7.4 tcl74 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 \
  5219. tcl7.0 tcl70"
  5220. tcllibextensions=".so .so.1 .so.1.0 .so.1.1 .so.1.2 .dll .dylib .sl .a"
  5221. tcllibpaths="$HOME/lib $HOME/tcl/lib \
  5222. /usr/local/lib /usr/lib /lib /lib64 /usr/lib64 \
  5223. /usr/local/lib/tcl8.6 /usr/lib/tcl8.6 \
  5224. /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
  5225. /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 \
  5226. /usr/local/lib/tcl8.3 /usr/lib/tcl8.3 \
  5227. /usr/local/pkgs/tcl/lib /sys/lib /usr/pkg/lib \
  5228. /usr/i486-linuxaout/lib /beos/system/lib $HOME"
  5229. # Tcl header filenames and search paths.
  5230. tclheadernames="tcl.h"
  5231. tclheaderpaths="$HOME/include $HOME/tcl/include \
  5232. /usr/local/include /usr/include \
  5233. /usr/local/include/tcl8.6 /usr/include/tcl8.6 \
  5234. /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
  5235. /usr/local/include/tcl8.4 /usr/include/tcl8.4 \
  5236. /usr/local/include/tcl8.3 /usr/include/tcl8.3 \
  5237. /usr/local/pkgs/tcl/include /sys/include \
  5238. /usr/pkg/lib /beos/system/include /beos/devel/include $HOME"
  5239. # Misc Tcl checks.
  5240. # Check whether --with-tcllib was given.
  5241. if test "${with_tcllib+set}" = set; then :
  5242. withval=$with_tcllib; tcllibname="$withval"
  5243. fi
  5244. # Check whether --with-tclinc was given.
  5245. if test "${with_tclinc+set}" = set; then :
  5246. withval=$with_tclinc; tclincname="$withval"
  5247. fi
  5248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCL Script is enabled" >&5
  5249. $as_echo_n "checking whether TCL Script is enabled... " >&6; }
  5250. # Check whether --enable-script-tcl was given.
  5251. if test "${enable_script_tcl+set}" = set; then :
  5252. enableval=$enable_script_tcl;
  5253. enable_script_tcl=$enableval
  5254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5255. $as_echo "$enableval" >&6; }
  5256. else
  5257. # default if not given is ENABLED
  5258. if test "x$enableval" = "x"; then
  5259. enableval="yes"
  5260. fi
  5261. enable_script_tcl=$enableval
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5263. $as_echo "$enableval" >&6; }
  5264. $as_echo "#define USE_SCRIPT_TCL 1" >>build/confdefs.h
  5265. fi
  5266. WARN=0
  5267. # Make sure either both or neither $tcllibname and $tclincname are set
  5268. if test "x$tcllibname" != x; then
  5269. if test "x$tclincname" = x; then
  5270. WARN=1
  5271. tcllibname=""
  5272. TCLLIB=""
  5273. TCLINC=""
  5274. fi
  5275. else
  5276. if test "x$tclincname" != x; then
  5277. WARN=1
  5278. tclincname=""
  5279. TCLLIB=""
  5280. TCLINC=""
  5281. fi
  5282. fi
  5283. if test "$WARN" = 1; then
  5284. cat << 'EOF' >&2
  5285. configure: WARNING:
  5286. You must specify both --with-tcllib and --with-tclinc for either to work.
  5287. configure will now attempt to autodetect both the Tcl library and header.
  5288. EOF
  5289. fi
  5290. WARN=0
  5291. # Make sure either both or neither $TCLLIB and $TCLINC are set
  5292. if test "x$TCLLIB" != x; then
  5293. if test "x$TCLINC" = x; then
  5294. WARN=1
  5295. WVAR1=TCLLIB
  5296. WVAR2=TCLINC
  5297. TCLLIB=""
  5298. fi
  5299. else
  5300. if test "x$TCLINC" != x; then
  5301. WARN=1
  5302. WVAR1=TCLINC
  5303. WVAR2=TCLLIB
  5304. TCLINC=""
  5305. fi
  5306. fi
  5307. if test "$WARN" = 1; then
  5308. cat << EOF >&2
  5309. configure: WARNING:
  5310. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  5311. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5312. configure will now attempt to autodetect both the Tcl library and header.
  5313. EOF
  5314. fi
  5315. # Look for Tcl library: if $tcllibname is set, check there first
  5316. if test "x$tcllibname" != x; then
  5317. if test -f "$tcllibname" && test -r "$tcllibname"; then
  5318. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  5319. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  5320. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  5321. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  5322. else
  5323. cat << EOF >&2
  5324. configure: WARNING:
  5325. The file '$tcllibname' given to option --with-tcllib is not valid.
  5326. configure will now attempt to autodetect both the Tcl library and header.
  5327. EOF
  5328. tcllibname=""
  5329. tclincname=""
  5330. TCLLIB=""
  5331. TCLLIBFN=""
  5332. TCLINC=""
  5333. TCLINCFN=""
  5334. fi
  5335. fi
  5336. # Look for Tcl header: if $tclincname is set, check there first
  5337. if test "x$tclincname" != x; then
  5338. if test -f "$tclincname" && test -r "$tclincname"; then
  5339. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  5340. TCLINCFN=`$BASENAME $tclincname`
  5341. else
  5342. cat << EOF >&2
  5343. configure: WARNING:
  5344. The file '$tclincname' given to option --with-tclinc is not valid.
  5345. configure will now attempt to autodetect both the Tcl library and header.
  5346. EOF
  5347. tcllibname=""
  5348. tclincname=""
  5349. TCLLIB=""
  5350. TCLLIBFN=""
  5351. TCLINC=""
  5352. TCLINCFN=""
  5353. fi
  5354. fi
  5355. # Look for Tcl library: if $TCLLIB is set, check there first
  5356. if test "x$TCLLIBFN" = x && test "x$TCLLIB" != x; then
  5357. if test -d "$TCLLIB"; then
  5358. for tcllibfns in $tcllibnames; do
  5359. for tcllibext in $tcllibextensions; do
  5360. if test -r "${TCLLIB}/lib${tcllibfns}${tcllibext}"; then
  5361. TCLLIBFN="${tcllibfns}${tcllibext}"
  5362. TCLLIBEXT="$tcllibext"
  5363. TCLLIBFNS="$tcllibfns"
  5364. break 2
  5365. fi
  5366. done
  5367. done
  5368. fi
  5369. if test "x$TCLLIBFN" = x; then
  5370. cat << 'EOF' >&2
  5371. configure: WARNING:
  5372. Environment variable TCLLIB was set, but incorrectly.
  5373. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5374. configure will now attempt to autodetect both the Tcl library and header.
  5375. EOF
  5376. TCLLIB=""
  5377. TCLLIBFN=""
  5378. TCLINC=""
  5379. TCLINCFN=""
  5380. fi
  5381. fi
  5382. # Look for Tcl header: if $TCLINC is set, check there first
  5383. if test "x$TCLINCFN" = x && test "x$TCLINC" != x; then
  5384. if test -d "$TCLINC"; then
  5385. for tclheaderfn in $tclheadernames; do
  5386. if test -r "${TCLINC}/${tclheaderfn}"; then
  5387. TCLINCFN="$tclheaderfn"
  5388. break
  5389. fi
  5390. done
  5391. fi
  5392. if test "x$TCLINCFN" = x; then
  5393. cat << 'EOF' >&2
  5394. configure: WARNING:
  5395. Environment variable TCLINC was set, but incorrectly.
  5396. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5397. configure will now attempt to autodetect both the Tcl library and header.
  5398. EOF
  5399. TCLLIB=""
  5400. TCLLIBFN=""
  5401. TCLINC=""
  5402. TCLINCFN=""
  5403. fi
  5404. fi
  5405. if test "$enable_script_tcl" = "yes"; then
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library" >&5
  5407. $as_echo_n "checking for Tcl library... " >&6; }
  5408. # Attempt autodetect for $TCLLIBFN if it's not set
  5409. if test "x$TCLLIBFN" != x; then
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLLIB}/lib${TCLLIBFN}" >&5
  5411. $as_echo "using ${TCLLIB}/lib${TCLLIBFN}" >&6; }
  5412. else
  5413. for tcllibfns in $tcllibnames; do
  5414. for tcllibext in $tcllibextensions; do
  5415. for tcllibpath in $tcllibpaths; do
  5416. if test -r "${tcllibpath}/lib${tcllibfns}${tcllibext}"; then
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&5
  5418. $as_echo "found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&6; }
  5419. TCLLIB="$tcllibpath"
  5420. TCLLIBFN="${tcllibfns}${tcllibext}"
  5421. TCLLIBEXT="$tcllibext"
  5422. TCLLIBFNS="$tcllibfns"
  5423. break 3
  5424. fi
  5425. done
  5426. done
  5427. done
  5428. fi
  5429. # Show if $TCLLIBFN wasn't found
  5430. if test "x$TCLLIBFN" = x; then
  5431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5432. $as_echo "not found" >&6; }
  5433. fi
  5434. fi
  5435. if test "$enable_script_tcl" = "yes"; then
  5436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl header" >&5
  5437. $as_echo_n "checking for Tcl header... " >&6; }
  5438. # Attempt autodetect for $TCLINCFN if it's not set
  5439. if test "x$TCLINCFN" != x; then
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLINC}/${TCLINCFN}" >&5
  5441. $as_echo "using ${TCLINC}/${TCLINCFN}" >&6; }
  5442. else
  5443. for tclheaderpath in $tclheaderpaths; do
  5444. for tclheaderfn in $tclheadernames; do
  5445. if test -r "${tclheaderpath}/${tclheaderfn}"; then
  5446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tclheaderfn}" >&5
  5447. $as_echo "found ${tclheaderpath}/${tclheaderfn}" >&6; }
  5448. TCLINC="$tclheaderpath"
  5449. TCLINCFN="$tclheaderfn"
  5450. break 2
  5451. fi
  5452. done
  5453. done
  5454. # FreeBSD hack ...
  5455. if test "x$TCLINCFN" = x; then
  5456. for tcllibfns in $tcllibnames; do
  5457. for tclheaderpath in $tclheaderpaths; do
  5458. for tclheaderfn in $tclheadernames; do
  5459. if test -r "${tclheaderpath}/${tcllibfns}/${tclheaderfn}"; then
  5460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&5
  5461. $as_echo "found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&6; }
  5462. TCLINC="${tclheaderpath}/${tcllibfns}"
  5463. TCLINCFN="$tclheaderfn"
  5464. break 3
  5465. fi
  5466. done
  5467. done
  5468. done
  5469. fi
  5470. fi
  5471. TCL_INCLUDES=""
  5472. if ! test "x$TCLINC" = x; then
  5473. TCL_INCLUDES="-I$TCLINC"
  5474. fi
  5475. if test "x$TCLINCFN" = x; then
  5476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5477. $as_echo "not found" >&6; }
  5478. fi
  5479. fi
  5480. if test "$enable_script_tcl" = "yes"; then
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Tcl system has changed" >&5
  5482. $as_echo_n "checking whether the Tcl system has changed... " >&6; }
  5483. egg_tcl_changed="yes"
  5484. egg_tcl_id="${TCLLIB}:${TCLLIBFN}:${TCLINC}:${TCLINCFN}"
  5485. if test "$egg_tcl_id" != ":::"; then
  5486. egg_tcl_cached="yes"
  5487. if ${egg_cv_var_tcl_id+:} false; then :
  5488. $as_echo_n "(cached) " >&6
  5489. else
  5490. egg_cv_var_tcl_id="$egg_tcl_id"
  5491. egg_tcl_cached="no"
  5492. fi
  5493. if test "$egg_tcl_cached" = yes; then
  5494. if test "x$egg_cv_var_tcl_id" = "x$egg_tcl_id"; then
  5495. egg_tcl_changed="no"
  5496. else
  5497. egg_cv_var_tcl_id="$egg_tcl_id"
  5498. fi
  5499. fi
  5500. fi
  5501. if test "$egg_tcl_changed" = yes; then
  5502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5503. $as_echo "yes" >&6; }
  5504. else
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5506. $as_echo "no" >&6; }
  5507. fi
  5508. fi
  5509. if test "$enable_script_tcl" = "yes"; then
  5510. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  5511. TCL_FOUND=0
  5512. if test "x$TCLLIBFN" != x && test "x$TCLINCFN" != x; then
  5513. TCL_FOUND=1
  5514. # Check Tcl's version
  5515. if test "$egg_tcl_changed" = yes; then
  5516. unset egg_cv_var_tcl_version
  5517. fi
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl version" >&5
  5519. $as_echo_n "checking for Tcl version... " >&6; }
  5520. if ${egg_cv_var_tcl_version+:} false; then :
  5521. $as_echo_n "(cached) " >&6
  5522. else
  5523. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  5524. fi
  5525. if test "x$egg_cv_var_tcl_version" != x; then
  5526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_version" >&5
  5527. $as_echo "$egg_cv_var_tcl_version" >&6; }
  5528. else
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5530. $as_echo "not found" >&6; }
  5531. TCL_FOUND=0
  5532. fi
  5533. # Check Tcl's patch level (if available)
  5534. if test "$egg_tcl_changed" = yes; then
  5535. unset egg_cv_var_tcl_patch_level
  5536. fi
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl patch level" >&5
  5538. $as_echo_n "checking for Tcl patch level... " >&6; }
  5539. if ${egg_cv_var_tcl_patch_level+:} false; then :
  5540. $as_echo_n "(cached) " >&6
  5541. else
  5542. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  5543. fi
  5544. if test "x$egg_cv_var_tcl_patch_level" != x; then
  5545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_patch_level" >&5
  5546. $as_echo "$egg_cv_var_tcl_patch_level" >&6; }
  5547. else
  5548. egg_cv_var_tcl_patch_level="unknown"
  5549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  5550. $as_echo "unknown" >&6; }
  5551. fi
  5552. fi
  5553. # Check if we found Tcl's version
  5554. if test "$TCL_FOUND" = 0; then
  5555. cat << 'EOF' >&2
  5556. configure: error:
  5557. Tcl cannot be found on this system.
  5558. Tcl is not required. Wraith will be compiled without TCL support. If you
  5559. already have Tcl installed on this system, please specify the path by
  5560. rerunning ./configure using the --with-tcllib='/path/to/libtcl.so' and
  5561. --with-tclinc='/path/to/tcl.h' options.
  5562. EOF
  5563. enable_script_tcl="no"
  5564. else
  5565. $as_echo "#define HAVE_LIBTCL 1" >>build/confdefs.h
  5566. fi
  5567. fi
  5568. if test "$enable_script_tcl" = "yes"; then
  5569. # Is this version of Tcl too old for us to use ?
  5570. TCL_VER_PRE70=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 7) print "yes"; else print "no"}'`
  5571. if test "$TCL_VER_PRE70" = yes; then
  5572. cat << EOF >&2
  5573. configure: error:
  5574. Your Tcl version is much too old for Wraith to use. You should
  5575. download and compile a more recent version. The most reliable
  5576. current version is $tclrecommendver and can be downloaded from
  5577. ${tclrecommendsite}.
  5578. See doc/COMPILE-GUIDE's 'Tcl Detection and Installation' section
  5579. for more information.
  5580. EOF
  5581. exit 1
  5582. fi
  5583. fi
  5584. # Set variables for Tcl library tests
  5585. TCL_TEST_LIB="$TCLLIBFNS"
  5586. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  5587. if test "x$ac_cv_lib_pthread" != x; then
  5588. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  5589. fi
  5590. if test "$enable_script_tcl" = "yes"; then
  5591. if test "$egg_tcl_changed" = yes; then
  5592. unset egg_cv_var_tcl_free
  5593. fi
  5594. # Check for Tcl_Free()
  5595. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  5597. $as_echo_n "checking for Tcl_Free in -l$TCL_TEST_LIB... " >&6; }
  5598. if eval \${$as_ac_Lib+:} false; then :
  5599. $as_echo_n "(cached) " >&6
  5600. else
  5601. ac_check_lib_save_LIBS=$LIBS
  5602. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  5603. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5604. /* end build/confdefs.h. */
  5605. /* Override any GCC internal prototype to avoid an error.
  5606. Use char because int might match the return type of a GCC
  5607. builtin and then its argument prototype would still apply. */
  5608. #ifdef __cplusplus
  5609. extern "C"
  5610. #endif
  5611. char Tcl_Free ();
  5612. int
  5613. main ()
  5614. {
  5615. return Tcl_Free ();
  5616. ;
  5617. return 0;
  5618. }
  5619. _ACEOF
  5620. if ac_fn_cxx_try_link "$LINENO"; then :
  5621. eval "$as_ac_Lib=yes"
  5622. else
  5623. eval "$as_ac_Lib=no"
  5624. fi
  5625. rm -f core conftest.err conftest.$ac_objext \
  5626. conftest$ac_exeext conftest.$ac_ext
  5627. LIBS=$ac_check_lib_save_LIBS
  5628. fi
  5629. eval ac_res=\$$as_ac_Lib
  5630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5631. $as_echo "$ac_res" >&6; }
  5632. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  5633. egg_cv_var_tcl_free="yes"
  5634. else
  5635. egg_cv_var_tcl_free="no"
  5636. fi
  5637. if test "$egg_cv_var_tcl_free" = yes; then
  5638. $as_echo "#define HAVE_TCL_FREE 1" >>build/confdefs.h
  5639. fi
  5640. fi
  5641. #EGG_TCL_CHECK_GETCURRENTTHREAD
  5642. #EGG_TCL_CHECK_GETTHREADDATA
  5643. if test "$enable_script_tcl" = "yes"; then
  5644. if test "$egg_tcl_changed" = yes; then
  5645. unset egg_cv_var_tcl_setnotifier
  5646. fi
  5647. # Check for Tcl_SetNotifier()
  5648. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_SetNotifier" | $as_tr_sh`
  5649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_SetNotifier in -l$TCL_TEST_LIB" >&5
  5650. $as_echo_n "checking for Tcl_SetNotifier in -l$TCL_TEST_LIB... " >&6; }
  5651. if eval \${$as_ac_Lib+:} false; then :
  5652. $as_echo_n "(cached) " >&6
  5653. else
  5654. ac_check_lib_save_LIBS=$LIBS
  5655. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  5656. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5657. /* end build/confdefs.h. */
  5658. /* Override any GCC internal prototype to avoid an error.
  5659. Use char because int might match the return type of a GCC
  5660. builtin and then its argument prototype would still apply. */
  5661. #ifdef __cplusplus
  5662. extern "C"
  5663. #endif
  5664. char Tcl_SetNotifier ();
  5665. int
  5666. main ()
  5667. {
  5668. return Tcl_SetNotifier ();
  5669. ;
  5670. return 0;
  5671. }
  5672. _ACEOF
  5673. if ac_fn_cxx_try_link "$LINENO"; then :
  5674. eval "$as_ac_Lib=yes"
  5675. else
  5676. eval "$as_ac_Lib=no"
  5677. fi
  5678. rm -f core conftest.err conftest.$ac_objext \
  5679. conftest$ac_exeext conftest.$ac_ext
  5680. LIBS=$ac_check_lib_save_LIBS
  5681. fi
  5682. eval ac_res=\$$as_ac_Lib
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5684. $as_echo "$ac_res" >&6; }
  5685. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  5686. egg_cv_var_tcl_setnotifier="yes"
  5687. else
  5688. egg_cv_var_tcl_setnotifier="no"
  5689. fi
  5690. if test "$egg_cv_var_tcl_setnotifier" = yes; then
  5691. $as_echo "#define HAVE_TCL_SETNOTIFIER 1" >>build/confdefs.h
  5692. fi
  5693. fi
  5694. if test "$enable_script_tcl" = "yes"; then
  5695. if test "$EGG_CYGWIN" = yes; then
  5696. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5697. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5698. else
  5699. if test "$TCLLIBEXT" != ".a"; then
  5700. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5701. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5702. else
  5703. # Set default make as static for unshared Tcl library
  5704. if test "$DEFAULT_MAKE" != static; then
  5705. cat << 'EOF' >&2
  5706. configure: WARNING:
  5707. Your Tcl library is not a shared lib.
  5708. configure will now set default make type to static.
  5709. EOF
  5710. DEFAULT_MAKE="static"
  5711. fi
  5712. # Are we using a pre 7.4 Tcl version ?
  5713. 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"}'`
  5714. if test "$TCL_VER_PRE74" = no; then
  5715. # Was the --with-tcllib option given ?
  5716. if test "x$tcllibname" != x; then
  5717. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5718. TCL_LIBS="${TCLLIB}/lib${TCLLIBFN} $EGG_MATH_LIB"
  5719. else
  5720. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5721. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5722. fi
  5723. else
  5724. cat << EOF >&2
  5725. configure: WARNING:
  5726. Your Tcl version ($egg_cv_var_tcl_version) is older than 7.4.
  5727. There are known problems, but we will attempt to work around them.
  5728. EOF
  5729. TCL_REQS="libtcle.a"
  5730. TCL_LIBS="-L`pwd` -ltcle $EGG_MATH_LIB"
  5731. fi
  5732. fi
  5733. fi
  5734. fi
  5735. cat >confcache <<\_ACEOF
  5736. # This file is a shell script that caches the results of configure
  5737. # tests run on this system so they can be shared between configure
  5738. # scripts and configure runs, see configure's option --config-cache.
  5739. # It is not useful on other systems. If it contains results you don't
  5740. # want to keep, you may remove or edit it.
  5741. #
  5742. # build/config.status only pays attention to the cache file if you give it
  5743. # the --recheck option to rerun configure.
  5744. #
  5745. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5746. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5747. # following values.
  5748. _ACEOF
  5749. # The following way of writing the cache mishandles newlines in values,
  5750. # but we know of no workaround that is simple, portable, and efficient.
  5751. # So, we kill variables containing newlines.
  5752. # Ultrix sh set writes to stderr and can't be redirected directly,
  5753. # and sets the high bit in the cache file unless we assign to the vars.
  5754. (
  5755. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5756. eval ac_val=\$$ac_var
  5757. case $ac_val in #(
  5758. *${as_nl}*)
  5759. case $ac_var in #(
  5760. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5761. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5762. esac
  5763. case $ac_var in #(
  5764. _ | IFS | as_nl) ;; #(
  5765. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5766. *) { eval $ac_var=; unset $ac_var;} ;;
  5767. esac ;;
  5768. esac
  5769. done
  5770. (set) 2>&1 |
  5771. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5772. *${as_nl}ac_space=\ *)
  5773. # `set' does not quote correctly, so add quotes: double-quote
  5774. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5775. sed -n \
  5776. "s/'/'\\\\''/g;
  5777. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5778. ;; #(
  5779. *)
  5780. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5781. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5782. ;;
  5783. esac |
  5784. sort
  5785. ) |
  5786. sed '
  5787. /^ac_cv_env_/b end
  5788. t clear
  5789. :clear
  5790. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5791. t end
  5792. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5793. :end' >>confcache
  5794. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5795. if test -w "$cache_file"; then
  5796. if test "x$cache_file" != "x/dev/null"; then
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5798. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5799. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5800. cat confcache >"$cache_file"
  5801. else
  5802. case $cache_file in #(
  5803. */* | ?:*)
  5804. mv -f confcache "$cache_file"$$ &&
  5805. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5806. *)
  5807. mv -f confcache "$cache_file" ;;
  5808. esac
  5809. fi
  5810. fi
  5811. else
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5813. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5814. fi
  5815. fi
  5816. rm -f confcache
  5817. #AC_SUBST(ZLIB)dnl
  5818. # Checks for typedefs, structures, and compiler characteristics
  5819. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  5820. if test "x$ac_cv_type_pid_t" = xyes; then :
  5821. else
  5822. cat >>build/confdefs.h <<_ACEOF
  5823. #define pid_t int
  5824. _ACEOF
  5825. fi
  5826. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  5827. if test "x$ac_cv_type_size_t" = xyes; then :
  5828. else
  5829. cat >>build/confdefs.h <<_ACEOF
  5830. #define size_t unsigned int
  5831. _ACEOF
  5832. fi
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  5834. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5835. if ${ac_cv_type_uid_t+:} false; then :
  5836. $as_echo_n "(cached) " >&6
  5837. else
  5838. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5839. /* end build/confdefs.h. */
  5840. #include <sys/types.h>
  5841. _ACEOF
  5842. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5843. $EGREP "uid_t" >/dev/null 2>&1; then :
  5844. ac_cv_type_uid_t=yes
  5845. else
  5846. ac_cv_type_uid_t=no
  5847. fi
  5848. rm -f conftest*
  5849. fi
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  5851. $as_echo "$ac_cv_type_uid_t" >&6; }
  5852. if test $ac_cv_type_uid_t = no; then
  5853. $as_echo "#define uid_t int" >>build/confdefs.h
  5854. $as_echo "#define gid_t int" >>build/confdefs.h
  5855. fi
  5856. #AC_C_CONST
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  5858. $as_echo_n "checking for working volatile... " >&6; }
  5859. if ${ac_cv_c_volatile+:} false; then :
  5860. $as_echo_n "(cached) " >&6
  5861. else
  5862. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5863. /* end build/confdefs.h. */
  5864. int
  5865. main ()
  5866. {
  5867. volatile int x;
  5868. int * volatile y = (int *) 0;
  5869. return !x && !y;
  5870. ;
  5871. return 0;
  5872. }
  5873. _ACEOF
  5874. if ac_fn_cxx_try_compile "$LINENO"; then :
  5875. ac_cv_c_volatile=yes
  5876. else
  5877. ac_cv_c_volatile=no
  5878. fi
  5879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5880. fi
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  5882. $as_echo "$ac_cv_c_volatile" >&6; }
  5883. if test $ac_cv_c_volatile = no; then
  5884. $as_echo "#define volatile /**/" >>build/confdefs.h
  5885. fi
  5886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  5887. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5888. if ${ac_cv_c_bigendian+:} false; then :
  5889. $as_echo_n "(cached) " >&6
  5890. else
  5891. ac_cv_c_bigendian=unknown
  5892. # See if we're dealing with a universal compiler.
  5893. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5894. /* end build/confdefs.h. */
  5895. #ifndef __APPLE_CC__
  5896. not a universal capable compiler
  5897. #endif
  5898. typedef int dummy;
  5899. _ACEOF
  5900. if ac_fn_cxx_try_compile "$LINENO"; then :
  5901. # Check for potential -arch flags. It is not universal unless
  5902. # there are at least two -arch flags with different values.
  5903. ac_arch=
  5904. ac_prev=
  5905. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  5906. if test -n "$ac_prev"; then
  5907. case $ac_word in
  5908. i?86 | x86_64 | ppc | ppc64)
  5909. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  5910. ac_arch=$ac_word
  5911. else
  5912. ac_cv_c_bigendian=universal
  5913. break
  5914. fi
  5915. ;;
  5916. esac
  5917. ac_prev=
  5918. elif test "x$ac_word" = "x-arch"; then
  5919. ac_prev=arch
  5920. fi
  5921. done
  5922. fi
  5923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5924. if test $ac_cv_c_bigendian = unknown; then
  5925. # See if sys/param.h defines the BYTE_ORDER macro.
  5926. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5927. /* end build/confdefs.h. */
  5928. #include <sys/types.h>
  5929. #include <sys/param.h>
  5930. int
  5931. main ()
  5932. {
  5933. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  5934. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  5935. && LITTLE_ENDIAN)
  5936. bogus endian macros
  5937. #endif
  5938. ;
  5939. return 0;
  5940. }
  5941. _ACEOF
  5942. if ac_fn_cxx_try_compile "$LINENO"; then :
  5943. # It does; now see whether it defined to BIG_ENDIAN or not.
  5944. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5945. /* end build/confdefs.h. */
  5946. #include <sys/types.h>
  5947. #include <sys/param.h>
  5948. int
  5949. main ()
  5950. {
  5951. #if BYTE_ORDER != BIG_ENDIAN
  5952. not big endian
  5953. #endif
  5954. ;
  5955. return 0;
  5956. }
  5957. _ACEOF
  5958. if ac_fn_cxx_try_compile "$LINENO"; then :
  5959. ac_cv_c_bigendian=yes
  5960. else
  5961. ac_cv_c_bigendian=no
  5962. fi
  5963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5964. fi
  5965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5966. fi
  5967. if test $ac_cv_c_bigendian = unknown; then
  5968. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  5969. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5970. /* end build/confdefs.h. */
  5971. #include <limits.h>
  5972. int
  5973. main ()
  5974. {
  5975. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  5976. bogus endian macros
  5977. #endif
  5978. ;
  5979. return 0;
  5980. }
  5981. _ACEOF
  5982. if ac_fn_cxx_try_compile "$LINENO"; then :
  5983. # It does; now see whether it defined to _BIG_ENDIAN or not.
  5984. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5985. /* end build/confdefs.h. */
  5986. #include <limits.h>
  5987. int
  5988. main ()
  5989. {
  5990. #ifndef _BIG_ENDIAN
  5991. not big endian
  5992. #endif
  5993. ;
  5994. return 0;
  5995. }
  5996. _ACEOF
  5997. if ac_fn_cxx_try_compile "$LINENO"; then :
  5998. ac_cv_c_bigendian=yes
  5999. else
  6000. ac_cv_c_bigendian=no
  6001. fi
  6002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6003. fi
  6004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6005. fi
  6006. if test $ac_cv_c_bigendian = unknown; then
  6007. # Compile a test program.
  6008. if test "$cross_compiling" = yes; then :
  6009. # Try to guess by grepping values from an object file.
  6010. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6011. /* end build/confdefs.h. */
  6012. short int ascii_mm[] =
  6013. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6014. short int ascii_ii[] =
  6015. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6016. int use_ascii (int i) {
  6017. return ascii_mm[i] + ascii_ii[i];
  6018. }
  6019. short int ebcdic_ii[] =
  6020. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6021. short int ebcdic_mm[] =
  6022. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6023. int use_ebcdic (int i) {
  6024. return ebcdic_mm[i] + ebcdic_ii[i];
  6025. }
  6026. extern int foo;
  6027. int
  6028. main ()
  6029. {
  6030. return use_ascii (foo) == use_ebcdic (foo);
  6031. ;
  6032. return 0;
  6033. }
  6034. _ACEOF
  6035. if ac_fn_cxx_try_compile "$LINENO"; then :
  6036. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  6037. ac_cv_c_bigendian=yes
  6038. fi
  6039. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6040. if test "$ac_cv_c_bigendian" = unknown; then
  6041. ac_cv_c_bigendian=no
  6042. else
  6043. # finding both strings is unlikely to happen, but who knows?
  6044. ac_cv_c_bigendian=unknown
  6045. fi
  6046. fi
  6047. fi
  6048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6049. else
  6050. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6051. /* end build/confdefs.h. */
  6052. $ac_includes_default
  6053. int
  6054. main ()
  6055. {
  6056. /* Are we little or big endian? From Harbison&Steele. */
  6057. union
  6058. {
  6059. long int l;
  6060. char c[sizeof (long int)];
  6061. } u;
  6062. u.l = 1;
  6063. return u.c[sizeof (long int) - 1] == 1;
  6064. ;
  6065. return 0;
  6066. }
  6067. _ACEOF
  6068. if ac_fn_cxx_try_run "$LINENO"; then :
  6069. ac_cv_c_bigendian=no
  6070. else
  6071. ac_cv_c_bigendian=yes
  6072. fi
  6073. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6074. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6075. fi
  6076. fi
  6077. fi
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  6079. $as_echo "$ac_cv_c_bigendian" >&6; }
  6080. case $ac_cv_c_bigendian in #(
  6081. yes)
  6082. $as_echo "#define B_ENDIAN 1" >>build/confdefs.h
  6083. ;; #(
  6084. no)
  6085. $as_echo "#define L_ENDIAN 1" >>build/confdefs.h
  6086. ;; #(
  6087. universal)
  6088. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>build/confdefs.h
  6089. ;; #(
  6090. *)
  6091. as_fn_error $? "unknown endianness
  6092. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  6093. esac
  6094. #AC_C_INLINE
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  6096. $as_echo_n "checking whether char is unsigned... " >&6; }
  6097. if ${ac_cv_c_char_unsigned+:} false; then :
  6098. $as_echo_n "(cached) " >&6
  6099. else
  6100. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6101. /* end build/confdefs.h. */
  6102. $ac_includes_default
  6103. int
  6104. main ()
  6105. {
  6106. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6107. test_array [0] = 0;
  6108. return test_array [0];
  6109. ;
  6110. return 0;
  6111. }
  6112. _ACEOF
  6113. if ac_fn_cxx_try_compile "$LINENO"; then :
  6114. ac_cv_c_char_unsigned=no
  6115. else
  6116. ac_cv_c_char_unsigned=yes
  6117. fi
  6118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6119. fi
  6120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  6121. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  6122. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6123. $as_echo "#define __CHAR_UNSIGNED__ 1" >>build/confdefs.h
  6124. fi
  6125. #AC_C_STRINGIZE
  6126. #AC_C_PROTOTYPES
  6127. #checkpoint
  6128. cat >confcache <<\_ACEOF
  6129. # This file is a shell script that caches the results of configure
  6130. # tests run on this system so they can be shared between configure
  6131. # scripts and configure runs, see configure's option --config-cache.
  6132. # It is not useful on other systems. If it contains results you don't
  6133. # want to keep, you may remove or edit it.
  6134. #
  6135. # build/config.status only pays attention to the cache file if you give it
  6136. # the --recheck option to rerun configure.
  6137. #
  6138. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6139. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6140. # following values.
  6141. _ACEOF
  6142. # The following way of writing the cache mishandles newlines in values,
  6143. # but we know of no workaround that is simple, portable, and efficient.
  6144. # So, we kill variables containing newlines.
  6145. # Ultrix sh set writes to stderr and can't be redirected directly,
  6146. # and sets the high bit in the cache file unless we assign to the vars.
  6147. (
  6148. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6149. eval ac_val=\$$ac_var
  6150. case $ac_val in #(
  6151. *${as_nl}*)
  6152. case $ac_var in #(
  6153. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6154. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6155. esac
  6156. case $ac_var in #(
  6157. _ | IFS | as_nl) ;; #(
  6158. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6159. *) { eval $ac_var=; unset $ac_var;} ;;
  6160. esac ;;
  6161. esac
  6162. done
  6163. (set) 2>&1 |
  6164. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6165. *${as_nl}ac_space=\ *)
  6166. # `set' does not quote correctly, so add quotes: double-quote
  6167. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6168. sed -n \
  6169. "s/'/'\\\\''/g;
  6170. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6171. ;; #(
  6172. *)
  6173. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6174. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6175. ;;
  6176. esac |
  6177. sort
  6178. ) |
  6179. sed '
  6180. /^ac_cv_env_/b end
  6181. t clear
  6182. :clear
  6183. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6184. t end
  6185. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6186. :end' >>confcache
  6187. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6188. if test -w "$cache_file"; then
  6189. if test "x$cache_file" != "x/dev/null"; then
  6190. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6191. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6192. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6193. cat confcache >"$cache_file"
  6194. else
  6195. case $cache_file in #(
  6196. */* | ?:*)
  6197. mv -f confcache "$cache_file"$$ &&
  6198. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6199. *)
  6200. mv -f confcache "$cache_file" ;;
  6201. esac
  6202. fi
  6203. fi
  6204. else
  6205. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6206. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6207. fi
  6208. fi
  6209. rm -f confcache
  6210. # Checks for typedefs, structures, and compiler characteristics
  6211. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  6212. if test "x$ac_cv_type_pid_t" = xyes; then :
  6213. else
  6214. cat >>build/confdefs.h <<_ACEOF
  6215. #define pid_t int
  6216. _ACEOF
  6217. fi
  6218. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  6219. if test "x$ac_cv_type_size_t" = xyes; then :
  6220. else
  6221. cat >>build/confdefs.h <<_ACEOF
  6222. #define size_t unsigned int
  6223. _ACEOF
  6224. fi
  6225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  6226. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  6227. if ${ac_cv_type_uid_t+:} false; then :
  6228. $as_echo_n "(cached) " >&6
  6229. else
  6230. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6231. /* end build/confdefs.h. */
  6232. #include <sys/types.h>
  6233. _ACEOF
  6234. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6235. $EGREP "uid_t" >/dev/null 2>&1; then :
  6236. ac_cv_type_uid_t=yes
  6237. else
  6238. ac_cv_type_uid_t=no
  6239. fi
  6240. rm -f conftest*
  6241. fi
  6242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  6243. $as_echo "$ac_cv_type_uid_t" >&6; }
  6244. if test $ac_cv_type_uid_t = no; then
  6245. $as_echo "#define uid_t int" >>build/confdefs.h
  6246. $as_echo "#define gid_t int" >>build/confdefs.h
  6247. fi
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  6249. $as_echo_n "checking for unsigned long long int... " >&6; }
  6250. if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  6251. $as_echo_n "(cached) " >&6
  6252. else
  6253. ac_cv_type_unsigned_long_long_int=yes
  6254. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  6255. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6256. /* end build/confdefs.h. */
  6257. /* For now, do not test the preprocessor; as of 2007 there are too many
  6258. implementations with broken preprocessors. Perhaps this can
  6259. be revisited in 2012. In the meantime, code should not expect
  6260. #if to work with literals wider than 32 bits. */
  6261. /* Test literals. */
  6262. long long int ll = 9223372036854775807ll;
  6263. long long int nll = -9223372036854775807LL;
  6264. unsigned long long int ull = 18446744073709551615ULL;
  6265. /* Test constant expressions. */
  6266. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  6267. ? 1 : -1)];
  6268. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  6269. ? 1 : -1)];
  6270. int i = 63;
  6271. int
  6272. main ()
  6273. {
  6274. /* Test availability of runtime routines for shift and division. */
  6275. long long int llmax = 9223372036854775807ll;
  6276. unsigned long long int ullmax = 18446744073709551615ull;
  6277. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  6278. | (llmax / ll) | (llmax % ll)
  6279. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  6280. | (ullmax / ull) | (ullmax % ull));
  6281. ;
  6282. return 0;
  6283. }
  6284. _ACEOF
  6285. if ac_fn_cxx_try_link "$LINENO"; then :
  6286. else
  6287. ac_cv_type_unsigned_long_long_int=no
  6288. fi
  6289. rm -f core conftest.err conftest.$ac_objext \
  6290. conftest$ac_exeext conftest.$ac_ext
  6291. fi
  6292. fi
  6293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  6294. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  6295. if test $ac_cv_type_unsigned_long_long_int = yes; then
  6296. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>build/confdefs.h
  6297. fi
  6298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  6299. $as_echo_n "checking for long long int... " >&6; }
  6300. if ${ac_cv_type_long_long_int+:} false; then :
  6301. $as_echo_n "(cached) " >&6
  6302. else
  6303. ac_cv_type_long_long_int=yes
  6304. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  6305. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  6306. if test $ac_cv_type_long_long_int = yes; then
  6307. if test "$cross_compiling" = yes; then :
  6308. :
  6309. else
  6310. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6311. /* end build/confdefs.h. */
  6312. #include <limits.h>
  6313. #ifndef LLONG_MAX
  6314. # define HALF \
  6315. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  6316. # define LLONG_MAX (HALF - 1 + HALF)
  6317. #endif
  6318. int
  6319. main ()
  6320. {
  6321. long long int n = 1;
  6322. int i;
  6323. for (i = 0; ; i++)
  6324. {
  6325. long long int m = n << i;
  6326. if (m >> i != n)
  6327. return 1;
  6328. if (LLONG_MAX / 2 < m)
  6329. break;
  6330. }
  6331. return 0;
  6332. ;
  6333. return 0;
  6334. }
  6335. _ACEOF
  6336. if ac_fn_cxx_try_run "$LINENO"; then :
  6337. else
  6338. ac_cv_type_long_long_int=no
  6339. fi
  6340. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6341. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6342. fi
  6343. fi
  6344. fi
  6345. fi
  6346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  6347. $as_echo "$ac_cv_type_long_long_int" >&6; }
  6348. if test $ac_cv_type_long_long_int = yes; then
  6349. $as_echo "#define HAVE_LONG_LONG_INT 1" >>build/confdefs.h
  6350. fi
  6351. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  6352. case $ac_cv_c_int8_t in #(
  6353. no|yes) ;; #(
  6354. *)
  6355. cat >>build/confdefs.h <<_ACEOF
  6356. #define int8_t $ac_cv_c_int8_t
  6357. _ACEOF
  6358. ;;
  6359. esac
  6360. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  6361. case $ac_cv_c_uint8_t in #(
  6362. no|yes) ;; #(
  6363. *)
  6364. $as_echo "#define _UINT8_T 1" >>build/confdefs.h
  6365. cat >>build/confdefs.h <<_ACEOF
  6366. #define uint8_t $ac_cv_c_uint8_t
  6367. _ACEOF
  6368. ;;
  6369. esac
  6370. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  6371. case $ac_cv_c_int16_t in #(
  6372. no|yes) ;; #(
  6373. *)
  6374. cat >>build/confdefs.h <<_ACEOF
  6375. #define int16_t $ac_cv_c_int16_t
  6376. _ACEOF
  6377. ;;
  6378. esac
  6379. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  6380. case $ac_cv_c_uint16_t in #(
  6381. no|yes) ;; #(
  6382. *)
  6383. cat >>build/confdefs.h <<_ACEOF
  6384. #define uint16_t $ac_cv_c_uint16_t
  6385. _ACEOF
  6386. ;;
  6387. esac
  6388. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  6389. case $ac_cv_c_int32_t in #(
  6390. no|yes) ;; #(
  6391. *)
  6392. cat >>build/confdefs.h <<_ACEOF
  6393. #define int32_t $ac_cv_c_int32_t
  6394. _ACEOF
  6395. ;;
  6396. esac
  6397. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  6398. case $ac_cv_c_uint32_t in #(
  6399. no|yes) ;; #(
  6400. *)
  6401. $as_echo "#define _UINT32_T 1" >>build/confdefs.h
  6402. cat >>build/confdefs.h <<_ACEOF
  6403. #define uint32_t $ac_cv_c_uint32_t
  6404. _ACEOF
  6405. ;;
  6406. esac
  6407. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  6408. case $ac_cv_c_int64_t in #(
  6409. no|yes) ;; #(
  6410. *)
  6411. cat >>build/confdefs.h <<_ACEOF
  6412. #define int64_t $ac_cv_c_int64_t
  6413. _ACEOF
  6414. ;;
  6415. esac
  6416. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  6417. case $ac_cv_c_uint64_t in #(
  6418. no|yes) ;; #(
  6419. *)
  6420. $as_echo "#define _UINT64_T 1" >>build/confdefs.h
  6421. cat >>build/confdefs.h <<_ACEOF
  6422. #define uint64_t $ac_cv_c_uint64_t
  6423. _ACEOF
  6424. ;;
  6425. esac
  6426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  6427. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  6428. if ${ac_cv_struct_tm+:} false; then :
  6429. $as_echo_n "(cached) " >&6
  6430. else
  6431. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6432. /* end build/confdefs.h. */
  6433. #include <sys/types.h>
  6434. #include <time.h>
  6435. int
  6436. main ()
  6437. {
  6438. struct tm tm;
  6439. int *p = &tm.tm_sec;
  6440. return !p;
  6441. ;
  6442. return 0;
  6443. }
  6444. _ACEOF
  6445. if ac_fn_cxx_try_compile "$LINENO"; then :
  6446. ac_cv_struct_tm=time.h
  6447. else
  6448. ac_cv_struct_tm=sys/time.h
  6449. fi
  6450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6451. fi
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  6453. $as_echo "$ac_cv_struct_tm" >&6; }
  6454. if test $ac_cv_struct_tm = sys/time.h; then
  6455. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  6456. fi
  6457. ac_fn_cxx_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  6458. #include <$ac_cv_struct_tm>
  6459. "
  6460. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  6461. cat >>build/confdefs.h <<_ACEOF
  6462. #define HAVE_STRUCT_TM_TM_ZONE 1
  6463. _ACEOF
  6464. fi
  6465. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  6466. $as_echo "#define HAVE_TM_ZONE 1" >>build/confdefs.h
  6467. else
  6468. ac_fn_cxx_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  6469. "
  6470. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  6471. ac_have_decl=1
  6472. else
  6473. ac_have_decl=0
  6474. fi
  6475. cat >>build/confdefs.h <<_ACEOF
  6476. #define HAVE_DECL_TZNAME $ac_have_decl
  6477. _ACEOF
  6478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  6479. $as_echo_n "checking for tzname... " >&6; }
  6480. if ${ac_cv_var_tzname+:} false; then :
  6481. $as_echo_n "(cached) " >&6
  6482. else
  6483. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6484. /* end build/confdefs.h. */
  6485. #include <time.h>
  6486. #if !HAVE_DECL_TZNAME
  6487. extern char *tzname[];
  6488. #endif
  6489. int
  6490. main ()
  6491. {
  6492. return tzname[0][0];
  6493. ;
  6494. return 0;
  6495. }
  6496. _ACEOF
  6497. if ac_fn_cxx_try_link "$LINENO"; then :
  6498. ac_cv_var_tzname=yes
  6499. else
  6500. ac_cv_var_tzname=no
  6501. fi
  6502. rm -f core conftest.err conftest.$ac_objext \
  6503. conftest$ac_exeext conftest.$ac_ext
  6504. fi
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  6506. $as_echo "$ac_cv_var_tzname" >&6; }
  6507. if test $ac_cv_var_tzname = yes; then
  6508. $as_echo "#define HAVE_TZNAME 1" >>build/confdefs.h
  6509. fi
  6510. fi
  6511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  6512. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  6513. if ${ac_cv_struct_tm+:} false; then :
  6514. $as_echo_n "(cached) " >&6
  6515. else
  6516. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6517. /* end build/confdefs.h. */
  6518. #include <sys/types.h>
  6519. #include <time.h>
  6520. int
  6521. main ()
  6522. {
  6523. struct tm tm;
  6524. int *p = &tm.tm_sec;
  6525. return !p;
  6526. ;
  6527. return 0;
  6528. }
  6529. _ACEOF
  6530. if ac_fn_cxx_try_compile "$LINENO"; then :
  6531. ac_cv_struct_tm=time.h
  6532. else
  6533. ac_cv_struct_tm=sys/time.h
  6534. fi
  6535. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6536. fi
  6537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  6538. $as_echo "$ac_cv_struct_tm" >&6; }
  6539. if test $ac_cv_struct_tm = sys/time.h; then
  6540. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  6541. fi
  6542. # Checks for library functions
  6543. for ac_header in vfork.h
  6544. do :
  6545. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  6546. if test "x$ac_cv_header_vfork_h" = xyes; then :
  6547. cat >>build/confdefs.h <<_ACEOF
  6548. #define HAVE_VFORK_H 1
  6549. _ACEOF
  6550. fi
  6551. done
  6552. for ac_func in fork vfork
  6553. do :
  6554. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6555. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6556. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6557. cat >>build/confdefs.h <<_ACEOF
  6558. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6559. _ACEOF
  6560. fi
  6561. done
  6562. if test "x$ac_cv_func_fork" = xyes; then
  6563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  6564. $as_echo_n "checking for working fork... " >&6; }
  6565. if ${ac_cv_func_fork_works+:} false; then :
  6566. $as_echo_n "(cached) " >&6
  6567. else
  6568. if test "$cross_compiling" = yes; then :
  6569. ac_cv_func_fork_works=cross
  6570. else
  6571. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6572. /* end build/confdefs.h. */
  6573. $ac_includes_default
  6574. int
  6575. main ()
  6576. {
  6577. /* By Ruediger Kuhlmann. */
  6578. return fork () < 0;
  6579. ;
  6580. return 0;
  6581. }
  6582. _ACEOF
  6583. if ac_fn_cxx_try_run "$LINENO"; then :
  6584. ac_cv_func_fork_works=yes
  6585. else
  6586. ac_cv_func_fork_works=no
  6587. fi
  6588. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6589. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6590. fi
  6591. fi
  6592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  6593. $as_echo "$ac_cv_func_fork_works" >&6; }
  6594. else
  6595. ac_cv_func_fork_works=$ac_cv_func_fork
  6596. fi
  6597. if test "x$ac_cv_func_fork_works" = xcross; then
  6598. case $host in
  6599. *-*-amigaos* | *-*-msdosdjgpp*)
  6600. # Override, as these systems have only a dummy fork() stub
  6601. ac_cv_func_fork_works=no
  6602. ;;
  6603. *)
  6604. ac_cv_func_fork_works=yes
  6605. ;;
  6606. esac
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  6608. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  6609. fi
  6610. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6611. if test "x$ac_cv_func_vfork" = xyes; then
  6612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  6613. $as_echo_n "checking for working vfork... " >&6; }
  6614. if ${ac_cv_func_vfork_works+:} false; then :
  6615. $as_echo_n "(cached) " >&6
  6616. else
  6617. if test "$cross_compiling" = yes; then :
  6618. ac_cv_func_vfork_works=cross
  6619. else
  6620. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6621. /* end build/confdefs.h. */
  6622. /* Thanks to Paul Eggert for this test. */
  6623. $ac_includes_default
  6624. #include <sys/wait.h>
  6625. #ifdef HAVE_VFORK_H
  6626. # include <vfork.h>
  6627. #endif
  6628. /* On some sparc systems, changes by the child to local and incoming
  6629. argument registers are propagated back to the parent. The compiler
  6630. is told about this with #include <vfork.h>, but some compilers
  6631. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  6632. static variable whose address is put into a register that is
  6633. clobbered by the vfork. */
  6634. static void
  6635. #ifdef __cplusplus
  6636. sparc_address_test (int arg)
  6637. # else
  6638. sparc_address_test (arg) int arg;
  6639. #endif
  6640. {
  6641. static pid_t child;
  6642. if (!child) {
  6643. child = vfork ();
  6644. if (child < 0) {
  6645. perror ("vfork");
  6646. _exit(2);
  6647. }
  6648. if (!child) {
  6649. arg = getpid();
  6650. write(-1, "", 0);
  6651. _exit (arg);
  6652. }
  6653. }
  6654. }
  6655. int
  6656. main ()
  6657. {
  6658. pid_t parent = getpid ();
  6659. pid_t child;
  6660. sparc_address_test (0);
  6661. child = vfork ();
  6662. if (child == 0) {
  6663. /* Here is another test for sparc vfork register problems. This
  6664. test uses lots of local variables, at least as many local
  6665. variables as main has allocated so far including compiler
  6666. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  6667. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  6668. reuse the register of parent for one of the local variables,
  6669. since it will think that parent can't possibly be used any more
  6670. in this routine. Assigning to the local variable will thus
  6671. munge parent in the parent process. */
  6672. pid_t
  6673. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  6674. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  6675. /* Convince the compiler that p..p7 are live; otherwise, it might
  6676. use the same hardware register for all 8 local variables. */
  6677. if (p != p1 || p != p2 || p != p3 || p != p4
  6678. || p != p5 || p != p6 || p != p7)
  6679. _exit(1);
  6680. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  6681. from child file descriptors. If the child closes a descriptor
  6682. before it execs or exits, this munges the parent's descriptor
  6683. as well. Test for this by closing stdout in the child. */
  6684. _exit(close(fileno(stdout)) != 0);
  6685. } else {
  6686. int status;
  6687. struct stat st;
  6688. while (wait(&status) != child)
  6689. ;
  6690. return (
  6691. /* Was there some problem with vforking? */
  6692. child < 0
  6693. /* Did the child fail? (This shouldn't happen.) */
  6694. || status
  6695. /* Did the vfork/compiler bug occur? */
  6696. || parent != getpid()
  6697. /* Did the file descriptor bug occur? */
  6698. || fstat(fileno(stdout), &st) != 0
  6699. );
  6700. }
  6701. }
  6702. _ACEOF
  6703. if ac_fn_cxx_try_run "$LINENO"; then :
  6704. ac_cv_func_vfork_works=yes
  6705. else
  6706. ac_cv_func_vfork_works=no
  6707. fi
  6708. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6709. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6710. fi
  6711. fi
  6712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  6713. $as_echo "$ac_cv_func_vfork_works" >&6; }
  6714. fi;
  6715. if test "x$ac_cv_func_fork_works" = xcross; then
  6716. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6717. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  6718. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  6719. fi
  6720. if test "x$ac_cv_func_vfork_works" = xyes; then
  6721. $as_echo "#define HAVE_WORKING_VFORK 1" >>build/confdefs.h
  6722. else
  6723. $as_echo "#define vfork fork" >>build/confdefs.h
  6724. fi
  6725. if test "x$ac_cv_func_fork_works" = xyes; then
  6726. $as_echo "#define HAVE_WORKING_FORK 1" >>build/confdefs.h
  6727. fi
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  6729. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  6730. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  6731. $as_echo_n "(cached) " >&6
  6732. else
  6733. rm -f conftest.sym conftest.file
  6734. echo >conftest.file
  6735. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  6736. if test "$cross_compiling" = yes; then :
  6737. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6738. else
  6739. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6740. /* end build/confdefs.h. */
  6741. $ac_includes_default
  6742. int
  6743. main ()
  6744. {
  6745. struct stat sbuf;
  6746. /* Linux will dereference the symlink and fail, as required by POSIX.
  6747. That is better in the sense that it means we will not
  6748. have to compile and use the lstat wrapper. */
  6749. return lstat ("conftest.sym/", &sbuf) == 0;
  6750. ;
  6751. return 0;
  6752. }
  6753. _ACEOF
  6754. if ac_fn_cxx_try_run "$LINENO"; then :
  6755. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  6756. else
  6757. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6758. fi
  6759. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6760. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6761. fi
  6762. else
  6763. # If the `ln -s' command failed, then we probably don't even
  6764. # have an lstat function.
  6765. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6766. fi
  6767. rm -f conftest.sym conftest.file
  6768. fi
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  6770. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  6771. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  6772. cat >>build/confdefs.h <<_ACEOF
  6773. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  6774. _ACEOF
  6775. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  6776. case " $LIBOBJS " in
  6777. *" lstat.$ac_objext "* ) ;;
  6778. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6779. ;;
  6780. esac
  6781. fi
  6782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  6783. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  6784. if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
  6785. $as_echo_n "(cached) " >&6
  6786. else
  6787. if test "$cross_compiling" = yes; then :
  6788. ac_cv_func_lstat_empty_string_bug=yes
  6789. else
  6790. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6791. /* end build/confdefs.h. */
  6792. $ac_includes_default
  6793. int
  6794. main ()
  6795. {
  6796. struct stat sbuf;
  6797. return lstat ("", &sbuf) == 0;
  6798. ;
  6799. return 0;
  6800. }
  6801. _ACEOF
  6802. if ac_fn_cxx_try_run "$LINENO"; then :
  6803. ac_cv_func_lstat_empty_string_bug=no
  6804. else
  6805. ac_cv_func_lstat_empty_string_bug=yes
  6806. fi
  6807. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6808. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6809. fi
  6810. fi
  6811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  6812. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  6813. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  6814. case " $LIBOBJS " in
  6815. *" lstat.$ac_objext "* ) ;;
  6816. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6817. ;;
  6818. esac
  6819. cat >>build/confdefs.h <<_ACEOF
  6820. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  6821. _ACEOF
  6822. fi
  6823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  6824. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  6825. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  6826. $as_echo_n "(cached) " >&6
  6827. else
  6828. rm -f conftest.sym conftest.file
  6829. echo >conftest.file
  6830. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  6831. if test "$cross_compiling" = yes; then :
  6832. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6833. else
  6834. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6835. /* end build/confdefs.h. */
  6836. $ac_includes_default
  6837. int
  6838. main ()
  6839. {
  6840. struct stat sbuf;
  6841. /* Linux will dereference the symlink and fail, as required by POSIX.
  6842. That is better in the sense that it means we will not
  6843. have to compile and use the lstat wrapper. */
  6844. return lstat ("conftest.sym/", &sbuf) == 0;
  6845. ;
  6846. return 0;
  6847. }
  6848. _ACEOF
  6849. if ac_fn_cxx_try_run "$LINENO"; then :
  6850. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  6851. else
  6852. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6853. fi
  6854. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6855. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6856. fi
  6857. else
  6858. # If the `ln -s' command failed, then we probably don't even
  6859. # have an lstat function.
  6860. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6861. fi
  6862. rm -f conftest.sym conftest.file
  6863. fi
  6864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  6865. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  6866. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  6867. cat >>build/confdefs.h <<_ACEOF
  6868. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  6869. _ACEOF
  6870. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  6871. case " $LIBOBJS " in
  6872. *" lstat.$ac_objext "* ) ;;
  6873. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6874. ;;
  6875. esac
  6876. fi
  6877. for ac_header in stdlib.h
  6878. do :
  6879. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  6880. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  6881. cat >>build/confdefs.h <<_ACEOF
  6882. #define HAVE_STDLIB_H 1
  6883. _ACEOF
  6884. fi
  6885. done
  6886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  6887. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  6888. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  6889. $as_echo_n "(cached) " >&6
  6890. else
  6891. if test "$cross_compiling" = yes; then :
  6892. ac_cv_func_malloc_0_nonnull=no
  6893. else
  6894. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6895. /* end build/confdefs.h. */
  6896. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  6897. # include <stdlib.h>
  6898. #else
  6899. char *malloc ();
  6900. #endif
  6901. int
  6902. main ()
  6903. {
  6904. return ! malloc (0);
  6905. ;
  6906. return 0;
  6907. }
  6908. _ACEOF
  6909. if ac_fn_cxx_try_run "$LINENO"; then :
  6910. ac_cv_func_malloc_0_nonnull=yes
  6911. else
  6912. ac_cv_func_malloc_0_nonnull=no
  6913. fi
  6914. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6915. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6916. fi
  6917. fi
  6918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  6919. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  6920. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  6921. $as_echo "#define HAVE_MALLOC 1" >>build/confdefs.h
  6922. else
  6923. $as_echo "#define HAVE_MALLOC 0" >>build/confdefs.h
  6924. case " $LIBOBJS " in
  6925. *" malloc.$ac_objext "* ) ;;
  6926. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  6927. ;;
  6928. esac
  6929. $as_echo "#define malloc rpl_malloc" >>build/confdefs.h
  6930. fi
  6931. for ac_header in $ac_header_list
  6932. do :
  6933. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6934. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6935. "
  6936. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6937. cat >>build/confdefs.h <<_ACEOF
  6938. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6939. _ACEOF
  6940. fi
  6941. done
  6942. for ac_func in $ac_func_list
  6943. do :
  6944. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6945. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6946. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6947. cat >>build/confdefs.h <<_ACEOF
  6948. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6949. _ACEOF
  6950. fi
  6951. done
  6952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  6953. $as_echo_n "checking for working mktime... " >&6; }
  6954. if ${ac_cv_func_working_mktime+:} false; then :
  6955. $as_echo_n "(cached) " >&6
  6956. else
  6957. if test "$cross_compiling" = yes; then :
  6958. ac_cv_func_working_mktime=no
  6959. else
  6960. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6961. /* end build/confdefs.h. */
  6962. /* Test program from Paul Eggert and Tony Leneis. */
  6963. #ifdef TIME_WITH_SYS_TIME
  6964. # include <sys/time.h>
  6965. # include <time.h>
  6966. #else
  6967. # ifdef HAVE_SYS_TIME_H
  6968. # include <sys/time.h>
  6969. # else
  6970. # include <time.h>
  6971. # endif
  6972. #endif
  6973. #include <limits.h>
  6974. #include <stdlib.h>
  6975. #ifdef HAVE_UNISTD_H
  6976. # include <unistd.h>
  6977. #endif
  6978. #ifndef HAVE_ALARM
  6979. # define alarm(X) /* empty */
  6980. #endif
  6981. /* Work around redefinition to rpl_putenv by other config tests. */
  6982. #undef putenv
  6983. static time_t time_t_max;
  6984. static time_t time_t_min;
  6985. /* Values we'll use to set the TZ environment variable. */
  6986. static const char *tz_strings[] = {
  6987. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  6988. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  6989. };
  6990. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  6991. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  6992. Based on a problem report from Andreas Jaeger. */
  6993. static int
  6994. spring_forward_gap ()
  6995. {
  6996. /* glibc (up to about 1998-10-07) failed this test. */
  6997. struct tm tm;
  6998. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  6999. instead of "TZ=America/Vancouver" in order to detect the bug even
  7000. on systems that don't support the Olson extension, or don't have the
  7001. full zoneinfo tables installed. */
  7002. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  7003. tm.tm_year = 98;
  7004. tm.tm_mon = 3;
  7005. tm.tm_mday = 5;
  7006. tm.tm_hour = 2;
  7007. tm.tm_min = 0;
  7008. tm.tm_sec = 0;
  7009. tm.tm_isdst = -1;
  7010. return mktime (&tm) != (time_t) -1;
  7011. }
  7012. static int
  7013. mktime_test1 (time_t now)
  7014. {
  7015. struct tm *lt;
  7016. return ! (lt = localtime (&now)) || mktime (lt) == now;
  7017. }
  7018. static int
  7019. mktime_test (time_t now)
  7020. {
  7021. return (mktime_test1 (now)
  7022. && mktime_test1 ((time_t) (time_t_max - now))
  7023. && mktime_test1 ((time_t) (time_t_min + now)));
  7024. }
  7025. static int
  7026. irix_6_4_bug ()
  7027. {
  7028. /* Based on code from Ariel Faigon. */
  7029. struct tm tm;
  7030. tm.tm_year = 96;
  7031. tm.tm_mon = 3;
  7032. tm.tm_mday = 0;
  7033. tm.tm_hour = 0;
  7034. tm.tm_min = 0;
  7035. tm.tm_sec = 0;
  7036. tm.tm_isdst = -1;
  7037. mktime (&tm);
  7038. return tm.tm_mon == 2 && tm.tm_mday == 31;
  7039. }
  7040. static int
  7041. bigtime_test (int j)
  7042. {
  7043. struct tm tm;
  7044. time_t now;
  7045. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  7046. now = mktime (&tm);
  7047. if (now != (time_t) -1)
  7048. {
  7049. struct tm *lt = localtime (&now);
  7050. if (! (lt
  7051. && lt->tm_year == tm.tm_year
  7052. && lt->tm_mon == tm.tm_mon
  7053. && lt->tm_mday == tm.tm_mday
  7054. && lt->tm_hour == tm.tm_hour
  7055. && lt->tm_min == tm.tm_min
  7056. && lt->tm_sec == tm.tm_sec
  7057. && lt->tm_yday == tm.tm_yday
  7058. && lt->tm_wday == tm.tm_wday
  7059. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  7060. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  7061. return 0;
  7062. }
  7063. return 1;
  7064. }
  7065. static int
  7066. year_2050_test ()
  7067. {
  7068. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  7069. ignoring leap seconds. */
  7070. unsigned long int answer = 2527315200UL;
  7071. struct tm tm;
  7072. time_t t;
  7073. tm.tm_year = 2050 - 1900;
  7074. tm.tm_mon = 2 - 1;
  7075. tm.tm_mday = 1;
  7076. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  7077. tm.tm_isdst = -1;
  7078. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  7079. instead of "TZ=America/Vancouver" in order to detect the bug even
  7080. on systems that don't support the Olson extension, or don't have the
  7081. full zoneinfo tables installed. */
  7082. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  7083. t = mktime (&tm);
  7084. /* Check that the result is either a failure, or close enough
  7085. to the correct answer that we can assume the discrepancy is
  7086. due to leap seconds. */
  7087. return (t == (time_t) -1
  7088. || (0 < t && answer - 120 <= t && t <= answer + 120));
  7089. }
  7090. int
  7091. main ()
  7092. {
  7093. time_t t, delta;
  7094. int i, j;
  7095. /* This test makes some buggy mktime implementations loop.
  7096. Give up after 60 seconds; a mktime slower than that
  7097. isn't worth using anyway. */
  7098. alarm (60);
  7099. for (;;)
  7100. {
  7101. t = (time_t_max << 1) + 1;
  7102. if (t <= time_t_max)
  7103. break;
  7104. time_t_max = t;
  7105. }
  7106. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  7107. delta = time_t_max / 997; /* a suitable prime number */
  7108. for (i = 0; i < N_STRINGS; i++)
  7109. {
  7110. if (tz_strings[i])
  7111. putenv ((char*) tz_strings[i]);
  7112. for (t = 0; t <= time_t_max - delta; t += delta)
  7113. if (! mktime_test (t))
  7114. return 1;
  7115. if (! (mktime_test ((time_t) 1)
  7116. && mktime_test ((time_t) (60 * 60))
  7117. && mktime_test ((time_t) (60 * 60 * 24))))
  7118. return 1;
  7119. for (j = 1; ; j <<= 1)
  7120. if (! bigtime_test (j))
  7121. return 1;
  7122. else if (INT_MAX / 2 < j)
  7123. break;
  7124. if (! bigtime_test (INT_MAX))
  7125. return 1;
  7126. }
  7127. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  7128. }
  7129. _ACEOF
  7130. if ac_fn_cxx_try_run "$LINENO"; then :
  7131. ac_cv_func_working_mktime=yes
  7132. else
  7133. ac_cv_func_working_mktime=no
  7134. fi
  7135. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7136. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7137. fi
  7138. fi
  7139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  7140. $as_echo "$ac_cv_func_working_mktime" >&6; }
  7141. if test $ac_cv_func_working_mktime = no; then
  7142. case " $LIBOBJS " in
  7143. *" mktime.$ac_objext "* ) ;;
  7144. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  7145. ;;
  7146. esac
  7147. fi
  7148. for ac_func in getpagesize
  7149. do :
  7150. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  7151. if test "x$ac_cv_func_getpagesize" = xyes; then :
  7152. cat >>build/confdefs.h <<_ACEOF
  7153. #define HAVE_GETPAGESIZE 1
  7154. _ACEOF
  7155. fi
  7156. done
  7157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  7158. $as_echo_n "checking for working mmap... " >&6; }
  7159. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  7160. $as_echo_n "(cached) " >&6
  7161. else
  7162. if test "$cross_compiling" = yes; then :
  7163. ac_cv_func_mmap_fixed_mapped=no
  7164. else
  7165. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7166. /* end build/confdefs.h. */
  7167. $ac_includes_default
  7168. /* malloc might have been renamed as rpl_malloc. */
  7169. #undef malloc
  7170. /* Thanks to Mike Haertel and Jim Avera for this test.
  7171. Here is a matrix of mmap possibilities:
  7172. mmap private not fixed
  7173. mmap private fixed at somewhere currently unmapped
  7174. mmap private fixed at somewhere already mapped
  7175. mmap shared not fixed
  7176. mmap shared fixed at somewhere currently unmapped
  7177. mmap shared fixed at somewhere already mapped
  7178. For private mappings, we should verify that changes cannot be read()
  7179. back from the file, nor mmap's back from the file at a different
  7180. address. (There have been systems where private was not correctly
  7181. implemented like the infamous i386 svr4.0, and systems where the
  7182. VM page cache was not coherent with the file system buffer cache
  7183. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7184. For shared mappings, we should conversely verify that changes get
  7185. propagated back to all the places they're supposed to be.
  7186. Grep wants private fixed already mapped.
  7187. The main things grep needs to know about mmap are:
  7188. * does it exist and is it safe to write into the mmap'd area
  7189. * how to use it (BSD variants) */
  7190. #include <fcntl.h>
  7191. #include <sys/mman.h>
  7192. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7193. char *malloc ();
  7194. #endif
  7195. /* This mess was copied from the GNU getpagesize.h. */
  7196. #ifndef HAVE_GETPAGESIZE
  7197. # ifdef _SC_PAGESIZE
  7198. # define getpagesize() sysconf(_SC_PAGESIZE)
  7199. # else /* no _SC_PAGESIZE */
  7200. # ifdef HAVE_SYS_PARAM_H
  7201. # include <sys/param.h>
  7202. # ifdef EXEC_PAGESIZE
  7203. # define getpagesize() EXEC_PAGESIZE
  7204. # else /* no EXEC_PAGESIZE */
  7205. # ifdef NBPG
  7206. # define getpagesize() NBPG * CLSIZE
  7207. # ifndef CLSIZE
  7208. # define CLSIZE 1
  7209. # endif /* no CLSIZE */
  7210. # else /* no NBPG */
  7211. # ifdef NBPC
  7212. # define getpagesize() NBPC
  7213. # else /* no NBPC */
  7214. # ifdef PAGESIZE
  7215. # define getpagesize() PAGESIZE
  7216. # endif /* PAGESIZE */
  7217. # endif /* no NBPC */
  7218. # endif /* no NBPG */
  7219. # endif /* no EXEC_PAGESIZE */
  7220. # else /* no HAVE_SYS_PARAM_H */
  7221. # define getpagesize() 8192 /* punt totally */
  7222. # endif /* no HAVE_SYS_PARAM_H */
  7223. # endif /* no _SC_PAGESIZE */
  7224. #endif /* no HAVE_GETPAGESIZE */
  7225. int
  7226. main ()
  7227. {
  7228. char *data, *data2, *data3;
  7229. const char *cdata2;
  7230. int i, pagesize;
  7231. int fd, fd2;
  7232. pagesize = getpagesize ();
  7233. /* First, make a file with some known garbage in it. */
  7234. data = (char *) malloc (pagesize);
  7235. if (!data)
  7236. return 1;
  7237. for (i = 0; i < pagesize; ++i)
  7238. *(data + i) = rand ();
  7239. umask (0);
  7240. fd = creat ("conftest.mmap", 0600);
  7241. if (fd < 0)
  7242. return 2;
  7243. if (write (fd, data, pagesize) != pagesize)
  7244. return 3;
  7245. close (fd);
  7246. /* Next, check that the tail of a page is zero-filled. File must have
  7247. non-zero length, otherwise we risk SIGBUS for entire page. */
  7248. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  7249. if (fd2 < 0)
  7250. return 4;
  7251. cdata2 = "";
  7252. if (write (fd2, cdata2, 1) != 1)
  7253. return 5;
  7254. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  7255. if (data2 == MAP_FAILED)
  7256. return 6;
  7257. for (i = 0; i < pagesize; ++i)
  7258. if (*(data2 + i))
  7259. return 7;
  7260. close (fd2);
  7261. if (munmap (data2, pagesize))
  7262. return 8;
  7263. /* Next, try to mmap the file at a fixed address which already has
  7264. something else allocated at it. If we can, also make sure that
  7265. we see the same garbage. */
  7266. fd = open ("conftest.mmap", O_RDWR);
  7267. if (fd < 0)
  7268. return 9;
  7269. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7270. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7271. return 10;
  7272. for (i = 0; i < pagesize; ++i)
  7273. if (*(data + i) != *(data2 + i))
  7274. return 11;
  7275. /* Finally, make sure that changes to the mapped area do not
  7276. percolate back to the file as seen by read(). (This is a bug on
  7277. some variants of i386 svr4.0.) */
  7278. for (i = 0; i < pagesize; ++i)
  7279. *(data2 + i) = *(data2 + i) + 1;
  7280. data3 = (char *) malloc (pagesize);
  7281. if (!data3)
  7282. return 12;
  7283. if (read (fd, data3, pagesize) != pagesize)
  7284. return 13;
  7285. for (i = 0; i < pagesize; ++i)
  7286. if (*(data + i) != *(data3 + i))
  7287. return 14;
  7288. close (fd);
  7289. return 0;
  7290. }
  7291. _ACEOF
  7292. if ac_fn_cxx_try_run "$LINENO"; then :
  7293. ac_cv_func_mmap_fixed_mapped=yes
  7294. else
  7295. ac_cv_func_mmap_fixed_mapped=no
  7296. fi
  7297. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7298. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7299. fi
  7300. fi
  7301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7302. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  7303. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7304. $as_echo "#define HAVE_MMAP 1" >>build/confdefs.h
  7305. fi
  7306. rm -f conftest.mmap conftest.txt
  7307. for ac_header in stdlib.h
  7308. do :
  7309. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  7310. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  7311. cat >>build/confdefs.h <<_ACEOF
  7312. #define HAVE_STDLIB_H 1
  7313. _ACEOF
  7314. fi
  7315. done
  7316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  7317. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  7318. if ${ac_cv_func_realloc_0_nonnull+:} false; then :
  7319. $as_echo_n "(cached) " >&6
  7320. else
  7321. if test "$cross_compiling" = yes; then :
  7322. ac_cv_func_realloc_0_nonnull=no
  7323. else
  7324. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7325. /* end build/confdefs.h. */
  7326. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  7327. # include <stdlib.h>
  7328. #else
  7329. char *realloc ();
  7330. #endif
  7331. int
  7332. main ()
  7333. {
  7334. return ! realloc (0, 0);
  7335. ;
  7336. return 0;
  7337. }
  7338. _ACEOF
  7339. if ac_fn_cxx_try_run "$LINENO"; then :
  7340. ac_cv_func_realloc_0_nonnull=yes
  7341. else
  7342. ac_cv_func_realloc_0_nonnull=no
  7343. fi
  7344. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7345. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7346. fi
  7347. fi
  7348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  7349. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  7350. if test $ac_cv_func_realloc_0_nonnull = yes; then :
  7351. $as_echo "#define HAVE_REALLOC 1" >>build/confdefs.h
  7352. else
  7353. $as_echo "#define HAVE_REALLOC 0" >>build/confdefs.h
  7354. case " $LIBOBJS " in
  7355. *" realloc.$ac_objext "* ) ;;
  7356. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  7357. ;;
  7358. esac
  7359. $as_echo "#define realloc rpl_realloc" >>build/confdefs.h
  7360. fi
  7361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  7362. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  7363. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  7364. $as_echo_n "(cached) " >&6
  7365. else
  7366. if test "$cross_compiling" = yes; then :
  7367. ac_cv_func_stat_empty_string_bug=yes
  7368. else
  7369. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7370. /* end build/confdefs.h. */
  7371. $ac_includes_default
  7372. int
  7373. main ()
  7374. {
  7375. struct stat sbuf;
  7376. return stat ("", &sbuf) == 0;
  7377. ;
  7378. return 0;
  7379. }
  7380. _ACEOF
  7381. if ac_fn_cxx_try_run "$LINENO"; then :
  7382. ac_cv_func_stat_empty_string_bug=no
  7383. else
  7384. ac_cv_func_stat_empty_string_bug=yes
  7385. fi
  7386. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7387. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7388. fi
  7389. fi
  7390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  7391. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  7392. if test $ac_cv_func_stat_empty_string_bug = yes; then
  7393. case " $LIBOBJS " in
  7394. *" stat.$ac_objext "* ) ;;
  7395. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  7396. ;;
  7397. esac
  7398. cat >>build/confdefs.h <<_ACEOF
  7399. #define HAVE_STAT_EMPTY_STRING_BUG 1
  7400. _ACEOF
  7401. fi
  7402. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
  7403. #include <sys/time.h>
  7404. #include <time.h>
  7405. "
  7406. if test "x$ac_cv_type_struct_timespec" = xyes; then :
  7407. $as_echo "#define HAVE_TIMESPEC 1" >>build/confdefs.h
  7408. fi
  7409. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  7410. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
  7411. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
  7412. $as_echo "#define HAVE_ST_MTIM 1" >>build/confdefs.h
  7413. else
  7414. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
  7415. if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
  7416. $as_echo "#define HAVE_ST_MTIMESPEC 1" >>build/confdefs.h
  7417. fi
  7418. fi
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-parameter timespecsub" >&5
  7420. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  7421. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7422. /* end build/confdefs.h. */
  7423. #include <sys/types.h>
  7424. #include <sys/time.h>
  7425. int
  7426. main ()
  7427. {
  7428. struct timespec ts1, ts2;
  7429. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  7430. #ifndef timespecsub
  7431. #error missing timespecsub
  7432. #endif
  7433. timespecsub(&ts1, &ts2);
  7434. ;
  7435. return 0;
  7436. }
  7437. _ACEOF
  7438. if ac_fn_cxx_try_compile "$LINENO"; then :
  7439. $as_echo "#define HAVE_TIMESPECSUB2 1" >>build/confdefs.h
  7440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7441. $as_echo "yes" >&6; }
  7442. else
  7443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7444. $as_echo "no" >&6; }
  7445. fi
  7446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7447. fi
  7448. for ac_func in strftime
  7449. do :
  7450. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  7451. if test "x$ac_cv_func_strftime" = xyes; then :
  7452. cat >>build/confdefs.h <<_ACEOF
  7453. #define HAVE_STRFTIME 1
  7454. _ACEOF
  7455. else
  7456. # strftime is in -lintl on SCO UNIX.
  7457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  7458. $as_echo_n "checking for strftime in -lintl... " >&6; }
  7459. if ${ac_cv_lib_intl_strftime+:} false; then :
  7460. $as_echo_n "(cached) " >&6
  7461. else
  7462. ac_check_lib_save_LIBS=$LIBS
  7463. LIBS="-lintl $LIBS"
  7464. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7465. /* end build/confdefs.h. */
  7466. /* Override any GCC internal prototype to avoid an error.
  7467. Use char because int might match the return type of a GCC
  7468. builtin and then its argument prototype would still apply. */
  7469. #ifdef __cplusplus
  7470. extern "C"
  7471. #endif
  7472. char strftime ();
  7473. int
  7474. main ()
  7475. {
  7476. return strftime ();
  7477. ;
  7478. return 0;
  7479. }
  7480. _ACEOF
  7481. if ac_fn_cxx_try_link "$LINENO"; then :
  7482. ac_cv_lib_intl_strftime=yes
  7483. else
  7484. ac_cv_lib_intl_strftime=no
  7485. fi
  7486. rm -f core conftest.err conftest.$ac_objext \
  7487. conftest$ac_exeext conftest.$ac_ext
  7488. LIBS=$ac_check_lib_save_LIBS
  7489. fi
  7490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  7491. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  7492. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  7493. $as_echo "#define HAVE_STRFTIME 1" >>build/confdefs.h
  7494. LIBS="-lintl $LIBS"
  7495. fi
  7496. fi
  7497. done
  7498. #checkpoint
  7499. cat >confcache <<\_ACEOF
  7500. # This file is a shell script that caches the results of configure
  7501. # tests run on this system so they can be shared between configure
  7502. # scripts and configure runs, see configure's option --config-cache.
  7503. # It is not useful on other systems. If it contains results you don't
  7504. # want to keep, you may remove or edit it.
  7505. #
  7506. # build/config.status only pays attention to the cache file if you give it
  7507. # the --recheck option to rerun configure.
  7508. #
  7509. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7510. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7511. # following values.
  7512. _ACEOF
  7513. # The following way of writing the cache mishandles newlines in values,
  7514. # but we know of no workaround that is simple, portable, and efficient.
  7515. # So, we kill variables containing newlines.
  7516. # Ultrix sh set writes to stderr and can't be redirected directly,
  7517. # and sets the high bit in the cache file unless we assign to the vars.
  7518. (
  7519. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7520. eval ac_val=\$$ac_var
  7521. case $ac_val in #(
  7522. *${as_nl}*)
  7523. case $ac_var in #(
  7524. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7525. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7526. esac
  7527. case $ac_var in #(
  7528. _ | IFS | as_nl) ;; #(
  7529. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7530. *) { eval $ac_var=; unset $ac_var;} ;;
  7531. esac ;;
  7532. esac
  7533. done
  7534. (set) 2>&1 |
  7535. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7536. *${as_nl}ac_space=\ *)
  7537. # `set' does not quote correctly, so add quotes: double-quote
  7538. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7539. sed -n \
  7540. "s/'/'\\\\''/g;
  7541. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7542. ;; #(
  7543. *)
  7544. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7545. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7546. ;;
  7547. esac |
  7548. sort
  7549. ) |
  7550. sed '
  7551. /^ac_cv_env_/b end
  7552. t clear
  7553. :clear
  7554. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7555. t end
  7556. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7557. :end' >>confcache
  7558. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7559. if test -w "$cache_file"; then
  7560. if test "x$cache_file" != "x/dev/null"; then
  7561. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7562. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7563. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7564. cat confcache >"$cache_file"
  7565. else
  7566. case $cache_file in #(
  7567. */* | ?:*)
  7568. mv -f confcache "$cache_file"$$ &&
  7569. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7570. *)
  7571. mv -f confcache "$cache_file" ;;
  7572. esac
  7573. fi
  7574. fi
  7575. else
  7576. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7577. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7578. fi
  7579. fi
  7580. rm -f confcache
  7581. for ac_func in clock fsync getrusage isascii getpassphrase posix_madvise madvise
  7582. do :
  7583. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7584. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7585. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7586. cat >>build/confdefs.h <<_ACEOF
  7587. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7588. _ACEOF
  7589. fi
  7590. done
  7591. for ac_func in memcpy memmem memset random rename snprintf srandom gettime
  7592. do :
  7593. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7594. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7595. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7596. cat >>build/confdefs.h <<_ACEOF
  7597. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7598. _ACEOF
  7599. fi
  7600. done
  7601. #checkpoint
  7602. cat >confcache <<\_ACEOF
  7603. # This file is a shell script that caches the results of configure
  7604. # tests run on this system so they can be shared between configure
  7605. # scripts and configure runs, see configure's option --config-cache.
  7606. # It is not useful on other systems. If it contains results you don't
  7607. # want to keep, you may remove or edit it.
  7608. #
  7609. # build/config.status only pays attention to the cache file if you give it
  7610. # the --recheck option to rerun configure.
  7611. #
  7612. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7613. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7614. # following values.
  7615. _ACEOF
  7616. # The following way of writing the cache mishandles newlines in values,
  7617. # but we know of no workaround that is simple, portable, and efficient.
  7618. # So, we kill variables containing newlines.
  7619. # Ultrix sh set writes to stderr and can't be redirected directly,
  7620. # and sets the high bit in the cache file unless we assign to the vars.
  7621. (
  7622. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7623. eval ac_val=\$$ac_var
  7624. case $ac_val in #(
  7625. *${as_nl}*)
  7626. case $ac_var in #(
  7627. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7628. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7629. esac
  7630. case $ac_var in #(
  7631. _ | IFS | as_nl) ;; #(
  7632. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7633. *) { eval $ac_var=; unset $ac_var;} ;;
  7634. esac ;;
  7635. esac
  7636. done
  7637. (set) 2>&1 |
  7638. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7639. *${as_nl}ac_space=\ *)
  7640. # `set' does not quote correctly, so add quotes: double-quote
  7641. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7642. sed -n \
  7643. "s/'/'\\\\''/g;
  7644. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7645. ;; #(
  7646. *)
  7647. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7648. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7649. ;;
  7650. esac |
  7651. sort
  7652. ) |
  7653. sed '
  7654. /^ac_cv_env_/b end
  7655. t clear
  7656. :clear
  7657. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7658. t end
  7659. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7660. :end' >>confcache
  7661. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7662. if test -w "$cache_file"; then
  7663. if test "x$cache_file" != "x/dev/null"; then
  7664. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7665. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7666. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7667. cat confcache >"$cache_file"
  7668. else
  7669. case $cache_file in #(
  7670. */* | ?:*)
  7671. mv -f confcache "$cache_file"$$ &&
  7672. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7673. *)
  7674. mv -f confcache "$cache_file" ;;
  7675. esac
  7676. fi
  7677. fi
  7678. else
  7679. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7680. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7681. fi
  7682. fi
  7683. rm -f confcache
  7684. for ac_func in strcasecmp strncasecmp vsnprintf inet_ntop
  7685. do :
  7686. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7687. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7688. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7689. cat >>build/confdefs.h <<_ACEOF
  7690. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7691. _ACEOF
  7692. fi
  7693. done
  7694. #autoscan suggested this....
  7695. #These are recommended by autoscan, but no code supports it currently
  7696. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostname getpass gettimeofday mbrlen
  7697. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  7698. for ac_func in vsprintf
  7699. do :
  7700. ac_fn_cxx_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
  7701. if test "x$ac_cv_func_vsprintf" = xyes; then :
  7702. cat >>build/confdefs.h <<_ACEOF
  7703. #define HAVE_VSPRINTF 1
  7704. _ACEOF
  7705. fi
  7706. done
  7707. if test "$ac_cv_func_vsprintf" = "no"
  7708. then
  7709. cat << 'EOF' >&2
  7710. configure: error:
  7711. Your system does not have the sprintf/vsprintf libraries.
  7712. These are required to compile almost anything. Sorry.
  7713. EOF
  7714. exit 1
  7715. fi
  7716. for ac_func in uname
  7717. do :
  7718. ac_fn_cxx_check_func "$LINENO" "uname" "ac_cv_func_uname"
  7719. if test "x$ac_cv_func_uname" = xyes; then :
  7720. cat >>build/confdefs.h <<_ACEOF
  7721. #define HAVE_UNAME 1
  7722. _ACEOF
  7723. fi
  7724. done
  7725. if test "$ac_cv_func_uname" = "no"
  7726. then
  7727. cat << 'EOF' >&2
  7728. configure: error:
  7729. Your system does not have the uname() function.
  7730. This is required for the botpack.
  7731. EOF
  7732. exit 1
  7733. fi
  7734. # Make sure we have stdc headers, since we can't compile without them
  7735. if test "$ac_cv_header_stdc" = "no"
  7736. then
  7737. cat << 'EOF' >&2
  7738. configure: error:
  7739. Your system must support ANSI C Header files.
  7740. These are required for the language support. Sorry.
  7741. EOF
  7742. exit 1
  7743. fi
  7744. #checkpoint
  7745. cat >confcache <<\_ACEOF
  7746. # This file is a shell script that caches the results of configure
  7747. # tests run on this system so they can be shared between configure
  7748. # scripts and configure runs, see configure's option --config-cache.
  7749. # It is not useful on other systems. If it contains results you don't
  7750. # want to keep, you may remove or edit it.
  7751. #
  7752. # build/config.status only pays attention to the cache file if you give it
  7753. # the --recheck option to rerun configure.
  7754. #
  7755. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7756. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7757. # following values.
  7758. _ACEOF
  7759. # The following way of writing the cache mishandles newlines in values,
  7760. # but we know of no workaround that is simple, portable, and efficient.
  7761. # So, we kill variables containing newlines.
  7762. # Ultrix sh set writes to stderr and can't be redirected directly,
  7763. # and sets the high bit in the cache file unless we assign to the vars.
  7764. (
  7765. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7766. eval ac_val=\$$ac_var
  7767. case $ac_val in #(
  7768. *${as_nl}*)
  7769. case $ac_var in #(
  7770. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7771. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7772. esac
  7773. case $ac_var in #(
  7774. _ | IFS | as_nl) ;; #(
  7775. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7776. *) { eval $ac_var=; unset $ac_var;} ;;
  7777. esac ;;
  7778. esac
  7779. done
  7780. (set) 2>&1 |
  7781. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7782. *${as_nl}ac_space=\ *)
  7783. # `set' does not quote correctly, so add quotes: double-quote
  7784. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7785. sed -n \
  7786. "s/'/'\\\\''/g;
  7787. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7788. ;; #(
  7789. *)
  7790. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7791. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7792. ;;
  7793. esac |
  7794. sort
  7795. ) |
  7796. sed '
  7797. /^ac_cv_env_/b end
  7798. t clear
  7799. :clear
  7800. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7801. t end
  7802. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7803. :end' >>confcache
  7804. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7805. if test -w "$cache_file"; then
  7806. if test "x$cache_file" != "x/dev/null"; then
  7807. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7808. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7809. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7810. cat confcache >"$cache_file"
  7811. else
  7812. case $cache_file in #(
  7813. */* | ?:*)
  7814. mv -f confcache "$cache_file"$$ &&
  7815. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7816. *)
  7817. mv -f confcache "$cache_file" ;;
  7818. esac
  7819. fi
  7820. fi
  7821. else
  7822. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7823. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7824. fi
  7825. fi
  7826. rm -f confcache
  7827. VERSION=`grep "char" $srcdir/src/main.cc | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  7828. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  7829. cat >>build/confdefs.h <<_ACEOF
  7830. #define EGG_VERSION $version_num
  7831. _ACEOF
  7832. #FIND_WRAPS
  7833. files="src/Makefile.in"
  7834. for mf in $files; do
  7835. # Strip MF so we end up with the name of the file.
  7836. mf=${mf%%:*}
  7837. dirmf=${mf%/*}
  7838. rm -f "$dirmf/.deps/includes"
  7839. test -d "$dirmf/.deps" || mkdir "$dirmf/.deps"
  7840. for file in `sed -n -e '
  7841. /^OBJS = .*\\\\$/ {
  7842. s/^OBJS = //
  7843. :loop
  7844. s/\\\\$//
  7845. p
  7846. n
  7847. /\\\\$/ b loop
  7848. p
  7849. }
  7850. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  7851. do
  7852. dirpart="${dirmf}/${file}"
  7853. dirpart="${dirpart%/*}"
  7854. if [ "${dirpart}" != "${dirmf}" ]; then
  7855. test -d "${dirpart}/.deps" || mkdir "${dirpart}/.deps"
  7856. fi
  7857. file="${file##*/}"
  7858. suffix=${file##*.}
  7859. base=${file%%.*}
  7860. test -f "$dirpart/$base.cc" || test -f "$dirpart/$base.c" || continue
  7861. if ! test -f "$dirpart/.deps/$base.Po"; then
  7862. echo '# dummy' > "$dirpart/.deps/$base.Po"
  7863. #Remove the .o file, because it needs to be recompiled for its dependancies.
  7864. if test -f "$dirpart/${base}.${suffix}"; then
  7865. rm -f "$dirpart/${base}.${suffix}"
  7866. fi
  7867. fi
  7868. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  7869. done
  7870. done
  7871. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/buildinfo.h"
  7872. GIT_REQUIRED=1
  7873. if [ "$GIT_REQUIRED" = "1" ]; then
  7874. if ! test -d .git; then
  7875. echo ""
  7876. echo ""
  7877. echo "You have downloaded a GIT version of wraith."
  7878. echo "Either 'git clone' from a git repository or download a source tarball"
  7879. echo "A distribution version can be found at http://wraith.botpack.net/wiki/Download"
  7880. echo ""
  7881. echo ""
  7882. exit 1
  7883. fi
  7884. fi
  7885. if test -d .git; then
  7886. git submodule init
  7887. git submodule update
  7888. git submodule foreach --recursive git clean -fdx
  7889. # Restore as it may have been removed by an older 'make distclean'
  7890. if ! test -f src/response.h; then
  7891. git checkout src/response.h
  7892. fi
  7893. fi
  7894. if [ -f lib/bdlib/configure ]; then
  7895. subdirs="$subdirs lib/bdlib"
  7896. fi
  7897. if [ -n "${LIBELF_BUNDLED}" ] && [ -f lib/libelf/configure ]; then
  7898. subdirs="$subdirs lib/libelf"
  7899. fi
  7900. cat >confcache <<\_ACEOF
  7901. # This file is a shell script that caches the results of configure
  7902. # tests run on this system so they can be shared between configure
  7903. # scripts and configure runs, see configure's option --config-cache.
  7904. # It is not useful on other systems. If it contains results you don't
  7905. # want to keep, you may remove or edit it.
  7906. #
  7907. # build/config.status only pays attention to the cache file if you give it
  7908. # the --recheck option to rerun configure.
  7909. #
  7910. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7911. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7912. # following values.
  7913. _ACEOF
  7914. # The following way of writing the cache mishandles newlines in values,
  7915. # but we know of no workaround that is simple, portable, and efficient.
  7916. # So, we kill variables containing newlines.
  7917. # Ultrix sh set writes to stderr and can't be redirected directly,
  7918. # and sets the high bit in the cache file unless we assign to the vars.
  7919. (
  7920. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7921. eval ac_val=\$$ac_var
  7922. case $ac_val in #(
  7923. *${as_nl}*)
  7924. case $ac_var in #(
  7925. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7926. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7927. esac
  7928. case $ac_var in #(
  7929. _ | IFS | as_nl) ;; #(
  7930. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7931. *) { eval $ac_var=; unset $ac_var;} ;;
  7932. esac ;;
  7933. esac
  7934. done
  7935. (set) 2>&1 |
  7936. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7937. *${as_nl}ac_space=\ *)
  7938. # `set' does not quote correctly, so add quotes: double-quote
  7939. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7940. sed -n \
  7941. "s/'/'\\\\''/g;
  7942. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7943. ;; #(
  7944. *)
  7945. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7946. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7947. ;;
  7948. esac |
  7949. sort
  7950. ) |
  7951. sed '
  7952. /^ac_cv_env_/b end
  7953. t clear
  7954. :clear
  7955. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7956. t end
  7957. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7958. :end' >>confcache
  7959. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7960. if test -w "$cache_file"; then
  7961. if test "x$cache_file" != "x/dev/null"; then
  7962. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7963. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7964. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7965. cat confcache >"$cache_file"
  7966. else
  7967. case $cache_file in #(
  7968. */* | ?:*)
  7969. mv -f confcache "$cache_file"$$ &&
  7970. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7971. *)
  7972. mv -f confcache "$cache_file" ;;
  7973. esac
  7974. fi
  7975. fi
  7976. else
  7977. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7978. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7979. fi
  7980. fi
  7981. rm -f confcache
  7982. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  7983. # Let make expand exec_prefix.
  7984. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7985. DEFS=-DHAVE_CONFIG_H
  7986. ac_libobjs=
  7987. ac_ltlibobjs=
  7988. U=
  7989. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  7990. # 1. Remove the extension, and $U if already installed.
  7991. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  7992. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  7993. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  7994. # will be set to the directory where LIBOBJS objects are built.
  7995. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  7996. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  7997. done
  7998. LIBOBJS=$ac_libobjs
  7999. LTLIBOBJS=$ac_ltlibobjs
  8000. : "${CONFIG_STATUS=./build/config.status}"
  8001. ac_write_fail=0
  8002. ac_clean_files_save=$ac_clean_files
  8003. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8004. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8005. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8006. as_write_fail=0
  8007. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  8008. #! $SHELL
  8009. # Generated by $as_me.
  8010. # Run this file to recreate the current configuration.
  8011. # Compiler output produced by configure, useful for debugging
  8012. # configure, is in build/config.log if it exists.
  8013. debug=false
  8014. ac_cs_recheck=false
  8015. ac_cs_silent=false
  8016. SHELL=\${CONFIG_SHELL-$SHELL}
  8017. export SHELL
  8018. _ASEOF
  8019. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  8020. ## -------------------- ##
  8021. ## M4sh Initialization. ##
  8022. ## -------------------- ##
  8023. # Be more Bourne compatible
  8024. DUALCASE=1; export DUALCASE # for MKS sh
  8025. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  8026. emulate sh
  8027. NULLCMD=:
  8028. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8029. # is contrary to our usage. Disable this feature.
  8030. alias -g '${1+"$@"}'='"$@"'
  8031. setopt NO_GLOB_SUBST
  8032. else
  8033. case `(set -o) 2>/dev/null` in #(
  8034. *posix*) :
  8035. set -o posix ;; #(
  8036. *) :
  8037. ;;
  8038. esac
  8039. fi
  8040. as_nl='
  8041. '
  8042. export as_nl
  8043. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  8044. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8045. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  8046. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  8047. # Prefer a ksh shell builtin over an external printf program on Solaris,
  8048. # but without wasting forks for bash or zsh.
  8049. if test -z "$BASH_VERSION$ZSH_VERSION" \
  8050. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  8051. as_echo='print -r --'
  8052. as_echo_n='print -rn --'
  8053. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  8054. as_echo='printf %s\n'
  8055. as_echo_n='printf %s'
  8056. else
  8057. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  8058. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  8059. as_echo_n='/usr/ucb/echo -n'
  8060. else
  8061. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  8062. as_echo_n_body='eval
  8063. arg=$1;
  8064. case $arg in #(
  8065. *"$as_nl"*)
  8066. expr "X$arg" : "X\\(.*\\)$as_nl";
  8067. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  8068. esac;
  8069. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  8070. '
  8071. export as_echo_n_body
  8072. as_echo_n='sh -c $as_echo_n_body as_echo'
  8073. fi
  8074. export as_echo_body
  8075. as_echo='sh -c $as_echo_body as_echo'
  8076. fi
  8077. # The user is always right.
  8078. if test "${PATH_SEPARATOR+set}" != set; then
  8079. PATH_SEPARATOR=:
  8080. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8081. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8082. PATH_SEPARATOR=';'
  8083. }
  8084. fi
  8085. # IFS
  8086. # We need space, tab and new line, in precisely that order. Quoting is
  8087. # there to prevent editors from complaining about space-tab.
  8088. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  8089. # splitting by setting IFS to empty value.)
  8090. IFS=" "" $as_nl"
  8091. # Find who we are. Look in the path if we contain no directory separator.
  8092. as_myself=
  8093. case $0 in #((
  8094. *[\\/]* ) as_myself=$0 ;;
  8095. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8096. for as_dir in $PATH
  8097. do
  8098. IFS=$as_save_IFS
  8099. test -z "$as_dir" && as_dir=.
  8100. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8101. done
  8102. IFS=$as_save_IFS
  8103. ;;
  8104. esac
  8105. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8106. # in which case we are not to be found in the path.
  8107. if test "x$as_myself" = x; then
  8108. as_myself=$0
  8109. fi
  8110. if test ! -f "$as_myself"; then
  8111. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8112. exit 1
  8113. fi
  8114. # Unset variables that we do not need and which cause bugs (e.g. in
  8115. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  8116. # suppresses any "Segmentation fault" message there. '((' could
  8117. # trigger a bug in pdksh 5.2.14.
  8118. for as_var in BASH_ENV ENV MAIL MAILPATH
  8119. do eval test x\${$as_var+set} = xset \
  8120. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8121. done
  8122. PS1='$ '
  8123. PS2='> '
  8124. PS4='+ '
  8125. # NLS nuisances.
  8126. LC_ALL=C
  8127. export LC_ALL
  8128. LANGUAGE=C
  8129. export LANGUAGE
  8130. # CDPATH.
  8131. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8132. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8133. # ----------------------------------------
  8134. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8135. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8136. # script with STATUS, using 1 if that was 0.
  8137. as_fn_error ()
  8138. {
  8139. as_status=$1; test $as_status -eq 0 && as_status=1
  8140. if test "$4"; then
  8141. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8142. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8143. fi
  8144. $as_echo "$as_me: error: $2" >&2
  8145. as_fn_exit $as_status
  8146. } # as_fn_error
  8147. # as_fn_set_status STATUS
  8148. # -----------------------
  8149. # Set $? to STATUS, without forking.
  8150. as_fn_set_status ()
  8151. {
  8152. return $1
  8153. } # as_fn_set_status
  8154. # as_fn_exit STATUS
  8155. # -----------------
  8156. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8157. as_fn_exit ()
  8158. {
  8159. set +e
  8160. as_fn_set_status $1
  8161. exit $1
  8162. } # as_fn_exit
  8163. # as_fn_unset VAR
  8164. # ---------------
  8165. # Portably unset VAR.
  8166. as_fn_unset ()
  8167. {
  8168. { eval $1=; unset $1;}
  8169. }
  8170. as_unset=as_fn_unset
  8171. # as_fn_append VAR VALUE
  8172. # ----------------------
  8173. # Append the text in VALUE to the end of the definition contained in VAR. Take
  8174. # advantage of any shell optimizations that allow amortized linear growth over
  8175. # repeated appends, instead of the typical quadratic growth present in naive
  8176. # implementations.
  8177. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  8178. eval 'as_fn_append ()
  8179. {
  8180. eval $1+=\$2
  8181. }'
  8182. else
  8183. as_fn_append ()
  8184. {
  8185. eval $1=\$$1\$2
  8186. }
  8187. fi # as_fn_append
  8188. # as_fn_arith ARG...
  8189. # ------------------
  8190. # Perform arithmetic evaluation on the ARGs, and store the result in the
  8191. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  8192. # must be portable across $(()) and expr.
  8193. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  8194. eval 'as_fn_arith ()
  8195. {
  8196. as_val=$(( $* ))
  8197. }'
  8198. else
  8199. as_fn_arith ()
  8200. {
  8201. as_val=`expr "$@" || test $? -eq 1`
  8202. }
  8203. fi # as_fn_arith
  8204. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8205. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8206. as_expr=expr
  8207. else
  8208. as_expr=false
  8209. fi
  8210. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  8211. as_basename=basename
  8212. else
  8213. as_basename=false
  8214. fi
  8215. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8216. as_dirname=dirname
  8217. else
  8218. as_dirname=false
  8219. fi
  8220. as_me=`$as_basename -- "$0" ||
  8221. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8222. X"$0" : 'X\(//\)$' \| \
  8223. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8224. $as_echo X/"$0" |
  8225. sed '/^.*\/\([^/][^/]*\)\/*$/{
  8226. s//\1/
  8227. q
  8228. }
  8229. /^X\/\(\/\/\)$/{
  8230. s//\1/
  8231. q
  8232. }
  8233. /^X\/\(\/\).*/{
  8234. s//\1/
  8235. q
  8236. }
  8237. s/.*/./; q'`
  8238. # Avoid depending upon Character Ranges.
  8239. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8240. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8241. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8242. as_cr_digits='0123456789'
  8243. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8244. ECHO_C= ECHO_N= ECHO_T=
  8245. case `echo -n x` in #(((((
  8246. -n*)
  8247. case `echo 'xy\c'` in
  8248. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8249. xy) ECHO_C='\c';;
  8250. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  8251. ECHO_T=' ';;
  8252. esac;;
  8253. *)
  8254. ECHO_N='-n';;
  8255. esac
  8256. rm -f conf$$ conf$$.exe conf$$.file
  8257. if test -d conf$$.dir; then
  8258. rm -f conf$$.dir/conf$$.file
  8259. else
  8260. rm -f conf$$.dir
  8261. mkdir conf$$.dir 2>/dev/null
  8262. fi
  8263. if (echo >conf$$.file) 2>/dev/null; then
  8264. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8265. as_ln_s='ln -s'
  8266. # ... but there are two gotchas:
  8267. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8268. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8269. # In both cases, we have to default to `cp -pR'.
  8270. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8271. as_ln_s='cp -pR'
  8272. elif ln conf$$.file conf$$ 2>/dev/null; then
  8273. as_ln_s=ln
  8274. else
  8275. as_ln_s='cp -pR'
  8276. fi
  8277. else
  8278. as_ln_s='cp -pR'
  8279. fi
  8280. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8281. rmdir conf$$.dir 2>/dev/null
  8282. # as_fn_mkdir_p
  8283. # -------------
  8284. # Create "$as_dir" as a directory, including parents if necessary.
  8285. as_fn_mkdir_p ()
  8286. {
  8287. case $as_dir in #(
  8288. -*) as_dir=./$as_dir;;
  8289. esac
  8290. test -d "$as_dir" || eval $as_mkdir_p || {
  8291. as_dirs=
  8292. while :; do
  8293. case $as_dir in #(
  8294. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  8295. *) as_qdir=$as_dir;;
  8296. esac
  8297. as_dirs="'$as_qdir' $as_dirs"
  8298. as_dir=`$as_dirname -- "$as_dir" ||
  8299. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8300. X"$as_dir" : 'X\(//\)[^/]' \| \
  8301. X"$as_dir" : 'X\(//\)$' \| \
  8302. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  8303. $as_echo X"$as_dir" |
  8304. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8305. s//\1/
  8306. q
  8307. }
  8308. /^X\(\/\/\)[^/].*/{
  8309. s//\1/
  8310. q
  8311. }
  8312. /^X\(\/\/\)$/{
  8313. s//\1/
  8314. q
  8315. }
  8316. /^X\(\/\).*/{
  8317. s//\1/
  8318. q
  8319. }
  8320. s/.*/./; q'`
  8321. test -d "$as_dir" && break
  8322. done
  8323. test -z "$as_dirs" || eval "mkdir $as_dirs"
  8324. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  8325. } # as_fn_mkdir_p
  8326. if mkdir -p . 2>/dev/null; then
  8327. as_mkdir_p='mkdir -p "$as_dir"'
  8328. else
  8329. test -d ./-p && rmdir ./-p
  8330. as_mkdir_p=false
  8331. fi
  8332. # as_fn_executable_p FILE
  8333. # -----------------------
  8334. # Test if FILE is an executable regular file.
  8335. as_fn_executable_p ()
  8336. {
  8337. test -f "$1" && test -x "$1"
  8338. } # as_fn_executable_p
  8339. as_test_x='test -x'
  8340. as_executable_p=as_fn_executable_p
  8341. # Sed expression to map a string onto a valid CPP name.
  8342. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8343. # Sed expression to map a string onto a valid variable name.
  8344. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8345. exec 6>&1
  8346. ## ----------------------------------- ##
  8347. ## Main body of $CONFIG_STATUS script. ##
  8348. ## ----------------------------------- ##
  8349. _ASEOF
  8350. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  8351. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8352. # Save the log message, to keep $0 and so on meaningful, and to
  8353. # report actual input values of CONFIG_FILES etc. instead of their
  8354. # values after options handling.
  8355. ac_log="
  8356. This file was extended by $as_me, which was
  8357. generated by GNU Autoconf 2.69. Invocation command line was
  8358. CONFIG_FILES = $CONFIG_FILES
  8359. CONFIG_HEADERS = $CONFIG_HEADERS
  8360. CONFIG_LINKS = $CONFIG_LINKS
  8361. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8362. $ $0 $@
  8363. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8364. "
  8365. _ACEOF
  8366. case $ac_config_files in *"
  8367. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  8368. esac
  8369. case $ac_config_headers in *"
  8370. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  8371. esac
  8372. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8373. # Files that build/config.status was made for.
  8374. config_files="$ac_config_files"
  8375. config_headers="$ac_config_headers"
  8376. _ACEOF
  8377. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8378. ac_cs_usage="\
  8379. \`$as_me' instantiates files and other configuration actions
  8380. from templates according to the current configuration. Unless the files
  8381. and actions are specified as TAGs, all are instantiated by default.
  8382. Usage: $0 [OPTION]... [TAG]...
  8383. -h, --help print this help, then exit
  8384. -V, --version print version number and configuration settings, then exit
  8385. --config print configuration, then exit
  8386. -q, --quiet, --silent
  8387. do not print progress messages
  8388. -d, --debug don't remove temporary files
  8389. --recheck update $as_me by reconfiguring in the same conditions
  8390. --file=FILE[:TEMPLATE]
  8391. instantiate the configuration file FILE
  8392. --header=FILE[:TEMPLATE]
  8393. instantiate the configuration header FILE
  8394. Configuration files:
  8395. $config_files
  8396. Configuration headers:
  8397. $config_headers
  8398. Report bugs to the package provider."
  8399. _ACEOF
  8400. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8401. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  8402. ac_cs_version="\\
  8403. build/config.status
  8404. configured by $0, generated by GNU Autoconf 2.69,
  8405. with options \\"\$ac_cs_config\\"
  8406. Copyright (C) 2012 Free Software Foundation, Inc.
  8407. This build/config.status script is free software; the Free Software Foundation
  8408. gives unlimited permission to copy, distribute and modify it."
  8409. ac_pwd='$ac_pwd'
  8410. srcdir='$srcdir'
  8411. AWK='$AWK'
  8412. test -n "\$AWK" || AWK=awk
  8413. _ACEOF
  8414. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8415. # The default lists apply if the user does not specify any file.
  8416. ac_need_defaults=:
  8417. while test $# != 0
  8418. do
  8419. case $1 in
  8420. --*=?*)
  8421. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8422. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  8423. ac_shift=:
  8424. ;;
  8425. --*=)
  8426. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8427. ac_optarg=
  8428. ac_shift=:
  8429. ;;
  8430. *)
  8431. ac_option=$1
  8432. ac_optarg=$2
  8433. ac_shift=shift
  8434. ;;
  8435. esac
  8436. case $ac_option in
  8437. # Handling of the options.
  8438. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8439. ac_cs_recheck=: ;;
  8440. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  8441. $as_echo "$ac_cs_version"; exit ;;
  8442. --config | --confi | --conf | --con | --co | --c )
  8443. $as_echo "$ac_cs_config"; exit ;;
  8444. --debug | --debu | --deb | --de | --d | -d )
  8445. debug=: ;;
  8446. --file | --fil | --fi | --f )
  8447. $ac_shift
  8448. case $ac_optarg in
  8449. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8450. '') as_fn_error $? "missing file argument" ;;
  8451. esac
  8452. as_fn_append CONFIG_FILES " '$ac_optarg'"
  8453. ac_need_defaults=false;;
  8454. --header | --heade | --head | --hea )
  8455. $ac_shift
  8456. case $ac_optarg in
  8457. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8458. esac
  8459. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  8460. ac_need_defaults=false;;
  8461. --he | --h)
  8462. # Conflict between --help and --header
  8463. as_fn_error $? "ambiguous option: \`$1'
  8464. Try \`$0 --help' for more information.";;
  8465. --help | --hel | -h )
  8466. $as_echo "$ac_cs_usage"; exit ;;
  8467. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8468. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8469. ac_cs_silent=: ;;
  8470. # This is an error.
  8471. -*) as_fn_error $? "unrecognized option: \`$1'
  8472. Try \`$0 --help' for more information." ;;
  8473. *) as_fn_append ac_config_targets " $1"
  8474. ac_need_defaults=false ;;
  8475. esac
  8476. shift
  8477. done
  8478. ac_configure_extra_args=
  8479. if $ac_cs_silent; then
  8480. exec 6>/dev/null
  8481. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8482. fi
  8483. _ACEOF
  8484. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8485. if \$ac_cs_recheck; then
  8486. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8487. shift
  8488. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  8489. CONFIG_SHELL='$SHELL'
  8490. export CONFIG_SHELL
  8491. exec "\$@"
  8492. fi
  8493. _ACEOF
  8494. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8495. exec 5>>build/config.log
  8496. {
  8497. echo
  8498. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8499. ## Running $as_me. ##
  8500. _ASBOX
  8501. $as_echo "$ac_log"
  8502. } >&5
  8503. _ACEOF
  8504. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8505. _ACEOF
  8506. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8507. # Handling of arguments.
  8508. for ac_config_target in $ac_config_targets
  8509. do
  8510. case $ac_config_target in
  8511. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  8512. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8513. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  8514. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8515. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  8516. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  8517. esac
  8518. done
  8519. # If the user did not use the arguments to specify the items to instantiate,
  8520. # then the envvar interface is used. Set only those that are not.
  8521. # We use the long form for the default assignment because of an extremely
  8522. # bizarre bug on SunOS 4.1.3.
  8523. if $ac_need_defaults; then
  8524. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8525. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8526. fi
  8527. # Have a temporary directory for convenience. Make it in the build tree
  8528. # simply because there is no reason against having it here, and in addition,
  8529. # creating and moving files from /tmp can sometimes cause problems.
  8530. # Hook for its removal unless debugging.
  8531. # Note that there is a small window in which the directory will not be cleaned:
  8532. # after its creation but before its name has been assigned to `$tmp'.
  8533. $debug ||
  8534. {
  8535. tmp= ac_tmp=
  8536. trap 'exit_status=$?
  8537. : "${ac_tmp:=$tmp}"
  8538. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  8539. ' 0
  8540. trap 'as_fn_exit 1' 1 2 13 15
  8541. }
  8542. # Create a (secure) tmp directory for tmp files.
  8543. {
  8544. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  8545. test -d "$tmp"
  8546. } ||
  8547. {
  8548. tmp=./conf$$-$RANDOM
  8549. (umask 077 && mkdir "$tmp")
  8550. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  8551. ac_tmp=$tmp
  8552. # Set up the scripts for CONFIG_FILES section.
  8553. # No need to generate them if there are no CONFIG_FILES.
  8554. # This happens for instance with `./build/config.status config.h'.
  8555. if test -n "$CONFIG_FILES"; then
  8556. ac_cr=`echo X | tr X '\015'`
  8557. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  8558. # But we know of no other shell where ac_cr would be empty at this
  8559. # point, so we can use a bashism as a fallback.
  8560. if test "x$ac_cr" = x; then
  8561. eval ac_cr=\$\'\\r\'
  8562. fi
  8563. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  8564. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  8565. ac_cs_awk_cr='\\r'
  8566. else
  8567. ac_cs_awk_cr=$ac_cr
  8568. fi
  8569. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  8570. _ACEOF
  8571. {
  8572. echo "cat >conf$$subs.awk <<_ACEOF" &&
  8573. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  8574. echo "_ACEOF"
  8575. } >conf$$subs.sh ||
  8576. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8577. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  8578. ac_delim='%!_!# '
  8579. for ac_last_try in false false false false false :; do
  8580. . ./conf$$subs.sh ||
  8581. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8582. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  8583. if test $ac_delim_n = $ac_delim_num; then
  8584. break
  8585. elif $ac_last_try; then
  8586. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8587. else
  8588. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8589. fi
  8590. done
  8591. rm -f conf$$subs.sh
  8592. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8593. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  8594. _ACEOF
  8595. sed -n '
  8596. h
  8597. s/^/S["/; s/!.*/"]=/
  8598. p
  8599. g
  8600. s/^[^!]*!//
  8601. :repl
  8602. t repl
  8603. s/'"$ac_delim"'$//
  8604. t delim
  8605. :nl
  8606. h
  8607. s/\(.\{148\}\)..*/\1/
  8608. t more1
  8609. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  8610. p
  8611. n
  8612. b repl
  8613. :more1
  8614. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8615. p
  8616. g
  8617. s/.\{148\}//
  8618. t nl
  8619. :delim
  8620. h
  8621. s/\(.\{148\}\)..*/\1/
  8622. t more2
  8623. s/["\\]/\\&/g; s/^/"/; s/$/"/
  8624. p
  8625. b
  8626. :more2
  8627. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8628. p
  8629. g
  8630. s/.\{148\}//
  8631. t delim
  8632. ' <conf$$subs.awk | sed '
  8633. /^[^""]/{
  8634. N
  8635. s/\n//
  8636. }
  8637. ' >>$CONFIG_STATUS || ac_write_fail=1
  8638. rm -f conf$$subs.awk
  8639. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8640. _ACAWK
  8641. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  8642. for (key in S) S_is_set[key] = 1
  8643. FS = ""
  8644. }
  8645. {
  8646. line = $ 0
  8647. nfields = split(line, field, "@")
  8648. substed = 0
  8649. len = length(field[1])
  8650. for (i = 2; i < nfields; i++) {
  8651. key = field[i]
  8652. keylen = length(key)
  8653. if (S_is_set[key]) {
  8654. value = S[key]
  8655. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8656. len += length(value) + length(field[++i])
  8657. substed = 1
  8658. } else
  8659. len += 1 + keylen
  8660. }
  8661. print line
  8662. }
  8663. _ACAWK
  8664. _ACEOF
  8665. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8666. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8667. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8668. else
  8669. cat
  8670. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8671. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8672. _ACEOF
  8673. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8674. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8675. # trailing colons and then remove the whole line if VPATH becomes empty
  8676. # (actually we leave an empty line to preserve line numbers).
  8677. if test "x$srcdir" = x.; then
  8678. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8679. h
  8680. s///
  8681. s/^/:/
  8682. s/[ ]*$/:/
  8683. s/:\$(srcdir):/:/g
  8684. s/:\${srcdir}:/:/g
  8685. s/:@srcdir@:/:/g
  8686. s/^:*//
  8687. s/:*$//
  8688. x
  8689. s/\(=[ ]*\).*/\1/
  8690. G
  8691. s/\n//
  8692. s/^[^=]*=[ ]*$//
  8693. }'
  8694. fi
  8695. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8696. fi # test -n "$CONFIG_FILES"
  8697. # Set up the scripts for CONFIG_HEADERS section.
  8698. # No need to generate them if there are no CONFIG_HEADERS.
  8699. # This happens for instance with `./build/config.status Makefile'.
  8700. if test -n "$CONFIG_HEADERS"; then
  8701. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  8702. BEGIN {
  8703. _ACEOF
  8704. # Transform build/confdefs.h into an awk script `defines.awk', embedded as
  8705. # here-document in build/config.status, that substitutes the proper values into
  8706. # config.h.in to produce config.h.
  8707. # Create a delimiter string that does not exist in build/confdefs.h, to ease
  8708. # handling of long lines.
  8709. ac_delim='%!_!# '
  8710. for ac_last_try in false false :; do
  8711. ac_tt=`sed -n "/$ac_delim/p" build/confdefs.h`
  8712. if test -z "$ac_tt"; then
  8713. break
  8714. elif $ac_last_try; then
  8715. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  8716. else
  8717. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8718. fi
  8719. done
  8720. # For the awk script, D is an array of macro values keyed by name,
  8721. # likewise P contains macro parameters if any. Preserve backslash
  8722. # newline sequences.
  8723. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  8724. sed -n '
  8725. s/.\{148\}/&'"$ac_delim"'/g
  8726. t rset
  8727. :rset
  8728. s/^[ ]*#[ ]*define[ ][ ]*/ /
  8729. t def
  8730. d
  8731. :def
  8732. s/\\$//
  8733. t bsnl
  8734. s/["\\]/\\&/g
  8735. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8736. D["\1"]=" \3"/p
  8737. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  8738. d
  8739. :bsnl
  8740. s/["\\]/\\&/g
  8741. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8742. D["\1"]=" \3\\\\\\n"\\/p
  8743. t cont
  8744. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  8745. t cont
  8746. d
  8747. :cont
  8748. n
  8749. s/.\{148\}/&'"$ac_delim"'/g
  8750. t clear
  8751. :clear
  8752. s/\\$//
  8753. t bsnlc
  8754. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  8755. d
  8756. :bsnlc
  8757. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  8758. b cont
  8759. ' <build/confdefs.h | sed '
  8760. s/'"$ac_delim"'/"\\\
  8761. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  8762. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8763. for (key in D) D_is_set[key] = 1
  8764. FS = ""
  8765. }
  8766. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  8767. line = \$ 0
  8768. split(line, arg, " ")
  8769. if (arg[1] == "#") {
  8770. defundef = arg[2]
  8771. mac1 = arg[3]
  8772. } else {
  8773. defundef = substr(arg[1], 2)
  8774. mac1 = arg[2]
  8775. }
  8776. split(mac1, mac2, "(") #)
  8777. macro = mac2[1]
  8778. prefix = substr(line, 1, index(line, defundef) - 1)
  8779. if (D_is_set[macro]) {
  8780. # Preserve the white space surrounding the "#".
  8781. print prefix "define", macro P[macro] D[macro]
  8782. next
  8783. } else {
  8784. # Replace #undef with comments. This is necessary, for example,
  8785. # in the case of _POSIX_SOURCE, which is predefined and required
  8786. # on some systems where configure will not decide to define it.
  8787. if (defundef == "undef") {
  8788. print "/*", prefix defundef, macro, "*/"
  8789. next
  8790. }
  8791. }
  8792. }
  8793. { print }
  8794. _ACAWK
  8795. _ACEOF
  8796. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8797. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  8798. fi # test -n "$CONFIG_HEADERS"
  8799. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  8800. shift
  8801. for ac_tag
  8802. do
  8803. case $ac_tag in
  8804. :[FHLC]) ac_mode=$ac_tag; continue;;
  8805. esac
  8806. case $ac_mode$ac_tag in
  8807. :[FHL]*:*);;
  8808. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  8809. :[FH]-) ac_tag=-:-;;
  8810. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  8811. esac
  8812. ac_save_IFS=$IFS
  8813. IFS=:
  8814. set x $ac_tag
  8815. IFS=$ac_save_IFS
  8816. shift
  8817. ac_file=$1
  8818. shift
  8819. case $ac_mode in
  8820. :L) ac_source=$1;;
  8821. :[FH])
  8822. ac_file_inputs=
  8823. for ac_f
  8824. do
  8825. case $ac_f in
  8826. -) ac_f="$ac_tmp/stdin";;
  8827. *) # Look for the file first in the build tree, then in the source tree
  8828. # (if the path is not absolute). The absolute path cannot be DOS-style,
  8829. # because $ac_f cannot contain `:'.
  8830. test -f "$ac_f" ||
  8831. case $ac_f in
  8832. [\\/$]*) false;;
  8833. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  8834. esac ||
  8835. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  8836. esac
  8837. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  8838. as_fn_append ac_file_inputs " '$ac_f'"
  8839. done
  8840. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8841. # use $as_me), people would be surprised to read:
  8842. # /* config.h. Generated by build/config.status. */
  8843. configure_input='Generated from '`
  8844. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  8845. `' by configure.'
  8846. if test x"$ac_file" != x-; then
  8847. configure_input="$ac_file. $configure_input"
  8848. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  8849. $as_echo "$as_me: creating $ac_file" >&6;}
  8850. fi
  8851. # Neutralize special characters interpreted by sed in replacement strings.
  8852. case $configure_input in #(
  8853. *\&* | *\|* | *\\* )
  8854. ac_sed_conf_input=`$as_echo "$configure_input" |
  8855. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  8856. *) ac_sed_conf_input=$configure_input;;
  8857. esac
  8858. case $ac_tag in
  8859. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  8860. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  8861. esac
  8862. ;;
  8863. esac
  8864. ac_dir=`$as_dirname -- "$ac_file" ||
  8865. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8866. X"$ac_file" : 'X\(//\)[^/]' \| \
  8867. X"$ac_file" : 'X\(//\)$' \| \
  8868. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  8869. $as_echo X"$ac_file" |
  8870. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8871. s//\1/
  8872. q
  8873. }
  8874. /^X\(\/\/\)[^/].*/{
  8875. s//\1/
  8876. q
  8877. }
  8878. /^X\(\/\/\)$/{
  8879. s//\1/
  8880. q
  8881. }
  8882. /^X\(\/\).*/{
  8883. s//\1/
  8884. q
  8885. }
  8886. s/.*/./; q'`
  8887. as_dir="$ac_dir"; as_fn_mkdir_p
  8888. ac_builddir=.
  8889. case "$ac_dir" in
  8890. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8891. *)
  8892. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8893. # A ".." for each directory in $ac_dir_suffix.
  8894. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8895. case $ac_top_builddir_sub in
  8896. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8897. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8898. esac ;;
  8899. esac
  8900. ac_abs_top_builddir=$ac_pwd
  8901. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8902. # for backward compatibility:
  8903. ac_top_builddir=$ac_top_build_prefix
  8904. case $srcdir in
  8905. .) # We are building in place.
  8906. ac_srcdir=.
  8907. ac_top_srcdir=$ac_top_builddir_sub
  8908. ac_abs_top_srcdir=$ac_pwd ;;
  8909. [\\/]* | ?:[\\/]* ) # Absolute name.
  8910. ac_srcdir=$srcdir$ac_dir_suffix;
  8911. ac_top_srcdir=$srcdir
  8912. ac_abs_top_srcdir=$srcdir ;;
  8913. *) # Relative name.
  8914. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8915. ac_top_srcdir=$ac_top_build_prefix$srcdir
  8916. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8917. esac
  8918. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8919. case $ac_mode in
  8920. :F)
  8921. #
  8922. # CONFIG_FILE
  8923. #
  8924. _ACEOF
  8925. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8926. # If the template does not know about datarootdir, expand it.
  8927. # FIXME: This hack should be removed a few years after 2.60.
  8928. ac_datarootdir_hack=; ac_datarootdir_seen=
  8929. ac_sed_dataroot='
  8930. /datarootdir/ {
  8931. p
  8932. q
  8933. }
  8934. /@datadir@/p
  8935. /@docdir@/p
  8936. /@infodir@/p
  8937. /@localedir@/p
  8938. /@mandir@/p'
  8939. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  8940. *datarootdir*) ac_datarootdir_seen=yes;;
  8941. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  8942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  8943. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  8944. _ACEOF
  8945. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8946. ac_datarootdir_hack='
  8947. s&@datadir@&$datadir&g
  8948. s&@docdir@&$docdir&g
  8949. s&@infodir@&$infodir&g
  8950. s&@localedir@&$localedir&g
  8951. s&@mandir@&$mandir&g
  8952. s&\\\${datarootdir}&$datarootdir&g' ;;
  8953. esac
  8954. _ACEOF
  8955. # Neutralize VPATH when `$srcdir' = `.'.
  8956. # Shell code in configure.ac might set extrasub.
  8957. # FIXME: do we really want to maintain this feature?
  8958. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8959. ac_sed_extra="$ac_vpsub
  8960. $extrasub
  8961. _ACEOF
  8962. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8963. :t
  8964. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8965. s|@configure_input@|$ac_sed_conf_input|;t t
  8966. s&@top_builddir@&$ac_top_builddir_sub&;t t
  8967. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  8968. s&@srcdir@&$ac_srcdir&;t t
  8969. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  8970. s&@top_srcdir@&$ac_top_srcdir&;t t
  8971. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  8972. s&@builddir@&$ac_builddir&;t t
  8973. s&@abs_builddir@&$ac_abs_builddir&;t t
  8974. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  8975. $ac_datarootdir_hack
  8976. "
  8977. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  8978. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8979. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  8980. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  8981. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  8982. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  8983. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8984. which seems to be undefined. Please make sure it is defined" >&5
  8985. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8986. which seems to be undefined. Please make sure it is defined" >&2;}
  8987. rm -f "$ac_tmp/stdin"
  8988. case $ac_file in
  8989. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  8990. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  8991. esac \
  8992. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8993. ;;
  8994. :H)
  8995. #
  8996. # CONFIG_HEADER
  8997. #
  8998. if test x"$ac_file" != x-; then
  8999. {
  9000. $as_echo "/* $configure_input */" \
  9001. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  9002. } >"$ac_tmp/config.h" \
  9003. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9004. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  9005. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  9006. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  9007. else
  9008. rm -f "$ac_file"
  9009. mv "$ac_tmp/config.h" "$ac_file" \
  9010. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9011. fi
  9012. else
  9013. $as_echo "/* $configure_input */" \
  9014. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  9015. || as_fn_error $? "could not create -" "$LINENO" 5
  9016. fi
  9017. ;;
  9018. esac
  9019. done # for ac_tag
  9020. as_fn_exit 0
  9021. _ACEOF
  9022. ac_clean_files=$ac_clean_files_save
  9023. test $ac_write_fail = 0 ||
  9024. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  9025. # configure is writing to build/config.log, and then calls build/config.status.
  9026. # build/config.status does its own redirection, appending to build/config.log.
  9027. # Unfortunately, on DOS this fails, as build/config.log is still kept open
  9028. # by configure, so build/config.status won't be able to write to it; its
  9029. # output is simply discarded. So we exec the FD to /dev/null,
  9030. # effectively closing build/config.log, so it can be properly (re)opened and
  9031. # appended to by build/config.status. When coming back to configure, we
  9032. # need to make the FD available again.
  9033. if test "$no_create" != yes; then
  9034. ac_cs_success=:
  9035. ac_config_status_args=
  9036. test "$silent" = yes &&
  9037. ac_config_status_args="$ac_config_status_args --quiet"
  9038. exec 5>/dev/null
  9039. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9040. exec 5>>build/config.log
  9041. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9042. # would make configure fail if this is the last instruction.
  9043. $ac_cs_success || as_fn_exit 1
  9044. fi
  9045. #
  9046. # CONFIG_SUBDIRS section.
  9047. #
  9048. if test "$no_recursion" != yes; then
  9049. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  9050. # so they do not pile up.
  9051. ac_sub_configure_args=
  9052. ac_prev=
  9053. eval "set x $ac_configure_args"
  9054. shift
  9055. for ac_arg
  9056. do
  9057. if test -n "$ac_prev"; then
  9058. ac_prev=
  9059. continue
  9060. fi
  9061. case $ac_arg in
  9062. -cache-file | --cache-file | --cache-fil | --cache-fi \
  9063. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  9064. ac_prev=cache_file ;;
  9065. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  9066. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  9067. | --c=*)
  9068. ;;
  9069. --config-cache | -C)
  9070. ;;
  9071. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  9072. ac_prev=srcdir ;;
  9073. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  9074. ;;
  9075. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  9076. ac_prev=prefix ;;
  9077. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  9078. ;;
  9079. --disable-option-checking)
  9080. ;;
  9081. *)
  9082. case $ac_arg in
  9083. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9084. esac
  9085. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  9086. esac
  9087. done
  9088. # Always prepend --prefix to ensure using the same prefix
  9089. # in subdir configurations.
  9090. ac_arg="--prefix=$prefix"
  9091. case $ac_arg in
  9092. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9093. esac
  9094. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  9095. # Pass --silent
  9096. if test "$silent" = yes; then
  9097. ac_sub_configure_args="--silent $ac_sub_configure_args"
  9098. fi
  9099. # Always prepend --disable-option-checking to silence warnings, since
  9100. # different subdirs can have different --enable and --with options.
  9101. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  9102. ac_popdir=`pwd`
  9103. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  9104. # Do not complain, so a configure script can configure whichever
  9105. # parts of a large source tree are present.
  9106. test -d "$srcdir/$ac_dir" || continue
  9107. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  9108. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  9109. $as_echo "$ac_msg" >&6
  9110. as_dir="$ac_dir"; as_fn_mkdir_p
  9111. ac_builddir=.
  9112. case "$ac_dir" in
  9113. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9114. *)
  9115. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9116. # A ".." for each directory in $ac_dir_suffix.
  9117. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9118. case $ac_top_builddir_sub in
  9119. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9120. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9121. esac ;;
  9122. esac
  9123. ac_abs_top_builddir=$ac_pwd
  9124. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9125. # for backward compatibility:
  9126. ac_top_builddir=$ac_top_build_prefix
  9127. case $srcdir in
  9128. .) # We are building in place.
  9129. ac_srcdir=.
  9130. ac_top_srcdir=$ac_top_builddir_sub
  9131. ac_abs_top_srcdir=$ac_pwd ;;
  9132. [\\/]* | ?:[\\/]* ) # Absolute name.
  9133. ac_srcdir=$srcdir$ac_dir_suffix;
  9134. ac_top_srcdir=$srcdir
  9135. ac_abs_top_srcdir=$srcdir ;;
  9136. *) # Relative name.
  9137. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9138. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9139. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9140. esac
  9141. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9142. cd "$ac_dir"
  9143. # Check for guested configure; otherwise get Cygnus style configure.
  9144. if test -f "$ac_srcdir/configure.gnu"; then
  9145. ac_sub_configure=$ac_srcdir/configure.gnu
  9146. elif test -f "$ac_srcdir/configure"; then
  9147. ac_sub_configure=$ac_srcdir/configure
  9148. elif test -f "$ac_srcdir/configure.in"; then
  9149. # This should be Cygnus configure.
  9150. ac_sub_configure=$ac_aux_dir/configure
  9151. else
  9152. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  9153. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  9154. ac_sub_configure=
  9155. fi
  9156. # The recursion is here.
  9157. if test -n "$ac_sub_configure"; then
  9158. # Make the cache file name correct relative to the subdirectory.
  9159. case $cache_file in
  9160. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  9161. *) # Relative name.
  9162. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  9163. esac
  9164. { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  9165. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  9166. # The eval makes quoting arguments work.
  9167. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  9168. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  9169. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  9170. fi
  9171. cd "$ac_popdir"
  9172. done
  9173. fi
  9174. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9175. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9176. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9177. fi
  9178. CXX="$CXX" CXXFLAGS="$CXXFLAGS" TCL_INCLUDES="$TCL_INCLUDES" SSL_INCLUDES="$SSL_INCLUDES" \
  9179. SED="$SED" src/generate_defs.sh || exit 1