configure 221 KB

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