configure 238 KB

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