configure 385 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for aria2c 0.5.2.
  4. #
  5. # Report bugs to <tujikawa@rednoah.com>.
  6. #
  7. # Copyright (C) 2003 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 Bourne compatible
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. DUALCASE=1; export DUALCASE # for MKS sh
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30. # Work around bugs in pre-3.0 UWIN ksh.
  31. $as_unset ENV MAIL MAILPATH
  32. PS1='$ '
  33. PS2='> '
  34. PS4='+ '
  35. # NLS nuisances.
  36. for as_var in \
  37. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  38. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  39. LC_TELEPHONE LC_TIME
  40. do
  41. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42. eval $as_var=C; export $as_var
  43. else
  44. $as_unset $as_var
  45. fi
  46. done
  47. # Required to use basename.
  48. if expr a : '\(a\)' >/dev/null 2>&1; then
  49. as_expr=expr
  50. else
  51. as_expr=false
  52. fi
  53. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  54. as_basename=basename
  55. else
  56. as_basename=false
  57. fi
  58. # Name of the executable.
  59. as_me=`$as_basename "$0" ||
  60. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  61. X"$0" : 'X\(//\)$' \| \
  62. X"$0" : 'X\(/\)$' \| \
  63. . : '\(.\)' 2>/dev/null ||
  64. echo X/"$0" |
  65. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  66. /^X\/\(\/\/\)$/{ s//\1/; q; }
  67. /^X\/\(\/\).*/{ s//\1/; q; }
  68. s/.*/./; q'`
  69. # PATH needs CR, and LINENO needs CR and PATH.
  70. # Avoid depending upon Character Ranges.
  71. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  72. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  73. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  74. as_cr_digits='0123456789'
  75. as_cr_alnum=$as_cr_Letters$as_cr_digits
  76. # The user is always right.
  77. if test "${PATH_SEPARATOR+set}" != set; then
  78. echo "#! /bin/sh" >conf$$.sh
  79. echo "exit 0" >>conf$$.sh
  80. chmod +x conf$$.sh
  81. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  82. PATH_SEPARATOR=';'
  83. else
  84. PATH_SEPARATOR=:
  85. fi
  86. rm -f conf$$.sh
  87. fi
  88. as_lineno_1=$LINENO
  89. as_lineno_2=$LINENO
  90. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  91. test "x$as_lineno_1" != "x$as_lineno_2" &&
  92. test "x$as_lineno_3" = "x$as_lineno_2" || {
  93. # Find who we are. Look in the path if we contain no path at all
  94. # relative or not.
  95. case $0 in
  96. *[\\/]* ) as_myself=$0 ;;
  97. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98. for as_dir in $PATH
  99. do
  100. IFS=$as_save_IFS
  101. test -z "$as_dir" && as_dir=.
  102. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  103. done
  104. ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109. as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  113. { (exit 1); exit 1; }; }
  114. fi
  115. case $CONFIG_SHELL in
  116. '')
  117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  118. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  119. do
  120. IFS=$as_save_IFS
  121. test -z "$as_dir" && as_dir=.
  122. for as_base in sh bash ksh sh5; do
  123. case $as_dir in
  124. /*)
  125. if ("$as_dir/$as_base" -c '
  126. as_lineno_1=$LINENO
  127. as_lineno_2=$LINENO
  128. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  129. test "x$as_lineno_1" != "x$as_lineno_2" &&
  130. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  131. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  132. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  133. CONFIG_SHELL=$as_dir/$as_base
  134. export CONFIG_SHELL
  135. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  136. fi;;
  137. esac
  138. done
  139. done
  140. ;;
  141. esac
  142. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  143. # uniformly replaced by the line number. The first 'sed' inserts a
  144. # line-number line before each line; the second 'sed' does the real
  145. # work. The second script uses 'N' to pair each line-number line
  146. # with the numbered line, and appends trailing '-' during
  147. # substitution so that $LINENO is not a special case at line end.
  148. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  149. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  150. sed '=' <$as_myself |
  151. sed '
  152. N
  153. s,$,-,
  154. : loop
  155. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  156. t loop
  157. s,-$,,
  158. s,^['$as_cr_digits']*\n,,
  159. ' >$as_me.lineno &&
  160. chmod +x $as_me.lineno ||
  161. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  162. { (exit 1); exit 1; }; }
  163. # Don't try to exec as it changes $[0], causing all sort of problems
  164. # (the dirname of $[0] is not the place where we might find the
  165. # original and so on. Autoconf is especially sensible to this).
  166. . ./$as_me.lineno
  167. # Exit status is that of the last command.
  168. exit
  169. }
  170. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  171. *c*,-n*) ECHO_N= ECHO_C='
  172. ' ECHO_T=' ' ;;
  173. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  174. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  175. esac
  176. if expr a : '\(a\)' >/dev/null 2>&1; then
  177. as_expr=expr
  178. else
  179. as_expr=false
  180. fi
  181. rm -f conf$$ conf$$.exe conf$$.file
  182. echo >conf$$.file
  183. if ln -s conf$$.file conf$$ 2>/dev/null; then
  184. # We could just check for DJGPP; but this test a) works b) is more generic
  185. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  186. if test -f conf$$.exe; then
  187. # Don't use ln at all; we don't have any links
  188. as_ln_s='cp -p'
  189. else
  190. as_ln_s='ln -s'
  191. fi
  192. elif ln conf$$.file conf$$ 2>/dev/null; then
  193. as_ln_s=ln
  194. else
  195. as_ln_s='cp -p'
  196. fi
  197. rm -f conf$$ conf$$.exe conf$$.file
  198. if mkdir -p . 2>/dev/null; then
  199. as_mkdir_p=:
  200. else
  201. test -d ./-p && rmdir ./-p
  202. as_mkdir_p=false
  203. fi
  204. as_executable_p="test -f"
  205. # Sed expression to map a string onto a valid CPP name.
  206. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  207. # Sed expression to map a string onto a valid variable name.
  208. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  209. # IFS
  210. # We need space, tab and new line, in precisely that order.
  211. as_nl='
  212. '
  213. IFS=" $as_nl"
  214. # CDPATH.
  215. $as_unset CDPATH
  216. # Name of the host.
  217. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  218. # so uname gets run too.
  219. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  220. exec 6>&1
  221. #
  222. # Initializations.
  223. #
  224. ac_default_prefix=/usr/local
  225. ac_config_libobj_dir=.
  226. cross_compiling=no
  227. subdirs=
  228. MFLAGS=
  229. MAKEFLAGS=
  230. SHELL=${CONFIG_SHELL-/bin/sh}
  231. # Maximum number of lines to put in a shell here document.
  232. # This variable seems obsolete. It should probably be removed, and
  233. # only ac_max_sed_lines should be used.
  234. : ${ac_max_here_lines=38}
  235. # Identity of this package.
  236. PACKAGE_NAME='aria2c'
  237. PACKAGE_TARNAME='aria2c'
  238. PACKAGE_VERSION='0.5.2'
  239. PACKAGE_STRING='aria2c 0.5.2'
  240. PACKAGE_BUGREPORT='tujikawa@rednoah.com'
  241. ac_unique_file="src/Socket.h"
  242. # Factoring default headers for most tests.
  243. ac_includes_default="\
  244. #include <stdio.h>
  245. #if HAVE_SYS_TYPES_H
  246. # include <sys/types.h>
  247. #endif
  248. #if HAVE_SYS_STAT_H
  249. # include <sys/stat.h>
  250. #endif
  251. #if STDC_HEADERS
  252. # include <stdlib.h>
  253. # include <stddef.h>
  254. #else
  255. # if HAVE_STDLIB_H
  256. # include <stdlib.h>
  257. # endif
  258. #endif
  259. #if HAVE_STRING_H
  260. # if !STDC_HEADERS && HAVE_MEMORY_H
  261. # include <memory.h>
  262. # endif
  263. # include <string.h>
  264. #endif
  265. #if HAVE_STRINGS_H
  266. # include <strings.h>
  267. #endif
  268. #if HAVE_INTTYPES_H
  269. # include <inttypes.h>
  270. #else
  271. # if HAVE_STDINT_H
  272. # include <stdint.h>
  273. # endif
  274. #endif
  275. #if HAVE_UNISTD_H
  276. # include <unistd.h>
  277. #endif"
  278. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CPPUNIT_CONFIG CPPUNIT_CFLAGS CPPUNIT_LIBS localedir CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB YACC XML2_CONFIG XML_CPPFLAGS XML_LIBS LIBGNUTLS_CONFIG LIBGNUTLS_CFLAGS LIBGNUTLS_LIBS LIBGCRYPT_CONFIG LIBGCRYPT_CFLAGS LIBGCRYPT_LIBS OPENSSL_LIBS OPENSSL_CFLAGS ALLOCA CPP EGREP MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS LTLIBOBJS'
  279. ac_subst_files=''
  280. # Initialize some variables set by options.
  281. ac_init_help=
  282. ac_init_version=false
  283. # The variables have the same names as the options, with
  284. # dashes changed to underlines.
  285. cache_file=/dev/null
  286. exec_prefix=NONE
  287. no_create=
  288. no_recursion=
  289. prefix=NONE
  290. program_prefix=NONE
  291. program_suffix=NONE
  292. program_transform_name=s,x,x,
  293. silent=
  294. site=
  295. srcdir=
  296. verbose=
  297. x_includes=NONE
  298. x_libraries=NONE
  299. # Installation directory options.
  300. # These are left unexpanded so users can "make install exec_prefix=/foo"
  301. # and all the variables that are supposed to be based on exec_prefix
  302. # by default will actually change.
  303. # Use braces instead of parens because sh, perl, etc. also accept them.
  304. bindir='${exec_prefix}/bin'
  305. sbindir='${exec_prefix}/sbin'
  306. libexecdir='${exec_prefix}/libexec'
  307. datadir='${prefix}/share'
  308. sysconfdir='${prefix}/etc'
  309. sharedstatedir='${prefix}/com'
  310. localstatedir='${prefix}/var'
  311. libdir='${exec_prefix}/lib'
  312. includedir='${prefix}/include'
  313. oldincludedir='/usr/include'
  314. infodir='${prefix}/info'
  315. mandir='${prefix}/man'
  316. ac_prev=
  317. for ac_option
  318. do
  319. # If the previous option needs an argument, assign it.
  320. if test -n "$ac_prev"; then
  321. eval "$ac_prev=\$ac_option"
  322. ac_prev=
  323. continue
  324. fi
  325. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  326. # Accept the important Cygnus configure options, so we can diagnose typos.
  327. case $ac_option in
  328. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  329. ac_prev=bindir ;;
  330. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  331. bindir=$ac_optarg ;;
  332. -build | --build | --buil | --bui | --bu)
  333. ac_prev=build_alias ;;
  334. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  335. build_alias=$ac_optarg ;;
  336. -cache-file | --cache-file | --cache-fil | --cache-fi \
  337. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  338. ac_prev=cache_file ;;
  339. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  340. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  341. cache_file=$ac_optarg ;;
  342. --config-cache | -C)
  343. cache_file=config.cache ;;
  344. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  345. ac_prev=datadir ;;
  346. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  347. | --da=*)
  348. datadir=$ac_optarg ;;
  349. -disable-* | --disable-*)
  350. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  351. # Reject names that are not valid shell variable names.
  352. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  353. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  354. { (exit 1); exit 1; }; }
  355. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  356. eval "enable_$ac_feature=no" ;;
  357. -enable-* | --enable-*)
  358. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  359. # Reject names that are not valid shell variable names.
  360. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  361. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  362. { (exit 1); exit 1; }; }
  363. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  364. case $ac_option in
  365. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  366. *) ac_optarg=yes ;;
  367. esac
  368. eval "enable_$ac_feature='$ac_optarg'" ;;
  369. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  370. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  371. | --exec | --exe | --ex)
  372. ac_prev=exec_prefix ;;
  373. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  374. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  375. | --exec=* | --exe=* | --ex=*)
  376. exec_prefix=$ac_optarg ;;
  377. -gas | --gas | --ga | --g)
  378. # Obsolete; use --with-gas.
  379. with_gas=yes ;;
  380. -help | --help | --hel | --he | -h)
  381. ac_init_help=long ;;
  382. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  383. ac_init_help=recursive ;;
  384. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  385. ac_init_help=short ;;
  386. -host | --host | --hos | --ho)
  387. ac_prev=host_alias ;;
  388. -host=* | --host=* | --hos=* | --ho=*)
  389. host_alias=$ac_optarg ;;
  390. -includedir | --includedir | --includedi | --included | --include \
  391. | --includ | --inclu | --incl | --inc)
  392. ac_prev=includedir ;;
  393. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  394. | --includ=* | --inclu=* | --incl=* | --inc=*)
  395. includedir=$ac_optarg ;;
  396. -infodir | --infodir | --infodi | --infod | --info | --inf)
  397. ac_prev=infodir ;;
  398. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  399. infodir=$ac_optarg ;;
  400. -libdir | --libdir | --libdi | --libd)
  401. ac_prev=libdir ;;
  402. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  403. libdir=$ac_optarg ;;
  404. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  405. | --libexe | --libex | --libe)
  406. ac_prev=libexecdir ;;
  407. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  408. | --libexe=* | --libex=* | --libe=*)
  409. libexecdir=$ac_optarg ;;
  410. -localstatedir | --localstatedir | --localstatedi | --localstated \
  411. | --localstate | --localstat | --localsta | --localst \
  412. | --locals | --local | --loca | --loc | --lo)
  413. ac_prev=localstatedir ;;
  414. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  415. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  416. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  417. localstatedir=$ac_optarg ;;
  418. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  419. ac_prev=mandir ;;
  420. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  421. mandir=$ac_optarg ;;
  422. -nfp | --nfp | --nf)
  423. # Obsolete; use --without-fp.
  424. with_fp=no ;;
  425. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  426. | --no-cr | --no-c | -n)
  427. no_create=yes ;;
  428. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  429. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  430. no_recursion=yes ;;
  431. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  432. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  433. | --oldin | --oldi | --old | --ol | --o)
  434. ac_prev=oldincludedir ;;
  435. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  436. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  437. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  438. oldincludedir=$ac_optarg ;;
  439. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  440. ac_prev=prefix ;;
  441. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  442. prefix=$ac_optarg ;;
  443. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  444. | --program-pre | --program-pr | --program-p)
  445. ac_prev=program_prefix ;;
  446. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  447. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  448. program_prefix=$ac_optarg ;;
  449. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  450. | --program-suf | --program-su | --program-s)
  451. ac_prev=program_suffix ;;
  452. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  453. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  454. program_suffix=$ac_optarg ;;
  455. -program-transform-name | --program-transform-name \
  456. | --program-transform-nam | --program-transform-na \
  457. | --program-transform-n | --program-transform- \
  458. | --program-transform | --program-transfor \
  459. | --program-transfo | --program-transf \
  460. | --program-trans | --program-tran \
  461. | --progr-tra | --program-tr | --program-t)
  462. ac_prev=program_transform_name ;;
  463. -program-transform-name=* | --program-transform-name=* \
  464. | --program-transform-nam=* | --program-transform-na=* \
  465. | --program-transform-n=* | --program-transform-=* \
  466. | --program-transform=* | --program-transfor=* \
  467. | --program-transfo=* | --program-transf=* \
  468. | --program-trans=* | --program-tran=* \
  469. | --progr-tra=* | --program-tr=* | --program-t=*)
  470. program_transform_name=$ac_optarg ;;
  471. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  472. | -silent | --silent | --silen | --sile | --sil)
  473. silent=yes ;;
  474. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  475. ac_prev=sbindir ;;
  476. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  477. | --sbi=* | --sb=*)
  478. sbindir=$ac_optarg ;;
  479. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  480. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  481. | --sharedst | --shareds | --shared | --share | --shar \
  482. | --sha | --sh)
  483. ac_prev=sharedstatedir ;;
  484. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  485. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  486. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  487. | --sha=* | --sh=*)
  488. sharedstatedir=$ac_optarg ;;
  489. -site | --site | --sit)
  490. ac_prev=site ;;
  491. -site=* | --site=* | --sit=*)
  492. site=$ac_optarg ;;
  493. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  494. ac_prev=srcdir ;;
  495. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  496. srcdir=$ac_optarg ;;
  497. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  498. | --syscon | --sysco | --sysc | --sys | --sy)
  499. ac_prev=sysconfdir ;;
  500. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  501. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  502. sysconfdir=$ac_optarg ;;
  503. -target | --target | --targe | --targ | --tar | --ta | --t)
  504. ac_prev=target_alias ;;
  505. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  506. target_alias=$ac_optarg ;;
  507. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  508. verbose=yes ;;
  509. -version | --version | --versio | --versi | --vers | -V)
  510. ac_init_version=: ;;
  511. -with-* | --with-*)
  512. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  513. # Reject names that are not valid shell variable names.
  514. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  515. { echo "$as_me: error: invalid package name: $ac_package" >&2
  516. { (exit 1); exit 1; }; }
  517. ac_package=`echo $ac_package| sed 's/-/_/g'`
  518. case $ac_option in
  519. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  520. *) ac_optarg=yes ;;
  521. esac
  522. eval "with_$ac_package='$ac_optarg'" ;;
  523. -without-* | --without-*)
  524. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  525. # Reject names that are not valid shell variable names.
  526. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  527. { echo "$as_me: error: invalid package name: $ac_package" >&2
  528. { (exit 1); exit 1; }; }
  529. ac_package=`echo $ac_package | sed 's/-/_/g'`
  530. eval "with_$ac_package=no" ;;
  531. --x)
  532. # Obsolete; use --with-x.
  533. with_x=yes ;;
  534. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  535. | --x-incl | --x-inc | --x-in | --x-i)
  536. ac_prev=x_includes ;;
  537. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  538. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  539. x_includes=$ac_optarg ;;
  540. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  541. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  542. ac_prev=x_libraries ;;
  543. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  544. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  545. x_libraries=$ac_optarg ;;
  546. -*) { echo "$as_me: error: unrecognized option: $ac_option
  547. Try \`$0 --help' for more information." >&2
  548. { (exit 1); exit 1; }; }
  549. ;;
  550. *=*)
  551. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  552. # Reject names that are not valid shell variable names.
  553. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  554. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  555. { (exit 1); exit 1; }; }
  556. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  557. eval "$ac_envvar='$ac_optarg'"
  558. export $ac_envvar ;;
  559. *)
  560. # FIXME: should be removed in autoconf 3.0.
  561. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  562. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  563. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  564. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  565. ;;
  566. esac
  567. done
  568. if test -n "$ac_prev"; then
  569. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  570. { echo "$as_me: error: missing argument to $ac_option" >&2
  571. { (exit 1); exit 1; }; }
  572. fi
  573. # Be sure to have absolute paths.
  574. for ac_var in exec_prefix prefix
  575. do
  576. eval ac_val=$`echo $ac_var`
  577. case $ac_val in
  578. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  579. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  580. { (exit 1); exit 1; }; };;
  581. esac
  582. done
  583. # Be sure to have absolute paths.
  584. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  585. localstatedir libdir includedir oldincludedir infodir mandir
  586. do
  587. eval ac_val=$`echo $ac_var`
  588. case $ac_val in
  589. [\\/$]* | ?:[\\/]* ) ;;
  590. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  591. { (exit 1); exit 1; }; };;
  592. esac
  593. done
  594. # There might be people who depend on the old broken behavior: `$host'
  595. # used to hold the argument of --host etc.
  596. # FIXME: To remove some day.
  597. build=$build_alias
  598. host=$host_alias
  599. target=$target_alias
  600. # FIXME: To remove some day.
  601. if test "x$host_alias" != x; then
  602. if test "x$build_alias" = x; then
  603. cross_compiling=maybe
  604. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  605. If a cross compiler is detected then cross compile mode will be used." >&2
  606. elif test "x$build_alias" != "x$host_alias"; then
  607. cross_compiling=yes
  608. fi
  609. fi
  610. ac_tool_prefix=
  611. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  612. test "$silent" = yes && exec 6>/dev/null
  613. # Find the source files, if location was not specified.
  614. if test -z "$srcdir"; then
  615. ac_srcdir_defaulted=yes
  616. # Try the directory containing this script, then its parent.
  617. ac_confdir=`(dirname "$0") 2>/dev/null ||
  618. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  619. X"$0" : 'X\(//\)[^/]' \| \
  620. X"$0" : 'X\(//\)$' \| \
  621. X"$0" : 'X\(/\)' \| \
  622. . : '\(.\)' 2>/dev/null ||
  623. echo X"$0" |
  624. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  625. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  626. /^X\(\/\/\)$/{ s//\1/; q; }
  627. /^X\(\/\).*/{ s//\1/; q; }
  628. s/.*/./; q'`
  629. srcdir=$ac_confdir
  630. if test ! -r $srcdir/$ac_unique_file; then
  631. srcdir=..
  632. fi
  633. else
  634. ac_srcdir_defaulted=no
  635. fi
  636. if test ! -r $srcdir/$ac_unique_file; then
  637. if test "$ac_srcdir_defaulted" = yes; then
  638. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  639. { (exit 1); exit 1; }; }
  640. else
  641. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  642. { (exit 1); exit 1; }; }
  643. fi
  644. fi
  645. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  646. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  647. { (exit 1); exit 1; }; }
  648. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  649. ac_env_build_alias_set=${build_alias+set}
  650. ac_env_build_alias_value=$build_alias
  651. ac_cv_env_build_alias_set=${build_alias+set}
  652. ac_cv_env_build_alias_value=$build_alias
  653. ac_env_host_alias_set=${host_alias+set}
  654. ac_env_host_alias_value=$host_alias
  655. ac_cv_env_host_alias_set=${host_alias+set}
  656. ac_cv_env_host_alias_value=$host_alias
  657. ac_env_target_alias_set=${target_alias+set}
  658. ac_env_target_alias_value=$target_alias
  659. ac_cv_env_target_alias_set=${target_alias+set}
  660. ac_cv_env_target_alias_value=$target_alias
  661. ac_env_CXX_set=${CXX+set}
  662. ac_env_CXX_value=$CXX
  663. ac_cv_env_CXX_set=${CXX+set}
  664. ac_cv_env_CXX_value=$CXX
  665. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  666. ac_env_CXXFLAGS_value=$CXXFLAGS
  667. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  668. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  669. ac_env_LDFLAGS_set=${LDFLAGS+set}
  670. ac_env_LDFLAGS_value=$LDFLAGS
  671. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_cv_env_LDFLAGS_value=$LDFLAGS
  673. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  674. ac_env_CPPFLAGS_value=$CPPFLAGS
  675. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_env_CC_set=${CC+set}
  678. ac_env_CC_value=$CC
  679. ac_cv_env_CC_set=${CC+set}
  680. ac_cv_env_CC_value=$CC
  681. ac_env_CFLAGS_set=${CFLAGS+set}
  682. ac_env_CFLAGS_value=$CFLAGS
  683. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  684. ac_cv_env_CFLAGS_value=$CFLAGS
  685. ac_env_CPP_set=${CPP+set}
  686. ac_env_CPP_value=$CPP
  687. ac_cv_env_CPP_set=${CPP+set}
  688. ac_cv_env_CPP_value=$CPP
  689. #
  690. # Report the --help message.
  691. #
  692. if test "$ac_init_help" = "long"; then
  693. # Omit some internal or obsolete options to make the list less imposing.
  694. # This message is too long to be a string in the A/UX 3.1 sh.
  695. cat <<_ACEOF
  696. \`configure' configures aria2c 0.5.2 to adapt to many kinds of systems.
  697. Usage: $0 [OPTION]... [VAR=VALUE]...
  698. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  699. VAR=VALUE. See below for descriptions of some of the useful variables.
  700. Defaults for the options are specified in brackets.
  701. Configuration:
  702. -h, --help display this help and exit
  703. --help=short display options specific to this package
  704. --help=recursive display the short help of all the included packages
  705. -V, --version display version information and exit
  706. -q, --quiet, --silent do not print \`checking...' messages
  707. --cache-file=FILE cache test results in FILE [disabled]
  708. -C, --config-cache alias for \`--cache-file=config.cache'
  709. -n, --no-create do not create output files
  710. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  711. _ACEOF
  712. cat <<_ACEOF
  713. Installation directories:
  714. --prefix=PREFIX install architecture-independent files in PREFIX
  715. [$ac_default_prefix]
  716. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  717. [PREFIX]
  718. By default, \`make install' will install all the files in
  719. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  720. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  721. for instance \`--prefix=\$HOME'.
  722. For better control, use the options below.
  723. Fine tuning of the installation directories:
  724. --bindir=DIR user executables [EPREFIX/bin]
  725. --sbindir=DIR system admin executables [EPREFIX/sbin]
  726. --libexecdir=DIR program executables [EPREFIX/libexec]
  727. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  728. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  729. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  730. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  731. --libdir=DIR object code libraries [EPREFIX/lib]
  732. --includedir=DIR C header files [PREFIX/include]
  733. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  734. --infodir=DIR info documentation [PREFIX/info]
  735. --mandir=DIR man documentation [PREFIX/man]
  736. _ACEOF
  737. cat <<\_ACEOF
  738. Program names:
  739. --program-prefix=PREFIX prepend PREFIX to installed program names
  740. --program-suffix=SUFFIX append SUFFIX to installed program names
  741. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  742. System types:
  743. --build=BUILD configure for building on BUILD [guessed]
  744. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  745. _ACEOF
  746. fi
  747. if test -n "$ac_init_help"; then
  748. case $ac_init_help in
  749. short | recursive ) echo "Configuration of aria2c 0.5.2:";;
  750. esac
  751. cat <<\_ACEOF
  752. Optional Features:
  753. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  754. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  755. --disable-dependency-tracking speeds up one-time build
  756. --enable-dependency-tracking do not reject slow dependency extractors
  757. --disable-xmltest Do not try to compile and run a test LIBXML program
  758. --disable-nls do not use Native Language Support
  759. --disable-rpath do not hardcode runtime library paths
  760. Optional Packages:
  761. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  762. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  763. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  764. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  765. --with-gnutls use gnutls library if installed. Default: yes
  766. --with-openssl use openssl library if installed. Default: yes
  767. --with-libxml2 use libxml2 library if installed. Default: yes
  768. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  769. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  770. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  771. --with-libgcrypt-prefix=PFX
  772. prefix where LIBGCRYPT is installed (optional)
  773. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  774. --with-gnu-ld assume the C compiler uses GNU ld default=no
  775. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  776. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  777. --with-included-gettext use the GNU gettext library included here
  778. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  779. --without-libintl-prefix don't search for libintl in includedir and libdir
  780. Some influential environment variables:
  781. CXX C++ compiler command
  782. CXXFLAGS C++ compiler flags
  783. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  784. nonstandard directory <lib dir>
  785. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  786. headers in a nonstandard directory <include dir>
  787. CC C compiler command
  788. CFLAGS C compiler flags
  789. CPP C preprocessor
  790. Use these variables to override the choices made by `configure' or to help
  791. it to find libraries and programs with nonstandard names/locations.
  792. Report bugs to <tujikawa@rednoah.com>.
  793. _ACEOF
  794. fi
  795. if test "$ac_init_help" = "recursive"; then
  796. # If there are subdirs, report their specific --help.
  797. ac_popdir=`pwd`
  798. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  799. test -d $ac_dir || continue
  800. ac_builddir=.
  801. if test "$ac_dir" != .; then
  802. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  803. # A "../" for each directory in $ac_dir_suffix.
  804. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  805. else
  806. ac_dir_suffix= ac_top_builddir=
  807. fi
  808. case $srcdir in
  809. .) # No --srcdir option. We are building in place.
  810. ac_srcdir=.
  811. if test -z "$ac_top_builddir"; then
  812. ac_top_srcdir=.
  813. else
  814. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  815. fi ;;
  816. [\\/]* | ?:[\\/]* ) # Absolute path.
  817. ac_srcdir=$srcdir$ac_dir_suffix;
  818. ac_top_srcdir=$srcdir ;;
  819. *) # Relative path.
  820. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  821. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  822. esac
  823. # Do not use `cd foo && pwd` to compute absolute paths, because
  824. # the directories may not exist.
  825. case `pwd` in
  826. .) ac_abs_builddir="$ac_dir";;
  827. *)
  828. case "$ac_dir" in
  829. .) ac_abs_builddir=`pwd`;;
  830. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  831. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  832. esac;;
  833. esac
  834. case $ac_abs_builddir in
  835. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  836. *)
  837. case ${ac_top_builddir}. in
  838. .) ac_abs_top_builddir=$ac_abs_builddir;;
  839. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  840. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  841. esac;;
  842. esac
  843. case $ac_abs_builddir in
  844. .) ac_abs_srcdir=$ac_srcdir;;
  845. *)
  846. case $ac_srcdir in
  847. .) ac_abs_srcdir=$ac_abs_builddir;;
  848. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  849. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  850. esac;;
  851. esac
  852. case $ac_abs_builddir in
  853. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  854. *)
  855. case $ac_top_srcdir in
  856. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  857. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  858. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  859. esac;;
  860. esac
  861. cd $ac_dir
  862. # Check for guested configure; otherwise get Cygnus style configure.
  863. if test -f $ac_srcdir/configure.gnu; then
  864. echo
  865. $SHELL $ac_srcdir/configure.gnu --help=recursive
  866. elif test -f $ac_srcdir/configure; then
  867. echo
  868. $SHELL $ac_srcdir/configure --help=recursive
  869. elif test -f $ac_srcdir/configure.ac ||
  870. test -f $ac_srcdir/configure.in; then
  871. echo
  872. $ac_configure --help
  873. else
  874. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  875. fi
  876. cd "$ac_popdir"
  877. done
  878. fi
  879. test -n "$ac_init_help" && exit 0
  880. if $ac_init_version; then
  881. cat <<\_ACEOF
  882. aria2c configure 0.5.2
  883. generated by GNU Autoconf 2.59
  884. Copyright (C) 2003 Free Software Foundation, Inc.
  885. This configure script is free software; the Free Software Foundation
  886. gives unlimited permission to copy, distribute and modify it.
  887. _ACEOF
  888. exit 0
  889. fi
  890. exec 5>config.log
  891. cat >&5 <<_ACEOF
  892. This file contains any messages produced by compilers while
  893. running configure, to aid debugging if configure makes a mistake.
  894. It was created by aria2c $as_me 0.5.2, which was
  895. generated by GNU Autoconf 2.59. Invocation command line was
  896. $ $0 $@
  897. _ACEOF
  898. {
  899. cat <<_ASUNAME
  900. ## --------- ##
  901. ## Platform. ##
  902. ## --------- ##
  903. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  904. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  905. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  906. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  907. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  908. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  909. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  910. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  911. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  912. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  913. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  914. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  915. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  916. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  917. _ASUNAME
  918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  919. for as_dir in $PATH
  920. do
  921. IFS=$as_save_IFS
  922. test -z "$as_dir" && as_dir=.
  923. echo "PATH: $as_dir"
  924. done
  925. } >&5
  926. cat >&5 <<_ACEOF
  927. ## ----------- ##
  928. ## Core tests. ##
  929. ## ----------- ##
  930. _ACEOF
  931. # Keep a trace of the command line.
  932. # Strip out --no-create and --no-recursion so they do not pile up.
  933. # Strip out --silent because we don't want to record it for future runs.
  934. # Also quote any args containing shell meta-characters.
  935. # Make two passes to allow for proper duplicate-argument suppression.
  936. ac_configure_args=
  937. ac_configure_args0=
  938. ac_configure_args1=
  939. ac_sep=
  940. ac_must_keep_next=false
  941. for ac_pass in 1 2
  942. do
  943. for ac_arg
  944. do
  945. case $ac_arg in
  946. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  947. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  948. | -silent | --silent | --silen | --sile | --sil)
  949. continue ;;
  950. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  951. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  952. esac
  953. case $ac_pass in
  954. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  955. 2)
  956. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  957. if test $ac_must_keep_next = true; then
  958. ac_must_keep_next=false # Got value, back to normal.
  959. else
  960. case $ac_arg in
  961. *=* | --config-cache | -C | -disable-* | --disable-* \
  962. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  963. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  964. | -with-* | --with-* | -without-* | --without-* | --x)
  965. case "$ac_configure_args0 " in
  966. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  967. esac
  968. ;;
  969. -* ) ac_must_keep_next=true ;;
  970. esac
  971. fi
  972. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  973. # Get rid of the leading space.
  974. ac_sep=" "
  975. ;;
  976. esac
  977. done
  978. done
  979. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  980. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  981. # When interrupted or exit'd, cleanup temporary files, and complete
  982. # config.log. We remove comments because anyway the quotes in there
  983. # would cause problems or look ugly.
  984. # WARNING: Be sure not to use single quotes in there, as some shells,
  985. # such as our DU 5.0 friend, will then `close' the trap.
  986. trap 'exit_status=$?
  987. # Save into config.log some information that might help in debugging.
  988. {
  989. echo
  990. cat <<\_ASBOX
  991. ## ---------------- ##
  992. ## Cache variables. ##
  993. ## ---------------- ##
  994. _ASBOX
  995. echo
  996. # The following way of writing the cache mishandles newlines in values,
  997. {
  998. (set) 2>&1 |
  999. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1000. *ac_space=\ *)
  1001. sed -n \
  1002. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1003. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1004. ;;
  1005. *)
  1006. sed -n \
  1007. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1008. ;;
  1009. esac;
  1010. }
  1011. echo
  1012. cat <<\_ASBOX
  1013. ## ----------------- ##
  1014. ## Output variables. ##
  1015. ## ----------------- ##
  1016. _ASBOX
  1017. echo
  1018. for ac_var in $ac_subst_vars
  1019. do
  1020. eval ac_val=$`echo $ac_var`
  1021. echo "$ac_var='"'"'$ac_val'"'"'"
  1022. done | sort
  1023. echo
  1024. if test -n "$ac_subst_files"; then
  1025. cat <<\_ASBOX
  1026. ## ------------- ##
  1027. ## Output files. ##
  1028. ## ------------- ##
  1029. _ASBOX
  1030. echo
  1031. for ac_var in $ac_subst_files
  1032. do
  1033. eval ac_val=$`echo $ac_var`
  1034. echo "$ac_var='"'"'$ac_val'"'"'"
  1035. done | sort
  1036. echo
  1037. fi
  1038. if test -s confdefs.h; then
  1039. cat <<\_ASBOX
  1040. ## ----------- ##
  1041. ## confdefs.h. ##
  1042. ## ----------- ##
  1043. _ASBOX
  1044. echo
  1045. sed "/^$/d" confdefs.h | sort
  1046. echo
  1047. fi
  1048. test "$ac_signal" != 0 &&
  1049. echo "$as_me: caught signal $ac_signal"
  1050. echo "$as_me: exit $exit_status"
  1051. } >&5
  1052. rm -f core *.core &&
  1053. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1054. exit $exit_status
  1055. ' 0
  1056. for ac_signal in 1 2 13 15; do
  1057. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1058. done
  1059. ac_signal=0
  1060. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1061. rm -rf conftest* confdefs.h
  1062. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1063. echo >confdefs.h
  1064. # Predefined preprocessor variables.
  1065. cat >>confdefs.h <<_ACEOF
  1066. #define PACKAGE_NAME "$PACKAGE_NAME"
  1067. _ACEOF
  1068. cat >>confdefs.h <<_ACEOF
  1069. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1070. _ACEOF
  1071. cat >>confdefs.h <<_ACEOF
  1072. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1073. _ACEOF
  1074. cat >>confdefs.h <<_ACEOF
  1075. #define PACKAGE_STRING "$PACKAGE_STRING"
  1076. _ACEOF
  1077. cat >>confdefs.h <<_ACEOF
  1078. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1079. _ACEOF
  1080. # Let the site file select an alternate cache file if it wants to.
  1081. # Prefer explicitly selected file to automatically selected ones.
  1082. if test -z "$CONFIG_SITE"; then
  1083. if test "x$prefix" != xNONE; then
  1084. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1085. else
  1086. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1087. fi
  1088. fi
  1089. for ac_site_file in $CONFIG_SITE; do
  1090. if test -r "$ac_site_file"; then
  1091. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1092. echo "$as_me: loading site script $ac_site_file" >&6;}
  1093. sed 's/^/| /' "$ac_site_file" >&5
  1094. . "$ac_site_file"
  1095. fi
  1096. done
  1097. if test -r "$cache_file"; then
  1098. # Some versions of bash will fail to source /dev/null (special
  1099. # files actually), so we avoid doing that.
  1100. if test -f "$cache_file"; then
  1101. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1102. echo "$as_me: loading cache $cache_file" >&6;}
  1103. case $cache_file in
  1104. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1105. *) . ./$cache_file;;
  1106. esac
  1107. fi
  1108. else
  1109. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1110. echo "$as_me: creating cache $cache_file" >&6;}
  1111. >$cache_file
  1112. fi
  1113. # Check that the precious variables saved in the cache have kept the same
  1114. # value.
  1115. ac_cache_corrupted=false
  1116. for ac_var in `(set) 2>&1 |
  1117. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1118. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1119. eval ac_new_set=\$ac_env_${ac_var}_set
  1120. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1121. eval ac_new_val="\$ac_env_${ac_var}_value"
  1122. case $ac_old_set,$ac_new_set in
  1123. set,)
  1124. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1125. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1126. ac_cache_corrupted=: ;;
  1127. ,set)
  1128. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1129. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1130. ac_cache_corrupted=: ;;
  1131. ,);;
  1132. *)
  1133. if test "x$ac_old_val" != "x$ac_new_val"; then
  1134. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1135. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1136. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1137. echo "$as_me: former value: $ac_old_val" >&2;}
  1138. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1139. echo "$as_me: current value: $ac_new_val" >&2;}
  1140. ac_cache_corrupted=:
  1141. fi;;
  1142. esac
  1143. # Pass precious variables to config.status.
  1144. if test "$ac_new_set" = set; then
  1145. case $ac_new_val in
  1146. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1147. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1148. *) ac_arg=$ac_var=$ac_new_val ;;
  1149. esac
  1150. case " $ac_configure_args " in
  1151. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1152. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1153. esac
  1154. fi
  1155. done
  1156. if $ac_cache_corrupted; then
  1157. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1158. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1159. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1160. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1161. { (exit 1); exit 1; }; }
  1162. fi
  1163. ac_ext=c
  1164. ac_cpp='$CPP $CPPFLAGS'
  1165. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1166. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1167. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1168. am__api_version="1.9"
  1169. ac_aux_dir=
  1170. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1171. if test -f $ac_dir/install-sh; then
  1172. ac_aux_dir=$ac_dir
  1173. ac_install_sh="$ac_aux_dir/install-sh -c"
  1174. break
  1175. elif test -f $ac_dir/install.sh; then
  1176. ac_aux_dir=$ac_dir
  1177. ac_install_sh="$ac_aux_dir/install.sh -c"
  1178. break
  1179. elif test -f $ac_dir/shtool; then
  1180. ac_aux_dir=$ac_dir
  1181. ac_install_sh="$ac_aux_dir/shtool install -c"
  1182. break
  1183. fi
  1184. done
  1185. if test -z "$ac_aux_dir"; then
  1186. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1187. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1188. { (exit 1); exit 1; }; }
  1189. fi
  1190. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1191. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1192. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1193. # Find a good install program. We prefer a C program (faster),
  1194. # so one script is as good as another. But avoid the broken or
  1195. # incompatible versions:
  1196. # SysV /etc/install, /usr/sbin/install
  1197. # SunOS /usr/etc/install
  1198. # IRIX /sbin/install
  1199. # AIX /bin/install
  1200. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1201. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1202. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1203. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1204. # OS/2's system install, which has a completely different semantic
  1205. # ./install, which can be erroneously created by make from ./install.sh.
  1206. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1207. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1208. if test -z "$INSTALL"; then
  1209. if test "${ac_cv_path_install+set}" = set; then
  1210. echo $ECHO_N "(cached) $ECHO_C" >&6
  1211. else
  1212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1213. for as_dir in $PATH
  1214. do
  1215. IFS=$as_save_IFS
  1216. test -z "$as_dir" && as_dir=.
  1217. # Account for people who put trailing slashes in PATH elements.
  1218. case $as_dir/ in
  1219. ./ | .// | /cC/* | \
  1220. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1221. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1222. /usr/ucb/* ) ;;
  1223. *)
  1224. # OSF1 and SCO ODT 3.0 have their own names for install.
  1225. # Don't use installbsd from OSF since it installs stuff as root
  1226. # by default.
  1227. for ac_prog in ginstall scoinst install; do
  1228. for ac_exec_ext in '' $ac_executable_extensions; do
  1229. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1230. if test $ac_prog = install &&
  1231. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1232. # AIX install. It has an incompatible calling convention.
  1233. :
  1234. elif test $ac_prog = install &&
  1235. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1236. # program-specific install script used by HP pwplus--don't use.
  1237. :
  1238. else
  1239. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1240. break 3
  1241. fi
  1242. fi
  1243. done
  1244. done
  1245. ;;
  1246. esac
  1247. done
  1248. fi
  1249. if test "${ac_cv_path_install+set}" = set; then
  1250. INSTALL=$ac_cv_path_install
  1251. else
  1252. # As a last resort, use the slow shell script. We don't cache a
  1253. # path for INSTALL within a source directory, because that will
  1254. # break other packages using the cache if that directory is
  1255. # removed, or if the path is relative.
  1256. INSTALL=$ac_install_sh
  1257. fi
  1258. fi
  1259. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1260. echo "${ECHO_T}$INSTALL" >&6
  1261. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1262. # It thinks the first close brace ends the variable substitution.
  1263. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1264. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1265. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1266. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1267. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1268. # Just in case
  1269. sleep 1
  1270. echo timestamp > conftest.file
  1271. # Do `set' in a subshell so we don't clobber the current shell's
  1272. # arguments. Must try -L first in case configure is actually a
  1273. # symlink; some systems play weird games with the mod time of symlinks
  1274. # (eg FreeBSD returns the mod time of the symlink's containing
  1275. # directory).
  1276. if (
  1277. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1278. if test "$*" = "X"; then
  1279. # -L didn't work.
  1280. set X `ls -t $srcdir/configure conftest.file`
  1281. fi
  1282. rm -f conftest.file
  1283. if test "$*" != "X $srcdir/configure conftest.file" \
  1284. && test "$*" != "X conftest.file $srcdir/configure"; then
  1285. # If neither matched, then we have a broken ls. This can happen
  1286. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1287. # broken ls alias from the environment. This has actually
  1288. # happened. Such a system could not be considered "sane".
  1289. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1290. alias in your environment" >&5
  1291. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1292. alias in your environment" >&2;}
  1293. { (exit 1); exit 1; }; }
  1294. fi
  1295. test "$2" = conftest.file
  1296. )
  1297. then
  1298. # Ok.
  1299. :
  1300. else
  1301. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1302. Check your system clock" >&5
  1303. echo "$as_me: error: newly created file is older than distributed files!
  1304. Check your system clock" >&2;}
  1305. { (exit 1); exit 1; }; }
  1306. fi
  1307. echo "$as_me:$LINENO: result: yes" >&5
  1308. echo "${ECHO_T}yes" >&6
  1309. test "$program_prefix" != NONE &&
  1310. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1311. # Use a double $ so make ignores it.
  1312. test "$program_suffix" != NONE &&
  1313. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1314. # Double any \ or $. echo might interpret backslashes.
  1315. # By default was `s,x,x', remove it if useless.
  1316. cat <<\_ACEOF >conftest.sed
  1317. s/[\\$]/&&/g;s/;s,x,x,$//
  1318. _ACEOF
  1319. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1320. rm conftest.sed
  1321. # expand $ac_aux_dir to an absolute path
  1322. am_aux_dir=`cd $ac_aux_dir && pwd`
  1323. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1324. # Use eval to expand $SHELL
  1325. if eval "$MISSING --run true"; then
  1326. am_missing_run="$MISSING --run "
  1327. else
  1328. am_missing_run=
  1329. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1330. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1331. fi
  1332. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1333. # We used to keeping the `.' as first argument, in order to
  1334. # allow $(mkdir_p) to be used without argument. As in
  1335. # $(mkdir_p) $(somedir)
  1336. # where $(somedir) is conditionally defined. However this is wrong
  1337. # for two reasons:
  1338. # 1. if the package is installed by a user who cannot write `.'
  1339. # make install will fail,
  1340. # 2. the above comment should most certainly read
  1341. # $(mkdir_p) $(DESTDIR)$(somedir)
  1342. # so it does not work when $(somedir) is undefined and
  1343. # $(DESTDIR) is not.
  1344. # To support the latter case, we have to write
  1345. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1346. # so the `.' trick is pointless.
  1347. mkdir_p='mkdir -p --'
  1348. else
  1349. # On NextStep and OpenStep, the `mkdir' command does not
  1350. # recognize any option. It will interpret all options as
  1351. # directories to create, and then abort because `.' already
  1352. # exists.
  1353. for d in ./-p ./--version;
  1354. do
  1355. test -d $d && rmdir $d
  1356. done
  1357. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1358. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1359. mkdir_p='$(mkinstalldirs)'
  1360. else
  1361. mkdir_p='$(install_sh) -d'
  1362. fi
  1363. fi
  1364. for ac_prog in gawk mawk nawk awk
  1365. do
  1366. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1367. set dummy $ac_prog; ac_word=$2
  1368. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1369. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1370. if test "${ac_cv_prog_AWK+set}" = set; then
  1371. echo $ECHO_N "(cached) $ECHO_C" >&6
  1372. else
  1373. if test -n "$AWK"; then
  1374. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1375. else
  1376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1377. for as_dir in $PATH
  1378. do
  1379. IFS=$as_save_IFS
  1380. test -z "$as_dir" && as_dir=.
  1381. for ac_exec_ext in '' $ac_executable_extensions; do
  1382. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1383. ac_cv_prog_AWK="$ac_prog"
  1384. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1385. break 2
  1386. fi
  1387. done
  1388. done
  1389. fi
  1390. fi
  1391. AWK=$ac_cv_prog_AWK
  1392. if test -n "$AWK"; then
  1393. echo "$as_me:$LINENO: result: $AWK" >&5
  1394. echo "${ECHO_T}$AWK" >&6
  1395. else
  1396. echo "$as_me:$LINENO: result: no" >&5
  1397. echo "${ECHO_T}no" >&6
  1398. fi
  1399. test -n "$AWK" && break
  1400. done
  1401. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1402. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1403. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1404. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1405. echo $ECHO_N "(cached) $ECHO_C" >&6
  1406. else
  1407. cat >conftest.make <<\_ACEOF
  1408. all:
  1409. @echo 'ac_maketemp="$(MAKE)"'
  1410. _ACEOF
  1411. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1412. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1413. if test -n "$ac_maketemp"; then
  1414. eval ac_cv_prog_make_${ac_make}_set=yes
  1415. else
  1416. eval ac_cv_prog_make_${ac_make}_set=no
  1417. fi
  1418. rm -f conftest.make
  1419. fi
  1420. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1421. echo "$as_me:$LINENO: result: yes" >&5
  1422. echo "${ECHO_T}yes" >&6
  1423. SET_MAKE=
  1424. else
  1425. echo "$as_me:$LINENO: result: no" >&5
  1426. echo "${ECHO_T}no" >&6
  1427. SET_MAKE="MAKE=${MAKE-make}"
  1428. fi
  1429. rm -rf .tst 2>/dev/null
  1430. mkdir .tst 2>/dev/null
  1431. if test -d .tst; then
  1432. am__leading_dot=.
  1433. else
  1434. am__leading_dot=_
  1435. fi
  1436. rmdir .tst 2>/dev/null
  1437. # test to see if srcdir already configured
  1438. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1439. test -f $srcdir/config.status; then
  1440. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1441. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1442. { (exit 1); exit 1; }; }
  1443. fi
  1444. # test whether we have cygpath
  1445. if test -z "$CYGPATH_W"; then
  1446. if (cygpath --version) >/dev/null 2>/dev/null; then
  1447. CYGPATH_W='cygpath -w'
  1448. else
  1449. CYGPATH_W=echo
  1450. fi
  1451. fi
  1452. # Define the identity of the package.
  1453. PACKAGE='aria2c'
  1454. VERSION='0.5.2'
  1455. cat >>confdefs.h <<_ACEOF
  1456. #define PACKAGE "$PACKAGE"
  1457. _ACEOF
  1458. cat >>confdefs.h <<_ACEOF
  1459. #define VERSION "$VERSION"
  1460. _ACEOF
  1461. # Some tools Automake needs.
  1462. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1463. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1464. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1465. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1466. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1467. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1468. # Installed binaries are usually stripped using `strip' when the user
  1469. # run `make install-strip'. However `strip' might not be the right
  1470. # tool to use in cross-compilation environments, therefore Automake
  1471. # will honor the `STRIP' environment variable to overrule this program.
  1472. if test "$cross_compiling" != no; then
  1473. if test -n "$ac_tool_prefix"; then
  1474. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1475. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1476. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1477. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1478. if test "${ac_cv_prog_STRIP+set}" = set; then
  1479. echo $ECHO_N "(cached) $ECHO_C" >&6
  1480. else
  1481. if test -n "$STRIP"; then
  1482. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1483. else
  1484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1485. for as_dir in $PATH
  1486. do
  1487. IFS=$as_save_IFS
  1488. test -z "$as_dir" && as_dir=.
  1489. for ac_exec_ext in '' $ac_executable_extensions; do
  1490. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1491. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1492. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1493. break 2
  1494. fi
  1495. done
  1496. done
  1497. fi
  1498. fi
  1499. STRIP=$ac_cv_prog_STRIP
  1500. if test -n "$STRIP"; then
  1501. echo "$as_me:$LINENO: result: $STRIP" >&5
  1502. echo "${ECHO_T}$STRIP" >&6
  1503. else
  1504. echo "$as_me:$LINENO: result: no" >&5
  1505. echo "${ECHO_T}no" >&6
  1506. fi
  1507. fi
  1508. if test -z "$ac_cv_prog_STRIP"; then
  1509. ac_ct_STRIP=$STRIP
  1510. # Extract the first word of "strip", so it can be a program name with args.
  1511. set dummy strip; ac_word=$2
  1512. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1513. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1514. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1515. echo $ECHO_N "(cached) $ECHO_C" >&6
  1516. else
  1517. if test -n "$ac_ct_STRIP"; then
  1518. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1519. else
  1520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1521. for as_dir in $PATH
  1522. do
  1523. IFS=$as_save_IFS
  1524. test -z "$as_dir" && as_dir=.
  1525. for ac_exec_ext in '' $ac_executable_extensions; do
  1526. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1527. ac_cv_prog_ac_ct_STRIP="strip"
  1528. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1529. break 2
  1530. fi
  1531. done
  1532. done
  1533. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1534. fi
  1535. fi
  1536. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1537. if test -n "$ac_ct_STRIP"; then
  1538. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1539. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1540. else
  1541. echo "$as_me:$LINENO: result: no" >&5
  1542. echo "${ECHO_T}no" >&6
  1543. fi
  1544. STRIP=$ac_ct_STRIP
  1545. else
  1546. STRIP="$ac_cv_prog_STRIP"
  1547. fi
  1548. fi
  1549. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1550. # We need awk for the "check" target. The system "awk" is bad on
  1551. # some platforms.
  1552. # Always define AMTAR for backward compatibility.
  1553. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1554. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1555. # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
  1556. if test "${with_cppunit_prefix+set}" = set; then
  1557. withval="$with_cppunit_prefix"
  1558. cppunit_config_prefix="$withval"
  1559. else
  1560. cppunit_config_prefix=""
  1561. fi;
  1562. # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
  1563. if test "${with_cppunit_exec_prefix+set}" = set; then
  1564. withval="$with_cppunit_exec_prefix"
  1565. cppunit_config_exec_prefix="$withval"
  1566. else
  1567. cppunit_config_exec_prefix=""
  1568. fi;
  1569. if test x$cppunit_config_exec_prefix != x ; then
  1570. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  1571. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1572. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  1573. fi
  1574. fi
  1575. if test x$cppunit_config_prefix != x ; then
  1576. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  1577. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1578. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  1579. fi
  1580. fi
  1581. # Extract the first word of "cppunit-config", so it can be a program name with args.
  1582. set dummy cppunit-config; ac_word=$2
  1583. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1584. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1585. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  1586. echo $ECHO_N "(cached) $ECHO_C" >&6
  1587. else
  1588. case $CPPUNIT_CONFIG in
  1589. [\\/]* | ?:[\\/]*)
  1590. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  1591. ;;
  1592. *)
  1593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1594. for as_dir in $PATH
  1595. do
  1596. IFS=$as_save_IFS
  1597. test -z "$as_dir" && as_dir=.
  1598. for ac_exec_ext in '' $ac_executable_extensions; do
  1599. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1600. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  1601. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1602. break 2
  1603. fi
  1604. done
  1605. done
  1606. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  1607. ;;
  1608. esac
  1609. fi
  1610. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  1611. if test -n "$CPPUNIT_CONFIG"; then
  1612. echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  1613. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
  1614. else
  1615. echo "$as_me:$LINENO: result: no" >&5
  1616. echo "${ECHO_T}no" >&6
  1617. fi
  1618. cppunit_version_min=1.10.2
  1619. echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  1620. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
  1621. no_cppunit=""
  1622. if test "$CPPUNIT_CONFIG" = "no" ; then
  1623. no_cppunit=yes
  1624. else
  1625. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  1626. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  1627. cppunit_version=`$CPPUNIT_CONFIG --version`
  1628. cppunit_major_version=`echo $cppunit_version | \
  1629. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1630. cppunit_minor_version=`echo $cppunit_version | \
  1631. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1632. cppunit_micro_version=`echo $cppunit_version | \
  1633. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1634. cppunit_major_min=`echo $cppunit_version_min | \
  1635. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1636. cppunit_minor_min=`echo $cppunit_version_min | \
  1637. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1638. cppunit_micro_min=`echo $cppunit_version_min | \
  1639. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1640. cppunit_version_proper=`expr \
  1641. $cppunit_major_version \> $cppunit_major_min \| \
  1642. $cppunit_major_version \= $cppunit_major_min \& \
  1643. $cppunit_minor_version \> $cppunit_minor_min \| \
  1644. $cppunit_major_version \= $cppunit_major_min \& \
  1645. $cppunit_minor_version \= $cppunit_minor_min \& \
  1646. $cppunit_micro_version \>= $cppunit_micro_min `
  1647. if test "$cppunit_version_proper" = "1" ; then
  1648. echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  1649. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
  1650. else
  1651. echo "$as_me:$LINENO: result: no" >&5
  1652. echo "${ECHO_T}no" >&6
  1653. no_cppunit=yes
  1654. fi
  1655. fi
  1656. if test "x$no_cppunit" = x ; then
  1657. :
  1658. else
  1659. CPPUNIT_CFLAGS=""
  1660. CPPUNIT_LIBS=""
  1661. :
  1662. fi
  1663. ac_config_headers="$ac_config_headers config.h"
  1664. # Set localedir
  1665. localedir=${datadir}/locale
  1666. # Checks for arguments.
  1667. # Check whether --with-gnutls or --without-gnutls was given.
  1668. if test "${with_gnutls+set}" = set; then
  1669. withval="$with_gnutls"
  1670. with_gnutls=$enableval
  1671. else
  1672. with_gnutls=yes
  1673. fi;
  1674. # Check whether --with-openssl or --without-openssl was given.
  1675. if test "${with_openssl+set}" = set; then
  1676. withval="$with_openssl"
  1677. with_openssl=$enableval
  1678. else
  1679. with_openssl=yes
  1680. fi;
  1681. # Check whether --with-libxml2 or --without-libxml2 was given.
  1682. if test "${with_libxml2+set}" = set; then
  1683. withval="$with_libxml2"
  1684. with_libxml2=$enableval
  1685. else
  1686. with_libxml2=yes
  1687. fi;
  1688. # Checks for programs.
  1689. ac_ext=cc
  1690. ac_cpp='$CXXCPP $CPPFLAGS'
  1691. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1692. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1693. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1694. if test -n "$ac_tool_prefix"; then
  1695. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1696. do
  1697. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1698. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1699. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1700. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1701. if test "${ac_cv_prog_CXX+set}" = set; then
  1702. echo $ECHO_N "(cached) $ECHO_C" >&6
  1703. else
  1704. if test -n "$CXX"; then
  1705. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1706. else
  1707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1708. for as_dir in $PATH
  1709. do
  1710. IFS=$as_save_IFS
  1711. test -z "$as_dir" && as_dir=.
  1712. for ac_exec_ext in '' $ac_executable_extensions; do
  1713. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1714. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1715. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1716. break 2
  1717. fi
  1718. done
  1719. done
  1720. fi
  1721. fi
  1722. CXX=$ac_cv_prog_CXX
  1723. if test -n "$CXX"; then
  1724. echo "$as_me:$LINENO: result: $CXX" >&5
  1725. echo "${ECHO_T}$CXX" >&6
  1726. else
  1727. echo "$as_me:$LINENO: result: no" >&5
  1728. echo "${ECHO_T}no" >&6
  1729. fi
  1730. test -n "$CXX" && break
  1731. done
  1732. fi
  1733. if test -z "$CXX"; then
  1734. ac_ct_CXX=$CXX
  1735. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1736. do
  1737. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1738. set dummy $ac_prog; ac_word=$2
  1739. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1740. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1741. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1742. echo $ECHO_N "(cached) $ECHO_C" >&6
  1743. else
  1744. if test -n "$ac_ct_CXX"; then
  1745. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1746. else
  1747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1748. for as_dir in $PATH
  1749. do
  1750. IFS=$as_save_IFS
  1751. test -z "$as_dir" && as_dir=.
  1752. for ac_exec_ext in '' $ac_executable_extensions; do
  1753. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1754. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1755. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1756. break 2
  1757. fi
  1758. done
  1759. done
  1760. fi
  1761. fi
  1762. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1763. if test -n "$ac_ct_CXX"; then
  1764. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1765. echo "${ECHO_T}$ac_ct_CXX" >&6
  1766. else
  1767. echo "$as_me:$LINENO: result: no" >&5
  1768. echo "${ECHO_T}no" >&6
  1769. fi
  1770. test -n "$ac_ct_CXX" && break
  1771. done
  1772. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1773. CXX=$ac_ct_CXX
  1774. fi
  1775. # Provide some information about the compiler.
  1776. echo "$as_me:$LINENO:" \
  1777. "checking for C++ compiler version" >&5
  1778. ac_compiler=`set X $ac_compile; echo $2`
  1779. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1780. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1781. ac_status=$?
  1782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1783. (exit $ac_status); }
  1784. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1785. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1786. ac_status=$?
  1787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1788. (exit $ac_status); }
  1789. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1790. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1791. ac_status=$?
  1792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1793. (exit $ac_status); }
  1794. cat >conftest.$ac_ext <<_ACEOF
  1795. /* confdefs.h. */
  1796. _ACEOF
  1797. cat confdefs.h >>conftest.$ac_ext
  1798. cat >>conftest.$ac_ext <<_ACEOF
  1799. /* end confdefs.h. */
  1800. int
  1801. main ()
  1802. {
  1803. ;
  1804. return 0;
  1805. }
  1806. _ACEOF
  1807. ac_clean_files_save=$ac_clean_files
  1808. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1809. # Try to create an executable without -o first, disregard a.out.
  1810. # It will help us diagnose broken compilers, and finding out an intuition
  1811. # of exeext.
  1812. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1813. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1814. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1815. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1816. (eval $ac_link_default) 2>&5
  1817. ac_status=$?
  1818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1819. (exit $ac_status); }; then
  1820. # Find the output, starting from the most likely. This scheme is
  1821. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1822. # resort.
  1823. # Be careful to initialize this variable, since it used to be cached.
  1824. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1825. ac_cv_exeext=
  1826. # b.out is created by i960 compilers.
  1827. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1828. do
  1829. test -f "$ac_file" || continue
  1830. case $ac_file in
  1831. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1832. ;;
  1833. conftest.$ac_ext )
  1834. # This is the source file.
  1835. ;;
  1836. [ab].out )
  1837. # We found the default executable, but exeext='' is most
  1838. # certainly right.
  1839. break;;
  1840. *.* )
  1841. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1842. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1843. # but it would be cool to find out if it's true. Does anybody
  1844. # maintain Libtool? --akim.
  1845. export ac_cv_exeext
  1846. break;;
  1847. * )
  1848. break;;
  1849. esac
  1850. done
  1851. else
  1852. echo "$as_me: failed program was:" >&5
  1853. sed 's/^/| /' conftest.$ac_ext >&5
  1854. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1855. See \`config.log' for more details." >&5
  1856. echo "$as_me: error: C++ compiler cannot create executables
  1857. See \`config.log' for more details." >&2;}
  1858. { (exit 77); exit 77; }; }
  1859. fi
  1860. ac_exeext=$ac_cv_exeext
  1861. echo "$as_me:$LINENO: result: $ac_file" >&5
  1862. echo "${ECHO_T}$ac_file" >&6
  1863. # Check the compiler produces executables we can run. If not, either
  1864. # the compiler is broken, or we cross compile.
  1865. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1866. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1867. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1868. # If not cross compiling, check that we can run a simple program.
  1869. if test "$cross_compiling" != yes; then
  1870. if { ac_try='./$ac_file'
  1871. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1872. (eval $ac_try) 2>&5
  1873. ac_status=$?
  1874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1875. (exit $ac_status); }; }; then
  1876. cross_compiling=no
  1877. else
  1878. if test "$cross_compiling" = maybe; then
  1879. cross_compiling=yes
  1880. else
  1881. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1882. If you meant to cross compile, use \`--host'.
  1883. See \`config.log' for more details." >&5
  1884. echo "$as_me: error: cannot run C++ compiled programs.
  1885. If you meant to cross compile, use \`--host'.
  1886. See \`config.log' for more details." >&2;}
  1887. { (exit 1); exit 1; }; }
  1888. fi
  1889. fi
  1890. fi
  1891. echo "$as_me:$LINENO: result: yes" >&5
  1892. echo "${ECHO_T}yes" >&6
  1893. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1894. ac_clean_files=$ac_clean_files_save
  1895. # Check the compiler produces executables we can run. If not, either
  1896. # the compiler is broken, or we cross compile.
  1897. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1898. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1899. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1900. echo "${ECHO_T}$cross_compiling" >&6
  1901. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1902. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1903. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1904. (eval $ac_link) 2>&5
  1905. ac_status=$?
  1906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1907. (exit $ac_status); }; then
  1908. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1909. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1910. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1911. # `rm'.
  1912. for ac_file in conftest.exe conftest conftest.*; do
  1913. test -f "$ac_file" || continue
  1914. case $ac_file in
  1915. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1916. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1917. export ac_cv_exeext
  1918. break;;
  1919. * ) break;;
  1920. esac
  1921. done
  1922. else
  1923. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1924. See \`config.log' for more details." >&5
  1925. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1926. See \`config.log' for more details." >&2;}
  1927. { (exit 1); exit 1; }; }
  1928. fi
  1929. rm -f conftest$ac_cv_exeext
  1930. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1931. echo "${ECHO_T}$ac_cv_exeext" >&6
  1932. rm -f conftest.$ac_ext
  1933. EXEEXT=$ac_cv_exeext
  1934. ac_exeext=$EXEEXT
  1935. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1936. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1937. if test "${ac_cv_objext+set}" = set; then
  1938. echo $ECHO_N "(cached) $ECHO_C" >&6
  1939. else
  1940. cat >conftest.$ac_ext <<_ACEOF
  1941. /* confdefs.h. */
  1942. _ACEOF
  1943. cat confdefs.h >>conftest.$ac_ext
  1944. cat >>conftest.$ac_ext <<_ACEOF
  1945. /* end confdefs.h. */
  1946. int
  1947. main ()
  1948. {
  1949. ;
  1950. return 0;
  1951. }
  1952. _ACEOF
  1953. rm -f conftest.o conftest.obj
  1954. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1955. (eval $ac_compile) 2>&5
  1956. ac_status=$?
  1957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1958. (exit $ac_status); }; then
  1959. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1960. case $ac_file in
  1961. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1962. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1963. break;;
  1964. esac
  1965. done
  1966. else
  1967. echo "$as_me: failed program was:" >&5
  1968. sed 's/^/| /' conftest.$ac_ext >&5
  1969. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1970. See \`config.log' for more details." >&5
  1971. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1972. See \`config.log' for more details." >&2;}
  1973. { (exit 1); exit 1; }; }
  1974. fi
  1975. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1976. fi
  1977. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1978. echo "${ECHO_T}$ac_cv_objext" >&6
  1979. OBJEXT=$ac_cv_objext
  1980. ac_objext=$OBJEXT
  1981. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1982. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  1983. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1984. echo $ECHO_N "(cached) $ECHO_C" >&6
  1985. else
  1986. cat >conftest.$ac_ext <<_ACEOF
  1987. /* confdefs.h. */
  1988. _ACEOF
  1989. cat confdefs.h >>conftest.$ac_ext
  1990. cat >>conftest.$ac_ext <<_ACEOF
  1991. /* end confdefs.h. */
  1992. int
  1993. main ()
  1994. {
  1995. #ifndef __GNUC__
  1996. choke me
  1997. #endif
  1998. ;
  1999. return 0;
  2000. }
  2001. _ACEOF
  2002. rm -f conftest.$ac_objext
  2003. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2004. (eval $ac_compile) 2>conftest.er1
  2005. ac_status=$?
  2006. grep -v '^ *+' conftest.er1 >conftest.err
  2007. rm -f conftest.er1
  2008. cat conftest.err >&5
  2009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2010. (exit $ac_status); } &&
  2011. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2012. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2013. (eval $ac_try) 2>&5
  2014. ac_status=$?
  2015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2016. (exit $ac_status); }; } &&
  2017. { ac_try='test -s conftest.$ac_objext'
  2018. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2019. (eval $ac_try) 2>&5
  2020. ac_status=$?
  2021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2022. (exit $ac_status); }; }; then
  2023. ac_compiler_gnu=yes
  2024. else
  2025. echo "$as_me: failed program was:" >&5
  2026. sed 's/^/| /' conftest.$ac_ext >&5
  2027. ac_compiler_gnu=no
  2028. fi
  2029. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2030. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2031. fi
  2032. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2033. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2034. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2035. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2036. ac_save_CXXFLAGS=$CXXFLAGS
  2037. CXXFLAGS="-g"
  2038. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2039. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2040. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2041. echo $ECHO_N "(cached) $ECHO_C" >&6
  2042. else
  2043. cat >conftest.$ac_ext <<_ACEOF
  2044. /* confdefs.h. */
  2045. _ACEOF
  2046. cat confdefs.h >>conftest.$ac_ext
  2047. cat >>conftest.$ac_ext <<_ACEOF
  2048. /* end confdefs.h. */
  2049. int
  2050. main ()
  2051. {
  2052. ;
  2053. return 0;
  2054. }
  2055. _ACEOF
  2056. rm -f conftest.$ac_objext
  2057. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2058. (eval $ac_compile) 2>conftest.er1
  2059. ac_status=$?
  2060. grep -v '^ *+' conftest.er1 >conftest.err
  2061. rm -f conftest.er1
  2062. cat conftest.err >&5
  2063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2064. (exit $ac_status); } &&
  2065. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2067. (eval $ac_try) 2>&5
  2068. ac_status=$?
  2069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2070. (exit $ac_status); }; } &&
  2071. { ac_try='test -s conftest.$ac_objext'
  2072. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2073. (eval $ac_try) 2>&5
  2074. ac_status=$?
  2075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2076. (exit $ac_status); }; }; then
  2077. ac_cv_prog_cxx_g=yes
  2078. else
  2079. echo "$as_me: failed program was:" >&5
  2080. sed 's/^/| /' conftest.$ac_ext >&5
  2081. ac_cv_prog_cxx_g=no
  2082. fi
  2083. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2084. fi
  2085. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2086. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2087. if test "$ac_test_CXXFLAGS" = set; then
  2088. CXXFLAGS=$ac_save_CXXFLAGS
  2089. elif test $ac_cv_prog_cxx_g = yes; then
  2090. if test "$GXX" = yes; then
  2091. CXXFLAGS="-g -O2"
  2092. else
  2093. CXXFLAGS="-g"
  2094. fi
  2095. else
  2096. if test "$GXX" = yes; then
  2097. CXXFLAGS="-O2"
  2098. else
  2099. CXXFLAGS=
  2100. fi
  2101. fi
  2102. for ac_declaration in \
  2103. '' \
  2104. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2105. 'extern "C" void std::exit (int); using std::exit;' \
  2106. 'extern "C" void exit (int) throw ();' \
  2107. 'extern "C" void exit (int);' \
  2108. 'void exit (int);'
  2109. do
  2110. cat >conftest.$ac_ext <<_ACEOF
  2111. /* confdefs.h. */
  2112. _ACEOF
  2113. cat confdefs.h >>conftest.$ac_ext
  2114. cat >>conftest.$ac_ext <<_ACEOF
  2115. /* end confdefs.h. */
  2116. $ac_declaration
  2117. #include <stdlib.h>
  2118. int
  2119. main ()
  2120. {
  2121. exit (42);
  2122. ;
  2123. return 0;
  2124. }
  2125. _ACEOF
  2126. rm -f conftest.$ac_objext
  2127. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2128. (eval $ac_compile) 2>conftest.er1
  2129. ac_status=$?
  2130. grep -v '^ *+' conftest.er1 >conftest.err
  2131. rm -f conftest.er1
  2132. cat conftest.err >&5
  2133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2134. (exit $ac_status); } &&
  2135. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2136. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2137. (eval $ac_try) 2>&5
  2138. ac_status=$?
  2139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2140. (exit $ac_status); }; } &&
  2141. { ac_try='test -s conftest.$ac_objext'
  2142. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2143. (eval $ac_try) 2>&5
  2144. ac_status=$?
  2145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2146. (exit $ac_status); }; }; then
  2147. :
  2148. else
  2149. echo "$as_me: failed program was:" >&5
  2150. sed 's/^/| /' conftest.$ac_ext >&5
  2151. continue
  2152. fi
  2153. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2154. cat >conftest.$ac_ext <<_ACEOF
  2155. /* confdefs.h. */
  2156. _ACEOF
  2157. cat confdefs.h >>conftest.$ac_ext
  2158. cat >>conftest.$ac_ext <<_ACEOF
  2159. /* end confdefs.h. */
  2160. $ac_declaration
  2161. int
  2162. main ()
  2163. {
  2164. exit (42);
  2165. ;
  2166. return 0;
  2167. }
  2168. _ACEOF
  2169. rm -f conftest.$ac_objext
  2170. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2171. (eval $ac_compile) 2>conftest.er1
  2172. ac_status=$?
  2173. grep -v '^ *+' conftest.er1 >conftest.err
  2174. rm -f conftest.er1
  2175. cat conftest.err >&5
  2176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2177. (exit $ac_status); } &&
  2178. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2179. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2180. (eval $ac_try) 2>&5
  2181. ac_status=$?
  2182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2183. (exit $ac_status); }; } &&
  2184. { ac_try='test -s conftest.$ac_objext'
  2185. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2186. (eval $ac_try) 2>&5
  2187. ac_status=$?
  2188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2189. (exit $ac_status); }; }; then
  2190. break
  2191. else
  2192. echo "$as_me: failed program was:" >&5
  2193. sed 's/^/| /' conftest.$ac_ext >&5
  2194. fi
  2195. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2196. done
  2197. rm -f conftest*
  2198. if test -n "$ac_declaration"; then
  2199. echo '#ifdef __cplusplus' >>confdefs.h
  2200. echo $ac_declaration >>confdefs.h
  2201. echo '#endif' >>confdefs.h
  2202. fi
  2203. ac_ext=c
  2204. ac_cpp='$CPP $CPPFLAGS'
  2205. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2206. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2207. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2208. DEPDIR="${am__leading_dot}deps"
  2209. ac_config_commands="$ac_config_commands depfiles"
  2210. am_make=${MAKE-make}
  2211. cat > confinc << 'END'
  2212. am__doit:
  2213. @echo done
  2214. .PHONY: am__doit
  2215. END
  2216. # If we don't find an include directive, just comment out the code.
  2217. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2218. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2219. am__include="#"
  2220. am__quote=
  2221. _am_result=none
  2222. # First try GNU make style include.
  2223. echo "include confinc" > confmf
  2224. # We grep out `Entering directory' and `Leaving directory'
  2225. # messages which can occur if `w' ends up in MAKEFLAGS.
  2226. # In particular we don't look at `^make:' because GNU make might
  2227. # be invoked under some other name (usually "gmake"), in which
  2228. # case it prints its new name instead of `make'.
  2229. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2230. am__include=include
  2231. am__quote=
  2232. _am_result=GNU
  2233. fi
  2234. # Now try BSD make style include.
  2235. if test "$am__include" = "#"; then
  2236. echo '.include "confinc"' > confmf
  2237. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2238. am__include=.include
  2239. am__quote="\""
  2240. _am_result=BSD
  2241. fi
  2242. fi
  2243. echo "$as_me:$LINENO: result: $_am_result" >&5
  2244. echo "${ECHO_T}$_am_result" >&6
  2245. rm -f confinc confmf
  2246. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2247. if test "${enable_dependency_tracking+set}" = set; then
  2248. enableval="$enable_dependency_tracking"
  2249. fi;
  2250. if test "x$enable_dependency_tracking" != xno; then
  2251. am_depcomp="$ac_aux_dir/depcomp"
  2252. AMDEPBACKSLASH='\'
  2253. fi
  2254. if test "x$enable_dependency_tracking" != xno; then
  2255. AMDEP_TRUE=
  2256. AMDEP_FALSE='#'
  2257. else
  2258. AMDEP_TRUE='#'
  2259. AMDEP_FALSE=
  2260. fi
  2261. depcc="$CXX" am_compiler_list=
  2262. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2263. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2264. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2265. echo $ECHO_N "(cached) $ECHO_C" >&6
  2266. else
  2267. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2268. # We make a subdir and do the tests there. Otherwise we can end up
  2269. # making bogus files that we don't know about and never remove. For
  2270. # instance it was reported that on HP-UX the gcc test will end up
  2271. # making a dummy file named `D' -- because `-MD' means `put the output
  2272. # in D'.
  2273. mkdir conftest.dir
  2274. # Copy depcomp to subdir because otherwise we won't find it if we're
  2275. # using a relative directory.
  2276. cp "$am_depcomp" conftest.dir
  2277. cd conftest.dir
  2278. # We will build objects and dependencies in a subdirectory because
  2279. # it helps to detect inapplicable dependency modes. For instance
  2280. # both Tru64's cc and ICC support -MD to output dependencies as a
  2281. # side effect of compilation, but ICC will put the dependencies in
  2282. # the current directory while Tru64 will put them in the object
  2283. # directory.
  2284. mkdir sub
  2285. am_cv_CXX_dependencies_compiler_type=none
  2286. if test "$am_compiler_list" = ""; then
  2287. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2288. fi
  2289. for depmode in $am_compiler_list; do
  2290. # Setup a source with many dependencies, because some compilers
  2291. # like to wrap large dependency lists on column 80 (with \), and
  2292. # we should not choose a depcomp mode which is confused by this.
  2293. #
  2294. # We need to recreate these files for each test, as the compiler may
  2295. # overwrite some of them when testing with obscure command lines.
  2296. # This happens at least with the AIX C compiler.
  2297. : > sub/conftest.c
  2298. for i in 1 2 3 4 5 6; do
  2299. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2300. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2301. # Solaris 8's {/usr,}/bin/sh.
  2302. touch sub/conftst$i.h
  2303. done
  2304. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2305. case $depmode in
  2306. nosideeffect)
  2307. # after this tag, mechanisms are not by side-effect, so they'll
  2308. # only be used when explicitly requested
  2309. if test "x$enable_dependency_tracking" = xyes; then
  2310. continue
  2311. else
  2312. break
  2313. fi
  2314. ;;
  2315. none) break ;;
  2316. esac
  2317. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2318. # mode. It turns out that the SunPro C++ compiler does not properly
  2319. # handle `-M -o', and we need to detect this.
  2320. if depmode=$depmode \
  2321. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2322. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2323. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2324. >/dev/null 2>conftest.err &&
  2325. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2326. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2327. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2328. # icc doesn't choke on unknown options, it will just issue warnings
  2329. # or remarks (even with -Werror). So we grep stderr for any message
  2330. # that says an option was ignored or not supported.
  2331. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2332. # icc: Command line warning: ignoring option '-M'; no argument required
  2333. # The diagnosis changed in icc 8.0:
  2334. # icc: Command line remark: option '-MP' not supported
  2335. if (grep 'ignoring option' conftest.err ||
  2336. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2337. am_cv_CXX_dependencies_compiler_type=$depmode
  2338. break
  2339. fi
  2340. fi
  2341. done
  2342. cd ..
  2343. rm -rf conftest.dir
  2344. else
  2345. am_cv_CXX_dependencies_compiler_type=none
  2346. fi
  2347. fi
  2348. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2349. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2350. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2351. if
  2352. test "x$enable_dependency_tracking" != xno \
  2353. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2354. am__fastdepCXX_TRUE=
  2355. am__fastdepCXX_FALSE='#'
  2356. else
  2357. am__fastdepCXX_TRUE='#'
  2358. am__fastdepCXX_FALSE=
  2359. fi
  2360. ac_ext=c
  2361. ac_cpp='$CPP $CPPFLAGS'
  2362. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2363. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2364. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2365. if test -n "$ac_tool_prefix"; then
  2366. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2367. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2368. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2369. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2370. if test "${ac_cv_prog_CC+set}" = set; then
  2371. echo $ECHO_N "(cached) $ECHO_C" >&6
  2372. else
  2373. if test -n "$CC"; then
  2374. ac_cv_prog_CC="$CC" # Let the user override the test.
  2375. else
  2376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2377. for as_dir in $PATH
  2378. do
  2379. IFS=$as_save_IFS
  2380. test -z "$as_dir" && as_dir=.
  2381. for ac_exec_ext in '' $ac_executable_extensions; do
  2382. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2383. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2384. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2385. break 2
  2386. fi
  2387. done
  2388. done
  2389. fi
  2390. fi
  2391. CC=$ac_cv_prog_CC
  2392. if test -n "$CC"; then
  2393. echo "$as_me:$LINENO: result: $CC" >&5
  2394. echo "${ECHO_T}$CC" >&6
  2395. else
  2396. echo "$as_me:$LINENO: result: no" >&5
  2397. echo "${ECHO_T}no" >&6
  2398. fi
  2399. fi
  2400. if test -z "$ac_cv_prog_CC"; then
  2401. ac_ct_CC=$CC
  2402. # Extract the first word of "gcc", so it can be a program name with args.
  2403. set dummy gcc; ac_word=$2
  2404. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2405. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2406. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2407. echo $ECHO_N "(cached) $ECHO_C" >&6
  2408. else
  2409. if test -n "$ac_ct_CC"; then
  2410. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2411. else
  2412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2413. for as_dir in $PATH
  2414. do
  2415. IFS=$as_save_IFS
  2416. test -z "$as_dir" && as_dir=.
  2417. for ac_exec_ext in '' $ac_executable_extensions; do
  2418. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2419. ac_cv_prog_ac_ct_CC="gcc"
  2420. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2421. break 2
  2422. fi
  2423. done
  2424. done
  2425. fi
  2426. fi
  2427. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2428. if test -n "$ac_ct_CC"; then
  2429. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2430. echo "${ECHO_T}$ac_ct_CC" >&6
  2431. else
  2432. echo "$as_me:$LINENO: result: no" >&5
  2433. echo "${ECHO_T}no" >&6
  2434. fi
  2435. CC=$ac_ct_CC
  2436. else
  2437. CC="$ac_cv_prog_CC"
  2438. fi
  2439. if test -z "$CC"; then
  2440. if test -n "$ac_tool_prefix"; then
  2441. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2442. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2443. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2444. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2445. if test "${ac_cv_prog_CC+set}" = set; then
  2446. echo $ECHO_N "(cached) $ECHO_C" >&6
  2447. else
  2448. if test -n "$CC"; then
  2449. ac_cv_prog_CC="$CC" # Let the user override the test.
  2450. else
  2451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2452. for as_dir in $PATH
  2453. do
  2454. IFS=$as_save_IFS
  2455. test -z "$as_dir" && as_dir=.
  2456. for ac_exec_ext in '' $ac_executable_extensions; do
  2457. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2458. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2459. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2460. break 2
  2461. fi
  2462. done
  2463. done
  2464. fi
  2465. fi
  2466. CC=$ac_cv_prog_CC
  2467. if test -n "$CC"; then
  2468. echo "$as_me:$LINENO: result: $CC" >&5
  2469. echo "${ECHO_T}$CC" >&6
  2470. else
  2471. echo "$as_me:$LINENO: result: no" >&5
  2472. echo "${ECHO_T}no" >&6
  2473. fi
  2474. fi
  2475. if test -z "$ac_cv_prog_CC"; then
  2476. ac_ct_CC=$CC
  2477. # Extract the first word of "cc", so it can be a program name with args.
  2478. set dummy cc; ac_word=$2
  2479. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2480. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2481. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2482. echo $ECHO_N "(cached) $ECHO_C" >&6
  2483. else
  2484. if test -n "$ac_ct_CC"; then
  2485. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2486. else
  2487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2488. for as_dir in $PATH
  2489. do
  2490. IFS=$as_save_IFS
  2491. test -z "$as_dir" && as_dir=.
  2492. for ac_exec_ext in '' $ac_executable_extensions; do
  2493. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2494. ac_cv_prog_ac_ct_CC="cc"
  2495. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2496. break 2
  2497. fi
  2498. done
  2499. done
  2500. fi
  2501. fi
  2502. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2503. if test -n "$ac_ct_CC"; then
  2504. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2505. echo "${ECHO_T}$ac_ct_CC" >&6
  2506. else
  2507. echo "$as_me:$LINENO: result: no" >&5
  2508. echo "${ECHO_T}no" >&6
  2509. fi
  2510. CC=$ac_ct_CC
  2511. else
  2512. CC="$ac_cv_prog_CC"
  2513. fi
  2514. fi
  2515. if test -z "$CC"; then
  2516. # Extract the first word of "cc", so it can be a program name with args.
  2517. set dummy cc; ac_word=$2
  2518. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2519. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2520. if test "${ac_cv_prog_CC+set}" = set; then
  2521. echo $ECHO_N "(cached) $ECHO_C" >&6
  2522. else
  2523. if test -n "$CC"; then
  2524. ac_cv_prog_CC="$CC" # Let the user override the test.
  2525. else
  2526. ac_prog_rejected=no
  2527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2528. for as_dir in $PATH
  2529. do
  2530. IFS=$as_save_IFS
  2531. test -z "$as_dir" && as_dir=.
  2532. for ac_exec_ext in '' $ac_executable_extensions; do
  2533. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2534. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2535. ac_prog_rejected=yes
  2536. continue
  2537. fi
  2538. ac_cv_prog_CC="cc"
  2539. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2540. break 2
  2541. fi
  2542. done
  2543. done
  2544. if test $ac_prog_rejected = yes; then
  2545. # We found a bogon in the path, so make sure we never use it.
  2546. set dummy $ac_cv_prog_CC
  2547. shift
  2548. if test $# != 0; then
  2549. # We chose a different compiler from the bogus one.
  2550. # However, it has the same basename, so the bogon will be chosen
  2551. # first if we set CC to just the basename; use the full file name.
  2552. shift
  2553. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2554. fi
  2555. fi
  2556. fi
  2557. fi
  2558. CC=$ac_cv_prog_CC
  2559. if test -n "$CC"; then
  2560. echo "$as_me:$LINENO: result: $CC" >&5
  2561. echo "${ECHO_T}$CC" >&6
  2562. else
  2563. echo "$as_me:$LINENO: result: no" >&5
  2564. echo "${ECHO_T}no" >&6
  2565. fi
  2566. fi
  2567. if test -z "$CC"; then
  2568. if test -n "$ac_tool_prefix"; then
  2569. for ac_prog in cl
  2570. do
  2571. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2572. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2573. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2574. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2575. if test "${ac_cv_prog_CC+set}" = set; then
  2576. echo $ECHO_N "(cached) $ECHO_C" >&6
  2577. else
  2578. if test -n "$CC"; then
  2579. ac_cv_prog_CC="$CC" # Let the user override the test.
  2580. else
  2581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2582. for as_dir in $PATH
  2583. do
  2584. IFS=$as_save_IFS
  2585. test -z "$as_dir" && as_dir=.
  2586. for ac_exec_ext in '' $ac_executable_extensions; do
  2587. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2588. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2589. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2590. break 2
  2591. fi
  2592. done
  2593. done
  2594. fi
  2595. fi
  2596. CC=$ac_cv_prog_CC
  2597. if test -n "$CC"; then
  2598. echo "$as_me:$LINENO: result: $CC" >&5
  2599. echo "${ECHO_T}$CC" >&6
  2600. else
  2601. echo "$as_me:$LINENO: result: no" >&5
  2602. echo "${ECHO_T}no" >&6
  2603. fi
  2604. test -n "$CC" && break
  2605. done
  2606. fi
  2607. if test -z "$CC"; then
  2608. ac_ct_CC=$CC
  2609. for ac_prog in cl
  2610. do
  2611. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2612. set dummy $ac_prog; ac_word=$2
  2613. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2614. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2615. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2616. echo $ECHO_N "(cached) $ECHO_C" >&6
  2617. else
  2618. if test -n "$ac_ct_CC"; then
  2619. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2620. else
  2621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2622. for as_dir in $PATH
  2623. do
  2624. IFS=$as_save_IFS
  2625. test -z "$as_dir" && as_dir=.
  2626. for ac_exec_ext in '' $ac_executable_extensions; do
  2627. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2628. ac_cv_prog_ac_ct_CC="$ac_prog"
  2629. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2630. break 2
  2631. fi
  2632. done
  2633. done
  2634. fi
  2635. fi
  2636. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2637. if test -n "$ac_ct_CC"; then
  2638. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2639. echo "${ECHO_T}$ac_ct_CC" >&6
  2640. else
  2641. echo "$as_me:$LINENO: result: no" >&5
  2642. echo "${ECHO_T}no" >&6
  2643. fi
  2644. test -n "$ac_ct_CC" && break
  2645. done
  2646. CC=$ac_ct_CC
  2647. fi
  2648. fi
  2649. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2650. See \`config.log' for more details." >&5
  2651. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2652. See \`config.log' for more details." >&2;}
  2653. { (exit 1); exit 1; }; }
  2654. # Provide some information about the compiler.
  2655. echo "$as_me:$LINENO:" \
  2656. "checking for C compiler version" >&5
  2657. ac_compiler=`set X $ac_compile; echo $2`
  2658. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2659. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2660. ac_status=$?
  2661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2662. (exit $ac_status); }
  2663. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2664. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2665. ac_status=$?
  2666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2667. (exit $ac_status); }
  2668. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2669. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2670. ac_status=$?
  2671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2672. (exit $ac_status); }
  2673. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2674. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2675. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2676. echo $ECHO_N "(cached) $ECHO_C" >&6
  2677. else
  2678. cat >conftest.$ac_ext <<_ACEOF
  2679. /* confdefs.h. */
  2680. _ACEOF
  2681. cat confdefs.h >>conftest.$ac_ext
  2682. cat >>conftest.$ac_ext <<_ACEOF
  2683. /* end confdefs.h. */
  2684. int
  2685. main ()
  2686. {
  2687. #ifndef __GNUC__
  2688. choke me
  2689. #endif
  2690. ;
  2691. return 0;
  2692. }
  2693. _ACEOF
  2694. rm -f conftest.$ac_objext
  2695. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2696. (eval $ac_compile) 2>conftest.er1
  2697. ac_status=$?
  2698. grep -v '^ *+' conftest.er1 >conftest.err
  2699. rm -f conftest.er1
  2700. cat conftest.err >&5
  2701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2702. (exit $ac_status); } &&
  2703. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2704. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2705. (eval $ac_try) 2>&5
  2706. ac_status=$?
  2707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2708. (exit $ac_status); }; } &&
  2709. { ac_try='test -s conftest.$ac_objext'
  2710. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2711. (eval $ac_try) 2>&5
  2712. ac_status=$?
  2713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2714. (exit $ac_status); }; }; then
  2715. ac_compiler_gnu=yes
  2716. else
  2717. echo "$as_me: failed program was:" >&5
  2718. sed 's/^/| /' conftest.$ac_ext >&5
  2719. ac_compiler_gnu=no
  2720. fi
  2721. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2722. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2723. fi
  2724. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2725. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2726. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2727. ac_test_CFLAGS=${CFLAGS+set}
  2728. ac_save_CFLAGS=$CFLAGS
  2729. CFLAGS="-g"
  2730. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2731. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2732. if test "${ac_cv_prog_cc_g+set}" = set; then
  2733. echo $ECHO_N "(cached) $ECHO_C" >&6
  2734. else
  2735. cat >conftest.$ac_ext <<_ACEOF
  2736. /* confdefs.h. */
  2737. _ACEOF
  2738. cat confdefs.h >>conftest.$ac_ext
  2739. cat >>conftest.$ac_ext <<_ACEOF
  2740. /* end confdefs.h. */
  2741. int
  2742. main ()
  2743. {
  2744. ;
  2745. return 0;
  2746. }
  2747. _ACEOF
  2748. rm -f conftest.$ac_objext
  2749. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2750. (eval $ac_compile) 2>conftest.er1
  2751. ac_status=$?
  2752. grep -v '^ *+' conftest.er1 >conftest.err
  2753. rm -f conftest.er1
  2754. cat conftest.err >&5
  2755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2756. (exit $ac_status); } &&
  2757. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2758. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2759. (eval $ac_try) 2>&5
  2760. ac_status=$?
  2761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2762. (exit $ac_status); }; } &&
  2763. { ac_try='test -s conftest.$ac_objext'
  2764. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2765. (eval $ac_try) 2>&5
  2766. ac_status=$?
  2767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2768. (exit $ac_status); }; }; then
  2769. ac_cv_prog_cc_g=yes
  2770. else
  2771. echo "$as_me: failed program was:" >&5
  2772. sed 's/^/| /' conftest.$ac_ext >&5
  2773. ac_cv_prog_cc_g=no
  2774. fi
  2775. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2776. fi
  2777. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2778. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2779. if test "$ac_test_CFLAGS" = set; then
  2780. CFLAGS=$ac_save_CFLAGS
  2781. elif test $ac_cv_prog_cc_g = yes; then
  2782. if test "$GCC" = yes; then
  2783. CFLAGS="-g -O2"
  2784. else
  2785. CFLAGS="-g"
  2786. fi
  2787. else
  2788. if test "$GCC" = yes; then
  2789. CFLAGS="-O2"
  2790. else
  2791. CFLAGS=
  2792. fi
  2793. fi
  2794. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2795. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2796. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2797. echo $ECHO_N "(cached) $ECHO_C" >&6
  2798. else
  2799. ac_cv_prog_cc_stdc=no
  2800. ac_save_CC=$CC
  2801. cat >conftest.$ac_ext <<_ACEOF
  2802. /* confdefs.h. */
  2803. _ACEOF
  2804. cat confdefs.h >>conftest.$ac_ext
  2805. cat >>conftest.$ac_ext <<_ACEOF
  2806. /* end confdefs.h. */
  2807. #include <stdarg.h>
  2808. #include <stdio.h>
  2809. #include <sys/types.h>
  2810. #include <sys/stat.h>
  2811. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2812. struct buf { int x; };
  2813. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2814. static char *e (p, i)
  2815. char **p;
  2816. int i;
  2817. {
  2818. return p[i];
  2819. }
  2820. static char *f (char * (*g) (char **, int), char **p, ...)
  2821. {
  2822. char *s;
  2823. va_list v;
  2824. va_start (v,p);
  2825. s = g (p, va_arg (v,int));
  2826. va_end (v);
  2827. return s;
  2828. }
  2829. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2830. function prototypes and stuff, but not '\xHH' hex character constants.
  2831. These don't provoke an error unfortunately, instead are silently treated
  2832. as 'x'. The following induces an error, until -std1 is added to get
  2833. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2834. array size at least. It's necessary to write '\x00'==0 to get something
  2835. that's true only with -std1. */
  2836. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2837. int test (int i, double x);
  2838. struct s1 {int (*f) (int a);};
  2839. struct s2 {int (*f) (double a);};
  2840. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2841. int argc;
  2842. char **argv;
  2843. int
  2844. main ()
  2845. {
  2846. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2847. ;
  2848. return 0;
  2849. }
  2850. _ACEOF
  2851. # Don't try gcc -ansi; that turns off useful extensions and
  2852. # breaks some systems' header files.
  2853. # AIX -qlanglvl=ansi
  2854. # Ultrix and OSF/1 -std1
  2855. # HP-UX 10.20 and later -Ae
  2856. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2857. # SVR4 -Xc -D__EXTENSIONS__
  2858. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2859. do
  2860. CC="$ac_save_CC $ac_arg"
  2861. rm -f conftest.$ac_objext
  2862. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2863. (eval $ac_compile) 2>conftest.er1
  2864. ac_status=$?
  2865. grep -v '^ *+' conftest.er1 >conftest.err
  2866. rm -f conftest.er1
  2867. cat conftest.err >&5
  2868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2869. (exit $ac_status); } &&
  2870. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2871. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2872. (eval $ac_try) 2>&5
  2873. ac_status=$?
  2874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2875. (exit $ac_status); }; } &&
  2876. { ac_try='test -s conftest.$ac_objext'
  2877. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2878. (eval $ac_try) 2>&5
  2879. ac_status=$?
  2880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2881. (exit $ac_status); }; }; then
  2882. ac_cv_prog_cc_stdc=$ac_arg
  2883. break
  2884. else
  2885. echo "$as_me: failed program was:" >&5
  2886. sed 's/^/| /' conftest.$ac_ext >&5
  2887. fi
  2888. rm -f conftest.err conftest.$ac_objext
  2889. done
  2890. rm -f conftest.$ac_ext conftest.$ac_objext
  2891. CC=$ac_save_CC
  2892. fi
  2893. case "x$ac_cv_prog_cc_stdc" in
  2894. x|xno)
  2895. echo "$as_me:$LINENO: result: none needed" >&5
  2896. echo "${ECHO_T}none needed" >&6 ;;
  2897. *)
  2898. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2899. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2900. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2901. esac
  2902. # Some people use a C++ compiler to compile C. Since we use `exit',
  2903. # in C++ we need to declare it. In case someone uses the same compiler
  2904. # for both compiling C and C++ we need to have the C++ compiler decide
  2905. # the declaration of exit, since it's the most demanding environment.
  2906. cat >conftest.$ac_ext <<_ACEOF
  2907. #ifndef __cplusplus
  2908. choke me
  2909. #endif
  2910. _ACEOF
  2911. rm -f conftest.$ac_objext
  2912. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2913. (eval $ac_compile) 2>conftest.er1
  2914. ac_status=$?
  2915. grep -v '^ *+' conftest.er1 >conftest.err
  2916. rm -f conftest.er1
  2917. cat conftest.err >&5
  2918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2919. (exit $ac_status); } &&
  2920. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2921. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2922. (eval $ac_try) 2>&5
  2923. ac_status=$?
  2924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2925. (exit $ac_status); }; } &&
  2926. { ac_try='test -s conftest.$ac_objext'
  2927. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2928. (eval $ac_try) 2>&5
  2929. ac_status=$?
  2930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2931. (exit $ac_status); }; }; then
  2932. for ac_declaration in \
  2933. '' \
  2934. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2935. 'extern "C" void std::exit (int); using std::exit;' \
  2936. 'extern "C" void exit (int) throw ();' \
  2937. 'extern "C" void exit (int);' \
  2938. 'void exit (int);'
  2939. do
  2940. cat >conftest.$ac_ext <<_ACEOF
  2941. /* confdefs.h. */
  2942. _ACEOF
  2943. cat confdefs.h >>conftest.$ac_ext
  2944. cat >>conftest.$ac_ext <<_ACEOF
  2945. /* end confdefs.h. */
  2946. $ac_declaration
  2947. #include <stdlib.h>
  2948. int
  2949. main ()
  2950. {
  2951. exit (42);
  2952. ;
  2953. return 0;
  2954. }
  2955. _ACEOF
  2956. rm -f conftest.$ac_objext
  2957. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2958. (eval $ac_compile) 2>conftest.er1
  2959. ac_status=$?
  2960. grep -v '^ *+' conftest.er1 >conftest.err
  2961. rm -f conftest.er1
  2962. cat conftest.err >&5
  2963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2964. (exit $ac_status); } &&
  2965. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2966. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2967. (eval $ac_try) 2>&5
  2968. ac_status=$?
  2969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2970. (exit $ac_status); }; } &&
  2971. { ac_try='test -s conftest.$ac_objext'
  2972. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2973. (eval $ac_try) 2>&5
  2974. ac_status=$?
  2975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2976. (exit $ac_status); }; }; then
  2977. :
  2978. else
  2979. echo "$as_me: failed program was:" >&5
  2980. sed 's/^/| /' conftest.$ac_ext >&5
  2981. continue
  2982. fi
  2983. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2984. cat >conftest.$ac_ext <<_ACEOF
  2985. /* confdefs.h. */
  2986. _ACEOF
  2987. cat confdefs.h >>conftest.$ac_ext
  2988. cat >>conftest.$ac_ext <<_ACEOF
  2989. /* end confdefs.h. */
  2990. $ac_declaration
  2991. int
  2992. main ()
  2993. {
  2994. exit (42);
  2995. ;
  2996. return 0;
  2997. }
  2998. _ACEOF
  2999. rm -f conftest.$ac_objext
  3000. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3001. (eval $ac_compile) 2>conftest.er1
  3002. ac_status=$?
  3003. grep -v '^ *+' conftest.er1 >conftest.err
  3004. rm -f conftest.er1
  3005. cat conftest.err >&5
  3006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3007. (exit $ac_status); } &&
  3008. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3009. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3010. (eval $ac_try) 2>&5
  3011. ac_status=$?
  3012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3013. (exit $ac_status); }; } &&
  3014. { ac_try='test -s conftest.$ac_objext'
  3015. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3016. (eval $ac_try) 2>&5
  3017. ac_status=$?
  3018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3019. (exit $ac_status); }; }; then
  3020. break
  3021. else
  3022. echo "$as_me: failed program was:" >&5
  3023. sed 's/^/| /' conftest.$ac_ext >&5
  3024. fi
  3025. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3026. done
  3027. rm -f conftest*
  3028. if test -n "$ac_declaration"; then
  3029. echo '#ifdef __cplusplus' >>confdefs.h
  3030. echo $ac_declaration >>confdefs.h
  3031. echo '#endif' >>confdefs.h
  3032. fi
  3033. else
  3034. echo "$as_me: failed program was:" >&5
  3035. sed 's/^/| /' conftest.$ac_ext >&5
  3036. fi
  3037. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3038. ac_ext=c
  3039. ac_cpp='$CPP $CPPFLAGS'
  3040. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3041. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3042. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3043. depcc="$CC" am_compiler_list=
  3044. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3045. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3046. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3047. echo $ECHO_N "(cached) $ECHO_C" >&6
  3048. else
  3049. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3050. # We make a subdir and do the tests there. Otherwise we can end up
  3051. # making bogus files that we don't know about and never remove. For
  3052. # instance it was reported that on HP-UX the gcc test will end up
  3053. # making a dummy file named `D' -- because `-MD' means `put the output
  3054. # in D'.
  3055. mkdir conftest.dir
  3056. # Copy depcomp to subdir because otherwise we won't find it if we're
  3057. # using a relative directory.
  3058. cp "$am_depcomp" conftest.dir
  3059. cd conftest.dir
  3060. # We will build objects and dependencies in a subdirectory because
  3061. # it helps to detect inapplicable dependency modes. For instance
  3062. # both Tru64's cc and ICC support -MD to output dependencies as a
  3063. # side effect of compilation, but ICC will put the dependencies in
  3064. # the current directory while Tru64 will put them in the object
  3065. # directory.
  3066. mkdir sub
  3067. am_cv_CC_dependencies_compiler_type=none
  3068. if test "$am_compiler_list" = ""; then
  3069. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3070. fi
  3071. for depmode in $am_compiler_list; do
  3072. # Setup a source with many dependencies, because some compilers
  3073. # like to wrap large dependency lists on column 80 (with \), and
  3074. # we should not choose a depcomp mode which is confused by this.
  3075. #
  3076. # We need to recreate these files for each test, as the compiler may
  3077. # overwrite some of them when testing with obscure command lines.
  3078. # This happens at least with the AIX C compiler.
  3079. : > sub/conftest.c
  3080. for i in 1 2 3 4 5 6; do
  3081. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3082. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3083. # Solaris 8's {/usr,}/bin/sh.
  3084. touch sub/conftst$i.h
  3085. done
  3086. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3087. case $depmode in
  3088. nosideeffect)
  3089. # after this tag, mechanisms are not by side-effect, so they'll
  3090. # only be used when explicitly requested
  3091. if test "x$enable_dependency_tracking" = xyes; then
  3092. continue
  3093. else
  3094. break
  3095. fi
  3096. ;;
  3097. none) break ;;
  3098. esac
  3099. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3100. # mode. It turns out that the SunPro C++ compiler does not properly
  3101. # handle `-M -o', and we need to detect this.
  3102. if depmode=$depmode \
  3103. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3104. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3105. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3106. >/dev/null 2>conftest.err &&
  3107. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3108. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3109. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3110. # icc doesn't choke on unknown options, it will just issue warnings
  3111. # or remarks (even with -Werror). So we grep stderr for any message
  3112. # that says an option was ignored or not supported.
  3113. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3114. # icc: Command line warning: ignoring option '-M'; no argument required
  3115. # The diagnosis changed in icc 8.0:
  3116. # icc: Command line remark: option '-MP' not supported
  3117. if (grep 'ignoring option' conftest.err ||
  3118. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3119. am_cv_CC_dependencies_compiler_type=$depmode
  3120. break
  3121. fi
  3122. fi
  3123. done
  3124. cd ..
  3125. rm -rf conftest.dir
  3126. else
  3127. am_cv_CC_dependencies_compiler_type=none
  3128. fi
  3129. fi
  3130. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3131. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3132. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3133. if
  3134. test "x$enable_dependency_tracking" != xno \
  3135. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3136. am__fastdepCC_TRUE=
  3137. am__fastdepCC_FALSE='#'
  3138. else
  3139. am__fastdepCC_TRUE='#'
  3140. am__fastdepCC_FALSE=
  3141. fi
  3142. # Find a good install program. We prefer a C program (faster),
  3143. # so one script is as good as another. But avoid the broken or
  3144. # incompatible versions:
  3145. # SysV /etc/install, /usr/sbin/install
  3146. # SunOS /usr/etc/install
  3147. # IRIX /sbin/install
  3148. # AIX /bin/install
  3149. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3150. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3151. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3152. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3153. # OS/2's system install, which has a completely different semantic
  3154. # ./install, which can be erroneously created by make from ./install.sh.
  3155. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3156. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  3157. if test -z "$INSTALL"; then
  3158. if test "${ac_cv_path_install+set}" = set; then
  3159. echo $ECHO_N "(cached) $ECHO_C" >&6
  3160. else
  3161. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3162. for as_dir in $PATH
  3163. do
  3164. IFS=$as_save_IFS
  3165. test -z "$as_dir" && as_dir=.
  3166. # Account for people who put trailing slashes in PATH elements.
  3167. case $as_dir/ in
  3168. ./ | .// | /cC/* | \
  3169. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3170. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3171. /usr/ucb/* ) ;;
  3172. *)
  3173. # OSF1 and SCO ODT 3.0 have their own names for install.
  3174. # Don't use installbsd from OSF since it installs stuff as root
  3175. # by default.
  3176. for ac_prog in ginstall scoinst install; do
  3177. for ac_exec_ext in '' $ac_executable_extensions; do
  3178. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3179. if test $ac_prog = install &&
  3180. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3181. # AIX install. It has an incompatible calling convention.
  3182. :
  3183. elif test $ac_prog = install &&
  3184. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3185. # program-specific install script used by HP pwplus--don't use.
  3186. :
  3187. else
  3188. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3189. break 3
  3190. fi
  3191. fi
  3192. done
  3193. done
  3194. ;;
  3195. esac
  3196. done
  3197. fi
  3198. if test "${ac_cv_path_install+set}" = set; then
  3199. INSTALL=$ac_cv_path_install
  3200. else
  3201. # As a last resort, use the slow shell script. We don't cache a
  3202. # path for INSTALL within a source directory, because that will
  3203. # break other packages using the cache if that directory is
  3204. # removed, or if the path is relative.
  3205. INSTALL=$ac_install_sh
  3206. fi
  3207. fi
  3208. echo "$as_me:$LINENO: result: $INSTALL" >&5
  3209. echo "${ECHO_T}$INSTALL" >&6
  3210. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3211. # It thinks the first close brace ends the variable substitution.
  3212. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3213. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3214. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3215. if test -n "$ac_tool_prefix"; then
  3216. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3217. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3218. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3219. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3220. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3221. echo $ECHO_N "(cached) $ECHO_C" >&6
  3222. else
  3223. if test -n "$RANLIB"; then
  3224. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3225. else
  3226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3227. for as_dir in $PATH
  3228. do
  3229. IFS=$as_save_IFS
  3230. test -z "$as_dir" && as_dir=.
  3231. for ac_exec_ext in '' $ac_executable_extensions; do
  3232. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3233. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3234. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3235. break 2
  3236. fi
  3237. done
  3238. done
  3239. fi
  3240. fi
  3241. RANLIB=$ac_cv_prog_RANLIB
  3242. if test -n "$RANLIB"; then
  3243. echo "$as_me:$LINENO: result: $RANLIB" >&5
  3244. echo "${ECHO_T}$RANLIB" >&6
  3245. else
  3246. echo "$as_me:$LINENO: result: no" >&5
  3247. echo "${ECHO_T}no" >&6
  3248. fi
  3249. fi
  3250. if test -z "$ac_cv_prog_RANLIB"; then
  3251. ac_ct_RANLIB=$RANLIB
  3252. # Extract the first word of "ranlib", so it can be a program name with args.
  3253. set dummy ranlib; ac_word=$2
  3254. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3255. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3256. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3257. echo $ECHO_N "(cached) $ECHO_C" >&6
  3258. else
  3259. if test -n "$ac_ct_RANLIB"; then
  3260. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3261. else
  3262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3263. for as_dir in $PATH
  3264. do
  3265. IFS=$as_save_IFS
  3266. test -z "$as_dir" && as_dir=.
  3267. for ac_exec_ext in '' $ac_executable_extensions; do
  3268. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3269. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3270. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3271. break 2
  3272. fi
  3273. done
  3274. done
  3275. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3276. fi
  3277. fi
  3278. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3279. if test -n "$ac_ct_RANLIB"; then
  3280. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3281. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3282. else
  3283. echo "$as_me:$LINENO: result: no" >&5
  3284. echo "${ECHO_T}no" >&6
  3285. fi
  3286. RANLIB=$ac_ct_RANLIB
  3287. else
  3288. RANLIB="$ac_cv_prog_RANLIB"
  3289. fi
  3290. for ac_prog in 'bison -y' byacc
  3291. do
  3292. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3293. set dummy $ac_prog; ac_word=$2
  3294. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3295. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3296. if test "${ac_cv_prog_YACC+set}" = set; then
  3297. echo $ECHO_N "(cached) $ECHO_C" >&6
  3298. else
  3299. if test -n "$YACC"; then
  3300. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3301. else
  3302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3303. for as_dir in $PATH
  3304. do
  3305. IFS=$as_save_IFS
  3306. test -z "$as_dir" && as_dir=.
  3307. for ac_exec_ext in '' $ac_executable_extensions; do
  3308. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3309. ac_cv_prog_YACC="$ac_prog"
  3310. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3311. break 2
  3312. fi
  3313. done
  3314. done
  3315. fi
  3316. fi
  3317. YACC=$ac_cv_prog_YACC
  3318. if test -n "$YACC"; then
  3319. echo "$as_me:$LINENO: result: $YACC" >&5
  3320. echo "${ECHO_T}$YACC" >&6
  3321. else
  3322. echo "$as_me:$LINENO: result: no" >&5
  3323. echo "${ECHO_T}no" >&6
  3324. fi
  3325. test -n "$YACC" && break
  3326. done
  3327. test -n "$YACC" || YACC="yacc"
  3328. # Checks for libraries.
  3329. if test "x$with_libxml2" = "xyes"; then
  3330. # Check whether --with-xml-prefix or --without-xml-prefix was given.
  3331. if test "${with_xml_prefix+set}" = set; then
  3332. withval="$with_xml_prefix"
  3333. xml_config_prefix="$withval"
  3334. else
  3335. xml_config_prefix=""
  3336. fi;
  3337. # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
  3338. if test "${with_xml_exec_prefix+set}" = set; then
  3339. withval="$with_xml_exec_prefix"
  3340. xml_config_exec_prefix="$withval"
  3341. else
  3342. xml_config_exec_prefix=""
  3343. fi;
  3344. # Check whether --enable-xmltest or --disable-xmltest was given.
  3345. if test "${enable_xmltest+set}" = set; then
  3346. enableval="$enable_xmltest"
  3347. else
  3348. enable_xmltest=yes
  3349. fi;
  3350. if test x$xml_config_exec_prefix != x ; then
  3351. xml_config_args="$xml_config_args"
  3352. if test x${XML2_CONFIG+set} != xset ; then
  3353. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  3354. fi
  3355. fi
  3356. if test x$xml_config_prefix != x ; then
  3357. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  3358. if test x${XML2_CONFIG+set} != xset ; then
  3359. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  3360. fi
  3361. fi
  3362. # Extract the first word of "xml2-config", so it can be a program name with args.
  3363. set dummy xml2-config; ac_word=$2
  3364. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3365. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3366. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  3367. echo $ECHO_N "(cached) $ECHO_C" >&6
  3368. else
  3369. case $XML2_CONFIG in
  3370. [\\/]* | ?:[\\/]*)
  3371. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  3372. ;;
  3373. *)
  3374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3375. for as_dir in $PATH
  3376. do
  3377. IFS=$as_save_IFS
  3378. test -z "$as_dir" && as_dir=.
  3379. for ac_exec_ext in '' $ac_executable_extensions; do
  3380. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3381. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3382. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3383. break 2
  3384. fi
  3385. done
  3386. done
  3387. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  3388. ;;
  3389. esac
  3390. fi
  3391. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  3392. if test -n "$XML2_CONFIG"; then
  3393. echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  3394. echo "${ECHO_T}$XML2_CONFIG" >&6
  3395. else
  3396. echo "$as_me:$LINENO: result: no" >&5
  3397. echo "${ECHO_T}no" >&6
  3398. fi
  3399. min_xml_version=2.6.26
  3400. echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  3401. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
  3402. no_xml=""
  3403. if test "$XML2_CONFIG" = "no" ; then
  3404. no_xml=yes
  3405. else
  3406. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  3407. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  3408. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  3409. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3410. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  3411. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3412. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  3413. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3414. if test "x$enable_xmltest" = "xyes" ; then
  3415. ac_save_CPPFLAGS="$CPPFLAGS"
  3416. ac_save_LIBS="$LIBS"
  3417. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  3418. LIBS="$XML_LIBS $LIBS"
  3419. rm -f conf.xmltest
  3420. if test "$cross_compiling" = yes; then
  3421. echo $ac_n "cross compiling; assumed OK... $ac_c"
  3422. else
  3423. cat >conftest.$ac_ext <<_ACEOF
  3424. /* confdefs.h. */
  3425. _ACEOF
  3426. cat confdefs.h >>conftest.$ac_ext
  3427. cat >>conftest.$ac_ext <<_ACEOF
  3428. /* end confdefs.h. */
  3429. #include <stdlib.h>
  3430. #include <stdio.h>
  3431. #include <string.h>
  3432. #include <libxml/xmlversion.h>
  3433. int
  3434. main()
  3435. {
  3436. int xml_major_version, xml_minor_version, xml_micro_version;
  3437. int major, minor, micro;
  3438. char *tmp_version;
  3439. system("touch conf.xmltest");
  3440. /* Capture xml2-config output via autoconf/configure variables */
  3441. /* HP/UX 9 (%@#!) writes to sscanf strings */
  3442. tmp_version = (char *)strdup("$min_xml_version");
  3443. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  3444. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  3445. exit(1);
  3446. }
  3447. free(tmp_version);
  3448. /* Capture the version information from the header files */
  3449. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  3450. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  3451. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  3452. exit(1);
  3453. }
  3454. free(tmp_version);
  3455. /* Compare xml2-config output to the libxml headers */
  3456. if ((xml_major_version != $xml_config_major_version) ||
  3457. (xml_minor_version != $xml_config_minor_version) ||
  3458. (xml_micro_version != $xml_config_micro_version))
  3459. {
  3460. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  3461. xml_major_version, xml_minor_version, xml_micro_version);
  3462. printf("*** xml2-config (version %d.%d.%d)\n",
  3463. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  3464. return 1;
  3465. }
  3466. /* Compare the headers to the library to make sure we match */
  3467. /* Less than ideal -- doesn't provide us with return value feedback,
  3468. * only exits if there's a serious mismatch between header and library.
  3469. */
  3470. LIBXML_TEST_VERSION;
  3471. /* Test that the library is greater than our minimum version */
  3472. if ((xml_major_version > major) ||
  3473. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  3474. ((xml_major_version == major) && (xml_minor_version == minor) &&
  3475. (xml_micro_version >= micro)))
  3476. {
  3477. return 0;
  3478. }
  3479. else
  3480. {
  3481. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  3482. xml_major_version, xml_minor_version, xml_micro_version);
  3483. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  3484. major, minor, micro);
  3485. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  3486. printf("***\n");
  3487. printf("*** If you have already installed a sufficiently new version, this error\n");
  3488. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  3489. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  3490. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  3491. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  3492. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  3493. printf("*** so that the correct libraries are found at run-time))\n");
  3494. }
  3495. return 1;
  3496. }
  3497. _ACEOF
  3498. rm -f conftest$ac_exeext
  3499. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3500. (eval $ac_link) 2>&5
  3501. ac_status=$?
  3502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3503. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3504. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3505. (eval $ac_try) 2>&5
  3506. ac_status=$?
  3507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3508. (exit $ac_status); }; }; then
  3509. :
  3510. else
  3511. echo "$as_me: program exited with status $ac_status" >&5
  3512. echo "$as_me: failed program was:" >&5
  3513. sed 's/^/| /' conftest.$ac_ext >&5
  3514. ( exit $ac_status )
  3515. no_xml=yes
  3516. fi
  3517. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3518. fi
  3519. CPPFLAGS="$ac_save_CPPFLAGS"
  3520. LIBS="$ac_save_LIBS"
  3521. fi
  3522. fi
  3523. if test "x$no_xml" = x ; then
  3524. echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  3525. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
  3526. have_libxml2=yes
  3527. else
  3528. echo "$as_me:$LINENO: result: no" >&5
  3529. echo "${ECHO_T}no" >&6
  3530. if test "$XML2_CONFIG" = "no" ; then
  3531. echo "*** The xml2-config script installed by LIBXML could not be found"
  3532. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  3533. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  3534. echo "*** full path to xml2-config."
  3535. else
  3536. if test -f conf.xmltest ; then
  3537. :
  3538. else
  3539. echo "*** Could not run libxml test program, checking why..."
  3540. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  3541. LIBS="$LIBS $XML_LIBS"
  3542. cat >conftest.$ac_ext <<_ACEOF
  3543. /* confdefs.h. */
  3544. _ACEOF
  3545. cat confdefs.h >>conftest.$ac_ext
  3546. cat >>conftest.$ac_ext <<_ACEOF
  3547. /* end confdefs.h. */
  3548. #include <libxml/xmlversion.h>
  3549. #include <stdio.h>
  3550. int
  3551. main ()
  3552. {
  3553. LIBXML_TEST_VERSION; return 0;
  3554. ;
  3555. return 0;
  3556. }
  3557. _ACEOF
  3558. rm -f conftest.$ac_objext conftest$ac_exeext
  3559. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3560. (eval $ac_link) 2>conftest.er1
  3561. ac_status=$?
  3562. grep -v '^ *+' conftest.er1 >conftest.err
  3563. rm -f conftest.er1
  3564. cat conftest.err >&5
  3565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3566. (exit $ac_status); } &&
  3567. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3568. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3569. (eval $ac_try) 2>&5
  3570. ac_status=$?
  3571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3572. (exit $ac_status); }; } &&
  3573. { ac_try='test -s conftest$ac_exeext'
  3574. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3575. (eval $ac_try) 2>&5
  3576. ac_status=$?
  3577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3578. (exit $ac_status); }; }; then
  3579. echo "*** The test program compiled, but did not run. This usually means"
  3580. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  3581. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  3582. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3583. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  3584. echo "*** is required on your system"
  3585. echo "***"
  3586. echo "*** If you have an old version installed, it is best to remove it, although"
  3587. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3588. else
  3589. echo "$as_me: failed program was:" >&5
  3590. sed 's/^/| /' conftest.$ac_ext >&5
  3591. echo "*** The test program failed to compile or link. See the file config.log for the"
  3592. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  3593. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  3594. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  3595. fi
  3596. rm -f conftest.err conftest.$ac_objext \
  3597. conftest$ac_exeext conftest.$ac_ext
  3598. CPPFLAGS="$ac_save_CPPFLAGS"
  3599. LIBS="$ac_save_LIBS"
  3600. fi
  3601. fi
  3602. XML_CPPFLAGS=""
  3603. XML_LIBS=""
  3604. :
  3605. fi
  3606. rm -f conf.xmltest
  3607. if test "x$have_libxml2" = "xyes"; then
  3608. cat >>confdefs.h <<\_ACEOF
  3609. #define HAVE_LIBXML2 1
  3610. _ACEOF
  3611. fi
  3612. fi
  3613. if test "x$with_gnutls" = "xyes"; then
  3614. # Check whether --with-libgnutls-prefix or --without-libgnutls-prefix was given.
  3615. if test "${with_libgnutls_prefix+set}" = set; then
  3616. withval="$with_libgnutls_prefix"
  3617. libgnutls_config_prefix="$withval"
  3618. else
  3619. libgnutls_config_prefix=""
  3620. fi;
  3621. if test x$libgnutls_config_prefix != x ; then
  3622. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  3623. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  3624. fi
  3625. fi
  3626. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  3627. set dummy libgnutls-config; ac_word=$2
  3628. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3629. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3630. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  3631. echo $ECHO_N "(cached) $ECHO_C" >&6
  3632. else
  3633. case $LIBGNUTLS_CONFIG in
  3634. [\\/]* | ?:[\\/]*)
  3635. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  3636. ;;
  3637. *)
  3638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3639. for as_dir in $PATH
  3640. do
  3641. IFS=$as_save_IFS
  3642. test -z "$as_dir" && as_dir=.
  3643. for ac_exec_ext in '' $ac_executable_extensions; do
  3644. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3645. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3646. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3647. break 2
  3648. fi
  3649. done
  3650. done
  3651. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  3652. ;;
  3653. esac
  3654. fi
  3655. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  3656. if test -n "$LIBGNUTLS_CONFIG"; then
  3657. echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  3658. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6
  3659. else
  3660. echo "$as_me:$LINENO: result: no" >&5
  3661. echo "${ECHO_T}no" >&6
  3662. fi
  3663. min_libgnutls_version=1.2.9
  3664. echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  3665. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6
  3666. no_libgnutls=""
  3667. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  3668. no_libgnutls=yes
  3669. else
  3670. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  3671. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  3672. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  3673. ac_save_CFLAGS="$CFLAGS"
  3674. ac_save_LIBS="$LIBS"
  3675. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  3676. LIBS="$LIBS $LIBGNUTLS_LIBS"
  3677. rm -f conf.libgnutlstest
  3678. if test "$cross_compiling" = yes; then
  3679. echo $ac_n "cross compiling; assumed OK... $ac_c"
  3680. else
  3681. cat >conftest.$ac_ext <<_ACEOF
  3682. /* confdefs.h. */
  3683. _ACEOF
  3684. cat confdefs.h >>conftest.$ac_ext
  3685. cat >>conftest.$ac_ext <<_ACEOF
  3686. /* end confdefs.h. */
  3687. #include <stdio.h>
  3688. #include <stdlib.h>
  3689. #include <string.h>
  3690. #include <gnutls/gnutls.h>
  3691. int
  3692. main ()
  3693. {
  3694. system ("touch conf.libgnutlstest");
  3695. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  3696. {
  3697. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  3698. "$libgnutls_config_version", gnutls_check_version(NULL) );
  3699. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  3700. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  3701. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  3702. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  3703. printf("*** required on your system.\n");
  3704. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  3705. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  3706. printf("*** before re-running configure\n");
  3707. }
  3708. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  3709. {
  3710. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  3711. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  3712. }
  3713. else
  3714. {
  3715. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  3716. {
  3717. return 0;
  3718. }
  3719. else
  3720. {
  3721. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  3722. gnutls_check_version(NULL) );
  3723. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  3724. "$min_libgnutls_version" );
  3725. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  3726. printf("*** \n");
  3727. printf("*** If you have already installed a sufficiently new version, this error\n");
  3728. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  3729. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  3730. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  3731. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  3732. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  3733. printf("*** so that the correct libraries are found at run-time))\n");
  3734. }
  3735. }
  3736. return 1;
  3737. }
  3738. _ACEOF
  3739. rm -f conftest$ac_exeext
  3740. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3741. (eval $ac_link) 2>&5
  3742. ac_status=$?
  3743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3744. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3745. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3746. (eval $ac_try) 2>&5
  3747. ac_status=$?
  3748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3749. (exit $ac_status); }; }; then
  3750. :
  3751. else
  3752. echo "$as_me: program exited with status $ac_status" >&5
  3753. echo "$as_me: failed program was:" >&5
  3754. sed 's/^/| /' conftest.$ac_ext >&5
  3755. ( exit $ac_status )
  3756. no_libgnutls=yes
  3757. fi
  3758. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3759. fi
  3760. CFLAGS="$ac_save_CFLAGS"
  3761. LIBS="$ac_save_LIBS"
  3762. fi
  3763. if test "x$no_libgnutls" = x ; then
  3764. echo "$as_me:$LINENO: result: yes" >&5
  3765. echo "${ECHO_T}yes" >&6
  3766. have_libgnutls=yes
  3767. else
  3768. if test -f conf.libgnutlstest ; then
  3769. :
  3770. else
  3771. echo "$as_me:$LINENO: result: no" >&5
  3772. echo "${ECHO_T}no" >&6
  3773. fi
  3774. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  3775. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  3776. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  3777. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  3778. echo "*** full path to libgnutls-config."
  3779. else
  3780. if test -f conf.libgnutlstest ; then
  3781. :
  3782. else
  3783. echo "*** Could not run libgnutls test program, checking why..."
  3784. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  3785. LIBS="$LIBS $LIBGNUTLS_LIBS"
  3786. cat >conftest.$ac_ext <<_ACEOF
  3787. /* confdefs.h. */
  3788. _ACEOF
  3789. cat confdefs.h >>conftest.$ac_ext
  3790. cat >>conftest.$ac_ext <<_ACEOF
  3791. /* end confdefs.h. */
  3792. #include <stdio.h>
  3793. #include <stdlib.h>
  3794. #include <string.h>
  3795. #include <gnutls/gnutls.h>
  3796. int
  3797. main ()
  3798. {
  3799. return !!gnutls_check_version(NULL);
  3800. ;
  3801. return 0;
  3802. }
  3803. _ACEOF
  3804. rm -f conftest.$ac_objext conftest$ac_exeext
  3805. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3806. (eval $ac_link) 2>conftest.er1
  3807. ac_status=$?
  3808. grep -v '^ *+' conftest.er1 >conftest.err
  3809. rm -f conftest.er1
  3810. cat conftest.err >&5
  3811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3812. (exit $ac_status); } &&
  3813. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3814. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3815. (eval $ac_try) 2>&5
  3816. ac_status=$?
  3817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3818. (exit $ac_status); }; } &&
  3819. { ac_try='test -s conftest$ac_exeext'
  3820. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3821. (eval $ac_try) 2>&5
  3822. ac_status=$?
  3823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3824. (exit $ac_status); }; }; then
  3825. echo "*** The test program compiled, but did not run. This usually means"
  3826. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  3827. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  3828. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3829. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  3830. echo "*** is required on your system"
  3831. echo "***"
  3832. echo "*** If you have an old version installed, it is best to remove it, although"
  3833. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3834. echo "***"
  3835. else
  3836. echo "$as_me: failed program was:" >&5
  3837. sed 's/^/| /' conftest.$ac_ext >&5
  3838. echo "*** The test program failed to compile or link. See the file config.log for the"
  3839. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  3840. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  3841. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  3842. fi
  3843. rm -f conftest.err conftest.$ac_objext \
  3844. conftest$ac_exeext conftest.$ac_ext
  3845. CFLAGS="$ac_save_CFLAGS"
  3846. LIBS="$ac_save_LIBS"
  3847. fi
  3848. fi
  3849. LIBGNUTLS_CFLAGS=""
  3850. LIBGNUTLS_LIBS=""
  3851. :
  3852. fi
  3853. rm -f conf.libgnutlstest
  3854. if test "x$have_libgnutls" = "xyes"; then
  3855. cat >>confdefs.h <<\_ACEOF
  3856. #define HAVE_LIBGNUTLS 1
  3857. _ACEOF
  3858. fi
  3859. fi
  3860. if test "x$have_libgnutls" = "xyes"; then
  3861. # Check whether --with-libgcrypt-prefix or --without-libgcrypt-prefix was given.
  3862. if test "${with_libgcrypt_prefix+set}" = set; then
  3863. withval="$with_libgcrypt_prefix"
  3864. libgcrypt_config_prefix="$withval"
  3865. else
  3866. libgcrypt_config_prefix=""
  3867. fi;
  3868. if test x$libgcrypt_config_prefix != x ; then
  3869. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  3870. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  3871. fi
  3872. fi
  3873. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  3874. set dummy libgcrypt-config; ac_word=$2
  3875. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3876. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3877. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  3878. echo $ECHO_N "(cached) $ECHO_C" >&6
  3879. else
  3880. case $LIBGCRYPT_CONFIG in
  3881. [\\/]* | ?:[\\/]*)
  3882. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  3883. ;;
  3884. *)
  3885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3886. for as_dir in $PATH
  3887. do
  3888. IFS=$as_save_IFS
  3889. test -z "$as_dir" && as_dir=.
  3890. for ac_exec_ext in '' $ac_executable_extensions; do
  3891. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3892. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3893. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3894. break 2
  3895. fi
  3896. done
  3897. done
  3898. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  3899. ;;
  3900. esac
  3901. fi
  3902. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  3903. if test -n "$LIBGCRYPT_CONFIG"; then
  3904. echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  3905. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6
  3906. else
  3907. echo "$as_me:$LINENO: result: no" >&5
  3908. echo "${ECHO_T}no" >&6
  3909. fi
  3910. tmp=1.2.2
  3911. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  3912. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  3913. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  3914. else
  3915. req_libgcrypt_api=0
  3916. min_libgcrypt_version="$tmp"
  3917. fi
  3918. echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  3919. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6
  3920. ok=no
  3921. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  3922. req_major=`echo $min_libgcrypt_version | \
  3923. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  3924. req_minor=`echo $min_libgcrypt_version | \
  3925. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  3926. req_micro=`echo $min_libgcrypt_version | \
  3927. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  3928. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  3929. major=`echo $libgcrypt_config_version | \
  3930. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  3931. minor=`echo $libgcrypt_config_version | \
  3932. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  3933. micro=`echo $libgcrypt_config_version | \
  3934. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  3935. if test "$major" -gt "$req_major"; then
  3936. ok=yes
  3937. else
  3938. if test "$major" -eq "$req_major"; then
  3939. if test "$minor" -gt "$req_minor"; then
  3940. ok=yes
  3941. else
  3942. if test "$minor" -eq "$req_minor"; then
  3943. if test "$micro" -ge "$req_micro"; then
  3944. ok=yes
  3945. fi
  3946. fi
  3947. fi
  3948. fi
  3949. fi
  3950. fi
  3951. if test $ok = yes; then
  3952. echo "$as_me:$LINENO: result: yes" >&5
  3953. echo "${ECHO_T}yes" >&6
  3954. else
  3955. echo "$as_me:$LINENO: result: no" >&5
  3956. echo "${ECHO_T}no" >&6
  3957. fi
  3958. if test $ok = yes; then
  3959. # If we have a recent libgcrypt, we should also check that the
  3960. # API is compatible
  3961. if test "$req_libgcrypt_api" -gt 0 ; then
  3962. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  3963. if test "$tmp" -gt 0 ; then
  3964. echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  3965. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6
  3966. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  3967. echo "$as_me:$LINENO: result: okay" >&5
  3968. echo "${ECHO_T}okay" >&6
  3969. else
  3970. ok=no
  3971. echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
  3972. echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6
  3973. fi
  3974. fi
  3975. fi
  3976. fi
  3977. if test $ok = yes; then
  3978. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  3979. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  3980. have_libgcrypt=yes
  3981. else
  3982. LIBGCRYPT_CFLAGS=""
  3983. LIBGCRYPT_LIBS=""
  3984. :
  3985. fi
  3986. if test "x$have_libgcrypt" = "xyes"; then
  3987. cat >>confdefs.h <<\_ACEOF
  3988. #define HAVE_LIBGCRYPT 1
  3989. _ACEOF
  3990. fi
  3991. fi
  3992. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  3993. # AC_CHECK_LIB([ssl], [SSL_library_init], [have_openssl=yes])
  3994. # if test "x$have_openssl" = "xyes"; then
  3995. # AC_DEFINE([HAVE_LIBSSL], [1], [Define to 1 if you have openssl.])
  3996. # OPENSSL_LIBS="-lssl"
  3997. # OPENSSL_CFLAGS=""
  3998. # AC_SUBST(OPENSSL_LIBS)
  3999. # AC_SUBST(OPENSSL_CFLAGS)
  4000. # fi
  4001. # Check whether --with-openssl-prefix or --without-openssl-prefix was given.
  4002. if test "${with_openssl_prefix+set}" = set; then
  4003. withval="$with_openssl_prefix"
  4004. openssl_prefix=$withval
  4005. else
  4006. openssl_prefix=""
  4007. fi;
  4008. if test "x$openssl_prefix" = "x"; then
  4009. openssl_prefix="/usr/local"
  4010. fi
  4011. openssl_prefix_lib=$openssl_prefix/lib
  4012. openssl_prefix_include=$openssl_prefix/include
  4013. LIBS_save=$LIBS
  4014. CPPFLAGS_save=$CPPFLAGS
  4015. LIBS="-L$openssl_prefix_lib $LIBS"
  4016. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  4017. echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  4018. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
  4019. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  4020. echo $ECHO_N "(cached) $ECHO_C" >&6
  4021. else
  4022. ac_check_lib_save_LIBS=$LIBS
  4023. LIBS="-lssl $LIBS"
  4024. cat >conftest.$ac_ext <<_ACEOF
  4025. /* confdefs.h. */
  4026. _ACEOF
  4027. cat confdefs.h >>conftest.$ac_ext
  4028. cat >>conftest.$ac_ext <<_ACEOF
  4029. /* end confdefs.h. */
  4030. /* Override any gcc2 internal prototype to avoid an error. */
  4031. #ifdef __cplusplus
  4032. extern "C"
  4033. #endif
  4034. /* We use char because int might match the return type of a gcc2
  4035. builtin and then its argument prototype would still apply. */
  4036. char SSL_library_init ();
  4037. int
  4038. main ()
  4039. {
  4040. SSL_library_init ();
  4041. ;
  4042. return 0;
  4043. }
  4044. _ACEOF
  4045. rm -f conftest.$ac_objext conftest$ac_exeext
  4046. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4047. (eval $ac_link) 2>conftest.er1
  4048. ac_status=$?
  4049. grep -v '^ *+' conftest.er1 >conftest.err
  4050. rm -f conftest.er1
  4051. cat conftest.err >&5
  4052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4053. (exit $ac_status); } &&
  4054. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4055. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4056. (eval $ac_try) 2>&5
  4057. ac_status=$?
  4058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4059. (exit $ac_status); }; } &&
  4060. { ac_try='test -s conftest$ac_exeext'
  4061. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4062. (eval $ac_try) 2>&5
  4063. ac_status=$?
  4064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4065. (exit $ac_status); }; }; then
  4066. ac_cv_lib_ssl_SSL_library_init=yes
  4067. else
  4068. echo "$as_me: failed program was:" >&5
  4069. sed 's/^/| /' conftest.$ac_ext >&5
  4070. ac_cv_lib_ssl_SSL_library_init=no
  4071. fi
  4072. rm -f conftest.err conftest.$ac_objext \
  4073. conftest$ac_exeext conftest.$ac_ext
  4074. LIBS=$ac_check_lib_save_LIBS
  4075. fi
  4076. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  4077. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
  4078. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  4079. have_openssl=yes
  4080. fi
  4081. if test "x$have_openssl" = "xyes"; then
  4082. have_openssl=no
  4083. echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  4084. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
  4085. if test "${ac_cv_lib_crypto_main+set}" = set; then
  4086. echo $ECHO_N "(cached) $ECHO_C" >&6
  4087. else
  4088. ac_check_lib_save_LIBS=$LIBS
  4089. LIBS="-lcrypto $LIBS"
  4090. cat >conftest.$ac_ext <<_ACEOF
  4091. /* confdefs.h. */
  4092. _ACEOF
  4093. cat confdefs.h >>conftest.$ac_ext
  4094. cat >>conftest.$ac_ext <<_ACEOF
  4095. /* end confdefs.h. */
  4096. int
  4097. main ()
  4098. {
  4099. main ();
  4100. ;
  4101. return 0;
  4102. }
  4103. _ACEOF
  4104. rm -f conftest.$ac_objext conftest$ac_exeext
  4105. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4106. (eval $ac_link) 2>conftest.er1
  4107. ac_status=$?
  4108. grep -v '^ *+' conftest.er1 >conftest.err
  4109. rm -f conftest.er1
  4110. cat conftest.err >&5
  4111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4112. (exit $ac_status); } &&
  4113. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4114. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4115. (eval $ac_try) 2>&5
  4116. ac_status=$?
  4117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4118. (exit $ac_status); }; } &&
  4119. { ac_try='test -s conftest$ac_exeext'
  4120. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4121. (eval $ac_try) 2>&5
  4122. ac_status=$?
  4123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4124. (exit $ac_status); }; }; then
  4125. ac_cv_lib_crypto_main=yes
  4126. else
  4127. echo "$as_me: failed program was:" >&5
  4128. sed 's/^/| /' conftest.$ac_ext >&5
  4129. ac_cv_lib_crypto_main=no
  4130. fi
  4131. rm -f conftest.err conftest.$ac_objext \
  4132. conftest$ac_exeext conftest.$ac_ext
  4133. LIBS=$ac_check_lib_save_LIBS
  4134. fi
  4135. echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  4136. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
  4137. if test $ac_cv_lib_crypto_main = yes; then
  4138. have_openssl=yes
  4139. fi
  4140. if test "x$have_openssl" = "xyes"; then
  4141. cat >>confdefs.h <<\_ACEOF
  4142. #define HAVE_LIBSSL 1
  4143. _ACEOF
  4144. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  4145. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  4146. fi
  4147. fi
  4148. LIBS=$LIBS_save
  4149. CPPFLAGS=$CPPFLAGS_save
  4150. fi
  4151. if test "x$have_libxml2" = "xyes"; then
  4152. cat >>confdefs.h <<\_ACEOF
  4153. #define ENABLE_METALINK 1
  4154. _ACEOF
  4155. fi
  4156. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  4157. cat >>confdefs.h <<\_ACEOF
  4158. #define ENABLE_SSL 1
  4159. _ACEOF
  4160. fi
  4161. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  4162. cat >>confdefs.h <<\_ACEOF
  4163. #define ENABLE_SHA1DIGEST 1
  4164. _ACEOF
  4165. cat >>confdefs.h <<\_ACEOF
  4166. #define ENABLE_BITTORRENT 1
  4167. _ACEOF
  4168. fi
  4169. # Checks for header files.
  4170. ac_ext=c
  4171. ac_cpp='$CPP $CPPFLAGS'
  4172. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4173. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4174. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4175. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4176. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4177. # On Suns, sometimes $CPP names a directory.
  4178. if test -n "$CPP" && test -d "$CPP"; then
  4179. CPP=
  4180. fi
  4181. if test -z "$CPP"; then
  4182. if test "${ac_cv_prog_CPP+set}" = set; then
  4183. echo $ECHO_N "(cached) $ECHO_C" >&6
  4184. else
  4185. # Double quotes because CPP needs to be expanded
  4186. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4187. do
  4188. ac_preproc_ok=false
  4189. for ac_c_preproc_warn_flag in '' yes
  4190. do
  4191. # Use a header file that comes with gcc, so configuring glibc
  4192. # with a fresh cross-compiler works.
  4193. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4194. # <limits.h> exists even on freestanding compilers.
  4195. # On the NeXT, cc -E runs the code through the compiler's parser,
  4196. # not just through cpp. "Syntax error" is here to catch this case.
  4197. cat >conftest.$ac_ext <<_ACEOF
  4198. /* confdefs.h. */
  4199. _ACEOF
  4200. cat confdefs.h >>conftest.$ac_ext
  4201. cat >>conftest.$ac_ext <<_ACEOF
  4202. /* end confdefs.h. */
  4203. #ifdef __STDC__
  4204. # include <limits.h>
  4205. #else
  4206. # include <assert.h>
  4207. #endif
  4208. Syntax error
  4209. _ACEOF
  4210. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4211. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4212. ac_status=$?
  4213. grep -v '^ *+' conftest.er1 >conftest.err
  4214. rm -f conftest.er1
  4215. cat conftest.err >&5
  4216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4217. (exit $ac_status); } >/dev/null; then
  4218. if test -s conftest.err; then
  4219. ac_cpp_err=$ac_c_preproc_warn_flag
  4220. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4221. else
  4222. ac_cpp_err=
  4223. fi
  4224. else
  4225. ac_cpp_err=yes
  4226. fi
  4227. if test -z "$ac_cpp_err"; then
  4228. :
  4229. else
  4230. echo "$as_me: failed program was:" >&5
  4231. sed 's/^/| /' conftest.$ac_ext >&5
  4232. # Broken: fails on valid input.
  4233. continue
  4234. fi
  4235. rm -f conftest.err conftest.$ac_ext
  4236. # OK, works on sane cases. Now check whether non-existent headers
  4237. # can be detected and how.
  4238. cat >conftest.$ac_ext <<_ACEOF
  4239. /* confdefs.h. */
  4240. _ACEOF
  4241. cat confdefs.h >>conftest.$ac_ext
  4242. cat >>conftest.$ac_ext <<_ACEOF
  4243. /* end confdefs.h. */
  4244. #include <ac_nonexistent.h>
  4245. _ACEOF
  4246. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4247. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4248. ac_status=$?
  4249. grep -v '^ *+' conftest.er1 >conftest.err
  4250. rm -f conftest.er1
  4251. cat conftest.err >&5
  4252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4253. (exit $ac_status); } >/dev/null; then
  4254. if test -s conftest.err; then
  4255. ac_cpp_err=$ac_c_preproc_warn_flag
  4256. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4257. else
  4258. ac_cpp_err=
  4259. fi
  4260. else
  4261. ac_cpp_err=yes
  4262. fi
  4263. if test -z "$ac_cpp_err"; then
  4264. # Broken: success on invalid input.
  4265. continue
  4266. else
  4267. echo "$as_me: failed program was:" >&5
  4268. sed 's/^/| /' conftest.$ac_ext >&5
  4269. # Passes both tests.
  4270. ac_preproc_ok=:
  4271. break
  4272. fi
  4273. rm -f conftest.err conftest.$ac_ext
  4274. done
  4275. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4276. rm -f conftest.err conftest.$ac_ext
  4277. if $ac_preproc_ok; then
  4278. break
  4279. fi
  4280. done
  4281. ac_cv_prog_CPP=$CPP
  4282. fi
  4283. CPP=$ac_cv_prog_CPP
  4284. else
  4285. ac_cv_prog_CPP=$CPP
  4286. fi
  4287. echo "$as_me:$LINENO: result: $CPP" >&5
  4288. echo "${ECHO_T}$CPP" >&6
  4289. ac_preproc_ok=false
  4290. for ac_c_preproc_warn_flag in '' yes
  4291. do
  4292. # Use a header file that comes with gcc, so configuring glibc
  4293. # with a fresh cross-compiler works.
  4294. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4295. # <limits.h> exists even on freestanding compilers.
  4296. # On the NeXT, cc -E runs the code through the compiler's parser,
  4297. # not just through cpp. "Syntax error" is here to catch this case.
  4298. cat >conftest.$ac_ext <<_ACEOF
  4299. /* confdefs.h. */
  4300. _ACEOF
  4301. cat confdefs.h >>conftest.$ac_ext
  4302. cat >>conftest.$ac_ext <<_ACEOF
  4303. /* end confdefs.h. */
  4304. #ifdef __STDC__
  4305. # include <limits.h>
  4306. #else
  4307. # include <assert.h>
  4308. #endif
  4309. Syntax error
  4310. _ACEOF
  4311. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4312. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4313. ac_status=$?
  4314. grep -v '^ *+' conftest.er1 >conftest.err
  4315. rm -f conftest.er1
  4316. cat conftest.err >&5
  4317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4318. (exit $ac_status); } >/dev/null; then
  4319. if test -s conftest.err; then
  4320. ac_cpp_err=$ac_c_preproc_warn_flag
  4321. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4322. else
  4323. ac_cpp_err=
  4324. fi
  4325. else
  4326. ac_cpp_err=yes
  4327. fi
  4328. if test -z "$ac_cpp_err"; then
  4329. :
  4330. else
  4331. echo "$as_me: failed program was:" >&5
  4332. sed 's/^/| /' conftest.$ac_ext >&5
  4333. # Broken: fails on valid input.
  4334. continue
  4335. fi
  4336. rm -f conftest.err conftest.$ac_ext
  4337. # OK, works on sane cases. Now check whether non-existent headers
  4338. # can be detected and how.
  4339. cat >conftest.$ac_ext <<_ACEOF
  4340. /* confdefs.h. */
  4341. _ACEOF
  4342. cat confdefs.h >>conftest.$ac_ext
  4343. cat >>conftest.$ac_ext <<_ACEOF
  4344. /* end confdefs.h. */
  4345. #include <ac_nonexistent.h>
  4346. _ACEOF
  4347. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4348. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4349. ac_status=$?
  4350. grep -v '^ *+' conftest.er1 >conftest.err
  4351. rm -f conftest.er1
  4352. cat conftest.err >&5
  4353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4354. (exit $ac_status); } >/dev/null; then
  4355. if test -s conftest.err; then
  4356. ac_cpp_err=$ac_c_preproc_warn_flag
  4357. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4358. else
  4359. ac_cpp_err=
  4360. fi
  4361. else
  4362. ac_cpp_err=yes
  4363. fi
  4364. if test -z "$ac_cpp_err"; then
  4365. # Broken: success on invalid input.
  4366. continue
  4367. else
  4368. echo "$as_me: failed program was:" >&5
  4369. sed 's/^/| /' conftest.$ac_ext >&5
  4370. # Passes both tests.
  4371. ac_preproc_ok=:
  4372. break
  4373. fi
  4374. rm -f conftest.err conftest.$ac_ext
  4375. done
  4376. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4377. rm -f conftest.err conftest.$ac_ext
  4378. if $ac_preproc_ok; then
  4379. :
  4380. else
  4381. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4382. See \`config.log' for more details." >&5
  4383. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4384. See \`config.log' for more details." >&2;}
  4385. { (exit 1); exit 1; }; }
  4386. fi
  4387. ac_ext=c
  4388. ac_cpp='$CPP $CPPFLAGS'
  4389. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4390. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4391. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4392. echo "$as_me:$LINENO: checking for egrep" >&5
  4393. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  4394. if test "${ac_cv_prog_egrep+set}" = set; then
  4395. echo $ECHO_N "(cached) $ECHO_C" >&6
  4396. else
  4397. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  4398. then ac_cv_prog_egrep='grep -E'
  4399. else ac_cv_prog_egrep='egrep'
  4400. fi
  4401. fi
  4402. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  4403. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  4404. EGREP=$ac_cv_prog_egrep
  4405. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  4406. # for constant arguments. Useless!
  4407. echo "$as_me:$LINENO: checking for working alloca.h" >&5
  4408. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
  4409. if test "${ac_cv_working_alloca_h+set}" = set; then
  4410. echo $ECHO_N "(cached) $ECHO_C" >&6
  4411. else
  4412. cat >conftest.$ac_ext <<_ACEOF
  4413. /* confdefs.h. */
  4414. _ACEOF
  4415. cat confdefs.h >>conftest.$ac_ext
  4416. cat >>conftest.$ac_ext <<_ACEOF
  4417. /* end confdefs.h. */
  4418. #include <alloca.h>
  4419. int
  4420. main ()
  4421. {
  4422. char *p = (char *) alloca (2 * sizeof (int));
  4423. ;
  4424. return 0;
  4425. }
  4426. _ACEOF
  4427. rm -f conftest.$ac_objext conftest$ac_exeext
  4428. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4429. (eval $ac_link) 2>conftest.er1
  4430. ac_status=$?
  4431. grep -v '^ *+' conftest.er1 >conftest.err
  4432. rm -f conftest.er1
  4433. cat conftest.err >&5
  4434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4435. (exit $ac_status); } &&
  4436. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4437. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4438. (eval $ac_try) 2>&5
  4439. ac_status=$?
  4440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4441. (exit $ac_status); }; } &&
  4442. { ac_try='test -s conftest$ac_exeext'
  4443. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4444. (eval $ac_try) 2>&5
  4445. ac_status=$?
  4446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4447. (exit $ac_status); }; }; then
  4448. ac_cv_working_alloca_h=yes
  4449. else
  4450. echo "$as_me: failed program was:" >&5
  4451. sed 's/^/| /' conftest.$ac_ext >&5
  4452. ac_cv_working_alloca_h=no
  4453. fi
  4454. rm -f conftest.err conftest.$ac_objext \
  4455. conftest$ac_exeext conftest.$ac_ext
  4456. fi
  4457. echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  4458. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
  4459. if test $ac_cv_working_alloca_h = yes; then
  4460. cat >>confdefs.h <<\_ACEOF
  4461. #define HAVE_ALLOCA_H 1
  4462. _ACEOF
  4463. fi
  4464. echo "$as_me:$LINENO: checking for alloca" >&5
  4465. echo $ECHO_N "checking for alloca... $ECHO_C" >&6
  4466. if test "${ac_cv_func_alloca_works+set}" = set; then
  4467. echo $ECHO_N "(cached) $ECHO_C" >&6
  4468. else
  4469. cat >conftest.$ac_ext <<_ACEOF
  4470. /* confdefs.h. */
  4471. _ACEOF
  4472. cat confdefs.h >>conftest.$ac_ext
  4473. cat >>conftest.$ac_ext <<_ACEOF
  4474. /* end confdefs.h. */
  4475. #ifdef __GNUC__
  4476. # define alloca __builtin_alloca
  4477. #else
  4478. # ifdef _MSC_VER
  4479. # include <malloc.h>
  4480. # define alloca _alloca
  4481. # else
  4482. # if HAVE_ALLOCA_H
  4483. # include <alloca.h>
  4484. # else
  4485. # ifdef _AIX
  4486. #pragma alloca
  4487. # else
  4488. # ifndef alloca /* predefined by HP cc +Olibcalls */
  4489. char *alloca ();
  4490. # endif
  4491. # endif
  4492. # endif
  4493. # endif
  4494. #endif
  4495. int
  4496. main ()
  4497. {
  4498. char *p = (char *) alloca (1);
  4499. ;
  4500. return 0;
  4501. }
  4502. _ACEOF
  4503. rm -f conftest.$ac_objext conftest$ac_exeext
  4504. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4505. (eval $ac_link) 2>conftest.er1
  4506. ac_status=$?
  4507. grep -v '^ *+' conftest.er1 >conftest.err
  4508. rm -f conftest.er1
  4509. cat conftest.err >&5
  4510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4511. (exit $ac_status); } &&
  4512. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4513. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4514. (eval $ac_try) 2>&5
  4515. ac_status=$?
  4516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4517. (exit $ac_status); }; } &&
  4518. { ac_try='test -s conftest$ac_exeext'
  4519. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4520. (eval $ac_try) 2>&5
  4521. ac_status=$?
  4522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4523. (exit $ac_status); }; }; then
  4524. ac_cv_func_alloca_works=yes
  4525. else
  4526. echo "$as_me: failed program was:" >&5
  4527. sed 's/^/| /' conftest.$ac_ext >&5
  4528. ac_cv_func_alloca_works=no
  4529. fi
  4530. rm -f conftest.err conftest.$ac_objext \
  4531. conftest$ac_exeext conftest.$ac_ext
  4532. fi
  4533. echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  4534. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
  4535. if test $ac_cv_func_alloca_works = yes; then
  4536. cat >>confdefs.h <<\_ACEOF
  4537. #define HAVE_ALLOCA 1
  4538. _ACEOF
  4539. else
  4540. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  4541. # that cause trouble. Some versions do not even contain alloca or
  4542. # contain a buggy version. If you still want to use their alloca,
  4543. # use ar to extract alloca.o from them instead of compiling alloca.c.
  4544. ALLOCA=alloca.$ac_objext
  4545. cat >>confdefs.h <<\_ACEOF
  4546. #define C_ALLOCA 1
  4547. _ACEOF
  4548. echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  4549. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
  4550. if test "${ac_cv_os_cray+set}" = set; then
  4551. echo $ECHO_N "(cached) $ECHO_C" >&6
  4552. else
  4553. cat >conftest.$ac_ext <<_ACEOF
  4554. /* confdefs.h. */
  4555. _ACEOF
  4556. cat confdefs.h >>conftest.$ac_ext
  4557. cat >>conftest.$ac_ext <<_ACEOF
  4558. /* end confdefs.h. */
  4559. #if defined(CRAY) && ! defined(CRAY2)
  4560. webecray
  4561. #else
  4562. wenotbecray
  4563. #endif
  4564. _ACEOF
  4565. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4566. $EGREP "webecray" >/dev/null 2>&1; then
  4567. ac_cv_os_cray=yes
  4568. else
  4569. ac_cv_os_cray=no
  4570. fi
  4571. rm -f conftest*
  4572. fi
  4573. echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  4574. echo "${ECHO_T}$ac_cv_os_cray" >&6
  4575. if test $ac_cv_os_cray = yes; then
  4576. for ac_func in _getb67 GETB67 getb67; do
  4577. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4578. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4579. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4580. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4581. echo $ECHO_N "(cached) $ECHO_C" >&6
  4582. else
  4583. cat >conftest.$ac_ext <<_ACEOF
  4584. /* confdefs.h. */
  4585. _ACEOF
  4586. cat confdefs.h >>conftest.$ac_ext
  4587. cat >>conftest.$ac_ext <<_ACEOF
  4588. /* end confdefs.h. */
  4589. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4590. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4591. #define $ac_func innocuous_$ac_func
  4592. /* System header to define __stub macros and hopefully few prototypes,
  4593. which can conflict with char $ac_func (); below.
  4594. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4595. <limits.h> exists even on freestanding compilers. */
  4596. #ifdef __STDC__
  4597. # include <limits.h>
  4598. #else
  4599. # include <assert.h>
  4600. #endif
  4601. #undef $ac_func
  4602. /* Override any gcc2 internal prototype to avoid an error. */
  4603. #ifdef __cplusplus
  4604. extern "C"
  4605. {
  4606. #endif
  4607. /* We use char because int might match the return type of a gcc2
  4608. builtin and then its argument prototype would still apply. */
  4609. char $ac_func ();
  4610. /* The GNU C library defines this for functions which it implements
  4611. to always fail with ENOSYS. Some functions are actually named
  4612. something starting with __ and the normal name is an alias. */
  4613. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4614. choke me
  4615. #else
  4616. char (*f) () = $ac_func;
  4617. #endif
  4618. #ifdef __cplusplus
  4619. }
  4620. #endif
  4621. int
  4622. main ()
  4623. {
  4624. return f != $ac_func;
  4625. ;
  4626. return 0;
  4627. }
  4628. _ACEOF
  4629. rm -f conftest.$ac_objext conftest$ac_exeext
  4630. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4631. (eval $ac_link) 2>conftest.er1
  4632. ac_status=$?
  4633. grep -v '^ *+' conftest.er1 >conftest.err
  4634. rm -f conftest.er1
  4635. cat conftest.err >&5
  4636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4637. (exit $ac_status); } &&
  4638. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4639. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4640. (eval $ac_try) 2>&5
  4641. ac_status=$?
  4642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4643. (exit $ac_status); }; } &&
  4644. { ac_try='test -s conftest$ac_exeext'
  4645. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4646. (eval $ac_try) 2>&5
  4647. ac_status=$?
  4648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4649. (exit $ac_status); }; }; then
  4650. eval "$as_ac_var=yes"
  4651. else
  4652. echo "$as_me: failed program was:" >&5
  4653. sed 's/^/| /' conftest.$ac_ext >&5
  4654. eval "$as_ac_var=no"
  4655. fi
  4656. rm -f conftest.err conftest.$ac_objext \
  4657. conftest$ac_exeext conftest.$ac_ext
  4658. fi
  4659. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4660. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4661. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4662. cat >>confdefs.h <<_ACEOF
  4663. #define CRAY_STACKSEG_END $ac_func
  4664. _ACEOF
  4665. break
  4666. fi
  4667. done
  4668. fi
  4669. echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  4670. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
  4671. if test "${ac_cv_c_stack_direction+set}" = set; then
  4672. echo $ECHO_N "(cached) $ECHO_C" >&6
  4673. else
  4674. if test "$cross_compiling" = yes; then
  4675. ac_cv_c_stack_direction=0
  4676. else
  4677. cat >conftest.$ac_ext <<_ACEOF
  4678. /* confdefs.h. */
  4679. _ACEOF
  4680. cat confdefs.h >>conftest.$ac_ext
  4681. cat >>conftest.$ac_ext <<_ACEOF
  4682. /* end confdefs.h. */
  4683. int
  4684. find_stack_direction ()
  4685. {
  4686. static char *addr = 0;
  4687. auto char dummy;
  4688. if (addr == 0)
  4689. {
  4690. addr = &dummy;
  4691. return find_stack_direction ();
  4692. }
  4693. else
  4694. return (&dummy > addr) ? 1 : -1;
  4695. }
  4696. int
  4697. main ()
  4698. {
  4699. exit (find_stack_direction () < 0);
  4700. }
  4701. _ACEOF
  4702. rm -f conftest$ac_exeext
  4703. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4704. (eval $ac_link) 2>&5
  4705. ac_status=$?
  4706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4707. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4708. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4709. (eval $ac_try) 2>&5
  4710. ac_status=$?
  4711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4712. (exit $ac_status); }; }; then
  4713. ac_cv_c_stack_direction=1
  4714. else
  4715. echo "$as_me: program exited with status $ac_status" >&5
  4716. echo "$as_me: failed program was:" >&5
  4717. sed 's/^/| /' conftest.$ac_ext >&5
  4718. ( exit $ac_status )
  4719. ac_cv_c_stack_direction=-1
  4720. fi
  4721. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4722. fi
  4723. fi
  4724. echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  4725. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
  4726. cat >>confdefs.h <<_ACEOF
  4727. #define STACK_DIRECTION $ac_cv_c_stack_direction
  4728. _ACEOF
  4729. fi
  4730. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4731. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4732. if test "${ac_cv_header_stdc+set}" = set; then
  4733. echo $ECHO_N "(cached) $ECHO_C" >&6
  4734. else
  4735. cat >conftest.$ac_ext <<_ACEOF
  4736. /* confdefs.h. */
  4737. _ACEOF
  4738. cat confdefs.h >>conftest.$ac_ext
  4739. cat >>conftest.$ac_ext <<_ACEOF
  4740. /* end confdefs.h. */
  4741. #include <stdlib.h>
  4742. #include <stdarg.h>
  4743. #include <string.h>
  4744. #include <float.h>
  4745. int
  4746. main ()
  4747. {
  4748. ;
  4749. return 0;
  4750. }
  4751. _ACEOF
  4752. rm -f conftest.$ac_objext
  4753. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4754. (eval $ac_compile) 2>conftest.er1
  4755. ac_status=$?
  4756. grep -v '^ *+' conftest.er1 >conftest.err
  4757. rm -f conftest.er1
  4758. cat conftest.err >&5
  4759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4760. (exit $ac_status); } &&
  4761. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4762. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4763. (eval $ac_try) 2>&5
  4764. ac_status=$?
  4765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4766. (exit $ac_status); }; } &&
  4767. { ac_try='test -s conftest.$ac_objext'
  4768. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4769. (eval $ac_try) 2>&5
  4770. ac_status=$?
  4771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4772. (exit $ac_status); }; }; then
  4773. ac_cv_header_stdc=yes
  4774. else
  4775. echo "$as_me: failed program was:" >&5
  4776. sed 's/^/| /' conftest.$ac_ext >&5
  4777. ac_cv_header_stdc=no
  4778. fi
  4779. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4780. if test $ac_cv_header_stdc = yes; then
  4781. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4782. cat >conftest.$ac_ext <<_ACEOF
  4783. /* confdefs.h. */
  4784. _ACEOF
  4785. cat confdefs.h >>conftest.$ac_ext
  4786. cat >>conftest.$ac_ext <<_ACEOF
  4787. /* end confdefs.h. */
  4788. #include <string.h>
  4789. _ACEOF
  4790. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4791. $EGREP "memchr" >/dev/null 2>&1; then
  4792. :
  4793. else
  4794. ac_cv_header_stdc=no
  4795. fi
  4796. rm -f conftest*
  4797. fi
  4798. if test $ac_cv_header_stdc = yes; then
  4799. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4800. cat >conftest.$ac_ext <<_ACEOF
  4801. /* confdefs.h. */
  4802. _ACEOF
  4803. cat confdefs.h >>conftest.$ac_ext
  4804. cat >>conftest.$ac_ext <<_ACEOF
  4805. /* end confdefs.h. */
  4806. #include <stdlib.h>
  4807. _ACEOF
  4808. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4809. $EGREP "free" >/dev/null 2>&1; then
  4810. :
  4811. else
  4812. ac_cv_header_stdc=no
  4813. fi
  4814. rm -f conftest*
  4815. fi
  4816. if test $ac_cv_header_stdc = yes; then
  4817. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4818. if test "$cross_compiling" = yes; then
  4819. :
  4820. else
  4821. cat >conftest.$ac_ext <<_ACEOF
  4822. /* confdefs.h. */
  4823. _ACEOF
  4824. cat confdefs.h >>conftest.$ac_ext
  4825. cat >>conftest.$ac_ext <<_ACEOF
  4826. /* end confdefs.h. */
  4827. #include <ctype.h>
  4828. #if ((' ' & 0x0FF) == 0x020)
  4829. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4830. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4831. #else
  4832. # define ISLOWER(c) \
  4833. (('a' <= (c) && (c) <= 'i') \
  4834. || ('j' <= (c) && (c) <= 'r') \
  4835. || ('s' <= (c) && (c) <= 'z'))
  4836. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4837. #endif
  4838. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4839. int
  4840. main ()
  4841. {
  4842. int i;
  4843. for (i = 0; i < 256; i++)
  4844. if (XOR (islower (i), ISLOWER (i))
  4845. || toupper (i) != TOUPPER (i))
  4846. exit(2);
  4847. exit (0);
  4848. }
  4849. _ACEOF
  4850. rm -f conftest$ac_exeext
  4851. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4852. (eval $ac_link) 2>&5
  4853. ac_status=$?
  4854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4855. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4856. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4857. (eval $ac_try) 2>&5
  4858. ac_status=$?
  4859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4860. (exit $ac_status); }; }; then
  4861. :
  4862. else
  4863. echo "$as_me: program exited with status $ac_status" >&5
  4864. echo "$as_me: failed program was:" >&5
  4865. sed 's/^/| /' conftest.$ac_ext >&5
  4866. ( exit $ac_status )
  4867. ac_cv_header_stdc=no
  4868. fi
  4869. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4870. fi
  4871. fi
  4872. fi
  4873. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4874. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4875. if test $ac_cv_header_stdc = yes; then
  4876. cat >>confdefs.h <<\_ACEOF
  4877. #define STDC_HEADERS 1
  4878. _ACEOF
  4879. fi
  4880. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4881. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4882. inttypes.h stdint.h unistd.h
  4883. do
  4884. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4885. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4886. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4887. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4888. echo $ECHO_N "(cached) $ECHO_C" >&6
  4889. else
  4890. cat >conftest.$ac_ext <<_ACEOF
  4891. /* confdefs.h. */
  4892. _ACEOF
  4893. cat confdefs.h >>conftest.$ac_ext
  4894. cat >>conftest.$ac_ext <<_ACEOF
  4895. /* end confdefs.h. */
  4896. $ac_includes_default
  4897. #include <$ac_header>
  4898. _ACEOF
  4899. rm -f conftest.$ac_objext
  4900. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4901. (eval $ac_compile) 2>conftest.er1
  4902. ac_status=$?
  4903. grep -v '^ *+' conftest.er1 >conftest.err
  4904. rm -f conftest.er1
  4905. cat conftest.err >&5
  4906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4907. (exit $ac_status); } &&
  4908. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4910. (eval $ac_try) 2>&5
  4911. ac_status=$?
  4912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4913. (exit $ac_status); }; } &&
  4914. { ac_try='test -s conftest.$ac_objext'
  4915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4916. (eval $ac_try) 2>&5
  4917. ac_status=$?
  4918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4919. (exit $ac_status); }; }; then
  4920. eval "$as_ac_Header=yes"
  4921. else
  4922. echo "$as_me: failed program was:" >&5
  4923. sed 's/^/| /' conftest.$ac_ext >&5
  4924. eval "$as_ac_Header=no"
  4925. fi
  4926. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4927. fi
  4928. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4929. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4930. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4931. cat >>confdefs.h <<_ACEOF
  4932. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4933. _ACEOF
  4934. fi
  4935. done
  4936. for ac_header in argz.h arpa/inet.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/param.h sys/socket.h sys/time.h unistd.h
  4937. do
  4938. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4939. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4940. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4941. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4942. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4943. echo $ECHO_N "(cached) $ECHO_C" >&6
  4944. fi
  4945. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4946. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4947. else
  4948. # Is the header compilable?
  4949. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4950. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4951. cat >conftest.$ac_ext <<_ACEOF
  4952. /* confdefs.h. */
  4953. _ACEOF
  4954. cat confdefs.h >>conftest.$ac_ext
  4955. cat >>conftest.$ac_ext <<_ACEOF
  4956. /* end confdefs.h. */
  4957. $ac_includes_default
  4958. #include <$ac_header>
  4959. _ACEOF
  4960. rm -f conftest.$ac_objext
  4961. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4962. (eval $ac_compile) 2>conftest.er1
  4963. ac_status=$?
  4964. grep -v '^ *+' conftest.er1 >conftest.err
  4965. rm -f conftest.er1
  4966. cat conftest.err >&5
  4967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4968. (exit $ac_status); } &&
  4969. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4970. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4971. (eval $ac_try) 2>&5
  4972. ac_status=$?
  4973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4974. (exit $ac_status); }; } &&
  4975. { ac_try='test -s conftest.$ac_objext'
  4976. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4977. (eval $ac_try) 2>&5
  4978. ac_status=$?
  4979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4980. (exit $ac_status); }; }; then
  4981. ac_header_compiler=yes
  4982. else
  4983. echo "$as_me: failed program was:" >&5
  4984. sed 's/^/| /' conftest.$ac_ext >&5
  4985. ac_header_compiler=no
  4986. fi
  4987. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4988. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4989. echo "${ECHO_T}$ac_header_compiler" >&6
  4990. # Is the header present?
  4991. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4992. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4993. cat >conftest.$ac_ext <<_ACEOF
  4994. /* confdefs.h. */
  4995. _ACEOF
  4996. cat confdefs.h >>conftest.$ac_ext
  4997. cat >>conftest.$ac_ext <<_ACEOF
  4998. /* end confdefs.h. */
  4999. #include <$ac_header>
  5000. _ACEOF
  5001. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5002. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5003. ac_status=$?
  5004. grep -v '^ *+' conftest.er1 >conftest.err
  5005. rm -f conftest.er1
  5006. cat conftest.err >&5
  5007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5008. (exit $ac_status); } >/dev/null; then
  5009. if test -s conftest.err; then
  5010. ac_cpp_err=$ac_c_preproc_warn_flag
  5011. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5012. else
  5013. ac_cpp_err=
  5014. fi
  5015. else
  5016. ac_cpp_err=yes
  5017. fi
  5018. if test -z "$ac_cpp_err"; then
  5019. ac_header_preproc=yes
  5020. else
  5021. echo "$as_me: failed program was:" >&5
  5022. sed 's/^/| /' conftest.$ac_ext >&5
  5023. ac_header_preproc=no
  5024. fi
  5025. rm -f conftest.err conftest.$ac_ext
  5026. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5027. echo "${ECHO_T}$ac_header_preproc" >&6
  5028. # So? What about this header?
  5029. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5030. yes:no: )
  5031. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5032. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5033. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5034. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5035. ac_header_preproc=yes
  5036. ;;
  5037. no:yes:* )
  5038. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5039. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5040. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5041. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5042. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5043. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5044. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5045. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5046. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5047. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5048. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5049. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5050. (
  5051. cat <<\_ASBOX
  5052. ## ----------------------------------- ##
  5053. ## Report this to tujikawa@rednoah.com ##
  5054. ## ----------------------------------- ##
  5055. _ASBOX
  5056. ) |
  5057. sed "s/^/$as_me: WARNING: /" >&2
  5058. ;;
  5059. esac
  5060. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5061. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5062. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5063. echo $ECHO_N "(cached) $ECHO_C" >&6
  5064. else
  5065. eval "$as_ac_Header=\$ac_header_preproc"
  5066. fi
  5067. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5068. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5069. fi
  5070. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5071. cat >>confdefs.h <<_ACEOF
  5072. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5073. _ACEOF
  5074. fi
  5075. done
  5076. # Checks for typedefs, structures, and compiler characteristics.
  5077. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  5078. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  5079. if test "${ac_cv_header_stdbool_h+set}" = set; then
  5080. echo $ECHO_N "(cached) $ECHO_C" >&6
  5081. else
  5082. cat >conftest.$ac_ext <<_ACEOF
  5083. /* confdefs.h. */
  5084. _ACEOF
  5085. cat confdefs.h >>conftest.$ac_ext
  5086. cat >>conftest.$ac_ext <<_ACEOF
  5087. /* end confdefs.h. */
  5088. #include <stdbool.h>
  5089. #ifndef bool
  5090. # error bool is not defined
  5091. #endif
  5092. #ifndef false
  5093. # error false is not defined
  5094. #endif
  5095. #if false
  5096. # error false is not 0
  5097. #endif
  5098. #ifndef true
  5099. # error true is not defined
  5100. #endif
  5101. #if true != 1
  5102. # error true is not 1
  5103. #endif
  5104. #ifndef __bool_true_false_are_defined
  5105. # error __bool_true_false_are_defined is not defined
  5106. #endif
  5107. struct s { _Bool s: 1; _Bool t; } s;
  5108. char a[true == 1 ? 1 : -1];
  5109. char b[false == 0 ? 1 : -1];
  5110. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  5111. char d[(bool) -0.5 == true ? 1 : -1];
  5112. bool e = &s;
  5113. char f[(_Bool) -0.0 == false ? 1 : -1];
  5114. char g[true];
  5115. char h[sizeof (_Bool)];
  5116. char i[sizeof s.t];
  5117. int
  5118. main ()
  5119. {
  5120. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  5121. ;
  5122. return 0;
  5123. }
  5124. _ACEOF
  5125. rm -f conftest.$ac_objext
  5126. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5127. (eval $ac_compile) 2>conftest.er1
  5128. ac_status=$?
  5129. grep -v '^ *+' conftest.er1 >conftest.err
  5130. rm -f conftest.er1
  5131. cat conftest.err >&5
  5132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5133. (exit $ac_status); } &&
  5134. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5135. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5136. (eval $ac_try) 2>&5
  5137. ac_status=$?
  5138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5139. (exit $ac_status); }; } &&
  5140. { ac_try='test -s conftest.$ac_objext'
  5141. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5142. (eval $ac_try) 2>&5
  5143. ac_status=$?
  5144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5145. (exit $ac_status); }; }; then
  5146. ac_cv_header_stdbool_h=yes
  5147. else
  5148. echo "$as_me: failed program was:" >&5
  5149. sed 's/^/| /' conftest.$ac_ext >&5
  5150. ac_cv_header_stdbool_h=no
  5151. fi
  5152. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5153. fi
  5154. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  5155. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  5156. echo "$as_me:$LINENO: checking for _Bool" >&5
  5157. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  5158. if test "${ac_cv_type__Bool+set}" = set; then
  5159. echo $ECHO_N "(cached) $ECHO_C" >&6
  5160. else
  5161. cat >conftest.$ac_ext <<_ACEOF
  5162. /* confdefs.h. */
  5163. _ACEOF
  5164. cat confdefs.h >>conftest.$ac_ext
  5165. cat >>conftest.$ac_ext <<_ACEOF
  5166. /* end confdefs.h. */
  5167. $ac_includes_default
  5168. int
  5169. main ()
  5170. {
  5171. if ((_Bool *) 0)
  5172. return 0;
  5173. if (sizeof (_Bool))
  5174. return 0;
  5175. ;
  5176. return 0;
  5177. }
  5178. _ACEOF
  5179. rm -f conftest.$ac_objext
  5180. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5181. (eval $ac_compile) 2>conftest.er1
  5182. ac_status=$?
  5183. grep -v '^ *+' conftest.er1 >conftest.err
  5184. rm -f conftest.er1
  5185. cat conftest.err >&5
  5186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5187. (exit $ac_status); } &&
  5188. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5189. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5190. (eval $ac_try) 2>&5
  5191. ac_status=$?
  5192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5193. (exit $ac_status); }; } &&
  5194. { ac_try='test -s conftest.$ac_objext'
  5195. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5196. (eval $ac_try) 2>&5
  5197. ac_status=$?
  5198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5199. (exit $ac_status); }; }; then
  5200. ac_cv_type__Bool=yes
  5201. else
  5202. echo "$as_me: failed program was:" >&5
  5203. sed 's/^/| /' conftest.$ac_ext >&5
  5204. ac_cv_type__Bool=no
  5205. fi
  5206. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5207. fi
  5208. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  5209. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  5210. if test $ac_cv_type__Bool = yes; then
  5211. cat >>confdefs.h <<_ACEOF
  5212. #define HAVE__BOOL 1
  5213. _ACEOF
  5214. fi
  5215. if test $ac_cv_header_stdbool_h = yes; then
  5216. cat >>confdefs.h <<\_ACEOF
  5217. #define HAVE_STDBOOL_H 1
  5218. _ACEOF
  5219. fi
  5220. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5221. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5222. if test "${ac_cv_c_const+set}" = set; then
  5223. echo $ECHO_N "(cached) $ECHO_C" >&6
  5224. else
  5225. cat >conftest.$ac_ext <<_ACEOF
  5226. /* confdefs.h. */
  5227. _ACEOF
  5228. cat confdefs.h >>conftest.$ac_ext
  5229. cat >>conftest.$ac_ext <<_ACEOF
  5230. /* end confdefs.h. */
  5231. int
  5232. main ()
  5233. {
  5234. /* FIXME: Include the comments suggested by Paul. */
  5235. #ifndef __cplusplus
  5236. /* Ultrix mips cc rejects this. */
  5237. typedef int charset[2];
  5238. const charset x;
  5239. /* SunOS 4.1.1 cc rejects this. */
  5240. char const *const *ccp;
  5241. char **p;
  5242. /* NEC SVR4.0.2 mips cc rejects this. */
  5243. struct point {int x, y;};
  5244. static struct point const zero = {0,0};
  5245. /* AIX XL C 1.02.0.0 rejects this.
  5246. It does not let you subtract one const X* pointer from another in
  5247. an arm of an if-expression whose if-part is not a constant
  5248. expression */
  5249. const char *g = "string";
  5250. ccp = &g + (g ? g-g : 0);
  5251. /* HPUX 7.0 cc rejects these. */
  5252. ++ccp;
  5253. p = (char**) ccp;
  5254. ccp = (char const *const *) p;
  5255. { /* SCO 3.2v4 cc rejects this. */
  5256. char *t;
  5257. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5258. *t++ = 0;
  5259. }
  5260. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5261. int x[] = {25, 17};
  5262. const int *foo = &x[0];
  5263. ++foo;
  5264. }
  5265. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5266. typedef const int *iptr;
  5267. iptr p = 0;
  5268. ++p;
  5269. }
  5270. { /* AIX XL C 1.02.0.0 rejects this saying
  5271. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5272. struct s { int j; const int *ap[3]; };
  5273. struct s *b; b->j = 5;
  5274. }
  5275. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5276. const int foo = 10;
  5277. }
  5278. #endif
  5279. ;
  5280. return 0;
  5281. }
  5282. _ACEOF
  5283. rm -f conftest.$ac_objext
  5284. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5285. (eval $ac_compile) 2>conftest.er1
  5286. ac_status=$?
  5287. grep -v '^ *+' conftest.er1 >conftest.err
  5288. rm -f conftest.er1
  5289. cat conftest.err >&5
  5290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5291. (exit $ac_status); } &&
  5292. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5293. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5294. (eval $ac_try) 2>&5
  5295. ac_status=$?
  5296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5297. (exit $ac_status); }; } &&
  5298. { ac_try='test -s conftest.$ac_objext'
  5299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5300. (eval $ac_try) 2>&5
  5301. ac_status=$?
  5302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5303. (exit $ac_status); }; }; then
  5304. ac_cv_c_const=yes
  5305. else
  5306. echo "$as_me: failed program was:" >&5
  5307. sed 's/^/| /' conftest.$ac_ext >&5
  5308. ac_cv_c_const=no
  5309. fi
  5310. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5311. fi
  5312. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5313. echo "${ECHO_T}$ac_cv_c_const" >&6
  5314. if test $ac_cv_c_const = no; then
  5315. cat >>confdefs.h <<\_ACEOF
  5316. #define const
  5317. _ACEOF
  5318. fi
  5319. echo "$as_me:$LINENO: checking for inline" >&5
  5320. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  5321. if test "${ac_cv_c_inline+set}" = set; then
  5322. echo $ECHO_N "(cached) $ECHO_C" >&6
  5323. else
  5324. ac_cv_c_inline=no
  5325. for ac_kw in inline __inline__ __inline; do
  5326. cat >conftest.$ac_ext <<_ACEOF
  5327. /* confdefs.h. */
  5328. _ACEOF
  5329. cat confdefs.h >>conftest.$ac_ext
  5330. cat >>conftest.$ac_ext <<_ACEOF
  5331. /* end confdefs.h. */
  5332. #ifndef __cplusplus
  5333. typedef int foo_t;
  5334. static $ac_kw foo_t static_foo () {return 0; }
  5335. $ac_kw foo_t foo () {return 0; }
  5336. #endif
  5337. _ACEOF
  5338. rm -f conftest.$ac_objext
  5339. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5340. (eval $ac_compile) 2>conftest.er1
  5341. ac_status=$?
  5342. grep -v '^ *+' conftest.er1 >conftest.err
  5343. rm -f conftest.er1
  5344. cat conftest.err >&5
  5345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5346. (exit $ac_status); } &&
  5347. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5348. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5349. (eval $ac_try) 2>&5
  5350. ac_status=$?
  5351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5352. (exit $ac_status); }; } &&
  5353. { ac_try='test -s conftest.$ac_objext'
  5354. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5355. (eval $ac_try) 2>&5
  5356. ac_status=$?
  5357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5358. (exit $ac_status); }; }; then
  5359. ac_cv_c_inline=$ac_kw; break
  5360. else
  5361. echo "$as_me: failed program was:" >&5
  5362. sed 's/^/| /' conftest.$ac_ext >&5
  5363. fi
  5364. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5365. done
  5366. fi
  5367. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  5368. echo "${ECHO_T}$ac_cv_c_inline" >&6
  5369. case $ac_cv_c_inline in
  5370. inline | yes) ;;
  5371. *)
  5372. case $ac_cv_c_inline in
  5373. no) ac_val=;;
  5374. *) ac_val=$ac_cv_c_inline;;
  5375. esac
  5376. cat >>confdefs.h <<_ACEOF
  5377. #ifndef __cplusplus
  5378. #define inline $ac_val
  5379. #endif
  5380. _ACEOF
  5381. ;;
  5382. esac
  5383. echo "$as_me:$LINENO: checking for size_t" >&5
  5384. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5385. if test "${ac_cv_type_size_t+set}" = set; then
  5386. echo $ECHO_N "(cached) $ECHO_C" >&6
  5387. else
  5388. cat >conftest.$ac_ext <<_ACEOF
  5389. /* confdefs.h. */
  5390. _ACEOF
  5391. cat confdefs.h >>conftest.$ac_ext
  5392. cat >>conftest.$ac_ext <<_ACEOF
  5393. /* end confdefs.h. */
  5394. $ac_includes_default
  5395. int
  5396. main ()
  5397. {
  5398. if ((size_t *) 0)
  5399. return 0;
  5400. if (sizeof (size_t))
  5401. return 0;
  5402. ;
  5403. return 0;
  5404. }
  5405. _ACEOF
  5406. rm -f conftest.$ac_objext
  5407. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5408. (eval $ac_compile) 2>conftest.er1
  5409. ac_status=$?
  5410. grep -v '^ *+' conftest.er1 >conftest.err
  5411. rm -f conftest.er1
  5412. cat conftest.err >&5
  5413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5414. (exit $ac_status); } &&
  5415. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5416. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5417. (eval $ac_try) 2>&5
  5418. ac_status=$?
  5419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5420. (exit $ac_status); }; } &&
  5421. { ac_try='test -s conftest.$ac_objext'
  5422. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5423. (eval $ac_try) 2>&5
  5424. ac_status=$?
  5425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5426. (exit $ac_status); }; }; then
  5427. ac_cv_type_size_t=yes
  5428. else
  5429. echo "$as_me: failed program was:" >&5
  5430. sed 's/^/| /' conftest.$ac_ext >&5
  5431. ac_cv_type_size_t=no
  5432. fi
  5433. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5434. fi
  5435. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5436. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5437. if test $ac_cv_type_size_t = yes; then
  5438. :
  5439. else
  5440. cat >>confdefs.h <<_ACEOF
  5441. #define size_t unsigned
  5442. _ACEOF
  5443. fi
  5444. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5445. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5446. if test "${ac_cv_header_time+set}" = set; then
  5447. echo $ECHO_N "(cached) $ECHO_C" >&6
  5448. else
  5449. cat >conftest.$ac_ext <<_ACEOF
  5450. /* confdefs.h. */
  5451. _ACEOF
  5452. cat confdefs.h >>conftest.$ac_ext
  5453. cat >>conftest.$ac_ext <<_ACEOF
  5454. /* end confdefs.h. */
  5455. #include <sys/types.h>
  5456. #include <sys/time.h>
  5457. #include <time.h>
  5458. int
  5459. main ()
  5460. {
  5461. if ((struct tm *) 0)
  5462. return 0;
  5463. ;
  5464. return 0;
  5465. }
  5466. _ACEOF
  5467. rm -f conftest.$ac_objext
  5468. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5469. (eval $ac_compile) 2>conftest.er1
  5470. ac_status=$?
  5471. grep -v '^ *+' conftest.er1 >conftest.err
  5472. rm -f conftest.er1
  5473. cat conftest.err >&5
  5474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5475. (exit $ac_status); } &&
  5476. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5477. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5478. (eval $ac_try) 2>&5
  5479. ac_status=$?
  5480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5481. (exit $ac_status); }; } &&
  5482. { ac_try='test -s conftest.$ac_objext'
  5483. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5484. (eval $ac_try) 2>&5
  5485. ac_status=$?
  5486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5487. (exit $ac_status); }; }; then
  5488. ac_cv_header_time=yes
  5489. else
  5490. echo "$as_me: failed program was:" >&5
  5491. sed 's/^/| /' conftest.$ac_ext >&5
  5492. ac_cv_header_time=no
  5493. fi
  5494. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5495. fi
  5496. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5497. echo "${ECHO_T}$ac_cv_header_time" >&6
  5498. if test $ac_cv_header_time = yes; then
  5499. cat >>confdefs.h <<\_ACEOF
  5500. #define TIME_WITH_SYS_TIME 1
  5501. _ACEOF
  5502. fi
  5503. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  5504. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  5505. if test "${ac_cv_struct_tm+set}" = set; then
  5506. echo $ECHO_N "(cached) $ECHO_C" >&6
  5507. else
  5508. cat >conftest.$ac_ext <<_ACEOF
  5509. /* confdefs.h. */
  5510. _ACEOF
  5511. cat confdefs.h >>conftest.$ac_ext
  5512. cat >>conftest.$ac_ext <<_ACEOF
  5513. /* end confdefs.h. */
  5514. #include <sys/types.h>
  5515. #include <time.h>
  5516. int
  5517. main ()
  5518. {
  5519. struct tm *tp; tp->tm_sec;
  5520. ;
  5521. return 0;
  5522. }
  5523. _ACEOF
  5524. rm -f conftest.$ac_objext
  5525. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5526. (eval $ac_compile) 2>conftest.er1
  5527. ac_status=$?
  5528. grep -v '^ *+' conftest.er1 >conftest.err
  5529. rm -f conftest.er1
  5530. cat conftest.err >&5
  5531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5532. (exit $ac_status); } &&
  5533. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5535. (eval $ac_try) 2>&5
  5536. ac_status=$?
  5537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5538. (exit $ac_status); }; } &&
  5539. { ac_try='test -s conftest.$ac_objext'
  5540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5541. (eval $ac_try) 2>&5
  5542. ac_status=$?
  5543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5544. (exit $ac_status); }; }; then
  5545. ac_cv_struct_tm=time.h
  5546. else
  5547. echo "$as_me: failed program was:" >&5
  5548. sed 's/^/| /' conftest.$ac_ext >&5
  5549. ac_cv_struct_tm=sys/time.h
  5550. fi
  5551. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5552. fi
  5553. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  5554. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  5555. if test $ac_cv_struct_tm = sys/time.h; then
  5556. cat >>confdefs.h <<\_ACEOF
  5557. #define TM_IN_SYS_TIME 1
  5558. _ACEOF
  5559. fi
  5560. echo "$as_me:$LINENO: checking for working volatile" >&5
  5561. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  5562. if test "${ac_cv_c_volatile+set}" = set; then
  5563. echo $ECHO_N "(cached) $ECHO_C" >&6
  5564. else
  5565. cat >conftest.$ac_ext <<_ACEOF
  5566. /* confdefs.h. */
  5567. _ACEOF
  5568. cat confdefs.h >>conftest.$ac_ext
  5569. cat >>conftest.$ac_ext <<_ACEOF
  5570. /* end confdefs.h. */
  5571. int
  5572. main ()
  5573. {
  5574. volatile int x;
  5575. int * volatile y;
  5576. ;
  5577. return 0;
  5578. }
  5579. _ACEOF
  5580. rm -f conftest.$ac_objext
  5581. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5582. (eval $ac_compile) 2>conftest.er1
  5583. ac_status=$?
  5584. grep -v '^ *+' conftest.er1 >conftest.err
  5585. rm -f conftest.er1
  5586. cat conftest.err >&5
  5587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5588. (exit $ac_status); } &&
  5589. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5590. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5591. (eval $ac_try) 2>&5
  5592. ac_status=$?
  5593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5594. (exit $ac_status); }; } &&
  5595. { ac_try='test -s conftest.$ac_objext'
  5596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5597. (eval $ac_try) 2>&5
  5598. ac_status=$?
  5599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5600. (exit $ac_status); }; }; then
  5601. ac_cv_c_volatile=yes
  5602. else
  5603. echo "$as_me: failed program was:" >&5
  5604. sed 's/^/| /' conftest.$ac_ext >&5
  5605. ac_cv_c_volatile=no
  5606. fi
  5607. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5608. fi
  5609. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5610. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  5611. if test $ac_cv_c_volatile = no; then
  5612. cat >>confdefs.h <<\_ACEOF
  5613. #define volatile
  5614. _ACEOF
  5615. fi
  5616. # Checks for library functions.
  5617. MKINSTALLDIRS=
  5618. if test -n "$ac_aux_dir"; then
  5619. case "$ac_aux_dir" in
  5620. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  5621. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  5622. esac
  5623. fi
  5624. if test -z "$MKINSTALLDIRS"; then
  5625. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  5626. fi
  5627. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  5628. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  5629. # Check whether --enable-nls or --disable-nls was given.
  5630. if test "${enable_nls+set}" = set; then
  5631. enableval="$enable_nls"
  5632. USE_NLS=$enableval
  5633. else
  5634. USE_NLS=yes
  5635. fi;
  5636. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  5637. echo "${ECHO_T}$USE_NLS" >&6
  5638. # Prepare PATH_SEPARATOR.
  5639. # The user is always right.
  5640. if test "${PATH_SEPARATOR+set}" != set; then
  5641. echo "#! /bin/sh" >conf$$.sh
  5642. echo "exit 0" >>conf$$.sh
  5643. chmod +x conf$$.sh
  5644. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5645. PATH_SEPARATOR=';'
  5646. else
  5647. PATH_SEPARATOR=:
  5648. fi
  5649. rm -f conf$$.sh
  5650. fi
  5651. # Find out how to test for executable files. Don't use a zero-byte file,
  5652. # as systems may use methods other than mode bits to determine executability.
  5653. cat >conf$$.file <<_ASEOF
  5654. #! /bin/sh
  5655. exit 0
  5656. _ASEOF
  5657. chmod +x conf$$.file
  5658. if test -x conf$$.file >/dev/null 2>&1; then
  5659. ac_executable_p="test -x"
  5660. else
  5661. ac_executable_p="test -f"
  5662. fi
  5663. rm -f conf$$.file
  5664. # Extract the first word of "msgfmt", so it can be a program name with args.
  5665. set dummy msgfmt; ac_word=$2
  5666. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5667. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5668. if test "${ac_cv_path_MSGFMT+set}" = set; then
  5669. echo $ECHO_N "(cached) $ECHO_C" >&6
  5670. else
  5671. case "$MSGFMT" in
  5672. [\\/]* | ?:[\\/]*)
  5673. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  5674. ;;
  5675. *)
  5676. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5677. for ac_dir in $PATH; do
  5678. IFS="$ac_save_IFS"
  5679. test -z "$ac_dir" && ac_dir=.
  5680. for ac_exec_ext in '' $ac_executable_extensions; do
  5681. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5682. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  5683. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5684. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  5685. break 2
  5686. fi
  5687. fi
  5688. done
  5689. done
  5690. IFS="$ac_save_IFS"
  5691. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  5692. ;;
  5693. esac
  5694. fi
  5695. MSGFMT="$ac_cv_path_MSGFMT"
  5696. if test "$MSGFMT" != ":"; then
  5697. echo "$as_me:$LINENO: result: $MSGFMT" >&5
  5698. echo "${ECHO_T}$MSGFMT" >&6
  5699. else
  5700. echo "$as_me:$LINENO: result: no" >&5
  5701. echo "${ECHO_T}no" >&6
  5702. fi
  5703. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  5704. set dummy gmsgfmt; ac_word=$2
  5705. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5706. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5707. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  5708. echo $ECHO_N "(cached) $ECHO_C" >&6
  5709. else
  5710. case $GMSGFMT in
  5711. [\\/]* | ?:[\\/]*)
  5712. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  5713. ;;
  5714. *)
  5715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5716. for as_dir in $PATH
  5717. do
  5718. IFS=$as_save_IFS
  5719. test -z "$as_dir" && as_dir=.
  5720. for ac_exec_ext in '' $ac_executable_extensions; do
  5721. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5722. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  5723. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5724. break 2
  5725. fi
  5726. done
  5727. done
  5728. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  5729. ;;
  5730. esac
  5731. fi
  5732. GMSGFMT=$ac_cv_path_GMSGFMT
  5733. if test -n "$GMSGFMT"; then
  5734. echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  5735. echo "${ECHO_T}$GMSGFMT" >&6
  5736. else
  5737. echo "$as_me:$LINENO: result: no" >&5
  5738. echo "${ECHO_T}no" >&6
  5739. fi
  5740. # Prepare PATH_SEPARATOR.
  5741. # The user is always right.
  5742. if test "${PATH_SEPARATOR+set}" != set; then
  5743. echo "#! /bin/sh" >conf$$.sh
  5744. echo "exit 0" >>conf$$.sh
  5745. chmod +x conf$$.sh
  5746. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5747. PATH_SEPARATOR=';'
  5748. else
  5749. PATH_SEPARATOR=:
  5750. fi
  5751. rm -f conf$$.sh
  5752. fi
  5753. # Find out how to test for executable files. Don't use a zero-byte file,
  5754. # as systems may use methods other than mode bits to determine executability.
  5755. cat >conf$$.file <<_ASEOF
  5756. #! /bin/sh
  5757. exit 0
  5758. _ASEOF
  5759. chmod +x conf$$.file
  5760. if test -x conf$$.file >/dev/null 2>&1; then
  5761. ac_executable_p="test -x"
  5762. else
  5763. ac_executable_p="test -f"
  5764. fi
  5765. rm -f conf$$.file
  5766. # Extract the first word of "xgettext", so it can be a program name with args.
  5767. set dummy xgettext; ac_word=$2
  5768. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5769. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5770. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  5771. echo $ECHO_N "(cached) $ECHO_C" >&6
  5772. else
  5773. case "$XGETTEXT" in
  5774. [\\/]* | ?:[\\/]*)
  5775. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  5776. ;;
  5777. *)
  5778. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5779. for ac_dir in $PATH; do
  5780. IFS="$ac_save_IFS"
  5781. test -z "$ac_dir" && ac_dir=.
  5782. for ac_exec_ext in '' $ac_executable_extensions; do
  5783. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5784. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  5785. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5786. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  5787. break 2
  5788. fi
  5789. fi
  5790. done
  5791. done
  5792. IFS="$ac_save_IFS"
  5793. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  5794. ;;
  5795. esac
  5796. fi
  5797. XGETTEXT="$ac_cv_path_XGETTEXT"
  5798. if test "$XGETTEXT" != ":"; then
  5799. echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  5800. echo "${ECHO_T}$XGETTEXT" >&6
  5801. else
  5802. echo "$as_me:$LINENO: result: no" >&5
  5803. echo "${ECHO_T}no" >&6
  5804. fi
  5805. rm -f messages.po
  5806. # Prepare PATH_SEPARATOR.
  5807. # The user is always right.
  5808. if test "${PATH_SEPARATOR+set}" != set; then
  5809. echo "#! /bin/sh" >conf$$.sh
  5810. echo "exit 0" >>conf$$.sh
  5811. chmod +x conf$$.sh
  5812. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5813. PATH_SEPARATOR=';'
  5814. else
  5815. PATH_SEPARATOR=:
  5816. fi
  5817. rm -f conf$$.sh
  5818. fi
  5819. # Find out how to test for executable files. Don't use a zero-byte file,
  5820. # as systems may use methods other than mode bits to determine executability.
  5821. cat >conf$$.file <<_ASEOF
  5822. #! /bin/sh
  5823. exit 0
  5824. _ASEOF
  5825. chmod +x conf$$.file
  5826. if test -x conf$$.file >/dev/null 2>&1; then
  5827. ac_executable_p="test -x"
  5828. else
  5829. ac_executable_p="test -f"
  5830. fi
  5831. rm -f conf$$.file
  5832. # Extract the first word of "msgmerge", so it can be a program name with args.
  5833. set dummy msgmerge; ac_word=$2
  5834. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5835. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5836. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  5837. echo $ECHO_N "(cached) $ECHO_C" >&6
  5838. else
  5839. case "$MSGMERGE" in
  5840. [\\/]* | ?:[\\/]*)
  5841. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  5842. ;;
  5843. *)
  5844. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5845. for ac_dir in $PATH; do
  5846. IFS="$ac_save_IFS"
  5847. test -z "$ac_dir" && ac_dir=.
  5848. for ac_exec_ext in '' $ac_executable_extensions; do
  5849. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5850. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  5851. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  5852. break 2
  5853. fi
  5854. fi
  5855. done
  5856. done
  5857. IFS="$ac_save_IFS"
  5858. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  5859. ;;
  5860. esac
  5861. fi
  5862. MSGMERGE="$ac_cv_path_MSGMERGE"
  5863. if test "$MSGMERGE" != ":"; then
  5864. echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  5865. echo "${ECHO_T}$MSGMERGE" >&6
  5866. else
  5867. echo "$as_me:$LINENO: result: no" >&5
  5868. echo "${ECHO_T}no" >&6
  5869. fi
  5870. if test "$GMSGFMT" != ":"; then
  5871. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  5872. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5873. : ;
  5874. else
  5875. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  5876. echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  5877. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
  5878. GMSGFMT=":"
  5879. fi
  5880. fi
  5881. if test "$XGETTEXT" != ":"; then
  5882. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  5883. (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5884. : ;
  5885. else
  5886. echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  5887. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
  5888. XGETTEXT=":"
  5889. fi
  5890. rm -f messages.po
  5891. fi
  5892. ac_config_commands="$ac_config_commands default-1"
  5893. # Make sure we can run config.sub.
  5894. $ac_config_sub sun4 >/dev/null 2>&1 ||
  5895. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  5896. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  5897. { (exit 1); exit 1; }; }
  5898. echo "$as_me:$LINENO: checking build system type" >&5
  5899. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  5900. if test "${ac_cv_build+set}" = set; then
  5901. echo $ECHO_N "(cached) $ECHO_C" >&6
  5902. else
  5903. ac_cv_build_alias=$build_alias
  5904. test -z "$ac_cv_build_alias" &&
  5905. ac_cv_build_alias=`$ac_config_guess`
  5906. test -z "$ac_cv_build_alias" &&
  5907. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  5908. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  5909. { (exit 1); exit 1; }; }
  5910. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  5911. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  5912. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  5913. { (exit 1); exit 1; }; }
  5914. fi
  5915. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  5916. echo "${ECHO_T}$ac_cv_build" >&6
  5917. build=$ac_cv_build
  5918. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  5919. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  5920. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  5921. echo "$as_me:$LINENO: checking host system type" >&5
  5922. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  5923. if test "${ac_cv_host+set}" = set; then
  5924. echo $ECHO_N "(cached) $ECHO_C" >&6
  5925. else
  5926. ac_cv_host_alias=$host_alias
  5927. test -z "$ac_cv_host_alias" &&
  5928. ac_cv_host_alias=$ac_cv_build_alias
  5929. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  5930. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  5931. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  5932. { (exit 1); exit 1; }; }
  5933. fi
  5934. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  5935. echo "${ECHO_T}$ac_cv_host" >&6
  5936. host=$ac_cv_host
  5937. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  5938. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  5939. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  5940. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  5941. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  5942. if test "${ac_cv_search_strerror+set}" = set; then
  5943. echo $ECHO_N "(cached) $ECHO_C" >&6
  5944. else
  5945. ac_func_search_save_LIBS=$LIBS
  5946. ac_cv_search_strerror=no
  5947. cat >conftest.$ac_ext <<_ACEOF
  5948. /* confdefs.h. */
  5949. _ACEOF
  5950. cat confdefs.h >>conftest.$ac_ext
  5951. cat >>conftest.$ac_ext <<_ACEOF
  5952. /* end confdefs.h. */
  5953. /* Override any gcc2 internal prototype to avoid an error. */
  5954. #ifdef __cplusplus
  5955. extern "C"
  5956. #endif
  5957. /* We use char because int might match the return type of a gcc2
  5958. builtin and then its argument prototype would still apply. */
  5959. char strerror ();
  5960. int
  5961. main ()
  5962. {
  5963. strerror ();
  5964. ;
  5965. return 0;
  5966. }
  5967. _ACEOF
  5968. rm -f conftest.$ac_objext conftest$ac_exeext
  5969. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5970. (eval $ac_link) 2>conftest.er1
  5971. ac_status=$?
  5972. grep -v '^ *+' conftest.er1 >conftest.err
  5973. rm -f conftest.er1
  5974. cat conftest.err >&5
  5975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5976. (exit $ac_status); } &&
  5977. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5978. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5979. (eval $ac_try) 2>&5
  5980. ac_status=$?
  5981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5982. (exit $ac_status); }; } &&
  5983. { ac_try='test -s conftest$ac_exeext'
  5984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5985. (eval $ac_try) 2>&5
  5986. ac_status=$?
  5987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5988. (exit $ac_status); }; }; then
  5989. ac_cv_search_strerror="none required"
  5990. else
  5991. echo "$as_me: failed program was:" >&5
  5992. sed 's/^/| /' conftest.$ac_ext >&5
  5993. fi
  5994. rm -f conftest.err conftest.$ac_objext \
  5995. conftest$ac_exeext conftest.$ac_ext
  5996. if test "$ac_cv_search_strerror" = no; then
  5997. for ac_lib in cposix; do
  5998. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5999. cat >conftest.$ac_ext <<_ACEOF
  6000. /* confdefs.h. */
  6001. _ACEOF
  6002. cat confdefs.h >>conftest.$ac_ext
  6003. cat >>conftest.$ac_ext <<_ACEOF
  6004. /* end confdefs.h. */
  6005. /* Override any gcc2 internal prototype to avoid an error. */
  6006. #ifdef __cplusplus
  6007. extern "C"
  6008. #endif
  6009. /* We use char because int might match the return type of a gcc2
  6010. builtin and then its argument prototype would still apply. */
  6011. char strerror ();
  6012. int
  6013. main ()
  6014. {
  6015. strerror ();
  6016. ;
  6017. return 0;
  6018. }
  6019. _ACEOF
  6020. rm -f conftest.$ac_objext conftest$ac_exeext
  6021. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6022. (eval $ac_link) 2>conftest.er1
  6023. ac_status=$?
  6024. grep -v '^ *+' conftest.er1 >conftest.err
  6025. rm -f conftest.er1
  6026. cat conftest.err >&5
  6027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6028. (exit $ac_status); } &&
  6029. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6030. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6031. (eval $ac_try) 2>&5
  6032. ac_status=$?
  6033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6034. (exit $ac_status); }; } &&
  6035. { ac_try='test -s conftest$ac_exeext'
  6036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6037. (eval $ac_try) 2>&5
  6038. ac_status=$?
  6039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6040. (exit $ac_status); }; }; then
  6041. ac_cv_search_strerror="-l$ac_lib"
  6042. break
  6043. else
  6044. echo "$as_me: failed program was:" >&5
  6045. sed 's/^/| /' conftest.$ac_ext >&5
  6046. fi
  6047. rm -f conftest.err conftest.$ac_objext \
  6048. conftest$ac_exeext conftest.$ac_ext
  6049. done
  6050. fi
  6051. LIBS=$ac_func_search_save_LIBS
  6052. fi
  6053. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  6054. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  6055. if test "$ac_cv_search_strerror" != no; then
  6056. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  6057. fi
  6058. echo "$as_me:$LINENO: checking for off_t" >&5
  6059. echo $ECHO_N "checking for off_t... $ECHO_C" >&6
  6060. if test "${ac_cv_type_off_t+set}" = set; then
  6061. echo $ECHO_N "(cached) $ECHO_C" >&6
  6062. else
  6063. cat >conftest.$ac_ext <<_ACEOF
  6064. /* confdefs.h. */
  6065. _ACEOF
  6066. cat confdefs.h >>conftest.$ac_ext
  6067. cat >>conftest.$ac_ext <<_ACEOF
  6068. /* end confdefs.h. */
  6069. $ac_includes_default
  6070. int
  6071. main ()
  6072. {
  6073. if ((off_t *) 0)
  6074. return 0;
  6075. if (sizeof (off_t))
  6076. return 0;
  6077. ;
  6078. return 0;
  6079. }
  6080. _ACEOF
  6081. rm -f conftest.$ac_objext
  6082. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6083. (eval $ac_compile) 2>conftest.er1
  6084. ac_status=$?
  6085. grep -v '^ *+' conftest.er1 >conftest.err
  6086. rm -f conftest.er1
  6087. cat conftest.err >&5
  6088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6089. (exit $ac_status); } &&
  6090. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6092. (eval $ac_try) 2>&5
  6093. ac_status=$?
  6094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6095. (exit $ac_status); }; } &&
  6096. { ac_try='test -s conftest.$ac_objext'
  6097. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6098. (eval $ac_try) 2>&5
  6099. ac_status=$?
  6100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6101. (exit $ac_status); }; }; then
  6102. ac_cv_type_off_t=yes
  6103. else
  6104. echo "$as_me: failed program was:" >&5
  6105. sed 's/^/| /' conftest.$ac_ext >&5
  6106. ac_cv_type_off_t=no
  6107. fi
  6108. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6109. fi
  6110. echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  6111. echo "${ECHO_T}$ac_cv_type_off_t" >&6
  6112. if test $ac_cv_type_off_t = yes; then
  6113. :
  6114. else
  6115. cat >>confdefs.h <<_ACEOF
  6116. #define off_t long
  6117. _ACEOF
  6118. fi
  6119. for ac_header in stdlib.h unistd.h
  6120. do
  6121. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6122. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6123. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6124. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6125. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6126. echo $ECHO_N "(cached) $ECHO_C" >&6
  6127. fi
  6128. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6129. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6130. else
  6131. # Is the header compilable?
  6132. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6133. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6134. cat >conftest.$ac_ext <<_ACEOF
  6135. /* confdefs.h. */
  6136. _ACEOF
  6137. cat confdefs.h >>conftest.$ac_ext
  6138. cat >>conftest.$ac_ext <<_ACEOF
  6139. /* end confdefs.h. */
  6140. $ac_includes_default
  6141. #include <$ac_header>
  6142. _ACEOF
  6143. rm -f conftest.$ac_objext
  6144. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6145. (eval $ac_compile) 2>conftest.er1
  6146. ac_status=$?
  6147. grep -v '^ *+' conftest.er1 >conftest.err
  6148. rm -f conftest.er1
  6149. cat conftest.err >&5
  6150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6151. (exit $ac_status); } &&
  6152. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6153. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6154. (eval $ac_try) 2>&5
  6155. ac_status=$?
  6156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6157. (exit $ac_status); }; } &&
  6158. { ac_try='test -s conftest.$ac_objext'
  6159. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6160. (eval $ac_try) 2>&5
  6161. ac_status=$?
  6162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6163. (exit $ac_status); }; }; then
  6164. ac_header_compiler=yes
  6165. else
  6166. echo "$as_me: failed program was:" >&5
  6167. sed 's/^/| /' conftest.$ac_ext >&5
  6168. ac_header_compiler=no
  6169. fi
  6170. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6171. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6172. echo "${ECHO_T}$ac_header_compiler" >&6
  6173. # Is the header present?
  6174. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6175. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6176. cat >conftest.$ac_ext <<_ACEOF
  6177. /* confdefs.h. */
  6178. _ACEOF
  6179. cat confdefs.h >>conftest.$ac_ext
  6180. cat >>conftest.$ac_ext <<_ACEOF
  6181. /* end confdefs.h. */
  6182. #include <$ac_header>
  6183. _ACEOF
  6184. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6185. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6186. ac_status=$?
  6187. grep -v '^ *+' conftest.er1 >conftest.err
  6188. rm -f conftest.er1
  6189. cat conftest.err >&5
  6190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6191. (exit $ac_status); } >/dev/null; then
  6192. if test -s conftest.err; then
  6193. ac_cpp_err=$ac_c_preproc_warn_flag
  6194. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6195. else
  6196. ac_cpp_err=
  6197. fi
  6198. else
  6199. ac_cpp_err=yes
  6200. fi
  6201. if test -z "$ac_cpp_err"; then
  6202. ac_header_preproc=yes
  6203. else
  6204. echo "$as_me: failed program was:" >&5
  6205. sed 's/^/| /' conftest.$ac_ext >&5
  6206. ac_header_preproc=no
  6207. fi
  6208. rm -f conftest.err conftest.$ac_ext
  6209. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6210. echo "${ECHO_T}$ac_header_preproc" >&6
  6211. # So? What about this header?
  6212. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6213. yes:no: )
  6214. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6215. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6216. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6217. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6218. ac_header_preproc=yes
  6219. ;;
  6220. no:yes:* )
  6221. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6222. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6223. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6224. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6225. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6226. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6227. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6228. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6229. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6230. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6231. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6232. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6233. (
  6234. cat <<\_ASBOX
  6235. ## ----------------------------------- ##
  6236. ## Report this to tujikawa@rednoah.com ##
  6237. ## ----------------------------------- ##
  6238. _ASBOX
  6239. ) |
  6240. sed "s/^/$as_me: WARNING: /" >&2
  6241. ;;
  6242. esac
  6243. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6244. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6245. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6246. echo $ECHO_N "(cached) $ECHO_C" >&6
  6247. else
  6248. eval "$as_ac_Header=\$ac_header_preproc"
  6249. fi
  6250. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6251. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6252. fi
  6253. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6254. cat >>confdefs.h <<_ACEOF
  6255. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6256. _ACEOF
  6257. fi
  6258. done
  6259. for ac_func in getpagesize
  6260. do
  6261. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6262. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6263. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6264. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6265. echo $ECHO_N "(cached) $ECHO_C" >&6
  6266. else
  6267. cat >conftest.$ac_ext <<_ACEOF
  6268. /* confdefs.h. */
  6269. _ACEOF
  6270. cat confdefs.h >>conftest.$ac_ext
  6271. cat >>conftest.$ac_ext <<_ACEOF
  6272. /* end confdefs.h. */
  6273. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6274. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6275. #define $ac_func innocuous_$ac_func
  6276. /* System header to define __stub macros and hopefully few prototypes,
  6277. which can conflict with char $ac_func (); below.
  6278. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6279. <limits.h> exists even on freestanding compilers. */
  6280. #ifdef __STDC__
  6281. # include <limits.h>
  6282. #else
  6283. # include <assert.h>
  6284. #endif
  6285. #undef $ac_func
  6286. /* Override any gcc2 internal prototype to avoid an error. */
  6287. #ifdef __cplusplus
  6288. extern "C"
  6289. {
  6290. #endif
  6291. /* We use char because int might match the return type of a gcc2
  6292. builtin and then its argument prototype would still apply. */
  6293. char $ac_func ();
  6294. /* The GNU C library defines this for functions which it implements
  6295. to always fail with ENOSYS. Some functions are actually named
  6296. something starting with __ and the normal name is an alias. */
  6297. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6298. choke me
  6299. #else
  6300. char (*f) () = $ac_func;
  6301. #endif
  6302. #ifdef __cplusplus
  6303. }
  6304. #endif
  6305. int
  6306. main ()
  6307. {
  6308. return f != $ac_func;
  6309. ;
  6310. return 0;
  6311. }
  6312. _ACEOF
  6313. rm -f conftest.$ac_objext conftest$ac_exeext
  6314. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6315. (eval $ac_link) 2>conftest.er1
  6316. ac_status=$?
  6317. grep -v '^ *+' conftest.er1 >conftest.err
  6318. rm -f conftest.er1
  6319. cat conftest.err >&5
  6320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6321. (exit $ac_status); } &&
  6322. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6323. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6324. (eval $ac_try) 2>&5
  6325. ac_status=$?
  6326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6327. (exit $ac_status); }; } &&
  6328. { ac_try='test -s conftest$ac_exeext'
  6329. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6330. (eval $ac_try) 2>&5
  6331. ac_status=$?
  6332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6333. (exit $ac_status); }; }; then
  6334. eval "$as_ac_var=yes"
  6335. else
  6336. echo "$as_me: failed program was:" >&5
  6337. sed 's/^/| /' conftest.$ac_ext >&5
  6338. eval "$as_ac_var=no"
  6339. fi
  6340. rm -f conftest.err conftest.$ac_objext \
  6341. conftest$ac_exeext conftest.$ac_ext
  6342. fi
  6343. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6344. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6345. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6346. cat >>confdefs.h <<_ACEOF
  6347. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6348. _ACEOF
  6349. fi
  6350. done
  6351. echo "$as_me:$LINENO: checking for working mmap" >&5
  6352. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  6353. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  6354. echo $ECHO_N "(cached) $ECHO_C" >&6
  6355. else
  6356. if test "$cross_compiling" = yes; then
  6357. ac_cv_func_mmap_fixed_mapped=no
  6358. else
  6359. cat >conftest.$ac_ext <<_ACEOF
  6360. /* confdefs.h. */
  6361. _ACEOF
  6362. cat confdefs.h >>conftest.$ac_ext
  6363. cat >>conftest.$ac_ext <<_ACEOF
  6364. /* end confdefs.h. */
  6365. $ac_includes_default
  6366. /* malloc might have been renamed as rpl_malloc. */
  6367. #undef malloc
  6368. /* Thanks to Mike Haertel and Jim Avera for this test.
  6369. Here is a matrix of mmap possibilities:
  6370. mmap private not fixed
  6371. mmap private fixed at somewhere currently unmapped
  6372. mmap private fixed at somewhere already mapped
  6373. mmap shared not fixed
  6374. mmap shared fixed at somewhere currently unmapped
  6375. mmap shared fixed at somewhere already mapped
  6376. For private mappings, we should verify that changes cannot be read()
  6377. back from the file, nor mmap's back from the file at a different
  6378. address. (There have been systems where private was not correctly
  6379. implemented like the infamous i386 svr4.0, and systems where the
  6380. VM page cache was not coherent with the file system buffer cache
  6381. like early versions of FreeBSD and possibly contemporary NetBSD.)
  6382. For shared mappings, we should conversely verify that changes get
  6383. propagated back to all the places they're supposed to be.
  6384. Grep wants private fixed already mapped.
  6385. The main things grep needs to know about mmap are:
  6386. * does it exist and is it safe to write into the mmap'd area
  6387. * how to use it (BSD variants) */
  6388. #include <fcntl.h>
  6389. #include <sys/mman.h>
  6390. #if !STDC_HEADERS && !HAVE_STDLIB_H
  6391. char *malloc ();
  6392. #endif
  6393. /* This mess was copied from the GNU getpagesize.h. */
  6394. #if !HAVE_GETPAGESIZE
  6395. /* Assume that all systems that can run configure have sys/param.h. */
  6396. # if !HAVE_SYS_PARAM_H
  6397. # define HAVE_SYS_PARAM_H 1
  6398. # endif
  6399. # ifdef _SC_PAGESIZE
  6400. # define getpagesize() sysconf(_SC_PAGESIZE)
  6401. # else /* no _SC_PAGESIZE */
  6402. # if HAVE_SYS_PARAM_H
  6403. # include <sys/param.h>
  6404. # ifdef EXEC_PAGESIZE
  6405. # define getpagesize() EXEC_PAGESIZE
  6406. # else /* no EXEC_PAGESIZE */
  6407. # ifdef NBPG
  6408. # define getpagesize() NBPG * CLSIZE
  6409. # ifndef CLSIZE
  6410. # define CLSIZE 1
  6411. # endif /* no CLSIZE */
  6412. # else /* no NBPG */
  6413. # ifdef NBPC
  6414. # define getpagesize() NBPC
  6415. # else /* no NBPC */
  6416. # ifdef PAGESIZE
  6417. # define getpagesize() PAGESIZE
  6418. # endif /* PAGESIZE */
  6419. # endif /* no NBPC */
  6420. # endif /* no NBPG */
  6421. # endif /* no EXEC_PAGESIZE */
  6422. # else /* no HAVE_SYS_PARAM_H */
  6423. # define getpagesize() 8192 /* punt totally */
  6424. # endif /* no HAVE_SYS_PARAM_H */
  6425. # endif /* no _SC_PAGESIZE */
  6426. #endif /* no HAVE_GETPAGESIZE */
  6427. int
  6428. main ()
  6429. {
  6430. char *data, *data2, *data3;
  6431. int i, pagesize;
  6432. int fd;
  6433. pagesize = getpagesize ();
  6434. /* First, make a file with some known garbage in it. */
  6435. data = (char *) malloc (pagesize);
  6436. if (!data)
  6437. exit (1);
  6438. for (i = 0; i < pagesize; ++i)
  6439. *(data + i) = rand ();
  6440. umask (0);
  6441. fd = creat ("conftest.mmap", 0600);
  6442. if (fd < 0)
  6443. exit (1);
  6444. if (write (fd, data, pagesize) != pagesize)
  6445. exit (1);
  6446. close (fd);
  6447. /* Next, try to mmap the file at a fixed address which already has
  6448. something else allocated at it. If we can, also make sure that
  6449. we see the same garbage. */
  6450. fd = open ("conftest.mmap", O_RDWR);
  6451. if (fd < 0)
  6452. exit (1);
  6453. data2 = (char *) malloc (2 * pagesize);
  6454. if (!data2)
  6455. exit (1);
  6456. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  6457. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  6458. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  6459. exit (1);
  6460. for (i = 0; i < pagesize; ++i)
  6461. if (*(data + i) != *(data2 + i))
  6462. exit (1);
  6463. /* Finally, make sure that changes to the mapped area do not
  6464. percolate back to the file as seen by read(). (This is a bug on
  6465. some variants of i386 svr4.0.) */
  6466. for (i = 0; i < pagesize; ++i)
  6467. *(data2 + i) = *(data2 + i) + 1;
  6468. data3 = (char *) malloc (pagesize);
  6469. if (!data3)
  6470. exit (1);
  6471. if (read (fd, data3, pagesize) != pagesize)
  6472. exit (1);
  6473. for (i = 0; i < pagesize; ++i)
  6474. if (*(data + i) != *(data3 + i))
  6475. exit (1);
  6476. close (fd);
  6477. exit (0);
  6478. }
  6479. _ACEOF
  6480. rm -f conftest$ac_exeext
  6481. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6482. (eval $ac_link) 2>&5
  6483. ac_status=$?
  6484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6485. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6486. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6487. (eval $ac_try) 2>&5
  6488. ac_status=$?
  6489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6490. (exit $ac_status); }; }; then
  6491. ac_cv_func_mmap_fixed_mapped=yes
  6492. else
  6493. echo "$as_me: program exited with status $ac_status" >&5
  6494. echo "$as_me: failed program was:" >&5
  6495. sed 's/^/| /' conftest.$ac_ext >&5
  6496. ( exit $ac_status )
  6497. ac_cv_func_mmap_fixed_mapped=no
  6498. fi
  6499. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6500. fi
  6501. fi
  6502. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  6503. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  6504. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  6505. cat >>confdefs.h <<\_ACEOF
  6506. #define HAVE_MMAP 1
  6507. _ACEOF
  6508. fi
  6509. rm -f conftest.mmap
  6510. echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  6511. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
  6512. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  6513. echo $ECHO_N "(cached) $ECHO_C" >&6
  6514. else
  6515. cat >conftest.$ac_ext <<_ACEOF
  6516. /* confdefs.h. */
  6517. _ACEOF
  6518. cat confdefs.h >>conftest.$ac_ext
  6519. cat >>conftest.$ac_ext <<_ACEOF
  6520. /* end confdefs.h. */
  6521. #include <features.h>
  6522. #ifdef __GNU_LIBRARY__
  6523. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  6524. Lucky GNU user
  6525. #endif
  6526. #endif
  6527. _ACEOF
  6528. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6529. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  6530. ac_cv_gnu_library_2_1=yes
  6531. else
  6532. ac_cv_gnu_library_2_1=no
  6533. fi
  6534. rm -f conftest*
  6535. fi
  6536. echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  6537. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
  6538. GLIBC21="$ac_cv_gnu_library_2_1"
  6539. echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  6540. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
  6541. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  6542. echo $ECHO_N "(cached) $ECHO_C" >&6
  6543. else
  6544. if test "$cross_compiling" = yes; then
  6545. # Guess based on the CPU.
  6546. case "$host_cpu" in
  6547. alpha* | i3456786 | m68k | s390*)
  6548. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  6549. *)
  6550. gt_cv_int_divbyzero_sigfpe="guessing no";;
  6551. esac
  6552. else
  6553. cat >conftest.$ac_ext <<_ACEOF
  6554. /* confdefs.h. */
  6555. _ACEOF
  6556. cat confdefs.h >>conftest.$ac_ext
  6557. cat >>conftest.$ac_ext <<_ACEOF
  6558. /* end confdefs.h. */
  6559. #include <stdlib.h>
  6560. #include <signal.h>
  6561. static void
  6562. #ifdef __cplusplus
  6563. sigfpe_handler (int sig)
  6564. #else
  6565. sigfpe_handler (sig) int sig;
  6566. #endif
  6567. {
  6568. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  6569. exit (sig != SIGFPE);
  6570. }
  6571. int x = 1;
  6572. int y = 0;
  6573. int z;
  6574. int nan;
  6575. int main ()
  6576. {
  6577. signal (SIGFPE, sigfpe_handler);
  6578. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  6579. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  6580. signal (SIGTRAP, sigfpe_handler);
  6581. #endif
  6582. /* Linux/SPARC yields signal SIGILL. */
  6583. #if defined (__sparc__) && defined (__linux__)
  6584. signal (SIGILL, sigfpe_handler);
  6585. #endif
  6586. z = x / y;
  6587. nan = y / y;
  6588. exit (1);
  6589. }
  6590. _ACEOF
  6591. rm -f conftest$ac_exeext
  6592. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6593. (eval $ac_link) 2>&5
  6594. ac_status=$?
  6595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6596. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6597. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6598. (eval $ac_try) 2>&5
  6599. ac_status=$?
  6600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6601. (exit $ac_status); }; }; then
  6602. gt_cv_int_divbyzero_sigfpe=yes
  6603. else
  6604. echo "$as_me: program exited with status $ac_status" >&5
  6605. echo "$as_me: failed program was:" >&5
  6606. sed 's/^/| /' conftest.$ac_ext >&5
  6607. ( exit $ac_status )
  6608. gt_cv_int_divbyzero_sigfpe=no
  6609. fi
  6610. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6611. fi
  6612. fi
  6613. echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  6614. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
  6615. case "$gt_cv_int_divbyzero_sigfpe" in
  6616. *yes) value=1;;
  6617. *) value=0;;
  6618. esac
  6619. cat >>confdefs.h <<_ACEOF
  6620. #define INTDIV0_RAISES_SIGFPE $value
  6621. _ACEOF
  6622. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  6623. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  6624. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  6625. echo $ECHO_N "(cached) $ECHO_C" >&6
  6626. else
  6627. cat >conftest.$ac_ext <<_ACEOF
  6628. /* confdefs.h. */
  6629. _ACEOF
  6630. cat confdefs.h >>conftest.$ac_ext
  6631. cat >>conftest.$ac_ext <<_ACEOF
  6632. /* end confdefs.h. */
  6633. #include <sys/types.h>
  6634. #include <inttypes.h>
  6635. int
  6636. main ()
  6637. {
  6638. uintmax_t i = (uintmax_t) -1;
  6639. ;
  6640. return 0;
  6641. }
  6642. _ACEOF
  6643. rm -f conftest.$ac_objext
  6644. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6645. (eval $ac_compile) 2>conftest.er1
  6646. ac_status=$?
  6647. grep -v '^ *+' conftest.er1 >conftest.err
  6648. rm -f conftest.er1
  6649. cat conftest.err >&5
  6650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6651. (exit $ac_status); } &&
  6652. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6653. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6654. (eval $ac_try) 2>&5
  6655. ac_status=$?
  6656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6657. (exit $ac_status); }; } &&
  6658. { ac_try='test -s conftest.$ac_objext'
  6659. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6660. (eval $ac_try) 2>&5
  6661. ac_status=$?
  6662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6663. (exit $ac_status); }; }; then
  6664. jm_ac_cv_header_inttypes_h=yes
  6665. else
  6666. echo "$as_me: failed program was:" >&5
  6667. sed 's/^/| /' conftest.$ac_ext >&5
  6668. jm_ac_cv_header_inttypes_h=no
  6669. fi
  6670. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6671. fi
  6672. echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  6673. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
  6674. if test $jm_ac_cv_header_inttypes_h = yes; then
  6675. cat >>confdefs.h <<_ACEOF
  6676. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  6677. _ACEOF
  6678. fi
  6679. echo "$as_me:$LINENO: checking for stdint.h" >&5
  6680. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
  6681. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  6682. echo $ECHO_N "(cached) $ECHO_C" >&6
  6683. else
  6684. cat >conftest.$ac_ext <<_ACEOF
  6685. /* confdefs.h. */
  6686. _ACEOF
  6687. cat confdefs.h >>conftest.$ac_ext
  6688. cat >>conftest.$ac_ext <<_ACEOF
  6689. /* end confdefs.h. */
  6690. #include <sys/types.h>
  6691. #include <stdint.h>
  6692. int
  6693. main ()
  6694. {
  6695. uintmax_t i = (uintmax_t) -1;
  6696. ;
  6697. return 0;
  6698. }
  6699. _ACEOF
  6700. rm -f conftest.$ac_objext
  6701. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6702. (eval $ac_compile) 2>conftest.er1
  6703. ac_status=$?
  6704. grep -v '^ *+' conftest.er1 >conftest.err
  6705. rm -f conftest.er1
  6706. cat conftest.err >&5
  6707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6708. (exit $ac_status); } &&
  6709. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6710. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6711. (eval $ac_try) 2>&5
  6712. ac_status=$?
  6713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6714. (exit $ac_status); }; } &&
  6715. { ac_try='test -s conftest.$ac_objext'
  6716. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6717. (eval $ac_try) 2>&5
  6718. ac_status=$?
  6719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6720. (exit $ac_status); }; }; then
  6721. jm_ac_cv_header_stdint_h=yes
  6722. else
  6723. echo "$as_me: failed program was:" >&5
  6724. sed 's/^/| /' conftest.$ac_ext >&5
  6725. jm_ac_cv_header_stdint_h=no
  6726. fi
  6727. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6728. fi
  6729. echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  6730. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
  6731. if test $jm_ac_cv_header_stdint_h = yes; then
  6732. cat >>confdefs.h <<_ACEOF
  6733. #define HAVE_STDINT_H_WITH_UINTMAX 1
  6734. _ACEOF
  6735. fi
  6736. echo "$as_me:$LINENO: checking for unsigned long long" >&5
  6737. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
  6738. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  6739. echo $ECHO_N "(cached) $ECHO_C" >&6
  6740. else
  6741. cat >conftest.$ac_ext <<_ACEOF
  6742. /* confdefs.h. */
  6743. _ACEOF
  6744. cat confdefs.h >>conftest.$ac_ext
  6745. cat >>conftest.$ac_ext <<_ACEOF
  6746. /* end confdefs.h. */
  6747. unsigned long long ull = 1; int i = 63;
  6748. int
  6749. main ()
  6750. {
  6751. unsigned long long ullmax = (unsigned long long) -1;
  6752. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  6753. ;
  6754. return 0;
  6755. }
  6756. _ACEOF
  6757. rm -f conftest.$ac_objext conftest$ac_exeext
  6758. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6759. (eval $ac_link) 2>conftest.er1
  6760. ac_status=$?
  6761. grep -v '^ *+' conftest.er1 >conftest.err
  6762. rm -f conftest.er1
  6763. cat conftest.err >&5
  6764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6765. (exit $ac_status); } &&
  6766. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6767. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6768. (eval $ac_try) 2>&5
  6769. ac_status=$?
  6770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6771. (exit $ac_status); }; } &&
  6772. { ac_try='test -s conftest$ac_exeext'
  6773. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6774. (eval $ac_try) 2>&5
  6775. ac_status=$?
  6776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6777. (exit $ac_status); }; }; then
  6778. ac_cv_type_unsigned_long_long=yes
  6779. else
  6780. echo "$as_me: failed program was:" >&5
  6781. sed 's/^/| /' conftest.$ac_ext >&5
  6782. ac_cv_type_unsigned_long_long=no
  6783. fi
  6784. rm -f conftest.err conftest.$ac_objext \
  6785. conftest$ac_exeext conftest.$ac_ext
  6786. fi
  6787. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  6788. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
  6789. if test $ac_cv_type_unsigned_long_long = yes; then
  6790. cat >>confdefs.h <<\_ACEOF
  6791. #define HAVE_UNSIGNED_LONG_LONG 1
  6792. _ACEOF
  6793. fi
  6794. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  6795. test $ac_cv_type_unsigned_long_long = yes \
  6796. && ac_type='unsigned long long' \
  6797. || ac_type='unsigned long'
  6798. cat >>confdefs.h <<_ACEOF
  6799. #define uintmax_t $ac_type
  6800. _ACEOF
  6801. else
  6802. cat >>confdefs.h <<\_ACEOF
  6803. #define HAVE_UINTMAX_T 1
  6804. _ACEOF
  6805. fi
  6806. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  6807. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  6808. if test "${gt_cv_header_inttypes_h+set}" = set; then
  6809. echo $ECHO_N "(cached) $ECHO_C" >&6
  6810. else
  6811. cat >conftest.$ac_ext <<_ACEOF
  6812. /* confdefs.h. */
  6813. _ACEOF
  6814. cat confdefs.h >>conftest.$ac_ext
  6815. cat >>conftest.$ac_ext <<_ACEOF
  6816. /* end confdefs.h. */
  6817. #include <sys/types.h>
  6818. #include <inttypes.h>
  6819. int
  6820. main ()
  6821. {
  6822. ;
  6823. return 0;
  6824. }
  6825. _ACEOF
  6826. rm -f conftest.$ac_objext
  6827. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6828. (eval $ac_compile) 2>conftest.er1
  6829. ac_status=$?
  6830. grep -v '^ *+' conftest.er1 >conftest.err
  6831. rm -f conftest.er1
  6832. cat conftest.err >&5
  6833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6834. (exit $ac_status); } &&
  6835. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6836. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6837. (eval $ac_try) 2>&5
  6838. ac_status=$?
  6839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6840. (exit $ac_status); }; } &&
  6841. { ac_try='test -s conftest.$ac_objext'
  6842. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6843. (eval $ac_try) 2>&5
  6844. ac_status=$?
  6845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6846. (exit $ac_status); }; }; then
  6847. gt_cv_header_inttypes_h=yes
  6848. else
  6849. echo "$as_me: failed program was:" >&5
  6850. sed 's/^/| /' conftest.$ac_ext >&5
  6851. gt_cv_header_inttypes_h=no
  6852. fi
  6853. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6854. fi
  6855. echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  6856. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
  6857. if test $gt_cv_header_inttypes_h = yes; then
  6858. cat >>confdefs.h <<_ACEOF
  6859. #define HAVE_INTTYPES_H 1
  6860. _ACEOF
  6861. fi
  6862. if test $gt_cv_header_inttypes_h = yes; then
  6863. echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  6864. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
  6865. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  6866. echo $ECHO_N "(cached) $ECHO_C" >&6
  6867. else
  6868. cat >conftest.$ac_ext <<_ACEOF
  6869. /* confdefs.h. */
  6870. _ACEOF
  6871. cat confdefs.h >>conftest.$ac_ext
  6872. cat >>conftest.$ac_ext <<_ACEOF
  6873. /* end confdefs.h. */
  6874. #include <inttypes.h>
  6875. #ifdef PRId32
  6876. char *p = PRId32;
  6877. #endif
  6878. int
  6879. main ()
  6880. {
  6881. ;
  6882. return 0;
  6883. }
  6884. _ACEOF
  6885. rm -f conftest.$ac_objext
  6886. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6887. (eval $ac_compile) 2>conftest.er1
  6888. ac_status=$?
  6889. grep -v '^ *+' conftest.er1 >conftest.err
  6890. rm -f conftest.er1
  6891. cat conftest.err >&5
  6892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6893. (exit $ac_status); } &&
  6894. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6895. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6896. (eval $ac_try) 2>&5
  6897. ac_status=$?
  6898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6899. (exit $ac_status); }; } &&
  6900. { ac_try='test -s conftest.$ac_objext'
  6901. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6902. (eval $ac_try) 2>&5
  6903. ac_status=$?
  6904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6905. (exit $ac_status); }; }; then
  6906. gt_cv_inttypes_pri_broken=no
  6907. else
  6908. echo "$as_me: failed program was:" >&5
  6909. sed 's/^/| /' conftest.$ac_ext >&5
  6910. gt_cv_inttypes_pri_broken=yes
  6911. fi
  6912. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6913. fi
  6914. echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  6915. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
  6916. fi
  6917. if test "$gt_cv_inttypes_pri_broken" = yes; then
  6918. cat >>confdefs.h <<_ACEOF
  6919. #define PRI_MACROS_BROKEN 1
  6920. _ACEOF
  6921. fi
  6922. if test "X$prefix" = "XNONE"; then
  6923. acl_final_prefix="$ac_default_prefix"
  6924. else
  6925. acl_final_prefix="$prefix"
  6926. fi
  6927. if test "X$exec_prefix" = "XNONE"; then
  6928. acl_final_exec_prefix='${prefix}'
  6929. else
  6930. acl_final_exec_prefix="$exec_prefix"
  6931. fi
  6932. acl_save_prefix="$prefix"
  6933. prefix="$acl_final_prefix"
  6934. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  6935. prefix="$acl_save_prefix"
  6936. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  6937. if test "${with_gnu_ld+set}" = set; then
  6938. withval="$with_gnu_ld"
  6939. test "$withval" = no || with_gnu_ld=yes
  6940. else
  6941. with_gnu_ld=no
  6942. fi;
  6943. # Prepare PATH_SEPARATOR.
  6944. # The user is always right.
  6945. if test "${PATH_SEPARATOR+set}" != set; then
  6946. echo "#! /bin/sh" >conf$$.sh
  6947. echo "exit 0" >>conf$$.sh
  6948. chmod +x conf$$.sh
  6949. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6950. PATH_SEPARATOR=';'
  6951. else
  6952. PATH_SEPARATOR=:
  6953. fi
  6954. rm -f conf$$.sh
  6955. fi
  6956. ac_prog=ld
  6957. if test "$GCC" = yes; then
  6958. # Check if gcc -print-prog-name=ld gives a path.
  6959. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  6960. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  6961. case $host in
  6962. *-*-mingw*)
  6963. # gcc leaves a trailing carriage return which upsets mingw
  6964. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6965. *)
  6966. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6967. esac
  6968. case $ac_prog in
  6969. # Accept absolute paths.
  6970. [\\/]* | [A-Za-z]:[\\/]*)
  6971. re_direlt='/[^/][^/]*/\.\./'
  6972. # Canonicalize the path of ld
  6973. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  6974. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  6975. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  6976. done
  6977. test -z "$LD" && LD="$ac_prog"
  6978. ;;
  6979. "")
  6980. # If it fails, then pretend we aren't using GCC.
  6981. ac_prog=ld
  6982. ;;
  6983. *)
  6984. # If it is relative, then search for the first ld in PATH.
  6985. with_gnu_ld=unknown
  6986. ;;
  6987. esac
  6988. elif test "$with_gnu_ld" = yes; then
  6989. echo "$as_me:$LINENO: checking for GNU ld" >&5
  6990. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  6991. else
  6992. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  6993. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  6994. fi
  6995. if test "${acl_cv_path_LD+set}" = set; then
  6996. echo $ECHO_N "(cached) $ECHO_C" >&6
  6997. else
  6998. if test -z "$LD"; then
  6999. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  7000. for ac_dir in $PATH; do
  7001. test -z "$ac_dir" && ac_dir=.
  7002. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7003. acl_cv_path_LD="$ac_dir/$ac_prog"
  7004. # Check to see if the program is GNU ld. I'd rather use --version,
  7005. # but apparently some GNU ld's only accept -v.
  7006. # Break only if it was the GNU/non-GNU ld that we prefer.
  7007. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  7008. test "$with_gnu_ld" != no && break
  7009. else
  7010. test "$with_gnu_ld" != yes && break
  7011. fi
  7012. fi
  7013. done
  7014. IFS="$ac_save_ifs"
  7015. else
  7016. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  7017. fi
  7018. fi
  7019. LD="$acl_cv_path_LD"
  7020. if test -n "$LD"; then
  7021. echo "$as_me:$LINENO: result: $LD" >&5
  7022. echo "${ECHO_T}$LD" >&6
  7023. else
  7024. echo "$as_me:$LINENO: result: no" >&5
  7025. echo "${ECHO_T}no" >&6
  7026. fi
  7027. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  7028. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  7029. { (exit 1); exit 1; }; }
  7030. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  7031. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  7032. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  7033. echo $ECHO_N "(cached) $ECHO_C" >&6
  7034. else
  7035. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  7036. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  7037. acl_cv_prog_gnu_ld=yes
  7038. else
  7039. acl_cv_prog_gnu_ld=no
  7040. fi
  7041. fi
  7042. echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  7043. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
  7044. with_gnu_ld=$acl_cv_prog_gnu_ld
  7045. echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  7046. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
  7047. if test "${acl_cv_rpath+set}" = set; then
  7048. echo $ECHO_N "(cached) $ECHO_C" >&6
  7049. else
  7050. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  7051. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  7052. . ./conftest.sh
  7053. rm -f ./conftest.sh
  7054. acl_cv_rpath=done
  7055. fi
  7056. echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  7057. echo "${ECHO_T}$acl_cv_rpath" >&6
  7058. wl="$acl_cv_wl"
  7059. libext="$acl_cv_libext"
  7060. shlibext="$acl_cv_shlibext"
  7061. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  7062. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  7063. hardcode_direct="$acl_cv_hardcode_direct"
  7064. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  7065. # Check whether --enable-rpath or --disable-rpath was given.
  7066. if test "${enable_rpath+set}" = set; then
  7067. enableval="$enable_rpath"
  7068. :
  7069. else
  7070. enable_rpath=yes
  7071. fi;
  7072. use_additional=yes
  7073. acl_save_prefix="$prefix"
  7074. prefix="$acl_final_prefix"
  7075. acl_save_exec_prefix="$exec_prefix"
  7076. exec_prefix="$acl_final_exec_prefix"
  7077. eval additional_includedir=\"$includedir\"
  7078. eval additional_libdir=\"$libdir\"
  7079. exec_prefix="$acl_save_exec_prefix"
  7080. prefix="$acl_save_prefix"
  7081. # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
  7082. if test "${with_libiconv_prefix+set}" = set; then
  7083. withval="$with_libiconv_prefix"
  7084. if test "X$withval" = "Xno"; then
  7085. use_additional=no
  7086. else
  7087. if test "X$withval" = "X"; then
  7088. acl_save_prefix="$prefix"
  7089. prefix="$acl_final_prefix"
  7090. acl_save_exec_prefix="$exec_prefix"
  7091. exec_prefix="$acl_final_exec_prefix"
  7092. eval additional_includedir=\"$includedir\"
  7093. eval additional_libdir=\"$libdir\"
  7094. exec_prefix="$acl_save_exec_prefix"
  7095. prefix="$acl_save_prefix"
  7096. else
  7097. additional_includedir="$withval/include"
  7098. additional_libdir="$withval/lib"
  7099. fi
  7100. fi
  7101. fi;
  7102. LIBICONV=
  7103. LTLIBICONV=
  7104. INCICONV=
  7105. rpathdirs=
  7106. ltrpathdirs=
  7107. names_already_handled=
  7108. names_next_round='iconv '
  7109. while test -n "$names_next_round"; do
  7110. names_this_round="$names_next_round"
  7111. names_next_round=
  7112. for name in $names_this_round; do
  7113. already_handled=
  7114. for n in $names_already_handled; do
  7115. if test "$n" = "$name"; then
  7116. already_handled=yes
  7117. break
  7118. fi
  7119. done
  7120. if test -z "$already_handled"; then
  7121. names_already_handled="$names_already_handled $name"
  7122. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  7123. eval value=\"\$HAVE_LIB$uppername\"
  7124. if test -n "$value"; then
  7125. if test "$value" = yes; then
  7126. eval value=\"\$LIB$uppername\"
  7127. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  7128. eval value=\"\$LTLIB$uppername\"
  7129. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  7130. else
  7131. :
  7132. fi
  7133. else
  7134. found_dir=
  7135. found_la=
  7136. found_so=
  7137. found_a=
  7138. if test $use_additional = yes; then
  7139. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  7140. found_dir="$additional_libdir"
  7141. found_so="$additional_libdir/lib$name.$shlibext"
  7142. if test -f "$additional_libdir/lib$name.la"; then
  7143. found_la="$additional_libdir/lib$name.la"
  7144. fi
  7145. else
  7146. if test -f "$additional_libdir/lib$name.$libext"; then
  7147. found_dir="$additional_libdir"
  7148. found_a="$additional_libdir/lib$name.$libext"
  7149. if test -f "$additional_libdir/lib$name.la"; then
  7150. found_la="$additional_libdir/lib$name.la"
  7151. fi
  7152. fi
  7153. fi
  7154. fi
  7155. if test "X$found_dir" = "X"; then
  7156. for x in $LDFLAGS $LTLIBICONV; do
  7157. acl_save_prefix="$prefix"
  7158. prefix="$acl_final_prefix"
  7159. acl_save_exec_prefix="$exec_prefix"
  7160. exec_prefix="$acl_final_exec_prefix"
  7161. eval x=\"$x\"
  7162. exec_prefix="$acl_save_exec_prefix"
  7163. prefix="$acl_save_prefix"
  7164. case "$x" in
  7165. -L*)
  7166. dir=`echo "X$x" | sed -e 's/^X-L//'`
  7167. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  7168. found_dir="$dir"
  7169. found_so="$dir/lib$name.$shlibext"
  7170. if test -f "$dir/lib$name.la"; then
  7171. found_la="$dir/lib$name.la"
  7172. fi
  7173. else
  7174. if test -f "$dir/lib$name.$libext"; then
  7175. found_dir="$dir"
  7176. found_a="$dir/lib$name.$libext"
  7177. if test -f "$dir/lib$name.la"; then
  7178. found_la="$dir/lib$name.la"
  7179. fi
  7180. fi
  7181. fi
  7182. ;;
  7183. esac
  7184. if test "X$found_dir" != "X"; then
  7185. break
  7186. fi
  7187. done
  7188. fi
  7189. if test "X$found_dir" != "X"; then
  7190. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  7191. if test "X$found_so" != "X"; then
  7192. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  7193. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7194. else
  7195. haveit=
  7196. for x in $ltrpathdirs; do
  7197. if test "X$x" = "X$found_dir"; then
  7198. haveit=yes
  7199. break
  7200. fi
  7201. done
  7202. if test -z "$haveit"; then
  7203. ltrpathdirs="$ltrpathdirs $found_dir"
  7204. fi
  7205. if test "$hardcode_direct" = yes; then
  7206. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7207. else
  7208. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  7209. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7210. haveit=
  7211. for x in $rpathdirs; do
  7212. if test "X$x" = "X$found_dir"; then
  7213. haveit=yes
  7214. break
  7215. fi
  7216. done
  7217. if test -z "$haveit"; then
  7218. rpathdirs="$rpathdirs $found_dir"
  7219. fi
  7220. else
  7221. haveit=
  7222. for x in $LDFLAGS $LIBICONV; do
  7223. acl_save_prefix="$prefix"
  7224. prefix="$acl_final_prefix"
  7225. acl_save_exec_prefix="$exec_prefix"
  7226. exec_prefix="$acl_final_exec_prefix"
  7227. eval x=\"$x\"
  7228. exec_prefix="$acl_save_exec_prefix"
  7229. prefix="$acl_save_prefix"
  7230. if test "X$x" = "X-L$found_dir"; then
  7231. haveit=yes
  7232. break
  7233. fi
  7234. done
  7235. if test -z "$haveit"; then
  7236. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  7237. fi
  7238. if test "$hardcode_minus_L" != no; then
  7239. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7240. else
  7241. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  7242. fi
  7243. fi
  7244. fi
  7245. fi
  7246. else
  7247. if test "X$found_a" != "X"; then
  7248. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  7249. else
  7250. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  7251. fi
  7252. fi
  7253. additional_includedir=
  7254. case "$found_dir" in
  7255. */lib | */lib/)
  7256. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  7257. additional_includedir="$basedir/include"
  7258. ;;
  7259. esac
  7260. if test "X$additional_includedir" != "X"; then
  7261. if test "X$additional_includedir" != "X/usr/include"; then
  7262. haveit=
  7263. if test "X$additional_includedir" = "X/usr/local/include"; then
  7264. if test -n "$GCC"; then
  7265. case $host_os in
  7266. linux*) haveit=yes;;
  7267. esac
  7268. fi
  7269. fi
  7270. if test -z "$haveit"; then
  7271. for x in $CPPFLAGS $INCICONV; do
  7272. acl_save_prefix="$prefix"
  7273. prefix="$acl_final_prefix"
  7274. acl_save_exec_prefix="$exec_prefix"
  7275. exec_prefix="$acl_final_exec_prefix"
  7276. eval x=\"$x\"
  7277. exec_prefix="$acl_save_exec_prefix"
  7278. prefix="$acl_save_prefix"
  7279. if test "X$x" = "X-I$additional_includedir"; then
  7280. haveit=yes
  7281. break
  7282. fi
  7283. done
  7284. if test -z "$haveit"; then
  7285. if test -d "$additional_includedir"; then
  7286. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  7287. fi
  7288. fi
  7289. fi
  7290. fi
  7291. fi
  7292. if test -n "$found_la"; then
  7293. save_libdir="$libdir"
  7294. case "$found_la" in
  7295. */* | *\\*) . "$found_la" ;;
  7296. *) . "./$found_la" ;;
  7297. esac
  7298. libdir="$save_libdir"
  7299. for dep in $dependency_libs; do
  7300. case "$dep" in
  7301. -L*)
  7302. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  7303. if test "X$additional_libdir" != "X/usr/lib"; then
  7304. haveit=
  7305. if test "X$additional_libdir" = "X/usr/local/lib"; then
  7306. if test -n "$GCC"; then
  7307. case $host_os in
  7308. linux*) haveit=yes;;
  7309. esac
  7310. fi
  7311. fi
  7312. if test -z "$haveit"; then
  7313. haveit=
  7314. for x in $LDFLAGS $LIBICONV; do
  7315. acl_save_prefix="$prefix"
  7316. prefix="$acl_final_prefix"
  7317. acl_save_exec_prefix="$exec_prefix"
  7318. exec_prefix="$acl_final_exec_prefix"
  7319. eval x=\"$x\"
  7320. exec_prefix="$acl_save_exec_prefix"
  7321. prefix="$acl_save_prefix"
  7322. if test "X$x" = "X-L$additional_libdir"; then
  7323. haveit=yes
  7324. break
  7325. fi
  7326. done
  7327. if test -z "$haveit"; then
  7328. if test -d "$additional_libdir"; then
  7329. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  7330. fi
  7331. fi
  7332. haveit=
  7333. for x in $LDFLAGS $LTLIBICONV; do
  7334. acl_save_prefix="$prefix"
  7335. prefix="$acl_final_prefix"
  7336. acl_save_exec_prefix="$exec_prefix"
  7337. exec_prefix="$acl_final_exec_prefix"
  7338. eval x=\"$x\"
  7339. exec_prefix="$acl_save_exec_prefix"
  7340. prefix="$acl_save_prefix"
  7341. if test "X$x" = "X-L$additional_libdir"; then
  7342. haveit=yes
  7343. break
  7344. fi
  7345. done
  7346. if test -z "$haveit"; then
  7347. if test -d "$additional_libdir"; then
  7348. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  7349. fi
  7350. fi
  7351. fi
  7352. fi
  7353. ;;
  7354. -R*)
  7355. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  7356. if test "$enable_rpath" != no; then
  7357. haveit=
  7358. for x in $rpathdirs; do
  7359. if test "X$x" = "X$dir"; then
  7360. haveit=yes
  7361. break
  7362. fi
  7363. done
  7364. if test -z "$haveit"; then
  7365. rpathdirs="$rpathdirs $dir"
  7366. fi
  7367. haveit=
  7368. for x in $ltrpathdirs; do
  7369. if test "X$x" = "X$dir"; then
  7370. haveit=yes
  7371. break
  7372. fi
  7373. done
  7374. if test -z "$haveit"; then
  7375. ltrpathdirs="$ltrpathdirs $dir"
  7376. fi
  7377. fi
  7378. ;;
  7379. -l*)
  7380. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  7381. ;;
  7382. *.la)
  7383. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  7384. ;;
  7385. *)
  7386. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  7387. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  7388. ;;
  7389. esac
  7390. done
  7391. fi
  7392. else
  7393. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  7394. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  7395. fi
  7396. fi
  7397. fi
  7398. done
  7399. done
  7400. if test "X$rpathdirs" != "X"; then
  7401. if test -n "$hardcode_libdir_separator"; then
  7402. alldirs=
  7403. for found_dir in $rpathdirs; do
  7404. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  7405. done
  7406. acl_save_libdir="$libdir"
  7407. libdir="$alldirs"
  7408. eval flag=\"$hardcode_libdir_flag_spec\"
  7409. libdir="$acl_save_libdir"
  7410. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7411. else
  7412. for found_dir in $rpathdirs; do
  7413. acl_save_libdir="$libdir"
  7414. libdir="$found_dir"
  7415. eval flag=\"$hardcode_libdir_flag_spec\"
  7416. libdir="$acl_save_libdir"
  7417. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7418. done
  7419. fi
  7420. fi
  7421. if test "X$ltrpathdirs" != "X"; then
  7422. for found_dir in $ltrpathdirs; do
  7423. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  7424. done
  7425. fi
  7426. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  7427. stdlib.h string.h unistd.h sys/param.h
  7428. do
  7429. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7430. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7431. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7432. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7433. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7434. echo $ECHO_N "(cached) $ECHO_C" >&6
  7435. fi
  7436. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7437. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7438. else
  7439. # Is the header compilable?
  7440. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7441. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7442. cat >conftest.$ac_ext <<_ACEOF
  7443. /* confdefs.h. */
  7444. _ACEOF
  7445. cat confdefs.h >>conftest.$ac_ext
  7446. cat >>conftest.$ac_ext <<_ACEOF
  7447. /* end confdefs.h. */
  7448. $ac_includes_default
  7449. #include <$ac_header>
  7450. _ACEOF
  7451. rm -f conftest.$ac_objext
  7452. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7453. (eval $ac_compile) 2>conftest.er1
  7454. ac_status=$?
  7455. grep -v '^ *+' conftest.er1 >conftest.err
  7456. rm -f conftest.er1
  7457. cat conftest.err >&5
  7458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7459. (exit $ac_status); } &&
  7460. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7461. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7462. (eval $ac_try) 2>&5
  7463. ac_status=$?
  7464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7465. (exit $ac_status); }; } &&
  7466. { ac_try='test -s conftest.$ac_objext'
  7467. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7468. (eval $ac_try) 2>&5
  7469. ac_status=$?
  7470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7471. (exit $ac_status); }; }; then
  7472. ac_header_compiler=yes
  7473. else
  7474. echo "$as_me: failed program was:" >&5
  7475. sed 's/^/| /' conftest.$ac_ext >&5
  7476. ac_header_compiler=no
  7477. fi
  7478. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7479. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7480. echo "${ECHO_T}$ac_header_compiler" >&6
  7481. # Is the header present?
  7482. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7483. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7484. cat >conftest.$ac_ext <<_ACEOF
  7485. /* confdefs.h. */
  7486. _ACEOF
  7487. cat confdefs.h >>conftest.$ac_ext
  7488. cat >>conftest.$ac_ext <<_ACEOF
  7489. /* end confdefs.h. */
  7490. #include <$ac_header>
  7491. _ACEOF
  7492. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7493. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7494. ac_status=$?
  7495. grep -v '^ *+' conftest.er1 >conftest.err
  7496. rm -f conftest.er1
  7497. cat conftest.err >&5
  7498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7499. (exit $ac_status); } >/dev/null; then
  7500. if test -s conftest.err; then
  7501. ac_cpp_err=$ac_c_preproc_warn_flag
  7502. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7503. else
  7504. ac_cpp_err=
  7505. fi
  7506. else
  7507. ac_cpp_err=yes
  7508. fi
  7509. if test -z "$ac_cpp_err"; then
  7510. ac_header_preproc=yes
  7511. else
  7512. echo "$as_me: failed program was:" >&5
  7513. sed 's/^/| /' conftest.$ac_ext >&5
  7514. ac_header_preproc=no
  7515. fi
  7516. rm -f conftest.err conftest.$ac_ext
  7517. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7518. echo "${ECHO_T}$ac_header_preproc" >&6
  7519. # So? What about this header?
  7520. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7521. yes:no: )
  7522. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7523. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7524. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7525. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7526. ac_header_preproc=yes
  7527. ;;
  7528. no:yes:* )
  7529. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7530. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7531. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7532. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7533. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7534. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7535. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7536. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7537. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7538. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7539. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7540. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7541. (
  7542. cat <<\_ASBOX
  7543. ## ----------------------------------- ##
  7544. ## Report this to tujikawa@rednoah.com ##
  7545. ## ----------------------------------- ##
  7546. _ASBOX
  7547. ) |
  7548. sed "s/^/$as_me: WARNING: /" >&2
  7549. ;;
  7550. esac
  7551. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7552. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7553. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7554. echo $ECHO_N "(cached) $ECHO_C" >&6
  7555. else
  7556. eval "$as_ac_Header=\$ac_header_preproc"
  7557. fi
  7558. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7559. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7560. fi
  7561. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7562. cat >>confdefs.h <<_ACEOF
  7563. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7564. _ACEOF
  7565. fi
  7566. done
  7567. for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
  7568. geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
  7569. strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
  7570. __fsetlocking
  7571. do
  7572. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7573. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7574. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7575. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7576. echo $ECHO_N "(cached) $ECHO_C" >&6
  7577. else
  7578. cat >conftest.$ac_ext <<_ACEOF
  7579. /* confdefs.h. */
  7580. _ACEOF
  7581. cat confdefs.h >>conftest.$ac_ext
  7582. cat >>conftest.$ac_ext <<_ACEOF
  7583. /* end confdefs.h. */
  7584. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7585. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7586. #define $ac_func innocuous_$ac_func
  7587. /* System header to define __stub macros and hopefully few prototypes,
  7588. which can conflict with char $ac_func (); below.
  7589. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7590. <limits.h> exists even on freestanding compilers. */
  7591. #ifdef __STDC__
  7592. # include <limits.h>
  7593. #else
  7594. # include <assert.h>
  7595. #endif
  7596. #undef $ac_func
  7597. /* Override any gcc2 internal prototype to avoid an error. */
  7598. #ifdef __cplusplus
  7599. extern "C"
  7600. {
  7601. #endif
  7602. /* We use char because int might match the return type of a gcc2
  7603. builtin and then its argument prototype would still apply. */
  7604. char $ac_func ();
  7605. /* The GNU C library defines this for functions which it implements
  7606. to always fail with ENOSYS. Some functions are actually named
  7607. something starting with __ and the normal name is an alias. */
  7608. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7609. choke me
  7610. #else
  7611. char (*f) () = $ac_func;
  7612. #endif
  7613. #ifdef __cplusplus
  7614. }
  7615. #endif
  7616. int
  7617. main ()
  7618. {
  7619. return f != $ac_func;
  7620. ;
  7621. return 0;
  7622. }
  7623. _ACEOF
  7624. rm -f conftest.$ac_objext conftest$ac_exeext
  7625. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7626. (eval $ac_link) 2>conftest.er1
  7627. ac_status=$?
  7628. grep -v '^ *+' conftest.er1 >conftest.err
  7629. rm -f conftest.er1
  7630. cat conftest.err >&5
  7631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7632. (exit $ac_status); } &&
  7633. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7634. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7635. (eval $ac_try) 2>&5
  7636. ac_status=$?
  7637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7638. (exit $ac_status); }; } &&
  7639. { ac_try='test -s conftest$ac_exeext'
  7640. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7641. (eval $ac_try) 2>&5
  7642. ac_status=$?
  7643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7644. (exit $ac_status); }; }; then
  7645. eval "$as_ac_var=yes"
  7646. else
  7647. echo "$as_me: failed program was:" >&5
  7648. sed 's/^/| /' conftest.$ac_ext >&5
  7649. eval "$as_ac_var=no"
  7650. fi
  7651. rm -f conftest.err conftest.$ac_objext \
  7652. conftest$ac_exeext conftest.$ac_ext
  7653. fi
  7654. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7655. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7656. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7657. cat >>confdefs.h <<_ACEOF
  7658. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7659. _ACEOF
  7660. fi
  7661. done
  7662. am_save_CPPFLAGS="$CPPFLAGS"
  7663. for element in $INCICONV; do
  7664. haveit=
  7665. for x in $CPPFLAGS; do
  7666. acl_save_prefix="$prefix"
  7667. prefix="$acl_final_prefix"
  7668. acl_save_exec_prefix="$exec_prefix"
  7669. exec_prefix="$acl_final_exec_prefix"
  7670. eval x=\"$x\"
  7671. exec_prefix="$acl_save_exec_prefix"
  7672. prefix="$acl_save_prefix"
  7673. if test "X$x" = "X$element"; then
  7674. haveit=yes
  7675. break
  7676. fi
  7677. done
  7678. if test -z "$haveit"; then
  7679. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  7680. fi
  7681. done
  7682. echo "$as_me:$LINENO: checking for iconv" >&5
  7683. echo $ECHO_N "checking for iconv... $ECHO_C" >&6
  7684. if test "${am_cv_func_iconv+set}" = set; then
  7685. echo $ECHO_N "(cached) $ECHO_C" >&6
  7686. else
  7687. am_cv_func_iconv="no, consider installing GNU libiconv"
  7688. am_cv_lib_iconv=no
  7689. cat >conftest.$ac_ext <<_ACEOF
  7690. /* confdefs.h. */
  7691. _ACEOF
  7692. cat confdefs.h >>conftest.$ac_ext
  7693. cat >>conftest.$ac_ext <<_ACEOF
  7694. /* end confdefs.h. */
  7695. #include <stdlib.h>
  7696. #include <iconv.h>
  7697. int
  7698. main ()
  7699. {
  7700. iconv_t cd = iconv_open("","");
  7701. iconv(cd,NULL,NULL,NULL,NULL);
  7702. iconv_close(cd);
  7703. ;
  7704. return 0;
  7705. }
  7706. _ACEOF
  7707. rm -f conftest.$ac_objext conftest$ac_exeext
  7708. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7709. (eval $ac_link) 2>conftest.er1
  7710. ac_status=$?
  7711. grep -v '^ *+' conftest.er1 >conftest.err
  7712. rm -f conftest.er1
  7713. cat conftest.err >&5
  7714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7715. (exit $ac_status); } &&
  7716. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7717. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7718. (eval $ac_try) 2>&5
  7719. ac_status=$?
  7720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7721. (exit $ac_status); }; } &&
  7722. { ac_try='test -s conftest$ac_exeext'
  7723. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7724. (eval $ac_try) 2>&5
  7725. ac_status=$?
  7726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7727. (exit $ac_status); }; }; then
  7728. am_cv_func_iconv=yes
  7729. else
  7730. echo "$as_me: failed program was:" >&5
  7731. sed 's/^/| /' conftest.$ac_ext >&5
  7732. fi
  7733. rm -f conftest.err conftest.$ac_objext \
  7734. conftest$ac_exeext conftest.$ac_ext
  7735. if test "$am_cv_func_iconv" != yes; then
  7736. am_save_LIBS="$LIBS"
  7737. LIBS="$LIBS $LIBICONV"
  7738. cat >conftest.$ac_ext <<_ACEOF
  7739. /* confdefs.h. */
  7740. _ACEOF
  7741. cat confdefs.h >>conftest.$ac_ext
  7742. cat >>conftest.$ac_ext <<_ACEOF
  7743. /* end confdefs.h. */
  7744. #include <stdlib.h>
  7745. #include <iconv.h>
  7746. int
  7747. main ()
  7748. {
  7749. iconv_t cd = iconv_open("","");
  7750. iconv(cd,NULL,NULL,NULL,NULL);
  7751. iconv_close(cd);
  7752. ;
  7753. return 0;
  7754. }
  7755. _ACEOF
  7756. rm -f conftest.$ac_objext conftest$ac_exeext
  7757. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7758. (eval $ac_link) 2>conftest.er1
  7759. ac_status=$?
  7760. grep -v '^ *+' conftest.er1 >conftest.err
  7761. rm -f conftest.er1
  7762. cat conftest.err >&5
  7763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7764. (exit $ac_status); } &&
  7765. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7766. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7767. (eval $ac_try) 2>&5
  7768. ac_status=$?
  7769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7770. (exit $ac_status); }; } &&
  7771. { ac_try='test -s conftest$ac_exeext'
  7772. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7773. (eval $ac_try) 2>&5
  7774. ac_status=$?
  7775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7776. (exit $ac_status); }; }; then
  7777. am_cv_lib_iconv=yes
  7778. am_cv_func_iconv=yes
  7779. else
  7780. echo "$as_me: failed program was:" >&5
  7781. sed 's/^/| /' conftest.$ac_ext >&5
  7782. fi
  7783. rm -f conftest.err conftest.$ac_objext \
  7784. conftest$ac_exeext conftest.$ac_ext
  7785. LIBS="$am_save_LIBS"
  7786. fi
  7787. fi
  7788. echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  7789. echo "${ECHO_T}$am_cv_func_iconv" >&6
  7790. if test "$am_cv_func_iconv" = yes; then
  7791. cat >>confdefs.h <<\_ACEOF
  7792. #define HAVE_ICONV 1
  7793. _ACEOF
  7794. fi
  7795. if test "$am_cv_lib_iconv" = yes; then
  7796. echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  7797. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
  7798. echo "$as_me:$LINENO: result: $LIBICONV" >&5
  7799. echo "${ECHO_T}$LIBICONV" >&6
  7800. else
  7801. CPPFLAGS="$am_save_CPPFLAGS"
  7802. LIBICONV=
  7803. LTLIBICONV=
  7804. fi
  7805. if test "$am_cv_func_iconv" = yes; then
  7806. echo "$as_me:$LINENO: checking for iconv declaration" >&5
  7807. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
  7808. if test "${am_cv_proto_iconv+set}" = set; then
  7809. echo $ECHO_N "(cached) $ECHO_C" >&6
  7810. else
  7811. cat >conftest.$ac_ext <<_ACEOF
  7812. /* confdefs.h. */
  7813. _ACEOF
  7814. cat confdefs.h >>conftest.$ac_ext
  7815. cat >>conftest.$ac_ext <<_ACEOF
  7816. /* end confdefs.h. */
  7817. #include <stdlib.h>
  7818. #include <iconv.h>
  7819. extern
  7820. #ifdef __cplusplus
  7821. "C"
  7822. #endif
  7823. #if defined(__STDC__) || defined(__cplusplus)
  7824. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  7825. #else
  7826. size_t iconv();
  7827. #endif
  7828. int
  7829. main ()
  7830. {
  7831. ;
  7832. return 0;
  7833. }
  7834. _ACEOF
  7835. rm -f conftest.$ac_objext
  7836. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7837. (eval $ac_compile) 2>conftest.er1
  7838. ac_status=$?
  7839. grep -v '^ *+' conftest.er1 >conftest.err
  7840. rm -f conftest.er1
  7841. cat conftest.err >&5
  7842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7843. (exit $ac_status); } &&
  7844. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7845. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7846. (eval $ac_try) 2>&5
  7847. ac_status=$?
  7848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7849. (exit $ac_status); }; } &&
  7850. { ac_try='test -s conftest.$ac_objext'
  7851. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7852. (eval $ac_try) 2>&5
  7853. ac_status=$?
  7854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7855. (exit $ac_status); }; }; then
  7856. am_cv_proto_iconv_arg1=""
  7857. else
  7858. echo "$as_me: failed program was:" >&5
  7859. sed 's/^/| /' conftest.$ac_ext >&5
  7860. am_cv_proto_iconv_arg1="const"
  7861. fi
  7862. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7863. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  7864. fi
  7865. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  7866. echo "$as_me:$LINENO: result: ${ac_t:-
  7867. }$am_cv_proto_iconv" >&5
  7868. echo "${ECHO_T}${ac_t:-
  7869. }$am_cv_proto_iconv" >&6
  7870. cat >>confdefs.h <<_ACEOF
  7871. #define ICONV_CONST $am_cv_proto_iconv_arg1
  7872. _ACEOF
  7873. fi
  7874. echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  7875. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
  7876. if test "${am_cv_langinfo_codeset+set}" = set; then
  7877. echo $ECHO_N "(cached) $ECHO_C" >&6
  7878. else
  7879. cat >conftest.$ac_ext <<_ACEOF
  7880. /* confdefs.h. */
  7881. _ACEOF
  7882. cat confdefs.h >>conftest.$ac_ext
  7883. cat >>conftest.$ac_ext <<_ACEOF
  7884. /* end confdefs.h. */
  7885. #include <langinfo.h>
  7886. int
  7887. main ()
  7888. {
  7889. char* cs = nl_langinfo(CODESET);
  7890. ;
  7891. return 0;
  7892. }
  7893. _ACEOF
  7894. rm -f conftest.$ac_objext conftest$ac_exeext
  7895. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7896. (eval $ac_link) 2>conftest.er1
  7897. ac_status=$?
  7898. grep -v '^ *+' conftest.er1 >conftest.err
  7899. rm -f conftest.er1
  7900. cat conftest.err >&5
  7901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7902. (exit $ac_status); } &&
  7903. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7904. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7905. (eval $ac_try) 2>&5
  7906. ac_status=$?
  7907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7908. (exit $ac_status); }; } &&
  7909. { ac_try='test -s conftest$ac_exeext'
  7910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7911. (eval $ac_try) 2>&5
  7912. ac_status=$?
  7913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7914. (exit $ac_status); }; }; then
  7915. am_cv_langinfo_codeset=yes
  7916. else
  7917. echo "$as_me: failed program was:" >&5
  7918. sed 's/^/| /' conftest.$ac_ext >&5
  7919. am_cv_langinfo_codeset=no
  7920. fi
  7921. rm -f conftest.err conftest.$ac_objext \
  7922. conftest$ac_exeext conftest.$ac_ext
  7923. fi
  7924. echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  7925. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
  7926. if test $am_cv_langinfo_codeset = yes; then
  7927. cat >>confdefs.h <<\_ACEOF
  7928. #define HAVE_LANGINFO_CODESET 1
  7929. _ACEOF
  7930. fi
  7931. if test $ac_cv_header_locale_h = yes; then
  7932. echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  7933. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
  7934. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  7935. echo $ECHO_N "(cached) $ECHO_C" >&6
  7936. else
  7937. cat >conftest.$ac_ext <<_ACEOF
  7938. /* confdefs.h. */
  7939. _ACEOF
  7940. cat confdefs.h >>conftest.$ac_ext
  7941. cat >>conftest.$ac_ext <<_ACEOF
  7942. /* end confdefs.h. */
  7943. #include <locale.h>
  7944. int
  7945. main ()
  7946. {
  7947. return LC_MESSAGES
  7948. ;
  7949. return 0;
  7950. }
  7951. _ACEOF
  7952. rm -f conftest.$ac_objext conftest$ac_exeext
  7953. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7954. (eval $ac_link) 2>conftest.er1
  7955. ac_status=$?
  7956. grep -v '^ *+' conftest.er1 >conftest.err
  7957. rm -f conftest.er1
  7958. cat conftest.err >&5
  7959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7960. (exit $ac_status); } &&
  7961. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7962. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7963. (eval $ac_try) 2>&5
  7964. ac_status=$?
  7965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7966. (exit $ac_status); }; } &&
  7967. { ac_try='test -s conftest$ac_exeext'
  7968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7969. (eval $ac_try) 2>&5
  7970. ac_status=$?
  7971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7972. (exit $ac_status); }; }; then
  7973. am_cv_val_LC_MESSAGES=yes
  7974. else
  7975. echo "$as_me: failed program was:" >&5
  7976. sed 's/^/| /' conftest.$ac_ext >&5
  7977. am_cv_val_LC_MESSAGES=no
  7978. fi
  7979. rm -f conftest.err conftest.$ac_objext \
  7980. conftest$ac_exeext conftest.$ac_ext
  7981. fi
  7982. echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  7983. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
  7984. if test $am_cv_val_LC_MESSAGES = yes; then
  7985. cat >>confdefs.h <<\_ACEOF
  7986. #define HAVE_LC_MESSAGES 1
  7987. _ACEOF
  7988. fi
  7989. fi
  7990. for ac_prog in bison
  7991. do
  7992. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7993. set dummy $ac_prog; ac_word=$2
  7994. echo "$as_me:$LINENO: checking for $ac_word" >&5
  7995. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7996. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  7997. echo $ECHO_N "(cached) $ECHO_C" >&6
  7998. else
  7999. if test -n "$INTLBISON"; then
  8000. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  8001. else
  8002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8003. for as_dir in $PATH
  8004. do
  8005. IFS=$as_save_IFS
  8006. test -z "$as_dir" && as_dir=.
  8007. for ac_exec_ext in '' $ac_executable_extensions; do
  8008. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8009. ac_cv_prog_INTLBISON="$ac_prog"
  8010. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8011. break 2
  8012. fi
  8013. done
  8014. done
  8015. fi
  8016. fi
  8017. INTLBISON=$ac_cv_prog_INTLBISON
  8018. if test -n "$INTLBISON"; then
  8019. echo "$as_me:$LINENO: result: $INTLBISON" >&5
  8020. echo "${ECHO_T}$INTLBISON" >&6
  8021. else
  8022. echo "$as_me:$LINENO: result: no" >&5
  8023. echo "${ECHO_T}no" >&6
  8024. fi
  8025. test -n "$INTLBISON" && break
  8026. done
  8027. if test -z "$INTLBISON"; then
  8028. ac_verc_fail=yes
  8029. else
  8030. echo "$as_me:$LINENO: checking version of bison" >&5
  8031. echo $ECHO_N "checking version of bison... $ECHO_C" >&6
  8032. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  8033. case $ac_prog_version in
  8034. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  8035. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  8036. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  8037. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  8038. esac
  8039. echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  8040. echo "${ECHO_T}$ac_prog_version" >&6
  8041. fi
  8042. if test $ac_verc_fail = yes; then
  8043. INTLBISON=:
  8044. fi
  8045. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  8046. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  8047. # Check whether --enable-nls or --disable-nls was given.
  8048. if test "${enable_nls+set}" = set; then
  8049. enableval="$enable_nls"
  8050. USE_NLS=$enableval
  8051. else
  8052. USE_NLS=yes
  8053. fi;
  8054. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8055. echo "${ECHO_T}$USE_NLS" >&6
  8056. BUILD_INCLUDED_LIBINTL=no
  8057. USE_INCLUDED_LIBINTL=no
  8058. LIBINTL=
  8059. LTLIBINTL=
  8060. POSUB=
  8061. if test "$USE_NLS" = "yes"; then
  8062. gt_use_preinstalled_gnugettext=no
  8063. echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  8064. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
  8065. # Check whether --with-included-gettext or --without-included-gettext was given.
  8066. if test "${with_included_gettext+set}" = set; then
  8067. withval="$with_included_gettext"
  8068. nls_cv_force_use_gnu_gettext=$withval
  8069. else
  8070. nls_cv_force_use_gnu_gettext=no
  8071. fi;
  8072. echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  8073. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
  8074. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  8075. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  8076. echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  8077. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
  8078. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  8079. echo $ECHO_N "(cached) $ECHO_C" >&6
  8080. else
  8081. cat >conftest.$ac_ext <<_ACEOF
  8082. /* confdefs.h. */
  8083. _ACEOF
  8084. cat confdefs.h >>conftest.$ac_ext
  8085. cat >>conftest.$ac_ext <<_ACEOF
  8086. /* end confdefs.h. */
  8087. #include <libintl.h>
  8088. extern int _nl_msg_cat_cntr;
  8089. extern int *_nl_domain_bindings;
  8090. int
  8091. main ()
  8092. {
  8093. bindtextdomain ("", "");
  8094. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  8095. ;
  8096. return 0;
  8097. }
  8098. _ACEOF
  8099. rm -f conftest.$ac_objext conftest$ac_exeext
  8100. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8101. (eval $ac_link) 2>conftest.er1
  8102. ac_status=$?
  8103. grep -v '^ *+' conftest.er1 >conftest.err
  8104. rm -f conftest.er1
  8105. cat conftest.err >&5
  8106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8107. (exit $ac_status); } &&
  8108. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8109. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8110. (eval $ac_try) 2>&5
  8111. ac_status=$?
  8112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8113. (exit $ac_status); }; } &&
  8114. { ac_try='test -s conftest$ac_exeext'
  8115. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8116. (eval $ac_try) 2>&5
  8117. ac_status=$?
  8118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8119. (exit $ac_status); }; }; then
  8120. gt_cv_func_gnugettext1_libc=yes
  8121. else
  8122. echo "$as_me: failed program was:" >&5
  8123. sed 's/^/| /' conftest.$ac_ext >&5
  8124. gt_cv_func_gnugettext1_libc=no
  8125. fi
  8126. rm -f conftest.err conftest.$ac_objext \
  8127. conftest$ac_exeext conftest.$ac_ext
  8128. fi
  8129. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  8130. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
  8131. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  8132. use_additional=yes
  8133. acl_save_prefix="$prefix"
  8134. prefix="$acl_final_prefix"
  8135. acl_save_exec_prefix="$exec_prefix"
  8136. exec_prefix="$acl_final_exec_prefix"
  8137. eval additional_includedir=\"$includedir\"
  8138. eval additional_libdir=\"$libdir\"
  8139. exec_prefix="$acl_save_exec_prefix"
  8140. prefix="$acl_save_prefix"
  8141. # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
  8142. if test "${with_libintl_prefix+set}" = set; then
  8143. withval="$with_libintl_prefix"
  8144. if test "X$withval" = "Xno"; then
  8145. use_additional=no
  8146. else
  8147. if test "X$withval" = "X"; then
  8148. acl_save_prefix="$prefix"
  8149. prefix="$acl_final_prefix"
  8150. acl_save_exec_prefix="$exec_prefix"
  8151. exec_prefix="$acl_final_exec_prefix"
  8152. eval additional_includedir=\"$includedir\"
  8153. eval additional_libdir=\"$libdir\"
  8154. exec_prefix="$acl_save_exec_prefix"
  8155. prefix="$acl_save_prefix"
  8156. else
  8157. additional_includedir="$withval/include"
  8158. additional_libdir="$withval/lib"
  8159. fi
  8160. fi
  8161. fi;
  8162. LIBINTL=
  8163. LTLIBINTL=
  8164. INCINTL=
  8165. rpathdirs=
  8166. ltrpathdirs=
  8167. names_already_handled=
  8168. names_next_round='intl '
  8169. while test -n "$names_next_round"; do
  8170. names_this_round="$names_next_round"
  8171. names_next_round=
  8172. for name in $names_this_round; do
  8173. already_handled=
  8174. for n in $names_already_handled; do
  8175. if test "$n" = "$name"; then
  8176. already_handled=yes
  8177. break
  8178. fi
  8179. done
  8180. if test -z "$already_handled"; then
  8181. names_already_handled="$names_already_handled $name"
  8182. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8183. eval value=\"\$HAVE_LIB$uppername\"
  8184. if test -n "$value"; then
  8185. if test "$value" = yes; then
  8186. eval value=\"\$LIB$uppername\"
  8187. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  8188. eval value=\"\$LTLIB$uppername\"
  8189. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  8190. else
  8191. :
  8192. fi
  8193. else
  8194. found_dir=
  8195. found_la=
  8196. found_so=
  8197. found_a=
  8198. if test $use_additional = yes; then
  8199. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  8200. found_dir="$additional_libdir"
  8201. found_so="$additional_libdir/lib$name.$shlibext"
  8202. if test -f "$additional_libdir/lib$name.la"; then
  8203. found_la="$additional_libdir/lib$name.la"
  8204. fi
  8205. else
  8206. if test -f "$additional_libdir/lib$name.$libext"; then
  8207. found_dir="$additional_libdir"
  8208. found_a="$additional_libdir/lib$name.$libext"
  8209. if test -f "$additional_libdir/lib$name.la"; then
  8210. found_la="$additional_libdir/lib$name.la"
  8211. fi
  8212. fi
  8213. fi
  8214. fi
  8215. if test "X$found_dir" = "X"; then
  8216. for x in $LDFLAGS $LTLIBINTL; do
  8217. acl_save_prefix="$prefix"
  8218. prefix="$acl_final_prefix"
  8219. acl_save_exec_prefix="$exec_prefix"
  8220. exec_prefix="$acl_final_exec_prefix"
  8221. eval x=\"$x\"
  8222. exec_prefix="$acl_save_exec_prefix"
  8223. prefix="$acl_save_prefix"
  8224. case "$x" in
  8225. -L*)
  8226. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8227. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  8228. found_dir="$dir"
  8229. found_so="$dir/lib$name.$shlibext"
  8230. if test -f "$dir/lib$name.la"; then
  8231. found_la="$dir/lib$name.la"
  8232. fi
  8233. else
  8234. if test -f "$dir/lib$name.$libext"; then
  8235. found_dir="$dir"
  8236. found_a="$dir/lib$name.$libext"
  8237. if test -f "$dir/lib$name.la"; then
  8238. found_la="$dir/lib$name.la"
  8239. fi
  8240. fi
  8241. fi
  8242. ;;
  8243. esac
  8244. if test "X$found_dir" != "X"; then
  8245. break
  8246. fi
  8247. done
  8248. fi
  8249. if test "X$found_dir" != "X"; then
  8250. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  8251. if test "X$found_so" != "X"; then
  8252. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8253. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8254. else
  8255. haveit=
  8256. for x in $ltrpathdirs; do
  8257. if test "X$x" = "X$found_dir"; then
  8258. haveit=yes
  8259. break
  8260. fi
  8261. done
  8262. if test -z "$haveit"; then
  8263. ltrpathdirs="$ltrpathdirs $found_dir"
  8264. fi
  8265. if test "$hardcode_direct" = yes; then
  8266. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8267. else
  8268. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8269. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8270. haveit=
  8271. for x in $rpathdirs; do
  8272. if test "X$x" = "X$found_dir"; then
  8273. haveit=yes
  8274. break
  8275. fi
  8276. done
  8277. if test -z "$haveit"; then
  8278. rpathdirs="$rpathdirs $found_dir"
  8279. fi
  8280. else
  8281. haveit=
  8282. for x in $LDFLAGS $LIBINTL; do
  8283. acl_save_prefix="$prefix"
  8284. prefix="$acl_final_prefix"
  8285. acl_save_exec_prefix="$exec_prefix"
  8286. exec_prefix="$acl_final_exec_prefix"
  8287. eval x=\"$x\"
  8288. exec_prefix="$acl_save_exec_prefix"
  8289. prefix="$acl_save_prefix"
  8290. if test "X$x" = "X-L$found_dir"; then
  8291. haveit=yes
  8292. break
  8293. fi
  8294. done
  8295. if test -z "$haveit"; then
  8296. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  8297. fi
  8298. if test "$hardcode_minus_L" != no; then
  8299. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8300. else
  8301. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  8302. fi
  8303. fi
  8304. fi
  8305. fi
  8306. else
  8307. if test "X$found_a" != "X"; then
  8308. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  8309. else
  8310. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  8311. fi
  8312. fi
  8313. additional_includedir=
  8314. case "$found_dir" in
  8315. */lib | */lib/)
  8316. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8317. additional_includedir="$basedir/include"
  8318. ;;
  8319. esac
  8320. if test "X$additional_includedir" != "X"; then
  8321. if test "X$additional_includedir" != "X/usr/include"; then
  8322. haveit=
  8323. if test "X$additional_includedir" = "X/usr/local/include"; then
  8324. if test -n "$GCC"; then
  8325. case $host_os in
  8326. linux*) haveit=yes;;
  8327. esac
  8328. fi
  8329. fi
  8330. if test -z "$haveit"; then
  8331. for x in $CPPFLAGS $INCINTL; do
  8332. acl_save_prefix="$prefix"
  8333. prefix="$acl_final_prefix"
  8334. acl_save_exec_prefix="$exec_prefix"
  8335. exec_prefix="$acl_final_exec_prefix"
  8336. eval x=\"$x\"
  8337. exec_prefix="$acl_save_exec_prefix"
  8338. prefix="$acl_save_prefix"
  8339. if test "X$x" = "X-I$additional_includedir"; then
  8340. haveit=yes
  8341. break
  8342. fi
  8343. done
  8344. if test -z "$haveit"; then
  8345. if test -d "$additional_includedir"; then
  8346. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  8347. fi
  8348. fi
  8349. fi
  8350. fi
  8351. fi
  8352. if test -n "$found_la"; then
  8353. save_libdir="$libdir"
  8354. case "$found_la" in
  8355. */* | *\\*) . "$found_la" ;;
  8356. *) . "./$found_la" ;;
  8357. esac
  8358. libdir="$save_libdir"
  8359. for dep in $dependency_libs; do
  8360. case "$dep" in
  8361. -L*)
  8362. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8363. if test "X$additional_libdir" != "X/usr/lib"; then
  8364. haveit=
  8365. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8366. if test -n "$GCC"; then
  8367. case $host_os in
  8368. linux*) haveit=yes;;
  8369. esac
  8370. fi
  8371. fi
  8372. if test -z "$haveit"; then
  8373. haveit=
  8374. for x in $LDFLAGS $LIBINTL; do
  8375. acl_save_prefix="$prefix"
  8376. prefix="$acl_final_prefix"
  8377. acl_save_exec_prefix="$exec_prefix"
  8378. exec_prefix="$acl_final_exec_prefix"
  8379. eval x=\"$x\"
  8380. exec_prefix="$acl_save_exec_prefix"
  8381. prefix="$acl_save_prefix"
  8382. if test "X$x" = "X-L$additional_libdir"; then
  8383. haveit=yes
  8384. break
  8385. fi
  8386. done
  8387. if test -z "$haveit"; then
  8388. if test -d "$additional_libdir"; then
  8389. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  8390. fi
  8391. fi
  8392. haveit=
  8393. for x in $LDFLAGS $LTLIBINTL; do
  8394. acl_save_prefix="$prefix"
  8395. prefix="$acl_final_prefix"
  8396. acl_save_exec_prefix="$exec_prefix"
  8397. exec_prefix="$acl_final_exec_prefix"
  8398. eval x=\"$x\"
  8399. exec_prefix="$acl_save_exec_prefix"
  8400. prefix="$acl_save_prefix"
  8401. if test "X$x" = "X-L$additional_libdir"; then
  8402. haveit=yes
  8403. break
  8404. fi
  8405. done
  8406. if test -z "$haveit"; then
  8407. if test -d "$additional_libdir"; then
  8408. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  8409. fi
  8410. fi
  8411. fi
  8412. fi
  8413. ;;
  8414. -R*)
  8415. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8416. if test "$enable_rpath" != no; then
  8417. haveit=
  8418. for x in $rpathdirs; do
  8419. if test "X$x" = "X$dir"; then
  8420. haveit=yes
  8421. break
  8422. fi
  8423. done
  8424. if test -z "$haveit"; then
  8425. rpathdirs="$rpathdirs $dir"
  8426. fi
  8427. haveit=
  8428. for x in $ltrpathdirs; do
  8429. if test "X$x" = "X$dir"; then
  8430. haveit=yes
  8431. break
  8432. fi
  8433. done
  8434. if test -z "$haveit"; then
  8435. ltrpathdirs="$ltrpathdirs $dir"
  8436. fi
  8437. fi
  8438. ;;
  8439. -l*)
  8440. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8441. ;;
  8442. *.la)
  8443. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8444. ;;
  8445. *)
  8446. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  8447. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  8448. ;;
  8449. esac
  8450. done
  8451. fi
  8452. else
  8453. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  8454. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  8455. fi
  8456. fi
  8457. fi
  8458. done
  8459. done
  8460. if test "X$rpathdirs" != "X"; then
  8461. if test -n "$hardcode_libdir_separator"; then
  8462. alldirs=
  8463. for found_dir in $rpathdirs; do
  8464. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8465. done
  8466. acl_save_libdir="$libdir"
  8467. libdir="$alldirs"
  8468. eval flag=\"$hardcode_libdir_flag_spec\"
  8469. libdir="$acl_save_libdir"
  8470. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  8471. else
  8472. for found_dir in $rpathdirs; do
  8473. acl_save_libdir="$libdir"
  8474. libdir="$found_dir"
  8475. eval flag=\"$hardcode_libdir_flag_spec\"
  8476. libdir="$acl_save_libdir"
  8477. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  8478. done
  8479. fi
  8480. fi
  8481. if test "X$ltrpathdirs" != "X"; then
  8482. for found_dir in $ltrpathdirs; do
  8483. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  8484. done
  8485. fi
  8486. echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  8487. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
  8488. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  8489. echo $ECHO_N "(cached) $ECHO_C" >&6
  8490. else
  8491. gt_save_CPPFLAGS="$CPPFLAGS"
  8492. CPPFLAGS="$CPPFLAGS $INCINTL"
  8493. gt_save_LIBS="$LIBS"
  8494. LIBS="$LIBS $LIBINTL"
  8495. cat >conftest.$ac_ext <<_ACEOF
  8496. /* confdefs.h. */
  8497. _ACEOF
  8498. cat confdefs.h >>conftest.$ac_ext
  8499. cat >>conftest.$ac_ext <<_ACEOF
  8500. /* end confdefs.h. */
  8501. #include <libintl.h>
  8502. extern int _nl_msg_cat_cntr;
  8503. extern
  8504. #ifdef __cplusplus
  8505. "C"
  8506. #endif
  8507. const char *_nl_expand_alias ();
  8508. int
  8509. main ()
  8510. {
  8511. bindtextdomain ("", "");
  8512. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  8513. ;
  8514. return 0;
  8515. }
  8516. _ACEOF
  8517. rm -f conftest.$ac_objext conftest$ac_exeext
  8518. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8519. (eval $ac_link) 2>conftest.er1
  8520. ac_status=$?
  8521. grep -v '^ *+' conftest.er1 >conftest.err
  8522. rm -f conftest.er1
  8523. cat conftest.err >&5
  8524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8525. (exit $ac_status); } &&
  8526. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8527. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8528. (eval $ac_try) 2>&5
  8529. ac_status=$?
  8530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8531. (exit $ac_status); }; } &&
  8532. { ac_try='test -s conftest$ac_exeext'
  8533. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8534. (eval $ac_try) 2>&5
  8535. ac_status=$?
  8536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8537. (exit $ac_status); }; }; then
  8538. gt_cv_func_gnugettext1_libintl=yes
  8539. else
  8540. echo "$as_me: failed program was:" >&5
  8541. sed 's/^/| /' conftest.$ac_ext >&5
  8542. gt_cv_func_gnugettext1_libintl=no
  8543. fi
  8544. rm -f conftest.err conftest.$ac_objext \
  8545. conftest$ac_exeext conftest.$ac_ext
  8546. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  8547. LIBS="$LIBS $LIBICONV"
  8548. cat >conftest.$ac_ext <<_ACEOF
  8549. /* confdefs.h. */
  8550. _ACEOF
  8551. cat confdefs.h >>conftest.$ac_ext
  8552. cat >>conftest.$ac_ext <<_ACEOF
  8553. /* end confdefs.h. */
  8554. #include <libintl.h>
  8555. extern int _nl_msg_cat_cntr;
  8556. extern
  8557. #ifdef __cplusplus
  8558. "C"
  8559. #endif
  8560. const char *_nl_expand_alias ();
  8561. int
  8562. main ()
  8563. {
  8564. bindtextdomain ("", "");
  8565. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  8566. ;
  8567. return 0;
  8568. }
  8569. _ACEOF
  8570. rm -f conftest.$ac_objext conftest$ac_exeext
  8571. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8572. (eval $ac_link) 2>conftest.er1
  8573. ac_status=$?
  8574. grep -v '^ *+' conftest.er1 >conftest.err
  8575. rm -f conftest.er1
  8576. cat conftest.err >&5
  8577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8578. (exit $ac_status); } &&
  8579. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8580. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8581. (eval $ac_try) 2>&5
  8582. ac_status=$?
  8583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8584. (exit $ac_status); }; } &&
  8585. { ac_try='test -s conftest$ac_exeext'
  8586. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8587. (eval $ac_try) 2>&5
  8588. ac_status=$?
  8589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8590. (exit $ac_status); }; }; then
  8591. LIBINTL="$LIBINTL $LIBICONV"
  8592. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  8593. gt_cv_func_gnugettext1_libintl=yes
  8594. else
  8595. echo "$as_me: failed program was:" >&5
  8596. sed 's/^/| /' conftest.$ac_ext >&5
  8597. fi
  8598. rm -f conftest.err conftest.$ac_objext \
  8599. conftest$ac_exeext conftest.$ac_ext
  8600. fi
  8601. CPPFLAGS="$gt_save_CPPFLAGS"
  8602. LIBS="$gt_save_LIBS"
  8603. fi
  8604. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  8605. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
  8606. fi
  8607. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  8608. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  8609. && test "$PACKAGE" != gettext-runtime \
  8610. && test "$PACKAGE" != gettext-tools; }; then
  8611. gt_use_preinstalled_gnugettext=yes
  8612. else
  8613. LIBINTL=
  8614. LTLIBINTL=
  8615. INCINTL=
  8616. fi
  8617. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  8618. nls_cv_use_gnu_gettext=yes
  8619. fi
  8620. fi
  8621. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  8622. BUILD_INCLUDED_LIBINTL=yes
  8623. USE_INCLUDED_LIBINTL=yes
  8624. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  8625. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  8626. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  8627. fi
  8628. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  8629. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  8630. CATOBJEXT=.gmo
  8631. fi
  8632. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  8633. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  8634. cat >>confdefs.h <<\_ACEOF
  8635. #define ENABLE_NLS 1
  8636. _ACEOF
  8637. else
  8638. USE_NLS=no
  8639. fi
  8640. fi
  8641. echo "$as_me:$LINENO: checking whether to use NLS" >&5
  8642. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
  8643. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8644. echo "${ECHO_T}$USE_NLS" >&6
  8645. if test "$USE_NLS" = "yes"; then
  8646. echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  8647. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
  8648. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  8649. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  8650. gt_source="external libintl"
  8651. else
  8652. gt_source="libc"
  8653. fi
  8654. else
  8655. gt_source="included intl directory"
  8656. fi
  8657. echo "$as_me:$LINENO: result: $gt_source" >&5
  8658. echo "${ECHO_T}$gt_source" >&6
  8659. fi
  8660. if test "$USE_NLS" = "yes"; then
  8661. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  8662. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  8663. echo "$as_me:$LINENO: checking how to link with libintl" >&5
  8664. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
  8665. echo "$as_me:$LINENO: result: $LIBINTL" >&5
  8666. echo "${ECHO_T}$LIBINTL" >&6
  8667. for element in $INCINTL; do
  8668. haveit=
  8669. for x in $CPPFLAGS; do
  8670. acl_save_prefix="$prefix"
  8671. prefix="$acl_final_prefix"
  8672. acl_save_exec_prefix="$exec_prefix"
  8673. exec_prefix="$acl_final_exec_prefix"
  8674. eval x=\"$x\"
  8675. exec_prefix="$acl_save_exec_prefix"
  8676. prefix="$acl_save_prefix"
  8677. if test "X$x" = "X$element"; then
  8678. haveit=yes
  8679. break
  8680. fi
  8681. done
  8682. if test -z "$haveit"; then
  8683. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8684. fi
  8685. done
  8686. fi
  8687. cat >>confdefs.h <<\_ACEOF
  8688. #define HAVE_GETTEXT 1
  8689. _ACEOF
  8690. cat >>confdefs.h <<\_ACEOF
  8691. #define HAVE_DCGETTEXT 1
  8692. _ACEOF
  8693. fi
  8694. POSUB=po
  8695. fi
  8696. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  8697. BUILD_INCLUDED_LIBINTL=yes
  8698. fi
  8699. nls_cv_header_intl=
  8700. nls_cv_header_libgt=
  8701. DATADIRNAME=share
  8702. INSTOBJEXT=.mo
  8703. GENCAT=gencat
  8704. if test "$USE_INCLUDED_LIBINTL" = yes; then
  8705. INTLOBJS="\$(GETTOBJS)"
  8706. fi
  8707. INTL_LIBTOOL_SUFFIX_PREFIX=
  8708. INTLLIBS="$LIBINTL"
  8709. echo "$as_me:$LINENO: checking for error_at_line" >&5
  8710. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  8711. if test "${ac_cv_lib_error_at_line+set}" = set; then
  8712. echo $ECHO_N "(cached) $ECHO_C" >&6
  8713. else
  8714. cat >conftest.$ac_ext <<_ACEOF
  8715. /* confdefs.h. */
  8716. _ACEOF
  8717. cat confdefs.h >>conftest.$ac_ext
  8718. cat >>conftest.$ac_ext <<_ACEOF
  8719. /* end confdefs.h. */
  8720. $ac_includes_default
  8721. int
  8722. main ()
  8723. {
  8724. error_at_line (0, 0, "", 0, "");
  8725. ;
  8726. return 0;
  8727. }
  8728. _ACEOF
  8729. rm -f conftest.$ac_objext conftest$ac_exeext
  8730. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8731. (eval $ac_link) 2>conftest.er1
  8732. ac_status=$?
  8733. grep -v '^ *+' conftest.er1 >conftest.err
  8734. rm -f conftest.er1
  8735. cat conftest.err >&5
  8736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8737. (exit $ac_status); } &&
  8738. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8739. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8740. (eval $ac_try) 2>&5
  8741. ac_status=$?
  8742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8743. (exit $ac_status); }; } &&
  8744. { ac_try='test -s conftest$ac_exeext'
  8745. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8746. (eval $ac_try) 2>&5
  8747. ac_status=$?
  8748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8749. (exit $ac_status); }; }; then
  8750. ac_cv_lib_error_at_line=yes
  8751. else
  8752. echo "$as_me: failed program was:" >&5
  8753. sed 's/^/| /' conftest.$ac_ext >&5
  8754. ac_cv_lib_error_at_line=no
  8755. fi
  8756. rm -f conftest.err conftest.$ac_objext \
  8757. conftest$ac_exeext conftest.$ac_ext
  8758. fi
  8759. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  8760. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  8761. if test $ac_cv_lib_error_at_line = no; then
  8762. case $LIBOBJS in
  8763. "error.$ac_objext" | \
  8764. *" error.$ac_objext" | \
  8765. "error.$ac_objext "* | \
  8766. *" error.$ac_objext "* ) ;;
  8767. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  8768. esac
  8769. fi
  8770. for ac_header in stdlib.h
  8771. do
  8772. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8773. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8774. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8775. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8776. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8777. echo $ECHO_N "(cached) $ECHO_C" >&6
  8778. fi
  8779. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8780. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8781. else
  8782. # Is the header compilable?
  8783. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8784. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8785. cat >conftest.$ac_ext <<_ACEOF
  8786. /* confdefs.h. */
  8787. _ACEOF
  8788. cat confdefs.h >>conftest.$ac_ext
  8789. cat >>conftest.$ac_ext <<_ACEOF
  8790. /* end confdefs.h. */
  8791. $ac_includes_default
  8792. #include <$ac_header>
  8793. _ACEOF
  8794. rm -f conftest.$ac_objext
  8795. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8796. (eval $ac_compile) 2>conftest.er1
  8797. ac_status=$?
  8798. grep -v '^ *+' conftest.er1 >conftest.err
  8799. rm -f conftest.er1
  8800. cat conftest.err >&5
  8801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8802. (exit $ac_status); } &&
  8803. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8804. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8805. (eval $ac_try) 2>&5
  8806. ac_status=$?
  8807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8808. (exit $ac_status); }; } &&
  8809. { ac_try='test -s conftest.$ac_objext'
  8810. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8811. (eval $ac_try) 2>&5
  8812. ac_status=$?
  8813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8814. (exit $ac_status); }; }; then
  8815. ac_header_compiler=yes
  8816. else
  8817. echo "$as_me: failed program was:" >&5
  8818. sed 's/^/| /' conftest.$ac_ext >&5
  8819. ac_header_compiler=no
  8820. fi
  8821. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8822. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8823. echo "${ECHO_T}$ac_header_compiler" >&6
  8824. # Is the header present?
  8825. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8826. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8827. cat >conftest.$ac_ext <<_ACEOF
  8828. /* confdefs.h. */
  8829. _ACEOF
  8830. cat confdefs.h >>conftest.$ac_ext
  8831. cat >>conftest.$ac_ext <<_ACEOF
  8832. /* end confdefs.h. */
  8833. #include <$ac_header>
  8834. _ACEOF
  8835. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8836. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8837. ac_status=$?
  8838. grep -v '^ *+' conftest.er1 >conftest.err
  8839. rm -f conftest.er1
  8840. cat conftest.err >&5
  8841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8842. (exit $ac_status); } >/dev/null; then
  8843. if test -s conftest.err; then
  8844. ac_cpp_err=$ac_c_preproc_warn_flag
  8845. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8846. else
  8847. ac_cpp_err=
  8848. fi
  8849. else
  8850. ac_cpp_err=yes
  8851. fi
  8852. if test -z "$ac_cpp_err"; then
  8853. ac_header_preproc=yes
  8854. else
  8855. echo "$as_me: failed program was:" >&5
  8856. sed 's/^/| /' conftest.$ac_ext >&5
  8857. ac_header_preproc=no
  8858. fi
  8859. rm -f conftest.err conftest.$ac_ext
  8860. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8861. echo "${ECHO_T}$ac_header_preproc" >&6
  8862. # So? What about this header?
  8863. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8864. yes:no: )
  8865. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8866. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8867. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8868. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8869. ac_header_preproc=yes
  8870. ;;
  8871. no:yes:* )
  8872. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8873. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8874. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8875. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8876. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8877. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8878. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8879. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8880. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8881. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8882. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8883. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8884. (
  8885. cat <<\_ASBOX
  8886. ## ----------------------------------- ##
  8887. ## Report this to tujikawa@rednoah.com ##
  8888. ## ----------------------------------- ##
  8889. _ASBOX
  8890. ) |
  8891. sed "s/^/$as_me: WARNING: /" >&2
  8892. ;;
  8893. esac
  8894. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8895. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8896. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8897. echo $ECHO_N "(cached) $ECHO_C" >&6
  8898. else
  8899. eval "$as_ac_Header=\$ac_header_preproc"
  8900. fi
  8901. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8902. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8903. fi
  8904. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8905. cat >>confdefs.h <<_ACEOF
  8906. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8907. _ACEOF
  8908. fi
  8909. done
  8910. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8911. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8912. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8913. echo $ECHO_N "(cached) $ECHO_C" >&6
  8914. else
  8915. if test "$cross_compiling" = yes; then
  8916. ac_cv_func_malloc_0_nonnull=no
  8917. else
  8918. cat >conftest.$ac_ext <<_ACEOF
  8919. /* confdefs.h. */
  8920. _ACEOF
  8921. cat confdefs.h >>conftest.$ac_ext
  8922. cat >>conftest.$ac_ext <<_ACEOF
  8923. /* end confdefs.h. */
  8924. #if STDC_HEADERS || HAVE_STDLIB_H
  8925. # include <stdlib.h>
  8926. #else
  8927. char *malloc ();
  8928. #endif
  8929. int
  8930. main ()
  8931. {
  8932. exit (malloc (0) ? 0 : 1);
  8933. ;
  8934. return 0;
  8935. }
  8936. _ACEOF
  8937. rm -f conftest$ac_exeext
  8938. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8939. (eval $ac_link) 2>&5
  8940. ac_status=$?
  8941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8942. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8943. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8944. (eval $ac_try) 2>&5
  8945. ac_status=$?
  8946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8947. (exit $ac_status); }; }; then
  8948. ac_cv_func_malloc_0_nonnull=yes
  8949. else
  8950. echo "$as_me: program exited with status $ac_status" >&5
  8951. echo "$as_me: failed program was:" >&5
  8952. sed 's/^/| /' conftest.$ac_ext >&5
  8953. ( exit $ac_status )
  8954. ac_cv_func_malloc_0_nonnull=no
  8955. fi
  8956. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8957. fi
  8958. fi
  8959. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8960. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8961. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8962. cat >>confdefs.h <<\_ACEOF
  8963. #define HAVE_MALLOC 1
  8964. _ACEOF
  8965. else
  8966. cat >>confdefs.h <<\_ACEOF
  8967. #define HAVE_MALLOC 0
  8968. _ACEOF
  8969. case $LIBOBJS in
  8970. "malloc.$ac_objext" | \
  8971. *" malloc.$ac_objext" | \
  8972. "malloc.$ac_objext "* | \
  8973. *" malloc.$ac_objext "* ) ;;
  8974. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8975. esac
  8976. cat >>confdefs.h <<\_ACEOF
  8977. #define malloc rpl_malloc
  8978. _ACEOF
  8979. fi
  8980. echo "$as_me:$LINENO: checking for working memcmp" >&5
  8981. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  8982. if test "${ac_cv_func_memcmp_working+set}" = set; then
  8983. echo $ECHO_N "(cached) $ECHO_C" >&6
  8984. else
  8985. if test "$cross_compiling" = yes; then
  8986. ac_cv_func_memcmp_working=no
  8987. else
  8988. cat >conftest.$ac_ext <<_ACEOF
  8989. /* confdefs.h. */
  8990. _ACEOF
  8991. cat confdefs.h >>conftest.$ac_ext
  8992. cat >>conftest.$ac_ext <<_ACEOF
  8993. /* end confdefs.h. */
  8994. $ac_includes_default
  8995. int
  8996. main ()
  8997. {
  8998. /* Some versions of memcmp are not 8-bit clean. */
  8999. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  9000. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  9001. exit (1);
  9002. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  9003. or more and with at least one buffer not starting on a 4-byte boundary.
  9004. William Lewis provided this test program. */
  9005. {
  9006. char foo[21];
  9007. char bar[21];
  9008. int i;
  9009. for (i = 0; i < 4; i++)
  9010. {
  9011. char *a = foo + i;
  9012. char *b = bar + i;
  9013. strcpy (a, "--------01111111");
  9014. strcpy (b, "--------10000000");
  9015. if (memcmp (a, b, 16) >= 0)
  9016. exit (1);
  9017. }
  9018. exit (0);
  9019. }
  9020. ;
  9021. return 0;
  9022. }
  9023. _ACEOF
  9024. rm -f conftest$ac_exeext
  9025. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9026. (eval $ac_link) 2>&5
  9027. ac_status=$?
  9028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9029. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9030. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9031. (eval $ac_try) 2>&5
  9032. ac_status=$?
  9033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9034. (exit $ac_status); }; }; then
  9035. ac_cv_func_memcmp_working=yes
  9036. else
  9037. echo "$as_me: program exited with status $ac_status" >&5
  9038. echo "$as_me: failed program was:" >&5
  9039. sed 's/^/| /' conftest.$ac_ext >&5
  9040. ( exit $ac_status )
  9041. ac_cv_func_memcmp_working=no
  9042. fi
  9043. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9044. fi
  9045. fi
  9046. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  9047. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  9048. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  9049. "memcmp.$ac_objext" | \
  9050. *" memcmp.$ac_objext" | \
  9051. "memcmp.$ac_objext "* | \
  9052. *" memcmp.$ac_objext "* ) ;;
  9053. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  9054. esac
  9055. for ac_header in stdlib.h unistd.h
  9056. do
  9057. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9058. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9059. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9060. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9061. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9062. echo $ECHO_N "(cached) $ECHO_C" >&6
  9063. fi
  9064. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9065. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9066. else
  9067. # Is the header compilable?
  9068. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9069. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9070. cat >conftest.$ac_ext <<_ACEOF
  9071. /* confdefs.h. */
  9072. _ACEOF
  9073. cat confdefs.h >>conftest.$ac_ext
  9074. cat >>conftest.$ac_ext <<_ACEOF
  9075. /* end confdefs.h. */
  9076. $ac_includes_default
  9077. #include <$ac_header>
  9078. _ACEOF
  9079. rm -f conftest.$ac_objext
  9080. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9081. (eval $ac_compile) 2>conftest.er1
  9082. ac_status=$?
  9083. grep -v '^ *+' conftest.er1 >conftest.err
  9084. rm -f conftest.er1
  9085. cat conftest.err >&5
  9086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9087. (exit $ac_status); } &&
  9088. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9089. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9090. (eval $ac_try) 2>&5
  9091. ac_status=$?
  9092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9093. (exit $ac_status); }; } &&
  9094. { ac_try='test -s conftest.$ac_objext'
  9095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9096. (eval $ac_try) 2>&5
  9097. ac_status=$?
  9098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9099. (exit $ac_status); }; }; then
  9100. ac_header_compiler=yes
  9101. else
  9102. echo "$as_me: failed program was:" >&5
  9103. sed 's/^/| /' conftest.$ac_ext >&5
  9104. ac_header_compiler=no
  9105. fi
  9106. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9107. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9108. echo "${ECHO_T}$ac_header_compiler" >&6
  9109. # Is the header present?
  9110. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9111. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9112. cat >conftest.$ac_ext <<_ACEOF
  9113. /* confdefs.h. */
  9114. _ACEOF
  9115. cat confdefs.h >>conftest.$ac_ext
  9116. cat >>conftest.$ac_ext <<_ACEOF
  9117. /* end confdefs.h. */
  9118. #include <$ac_header>
  9119. _ACEOF
  9120. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9121. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9122. ac_status=$?
  9123. grep -v '^ *+' conftest.er1 >conftest.err
  9124. rm -f conftest.er1
  9125. cat conftest.err >&5
  9126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9127. (exit $ac_status); } >/dev/null; then
  9128. if test -s conftest.err; then
  9129. ac_cpp_err=$ac_c_preproc_warn_flag
  9130. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9131. else
  9132. ac_cpp_err=
  9133. fi
  9134. else
  9135. ac_cpp_err=yes
  9136. fi
  9137. if test -z "$ac_cpp_err"; then
  9138. ac_header_preproc=yes
  9139. else
  9140. echo "$as_me: failed program was:" >&5
  9141. sed 's/^/| /' conftest.$ac_ext >&5
  9142. ac_header_preproc=no
  9143. fi
  9144. rm -f conftest.err conftest.$ac_ext
  9145. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9146. echo "${ECHO_T}$ac_header_preproc" >&6
  9147. # So? What about this header?
  9148. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9149. yes:no: )
  9150. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9151. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9152. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9153. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9154. ac_header_preproc=yes
  9155. ;;
  9156. no:yes:* )
  9157. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9158. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9159. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9160. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9161. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9162. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9163. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9164. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9165. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9166. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9167. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9168. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9169. (
  9170. cat <<\_ASBOX
  9171. ## ----------------------------------- ##
  9172. ## Report this to tujikawa@rednoah.com ##
  9173. ## ----------------------------------- ##
  9174. _ASBOX
  9175. ) |
  9176. sed "s/^/$as_me: WARNING: /" >&2
  9177. ;;
  9178. esac
  9179. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9180. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9181. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9182. echo $ECHO_N "(cached) $ECHO_C" >&6
  9183. else
  9184. eval "$as_ac_Header=\$ac_header_preproc"
  9185. fi
  9186. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9187. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9188. fi
  9189. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9190. cat >>confdefs.h <<_ACEOF
  9191. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9192. _ACEOF
  9193. fi
  9194. done
  9195. for ac_func in getpagesize
  9196. do
  9197. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9198. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9199. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9200. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9201. echo $ECHO_N "(cached) $ECHO_C" >&6
  9202. else
  9203. cat >conftest.$ac_ext <<_ACEOF
  9204. /* confdefs.h. */
  9205. _ACEOF
  9206. cat confdefs.h >>conftest.$ac_ext
  9207. cat >>conftest.$ac_ext <<_ACEOF
  9208. /* end confdefs.h. */
  9209. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9210. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9211. #define $ac_func innocuous_$ac_func
  9212. /* System header to define __stub macros and hopefully few prototypes,
  9213. which can conflict with char $ac_func (); below.
  9214. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9215. <limits.h> exists even on freestanding compilers. */
  9216. #ifdef __STDC__
  9217. # include <limits.h>
  9218. #else
  9219. # include <assert.h>
  9220. #endif
  9221. #undef $ac_func
  9222. /* Override any gcc2 internal prototype to avoid an error. */
  9223. #ifdef __cplusplus
  9224. extern "C"
  9225. {
  9226. #endif
  9227. /* We use char because int might match the return type of a gcc2
  9228. builtin and then its argument prototype would still apply. */
  9229. char $ac_func ();
  9230. /* The GNU C library defines this for functions which it implements
  9231. to always fail with ENOSYS. Some functions are actually named
  9232. something starting with __ and the normal name is an alias. */
  9233. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9234. choke me
  9235. #else
  9236. char (*f) () = $ac_func;
  9237. #endif
  9238. #ifdef __cplusplus
  9239. }
  9240. #endif
  9241. int
  9242. main ()
  9243. {
  9244. return f != $ac_func;
  9245. ;
  9246. return 0;
  9247. }
  9248. _ACEOF
  9249. rm -f conftest.$ac_objext conftest$ac_exeext
  9250. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9251. (eval $ac_link) 2>conftest.er1
  9252. ac_status=$?
  9253. grep -v '^ *+' conftest.er1 >conftest.err
  9254. rm -f conftest.er1
  9255. cat conftest.err >&5
  9256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9257. (exit $ac_status); } &&
  9258. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9259. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9260. (eval $ac_try) 2>&5
  9261. ac_status=$?
  9262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9263. (exit $ac_status); }; } &&
  9264. { ac_try='test -s conftest$ac_exeext'
  9265. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9266. (eval $ac_try) 2>&5
  9267. ac_status=$?
  9268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9269. (exit $ac_status); }; }; then
  9270. eval "$as_ac_var=yes"
  9271. else
  9272. echo "$as_me: failed program was:" >&5
  9273. sed 's/^/| /' conftest.$ac_ext >&5
  9274. eval "$as_ac_var=no"
  9275. fi
  9276. rm -f conftest.err conftest.$ac_objext \
  9277. conftest$ac_exeext conftest.$ac_ext
  9278. fi
  9279. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9280. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9281. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9282. cat >>confdefs.h <<_ACEOF
  9283. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9284. _ACEOF
  9285. fi
  9286. done
  9287. echo "$as_me:$LINENO: checking for working mmap" >&5
  9288. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9289. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9290. echo $ECHO_N "(cached) $ECHO_C" >&6
  9291. else
  9292. if test "$cross_compiling" = yes; then
  9293. ac_cv_func_mmap_fixed_mapped=no
  9294. else
  9295. cat >conftest.$ac_ext <<_ACEOF
  9296. /* confdefs.h. */
  9297. _ACEOF
  9298. cat confdefs.h >>conftest.$ac_ext
  9299. cat >>conftest.$ac_ext <<_ACEOF
  9300. /* end confdefs.h. */
  9301. $ac_includes_default
  9302. /* malloc might have been renamed as rpl_malloc. */
  9303. #undef malloc
  9304. /* Thanks to Mike Haertel and Jim Avera for this test.
  9305. Here is a matrix of mmap possibilities:
  9306. mmap private not fixed
  9307. mmap private fixed at somewhere currently unmapped
  9308. mmap private fixed at somewhere already mapped
  9309. mmap shared not fixed
  9310. mmap shared fixed at somewhere currently unmapped
  9311. mmap shared fixed at somewhere already mapped
  9312. For private mappings, we should verify that changes cannot be read()
  9313. back from the file, nor mmap's back from the file at a different
  9314. address. (There have been systems where private was not correctly
  9315. implemented like the infamous i386 svr4.0, and systems where the
  9316. VM page cache was not coherent with the file system buffer cache
  9317. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9318. For shared mappings, we should conversely verify that changes get
  9319. propagated back to all the places they're supposed to be.
  9320. Grep wants private fixed already mapped.
  9321. The main things grep needs to know about mmap are:
  9322. * does it exist and is it safe to write into the mmap'd area
  9323. * how to use it (BSD variants) */
  9324. #include <fcntl.h>
  9325. #include <sys/mman.h>
  9326. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9327. char *malloc ();
  9328. #endif
  9329. /* This mess was copied from the GNU getpagesize.h. */
  9330. #if !HAVE_GETPAGESIZE
  9331. /* Assume that all systems that can run configure have sys/param.h. */
  9332. # if !HAVE_SYS_PARAM_H
  9333. # define HAVE_SYS_PARAM_H 1
  9334. # endif
  9335. # ifdef _SC_PAGESIZE
  9336. # define getpagesize() sysconf(_SC_PAGESIZE)
  9337. # else /* no _SC_PAGESIZE */
  9338. # if HAVE_SYS_PARAM_H
  9339. # include <sys/param.h>
  9340. # ifdef EXEC_PAGESIZE
  9341. # define getpagesize() EXEC_PAGESIZE
  9342. # else /* no EXEC_PAGESIZE */
  9343. # ifdef NBPG
  9344. # define getpagesize() NBPG * CLSIZE
  9345. # ifndef CLSIZE
  9346. # define CLSIZE 1
  9347. # endif /* no CLSIZE */
  9348. # else /* no NBPG */
  9349. # ifdef NBPC
  9350. # define getpagesize() NBPC
  9351. # else /* no NBPC */
  9352. # ifdef PAGESIZE
  9353. # define getpagesize() PAGESIZE
  9354. # endif /* PAGESIZE */
  9355. # endif /* no NBPC */
  9356. # endif /* no NBPG */
  9357. # endif /* no EXEC_PAGESIZE */
  9358. # else /* no HAVE_SYS_PARAM_H */
  9359. # define getpagesize() 8192 /* punt totally */
  9360. # endif /* no HAVE_SYS_PARAM_H */
  9361. # endif /* no _SC_PAGESIZE */
  9362. #endif /* no HAVE_GETPAGESIZE */
  9363. int
  9364. main ()
  9365. {
  9366. char *data, *data2, *data3;
  9367. int i, pagesize;
  9368. int fd;
  9369. pagesize = getpagesize ();
  9370. /* First, make a file with some known garbage in it. */
  9371. data = (char *) malloc (pagesize);
  9372. if (!data)
  9373. exit (1);
  9374. for (i = 0; i < pagesize; ++i)
  9375. *(data + i) = rand ();
  9376. umask (0);
  9377. fd = creat ("conftest.mmap", 0600);
  9378. if (fd < 0)
  9379. exit (1);
  9380. if (write (fd, data, pagesize) != pagesize)
  9381. exit (1);
  9382. close (fd);
  9383. /* Next, try to mmap the file at a fixed address which already has
  9384. something else allocated at it. If we can, also make sure that
  9385. we see the same garbage. */
  9386. fd = open ("conftest.mmap", O_RDWR);
  9387. if (fd < 0)
  9388. exit (1);
  9389. data2 = (char *) malloc (2 * pagesize);
  9390. if (!data2)
  9391. exit (1);
  9392. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9393. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9394. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9395. exit (1);
  9396. for (i = 0; i < pagesize; ++i)
  9397. if (*(data + i) != *(data2 + i))
  9398. exit (1);
  9399. /* Finally, make sure that changes to the mapped area do not
  9400. percolate back to the file as seen by read(). (This is a bug on
  9401. some variants of i386 svr4.0.) */
  9402. for (i = 0; i < pagesize; ++i)
  9403. *(data2 + i) = *(data2 + i) + 1;
  9404. data3 = (char *) malloc (pagesize);
  9405. if (!data3)
  9406. exit (1);
  9407. if (read (fd, data3, pagesize) != pagesize)
  9408. exit (1);
  9409. for (i = 0; i < pagesize; ++i)
  9410. if (*(data + i) != *(data3 + i))
  9411. exit (1);
  9412. close (fd);
  9413. exit (0);
  9414. }
  9415. _ACEOF
  9416. rm -f conftest$ac_exeext
  9417. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9418. (eval $ac_link) 2>&5
  9419. ac_status=$?
  9420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9421. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9422. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9423. (eval $ac_try) 2>&5
  9424. ac_status=$?
  9425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9426. (exit $ac_status); }; }; then
  9427. ac_cv_func_mmap_fixed_mapped=yes
  9428. else
  9429. echo "$as_me: program exited with status $ac_status" >&5
  9430. echo "$as_me: failed program was:" >&5
  9431. sed 's/^/| /' conftest.$ac_ext >&5
  9432. ( exit $ac_status )
  9433. ac_cv_func_mmap_fixed_mapped=no
  9434. fi
  9435. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9436. fi
  9437. fi
  9438. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9439. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9440. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9441. cat >>confdefs.h <<\_ACEOF
  9442. #define HAVE_MMAP 1
  9443. _ACEOF
  9444. fi
  9445. rm -f conftest.mmap
  9446. for ac_header in stdlib.h
  9447. do
  9448. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9449. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9450. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9451. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9452. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9453. echo $ECHO_N "(cached) $ECHO_C" >&6
  9454. fi
  9455. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9456. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9457. else
  9458. # Is the header compilable?
  9459. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9460. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9461. cat >conftest.$ac_ext <<_ACEOF
  9462. /* confdefs.h. */
  9463. _ACEOF
  9464. cat confdefs.h >>conftest.$ac_ext
  9465. cat >>conftest.$ac_ext <<_ACEOF
  9466. /* end confdefs.h. */
  9467. $ac_includes_default
  9468. #include <$ac_header>
  9469. _ACEOF
  9470. rm -f conftest.$ac_objext
  9471. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9472. (eval $ac_compile) 2>conftest.er1
  9473. ac_status=$?
  9474. grep -v '^ *+' conftest.er1 >conftest.err
  9475. rm -f conftest.er1
  9476. cat conftest.err >&5
  9477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9478. (exit $ac_status); } &&
  9479. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9480. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9481. (eval $ac_try) 2>&5
  9482. ac_status=$?
  9483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9484. (exit $ac_status); }; } &&
  9485. { ac_try='test -s conftest.$ac_objext'
  9486. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9487. (eval $ac_try) 2>&5
  9488. ac_status=$?
  9489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9490. (exit $ac_status); }; }; then
  9491. ac_header_compiler=yes
  9492. else
  9493. echo "$as_me: failed program was:" >&5
  9494. sed 's/^/| /' conftest.$ac_ext >&5
  9495. ac_header_compiler=no
  9496. fi
  9497. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9498. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9499. echo "${ECHO_T}$ac_header_compiler" >&6
  9500. # Is the header present?
  9501. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9502. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9503. cat >conftest.$ac_ext <<_ACEOF
  9504. /* confdefs.h. */
  9505. _ACEOF
  9506. cat confdefs.h >>conftest.$ac_ext
  9507. cat >>conftest.$ac_ext <<_ACEOF
  9508. /* end confdefs.h. */
  9509. #include <$ac_header>
  9510. _ACEOF
  9511. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9512. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9513. ac_status=$?
  9514. grep -v '^ *+' conftest.er1 >conftest.err
  9515. rm -f conftest.er1
  9516. cat conftest.err >&5
  9517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9518. (exit $ac_status); } >/dev/null; then
  9519. if test -s conftest.err; then
  9520. ac_cpp_err=$ac_c_preproc_warn_flag
  9521. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9522. else
  9523. ac_cpp_err=
  9524. fi
  9525. else
  9526. ac_cpp_err=yes
  9527. fi
  9528. if test -z "$ac_cpp_err"; then
  9529. ac_header_preproc=yes
  9530. else
  9531. echo "$as_me: failed program was:" >&5
  9532. sed 's/^/| /' conftest.$ac_ext >&5
  9533. ac_header_preproc=no
  9534. fi
  9535. rm -f conftest.err conftest.$ac_ext
  9536. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9537. echo "${ECHO_T}$ac_header_preproc" >&6
  9538. # So? What about this header?
  9539. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9540. yes:no: )
  9541. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9542. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9543. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9544. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9545. ac_header_preproc=yes
  9546. ;;
  9547. no:yes:* )
  9548. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9549. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9550. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9551. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9552. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9553. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9554. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9555. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9556. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9557. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9558. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9559. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9560. (
  9561. cat <<\_ASBOX
  9562. ## ----------------------------------- ##
  9563. ## Report this to tujikawa@rednoah.com ##
  9564. ## ----------------------------------- ##
  9565. _ASBOX
  9566. ) |
  9567. sed "s/^/$as_me: WARNING: /" >&2
  9568. ;;
  9569. esac
  9570. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9571. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9572. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9573. echo $ECHO_N "(cached) $ECHO_C" >&6
  9574. else
  9575. eval "$as_ac_Header=\$ac_header_preproc"
  9576. fi
  9577. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9578. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9579. fi
  9580. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9581. cat >>confdefs.h <<_ACEOF
  9582. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9583. _ACEOF
  9584. fi
  9585. done
  9586. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9587. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9588. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9589. echo $ECHO_N "(cached) $ECHO_C" >&6
  9590. else
  9591. if test "$cross_compiling" = yes; then
  9592. ac_cv_func_realloc_0_nonnull=no
  9593. else
  9594. cat >conftest.$ac_ext <<_ACEOF
  9595. /* confdefs.h. */
  9596. _ACEOF
  9597. cat confdefs.h >>conftest.$ac_ext
  9598. cat >>conftest.$ac_ext <<_ACEOF
  9599. /* end confdefs.h. */
  9600. #if STDC_HEADERS || HAVE_STDLIB_H
  9601. # include <stdlib.h>
  9602. #else
  9603. char *realloc ();
  9604. #endif
  9605. int
  9606. main ()
  9607. {
  9608. exit (realloc (0, 0) ? 0 : 1);
  9609. ;
  9610. return 0;
  9611. }
  9612. _ACEOF
  9613. rm -f conftest$ac_exeext
  9614. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9615. (eval $ac_link) 2>&5
  9616. ac_status=$?
  9617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9618. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9619. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9620. (eval $ac_try) 2>&5
  9621. ac_status=$?
  9622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9623. (exit $ac_status); }; }; then
  9624. ac_cv_func_realloc_0_nonnull=yes
  9625. else
  9626. echo "$as_me: program exited with status $ac_status" >&5
  9627. echo "$as_me: failed program was:" >&5
  9628. sed 's/^/| /' conftest.$ac_ext >&5
  9629. ( exit $ac_status )
  9630. ac_cv_func_realloc_0_nonnull=no
  9631. fi
  9632. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9633. fi
  9634. fi
  9635. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9636. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9637. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9638. cat >>confdefs.h <<\_ACEOF
  9639. #define HAVE_REALLOC 1
  9640. _ACEOF
  9641. else
  9642. cat >>confdefs.h <<\_ACEOF
  9643. #define HAVE_REALLOC 0
  9644. _ACEOF
  9645. case $LIBOBJS in
  9646. "realloc.$ac_objext" | \
  9647. *" realloc.$ac_objext" | \
  9648. "realloc.$ac_objext "* | \
  9649. *" realloc.$ac_objext "* ) ;;
  9650. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9651. esac
  9652. cat >>confdefs.h <<\_ACEOF
  9653. #define realloc rpl_realloc
  9654. _ACEOF
  9655. fi
  9656. for ac_header in sys/select.h sys/socket.h
  9657. do
  9658. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9659. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9660. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9661. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9662. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9663. echo $ECHO_N "(cached) $ECHO_C" >&6
  9664. fi
  9665. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9666. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9667. else
  9668. # Is the header compilable?
  9669. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9670. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9671. cat >conftest.$ac_ext <<_ACEOF
  9672. /* confdefs.h. */
  9673. _ACEOF
  9674. cat confdefs.h >>conftest.$ac_ext
  9675. cat >>conftest.$ac_ext <<_ACEOF
  9676. /* end confdefs.h. */
  9677. $ac_includes_default
  9678. #include <$ac_header>
  9679. _ACEOF
  9680. rm -f conftest.$ac_objext
  9681. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9682. (eval $ac_compile) 2>conftest.er1
  9683. ac_status=$?
  9684. grep -v '^ *+' conftest.er1 >conftest.err
  9685. rm -f conftest.er1
  9686. cat conftest.err >&5
  9687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9688. (exit $ac_status); } &&
  9689. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9690. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9691. (eval $ac_try) 2>&5
  9692. ac_status=$?
  9693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9694. (exit $ac_status); }; } &&
  9695. { ac_try='test -s conftest.$ac_objext'
  9696. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9697. (eval $ac_try) 2>&5
  9698. ac_status=$?
  9699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9700. (exit $ac_status); }; }; then
  9701. ac_header_compiler=yes
  9702. else
  9703. echo "$as_me: failed program was:" >&5
  9704. sed 's/^/| /' conftest.$ac_ext >&5
  9705. ac_header_compiler=no
  9706. fi
  9707. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9708. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9709. echo "${ECHO_T}$ac_header_compiler" >&6
  9710. # Is the header present?
  9711. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9712. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9713. cat >conftest.$ac_ext <<_ACEOF
  9714. /* confdefs.h. */
  9715. _ACEOF
  9716. cat confdefs.h >>conftest.$ac_ext
  9717. cat >>conftest.$ac_ext <<_ACEOF
  9718. /* end confdefs.h. */
  9719. #include <$ac_header>
  9720. _ACEOF
  9721. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9722. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9723. ac_status=$?
  9724. grep -v '^ *+' conftest.er1 >conftest.err
  9725. rm -f conftest.er1
  9726. cat conftest.err >&5
  9727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9728. (exit $ac_status); } >/dev/null; then
  9729. if test -s conftest.err; then
  9730. ac_cpp_err=$ac_c_preproc_warn_flag
  9731. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9732. else
  9733. ac_cpp_err=
  9734. fi
  9735. else
  9736. ac_cpp_err=yes
  9737. fi
  9738. if test -z "$ac_cpp_err"; then
  9739. ac_header_preproc=yes
  9740. else
  9741. echo "$as_me: failed program was:" >&5
  9742. sed 's/^/| /' conftest.$ac_ext >&5
  9743. ac_header_preproc=no
  9744. fi
  9745. rm -f conftest.err conftest.$ac_ext
  9746. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9747. echo "${ECHO_T}$ac_header_preproc" >&6
  9748. # So? What about this header?
  9749. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9750. yes:no: )
  9751. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9752. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9753. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9754. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9755. ac_header_preproc=yes
  9756. ;;
  9757. no:yes:* )
  9758. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9759. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9760. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9761. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9762. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9763. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9764. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9765. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9766. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9767. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9768. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9769. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9770. (
  9771. cat <<\_ASBOX
  9772. ## ----------------------------------- ##
  9773. ## Report this to tujikawa@rednoah.com ##
  9774. ## ----------------------------------- ##
  9775. _ASBOX
  9776. ) |
  9777. sed "s/^/$as_me: WARNING: /" >&2
  9778. ;;
  9779. esac
  9780. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9781. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9782. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9783. echo $ECHO_N "(cached) $ECHO_C" >&6
  9784. else
  9785. eval "$as_ac_Header=\$ac_header_preproc"
  9786. fi
  9787. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9788. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9789. fi
  9790. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9791. cat >>confdefs.h <<_ACEOF
  9792. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9793. _ACEOF
  9794. fi
  9795. done
  9796. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  9797. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  9798. if test "${ac_cv_func_select_args+set}" = set; then
  9799. echo $ECHO_N "(cached) $ECHO_C" >&6
  9800. else
  9801. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  9802. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  9803. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  9804. cat >conftest.$ac_ext <<_ACEOF
  9805. /* confdefs.h. */
  9806. _ACEOF
  9807. cat confdefs.h >>conftest.$ac_ext
  9808. cat >>conftest.$ac_ext <<_ACEOF
  9809. /* end confdefs.h. */
  9810. $ac_includes_default
  9811. #if HAVE_SYS_SELECT_H
  9812. # include <sys/select.h>
  9813. #endif
  9814. #if HAVE_SYS_SOCKET_H
  9815. # include <sys/socket.h>
  9816. #endif
  9817. int
  9818. main ()
  9819. {
  9820. extern int select ($ac_arg1,
  9821. $ac_arg234, $ac_arg234, $ac_arg234,
  9822. $ac_arg5);
  9823. ;
  9824. return 0;
  9825. }
  9826. _ACEOF
  9827. rm -f conftest.$ac_objext
  9828. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9829. (eval $ac_compile) 2>conftest.er1
  9830. ac_status=$?
  9831. grep -v '^ *+' conftest.er1 >conftest.err
  9832. rm -f conftest.er1
  9833. cat conftest.err >&5
  9834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9835. (exit $ac_status); } &&
  9836. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9837. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9838. (eval $ac_try) 2>&5
  9839. ac_status=$?
  9840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9841. (exit $ac_status); }; } &&
  9842. { ac_try='test -s conftest.$ac_objext'
  9843. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9844. (eval $ac_try) 2>&5
  9845. ac_status=$?
  9846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9847. (exit $ac_status); }; }; then
  9848. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  9849. else
  9850. echo "$as_me: failed program was:" >&5
  9851. sed 's/^/| /' conftest.$ac_ext >&5
  9852. fi
  9853. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9854. done
  9855. done
  9856. done
  9857. # Provide a safe default value.
  9858. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  9859. fi
  9860. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  9861. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  9862. ac_save_IFS=$IFS; IFS=','
  9863. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  9864. IFS=$ac_save_IFS
  9865. shift
  9866. cat >>confdefs.h <<_ACEOF
  9867. #define SELECT_TYPE_ARG1 $1
  9868. _ACEOF
  9869. cat >>confdefs.h <<_ACEOF
  9870. #define SELECT_TYPE_ARG234 ($2)
  9871. _ACEOF
  9872. cat >>confdefs.h <<_ACEOF
  9873. #define SELECT_TYPE_ARG5 ($3)
  9874. _ACEOF
  9875. rm -f conftest*
  9876. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9877. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  9878. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9879. echo $ECHO_N "(cached) $ECHO_C" >&6
  9880. else
  9881. rm -f conftest.sym conftest.file
  9882. echo >conftest.file
  9883. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9884. if test "$cross_compiling" = yes; then
  9885. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9886. else
  9887. cat >conftest.$ac_ext <<_ACEOF
  9888. /* confdefs.h. */
  9889. _ACEOF
  9890. cat confdefs.h >>conftest.$ac_ext
  9891. cat >>conftest.$ac_ext <<_ACEOF
  9892. /* end confdefs.h. */
  9893. $ac_includes_default
  9894. int
  9895. main ()
  9896. {
  9897. struct stat sbuf;
  9898. /* Linux will dereference the symlink and fail.
  9899. That is better in the sense that it means we will not
  9900. have to compile and use the lstat wrapper. */
  9901. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  9902. ;
  9903. return 0;
  9904. }
  9905. _ACEOF
  9906. rm -f conftest$ac_exeext
  9907. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9908. (eval $ac_link) 2>&5
  9909. ac_status=$?
  9910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9911. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9912. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9913. (eval $ac_try) 2>&5
  9914. ac_status=$?
  9915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9916. (exit $ac_status); }; }; then
  9917. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9918. else
  9919. echo "$as_me: program exited with status $ac_status" >&5
  9920. echo "$as_me: failed program was:" >&5
  9921. sed 's/^/| /' conftest.$ac_ext >&5
  9922. ( exit $ac_status )
  9923. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9924. fi
  9925. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9926. fi
  9927. else
  9928. # If the `ln -s' command failed, then we probably don't even
  9929. # have an lstat function.
  9930. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9931. fi
  9932. rm -f conftest.sym conftest.file
  9933. fi
  9934. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9935. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  9936. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9937. cat >>confdefs.h <<_ACEOF
  9938. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9939. _ACEOF
  9940. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9941. case $LIBOBJS in
  9942. "lstat.$ac_objext" | \
  9943. *" lstat.$ac_objext" | \
  9944. "lstat.$ac_objext "* | \
  9945. *" lstat.$ac_objext "* ) ;;
  9946. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  9947. esac
  9948. fi
  9949. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9950. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9951. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9952. echo $ECHO_N "(cached) $ECHO_C" >&6
  9953. else
  9954. if test "$cross_compiling" = yes; then
  9955. ac_cv_func_stat_empty_string_bug=yes
  9956. else
  9957. cat >conftest.$ac_ext <<_ACEOF
  9958. /* confdefs.h. */
  9959. _ACEOF
  9960. cat confdefs.h >>conftest.$ac_ext
  9961. cat >>conftest.$ac_ext <<_ACEOF
  9962. /* end confdefs.h. */
  9963. $ac_includes_default
  9964. int
  9965. main ()
  9966. {
  9967. struct stat sbuf;
  9968. exit (stat ("", &sbuf) ? 1 : 0);
  9969. ;
  9970. return 0;
  9971. }
  9972. _ACEOF
  9973. rm -f conftest$ac_exeext
  9974. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9975. (eval $ac_link) 2>&5
  9976. ac_status=$?
  9977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9978. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9979. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9980. (eval $ac_try) 2>&5
  9981. ac_status=$?
  9982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9983. (exit $ac_status); }; }; then
  9984. ac_cv_func_stat_empty_string_bug=yes
  9985. else
  9986. echo "$as_me: program exited with status $ac_status" >&5
  9987. echo "$as_me: failed program was:" >&5
  9988. sed 's/^/| /' conftest.$ac_ext >&5
  9989. ( exit $ac_status )
  9990. ac_cv_func_stat_empty_string_bug=no
  9991. fi
  9992. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9993. fi
  9994. fi
  9995. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9996. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9997. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9998. case $LIBOBJS in
  9999. "stat.$ac_objext" | \
  10000. *" stat.$ac_objext" | \
  10001. "stat.$ac_objext "* | \
  10002. *" stat.$ac_objext "* ) ;;
  10003. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  10004. esac
  10005. cat >>confdefs.h <<_ACEOF
  10006. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10007. _ACEOF
  10008. fi
  10009. for ac_func in vprintf
  10010. do
  10011. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10012. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10013. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10014. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10015. echo $ECHO_N "(cached) $ECHO_C" >&6
  10016. else
  10017. cat >conftest.$ac_ext <<_ACEOF
  10018. /* confdefs.h. */
  10019. _ACEOF
  10020. cat confdefs.h >>conftest.$ac_ext
  10021. cat >>conftest.$ac_ext <<_ACEOF
  10022. /* end confdefs.h. */
  10023. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10024. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10025. #define $ac_func innocuous_$ac_func
  10026. /* System header to define __stub macros and hopefully few prototypes,
  10027. which can conflict with char $ac_func (); below.
  10028. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10029. <limits.h> exists even on freestanding compilers. */
  10030. #ifdef __STDC__
  10031. # include <limits.h>
  10032. #else
  10033. # include <assert.h>
  10034. #endif
  10035. #undef $ac_func
  10036. /* Override any gcc2 internal prototype to avoid an error. */
  10037. #ifdef __cplusplus
  10038. extern "C"
  10039. {
  10040. #endif
  10041. /* We use char because int might match the return type of a gcc2
  10042. builtin and then its argument prototype would still apply. */
  10043. char $ac_func ();
  10044. /* The GNU C library defines this for functions which it implements
  10045. to always fail with ENOSYS. Some functions are actually named
  10046. something starting with __ and the normal name is an alias. */
  10047. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10048. choke me
  10049. #else
  10050. char (*f) () = $ac_func;
  10051. #endif
  10052. #ifdef __cplusplus
  10053. }
  10054. #endif
  10055. int
  10056. main ()
  10057. {
  10058. return f != $ac_func;
  10059. ;
  10060. return 0;
  10061. }
  10062. _ACEOF
  10063. rm -f conftest.$ac_objext conftest$ac_exeext
  10064. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10065. (eval $ac_link) 2>conftest.er1
  10066. ac_status=$?
  10067. grep -v '^ *+' conftest.er1 >conftest.err
  10068. rm -f conftest.er1
  10069. cat conftest.err >&5
  10070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10071. (exit $ac_status); } &&
  10072. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10073. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10074. (eval $ac_try) 2>&5
  10075. ac_status=$?
  10076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10077. (exit $ac_status); }; } &&
  10078. { ac_try='test -s conftest$ac_exeext'
  10079. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10080. (eval $ac_try) 2>&5
  10081. ac_status=$?
  10082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10083. (exit $ac_status); }; }; then
  10084. eval "$as_ac_var=yes"
  10085. else
  10086. echo "$as_me: failed program was:" >&5
  10087. sed 's/^/| /' conftest.$ac_ext >&5
  10088. eval "$as_ac_var=no"
  10089. fi
  10090. rm -f conftest.err conftest.$ac_objext \
  10091. conftest$ac_exeext conftest.$ac_ext
  10092. fi
  10093. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10094. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10095. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10096. cat >>confdefs.h <<_ACEOF
  10097. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10098. _ACEOF
  10099. echo "$as_me:$LINENO: checking for _doprnt" >&5
  10100. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  10101. if test "${ac_cv_func__doprnt+set}" = set; then
  10102. echo $ECHO_N "(cached) $ECHO_C" >&6
  10103. else
  10104. cat >conftest.$ac_ext <<_ACEOF
  10105. /* confdefs.h. */
  10106. _ACEOF
  10107. cat confdefs.h >>conftest.$ac_ext
  10108. cat >>conftest.$ac_ext <<_ACEOF
  10109. /* end confdefs.h. */
  10110. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  10111. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10112. #define _doprnt innocuous__doprnt
  10113. /* System header to define __stub macros and hopefully few prototypes,
  10114. which can conflict with char _doprnt (); below.
  10115. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10116. <limits.h> exists even on freestanding compilers. */
  10117. #ifdef __STDC__
  10118. # include <limits.h>
  10119. #else
  10120. # include <assert.h>
  10121. #endif
  10122. #undef _doprnt
  10123. /* Override any gcc2 internal prototype to avoid an error. */
  10124. #ifdef __cplusplus
  10125. extern "C"
  10126. {
  10127. #endif
  10128. /* We use char because int might match the return type of a gcc2
  10129. builtin and then its argument prototype would still apply. */
  10130. char _doprnt ();
  10131. /* The GNU C library defines this for functions which it implements
  10132. to always fail with ENOSYS. Some functions are actually named
  10133. something starting with __ and the normal name is an alias. */
  10134. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  10135. choke me
  10136. #else
  10137. char (*f) () = _doprnt;
  10138. #endif
  10139. #ifdef __cplusplus
  10140. }
  10141. #endif
  10142. int
  10143. main ()
  10144. {
  10145. return f != _doprnt;
  10146. ;
  10147. return 0;
  10148. }
  10149. _ACEOF
  10150. rm -f conftest.$ac_objext conftest$ac_exeext
  10151. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10152. (eval $ac_link) 2>conftest.er1
  10153. ac_status=$?
  10154. grep -v '^ *+' conftest.er1 >conftest.err
  10155. rm -f conftest.er1
  10156. cat conftest.err >&5
  10157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10158. (exit $ac_status); } &&
  10159. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10160. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10161. (eval $ac_try) 2>&5
  10162. ac_status=$?
  10163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10164. (exit $ac_status); }; } &&
  10165. { ac_try='test -s conftest$ac_exeext'
  10166. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10167. (eval $ac_try) 2>&5
  10168. ac_status=$?
  10169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10170. (exit $ac_status); }; }; then
  10171. ac_cv_func__doprnt=yes
  10172. else
  10173. echo "$as_me: failed program was:" >&5
  10174. sed 's/^/| /' conftest.$ac_ext >&5
  10175. ac_cv_func__doprnt=no
  10176. fi
  10177. rm -f conftest.err conftest.$ac_objext \
  10178. conftest$ac_exeext conftest.$ac_ext
  10179. fi
  10180. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  10181. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  10182. if test $ac_cv_func__doprnt = yes; then
  10183. cat >>confdefs.h <<\_ACEOF
  10184. #define HAVE_DOPRNT 1
  10185. _ACEOF
  10186. fi
  10187. fi
  10188. done
  10189. for ac_func in __argz_count __argz_next __argz_stringify ftruncate getcwd getpagesize gettimeofday inet_ntoa memchr mempcpy memset mkdir munmap nl_langinfo rmdir select setlocale socket stpcpy strcasecmp strchr strcspn strdup strerror strstr strtol strtoul
  10190. do
  10191. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10192. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10193. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10194. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10195. echo $ECHO_N "(cached) $ECHO_C" >&6
  10196. else
  10197. cat >conftest.$ac_ext <<_ACEOF
  10198. /* confdefs.h. */
  10199. _ACEOF
  10200. cat confdefs.h >>conftest.$ac_ext
  10201. cat >>conftest.$ac_ext <<_ACEOF
  10202. /* end confdefs.h. */
  10203. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10204. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10205. #define $ac_func innocuous_$ac_func
  10206. /* System header to define __stub macros and hopefully few prototypes,
  10207. which can conflict with char $ac_func (); below.
  10208. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10209. <limits.h> exists even on freestanding compilers. */
  10210. #ifdef __STDC__
  10211. # include <limits.h>
  10212. #else
  10213. # include <assert.h>
  10214. #endif
  10215. #undef $ac_func
  10216. /* Override any gcc2 internal prototype to avoid an error. */
  10217. #ifdef __cplusplus
  10218. extern "C"
  10219. {
  10220. #endif
  10221. /* We use char because int might match the return type of a gcc2
  10222. builtin and then its argument prototype would still apply. */
  10223. char $ac_func ();
  10224. /* The GNU C library defines this for functions which it implements
  10225. to always fail with ENOSYS. Some functions are actually named
  10226. something starting with __ and the normal name is an alias. */
  10227. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10228. choke me
  10229. #else
  10230. char (*f) () = $ac_func;
  10231. #endif
  10232. #ifdef __cplusplus
  10233. }
  10234. #endif
  10235. int
  10236. main ()
  10237. {
  10238. return f != $ac_func;
  10239. ;
  10240. return 0;
  10241. }
  10242. _ACEOF
  10243. rm -f conftest.$ac_objext conftest$ac_exeext
  10244. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10245. (eval $ac_link) 2>conftest.er1
  10246. ac_status=$?
  10247. grep -v '^ *+' conftest.er1 >conftest.err
  10248. rm -f conftest.er1
  10249. cat conftest.err >&5
  10250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10251. (exit $ac_status); } &&
  10252. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10253. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10254. (eval $ac_try) 2>&5
  10255. ac_status=$?
  10256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10257. (exit $ac_status); }; } &&
  10258. { ac_try='test -s conftest$ac_exeext'
  10259. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10260. (eval $ac_try) 2>&5
  10261. ac_status=$?
  10262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10263. (exit $ac_status); }; }; then
  10264. eval "$as_ac_var=yes"
  10265. else
  10266. echo "$as_me: failed program was:" >&5
  10267. sed 's/^/| /' conftest.$ac_ext >&5
  10268. eval "$as_ac_var=no"
  10269. fi
  10270. rm -f conftest.err conftest.$ac_objext \
  10271. conftest$ac_exeext conftest.$ac_ext
  10272. fi
  10273. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10274. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10275. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10276. cat >>confdefs.h <<_ACEOF
  10277. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10278. _ACEOF
  10279. fi
  10280. done
  10281. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile"
  10282. cat >confcache <<\_ACEOF
  10283. # This file is a shell script that caches the results of configure
  10284. # tests run on this system so they can be shared between configure
  10285. # scripts and configure runs, see configure's option --config-cache.
  10286. # It is not useful on other systems. If it contains results you don't
  10287. # want to keep, you may remove or edit it.
  10288. #
  10289. # config.status only pays attention to the cache file if you give it
  10290. # the --recheck option to rerun configure.
  10291. #
  10292. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10293. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10294. # following values.
  10295. _ACEOF
  10296. # The following way of writing the cache mishandles newlines in values,
  10297. # but we know of no workaround that is simple, portable, and efficient.
  10298. # So, don't put newlines in cache variables' values.
  10299. # Ultrix sh set writes to stderr and can't be redirected directly,
  10300. # and sets the high bit in the cache file unless we assign to the vars.
  10301. {
  10302. (set) 2>&1 |
  10303. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10304. *ac_space=\ *)
  10305. # `set' does not quote correctly, so add quotes (double-quote
  10306. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10307. sed -n \
  10308. "s/'/'\\\\''/g;
  10309. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10310. ;;
  10311. *)
  10312. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10313. sed -n \
  10314. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10315. ;;
  10316. esac;
  10317. } |
  10318. sed '
  10319. t clear
  10320. : clear
  10321. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10322. t end
  10323. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10324. : end' >>confcache
  10325. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10326. if test -w $cache_file; then
  10327. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  10328. cat confcache >$cache_file
  10329. else
  10330. echo "not updating unwritable cache $cache_file"
  10331. fi
  10332. fi
  10333. rm -f confcache
  10334. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10335. # Let make expand exec_prefix.
  10336. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10337. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10338. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10339. # trailing colons and then remove the whole line if VPATH becomes empty
  10340. # (actually we leave an empty line to preserve line numbers).
  10341. if test "x$srcdir" = x.; then
  10342. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10343. s/:*\$(srcdir):*/:/;
  10344. s/:*\${srcdir}:*/:/;
  10345. s/:*@srcdir@:*/:/;
  10346. s/^\([^=]*=[ ]*\):*/\1/;
  10347. s/:*$//;
  10348. s/^[^=]*=[ ]*$//;
  10349. }'
  10350. fi
  10351. DEFS=-DHAVE_CONFIG_H
  10352. ac_libobjs=
  10353. ac_ltlibobjs=
  10354. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10355. # 1. Remove the extension, and $U if already installed.
  10356. ac_i=`echo "$ac_i" |
  10357. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10358. # 2. Add them.
  10359. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10360. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10361. done
  10362. LIBOBJS=$ac_libobjs
  10363. LTLIBOBJS=$ac_ltlibobjs
  10364. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10365. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  10366. Usually this means the macro was only invoked conditionally." >&5
  10367. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  10368. Usually this means the macro was only invoked conditionally." >&2;}
  10369. { (exit 1); exit 1; }; }
  10370. fi
  10371. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  10372. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  10373. Usually this means the macro was only invoked conditionally." >&5
  10374. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  10375. Usually this means the macro was only invoked conditionally." >&2;}
  10376. { (exit 1); exit 1; }; }
  10377. fi
  10378. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10379. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  10380. Usually this means the macro was only invoked conditionally." >&5
  10381. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  10382. Usually this means the macro was only invoked conditionally." >&2;}
  10383. { (exit 1); exit 1; }; }
  10384. fi
  10385. : ${CONFIG_STATUS=./config.status}
  10386. ac_clean_files_save=$ac_clean_files
  10387. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10388. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10389. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10390. cat >$CONFIG_STATUS <<_ACEOF
  10391. #! $SHELL
  10392. # Generated by $as_me.
  10393. # Run this file to recreate the current configuration.
  10394. # Compiler output produced by configure, useful for debugging
  10395. # configure, is in config.log if it exists.
  10396. debug=false
  10397. ac_cs_recheck=false
  10398. ac_cs_silent=false
  10399. SHELL=\${CONFIG_SHELL-$SHELL}
  10400. _ACEOF
  10401. cat >>$CONFIG_STATUS <<\_ACEOF
  10402. ## --------------------- ##
  10403. ## M4sh Initialization. ##
  10404. ## --------------------- ##
  10405. # Be Bourne compatible
  10406. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10407. emulate sh
  10408. NULLCMD=:
  10409. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10410. # is contrary to our usage. Disable this feature.
  10411. alias -g '${1+"$@"}'='"$@"'
  10412. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10413. set -o posix
  10414. fi
  10415. DUALCASE=1; export DUALCASE # for MKS sh
  10416. # Support unset when possible.
  10417. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10418. as_unset=unset
  10419. else
  10420. as_unset=false
  10421. fi
  10422. # Work around bugs in pre-3.0 UWIN ksh.
  10423. $as_unset ENV MAIL MAILPATH
  10424. PS1='$ '
  10425. PS2='> '
  10426. PS4='+ '
  10427. # NLS nuisances.
  10428. for as_var in \
  10429. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10430. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10431. LC_TELEPHONE LC_TIME
  10432. do
  10433. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10434. eval $as_var=C; export $as_var
  10435. else
  10436. $as_unset $as_var
  10437. fi
  10438. done
  10439. # Required to use basename.
  10440. if expr a : '\(a\)' >/dev/null 2>&1; then
  10441. as_expr=expr
  10442. else
  10443. as_expr=false
  10444. fi
  10445. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  10446. as_basename=basename
  10447. else
  10448. as_basename=false
  10449. fi
  10450. # Name of the executable.
  10451. as_me=`$as_basename "$0" ||
  10452. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10453. X"$0" : 'X\(//\)$' \| \
  10454. X"$0" : 'X\(/\)$' \| \
  10455. . : '\(.\)' 2>/dev/null ||
  10456. echo X/"$0" |
  10457. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  10458. /^X\/\(\/\/\)$/{ s//\1/; q; }
  10459. /^X\/\(\/\).*/{ s//\1/; q; }
  10460. s/.*/./; q'`
  10461. # PATH needs CR, and LINENO needs CR and PATH.
  10462. # Avoid depending upon Character Ranges.
  10463. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10464. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10465. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10466. as_cr_digits='0123456789'
  10467. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10468. # The user is always right.
  10469. if test "${PATH_SEPARATOR+set}" != set; then
  10470. echo "#! /bin/sh" >conf$$.sh
  10471. echo "exit 0" >>conf$$.sh
  10472. chmod +x conf$$.sh
  10473. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10474. PATH_SEPARATOR=';'
  10475. else
  10476. PATH_SEPARATOR=:
  10477. fi
  10478. rm -f conf$$.sh
  10479. fi
  10480. as_lineno_1=$LINENO
  10481. as_lineno_2=$LINENO
  10482. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10483. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10484. test "x$as_lineno_3" = "x$as_lineno_2" || {
  10485. # Find who we are. Look in the path if we contain no path at all
  10486. # relative or not.
  10487. case $0 in
  10488. *[\\/]* ) as_myself=$0 ;;
  10489. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10490. for as_dir in $PATH
  10491. do
  10492. IFS=$as_save_IFS
  10493. test -z "$as_dir" && as_dir=.
  10494. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10495. done
  10496. ;;
  10497. esac
  10498. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10499. # in which case we are not to be found in the path.
  10500. if test "x$as_myself" = x; then
  10501. as_myself=$0
  10502. fi
  10503. if test ! -f "$as_myself"; then
  10504. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  10505. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  10506. { (exit 1); exit 1; }; }
  10507. fi
  10508. case $CONFIG_SHELL in
  10509. '')
  10510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10511. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  10512. do
  10513. IFS=$as_save_IFS
  10514. test -z "$as_dir" && as_dir=.
  10515. for as_base in sh bash ksh sh5; do
  10516. case $as_dir in
  10517. /*)
  10518. if ("$as_dir/$as_base" -c '
  10519. as_lineno_1=$LINENO
  10520. as_lineno_2=$LINENO
  10521. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10522. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10523. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  10524. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  10525. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  10526. CONFIG_SHELL=$as_dir/$as_base
  10527. export CONFIG_SHELL
  10528. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  10529. fi;;
  10530. esac
  10531. done
  10532. done
  10533. ;;
  10534. esac
  10535. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10536. # uniformly replaced by the line number. The first 'sed' inserts a
  10537. # line-number line before each line; the second 'sed' does the real
  10538. # work. The second script uses 'N' to pair each line-number line
  10539. # with the numbered line, and appends trailing '-' during
  10540. # substitution so that $LINENO is not a special case at line end.
  10541. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10542. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  10543. sed '=' <$as_myself |
  10544. sed '
  10545. N
  10546. s,$,-,
  10547. : loop
  10548. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  10549. t loop
  10550. s,-$,,
  10551. s,^['$as_cr_digits']*\n,,
  10552. ' >$as_me.lineno &&
  10553. chmod +x $as_me.lineno ||
  10554. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  10555. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  10556. { (exit 1); exit 1; }; }
  10557. # Don't try to exec as it changes $[0], causing all sort of problems
  10558. # (the dirname of $[0] is not the place where we might find the
  10559. # original and so on. Autoconf is especially sensible to this).
  10560. . ./$as_me.lineno
  10561. # Exit status is that of the last command.
  10562. exit
  10563. }
  10564. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  10565. *c*,-n*) ECHO_N= ECHO_C='
  10566. ' ECHO_T=' ' ;;
  10567. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  10568. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  10569. esac
  10570. if expr a : '\(a\)' >/dev/null 2>&1; then
  10571. as_expr=expr
  10572. else
  10573. as_expr=false
  10574. fi
  10575. rm -f conf$$ conf$$.exe conf$$.file
  10576. echo >conf$$.file
  10577. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10578. # We could just check for DJGPP; but this test a) works b) is more generic
  10579. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  10580. if test -f conf$$.exe; then
  10581. # Don't use ln at all; we don't have any links
  10582. as_ln_s='cp -p'
  10583. else
  10584. as_ln_s='ln -s'
  10585. fi
  10586. elif ln conf$$.file conf$$ 2>/dev/null; then
  10587. as_ln_s=ln
  10588. else
  10589. as_ln_s='cp -p'
  10590. fi
  10591. rm -f conf$$ conf$$.exe conf$$.file
  10592. if mkdir -p . 2>/dev/null; then
  10593. as_mkdir_p=:
  10594. else
  10595. test -d ./-p && rmdir ./-p
  10596. as_mkdir_p=false
  10597. fi
  10598. as_executable_p="test -f"
  10599. # Sed expression to map a string onto a valid CPP name.
  10600. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10601. # Sed expression to map a string onto a valid variable name.
  10602. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10603. # IFS
  10604. # We need space, tab and new line, in precisely that order.
  10605. as_nl='
  10606. '
  10607. IFS=" $as_nl"
  10608. # CDPATH.
  10609. $as_unset CDPATH
  10610. exec 6>&1
  10611. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  10612. # report actual input values of CONFIG_FILES etc. instead of their
  10613. # values after options handling. Logging --version etc. is OK.
  10614. exec 5>>config.log
  10615. {
  10616. echo
  10617. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10618. ## Running $as_me. ##
  10619. _ASBOX
  10620. } >&5
  10621. cat >&5 <<_CSEOF
  10622. This file was extended by aria2c $as_me 0.5.2, which was
  10623. generated by GNU Autoconf 2.59. Invocation command line was
  10624. CONFIG_FILES = $CONFIG_FILES
  10625. CONFIG_HEADERS = $CONFIG_HEADERS
  10626. CONFIG_LINKS = $CONFIG_LINKS
  10627. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10628. $ $0 $@
  10629. _CSEOF
  10630. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  10631. echo >&5
  10632. _ACEOF
  10633. # Files that config.status was made for.
  10634. if test -n "$ac_config_files"; then
  10635. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  10636. fi
  10637. if test -n "$ac_config_headers"; then
  10638. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  10639. fi
  10640. if test -n "$ac_config_links"; then
  10641. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  10642. fi
  10643. if test -n "$ac_config_commands"; then
  10644. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  10645. fi
  10646. cat >>$CONFIG_STATUS <<\_ACEOF
  10647. ac_cs_usage="\
  10648. \`$as_me' instantiates files from templates according to the
  10649. current configuration.
  10650. Usage: $0 [OPTIONS] [FILE]...
  10651. -h, --help print this help, then exit
  10652. -V, --version print version number, then exit
  10653. -q, --quiet do not print progress messages
  10654. -d, --debug don't remove temporary files
  10655. --recheck update $as_me by reconfiguring in the same conditions
  10656. --file=FILE[:TEMPLATE]
  10657. instantiate the configuration file FILE
  10658. --header=FILE[:TEMPLATE]
  10659. instantiate the configuration header FILE
  10660. Configuration files:
  10661. $config_files
  10662. Configuration headers:
  10663. $config_headers
  10664. Configuration commands:
  10665. $config_commands
  10666. Report bugs to <bug-autoconf@gnu.org>."
  10667. _ACEOF
  10668. cat >>$CONFIG_STATUS <<_ACEOF
  10669. ac_cs_version="\\
  10670. aria2c config.status 0.5.2
  10671. configured by $0, generated by GNU Autoconf 2.59,
  10672. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  10673. Copyright (C) 2003 Free Software Foundation, Inc.
  10674. This config.status script is free software; the Free Software Foundation
  10675. gives unlimited permission to copy, distribute and modify it."
  10676. srcdir=$srcdir
  10677. INSTALL="$INSTALL"
  10678. _ACEOF
  10679. cat >>$CONFIG_STATUS <<\_ACEOF
  10680. # If no file are specified by the user, then we need to provide default
  10681. # value. By we need to know if files were specified by the user.
  10682. ac_need_defaults=:
  10683. while test $# != 0
  10684. do
  10685. case $1 in
  10686. --*=*)
  10687. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  10688. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  10689. ac_shift=:
  10690. ;;
  10691. -*)
  10692. ac_option=$1
  10693. ac_optarg=$2
  10694. ac_shift=shift
  10695. ;;
  10696. *) # This is not an option, so the user has probably given explicit
  10697. # arguments.
  10698. ac_option=$1
  10699. ac_need_defaults=false;;
  10700. esac
  10701. case $ac_option in
  10702. # Handling of the options.
  10703. _ACEOF
  10704. cat >>$CONFIG_STATUS <<\_ACEOF
  10705. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10706. ac_cs_recheck=: ;;
  10707. --version | --vers* | -V )
  10708. echo "$ac_cs_version"; exit 0 ;;
  10709. --he | --h)
  10710. # Conflict between --help and --header
  10711. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  10712. Try \`$0 --help' for more information." >&5
  10713. echo "$as_me: error: ambiguous option: $1
  10714. Try \`$0 --help' for more information." >&2;}
  10715. { (exit 1); exit 1; }; };;
  10716. --help | --hel | -h )
  10717. echo "$ac_cs_usage"; exit 0 ;;
  10718. --debug | --d* | -d )
  10719. debug=: ;;
  10720. --file | --fil | --fi | --f )
  10721. $ac_shift
  10722. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  10723. ac_need_defaults=false;;
  10724. --header | --heade | --head | --hea )
  10725. $ac_shift
  10726. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  10727. ac_need_defaults=false;;
  10728. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10729. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10730. ac_cs_silent=: ;;
  10731. # This is an error.
  10732. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  10733. Try \`$0 --help' for more information." >&5
  10734. echo "$as_me: error: unrecognized option: $1
  10735. Try \`$0 --help' for more information." >&2;}
  10736. { (exit 1); exit 1; }; } ;;
  10737. *) ac_config_targets="$ac_config_targets $1" ;;
  10738. esac
  10739. shift
  10740. done
  10741. ac_configure_extra_args=
  10742. if $ac_cs_silent; then
  10743. exec 6>/dev/null
  10744. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10745. fi
  10746. _ACEOF
  10747. cat >>$CONFIG_STATUS <<_ACEOF
  10748. if \$ac_cs_recheck; then
  10749. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  10750. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10751. fi
  10752. _ACEOF
  10753. cat >>$CONFIG_STATUS <<_ACEOF
  10754. #
  10755. # INIT-COMMANDS section.
  10756. #
  10757. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10758. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  10759. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  10760. # from automake.
  10761. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  10762. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  10763. LINGUAS="${LINGUAS-%UNSET%}"
  10764. _ACEOF
  10765. cat >>$CONFIG_STATUS <<\_ACEOF
  10766. for ac_config_target in $ac_config_targets
  10767. do
  10768. case "$ac_config_target" in
  10769. # Handling of arguments.
  10770. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10771. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10772. "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  10773. "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  10774. "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  10775. "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  10776. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10777. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  10778. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10779. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10780. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10781. { (exit 1); exit 1; }; };;
  10782. esac
  10783. done
  10784. # If the user did not use the arguments to specify the items to instantiate,
  10785. # then the envvar interface is used. Set only those that are not.
  10786. # We use the long form for the default assignment because of an extremely
  10787. # bizarre bug on SunOS 4.1.3.
  10788. if $ac_need_defaults; then
  10789. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10790. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10791. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10792. fi
  10793. # Have a temporary directory for convenience. Make it in the build tree
  10794. # simply because there is no reason to put it here, and in addition,
  10795. # creating and moving files from /tmp can sometimes cause problems.
  10796. # Create a temporary directory, and hook for its removal unless debugging.
  10797. $debug ||
  10798. {
  10799. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  10800. trap '{ (exit 1); exit 1; }' 1 2 13 15
  10801. }
  10802. # Create a (secure) tmp directory for tmp files.
  10803. {
  10804. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  10805. test -n "$tmp" && test -d "$tmp"
  10806. } ||
  10807. {
  10808. tmp=./confstat$$-$RANDOM
  10809. (umask 077 && mkdir $tmp)
  10810. } ||
  10811. {
  10812. echo "$me: cannot create a temporary directory in ." >&2
  10813. { (exit 1); exit 1; }
  10814. }
  10815. _ACEOF
  10816. cat >>$CONFIG_STATUS <<_ACEOF
  10817. #
  10818. # CONFIG_FILES section.
  10819. #
  10820. # No need to generate the scripts if there are no CONFIG_FILES.
  10821. # This happens for instance when ./config.status config.h
  10822. if test -n "\$CONFIG_FILES"; then
  10823. # Protect against being on the right side of a sed subst in config.status.
  10824. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  10825. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  10826. s,@SHELL@,$SHELL,;t t
  10827. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  10828. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  10829. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  10830. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  10831. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  10832. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  10833. s,@exec_prefix@,$exec_prefix,;t t
  10834. s,@prefix@,$prefix,;t t
  10835. s,@program_transform_name@,$program_transform_name,;t t
  10836. s,@bindir@,$bindir,;t t
  10837. s,@sbindir@,$sbindir,;t t
  10838. s,@libexecdir@,$libexecdir,;t t
  10839. s,@datadir@,$datadir,;t t
  10840. s,@sysconfdir@,$sysconfdir,;t t
  10841. s,@sharedstatedir@,$sharedstatedir,;t t
  10842. s,@localstatedir@,$localstatedir,;t t
  10843. s,@libdir@,$libdir,;t t
  10844. s,@includedir@,$includedir,;t t
  10845. s,@oldincludedir@,$oldincludedir,;t t
  10846. s,@infodir@,$infodir,;t t
  10847. s,@mandir@,$mandir,;t t
  10848. s,@build_alias@,$build_alias,;t t
  10849. s,@host_alias@,$host_alias,;t t
  10850. s,@target_alias@,$target_alias,;t t
  10851. s,@DEFS@,$DEFS,;t t
  10852. s,@ECHO_C@,$ECHO_C,;t t
  10853. s,@ECHO_N@,$ECHO_N,;t t
  10854. s,@ECHO_T@,$ECHO_T,;t t
  10855. s,@LIBS@,$LIBS,;t t
  10856. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  10857. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  10858. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  10859. s,@CYGPATH_W@,$CYGPATH_W,;t t
  10860. s,@PACKAGE@,$PACKAGE,;t t
  10861. s,@VERSION@,$VERSION,;t t
  10862. s,@ACLOCAL@,$ACLOCAL,;t t
  10863. s,@AUTOCONF@,$AUTOCONF,;t t
  10864. s,@AUTOMAKE@,$AUTOMAKE,;t t
  10865. s,@AUTOHEADER@,$AUTOHEADER,;t t
  10866. s,@MAKEINFO@,$MAKEINFO,;t t
  10867. s,@install_sh@,$install_sh,;t t
  10868. s,@STRIP@,$STRIP,;t t
  10869. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  10870. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  10871. s,@mkdir_p@,$mkdir_p,;t t
  10872. s,@AWK@,$AWK,;t t
  10873. s,@SET_MAKE@,$SET_MAKE,;t t
  10874. s,@am__leading_dot@,$am__leading_dot,;t t
  10875. s,@AMTAR@,$AMTAR,;t t
  10876. s,@am__tar@,$am__tar,;t t
  10877. s,@am__untar@,$am__untar,;t t
  10878. s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
  10879. s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
  10880. s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
  10881. s,@localedir@,$localedir,;t t
  10882. s,@CXX@,$CXX,;t t
  10883. s,@CXXFLAGS@,$CXXFLAGS,;t t
  10884. s,@LDFLAGS@,$LDFLAGS,;t t
  10885. s,@CPPFLAGS@,$CPPFLAGS,;t t
  10886. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  10887. s,@EXEEXT@,$EXEEXT,;t t
  10888. s,@OBJEXT@,$OBJEXT,;t t
  10889. s,@DEPDIR@,$DEPDIR,;t t
  10890. s,@am__include@,$am__include,;t t
  10891. s,@am__quote@,$am__quote,;t t
  10892. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  10893. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  10894. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  10895. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  10896. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  10897. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  10898. s,@CC@,$CC,;t t
  10899. s,@CFLAGS@,$CFLAGS,;t t
  10900. s,@ac_ct_CC@,$ac_ct_CC,;t t
  10901. s,@CCDEPMODE@,$CCDEPMODE,;t t
  10902. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  10903. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  10904. s,@RANLIB@,$RANLIB,;t t
  10905. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  10906. s,@YACC@,$YACC,;t t
  10907. s,@XML2_CONFIG@,$XML2_CONFIG,;t t
  10908. s,@XML_CPPFLAGS@,$XML_CPPFLAGS,;t t
  10909. s,@XML_LIBS@,$XML_LIBS,;t t
  10910. s,@LIBGNUTLS_CONFIG@,$LIBGNUTLS_CONFIG,;t t
  10911. s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
  10912. s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
  10913. s,@LIBGCRYPT_CONFIG@,$LIBGCRYPT_CONFIG,;t t
  10914. s,@LIBGCRYPT_CFLAGS@,$LIBGCRYPT_CFLAGS,;t t
  10915. s,@LIBGCRYPT_LIBS@,$LIBGCRYPT_LIBS,;t t
  10916. s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
  10917. s,@OPENSSL_CFLAGS@,$OPENSSL_CFLAGS,;t t
  10918. s,@ALLOCA@,$ALLOCA,;t t
  10919. s,@CPP@,$CPP,;t t
  10920. s,@EGREP@,$EGREP,;t t
  10921. s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
  10922. s,@USE_NLS@,$USE_NLS,;t t
  10923. s,@MSGFMT@,$MSGFMT,;t t
  10924. s,@GMSGFMT@,$GMSGFMT,;t t
  10925. s,@XGETTEXT@,$XGETTEXT,;t t
  10926. s,@MSGMERGE@,$MSGMERGE,;t t
  10927. s,@build@,$build,;t t
  10928. s,@build_cpu@,$build_cpu,;t t
  10929. s,@build_vendor@,$build_vendor,;t t
  10930. s,@build_os@,$build_os,;t t
  10931. s,@host@,$host,;t t
  10932. s,@host_cpu@,$host_cpu,;t t
  10933. s,@host_vendor@,$host_vendor,;t t
  10934. s,@host_os@,$host_os,;t t
  10935. s,@GLIBC21@,$GLIBC21,;t t
  10936. s,@LIBICONV@,$LIBICONV,;t t
  10937. s,@LTLIBICONV@,$LTLIBICONV,;t t
  10938. s,@INTLBISON@,$INTLBISON,;t t
  10939. s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
  10940. s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
  10941. s,@CATOBJEXT@,$CATOBJEXT,;t t
  10942. s,@DATADIRNAME@,$DATADIRNAME,;t t
  10943. s,@INSTOBJEXT@,$INSTOBJEXT,;t t
  10944. s,@GENCAT@,$GENCAT,;t t
  10945. s,@INTLOBJS@,$INTLOBJS,;t t
  10946. s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
  10947. s,@INTLLIBS@,$INTLLIBS,;t t
  10948. s,@LIBINTL@,$LIBINTL,;t t
  10949. s,@LTLIBINTL@,$LTLIBINTL,;t t
  10950. s,@POSUB@,$POSUB,;t t
  10951. s,@LIBOBJS@,$LIBOBJS,;t t
  10952. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  10953. CEOF
  10954. _ACEOF
  10955. cat >>$CONFIG_STATUS <<\_ACEOF
  10956. # Split the substitutions into bite-sized pieces for seds with
  10957. # small command number limits, like on Digital OSF/1 and HP-UX.
  10958. ac_max_sed_lines=48
  10959. ac_sed_frag=1 # Number of current file.
  10960. ac_beg=1 # First line for current file.
  10961. ac_end=$ac_max_sed_lines # Line after last line for current file.
  10962. ac_more_lines=:
  10963. ac_sed_cmds=
  10964. while $ac_more_lines; do
  10965. if test $ac_beg -gt 1; then
  10966. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10967. else
  10968. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10969. fi
  10970. if test ! -s $tmp/subs.frag; then
  10971. ac_more_lines=false
  10972. else
  10973. # The purpose of the label and of the branching condition is to
  10974. # speed up the sed processing (if there are no `@' at all, there
  10975. # is no need to browse any of the substitutions).
  10976. # These are the two extra sed commands mentioned above.
  10977. (echo ':t
  10978. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  10979. if test -z "$ac_sed_cmds"; then
  10980. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  10981. else
  10982. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  10983. fi
  10984. ac_sed_frag=`expr $ac_sed_frag + 1`
  10985. ac_beg=$ac_end
  10986. ac_end=`expr $ac_end + $ac_max_sed_lines`
  10987. fi
  10988. done
  10989. if test -z "$ac_sed_cmds"; then
  10990. ac_sed_cmds=cat
  10991. fi
  10992. fi # test -n "$CONFIG_FILES"
  10993. _ACEOF
  10994. cat >>$CONFIG_STATUS <<\_ACEOF
  10995. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  10996. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10997. case $ac_file in
  10998. - | *:- | *:-:* ) # input from stdin
  10999. cat >$tmp/stdin
  11000. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11001. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11002. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11003. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11004. * ) ac_file_in=$ac_file.in ;;
  11005. esac
  11006. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11007. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11008. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11009. X"$ac_file" : 'X\(//\)[^/]' \| \
  11010. X"$ac_file" : 'X\(//\)$' \| \
  11011. X"$ac_file" : 'X\(/\)' \| \
  11012. . : '\(.\)' 2>/dev/null ||
  11013. echo X"$ac_file" |
  11014. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11015. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11016. /^X\(\/\/\)$/{ s//\1/; q; }
  11017. /^X\(\/\).*/{ s//\1/; q; }
  11018. s/.*/./; q'`
  11019. { if $as_mkdir_p; then
  11020. mkdir -p "$ac_dir"
  11021. else
  11022. as_dir="$ac_dir"
  11023. as_dirs=
  11024. while test ! -d "$as_dir"; do
  11025. as_dirs="$as_dir $as_dirs"
  11026. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11027. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11028. X"$as_dir" : 'X\(//\)[^/]' \| \
  11029. X"$as_dir" : 'X\(//\)$' \| \
  11030. X"$as_dir" : 'X\(/\)' \| \
  11031. . : '\(.\)' 2>/dev/null ||
  11032. echo X"$as_dir" |
  11033. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11034. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11035. /^X\(\/\/\)$/{ s//\1/; q; }
  11036. /^X\(\/\).*/{ s//\1/; q; }
  11037. s/.*/./; q'`
  11038. done
  11039. test ! -n "$as_dirs" || mkdir $as_dirs
  11040. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11041. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11042. { (exit 1); exit 1; }; }; }
  11043. ac_builddir=.
  11044. if test "$ac_dir" != .; then
  11045. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11046. # A "../" for each directory in $ac_dir_suffix.
  11047. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11048. else
  11049. ac_dir_suffix= ac_top_builddir=
  11050. fi
  11051. case $srcdir in
  11052. .) # No --srcdir option. We are building in place.
  11053. ac_srcdir=.
  11054. if test -z "$ac_top_builddir"; then
  11055. ac_top_srcdir=.
  11056. else
  11057. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11058. fi ;;
  11059. [\\/]* | ?:[\\/]* ) # Absolute path.
  11060. ac_srcdir=$srcdir$ac_dir_suffix;
  11061. ac_top_srcdir=$srcdir ;;
  11062. *) # Relative path.
  11063. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11064. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11065. esac
  11066. # Do not use `cd foo && pwd` to compute absolute paths, because
  11067. # the directories may not exist.
  11068. case `pwd` in
  11069. .) ac_abs_builddir="$ac_dir";;
  11070. *)
  11071. case "$ac_dir" in
  11072. .) ac_abs_builddir=`pwd`;;
  11073. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11074. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11075. esac;;
  11076. esac
  11077. case $ac_abs_builddir in
  11078. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11079. *)
  11080. case ${ac_top_builddir}. in
  11081. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11082. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11083. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11084. esac;;
  11085. esac
  11086. case $ac_abs_builddir in
  11087. .) ac_abs_srcdir=$ac_srcdir;;
  11088. *)
  11089. case $ac_srcdir in
  11090. .) ac_abs_srcdir=$ac_abs_builddir;;
  11091. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11092. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11093. esac;;
  11094. esac
  11095. case $ac_abs_builddir in
  11096. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11097. *)
  11098. case $ac_top_srcdir in
  11099. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11100. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11101. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11102. esac;;
  11103. esac
  11104. case $INSTALL in
  11105. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11106. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  11107. esac
  11108. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11109. # use $as_me), people would be surprised to read:
  11110. # /* config.h. Generated by config.status. */
  11111. if test x"$ac_file" = x-; then
  11112. configure_input=
  11113. else
  11114. configure_input="$ac_file. "
  11115. fi
  11116. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11117. sed 's,.*/,,'` by configure."
  11118. # First look for the input files in the build tree, otherwise in the
  11119. # src tree.
  11120. ac_file_inputs=`IFS=:
  11121. for f in $ac_file_in; do
  11122. case $f in
  11123. -) echo $tmp/stdin ;;
  11124. [\\/$]*)
  11125. # Absolute (can't be DOS-style, as IFS=:)
  11126. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11127. echo "$as_me: error: cannot find input file: $f" >&2;}
  11128. { (exit 1); exit 1; }; }
  11129. echo "$f";;
  11130. *) # Relative
  11131. if test -f "$f"; then
  11132. # Build tree
  11133. echo "$f"
  11134. elif test -f "$srcdir/$f"; then
  11135. # Source tree
  11136. echo "$srcdir/$f"
  11137. else
  11138. # /dev/null tree
  11139. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11140. echo "$as_me: error: cannot find input file: $f" >&2;}
  11141. { (exit 1); exit 1; }; }
  11142. fi;;
  11143. esac
  11144. done` || { (exit 1); exit 1; }
  11145. if test x"$ac_file" != x-; then
  11146. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11147. echo "$as_me: creating $ac_file" >&6;}
  11148. rm -f "$ac_file"
  11149. fi
  11150. _ACEOF
  11151. cat >>$CONFIG_STATUS <<_ACEOF
  11152. sed "$ac_vpsub
  11153. $extrasub
  11154. _ACEOF
  11155. cat >>$CONFIG_STATUS <<\_ACEOF
  11156. :t
  11157. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11158. s,@configure_input@,$configure_input,;t t
  11159. s,@srcdir@,$ac_srcdir,;t t
  11160. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11161. s,@top_srcdir@,$ac_top_srcdir,;t t
  11162. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11163. s,@builddir@,$ac_builddir,;t t
  11164. s,@abs_builddir@,$ac_abs_builddir,;t t
  11165. s,@top_builddir@,$ac_top_builddir,;t t
  11166. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11167. s,@INSTALL@,$ac_INSTALL,;t t
  11168. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11169. rm -f $tmp/stdin
  11170. if test x"$ac_file" != x-; then
  11171. mv $tmp/out $ac_file
  11172. else
  11173. cat $tmp/out
  11174. rm -f $tmp/out
  11175. fi
  11176. done
  11177. _ACEOF
  11178. cat >>$CONFIG_STATUS <<\_ACEOF
  11179. #
  11180. # CONFIG_HEADER section.
  11181. #
  11182. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11183. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11184. #
  11185. # ac_d sets the value in "#define NAME VALUE" lines.
  11186. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11187. ac_dB='[ ].*$,\1#\2'
  11188. ac_dC=' '
  11189. ac_dD=',;t'
  11190. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11191. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11192. ac_uB='$,\1#\2define\3'
  11193. ac_uC=' '
  11194. ac_uD=',;t'
  11195. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11196. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11197. case $ac_file in
  11198. - | *:- | *:-:* ) # input from stdin
  11199. cat >$tmp/stdin
  11200. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11201. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11202. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11203. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11204. * ) ac_file_in=$ac_file.in ;;
  11205. esac
  11206. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11207. echo "$as_me: creating $ac_file" >&6;}
  11208. # First look for the input files in the build tree, otherwise in the
  11209. # src tree.
  11210. ac_file_inputs=`IFS=:
  11211. for f in $ac_file_in; do
  11212. case $f in
  11213. -) echo $tmp/stdin ;;
  11214. [\\/$]*)
  11215. # Absolute (can't be DOS-style, as IFS=:)
  11216. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11217. echo "$as_me: error: cannot find input file: $f" >&2;}
  11218. { (exit 1); exit 1; }; }
  11219. # Do quote $f, to prevent DOS paths from being IFS'd.
  11220. echo "$f";;
  11221. *) # Relative
  11222. if test -f "$f"; then
  11223. # Build tree
  11224. echo "$f"
  11225. elif test -f "$srcdir/$f"; then
  11226. # Source tree
  11227. echo "$srcdir/$f"
  11228. else
  11229. # /dev/null tree
  11230. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11231. echo "$as_me: error: cannot find input file: $f" >&2;}
  11232. { (exit 1); exit 1; }; }
  11233. fi;;
  11234. esac
  11235. done` || { (exit 1); exit 1; }
  11236. # Remove the trailing spaces.
  11237. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11238. _ACEOF
  11239. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11240. # `conftest.undefs', that substitutes the proper values into
  11241. # config.h.in to produce config.h. The first handles `#define'
  11242. # templates, and the second `#undef' templates.
  11243. # And first: Protect against being on the right side of a sed subst in
  11244. # config.status. Protect against being in an unquoted here document
  11245. # in config.status.
  11246. rm -f conftest.defines conftest.undefs
  11247. # Using a here document instead of a string reduces the quoting nightmare.
  11248. # Putting comments in sed scripts is not portable.
  11249. #
  11250. # `end' is used to avoid that the second main sed command (meant for
  11251. # 0-ary CPP macros) applies to n-ary macro definitions.
  11252. # See the Autoconf documentation for `clear'.
  11253. cat >confdef2sed.sed <<\_ACEOF
  11254. s/[\\&,]/\\&/g
  11255. s,[\\$`],\\&,g
  11256. t clear
  11257. : clear
  11258. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11259. t end
  11260. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11261. : end
  11262. _ACEOF
  11263. # If some macros were called several times there might be several times
  11264. # the same #defines, which is useless. Nevertheless, we may not want to
  11265. # sort them, since we want the *last* AC-DEFINE to be honored.
  11266. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11267. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11268. rm -f confdef2sed.sed
  11269. # This sed command replaces #undef with comments. This is necessary, for
  11270. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11271. # on some systems where configure will not decide to define it.
  11272. cat >>conftest.undefs <<\_ACEOF
  11273. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11274. _ACEOF
  11275. # Break up conftest.defines because some shells have a limit on the size
  11276. # of here documents, and old seds have small limits too (100 cmds).
  11277. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11278. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11279. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11280. echo ' :' >>$CONFIG_STATUS
  11281. rm -f conftest.tail
  11282. while grep . conftest.defines >/dev/null
  11283. do
  11284. # Write a limited-size here document to $tmp/defines.sed.
  11285. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11286. # Speed up: don't consider the non `#define' lines.
  11287. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11288. # Work around the forget-to-reset-the-flag bug.
  11289. echo 't clr' >>$CONFIG_STATUS
  11290. echo ': clr' >>$CONFIG_STATUS
  11291. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11292. echo 'CEOF
  11293. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11294. rm -f $tmp/in
  11295. mv $tmp/out $tmp/in
  11296. ' >>$CONFIG_STATUS
  11297. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11298. rm -f conftest.defines
  11299. mv conftest.tail conftest.defines
  11300. done
  11301. rm -f conftest.defines
  11302. echo ' fi # grep' >>$CONFIG_STATUS
  11303. echo >>$CONFIG_STATUS
  11304. # Break up conftest.undefs because some shells have a limit on the size
  11305. # of here documents, and old seds have small limits too (100 cmds).
  11306. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11307. rm -f conftest.tail
  11308. while grep . conftest.undefs >/dev/null
  11309. do
  11310. # Write a limited-size here document to $tmp/undefs.sed.
  11311. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11312. # Speed up: don't consider the non `#undef'
  11313. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11314. # Work around the forget-to-reset-the-flag bug.
  11315. echo 't clr' >>$CONFIG_STATUS
  11316. echo ': clr' >>$CONFIG_STATUS
  11317. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11318. echo 'CEOF
  11319. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11320. rm -f $tmp/in
  11321. mv $tmp/out $tmp/in
  11322. ' >>$CONFIG_STATUS
  11323. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11324. rm -f conftest.undefs
  11325. mv conftest.tail conftest.undefs
  11326. done
  11327. rm -f conftest.undefs
  11328. cat >>$CONFIG_STATUS <<\_ACEOF
  11329. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11330. # use $as_me), people would be surprised to read:
  11331. # /* config.h. Generated by config.status. */
  11332. if test x"$ac_file" = x-; then
  11333. echo "/* Generated by configure. */" >$tmp/config.h
  11334. else
  11335. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11336. fi
  11337. cat $tmp/in >>$tmp/config.h
  11338. rm -f $tmp/in
  11339. if test x"$ac_file" != x-; then
  11340. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11341. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11342. echo "$as_me: $ac_file is unchanged" >&6;}
  11343. else
  11344. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11345. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11346. X"$ac_file" : 'X\(//\)[^/]' \| \
  11347. X"$ac_file" : 'X\(//\)$' \| \
  11348. X"$ac_file" : 'X\(/\)' \| \
  11349. . : '\(.\)' 2>/dev/null ||
  11350. echo X"$ac_file" |
  11351. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11352. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11353. /^X\(\/\/\)$/{ s//\1/; q; }
  11354. /^X\(\/\).*/{ s//\1/; q; }
  11355. s/.*/./; q'`
  11356. { if $as_mkdir_p; then
  11357. mkdir -p "$ac_dir"
  11358. else
  11359. as_dir="$ac_dir"
  11360. as_dirs=
  11361. while test ! -d "$as_dir"; do
  11362. as_dirs="$as_dir $as_dirs"
  11363. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11364. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11365. X"$as_dir" : 'X\(//\)[^/]' \| \
  11366. X"$as_dir" : 'X\(//\)$' \| \
  11367. X"$as_dir" : 'X\(/\)' \| \
  11368. . : '\(.\)' 2>/dev/null ||
  11369. echo X"$as_dir" |
  11370. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11371. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11372. /^X\(\/\/\)$/{ s//\1/; q; }
  11373. /^X\(\/\).*/{ s//\1/; q; }
  11374. s/.*/./; q'`
  11375. done
  11376. test ! -n "$as_dirs" || mkdir $as_dirs
  11377. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11378. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11379. { (exit 1); exit 1; }; }; }
  11380. rm -f $ac_file
  11381. mv $tmp/config.h $ac_file
  11382. fi
  11383. else
  11384. cat $tmp/config.h
  11385. rm -f $tmp/config.h
  11386. fi
  11387. # Compute $ac_file's index in $config_headers.
  11388. _am_stamp_count=1
  11389. for _am_header in $config_headers :; do
  11390. case $_am_header in
  11391. $ac_file | $ac_file:* )
  11392. break ;;
  11393. * )
  11394. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11395. esac
  11396. done
  11397. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  11398. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11399. X$ac_file : 'X\(//\)[^/]' \| \
  11400. X$ac_file : 'X\(//\)$' \| \
  11401. X$ac_file : 'X\(/\)' \| \
  11402. . : '\(.\)' 2>/dev/null ||
  11403. echo X$ac_file |
  11404. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11405. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11406. /^X\(\/\/\)$/{ s//\1/; q; }
  11407. /^X\(\/\).*/{ s//\1/; q; }
  11408. s/.*/./; q'`/stamp-h$_am_stamp_count
  11409. done
  11410. _ACEOF
  11411. cat >>$CONFIG_STATUS <<\_ACEOF
  11412. #
  11413. # CONFIG_COMMANDS section.
  11414. #
  11415. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  11416. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  11417. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11418. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  11419. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11420. X"$ac_dest" : 'X\(//\)[^/]' \| \
  11421. X"$ac_dest" : 'X\(//\)$' \| \
  11422. X"$ac_dest" : 'X\(/\)' \| \
  11423. . : '\(.\)' 2>/dev/null ||
  11424. echo X"$ac_dest" |
  11425. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11426. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11427. /^X\(\/\/\)$/{ s//\1/; q; }
  11428. /^X\(\/\).*/{ s//\1/; q; }
  11429. s/.*/./; q'`
  11430. { if $as_mkdir_p; then
  11431. mkdir -p "$ac_dir"
  11432. else
  11433. as_dir="$ac_dir"
  11434. as_dirs=
  11435. while test ! -d "$as_dir"; do
  11436. as_dirs="$as_dir $as_dirs"
  11437. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11438. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11439. X"$as_dir" : 'X\(//\)[^/]' \| \
  11440. X"$as_dir" : 'X\(//\)$' \| \
  11441. X"$as_dir" : 'X\(/\)' \| \
  11442. . : '\(.\)' 2>/dev/null ||
  11443. echo X"$as_dir" |
  11444. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11445. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11446. /^X\(\/\/\)$/{ s//\1/; q; }
  11447. /^X\(\/\).*/{ s//\1/; q; }
  11448. s/.*/./; q'`
  11449. done
  11450. test ! -n "$as_dirs" || mkdir $as_dirs
  11451. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11452. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11453. { (exit 1); exit 1; }; }; }
  11454. ac_builddir=.
  11455. if test "$ac_dir" != .; then
  11456. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11457. # A "../" for each directory in $ac_dir_suffix.
  11458. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11459. else
  11460. ac_dir_suffix= ac_top_builddir=
  11461. fi
  11462. case $srcdir in
  11463. .) # No --srcdir option. We are building in place.
  11464. ac_srcdir=.
  11465. if test -z "$ac_top_builddir"; then
  11466. ac_top_srcdir=.
  11467. else
  11468. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11469. fi ;;
  11470. [\\/]* | ?:[\\/]* ) # Absolute path.
  11471. ac_srcdir=$srcdir$ac_dir_suffix;
  11472. ac_top_srcdir=$srcdir ;;
  11473. *) # Relative path.
  11474. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11475. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11476. esac
  11477. # Do not use `cd foo && pwd` to compute absolute paths, because
  11478. # the directories may not exist.
  11479. case `pwd` in
  11480. .) ac_abs_builddir="$ac_dir";;
  11481. *)
  11482. case "$ac_dir" in
  11483. .) ac_abs_builddir=`pwd`;;
  11484. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11485. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11486. esac;;
  11487. esac
  11488. case $ac_abs_builddir in
  11489. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11490. *)
  11491. case ${ac_top_builddir}. in
  11492. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11493. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11494. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11495. esac;;
  11496. esac
  11497. case $ac_abs_builddir in
  11498. .) ac_abs_srcdir=$ac_srcdir;;
  11499. *)
  11500. case $ac_srcdir in
  11501. .) ac_abs_srcdir=$ac_abs_builddir;;
  11502. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11503. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11504. esac;;
  11505. esac
  11506. case $ac_abs_builddir in
  11507. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11508. *)
  11509. case $ac_top_srcdir in
  11510. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11511. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11512. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11513. esac;;
  11514. esac
  11515. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  11516. echo "$as_me: executing $ac_dest commands" >&6;}
  11517. case $ac_dest in
  11518. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  11519. # Strip MF so we end up with the name of the file.
  11520. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11521. # Check whether this is an Automake generated Makefile or not.
  11522. # We used to match only the files named `Makefile.in', but
  11523. # some people rename them; so instead we look at the file content.
  11524. # Grep'ing the first line is not enough: some people post-process
  11525. # each Makefile.in and add a new line on top of each file to say so.
  11526. # So let's grep whole file.
  11527. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  11528. dirpart=`(dirname "$mf") 2>/dev/null ||
  11529. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11530. X"$mf" : 'X\(//\)[^/]' \| \
  11531. X"$mf" : 'X\(//\)$' \| \
  11532. X"$mf" : 'X\(/\)' \| \
  11533. . : '\(.\)' 2>/dev/null ||
  11534. echo X"$mf" |
  11535. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11536. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11537. /^X\(\/\/\)$/{ s//\1/; q; }
  11538. /^X\(\/\).*/{ s//\1/; q; }
  11539. s/.*/./; q'`
  11540. else
  11541. continue
  11542. fi
  11543. # Extract the definition of DEPDIR, am__include, and am__quote
  11544. # from the Makefile without running `make'.
  11545. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11546. test -z "$DEPDIR" && continue
  11547. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11548. test -z "am__include" && continue
  11549. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11550. # When using ansi2knr, U may be empty or an underscore; expand it
  11551. U=`sed -n 's/^U = //p' < "$mf"`
  11552. # Find all dependency output files, they are included files with
  11553. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11554. # simplest approach to changing $(DEPDIR) to its actual value in the
  11555. # expansion.
  11556. for file in `sed -n "
  11557. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11558. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11559. # Make sure the directory exists.
  11560. test -f "$dirpart/$file" && continue
  11561. fdir=`(dirname "$file") 2>/dev/null ||
  11562. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11563. X"$file" : 'X\(//\)[^/]' \| \
  11564. X"$file" : 'X\(//\)$' \| \
  11565. X"$file" : 'X\(/\)' \| \
  11566. . : '\(.\)' 2>/dev/null ||
  11567. echo X"$file" |
  11568. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11569. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11570. /^X\(\/\/\)$/{ s//\1/; q; }
  11571. /^X\(\/\).*/{ s//\1/; q; }
  11572. s/.*/./; q'`
  11573. { if $as_mkdir_p; then
  11574. mkdir -p $dirpart/$fdir
  11575. else
  11576. as_dir=$dirpart/$fdir
  11577. as_dirs=
  11578. while test ! -d "$as_dir"; do
  11579. as_dirs="$as_dir $as_dirs"
  11580. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11581. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11582. X"$as_dir" : 'X\(//\)[^/]' \| \
  11583. X"$as_dir" : 'X\(//\)$' \| \
  11584. X"$as_dir" : 'X\(/\)' \| \
  11585. . : '\(.\)' 2>/dev/null ||
  11586. echo X"$as_dir" |
  11587. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11588. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11589. /^X\(\/\/\)$/{ s//\1/; q; }
  11590. /^X\(\/\).*/{ s//\1/; q; }
  11591. s/.*/./; q'`
  11592. done
  11593. test ! -n "$as_dirs" || mkdir $as_dirs
  11594. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  11595. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  11596. { (exit 1); exit 1; }; }; }
  11597. # echo "creating $dirpart/$file"
  11598. echo '# dummy' > "$dirpart/$file"
  11599. done
  11600. done
  11601. ;;
  11602. default-1 )
  11603. for ac_file in $CONFIG_FILES; do
  11604. # Support "outfile[:infile[:infile...]]"
  11605. case "$ac_file" in
  11606. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11607. esac
  11608. # PO directories have a Makefile.in generated from Makefile.in.in.
  11609. case "$ac_file" in */Makefile.in)
  11610. # Adjust a relative srcdir.
  11611. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  11612. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  11613. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  11614. # In autoconf-2.13 it is called $ac_given_srcdir.
  11615. # In autoconf-2.50 it is called $srcdir.
  11616. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  11617. case "$ac_given_srcdir" in
  11618. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  11619. /*) top_srcdir="$ac_given_srcdir" ;;
  11620. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11621. esac
  11622. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  11623. rm -f "$ac_dir/POTFILES"
  11624. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  11625. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  11626. POMAKEFILEDEPS="POTFILES.in"
  11627. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  11628. # on $ac_dir but don't depend on user-specified configuration
  11629. # parameters.
  11630. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  11631. # The LINGUAS file contains the set of available languages.
  11632. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  11633. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  11634. fi
  11635. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  11636. # Hide the ALL_LINGUAS assigment from automake.
  11637. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  11638. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  11639. else
  11640. # The set of available languages was given in configure.in.
  11641. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  11642. fi
  11643. case "$ac_given_srcdir" in
  11644. .) srcdirpre= ;;
  11645. *) srcdirpre='$(srcdir)/' ;;
  11646. esac
  11647. POFILES=
  11648. GMOFILES=
  11649. UPDATEPOFILES=
  11650. DUMMYPOFILES=
  11651. for lang in $ALL_LINGUAS; do
  11652. POFILES="$POFILES $srcdirpre$lang.po"
  11653. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  11654. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  11655. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  11656. done
  11657. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  11658. # environment variable.
  11659. INST_LINGUAS=
  11660. if test -n "$ALL_LINGUAS"; then
  11661. for presentlang in $ALL_LINGUAS; do
  11662. useit=no
  11663. if test "%UNSET%" != "$LINGUAS"; then
  11664. desiredlanguages="$LINGUAS"
  11665. else
  11666. desiredlanguages="$ALL_LINGUAS"
  11667. fi
  11668. for desiredlang in $desiredlanguages; do
  11669. # Use the presentlang catalog if desiredlang is
  11670. # a. equal to presentlang, or
  11671. # b. a variant of presentlang (because in this case,
  11672. # presentlang can be used as a fallback for messages
  11673. # which are not translated in the desiredlang catalog).
  11674. case "$desiredlang" in
  11675. "$presentlang"*) useit=yes;;
  11676. esac
  11677. done
  11678. if test $useit = yes; then
  11679. INST_LINGUAS="$INST_LINGUAS $presentlang"
  11680. fi
  11681. done
  11682. fi
  11683. CATALOGS=
  11684. if test -n "$INST_LINGUAS"; then
  11685. for lang in $INST_LINGUAS; do
  11686. CATALOGS="$CATALOGS $lang.gmo"
  11687. done
  11688. fi
  11689. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  11690. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  11691. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  11692. if test -f "$f"; then
  11693. case "$f" in
  11694. *.orig | *.bak | *~) ;;
  11695. *) cat "$f" >> "$ac_dir/Makefile" ;;
  11696. esac
  11697. fi
  11698. done
  11699. fi
  11700. ;;
  11701. esac
  11702. done ;;
  11703. esac
  11704. done
  11705. _ACEOF
  11706. cat >>$CONFIG_STATUS <<\_ACEOF
  11707. { (exit 0); exit 0; }
  11708. _ACEOF
  11709. chmod +x $CONFIG_STATUS
  11710. ac_clean_files=$ac_clean_files_save
  11711. # configure is writing to config.log, and then calls config.status.
  11712. # config.status does its own redirection, appending to config.log.
  11713. # Unfortunately, on DOS this fails, as config.log is still kept open
  11714. # by configure, so config.status won't be able to write to it; its
  11715. # output is simply discarded. So we exec the FD to /dev/null,
  11716. # effectively closing config.log, so it can be properly (re)opened and
  11717. # appended to by config.status. When coming back to configure, we
  11718. # need to make the FD available again.
  11719. if test "$no_create" != yes; then
  11720. ac_cs_success=:
  11721. ac_config_status_args=
  11722. test "$silent" = yes &&
  11723. ac_config_status_args="$ac_config_status_args --quiet"
  11724. exec 5>/dev/null
  11725. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11726. exec 5>>config.log
  11727. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11728. # would make configure fail if this is the last instruction.
  11729. $ac_cs_success || { (exit 1); exit 1; }
  11730. fi