configure 177 KB

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