configure 231 KB

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