configure 231 KB

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