configure 173 KB

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