configure 186 KB

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