configure 294 KB

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