configure 221 KB

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