configure 388 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for aria2c 0.6.0.
  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.6.0'
  239. PACKAGE_STRING='aria2c 0.6.0'
  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 ENABLE_BITTORRENT_TRUE ENABLE_BITTORRENT_FALSE ENABLE_METALINK_TRUE ENABLE_METALINK_FALSE 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.6.0 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.6.0:";;
  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. --enable-bittorrent enable BitTorrent support. Default: yes
  756. --enable-metalink enable Metalink support. Default: yes
  757. --disable-dependency-tracking speeds up one-time build
  758. --enable-dependency-tracking do not reject slow dependency extractors
  759. --disable-xmltest Do not try to compile and run a test LIBXML program
  760. --disable-nls do not use Native Language Support
  761. --disable-rpath do not hardcode runtime library paths
  762. Optional Packages:
  763. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  764. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  765. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  766. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  767. --with-gnutls use gnutls library if installed. Default: yes
  768. --with-openssl use openssl library if installed. Default: yes
  769. --with-libxml2 use libxml2 library if installed. Default: yes
  770. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  771. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  772. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  773. --with-libgcrypt-prefix=PFX
  774. prefix where LIBGCRYPT is installed (optional)
  775. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  776. --with-gnu-ld assume the C compiler uses GNU ld default=no
  777. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  778. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  779. --with-included-gettext use the GNU gettext library included here
  780. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  781. --without-libintl-prefix don't search for libintl in includedir and libdir
  782. Some influential environment variables:
  783. CXX C++ compiler command
  784. CXXFLAGS C++ compiler flags
  785. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  786. nonstandard directory <lib dir>
  787. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  788. headers in a nonstandard directory <include dir>
  789. CC C compiler command
  790. CFLAGS C compiler flags
  791. CPP C preprocessor
  792. Use these variables to override the choices made by `configure' or to help
  793. it to find libraries and programs with nonstandard names/locations.
  794. Report bugs to <tujikawa@rednoah.com>.
  795. _ACEOF
  796. fi
  797. if test "$ac_init_help" = "recursive"; then
  798. # If there are subdirs, report their specific --help.
  799. ac_popdir=`pwd`
  800. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  801. test -d $ac_dir || continue
  802. ac_builddir=.
  803. if test "$ac_dir" != .; then
  804. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  805. # A "../" for each directory in $ac_dir_suffix.
  806. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  807. else
  808. ac_dir_suffix= ac_top_builddir=
  809. fi
  810. case $srcdir in
  811. .) # No --srcdir option. We are building in place.
  812. ac_srcdir=.
  813. if test -z "$ac_top_builddir"; then
  814. ac_top_srcdir=.
  815. else
  816. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  817. fi ;;
  818. [\\/]* | ?:[\\/]* ) # Absolute path.
  819. ac_srcdir=$srcdir$ac_dir_suffix;
  820. ac_top_srcdir=$srcdir ;;
  821. *) # Relative path.
  822. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  823. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  824. esac
  825. # Do not use `cd foo && pwd` to compute absolute paths, because
  826. # the directories may not exist.
  827. case `pwd` in
  828. .) ac_abs_builddir="$ac_dir";;
  829. *)
  830. case "$ac_dir" in
  831. .) ac_abs_builddir=`pwd`;;
  832. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  833. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  834. esac;;
  835. esac
  836. case $ac_abs_builddir in
  837. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  838. *)
  839. case ${ac_top_builddir}. in
  840. .) ac_abs_top_builddir=$ac_abs_builddir;;
  841. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  842. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  843. esac;;
  844. esac
  845. case $ac_abs_builddir in
  846. .) ac_abs_srcdir=$ac_srcdir;;
  847. *)
  848. case $ac_srcdir in
  849. .) ac_abs_srcdir=$ac_abs_builddir;;
  850. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  851. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  852. esac;;
  853. esac
  854. case $ac_abs_builddir in
  855. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  856. *)
  857. case $ac_top_srcdir in
  858. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  859. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  860. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  861. esac;;
  862. esac
  863. cd $ac_dir
  864. # Check for guested configure; otherwise get Cygnus style configure.
  865. if test -f $ac_srcdir/configure.gnu; then
  866. echo
  867. $SHELL $ac_srcdir/configure.gnu --help=recursive
  868. elif test -f $ac_srcdir/configure; then
  869. echo
  870. $SHELL $ac_srcdir/configure --help=recursive
  871. elif test -f $ac_srcdir/configure.ac ||
  872. test -f $ac_srcdir/configure.in; then
  873. echo
  874. $ac_configure --help
  875. else
  876. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  877. fi
  878. cd "$ac_popdir"
  879. done
  880. fi
  881. test -n "$ac_init_help" && exit 0
  882. if $ac_init_version; then
  883. cat <<\_ACEOF
  884. aria2c configure 0.6.0
  885. generated by GNU Autoconf 2.59
  886. Copyright (C) 2003 Free Software Foundation, Inc.
  887. This configure script is free software; the Free Software Foundation
  888. gives unlimited permission to copy, distribute and modify it.
  889. _ACEOF
  890. exit 0
  891. fi
  892. exec 5>config.log
  893. cat >&5 <<_ACEOF
  894. This file contains any messages produced by compilers while
  895. running configure, to aid debugging if configure makes a mistake.
  896. It was created by aria2c $as_me 0.6.0, which was
  897. generated by GNU Autoconf 2.59. Invocation command line was
  898. $ $0 $@
  899. _ACEOF
  900. {
  901. cat <<_ASUNAME
  902. ## --------- ##
  903. ## Platform. ##
  904. ## --------- ##
  905. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  906. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  907. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  908. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  909. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  910. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  911. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  912. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  913. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  914. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  915. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  916. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  917. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  918. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  919. _ASUNAME
  920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  921. for as_dir in $PATH
  922. do
  923. IFS=$as_save_IFS
  924. test -z "$as_dir" && as_dir=.
  925. echo "PATH: $as_dir"
  926. done
  927. } >&5
  928. cat >&5 <<_ACEOF
  929. ## ----------- ##
  930. ## Core tests. ##
  931. ## ----------- ##
  932. _ACEOF
  933. # Keep a trace of the command line.
  934. # Strip out --no-create and --no-recursion so they do not pile up.
  935. # Strip out --silent because we don't want to record it for future runs.
  936. # Also quote any args containing shell meta-characters.
  937. # Make two passes to allow for proper duplicate-argument suppression.
  938. ac_configure_args=
  939. ac_configure_args0=
  940. ac_configure_args1=
  941. ac_sep=
  942. ac_must_keep_next=false
  943. for ac_pass in 1 2
  944. do
  945. for ac_arg
  946. do
  947. case $ac_arg in
  948. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  949. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  950. | -silent | --silent | --silen | --sile | --sil)
  951. continue ;;
  952. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  953. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  954. esac
  955. case $ac_pass in
  956. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  957. 2)
  958. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  959. if test $ac_must_keep_next = true; then
  960. ac_must_keep_next=false # Got value, back to normal.
  961. else
  962. case $ac_arg in
  963. *=* | --config-cache | -C | -disable-* | --disable-* \
  964. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  965. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  966. | -with-* | --with-* | -without-* | --without-* | --x)
  967. case "$ac_configure_args0 " in
  968. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  969. esac
  970. ;;
  971. -* ) ac_must_keep_next=true ;;
  972. esac
  973. fi
  974. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  975. # Get rid of the leading space.
  976. ac_sep=" "
  977. ;;
  978. esac
  979. done
  980. done
  981. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  982. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  983. # When interrupted or exit'd, cleanup temporary files, and complete
  984. # config.log. We remove comments because anyway the quotes in there
  985. # would cause problems or look ugly.
  986. # WARNING: Be sure not to use single quotes in there, as some shells,
  987. # such as our DU 5.0 friend, will then `close' the trap.
  988. trap 'exit_status=$?
  989. # Save into config.log some information that might help in debugging.
  990. {
  991. echo
  992. cat <<\_ASBOX
  993. ## ---------------- ##
  994. ## Cache variables. ##
  995. ## ---------------- ##
  996. _ASBOX
  997. echo
  998. # The following way of writing the cache mishandles newlines in values,
  999. {
  1000. (set) 2>&1 |
  1001. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1002. *ac_space=\ *)
  1003. sed -n \
  1004. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1005. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1006. ;;
  1007. *)
  1008. sed -n \
  1009. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1010. ;;
  1011. esac;
  1012. }
  1013. echo
  1014. cat <<\_ASBOX
  1015. ## ----------------- ##
  1016. ## Output variables. ##
  1017. ## ----------------- ##
  1018. _ASBOX
  1019. echo
  1020. for ac_var in $ac_subst_vars
  1021. do
  1022. eval ac_val=$`echo $ac_var`
  1023. echo "$ac_var='"'"'$ac_val'"'"'"
  1024. done | sort
  1025. echo
  1026. if test -n "$ac_subst_files"; then
  1027. cat <<\_ASBOX
  1028. ## ------------- ##
  1029. ## Output files. ##
  1030. ## ------------- ##
  1031. _ASBOX
  1032. echo
  1033. for ac_var in $ac_subst_files
  1034. do
  1035. eval ac_val=$`echo $ac_var`
  1036. echo "$ac_var='"'"'$ac_val'"'"'"
  1037. done | sort
  1038. echo
  1039. fi
  1040. if test -s confdefs.h; then
  1041. cat <<\_ASBOX
  1042. ## ----------- ##
  1043. ## confdefs.h. ##
  1044. ## ----------- ##
  1045. _ASBOX
  1046. echo
  1047. sed "/^$/d" confdefs.h | sort
  1048. echo
  1049. fi
  1050. test "$ac_signal" != 0 &&
  1051. echo "$as_me: caught signal $ac_signal"
  1052. echo "$as_me: exit $exit_status"
  1053. } >&5
  1054. rm -f core *.core &&
  1055. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1056. exit $exit_status
  1057. ' 0
  1058. for ac_signal in 1 2 13 15; do
  1059. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1060. done
  1061. ac_signal=0
  1062. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1063. rm -rf conftest* confdefs.h
  1064. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1065. echo >confdefs.h
  1066. # Predefined preprocessor variables.
  1067. cat >>confdefs.h <<_ACEOF
  1068. #define PACKAGE_NAME "$PACKAGE_NAME"
  1069. _ACEOF
  1070. cat >>confdefs.h <<_ACEOF
  1071. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1072. _ACEOF
  1073. cat >>confdefs.h <<_ACEOF
  1074. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1075. _ACEOF
  1076. cat >>confdefs.h <<_ACEOF
  1077. #define PACKAGE_STRING "$PACKAGE_STRING"
  1078. _ACEOF
  1079. cat >>confdefs.h <<_ACEOF
  1080. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1081. _ACEOF
  1082. # Let the site file select an alternate cache file if it wants to.
  1083. # Prefer explicitly selected file to automatically selected ones.
  1084. if test -z "$CONFIG_SITE"; then
  1085. if test "x$prefix" != xNONE; then
  1086. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1087. else
  1088. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1089. fi
  1090. fi
  1091. for ac_site_file in $CONFIG_SITE; do
  1092. if test -r "$ac_site_file"; then
  1093. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1094. echo "$as_me: loading site script $ac_site_file" >&6;}
  1095. sed 's/^/| /' "$ac_site_file" >&5
  1096. . "$ac_site_file"
  1097. fi
  1098. done
  1099. if test -r "$cache_file"; then
  1100. # Some versions of bash will fail to source /dev/null (special
  1101. # files actually), so we avoid doing that.
  1102. if test -f "$cache_file"; then
  1103. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1104. echo "$as_me: loading cache $cache_file" >&6;}
  1105. case $cache_file in
  1106. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1107. *) . ./$cache_file;;
  1108. esac
  1109. fi
  1110. else
  1111. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1112. echo "$as_me: creating cache $cache_file" >&6;}
  1113. >$cache_file
  1114. fi
  1115. # Check that the precious variables saved in the cache have kept the same
  1116. # value.
  1117. ac_cache_corrupted=false
  1118. for ac_var in `(set) 2>&1 |
  1119. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1120. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1121. eval ac_new_set=\$ac_env_${ac_var}_set
  1122. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1123. eval ac_new_val="\$ac_env_${ac_var}_value"
  1124. case $ac_old_set,$ac_new_set in
  1125. set,)
  1126. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1127. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1128. ac_cache_corrupted=: ;;
  1129. ,set)
  1130. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1131. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1132. ac_cache_corrupted=: ;;
  1133. ,);;
  1134. *)
  1135. if test "x$ac_old_val" != "x$ac_new_val"; then
  1136. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1137. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1138. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1139. echo "$as_me: former value: $ac_old_val" >&2;}
  1140. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1141. echo "$as_me: current value: $ac_new_val" >&2;}
  1142. ac_cache_corrupted=:
  1143. fi;;
  1144. esac
  1145. # Pass precious variables to config.status.
  1146. if test "$ac_new_set" = set; then
  1147. case $ac_new_val in
  1148. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1149. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1150. *) ac_arg=$ac_var=$ac_new_val ;;
  1151. esac
  1152. case " $ac_configure_args " in
  1153. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1154. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1155. esac
  1156. fi
  1157. done
  1158. if $ac_cache_corrupted; then
  1159. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1160. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1161. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1162. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1163. { (exit 1); exit 1; }; }
  1164. fi
  1165. ac_ext=c
  1166. ac_cpp='$CPP $CPPFLAGS'
  1167. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1168. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1169. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1170. am__api_version="1.9"
  1171. ac_aux_dir=
  1172. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1173. if test -f $ac_dir/install-sh; then
  1174. ac_aux_dir=$ac_dir
  1175. ac_install_sh="$ac_aux_dir/install-sh -c"
  1176. break
  1177. elif test -f $ac_dir/install.sh; then
  1178. ac_aux_dir=$ac_dir
  1179. ac_install_sh="$ac_aux_dir/install.sh -c"
  1180. break
  1181. elif test -f $ac_dir/shtool; then
  1182. ac_aux_dir=$ac_dir
  1183. ac_install_sh="$ac_aux_dir/shtool install -c"
  1184. break
  1185. fi
  1186. done
  1187. if test -z "$ac_aux_dir"; then
  1188. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1189. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1190. { (exit 1); exit 1; }; }
  1191. fi
  1192. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1193. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1194. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1195. # Find a good install program. We prefer a C program (faster),
  1196. # so one script is as good as another. But avoid the broken or
  1197. # incompatible versions:
  1198. # SysV /etc/install, /usr/sbin/install
  1199. # SunOS /usr/etc/install
  1200. # IRIX /sbin/install
  1201. # AIX /bin/install
  1202. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1203. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1204. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1205. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1206. # OS/2's system install, which has a completely different semantic
  1207. # ./install, which can be erroneously created by make from ./install.sh.
  1208. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1209. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1210. if test -z "$INSTALL"; then
  1211. if test "${ac_cv_path_install+set}" = set; then
  1212. echo $ECHO_N "(cached) $ECHO_C" >&6
  1213. else
  1214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1215. for as_dir in $PATH
  1216. do
  1217. IFS=$as_save_IFS
  1218. test -z "$as_dir" && as_dir=.
  1219. # Account for people who put trailing slashes in PATH elements.
  1220. case $as_dir/ in
  1221. ./ | .// | /cC/* | \
  1222. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1223. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1224. /usr/ucb/* ) ;;
  1225. *)
  1226. # OSF1 and SCO ODT 3.0 have their own names for install.
  1227. # Don't use installbsd from OSF since it installs stuff as root
  1228. # by default.
  1229. for ac_prog in ginstall scoinst install; do
  1230. for ac_exec_ext in '' $ac_executable_extensions; do
  1231. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1232. if test $ac_prog = install &&
  1233. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1234. # AIX install. It has an incompatible calling convention.
  1235. :
  1236. elif test $ac_prog = install &&
  1237. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1238. # program-specific install script used by HP pwplus--don't use.
  1239. :
  1240. else
  1241. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1242. break 3
  1243. fi
  1244. fi
  1245. done
  1246. done
  1247. ;;
  1248. esac
  1249. done
  1250. fi
  1251. if test "${ac_cv_path_install+set}" = set; then
  1252. INSTALL=$ac_cv_path_install
  1253. else
  1254. # As a last resort, use the slow shell script. We don't cache a
  1255. # path for INSTALL within a source directory, because that will
  1256. # break other packages using the cache if that directory is
  1257. # removed, or if the path is relative.
  1258. INSTALL=$ac_install_sh
  1259. fi
  1260. fi
  1261. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1262. echo "${ECHO_T}$INSTALL" >&6
  1263. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1264. # It thinks the first close brace ends the variable substitution.
  1265. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1266. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1267. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1268. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1269. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1270. # Just in case
  1271. sleep 1
  1272. echo timestamp > conftest.file
  1273. # Do `set' in a subshell so we don't clobber the current shell's
  1274. # arguments. Must try -L first in case configure is actually a
  1275. # symlink; some systems play weird games with the mod time of symlinks
  1276. # (eg FreeBSD returns the mod time of the symlink's containing
  1277. # directory).
  1278. if (
  1279. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1280. if test "$*" = "X"; then
  1281. # -L didn't work.
  1282. set X `ls -t $srcdir/configure conftest.file`
  1283. fi
  1284. rm -f conftest.file
  1285. if test "$*" != "X $srcdir/configure conftest.file" \
  1286. && test "$*" != "X conftest.file $srcdir/configure"; then
  1287. # If neither matched, then we have a broken ls. This can happen
  1288. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1289. # broken ls alias from the environment. This has actually
  1290. # happened. Such a system could not be considered "sane".
  1291. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1292. alias in your environment" >&5
  1293. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1294. alias in your environment" >&2;}
  1295. { (exit 1); exit 1; }; }
  1296. fi
  1297. test "$2" = conftest.file
  1298. )
  1299. then
  1300. # Ok.
  1301. :
  1302. else
  1303. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1304. Check your system clock" >&5
  1305. echo "$as_me: error: newly created file is older than distributed files!
  1306. Check your system clock" >&2;}
  1307. { (exit 1); exit 1; }; }
  1308. fi
  1309. echo "$as_me:$LINENO: result: yes" >&5
  1310. echo "${ECHO_T}yes" >&6
  1311. test "$program_prefix" != NONE &&
  1312. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1313. # Use a double $ so make ignores it.
  1314. test "$program_suffix" != NONE &&
  1315. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1316. # Double any \ or $. echo might interpret backslashes.
  1317. # By default was `s,x,x', remove it if useless.
  1318. cat <<\_ACEOF >conftest.sed
  1319. s/[\\$]/&&/g;s/;s,x,x,$//
  1320. _ACEOF
  1321. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1322. rm conftest.sed
  1323. # expand $ac_aux_dir to an absolute path
  1324. am_aux_dir=`cd $ac_aux_dir && pwd`
  1325. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1326. # Use eval to expand $SHELL
  1327. if eval "$MISSING --run true"; then
  1328. am_missing_run="$MISSING --run "
  1329. else
  1330. am_missing_run=
  1331. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1332. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1333. fi
  1334. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1335. # We used to keeping the `.' as first argument, in order to
  1336. # allow $(mkdir_p) to be used without argument. As in
  1337. # $(mkdir_p) $(somedir)
  1338. # where $(somedir) is conditionally defined. However this is wrong
  1339. # for two reasons:
  1340. # 1. if the package is installed by a user who cannot write `.'
  1341. # make install will fail,
  1342. # 2. the above comment should most certainly read
  1343. # $(mkdir_p) $(DESTDIR)$(somedir)
  1344. # so it does not work when $(somedir) is undefined and
  1345. # $(DESTDIR) is not.
  1346. # To support the latter case, we have to write
  1347. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1348. # so the `.' trick is pointless.
  1349. mkdir_p='mkdir -p --'
  1350. else
  1351. # On NextStep and OpenStep, the `mkdir' command does not
  1352. # recognize any option. It will interpret all options as
  1353. # directories to create, and then abort because `.' already
  1354. # exists.
  1355. for d in ./-p ./--version;
  1356. do
  1357. test -d $d && rmdir $d
  1358. done
  1359. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1360. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1361. mkdir_p='$(mkinstalldirs)'
  1362. else
  1363. mkdir_p='$(install_sh) -d'
  1364. fi
  1365. fi
  1366. for ac_prog in gawk mawk nawk awk
  1367. do
  1368. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1369. set dummy $ac_prog; ac_word=$2
  1370. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1371. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1372. if test "${ac_cv_prog_AWK+set}" = set; then
  1373. echo $ECHO_N "(cached) $ECHO_C" >&6
  1374. else
  1375. if test -n "$AWK"; then
  1376. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1377. else
  1378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1379. for as_dir in $PATH
  1380. do
  1381. IFS=$as_save_IFS
  1382. test -z "$as_dir" && as_dir=.
  1383. for ac_exec_ext in '' $ac_executable_extensions; do
  1384. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1385. ac_cv_prog_AWK="$ac_prog"
  1386. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1387. break 2
  1388. fi
  1389. done
  1390. done
  1391. fi
  1392. fi
  1393. AWK=$ac_cv_prog_AWK
  1394. if test -n "$AWK"; then
  1395. echo "$as_me:$LINENO: result: $AWK" >&5
  1396. echo "${ECHO_T}$AWK" >&6
  1397. else
  1398. echo "$as_me:$LINENO: result: no" >&5
  1399. echo "${ECHO_T}no" >&6
  1400. fi
  1401. test -n "$AWK" && break
  1402. done
  1403. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1404. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1405. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1406. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1407. echo $ECHO_N "(cached) $ECHO_C" >&6
  1408. else
  1409. cat >conftest.make <<\_ACEOF
  1410. all:
  1411. @echo 'ac_maketemp="$(MAKE)"'
  1412. _ACEOF
  1413. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1414. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1415. if test -n "$ac_maketemp"; then
  1416. eval ac_cv_prog_make_${ac_make}_set=yes
  1417. else
  1418. eval ac_cv_prog_make_${ac_make}_set=no
  1419. fi
  1420. rm -f conftest.make
  1421. fi
  1422. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1423. echo "$as_me:$LINENO: result: yes" >&5
  1424. echo "${ECHO_T}yes" >&6
  1425. SET_MAKE=
  1426. else
  1427. echo "$as_me:$LINENO: result: no" >&5
  1428. echo "${ECHO_T}no" >&6
  1429. SET_MAKE="MAKE=${MAKE-make}"
  1430. fi
  1431. rm -rf .tst 2>/dev/null
  1432. mkdir .tst 2>/dev/null
  1433. if test -d .tst; then
  1434. am__leading_dot=.
  1435. else
  1436. am__leading_dot=_
  1437. fi
  1438. rmdir .tst 2>/dev/null
  1439. # test to see if srcdir already configured
  1440. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1441. test -f $srcdir/config.status; then
  1442. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1443. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1444. { (exit 1); exit 1; }; }
  1445. fi
  1446. # test whether we have cygpath
  1447. if test -z "$CYGPATH_W"; then
  1448. if (cygpath --version) >/dev/null 2>/dev/null; then
  1449. CYGPATH_W='cygpath -w'
  1450. else
  1451. CYGPATH_W=echo
  1452. fi
  1453. fi
  1454. # Define the identity of the package.
  1455. PACKAGE='aria2c'
  1456. VERSION='0.6.0'
  1457. cat >>confdefs.h <<_ACEOF
  1458. #define PACKAGE "$PACKAGE"
  1459. _ACEOF
  1460. cat >>confdefs.h <<_ACEOF
  1461. #define VERSION "$VERSION"
  1462. _ACEOF
  1463. # Some tools Automake needs.
  1464. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1465. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1466. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1467. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1468. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1469. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1470. # Installed binaries are usually stripped using `strip' when the user
  1471. # run `make install-strip'. However `strip' might not be the right
  1472. # tool to use in cross-compilation environments, therefore Automake
  1473. # will honor the `STRIP' environment variable to overrule this program.
  1474. if test "$cross_compiling" != no; then
  1475. if test -n "$ac_tool_prefix"; then
  1476. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1477. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1478. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1479. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1480. if test "${ac_cv_prog_STRIP+set}" = set; then
  1481. echo $ECHO_N "(cached) $ECHO_C" >&6
  1482. else
  1483. if test -n "$STRIP"; then
  1484. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1485. else
  1486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1487. for as_dir in $PATH
  1488. do
  1489. IFS=$as_save_IFS
  1490. test -z "$as_dir" && as_dir=.
  1491. for ac_exec_ext in '' $ac_executable_extensions; do
  1492. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1493. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1494. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1495. break 2
  1496. fi
  1497. done
  1498. done
  1499. fi
  1500. fi
  1501. STRIP=$ac_cv_prog_STRIP
  1502. if test -n "$STRIP"; then
  1503. echo "$as_me:$LINENO: result: $STRIP" >&5
  1504. echo "${ECHO_T}$STRIP" >&6
  1505. else
  1506. echo "$as_me:$LINENO: result: no" >&5
  1507. echo "${ECHO_T}no" >&6
  1508. fi
  1509. fi
  1510. if test -z "$ac_cv_prog_STRIP"; then
  1511. ac_ct_STRIP=$STRIP
  1512. # Extract the first word of "strip", so it can be a program name with args.
  1513. set dummy strip; ac_word=$2
  1514. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1515. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1516. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1517. echo $ECHO_N "(cached) $ECHO_C" >&6
  1518. else
  1519. if test -n "$ac_ct_STRIP"; then
  1520. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1521. else
  1522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1523. for as_dir in $PATH
  1524. do
  1525. IFS=$as_save_IFS
  1526. test -z "$as_dir" && as_dir=.
  1527. for ac_exec_ext in '' $ac_executable_extensions; do
  1528. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1529. ac_cv_prog_ac_ct_STRIP="strip"
  1530. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1531. break 2
  1532. fi
  1533. done
  1534. done
  1535. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1536. fi
  1537. fi
  1538. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1539. if test -n "$ac_ct_STRIP"; then
  1540. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1541. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1542. else
  1543. echo "$as_me:$LINENO: result: no" >&5
  1544. echo "${ECHO_T}no" >&6
  1545. fi
  1546. STRIP=$ac_ct_STRIP
  1547. else
  1548. STRIP="$ac_cv_prog_STRIP"
  1549. fi
  1550. fi
  1551. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1552. # We need awk for the "check" target. The system "awk" is bad on
  1553. # some platforms.
  1554. # Always define AMTAR for backward compatibility.
  1555. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1556. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1557. # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
  1558. if test "${with_cppunit_prefix+set}" = set; then
  1559. withval="$with_cppunit_prefix"
  1560. cppunit_config_prefix="$withval"
  1561. else
  1562. cppunit_config_prefix=""
  1563. fi;
  1564. # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
  1565. if test "${with_cppunit_exec_prefix+set}" = set; then
  1566. withval="$with_cppunit_exec_prefix"
  1567. cppunit_config_exec_prefix="$withval"
  1568. else
  1569. cppunit_config_exec_prefix=""
  1570. fi;
  1571. if test x$cppunit_config_exec_prefix != x ; then
  1572. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  1573. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1574. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  1575. fi
  1576. fi
  1577. if test x$cppunit_config_prefix != x ; then
  1578. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  1579. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1580. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  1581. fi
  1582. fi
  1583. # Extract the first word of "cppunit-config", so it can be a program name with args.
  1584. set dummy cppunit-config; ac_word=$2
  1585. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1586. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1587. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  1588. echo $ECHO_N "(cached) $ECHO_C" >&6
  1589. else
  1590. case $CPPUNIT_CONFIG in
  1591. [\\/]* | ?:[\\/]*)
  1592. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  1593. ;;
  1594. *)
  1595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1596. for as_dir in $PATH
  1597. do
  1598. IFS=$as_save_IFS
  1599. test -z "$as_dir" && as_dir=.
  1600. for ac_exec_ext in '' $ac_executable_extensions; do
  1601. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1602. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  1603. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1604. break 2
  1605. fi
  1606. done
  1607. done
  1608. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  1609. ;;
  1610. esac
  1611. fi
  1612. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  1613. if test -n "$CPPUNIT_CONFIG"; then
  1614. echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  1615. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
  1616. else
  1617. echo "$as_me:$LINENO: result: no" >&5
  1618. echo "${ECHO_T}no" >&6
  1619. fi
  1620. cppunit_version_min=1.10.2
  1621. echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  1622. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
  1623. no_cppunit=""
  1624. if test "$CPPUNIT_CONFIG" = "no" ; then
  1625. no_cppunit=yes
  1626. else
  1627. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  1628. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  1629. cppunit_version=`$CPPUNIT_CONFIG --version`
  1630. cppunit_major_version=`echo $cppunit_version | \
  1631. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1632. cppunit_minor_version=`echo $cppunit_version | \
  1633. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1634. cppunit_micro_version=`echo $cppunit_version | \
  1635. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1636. cppunit_major_min=`echo $cppunit_version_min | \
  1637. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1638. cppunit_minor_min=`echo $cppunit_version_min | \
  1639. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1640. cppunit_micro_min=`echo $cppunit_version_min | \
  1641. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1642. cppunit_version_proper=`expr \
  1643. $cppunit_major_version \> $cppunit_major_min \| \
  1644. $cppunit_major_version \= $cppunit_major_min \& \
  1645. $cppunit_minor_version \> $cppunit_minor_min \| \
  1646. $cppunit_major_version \= $cppunit_major_min \& \
  1647. $cppunit_minor_version \= $cppunit_minor_min \& \
  1648. $cppunit_micro_version \>= $cppunit_micro_min `
  1649. if test "$cppunit_version_proper" = "1" ; then
  1650. echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  1651. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
  1652. else
  1653. echo "$as_me:$LINENO: result: no" >&5
  1654. echo "${ECHO_T}no" >&6
  1655. no_cppunit=yes
  1656. fi
  1657. fi
  1658. if test "x$no_cppunit" = x ; then
  1659. :
  1660. else
  1661. CPPUNIT_CFLAGS=""
  1662. CPPUNIT_LIBS=""
  1663. :
  1664. fi
  1665. ac_config_headers="$ac_config_headers config.h"
  1666. # Set localedir
  1667. localedir=${datadir}/locale
  1668. # Checks for arguments.
  1669. # Check whether --with-gnutls or --without-gnutls was given.
  1670. if test "${with_gnutls+set}" = set; then
  1671. withval="$with_gnutls"
  1672. with_gnutls=$enableval
  1673. else
  1674. with_gnutls=yes
  1675. fi;
  1676. # Check whether --with-openssl or --without-openssl was given.
  1677. if test "${with_openssl+set}" = set; then
  1678. withval="$with_openssl"
  1679. with_openssl=$enableval
  1680. else
  1681. with_openssl=yes
  1682. fi;
  1683. # Check whether --with-libxml2 or --without-libxml2 was given.
  1684. if test "${with_libxml2+set}" = set; then
  1685. withval="$with_libxml2"
  1686. with_libxml2=$enableval
  1687. else
  1688. with_libxml2=yes
  1689. fi;
  1690. # Check whether --enable-bittorrent or --disable-bittorrent was given.
  1691. if test "${enable_bittorrent+set}" = set; then
  1692. enableval="$enable_bittorrent"
  1693. enable_bittorrent=$enableval
  1694. else
  1695. enable_bittorrent=yes
  1696. fi;
  1697. # Check whether --enable-metalink or --disable-metalink was given.
  1698. if test "${enable_metalink+set}" = set; then
  1699. enableval="$enable_metalink"
  1700. enable_metalink=$enableval
  1701. else
  1702. enable_metalink=yes
  1703. fi;
  1704. # Checks for programs.
  1705. ac_ext=cc
  1706. ac_cpp='$CXXCPP $CPPFLAGS'
  1707. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1708. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1709. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1710. if test -n "$ac_tool_prefix"; then
  1711. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1712. do
  1713. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1714. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1715. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1716. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1717. if test "${ac_cv_prog_CXX+set}" = set; then
  1718. echo $ECHO_N "(cached) $ECHO_C" >&6
  1719. else
  1720. if test -n "$CXX"; then
  1721. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1722. else
  1723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1724. for as_dir in $PATH
  1725. do
  1726. IFS=$as_save_IFS
  1727. test -z "$as_dir" && as_dir=.
  1728. for ac_exec_ext in '' $ac_executable_extensions; do
  1729. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1730. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1731. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1732. break 2
  1733. fi
  1734. done
  1735. done
  1736. fi
  1737. fi
  1738. CXX=$ac_cv_prog_CXX
  1739. if test -n "$CXX"; then
  1740. echo "$as_me:$LINENO: result: $CXX" >&5
  1741. echo "${ECHO_T}$CXX" >&6
  1742. else
  1743. echo "$as_me:$LINENO: result: no" >&5
  1744. echo "${ECHO_T}no" >&6
  1745. fi
  1746. test -n "$CXX" && break
  1747. done
  1748. fi
  1749. if test -z "$CXX"; then
  1750. ac_ct_CXX=$CXX
  1751. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1752. do
  1753. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1754. set dummy $ac_prog; ac_word=$2
  1755. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1756. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1757. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1758. echo $ECHO_N "(cached) $ECHO_C" >&6
  1759. else
  1760. if test -n "$ac_ct_CXX"; then
  1761. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1762. else
  1763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1764. for as_dir in $PATH
  1765. do
  1766. IFS=$as_save_IFS
  1767. test -z "$as_dir" && as_dir=.
  1768. for ac_exec_ext in '' $ac_executable_extensions; do
  1769. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1770. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1771. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1772. break 2
  1773. fi
  1774. done
  1775. done
  1776. fi
  1777. fi
  1778. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1779. if test -n "$ac_ct_CXX"; then
  1780. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1781. echo "${ECHO_T}$ac_ct_CXX" >&6
  1782. else
  1783. echo "$as_me:$LINENO: result: no" >&5
  1784. echo "${ECHO_T}no" >&6
  1785. fi
  1786. test -n "$ac_ct_CXX" && break
  1787. done
  1788. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1789. CXX=$ac_ct_CXX
  1790. fi
  1791. # Provide some information about the compiler.
  1792. echo "$as_me:$LINENO:" \
  1793. "checking for C++ compiler version" >&5
  1794. ac_compiler=`set X $ac_compile; echo $2`
  1795. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1796. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1797. ac_status=$?
  1798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1799. (exit $ac_status); }
  1800. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1801. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1802. ac_status=$?
  1803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1804. (exit $ac_status); }
  1805. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1806. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1807. ac_status=$?
  1808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1809. (exit $ac_status); }
  1810. cat >conftest.$ac_ext <<_ACEOF
  1811. /* confdefs.h. */
  1812. _ACEOF
  1813. cat confdefs.h >>conftest.$ac_ext
  1814. cat >>conftest.$ac_ext <<_ACEOF
  1815. /* end confdefs.h. */
  1816. int
  1817. main ()
  1818. {
  1819. ;
  1820. return 0;
  1821. }
  1822. _ACEOF
  1823. ac_clean_files_save=$ac_clean_files
  1824. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1825. # Try to create an executable without -o first, disregard a.out.
  1826. # It will help us diagnose broken compilers, and finding out an intuition
  1827. # of exeext.
  1828. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1829. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1830. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1831. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1832. (eval $ac_link_default) 2>&5
  1833. ac_status=$?
  1834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1835. (exit $ac_status); }; then
  1836. # Find the output, starting from the most likely. This scheme is
  1837. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1838. # resort.
  1839. # Be careful to initialize this variable, since it used to be cached.
  1840. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1841. ac_cv_exeext=
  1842. # b.out is created by i960 compilers.
  1843. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1844. do
  1845. test -f "$ac_file" || continue
  1846. case $ac_file in
  1847. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1848. ;;
  1849. conftest.$ac_ext )
  1850. # This is the source file.
  1851. ;;
  1852. [ab].out )
  1853. # We found the default executable, but exeext='' is most
  1854. # certainly right.
  1855. break;;
  1856. *.* )
  1857. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1858. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1859. # but it would be cool to find out if it's true. Does anybody
  1860. # maintain Libtool? --akim.
  1861. export ac_cv_exeext
  1862. break;;
  1863. * )
  1864. break;;
  1865. esac
  1866. done
  1867. else
  1868. echo "$as_me: failed program was:" >&5
  1869. sed 's/^/| /' conftest.$ac_ext >&5
  1870. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1871. See \`config.log' for more details." >&5
  1872. echo "$as_me: error: C++ compiler cannot create executables
  1873. See \`config.log' for more details." >&2;}
  1874. { (exit 77); exit 77; }; }
  1875. fi
  1876. ac_exeext=$ac_cv_exeext
  1877. echo "$as_me:$LINENO: result: $ac_file" >&5
  1878. echo "${ECHO_T}$ac_file" >&6
  1879. # Check the compiler produces executables we can run. If not, either
  1880. # the compiler is broken, or we cross compile.
  1881. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1882. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1883. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1884. # If not cross compiling, check that we can run a simple program.
  1885. if test "$cross_compiling" != yes; then
  1886. if { ac_try='./$ac_file'
  1887. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1888. (eval $ac_try) 2>&5
  1889. ac_status=$?
  1890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1891. (exit $ac_status); }; }; then
  1892. cross_compiling=no
  1893. else
  1894. if test "$cross_compiling" = maybe; then
  1895. cross_compiling=yes
  1896. else
  1897. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1898. If you meant to cross compile, use \`--host'.
  1899. See \`config.log' for more details." >&5
  1900. echo "$as_me: error: cannot run C++ compiled programs.
  1901. If you meant to cross compile, use \`--host'.
  1902. See \`config.log' for more details." >&2;}
  1903. { (exit 1); exit 1; }; }
  1904. fi
  1905. fi
  1906. fi
  1907. echo "$as_me:$LINENO: result: yes" >&5
  1908. echo "${ECHO_T}yes" >&6
  1909. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1910. ac_clean_files=$ac_clean_files_save
  1911. # Check the compiler produces executables we can run. If not, either
  1912. # the compiler is broken, or we cross compile.
  1913. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1914. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1915. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1916. echo "${ECHO_T}$cross_compiling" >&6
  1917. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1918. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1919. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1920. (eval $ac_link) 2>&5
  1921. ac_status=$?
  1922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1923. (exit $ac_status); }; then
  1924. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1925. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1926. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1927. # `rm'.
  1928. for ac_file in conftest.exe conftest conftest.*; do
  1929. test -f "$ac_file" || continue
  1930. case $ac_file in
  1931. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1932. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1933. export ac_cv_exeext
  1934. break;;
  1935. * ) break;;
  1936. esac
  1937. done
  1938. else
  1939. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1940. See \`config.log' for more details." >&5
  1941. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1942. See \`config.log' for more details." >&2;}
  1943. { (exit 1); exit 1; }; }
  1944. fi
  1945. rm -f conftest$ac_cv_exeext
  1946. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1947. echo "${ECHO_T}$ac_cv_exeext" >&6
  1948. rm -f conftest.$ac_ext
  1949. EXEEXT=$ac_cv_exeext
  1950. ac_exeext=$EXEEXT
  1951. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1952. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1953. if test "${ac_cv_objext+set}" = set; then
  1954. echo $ECHO_N "(cached) $ECHO_C" >&6
  1955. else
  1956. cat >conftest.$ac_ext <<_ACEOF
  1957. /* confdefs.h. */
  1958. _ACEOF
  1959. cat confdefs.h >>conftest.$ac_ext
  1960. cat >>conftest.$ac_ext <<_ACEOF
  1961. /* end confdefs.h. */
  1962. int
  1963. main ()
  1964. {
  1965. ;
  1966. return 0;
  1967. }
  1968. _ACEOF
  1969. rm -f conftest.o conftest.obj
  1970. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1971. (eval $ac_compile) 2>&5
  1972. ac_status=$?
  1973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1974. (exit $ac_status); }; then
  1975. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1976. case $ac_file in
  1977. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1978. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1979. break;;
  1980. esac
  1981. done
  1982. else
  1983. echo "$as_me: failed program was:" >&5
  1984. sed 's/^/| /' conftest.$ac_ext >&5
  1985. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1986. See \`config.log' for more details." >&5
  1987. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1988. See \`config.log' for more details." >&2;}
  1989. { (exit 1); exit 1; }; }
  1990. fi
  1991. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1992. fi
  1993. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1994. echo "${ECHO_T}$ac_cv_objext" >&6
  1995. OBJEXT=$ac_cv_objext
  1996. ac_objext=$OBJEXT
  1997. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1998. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  1999. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2000. echo $ECHO_N "(cached) $ECHO_C" >&6
  2001. else
  2002. cat >conftest.$ac_ext <<_ACEOF
  2003. /* confdefs.h. */
  2004. _ACEOF
  2005. cat confdefs.h >>conftest.$ac_ext
  2006. cat >>conftest.$ac_ext <<_ACEOF
  2007. /* end confdefs.h. */
  2008. int
  2009. main ()
  2010. {
  2011. #ifndef __GNUC__
  2012. choke me
  2013. #endif
  2014. ;
  2015. return 0;
  2016. }
  2017. _ACEOF
  2018. rm -f conftest.$ac_objext
  2019. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2020. (eval $ac_compile) 2>conftest.er1
  2021. ac_status=$?
  2022. grep -v '^ *+' conftest.er1 >conftest.err
  2023. rm -f conftest.er1
  2024. cat conftest.err >&5
  2025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2026. (exit $ac_status); } &&
  2027. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2028. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2029. (eval $ac_try) 2>&5
  2030. ac_status=$?
  2031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2032. (exit $ac_status); }; } &&
  2033. { ac_try='test -s conftest.$ac_objext'
  2034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2035. (eval $ac_try) 2>&5
  2036. ac_status=$?
  2037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2038. (exit $ac_status); }; }; then
  2039. ac_compiler_gnu=yes
  2040. else
  2041. echo "$as_me: failed program was:" >&5
  2042. sed 's/^/| /' conftest.$ac_ext >&5
  2043. ac_compiler_gnu=no
  2044. fi
  2045. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2046. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2047. fi
  2048. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2049. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2050. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2051. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2052. ac_save_CXXFLAGS=$CXXFLAGS
  2053. CXXFLAGS="-g"
  2054. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2055. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2056. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2057. echo $ECHO_N "(cached) $ECHO_C" >&6
  2058. else
  2059. cat >conftest.$ac_ext <<_ACEOF
  2060. /* confdefs.h. */
  2061. _ACEOF
  2062. cat confdefs.h >>conftest.$ac_ext
  2063. cat >>conftest.$ac_ext <<_ACEOF
  2064. /* end confdefs.h. */
  2065. int
  2066. main ()
  2067. {
  2068. ;
  2069. return 0;
  2070. }
  2071. _ACEOF
  2072. rm -f conftest.$ac_objext
  2073. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2074. (eval $ac_compile) 2>conftest.er1
  2075. ac_status=$?
  2076. grep -v '^ *+' conftest.er1 >conftest.err
  2077. rm -f conftest.er1
  2078. cat conftest.err >&5
  2079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2080. (exit $ac_status); } &&
  2081. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2082. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2083. (eval $ac_try) 2>&5
  2084. ac_status=$?
  2085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2086. (exit $ac_status); }; } &&
  2087. { ac_try='test -s conftest.$ac_objext'
  2088. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2089. (eval $ac_try) 2>&5
  2090. ac_status=$?
  2091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2092. (exit $ac_status); }; }; then
  2093. ac_cv_prog_cxx_g=yes
  2094. else
  2095. echo "$as_me: failed program was:" >&5
  2096. sed 's/^/| /' conftest.$ac_ext >&5
  2097. ac_cv_prog_cxx_g=no
  2098. fi
  2099. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2100. fi
  2101. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2102. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2103. if test "$ac_test_CXXFLAGS" = set; then
  2104. CXXFLAGS=$ac_save_CXXFLAGS
  2105. elif test $ac_cv_prog_cxx_g = yes; then
  2106. if test "$GXX" = yes; then
  2107. CXXFLAGS="-g -O2"
  2108. else
  2109. CXXFLAGS="-g"
  2110. fi
  2111. else
  2112. if test "$GXX" = yes; then
  2113. CXXFLAGS="-O2"
  2114. else
  2115. CXXFLAGS=
  2116. fi
  2117. fi
  2118. for ac_declaration in \
  2119. '' \
  2120. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2121. 'extern "C" void std::exit (int); using std::exit;' \
  2122. 'extern "C" void exit (int) throw ();' \
  2123. 'extern "C" void exit (int);' \
  2124. 'void exit (int);'
  2125. do
  2126. cat >conftest.$ac_ext <<_ACEOF
  2127. /* confdefs.h. */
  2128. _ACEOF
  2129. cat confdefs.h >>conftest.$ac_ext
  2130. cat >>conftest.$ac_ext <<_ACEOF
  2131. /* end confdefs.h. */
  2132. $ac_declaration
  2133. #include <stdlib.h>
  2134. int
  2135. main ()
  2136. {
  2137. exit (42);
  2138. ;
  2139. return 0;
  2140. }
  2141. _ACEOF
  2142. rm -f conftest.$ac_objext
  2143. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2144. (eval $ac_compile) 2>conftest.er1
  2145. ac_status=$?
  2146. grep -v '^ *+' conftest.er1 >conftest.err
  2147. rm -f conftest.er1
  2148. cat conftest.err >&5
  2149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2150. (exit $ac_status); } &&
  2151. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2152. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2153. (eval $ac_try) 2>&5
  2154. ac_status=$?
  2155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2156. (exit $ac_status); }; } &&
  2157. { ac_try='test -s conftest.$ac_objext'
  2158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2159. (eval $ac_try) 2>&5
  2160. ac_status=$?
  2161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2162. (exit $ac_status); }; }; then
  2163. :
  2164. else
  2165. echo "$as_me: failed program was:" >&5
  2166. sed 's/^/| /' conftest.$ac_ext >&5
  2167. continue
  2168. fi
  2169. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2170. cat >conftest.$ac_ext <<_ACEOF
  2171. /* confdefs.h. */
  2172. _ACEOF
  2173. cat confdefs.h >>conftest.$ac_ext
  2174. cat >>conftest.$ac_ext <<_ACEOF
  2175. /* end confdefs.h. */
  2176. $ac_declaration
  2177. int
  2178. main ()
  2179. {
  2180. exit (42);
  2181. ;
  2182. return 0;
  2183. }
  2184. _ACEOF
  2185. rm -f conftest.$ac_objext
  2186. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2187. (eval $ac_compile) 2>conftest.er1
  2188. ac_status=$?
  2189. grep -v '^ *+' conftest.er1 >conftest.err
  2190. rm -f conftest.er1
  2191. cat conftest.err >&5
  2192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2193. (exit $ac_status); } &&
  2194. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2195. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2196. (eval $ac_try) 2>&5
  2197. ac_status=$?
  2198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2199. (exit $ac_status); }; } &&
  2200. { ac_try='test -s conftest.$ac_objext'
  2201. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2202. (eval $ac_try) 2>&5
  2203. ac_status=$?
  2204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2205. (exit $ac_status); }; }; then
  2206. break
  2207. else
  2208. echo "$as_me: failed program was:" >&5
  2209. sed 's/^/| /' conftest.$ac_ext >&5
  2210. fi
  2211. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2212. done
  2213. rm -f conftest*
  2214. if test -n "$ac_declaration"; then
  2215. echo '#ifdef __cplusplus' >>confdefs.h
  2216. echo $ac_declaration >>confdefs.h
  2217. echo '#endif' >>confdefs.h
  2218. fi
  2219. ac_ext=c
  2220. ac_cpp='$CPP $CPPFLAGS'
  2221. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2222. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2223. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2224. DEPDIR="${am__leading_dot}deps"
  2225. ac_config_commands="$ac_config_commands depfiles"
  2226. am_make=${MAKE-make}
  2227. cat > confinc << 'END'
  2228. am__doit:
  2229. @echo done
  2230. .PHONY: am__doit
  2231. END
  2232. # If we don't find an include directive, just comment out the code.
  2233. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2234. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2235. am__include="#"
  2236. am__quote=
  2237. _am_result=none
  2238. # First try GNU make style include.
  2239. echo "include confinc" > confmf
  2240. # We grep out `Entering directory' and `Leaving directory'
  2241. # messages which can occur if `w' ends up in MAKEFLAGS.
  2242. # In particular we don't look at `^make:' because GNU make might
  2243. # be invoked under some other name (usually "gmake"), in which
  2244. # case it prints its new name instead of `make'.
  2245. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2246. am__include=include
  2247. am__quote=
  2248. _am_result=GNU
  2249. fi
  2250. # Now try BSD make style include.
  2251. if test "$am__include" = "#"; then
  2252. echo '.include "confinc"' > confmf
  2253. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2254. am__include=.include
  2255. am__quote="\""
  2256. _am_result=BSD
  2257. fi
  2258. fi
  2259. echo "$as_me:$LINENO: result: $_am_result" >&5
  2260. echo "${ECHO_T}$_am_result" >&6
  2261. rm -f confinc confmf
  2262. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2263. if test "${enable_dependency_tracking+set}" = set; then
  2264. enableval="$enable_dependency_tracking"
  2265. fi;
  2266. if test "x$enable_dependency_tracking" != xno; then
  2267. am_depcomp="$ac_aux_dir/depcomp"
  2268. AMDEPBACKSLASH='\'
  2269. fi
  2270. if test "x$enable_dependency_tracking" != xno; then
  2271. AMDEP_TRUE=
  2272. AMDEP_FALSE='#'
  2273. else
  2274. AMDEP_TRUE='#'
  2275. AMDEP_FALSE=
  2276. fi
  2277. depcc="$CXX" am_compiler_list=
  2278. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2279. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2280. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2281. echo $ECHO_N "(cached) $ECHO_C" >&6
  2282. else
  2283. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2284. # We make a subdir and do the tests there. Otherwise we can end up
  2285. # making bogus files that we don't know about and never remove. For
  2286. # instance it was reported that on HP-UX the gcc test will end up
  2287. # making a dummy file named `D' -- because `-MD' means `put the output
  2288. # in D'.
  2289. mkdir conftest.dir
  2290. # Copy depcomp to subdir because otherwise we won't find it if we're
  2291. # using a relative directory.
  2292. cp "$am_depcomp" conftest.dir
  2293. cd conftest.dir
  2294. # We will build objects and dependencies in a subdirectory because
  2295. # it helps to detect inapplicable dependency modes. For instance
  2296. # both Tru64's cc and ICC support -MD to output dependencies as a
  2297. # side effect of compilation, but ICC will put the dependencies in
  2298. # the current directory while Tru64 will put them in the object
  2299. # directory.
  2300. mkdir sub
  2301. am_cv_CXX_dependencies_compiler_type=none
  2302. if test "$am_compiler_list" = ""; then
  2303. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2304. fi
  2305. for depmode in $am_compiler_list; do
  2306. # Setup a source with many dependencies, because some compilers
  2307. # like to wrap large dependency lists on column 80 (with \), and
  2308. # we should not choose a depcomp mode which is confused by this.
  2309. #
  2310. # We need to recreate these files for each test, as the compiler may
  2311. # overwrite some of them when testing with obscure command lines.
  2312. # This happens at least with the AIX C compiler.
  2313. : > sub/conftest.c
  2314. for i in 1 2 3 4 5 6; do
  2315. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2316. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2317. # Solaris 8's {/usr,}/bin/sh.
  2318. touch sub/conftst$i.h
  2319. done
  2320. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2321. case $depmode in
  2322. nosideeffect)
  2323. # after this tag, mechanisms are not by side-effect, so they'll
  2324. # only be used when explicitly requested
  2325. if test "x$enable_dependency_tracking" = xyes; then
  2326. continue
  2327. else
  2328. break
  2329. fi
  2330. ;;
  2331. none) break ;;
  2332. esac
  2333. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2334. # mode. It turns out that the SunPro C++ compiler does not properly
  2335. # handle `-M -o', and we need to detect this.
  2336. if depmode=$depmode \
  2337. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2338. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2339. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2340. >/dev/null 2>conftest.err &&
  2341. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2342. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2343. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2344. # icc doesn't choke on unknown options, it will just issue warnings
  2345. # or remarks (even with -Werror). So we grep stderr for any message
  2346. # that says an option was ignored or not supported.
  2347. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2348. # icc: Command line warning: ignoring option '-M'; no argument required
  2349. # The diagnosis changed in icc 8.0:
  2350. # icc: Command line remark: option '-MP' not supported
  2351. if (grep 'ignoring option' conftest.err ||
  2352. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2353. am_cv_CXX_dependencies_compiler_type=$depmode
  2354. break
  2355. fi
  2356. fi
  2357. done
  2358. cd ..
  2359. rm -rf conftest.dir
  2360. else
  2361. am_cv_CXX_dependencies_compiler_type=none
  2362. fi
  2363. fi
  2364. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2365. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2366. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2367. if
  2368. test "x$enable_dependency_tracking" != xno \
  2369. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2370. am__fastdepCXX_TRUE=
  2371. am__fastdepCXX_FALSE='#'
  2372. else
  2373. am__fastdepCXX_TRUE='#'
  2374. am__fastdepCXX_FALSE=
  2375. fi
  2376. ac_ext=c
  2377. ac_cpp='$CPP $CPPFLAGS'
  2378. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2379. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2380. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2381. if test -n "$ac_tool_prefix"; then
  2382. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2383. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2384. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2385. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2386. if test "${ac_cv_prog_CC+set}" = set; then
  2387. echo $ECHO_N "(cached) $ECHO_C" >&6
  2388. else
  2389. if test -n "$CC"; then
  2390. ac_cv_prog_CC="$CC" # Let the user override the test.
  2391. else
  2392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2393. for as_dir in $PATH
  2394. do
  2395. IFS=$as_save_IFS
  2396. test -z "$as_dir" && as_dir=.
  2397. for ac_exec_ext in '' $ac_executable_extensions; do
  2398. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2399. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2400. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2401. break 2
  2402. fi
  2403. done
  2404. done
  2405. fi
  2406. fi
  2407. CC=$ac_cv_prog_CC
  2408. if test -n "$CC"; then
  2409. echo "$as_me:$LINENO: result: $CC" >&5
  2410. echo "${ECHO_T}$CC" >&6
  2411. else
  2412. echo "$as_me:$LINENO: result: no" >&5
  2413. echo "${ECHO_T}no" >&6
  2414. fi
  2415. fi
  2416. if test -z "$ac_cv_prog_CC"; then
  2417. ac_ct_CC=$CC
  2418. # Extract the first word of "gcc", so it can be a program name with args.
  2419. set dummy gcc; ac_word=$2
  2420. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2421. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2422. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2423. echo $ECHO_N "(cached) $ECHO_C" >&6
  2424. else
  2425. if test -n "$ac_ct_CC"; then
  2426. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2427. else
  2428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2429. for as_dir in $PATH
  2430. do
  2431. IFS=$as_save_IFS
  2432. test -z "$as_dir" && as_dir=.
  2433. for ac_exec_ext in '' $ac_executable_extensions; do
  2434. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2435. ac_cv_prog_ac_ct_CC="gcc"
  2436. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2437. break 2
  2438. fi
  2439. done
  2440. done
  2441. fi
  2442. fi
  2443. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2444. if test -n "$ac_ct_CC"; then
  2445. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2446. echo "${ECHO_T}$ac_ct_CC" >&6
  2447. else
  2448. echo "$as_me:$LINENO: result: no" >&5
  2449. echo "${ECHO_T}no" >&6
  2450. fi
  2451. CC=$ac_ct_CC
  2452. else
  2453. CC="$ac_cv_prog_CC"
  2454. fi
  2455. if test -z "$CC"; then
  2456. if test -n "$ac_tool_prefix"; then
  2457. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2458. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2459. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2460. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2461. if test "${ac_cv_prog_CC+set}" = set; then
  2462. echo $ECHO_N "(cached) $ECHO_C" >&6
  2463. else
  2464. if test -n "$CC"; then
  2465. ac_cv_prog_CC="$CC" # Let the user override the test.
  2466. else
  2467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2468. for as_dir in $PATH
  2469. do
  2470. IFS=$as_save_IFS
  2471. test -z "$as_dir" && as_dir=.
  2472. for ac_exec_ext in '' $ac_executable_extensions; do
  2473. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2474. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2475. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2476. break 2
  2477. fi
  2478. done
  2479. done
  2480. fi
  2481. fi
  2482. CC=$ac_cv_prog_CC
  2483. if test -n "$CC"; then
  2484. echo "$as_me:$LINENO: result: $CC" >&5
  2485. echo "${ECHO_T}$CC" >&6
  2486. else
  2487. echo "$as_me:$LINENO: result: no" >&5
  2488. echo "${ECHO_T}no" >&6
  2489. fi
  2490. fi
  2491. if test -z "$ac_cv_prog_CC"; then
  2492. ac_ct_CC=$CC
  2493. # Extract the first word of "cc", so it can be a program name with args.
  2494. set dummy cc; ac_word=$2
  2495. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2496. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2497. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2498. echo $ECHO_N "(cached) $ECHO_C" >&6
  2499. else
  2500. if test -n "$ac_ct_CC"; then
  2501. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2502. else
  2503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2504. for as_dir in $PATH
  2505. do
  2506. IFS=$as_save_IFS
  2507. test -z "$as_dir" && as_dir=.
  2508. for ac_exec_ext in '' $ac_executable_extensions; do
  2509. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2510. ac_cv_prog_ac_ct_CC="cc"
  2511. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2512. break 2
  2513. fi
  2514. done
  2515. done
  2516. fi
  2517. fi
  2518. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2519. if test -n "$ac_ct_CC"; then
  2520. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2521. echo "${ECHO_T}$ac_ct_CC" >&6
  2522. else
  2523. echo "$as_me:$LINENO: result: no" >&5
  2524. echo "${ECHO_T}no" >&6
  2525. fi
  2526. CC=$ac_ct_CC
  2527. else
  2528. CC="$ac_cv_prog_CC"
  2529. fi
  2530. fi
  2531. if test -z "$CC"; then
  2532. # Extract the first word of "cc", so it can be a program name with args.
  2533. set dummy cc; ac_word=$2
  2534. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2535. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2536. if test "${ac_cv_prog_CC+set}" = set; then
  2537. echo $ECHO_N "(cached) $ECHO_C" >&6
  2538. else
  2539. if test -n "$CC"; then
  2540. ac_cv_prog_CC="$CC" # Let the user override the test.
  2541. else
  2542. ac_prog_rejected=no
  2543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2544. for as_dir in $PATH
  2545. do
  2546. IFS=$as_save_IFS
  2547. test -z "$as_dir" && as_dir=.
  2548. for ac_exec_ext in '' $ac_executable_extensions; do
  2549. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2550. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2551. ac_prog_rejected=yes
  2552. continue
  2553. fi
  2554. ac_cv_prog_CC="cc"
  2555. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2556. break 2
  2557. fi
  2558. done
  2559. done
  2560. if test $ac_prog_rejected = yes; then
  2561. # We found a bogon in the path, so make sure we never use it.
  2562. set dummy $ac_cv_prog_CC
  2563. shift
  2564. if test $# != 0; then
  2565. # We chose a different compiler from the bogus one.
  2566. # However, it has the same basename, so the bogon will be chosen
  2567. # first if we set CC to just the basename; use the full file name.
  2568. shift
  2569. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2570. fi
  2571. fi
  2572. fi
  2573. fi
  2574. CC=$ac_cv_prog_CC
  2575. if test -n "$CC"; then
  2576. echo "$as_me:$LINENO: result: $CC" >&5
  2577. echo "${ECHO_T}$CC" >&6
  2578. else
  2579. echo "$as_me:$LINENO: result: no" >&5
  2580. echo "${ECHO_T}no" >&6
  2581. fi
  2582. fi
  2583. if test -z "$CC"; then
  2584. if test -n "$ac_tool_prefix"; then
  2585. for ac_prog in cl
  2586. do
  2587. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2588. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2589. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2590. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2591. if test "${ac_cv_prog_CC+set}" = set; then
  2592. echo $ECHO_N "(cached) $ECHO_C" >&6
  2593. else
  2594. if test -n "$CC"; then
  2595. ac_cv_prog_CC="$CC" # Let the user override the test.
  2596. else
  2597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2598. for as_dir in $PATH
  2599. do
  2600. IFS=$as_save_IFS
  2601. test -z "$as_dir" && as_dir=.
  2602. for ac_exec_ext in '' $ac_executable_extensions; do
  2603. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2604. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2605. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2606. break 2
  2607. fi
  2608. done
  2609. done
  2610. fi
  2611. fi
  2612. CC=$ac_cv_prog_CC
  2613. if test -n "$CC"; then
  2614. echo "$as_me:$LINENO: result: $CC" >&5
  2615. echo "${ECHO_T}$CC" >&6
  2616. else
  2617. echo "$as_me:$LINENO: result: no" >&5
  2618. echo "${ECHO_T}no" >&6
  2619. fi
  2620. test -n "$CC" && break
  2621. done
  2622. fi
  2623. if test -z "$CC"; then
  2624. ac_ct_CC=$CC
  2625. for ac_prog in cl
  2626. do
  2627. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2628. set dummy $ac_prog; ac_word=$2
  2629. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2630. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2631. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2632. echo $ECHO_N "(cached) $ECHO_C" >&6
  2633. else
  2634. if test -n "$ac_ct_CC"; then
  2635. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2636. else
  2637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2638. for as_dir in $PATH
  2639. do
  2640. IFS=$as_save_IFS
  2641. test -z "$as_dir" && as_dir=.
  2642. for ac_exec_ext in '' $ac_executable_extensions; do
  2643. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2644. ac_cv_prog_ac_ct_CC="$ac_prog"
  2645. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2646. break 2
  2647. fi
  2648. done
  2649. done
  2650. fi
  2651. fi
  2652. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2653. if test -n "$ac_ct_CC"; then
  2654. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2655. echo "${ECHO_T}$ac_ct_CC" >&6
  2656. else
  2657. echo "$as_me:$LINENO: result: no" >&5
  2658. echo "${ECHO_T}no" >&6
  2659. fi
  2660. test -n "$ac_ct_CC" && break
  2661. done
  2662. CC=$ac_ct_CC
  2663. fi
  2664. fi
  2665. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2666. See \`config.log' for more details." >&5
  2667. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2668. See \`config.log' for more details." >&2;}
  2669. { (exit 1); exit 1; }; }
  2670. # Provide some information about the compiler.
  2671. echo "$as_me:$LINENO:" \
  2672. "checking for C compiler version" >&5
  2673. ac_compiler=`set X $ac_compile; echo $2`
  2674. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2675. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2676. ac_status=$?
  2677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2678. (exit $ac_status); }
  2679. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2680. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2681. ac_status=$?
  2682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2683. (exit $ac_status); }
  2684. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2685. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2686. ac_status=$?
  2687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2688. (exit $ac_status); }
  2689. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2690. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2691. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2692. echo $ECHO_N "(cached) $ECHO_C" >&6
  2693. else
  2694. cat >conftest.$ac_ext <<_ACEOF
  2695. /* confdefs.h. */
  2696. _ACEOF
  2697. cat confdefs.h >>conftest.$ac_ext
  2698. cat >>conftest.$ac_ext <<_ACEOF
  2699. /* end confdefs.h. */
  2700. int
  2701. main ()
  2702. {
  2703. #ifndef __GNUC__
  2704. choke me
  2705. #endif
  2706. ;
  2707. return 0;
  2708. }
  2709. _ACEOF
  2710. rm -f conftest.$ac_objext
  2711. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2712. (eval $ac_compile) 2>conftest.er1
  2713. ac_status=$?
  2714. grep -v '^ *+' conftest.er1 >conftest.err
  2715. rm -f conftest.er1
  2716. cat conftest.err >&5
  2717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2718. (exit $ac_status); } &&
  2719. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2720. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2721. (eval $ac_try) 2>&5
  2722. ac_status=$?
  2723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2724. (exit $ac_status); }; } &&
  2725. { ac_try='test -s conftest.$ac_objext'
  2726. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2727. (eval $ac_try) 2>&5
  2728. ac_status=$?
  2729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2730. (exit $ac_status); }; }; then
  2731. ac_compiler_gnu=yes
  2732. else
  2733. echo "$as_me: failed program was:" >&5
  2734. sed 's/^/| /' conftest.$ac_ext >&5
  2735. ac_compiler_gnu=no
  2736. fi
  2737. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2738. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2739. fi
  2740. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2741. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2742. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2743. ac_test_CFLAGS=${CFLAGS+set}
  2744. ac_save_CFLAGS=$CFLAGS
  2745. CFLAGS="-g"
  2746. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2747. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2748. if test "${ac_cv_prog_cc_g+set}" = set; then
  2749. echo $ECHO_N "(cached) $ECHO_C" >&6
  2750. else
  2751. cat >conftest.$ac_ext <<_ACEOF
  2752. /* confdefs.h. */
  2753. _ACEOF
  2754. cat confdefs.h >>conftest.$ac_ext
  2755. cat >>conftest.$ac_ext <<_ACEOF
  2756. /* end confdefs.h. */
  2757. int
  2758. main ()
  2759. {
  2760. ;
  2761. return 0;
  2762. }
  2763. _ACEOF
  2764. rm -f conftest.$ac_objext
  2765. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2766. (eval $ac_compile) 2>conftest.er1
  2767. ac_status=$?
  2768. grep -v '^ *+' conftest.er1 >conftest.err
  2769. rm -f conftest.er1
  2770. cat conftest.err >&5
  2771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2772. (exit $ac_status); } &&
  2773. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2774. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2775. (eval $ac_try) 2>&5
  2776. ac_status=$?
  2777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2778. (exit $ac_status); }; } &&
  2779. { ac_try='test -s conftest.$ac_objext'
  2780. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2781. (eval $ac_try) 2>&5
  2782. ac_status=$?
  2783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2784. (exit $ac_status); }; }; then
  2785. ac_cv_prog_cc_g=yes
  2786. else
  2787. echo "$as_me: failed program was:" >&5
  2788. sed 's/^/| /' conftest.$ac_ext >&5
  2789. ac_cv_prog_cc_g=no
  2790. fi
  2791. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2792. fi
  2793. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2794. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2795. if test "$ac_test_CFLAGS" = set; then
  2796. CFLAGS=$ac_save_CFLAGS
  2797. elif test $ac_cv_prog_cc_g = yes; then
  2798. if test "$GCC" = yes; then
  2799. CFLAGS="-g -O2"
  2800. else
  2801. CFLAGS="-g"
  2802. fi
  2803. else
  2804. if test "$GCC" = yes; then
  2805. CFLAGS="-O2"
  2806. else
  2807. CFLAGS=
  2808. fi
  2809. fi
  2810. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2811. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2812. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2813. echo $ECHO_N "(cached) $ECHO_C" >&6
  2814. else
  2815. ac_cv_prog_cc_stdc=no
  2816. ac_save_CC=$CC
  2817. cat >conftest.$ac_ext <<_ACEOF
  2818. /* confdefs.h. */
  2819. _ACEOF
  2820. cat confdefs.h >>conftest.$ac_ext
  2821. cat >>conftest.$ac_ext <<_ACEOF
  2822. /* end confdefs.h. */
  2823. #include <stdarg.h>
  2824. #include <stdio.h>
  2825. #include <sys/types.h>
  2826. #include <sys/stat.h>
  2827. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2828. struct buf { int x; };
  2829. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2830. static char *e (p, i)
  2831. char **p;
  2832. int i;
  2833. {
  2834. return p[i];
  2835. }
  2836. static char *f (char * (*g) (char **, int), char **p, ...)
  2837. {
  2838. char *s;
  2839. va_list v;
  2840. va_start (v,p);
  2841. s = g (p, va_arg (v,int));
  2842. va_end (v);
  2843. return s;
  2844. }
  2845. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2846. function prototypes and stuff, but not '\xHH' hex character constants.
  2847. These don't provoke an error unfortunately, instead are silently treated
  2848. as 'x'. The following induces an error, until -std1 is added to get
  2849. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2850. array size at least. It's necessary to write '\x00'==0 to get something
  2851. that's true only with -std1. */
  2852. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2853. int test (int i, double x);
  2854. struct s1 {int (*f) (int a);};
  2855. struct s2 {int (*f) (double a);};
  2856. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2857. int argc;
  2858. char **argv;
  2859. int
  2860. main ()
  2861. {
  2862. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2863. ;
  2864. return 0;
  2865. }
  2866. _ACEOF
  2867. # Don't try gcc -ansi; that turns off useful extensions and
  2868. # breaks some systems' header files.
  2869. # AIX -qlanglvl=ansi
  2870. # Ultrix and OSF/1 -std1
  2871. # HP-UX 10.20 and later -Ae
  2872. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2873. # SVR4 -Xc -D__EXTENSIONS__
  2874. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2875. do
  2876. CC="$ac_save_CC $ac_arg"
  2877. rm -f conftest.$ac_objext
  2878. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2879. (eval $ac_compile) 2>conftest.er1
  2880. ac_status=$?
  2881. grep -v '^ *+' conftest.er1 >conftest.err
  2882. rm -f conftest.er1
  2883. cat conftest.err >&5
  2884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2885. (exit $ac_status); } &&
  2886. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2887. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2888. (eval $ac_try) 2>&5
  2889. ac_status=$?
  2890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2891. (exit $ac_status); }; } &&
  2892. { ac_try='test -s conftest.$ac_objext'
  2893. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2894. (eval $ac_try) 2>&5
  2895. ac_status=$?
  2896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2897. (exit $ac_status); }; }; then
  2898. ac_cv_prog_cc_stdc=$ac_arg
  2899. break
  2900. else
  2901. echo "$as_me: failed program was:" >&5
  2902. sed 's/^/| /' conftest.$ac_ext >&5
  2903. fi
  2904. rm -f conftest.err conftest.$ac_objext
  2905. done
  2906. rm -f conftest.$ac_ext conftest.$ac_objext
  2907. CC=$ac_save_CC
  2908. fi
  2909. case "x$ac_cv_prog_cc_stdc" in
  2910. x|xno)
  2911. echo "$as_me:$LINENO: result: none needed" >&5
  2912. echo "${ECHO_T}none needed" >&6 ;;
  2913. *)
  2914. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2915. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2916. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2917. esac
  2918. # Some people use a C++ compiler to compile C. Since we use `exit',
  2919. # in C++ we need to declare it. In case someone uses the same compiler
  2920. # for both compiling C and C++ we need to have the C++ compiler decide
  2921. # the declaration of exit, since it's the most demanding environment.
  2922. cat >conftest.$ac_ext <<_ACEOF
  2923. #ifndef __cplusplus
  2924. choke me
  2925. #endif
  2926. _ACEOF
  2927. rm -f conftest.$ac_objext
  2928. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2929. (eval $ac_compile) 2>conftest.er1
  2930. ac_status=$?
  2931. grep -v '^ *+' conftest.er1 >conftest.err
  2932. rm -f conftest.er1
  2933. cat conftest.err >&5
  2934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2935. (exit $ac_status); } &&
  2936. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2937. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2938. (eval $ac_try) 2>&5
  2939. ac_status=$?
  2940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2941. (exit $ac_status); }; } &&
  2942. { ac_try='test -s conftest.$ac_objext'
  2943. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2944. (eval $ac_try) 2>&5
  2945. ac_status=$?
  2946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2947. (exit $ac_status); }; }; then
  2948. for ac_declaration in \
  2949. '' \
  2950. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2951. 'extern "C" void std::exit (int); using std::exit;' \
  2952. 'extern "C" void exit (int) throw ();' \
  2953. 'extern "C" void exit (int);' \
  2954. 'void exit (int);'
  2955. do
  2956. cat >conftest.$ac_ext <<_ACEOF
  2957. /* confdefs.h. */
  2958. _ACEOF
  2959. cat confdefs.h >>conftest.$ac_ext
  2960. cat >>conftest.$ac_ext <<_ACEOF
  2961. /* end confdefs.h. */
  2962. $ac_declaration
  2963. #include <stdlib.h>
  2964. int
  2965. main ()
  2966. {
  2967. exit (42);
  2968. ;
  2969. return 0;
  2970. }
  2971. _ACEOF
  2972. rm -f conftest.$ac_objext
  2973. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2974. (eval $ac_compile) 2>conftest.er1
  2975. ac_status=$?
  2976. grep -v '^ *+' conftest.er1 >conftest.err
  2977. rm -f conftest.er1
  2978. cat conftest.err >&5
  2979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2980. (exit $ac_status); } &&
  2981. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2982. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2983. (eval $ac_try) 2>&5
  2984. ac_status=$?
  2985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2986. (exit $ac_status); }; } &&
  2987. { ac_try='test -s conftest.$ac_objext'
  2988. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2989. (eval $ac_try) 2>&5
  2990. ac_status=$?
  2991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2992. (exit $ac_status); }; }; then
  2993. :
  2994. else
  2995. echo "$as_me: failed program was:" >&5
  2996. sed 's/^/| /' conftest.$ac_ext >&5
  2997. continue
  2998. fi
  2999. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3000. cat >conftest.$ac_ext <<_ACEOF
  3001. /* confdefs.h. */
  3002. _ACEOF
  3003. cat confdefs.h >>conftest.$ac_ext
  3004. cat >>conftest.$ac_ext <<_ACEOF
  3005. /* end confdefs.h. */
  3006. $ac_declaration
  3007. int
  3008. main ()
  3009. {
  3010. exit (42);
  3011. ;
  3012. return 0;
  3013. }
  3014. _ACEOF
  3015. rm -f conftest.$ac_objext
  3016. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3017. (eval $ac_compile) 2>conftest.er1
  3018. ac_status=$?
  3019. grep -v '^ *+' conftest.er1 >conftest.err
  3020. rm -f conftest.er1
  3021. cat conftest.err >&5
  3022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3023. (exit $ac_status); } &&
  3024. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3025. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3026. (eval $ac_try) 2>&5
  3027. ac_status=$?
  3028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3029. (exit $ac_status); }; } &&
  3030. { ac_try='test -s conftest.$ac_objext'
  3031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3032. (eval $ac_try) 2>&5
  3033. ac_status=$?
  3034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3035. (exit $ac_status); }; }; then
  3036. break
  3037. else
  3038. echo "$as_me: failed program was:" >&5
  3039. sed 's/^/| /' conftest.$ac_ext >&5
  3040. fi
  3041. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3042. done
  3043. rm -f conftest*
  3044. if test -n "$ac_declaration"; then
  3045. echo '#ifdef __cplusplus' >>confdefs.h
  3046. echo $ac_declaration >>confdefs.h
  3047. echo '#endif' >>confdefs.h
  3048. fi
  3049. else
  3050. echo "$as_me: failed program was:" >&5
  3051. sed 's/^/| /' conftest.$ac_ext >&5
  3052. fi
  3053. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3054. ac_ext=c
  3055. ac_cpp='$CPP $CPPFLAGS'
  3056. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3057. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3058. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3059. depcc="$CC" am_compiler_list=
  3060. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3061. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3062. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3063. echo $ECHO_N "(cached) $ECHO_C" >&6
  3064. else
  3065. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3066. # We make a subdir and do the tests there. Otherwise we can end up
  3067. # making bogus files that we don't know about and never remove. For
  3068. # instance it was reported that on HP-UX the gcc test will end up
  3069. # making a dummy file named `D' -- because `-MD' means `put the output
  3070. # in D'.
  3071. mkdir conftest.dir
  3072. # Copy depcomp to subdir because otherwise we won't find it if we're
  3073. # using a relative directory.
  3074. cp "$am_depcomp" conftest.dir
  3075. cd conftest.dir
  3076. # We will build objects and dependencies in a subdirectory because
  3077. # it helps to detect inapplicable dependency modes. For instance
  3078. # both Tru64's cc and ICC support -MD to output dependencies as a
  3079. # side effect of compilation, but ICC will put the dependencies in
  3080. # the current directory while Tru64 will put them in the object
  3081. # directory.
  3082. mkdir sub
  3083. am_cv_CC_dependencies_compiler_type=none
  3084. if test "$am_compiler_list" = ""; then
  3085. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3086. fi
  3087. for depmode in $am_compiler_list; do
  3088. # Setup a source with many dependencies, because some compilers
  3089. # like to wrap large dependency lists on column 80 (with \), and
  3090. # we should not choose a depcomp mode which is confused by this.
  3091. #
  3092. # We need to recreate these files for each test, as the compiler may
  3093. # overwrite some of them when testing with obscure command lines.
  3094. # This happens at least with the AIX C compiler.
  3095. : > sub/conftest.c
  3096. for i in 1 2 3 4 5 6; do
  3097. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3098. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3099. # Solaris 8's {/usr,}/bin/sh.
  3100. touch sub/conftst$i.h
  3101. done
  3102. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3103. case $depmode in
  3104. nosideeffect)
  3105. # after this tag, mechanisms are not by side-effect, so they'll
  3106. # only be used when explicitly requested
  3107. if test "x$enable_dependency_tracking" = xyes; then
  3108. continue
  3109. else
  3110. break
  3111. fi
  3112. ;;
  3113. none) break ;;
  3114. esac
  3115. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3116. # mode. It turns out that the SunPro C++ compiler does not properly
  3117. # handle `-M -o', and we need to detect this.
  3118. if depmode=$depmode \
  3119. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3120. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3121. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3122. >/dev/null 2>conftest.err &&
  3123. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3124. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3125. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3126. # icc doesn't choke on unknown options, it will just issue warnings
  3127. # or remarks (even with -Werror). So we grep stderr for any message
  3128. # that says an option was ignored or not supported.
  3129. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3130. # icc: Command line warning: ignoring option '-M'; no argument required
  3131. # The diagnosis changed in icc 8.0:
  3132. # icc: Command line remark: option '-MP' not supported
  3133. if (grep 'ignoring option' conftest.err ||
  3134. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3135. am_cv_CC_dependencies_compiler_type=$depmode
  3136. break
  3137. fi
  3138. fi
  3139. done
  3140. cd ..
  3141. rm -rf conftest.dir
  3142. else
  3143. am_cv_CC_dependencies_compiler_type=none
  3144. fi
  3145. fi
  3146. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3147. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3148. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3149. if
  3150. test "x$enable_dependency_tracking" != xno \
  3151. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3152. am__fastdepCC_TRUE=
  3153. am__fastdepCC_FALSE='#'
  3154. else
  3155. am__fastdepCC_TRUE='#'
  3156. am__fastdepCC_FALSE=
  3157. fi
  3158. # Find a good install program. We prefer a C program (faster),
  3159. # so one script is as good as another. But avoid the broken or
  3160. # incompatible versions:
  3161. # SysV /etc/install, /usr/sbin/install
  3162. # SunOS /usr/etc/install
  3163. # IRIX /sbin/install
  3164. # AIX /bin/install
  3165. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3166. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3167. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3168. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3169. # OS/2's system install, which has a completely different semantic
  3170. # ./install, which can be erroneously created by make from ./install.sh.
  3171. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3172. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  3173. if test -z "$INSTALL"; then
  3174. if test "${ac_cv_path_install+set}" = set; then
  3175. echo $ECHO_N "(cached) $ECHO_C" >&6
  3176. else
  3177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3178. for as_dir in $PATH
  3179. do
  3180. IFS=$as_save_IFS
  3181. test -z "$as_dir" && as_dir=.
  3182. # Account for people who put trailing slashes in PATH elements.
  3183. case $as_dir/ in
  3184. ./ | .// | /cC/* | \
  3185. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3186. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3187. /usr/ucb/* ) ;;
  3188. *)
  3189. # OSF1 and SCO ODT 3.0 have their own names for install.
  3190. # Don't use installbsd from OSF since it installs stuff as root
  3191. # by default.
  3192. for ac_prog in ginstall scoinst install; do
  3193. for ac_exec_ext in '' $ac_executable_extensions; do
  3194. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3195. if test $ac_prog = install &&
  3196. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3197. # AIX install. It has an incompatible calling convention.
  3198. :
  3199. elif test $ac_prog = install &&
  3200. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3201. # program-specific install script used by HP pwplus--don't use.
  3202. :
  3203. else
  3204. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3205. break 3
  3206. fi
  3207. fi
  3208. done
  3209. done
  3210. ;;
  3211. esac
  3212. done
  3213. fi
  3214. if test "${ac_cv_path_install+set}" = set; then
  3215. INSTALL=$ac_cv_path_install
  3216. else
  3217. # As a last resort, use the slow shell script. We don't cache a
  3218. # path for INSTALL within a source directory, because that will
  3219. # break other packages using the cache if that directory is
  3220. # removed, or if the path is relative.
  3221. INSTALL=$ac_install_sh
  3222. fi
  3223. fi
  3224. echo "$as_me:$LINENO: result: $INSTALL" >&5
  3225. echo "${ECHO_T}$INSTALL" >&6
  3226. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3227. # It thinks the first close brace ends the variable substitution.
  3228. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3229. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3230. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3231. if test -n "$ac_tool_prefix"; then
  3232. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3233. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3234. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3235. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3236. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3237. echo $ECHO_N "(cached) $ECHO_C" >&6
  3238. else
  3239. if test -n "$RANLIB"; then
  3240. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3241. else
  3242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3243. for as_dir in $PATH
  3244. do
  3245. IFS=$as_save_IFS
  3246. test -z "$as_dir" && as_dir=.
  3247. for ac_exec_ext in '' $ac_executable_extensions; do
  3248. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3249. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3250. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3251. break 2
  3252. fi
  3253. done
  3254. done
  3255. fi
  3256. fi
  3257. RANLIB=$ac_cv_prog_RANLIB
  3258. if test -n "$RANLIB"; then
  3259. echo "$as_me:$LINENO: result: $RANLIB" >&5
  3260. echo "${ECHO_T}$RANLIB" >&6
  3261. else
  3262. echo "$as_me:$LINENO: result: no" >&5
  3263. echo "${ECHO_T}no" >&6
  3264. fi
  3265. fi
  3266. if test -z "$ac_cv_prog_RANLIB"; then
  3267. ac_ct_RANLIB=$RANLIB
  3268. # Extract the first word of "ranlib", so it can be a program name with args.
  3269. set dummy ranlib; ac_word=$2
  3270. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3271. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3272. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3273. echo $ECHO_N "(cached) $ECHO_C" >&6
  3274. else
  3275. if test -n "$ac_ct_RANLIB"; then
  3276. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3277. else
  3278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3279. for as_dir in $PATH
  3280. do
  3281. IFS=$as_save_IFS
  3282. test -z "$as_dir" && as_dir=.
  3283. for ac_exec_ext in '' $ac_executable_extensions; do
  3284. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3285. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3286. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3287. break 2
  3288. fi
  3289. done
  3290. done
  3291. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3292. fi
  3293. fi
  3294. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3295. if test -n "$ac_ct_RANLIB"; then
  3296. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3297. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3298. else
  3299. echo "$as_me:$LINENO: result: no" >&5
  3300. echo "${ECHO_T}no" >&6
  3301. fi
  3302. RANLIB=$ac_ct_RANLIB
  3303. else
  3304. RANLIB="$ac_cv_prog_RANLIB"
  3305. fi
  3306. for ac_prog in 'bison -y' byacc
  3307. do
  3308. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3309. set dummy $ac_prog; ac_word=$2
  3310. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3311. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3312. if test "${ac_cv_prog_YACC+set}" = set; then
  3313. echo $ECHO_N "(cached) $ECHO_C" >&6
  3314. else
  3315. if test -n "$YACC"; then
  3316. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3317. else
  3318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3319. for as_dir in $PATH
  3320. do
  3321. IFS=$as_save_IFS
  3322. test -z "$as_dir" && as_dir=.
  3323. for ac_exec_ext in '' $ac_executable_extensions; do
  3324. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3325. ac_cv_prog_YACC="$ac_prog"
  3326. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3327. break 2
  3328. fi
  3329. done
  3330. done
  3331. fi
  3332. fi
  3333. YACC=$ac_cv_prog_YACC
  3334. if test -n "$YACC"; then
  3335. echo "$as_me:$LINENO: result: $YACC" >&5
  3336. echo "${ECHO_T}$YACC" >&6
  3337. else
  3338. echo "$as_me:$LINENO: result: no" >&5
  3339. echo "${ECHO_T}no" >&6
  3340. fi
  3341. test -n "$YACC" && break
  3342. done
  3343. test -n "$YACC" || YACC="yacc"
  3344. # Checks for libraries.
  3345. if test "x$with_libxml2" = "xyes"; then
  3346. # Check whether --with-xml-prefix or --without-xml-prefix was given.
  3347. if test "${with_xml_prefix+set}" = set; then
  3348. withval="$with_xml_prefix"
  3349. xml_config_prefix="$withval"
  3350. else
  3351. xml_config_prefix=""
  3352. fi;
  3353. # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
  3354. if test "${with_xml_exec_prefix+set}" = set; then
  3355. withval="$with_xml_exec_prefix"
  3356. xml_config_exec_prefix="$withval"
  3357. else
  3358. xml_config_exec_prefix=""
  3359. fi;
  3360. # Check whether --enable-xmltest or --disable-xmltest was given.
  3361. if test "${enable_xmltest+set}" = set; then
  3362. enableval="$enable_xmltest"
  3363. else
  3364. enable_xmltest=yes
  3365. fi;
  3366. if test x$xml_config_exec_prefix != x ; then
  3367. xml_config_args="$xml_config_args"
  3368. if test x${XML2_CONFIG+set} != xset ; then
  3369. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  3370. fi
  3371. fi
  3372. if test x$xml_config_prefix != x ; then
  3373. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  3374. if test x${XML2_CONFIG+set} != xset ; then
  3375. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  3376. fi
  3377. fi
  3378. # Extract the first word of "xml2-config", so it can be a program name with args.
  3379. set dummy xml2-config; ac_word=$2
  3380. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3381. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3382. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  3383. echo $ECHO_N "(cached) $ECHO_C" >&6
  3384. else
  3385. case $XML2_CONFIG in
  3386. [\\/]* | ?:[\\/]*)
  3387. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  3388. ;;
  3389. *)
  3390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3391. for as_dir in $PATH
  3392. do
  3393. IFS=$as_save_IFS
  3394. test -z "$as_dir" && as_dir=.
  3395. for ac_exec_ext in '' $ac_executable_extensions; do
  3396. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3397. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3398. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3399. break 2
  3400. fi
  3401. done
  3402. done
  3403. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  3404. ;;
  3405. esac
  3406. fi
  3407. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  3408. if test -n "$XML2_CONFIG"; then
  3409. echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  3410. echo "${ECHO_T}$XML2_CONFIG" >&6
  3411. else
  3412. echo "$as_me:$LINENO: result: no" >&5
  3413. echo "${ECHO_T}no" >&6
  3414. fi
  3415. min_xml_version=2.6.26
  3416. echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  3417. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
  3418. no_xml=""
  3419. if test "$XML2_CONFIG" = "no" ; then
  3420. no_xml=yes
  3421. else
  3422. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  3423. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  3424. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  3425. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3426. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  3427. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3428. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  3429. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3430. if test "x$enable_xmltest" = "xyes" ; then
  3431. ac_save_CPPFLAGS="$CPPFLAGS"
  3432. ac_save_LIBS="$LIBS"
  3433. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  3434. LIBS="$XML_LIBS $LIBS"
  3435. rm -f conf.xmltest
  3436. if test "$cross_compiling" = yes; then
  3437. echo $ac_n "cross compiling; assumed OK... $ac_c"
  3438. else
  3439. cat >conftest.$ac_ext <<_ACEOF
  3440. /* confdefs.h. */
  3441. _ACEOF
  3442. cat confdefs.h >>conftest.$ac_ext
  3443. cat >>conftest.$ac_ext <<_ACEOF
  3444. /* end confdefs.h. */
  3445. #include <stdlib.h>
  3446. #include <stdio.h>
  3447. #include <string.h>
  3448. #include <libxml/xmlversion.h>
  3449. int
  3450. main()
  3451. {
  3452. int xml_major_version, xml_minor_version, xml_micro_version;
  3453. int major, minor, micro;
  3454. char *tmp_version;
  3455. system("touch conf.xmltest");
  3456. /* Capture xml2-config output via autoconf/configure variables */
  3457. /* HP/UX 9 (%@#!) writes to sscanf strings */
  3458. tmp_version = (char *)strdup("$min_xml_version");
  3459. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  3460. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  3461. exit(1);
  3462. }
  3463. free(tmp_version);
  3464. /* Capture the version information from the header files */
  3465. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  3466. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  3467. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  3468. exit(1);
  3469. }
  3470. free(tmp_version);
  3471. /* Compare xml2-config output to the libxml headers */
  3472. if ((xml_major_version != $xml_config_major_version) ||
  3473. (xml_minor_version != $xml_config_minor_version) ||
  3474. (xml_micro_version != $xml_config_micro_version))
  3475. {
  3476. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  3477. xml_major_version, xml_minor_version, xml_micro_version);
  3478. printf("*** xml2-config (version %d.%d.%d)\n",
  3479. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  3480. return 1;
  3481. }
  3482. /* Compare the headers to the library to make sure we match */
  3483. /* Less than ideal -- doesn't provide us with return value feedback,
  3484. * only exits if there's a serious mismatch between header and library.
  3485. */
  3486. LIBXML_TEST_VERSION;
  3487. /* Test that the library is greater than our minimum version */
  3488. if ((xml_major_version > major) ||
  3489. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  3490. ((xml_major_version == major) && (xml_minor_version == minor) &&
  3491. (xml_micro_version >= micro)))
  3492. {
  3493. return 0;
  3494. }
  3495. else
  3496. {
  3497. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  3498. xml_major_version, xml_minor_version, xml_micro_version);
  3499. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  3500. major, minor, micro);
  3501. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  3502. printf("***\n");
  3503. printf("*** If you have already installed a sufficiently new version, this error\n");
  3504. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  3505. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  3506. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  3507. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  3508. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  3509. printf("*** so that the correct libraries are found at run-time))\n");
  3510. }
  3511. return 1;
  3512. }
  3513. _ACEOF
  3514. rm -f conftest$ac_exeext
  3515. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3516. (eval $ac_link) 2>&5
  3517. ac_status=$?
  3518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3519. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3520. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3521. (eval $ac_try) 2>&5
  3522. ac_status=$?
  3523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3524. (exit $ac_status); }; }; then
  3525. :
  3526. else
  3527. echo "$as_me: program exited with status $ac_status" >&5
  3528. echo "$as_me: failed program was:" >&5
  3529. sed 's/^/| /' conftest.$ac_ext >&5
  3530. ( exit $ac_status )
  3531. no_xml=yes
  3532. fi
  3533. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3534. fi
  3535. CPPFLAGS="$ac_save_CPPFLAGS"
  3536. LIBS="$ac_save_LIBS"
  3537. fi
  3538. fi
  3539. if test "x$no_xml" = x ; then
  3540. echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  3541. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
  3542. have_libxml2=yes
  3543. else
  3544. echo "$as_me:$LINENO: result: no" >&5
  3545. echo "${ECHO_T}no" >&6
  3546. if test "$XML2_CONFIG" = "no" ; then
  3547. echo "*** The xml2-config script installed by LIBXML could not be found"
  3548. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  3549. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  3550. echo "*** full path to xml2-config."
  3551. else
  3552. if test -f conf.xmltest ; then
  3553. :
  3554. else
  3555. echo "*** Could not run libxml test program, checking why..."
  3556. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  3557. LIBS="$LIBS $XML_LIBS"
  3558. cat >conftest.$ac_ext <<_ACEOF
  3559. /* confdefs.h. */
  3560. _ACEOF
  3561. cat confdefs.h >>conftest.$ac_ext
  3562. cat >>conftest.$ac_ext <<_ACEOF
  3563. /* end confdefs.h. */
  3564. #include <libxml/xmlversion.h>
  3565. #include <stdio.h>
  3566. int
  3567. main ()
  3568. {
  3569. LIBXML_TEST_VERSION; return 0;
  3570. ;
  3571. return 0;
  3572. }
  3573. _ACEOF
  3574. rm -f conftest.$ac_objext conftest$ac_exeext
  3575. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3576. (eval $ac_link) 2>conftest.er1
  3577. ac_status=$?
  3578. grep -v '^ *+' conftest.er1 >conftest.err
  3579. rm -f conftest.er1
  3580. cat conftest.err >&5
  3581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3582. (exit $ac_status); } &&
  3583. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3584. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3585. (eval $ac_try) 2>&5
  3586. ac_status=$?
  3587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3588. (exit $ac_status); }; } &&
  3589. { ac_try='test -s conftest$ac_exeext'
  3590. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3591. (eval $ac_try) 2>&5
  3592. ac_status=$?
  3593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3594. (exit $ac_status); }; }; then
  3595. echo "*** The test program compiled, but did not run. This usually means"
  3596. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  3597. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  3598. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3599. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  3600. echo "*** is required on your system"
  3601. echo "***"
  3602. echo "*** If you have an old version installed, it is best to remove it, although"
  3603. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3604. else
  3605. echo "$as_me: failed program was:" >&5
  3606. sed 's/^/| /' conftest.$ac_ext >&5
  3607. echo "*** The test program failed to compile or link. See the file config.log for the"
  3608. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  3609. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  3610. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  3611. fi
  3612. rm -f conftest.err conftest.$ac_objext \
  3613. conftest$ac_exeext conftest.$ac_ext
  3614. CPPFLAGS="$ac_save_CPPFLAGS"
  3615. LIBS="$ac_save_LIBS"
  3616. fi
  3617. fi
  3618. XML_CPPFLAGS=""
  3619. XML_LIBS=""
  3620. :
  3621. fi
  3622. rm -f conf.xmltest
  3623. if test "x$have_libxml2" = "xyes"; then
  3624. cat >>confdefs.h <<\_ACEOF
  3625. #define HAVE_LIBXML2 1
  3626. _ACEOF
  3627. fi
  3628. fi
  3629. if test "x$with_gnutls" = "xyes"; then
  3630. # Check whether --with-libgnutls-prefix or --without-libgnutls-prefix was given.
  3631. if test "${with_libgnutls_prefix+set}" = set; then
  3632. withval="$with_libgnutls_prefix"
  3633. libgnutls_config_prefix="$withval"
  3634. else
  3635. libgnutls_config_prefix=""
  3636. fi;
  3637. if test x$libgnutls_config_prefix != x ; then
  3638. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  3639. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  3640. fi
  3641. fi
  3642. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  3643. set dummy libgnutls-config; ac_word=$2
  3644. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3645. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3646. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  3647. echo $ECHO_N "(cached) $ECHO_C" >&6
  3648. else
  3649. case $LIBGNUTLS_CONFIG in
  3650. [\\/]* | ?:[\\/]*)
  3651. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  3652. ;;
  3653. *)
  3654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3655. for as_dir in $PATH
  3656. do
  3657. IFS=$as_save_IFS
  3658. test -z "$as_dir" && as_dir=.
  3659. for ac_exec_ext in '' $ac_executable_extensions; do
  3660. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3661. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3662. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3663. break 2
  3664. fi
  3665. done
  3666. done
  3667. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  3668. ;;
  3669. esac
  3670. fi
  3671. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  3672. if test -n "$LIBGNUTLS_CONFIG"; then
  3673. echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  3674. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6
  3675. else
  3676. echo "$as_me:$LINENO: result: no" >&5
  3677. echo "${ECHO_T}no" >&6
  3678. fi
  3679. min_libgnutls_version=1.2.9
  3680. echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  3681. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6
  3682. no_libgnutls=""
  3683. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  3684. no_libgnutls=yes
  3685. else
  3686. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  3687. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  3688. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  3689. ac_save_CFLAGS="$CFLAGS"
  3690. ac_save_LIBS="$LIBS"
  3691. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  3692. LIBS="$LIBS $LIBGNUTLS_LIBS"
  3693. rm -f conf.libgnutlstest
  3694. if test "$cross_compiling" = yes; then
  3695. echo $ac_n "cross compiling; assumed OK... $ac_c"
  3696. else
  3697. cat >conftest.$ac_ext <<_ACEOF
  3698. /* confdefs.h. */
  3699. _ACEOF
  3700. cat confdefs.h >>conftest.$ac_ext
  3701. cat >>conftest.$ac_ext <<_ACEOF
  3702. /* end confdefs.h. */
  3703. #include <stdio.h>
  3704. #include <stdlib.h>
  3705. #include <string.h>
  3706. #include <gnutls/gnutls.h>
  3707. int
  3708. main ()
  3709. {
  3710. system ("touch conf.libgnutlstest");
  3711. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  3712. {
  3713. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  3714. "$libgnutls_config_version", gnutls_check_version(NULL) );
  3715. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  3716. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  3717. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  3718. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  3719. printf("*** required on your system.\n");
  3720. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  3721. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  3722. printf("*** before re-running configure\n");
  3723. }
  3724. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  3725. {
  3726. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  3727. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  3728. }
  3729. else
  3730. {
  3731. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  3732. {
  3733. return 0;
  3734. }
  3735. else
  3736. {
  3737. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  3738. gnutls_check_version(NULL) );
  3739. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  3740. "$min_libgnutls_version" );
  3741. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  3742. printf("*** \n");
  3743. printf("*** If you have already installed a sufficiently new version, this error\n");
  3744. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  3745. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  3746. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  3747. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  3748. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  3749. printf("*** so that the correct libraries are found at run-time))\n");
  3750. }
  3751. }
  3752. return 1;
  3753. }
  3754. _ACEOF
  3755. rm -f conftest$ac_exeext
  3756. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3757. (eval $ac_link) 2>&5
  3758. ac_status=$?
  3759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3760. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3761. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3762. (eval $ac_try) 2>&5
  3763. ac_status=$?
  3764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3765. (exit $ac_status); }; }; then
  3766. :
  3767. else
  3768. echo "$as_me: program exited with status $ac_status" >&5
  3769. echo "$as_me: failed program was:" >&5
  3770. sed 's/^/| /' conftest.$ac_ext >&5
  3771. ( exit $ac_status )
  3772. no_libgnutls=yes
  3773. fi
  3774. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3775. fi
  3776. CFLAGS="$ac_save_CFLAGS"
  3777. LIBS="$ac_save_LIBS"
  3778. fi
  3779. if test "x$no_libgnutls" = x ; then
  3780. echo "$as_me:$LINENO: result: yes" >&5
  3781. echo "${ECHO_T}yes" >&6
  3782. have_libgnutls=yes
  3783. else
  3784. if test -f conf.libgnutlstest ; then
  3785. :
  3786. else
  3787. echo "$as_me:$LINENO: result: no" >&5
  3788. echo "${ECHO_T}no" >&6
  3789. fi
  3790. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  3791. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  3792. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  3793. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  3794. echo "*** full path to libgnutls-config."
  3795. else
  3796. if test -f conf.libgnutlstest ; then
  3797. :
  3798. else
  3799. echo "*** Could not run libgnutls test program, checking why..."
  3800. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  3801. LIBS="$LIBS $LIBGNUTLS_LIBS"
  3802. cat >conftest.$ac_ext <<_ACEOF
  3803. /* confdefs.h. */
  3804. _ACEOF
  3805. cat confdefs.h >>conftest.$ac_ext
  3806. cat >>conftest.$ac_ext <<_ACEOF
  3807. /* end confdefs.h. */
  3808. #include <stdio.h>
  3809. #include <stdlib.h>
  3810. #include <string.h>
  3811. #include <gnutls/gnutls.h>
  3812. int
  3813. main ()
  3814. {
  3815. return !!gnutls_check_version(NULL);
  3816. ;
  3817. return 0;
  3818. }
  3819. _ACEOF
  3820. rm -f conftest.$ac_objext conftest$ac_exeext
  3821. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3822. (eval $ac_link) 2>conftest.er1
  3823. ac_status=$?
  3824. grep -v '^ *+' conftest.er1 >conftest.err
  3825. rm -f conftest.er1
  3826. cat conftest.err >&5
  3827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3828. (exit $ac_status); } &&
  3829. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3830. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3831. (eval $ac_try) 2>&5
  3832. ac_status=$?
  3833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3834. (exit $ac_status); }; } &&
  3835. { ac_try='test -s conftest$ac_exeext'
  3836. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3837. (eval $ac_try) 2>&5
  3838. ac_status=$?
  3839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3840. (exit $ac_status); }; }; then
  3841. echo "*** The test program compiled, but did not run. This usually means"
  3842. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  3843. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  3844. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3845. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  3846. echo "*** is required on your system"
  3847. echo "***"
  3848. echo "*** If you have an old version installed, it is best to remove it, although"
  3849. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3850. echo "***"
  3851. else
  3852. echo "$as_me: failed program was:" >&5
  3853. sed 's/^/| /' conftest.$ac_ext >&5
  3854. echo "*** The test program failed to compile or link. See the file config.log for the"
  3855. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  3856. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  3857. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  3858. fi
  3859. rm -f conftest.err conftest.$ac_objext \
  3860. conftest$ac_exeext conftest.$ac_ext
  3861. CFLAGS="$ac_save_CFLAGS"
  3862. LIBS="$ac_save_LIBS"
  3863. fi
  3864. fi
  3865. LIBGNUTLS_CFLAGS=""
  3866. LIBGNUTLS_LIBS=""
  3867. :
  3868. fi
  3869. rm -f conf.libgnutlstest
  3870. if test "x$have_libgnutls" = "xyes"; then
  3871. cat >>confdefs.h <<\_ACEOF
  3872. #define HAVE_LIBGNUTLS 1
  3873. _ACEOF
  3874. fi
  3875. fi
  3876. if test "x$have_libgnutls" = "xyes"; then
  3877. # Check whether --with-libgcrypt-prefix or --without-libgcrypt-prefix was given.
  3878. if test "${with_libgcrypt_prefix+set}" = set; then
  3879. withval="$with_libgcrypt_prefix"
  3880. libgcrypt_config_prefix="$withval"
  3881. else
  3882. libgcrypt_config_prefix=""
  3883. fi;
  3884. if test x$libgcrypt_config_prefix != x ; then
  3885. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  3886. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  3887. fi
  3888. fi
  3889. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  3890. set dummy libgcrypt-config; ac_word=$2
  3891. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3892. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3893. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  3894. echo $ECHO_N "(cached) $ECHO_C" >&6
  3895. else
  3896. case $LIBGCRYPT_CONFIG in
  3897. [\\/]* | ?:[\\/]*)
  3898. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  3899. ;;
  3900. *)
  3901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3902. for as_dir in $PATH
  3903. do
  3904. IFS=$as_save_IFS
  3905. test -z "$as_dir" && as_dir=.
  3906. for ac_exec_ext in '' $ac_executable_extensions; do
  3907. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3908. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3909. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3910. break 2
  3911. fi
  3912. done
  3913. done
  3914. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  3915. ;;
  3916. esac
  3917. fi
  3918. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  3919. if test -n "$LIBGCRYPT_CONFIG"; then
  3920. echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  3921. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6
  3922. else
  3923. echo "$as_me:$LINENO: result: no" >&5
  3924. echo "${ECHO_T}no" >&6
  3925. fi
  3926. tmp=1.2.2
  3927. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  3928. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  3929. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  3930. else
  3931. req_libgcrypt_api=0
  3932. min_libgcrypt_version="$tmp"
  3933. fi
  3934. echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  3935. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6
  3936. ok=no
  3937. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  3938. req_major=`echo $min_libgcrypt_version | \
  3939. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  3940. req_minor=`echo $min_libgcrypt_version | \
  3941. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  3942. req_micro=`echo $min_libgcrypt_version | \
  3943. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  3944. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  3945. major=`echo $libgcrypt_config_version | \
  3946. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  3947. minor=`echo $libgcrypt_config_version | \
  3948. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  3949. micro=`echo $libgcrypt_config_version | \
  3950. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  3951. if test "$major" -gt "$req_major"; then
  3952. ok=yes
  3953. else
  3954. if test "$major" -eq "$req_major"; then
  3955. if test "$minor" -gt "$req_minor"; then
  3956. ok=yes
  3957. else
  3958. if test "$minor" -eq "$req_minor"; then
  3959. if test "$micro" -ge "$req_micro"; then
  3960. ok=yes
  3961. fi
  3962. fi
  3963. fi
  3964. fi
  3965. fi
  3966. fi
  3967. if test $ok = yes; then
  3968. echo "$as_me:$LINENO: result: yes" >&5
  3969. echo "${ECHO_T}yes" >&6
  3970. else
  3971. echo "$as_me:$LINENO: result: no" >&5
  3972. echo "${ECHO_T}no" >&6
  3973. fi
  3974. if test $ok = yes; then
  3975. # If we have a recent libgcrypt, we should also check that the
  3976. # API is compatible
  3977. if test "$req_libgcrypt_api" -gt 0 ; then
  3978. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  3979. if test "$tmp" -gt 0 ; then
  3980. echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  3981. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6
  3982. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  3983. echo "$as_me:$LINENO: result: okay" >&5
  3984. echo "${ECHO_T}okay" >&6
  3985. else
  3986. ok=no
  3987. echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
  3988. echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6
  3989. fi
  3990. fi
  3991. fi
  3992. fi
  3993. if test $ok = yes; then
  3994. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  3995. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  3996. have_libgcrypt=yes
  3997. else
  3998. LIBGCRYPT_CFLAGS=""
  3999. LIBGCRYPT_LIBS=""
  4000. :
  4001. fi
  4002. if test "x$have_libgcrypt" = "xyes"; then
  4003. cat >>confdefs.h <<\_ACEOF
  4004. #define HAVE_LIBGCRYPT 1
  4005. _ACEOF
  4006. fi
  4007. fi
  4008. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  4009. # Check whether --with-openssl-prefix or --without-openssl-prefix was given.
  4010. if test "${with_openssl_prefix+set}" = set; then
  4011. withval="$with_openssl_prefix"
  4012. openssl_prefix=$withval
  4013. else
  4014. openssl_prefix=""
  4015. fi;
  4016. if test "x$openssl_prefix" = "x"; then
  4017. openssl_prefix="/usr/local"
  4018. fi
  4019. openssl_prefix_lib=$openssl_prefix/lib
  4020. openssl_prefix_include=$openssl_prefix/include
  4021. LIBS_save=$LIBS
  4022. CPPFLAGS_save=$CPPFLAGS
  4023. LIBS="-L$openssl_prefix_lib $LIBS"
  4024. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  4025. echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  4026. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
  4027. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  4028. echo $ECHO_N "(cached) $ECHO_C" >&6
  4029. else
  4030. ac_check_lib_save_LIBS=$LIBS
  4031. LIBS="-lssl $LIBS"
  4032. cat >conftest.$ac_ext <<_ACEOF
  4033. /* confdefs.h. */
  4034. _ACEOF
  4035. cat confdefs.h >>conftest.$ac_ext
  4036. cat >>conftest.$ac_ext <<_ACEOF
  4037. /* end confdefs.h. */
  4038. /* Override any gcc2 internal prototype to avoid an error. */
  4039. #ifdef __cplusplus
  4040. extern "C"
  4041. #endif
  4042. /* We use char because int might match the return type of a gcc2
  4043. builtin and then its argument prototype would still apply. */
  4044. char SSL_library_init ();
  4045. int
  4046. main ()
  4047. {
  4048. SSL_library_init ();
  4049. ;
  4050. return 0;
  4051. }
  4052. _ACEOF
  4053. rm -f conftest.$ac_objext conftest$ac_exeext
  4054. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4055. (eval $ac_link) 2>conftest.er1
  4056. ac_status=$?
  4057. grep -v '^ *+' conftest.er1 >conftest.err
  4058. rm -f conftest.er1
  4059. cat conftest.err >&5
  4060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4061. (exit $ac_status); } &&
  4062. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4063. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4064. (eval $ac_try) 2>&5
  4065. ac_status=$?
  4066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4067. (exit $ac_status); }; } &&
  4068. { ac_try='test -s conftest$ac_exeext'
  4069. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4070. (eval $ac_try) 2>&5
  4071. ac_status=$?
  4072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4073. (exit $ac_status); }; }; then
  4074. ac_cv_lib_ssl_SSL_library_init=yes
  4075. else
  4076. echo "$as_me: failed program was:" >&5
  4077. sed 's/^/| /' conftest.$ac_ext >&5
  4078. ac_cv_lib_ssl_SSL_library_init=no
  4079. fi
  4080. rm -f conftest.err conftest.$ac_objext \
  4081. conftest$ac_exeext conftest.$ac_ext
  4082. LIBS=$ac_check_lib_save_LIBS
  4083. fi
  4084. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  4085. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
  4086. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  4087. have_openssl=yes
  4088. fi
  4089. if test "x$have_openssl" = "xyes"; then
  4090. have_openssl=no
  4091. echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  4092. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
  4093. if test "${ac_cv_lib_crypto_main+set}" = set; then
  4094. echo $ECHO_N "(cached) $ECHO_C" >&6
  4095. else
  4096. ac_check_lib_save_LIBS=$LIBS
  4097. LIBS="-lcrypto $LIBS"
  4098. cat >conftest.$ac_ext <<_ACEOF
  4099. /* confdefs.h. */
  4100. _ACEOF
  4101. cat confdefs.h >>conftest.$ac_ext
  4102. cat >>conftest.$ac_ext <<_ACEOF
  4103. /* end confdefs.h. */
  4104. int
  4105. main ()
  4106. {
  4107. main ();
  4108. ;
  4109. return 0;
  4110. }
  4111. _ACEOF
  4112. rm -f conftest.$ac_objext conftest$ac_exeext
  4113. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4114. (eval $ac_link) 2>conftest.er1
  4115. ac_status=$?
  4116. grep -v '^ *+' conftest.er1 >conftest.err
  4117. rm -f conftest.er1
  4118. cat conftest.err >&5
  4119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4120. (exit $ac_status); } &&
  4121. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4123. (eval $ac_try) 2>&5
  4124. ac_status=$?
  4125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4126. (exit $ac_status); }; } &&
  4127. { ac_try='test -s conftest$ac_exeext'
  4128. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4129. (eval $ac_try) 2>&5
  4130. ac_status=$?
  4131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4132. (exit $ac_status); }; }; then
  4133. ac_cv_lib_crypto_main=yes
  4134. else
  4135. echo "$as_me: failed program was:" >&5
  4136. sed 's/^/| /' conftest.$ac_ext >&5
  4137. ac_cv_lib_crypto_main=no
  4138. fi
  4139. rm -f conftest.err conftest.$ac_objext \
  4140. conftest$ac_exeext conftest.$ac_ext
  4141. LIBS=$ac_check_lib_save_LIBS
  4142. fi
  4143. echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  4144. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
  4145. if test $ac_cv_lib_crypto_main = yes; then
  4146. have_openssl=yes
  4147. fi
  4148. if test "x$have_openssl" = "xyes"; then
  4149. cat >>confdefs.h <<\_ACEOF
  4150. #define HAVE_LIBSSL 1
  4151. _ACEOF
  4152. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  4153. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  4154. fi
  4155. fi
  4156. LIBS=$LIBS_save
  4157. CPPFLAGS=$CPPFLAGS_save
  4158. fi
  4159. # Define variables based on the result of the checks for libraries.
  4160. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  4161. cat >>confdefs.h <<\_ACEOF
  4162. #define ENABLE_SSL 1
  4163. _ACEOF
  4164. fi
  4165. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  4166. cat >>confdefs.h <<\_ACEOF
  4167. #define ENABLE_MESSAGE_DIGEST 1
  4168. _ACEOF
  4169. enable_message_digest=yes
  4170. fi
  4171. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  4172. cat >>confdefs.h <<\_ACEOF
  4173. #define ENABLE_BITTORRENT 1
  4174. _ACEOF
  4175. if true; then
  4176. ENABLE_BITTORRENT_TRUE=
  4177. ENABLE_BITTORRENT_FALSE='#'
  4178. else
  4179. ENABLE_BITTORRENT_TRUE='#'
  4180. ENABLE_BITTORRENT_FALSE=
  4181. fi
  4182. else
  4183. if false; then
  4184. ENABLE_BITTORRENT_TRUE=
  4185. ENABLE_BITTORRENT_FALSE='#'
  4186. else
  4187. ENABLE_BITTORRENT_TRUE='#'
  4188. ENABLE_BITTORRENT_FALSE=
  4189. fi
  4190. fi
  4191. if test "x$have_libxml2" = "xyes" && test "x$enable_metalink" = "xyes" && \
  4192. test "x$enable_message_digest" = "xyes"; then
  4193. cat >>confdefs.h <<\_ACEOF
  4194. #define ENABLE_METALINK 1
  4195. _ACEOF
  4196. if true; then
  4197. ENABLE_METALINK_TRUE=
  4198. ENABLE_METALINK_FALSE='#'
  4199. else
  4200. ENABLE_METALINK_TRUE='#'
  4201. ENABLE_METALINK_FALSE=
  4202. fi
  4203. else
  4204. if false; then
  4205. ENABLE_METALINK_TRUE=
  4206. ENABLE_METALINK_FALSE='#'
  4207. else
  4208. ENABLE_METALINK_TRUE='#'
  4209. ENABLE_METALINK_FALSE=
  4210. fi
  4211. fi
  4212. # Checks for header files.
  4213. ac_ext=c
  4214. ac_cpp='$CPP $CPPFLAGS'
  4215. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4216. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4217. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4218. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4219. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4220. # On Suns, sometimes $CPP names a directory.
  4221. if test -n "$CPP" && test -d "$CPP"; then
  4222. CPP=
  4223. fi
  4224. if test -z "$CPP"; then
  4225. if test "${ac_cv_prog_CPP+set}" = set; then
  4226. echo $ECHO_N "(cached) $ECHO_C" >&6
  4227. else
  4228. # Double quotes because CPP needs to be expanded
  4229. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4230. do
  4231. ac_preproc_ok=false
  4232. for ac_c_preproc_warn_flag in '' yes
  4233. do
  4234. # Use a header file that comes with gcc, so configuring glibc
  4235. # with a fresh cross-compiler works.
  4236. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4237. # <limits.h> exists even on freestanding compilers.
  4238. # On the NeXT, cc -E runs the code through the compiler's parser,
  4239. # not just through cpp. "Syntax error" is here to catch this case.
  4240. cat >conftest.$ac_ext <<_ACEOF
  4241. /* confdefs.h. */
  4242. _ACEOF
  4243. cat confdefs.h >>conftest.$ac_ext
  4244. cat >>conftest.$ac_ext <<_ACEOF
  4245. /* end confdefs.h. */
  4246. #ifdef __STDC__
  4247. # include <limits.h>
  4248. #else
  4249. # include <assert.h>
  4250. #endif
  4251. Syntax error
  4252. _ACEOF
  4253. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4254. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4255. ac_status=$?
  4256. grep -v '^ *+' conftest.er1 >conftest.err
  4257. rm -f conftest.er1
  4258. cat conftest.err >&5
  4259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4260. (exit $ac_status); } >/dev/null; then
  4261. if test -s conftest.err; then
  4262. ac_cpp_err=$ac_c_preproc_warn_flag
  4263. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4264. else
  4265. ac_cpp_err=
  4266. fi
  4267. else
  4268. ac_cpp_err=yes
  4269. fi
  4270. if test -z "$ac_cpp_err"; then
  4271. :
  4272. else
  4273. echo "$as_me: failed program was:" >&5
  4274. sed 's/^/| /' conftest.$ac_ext >&5
  4275. # Broken: fails on valid input.
  4276. continue
  4277. fi
  4278. rm -f conftest.err conftest.$ac_ext
  4279. # OK, works on sane cases. Now check whether non-existent headers
  4280. # can be detected and how.
  4281. cat >conftest.$ac_ext <<_ACEOF
  4282. /* confdefs.h. */
  4283. _ACEOF
  4284. cat confdefs.h >>conftest.$ac_ext
  4285. cat >>conftest.$ac_ext <<_ACEOF
  4286. /* end confdefs.h. */
  4287. #include <ac_nonexistent.h>
  4288. _ACEOF
  4289. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4290. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4291. ac_status=$?
  4292. grep -v '^ *+' conftest.er1 >conftest.err
  4293. rm -f conftest.er1
  4294. cat conftest.err >&5
  4295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4296. (exit $ac_status); } >/dev/null; then
  4297. if test -s conftest.err; then
  4298. ac_cpp_err=$ac_c_preproc_warn_flag
  4299. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4300. else
  4301. ac_cpp_err=
  4302. fi
  4303. else
  4304. ac_cpp_err=yes
  4305. fi
  4306. if test -z "$ac_cpp_err"; then
  4307. # Broken: success on invalid input.
  4308. continue
  4309. else
  4310. echo "$as_me: failed program was:" >&5
  4311. sed 's/^/| /' conftest.$ac_ext >&5
  4312. # Passes both tests.
  4313. ac_preproc_ok=:
  4314. break
  4315. fi
  4316. rm -f conftest.err conftest.$ac_ext
  4317. done
  4318. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4319. rm -f conftest.err conftest.$ac_ext
  4320. if $ac_preproc_ok; then
  4321. break
  4322. fi
  4323. done
  4324. ac_cv_prog_CPP=$CPP
  4325. fi
  4326. CPP=$ac_cv_prog_CPP
  4327. else
  4328. ac_cv_prog_CPP=$CPP
  4329. fi
  4330. echo "$as_me:$LINENO: result: $CPP" >&5
  4331. echo "${ECHO_T}$CPP" >&6
  4332. ac_preproc_ok=false
  4333. for ac_c_preproc_warn_flag in '' yes
  4334. do
  4335. # Use a header file that comes with gcc, so configuring glibc
  4336. # with a fresh cross-compiler works.
  4337. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4338. # <limits.h> exists even on freestanding compilers.
  4339. # On the NeXT, cc -E runs the code through the compiler's parser,
  4340. # not just through cpp. "Syntax error" is here to catch this case.
  4341. cat >conftest.$ac_ext <<_ACEOF
  4342. /* confdefs.h. */
  4343. _ACEOF
  4344. cat confdefs.h >>conftest.$ac_ext
  4345. cat >>conftest.$ac_ext <<_ACEOF
  4346. /* end confdefs.h. */
  4347. #ifdef __STDC__
  4348. # include <limits.h>
  4349. #else
  4350. # include <assert.h>
  4351. #endif
  4352. Syntax error
  4353. _ACEOF
  4354. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4355. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4356. ac_status=$?
  4357. grep -v '^ *+' conftest.er1 >conftest.err
  4358. rm -f conftest.er1
  4359. cat conftest.err >&5
  4360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4361. (exit $ac_status); } >/dev/null; then
  4362. if test -s conftest.err; then
  4363. ac_cpp_err=$ac_c_preproc_warn_flag
  4364. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4365. else
  4366. ac_cpp_err=
  4367. fi
  4368. else
  4369. ac_cpp_err=yes
  4370. fi
  4371. if test -z "$ac_cpp_err"; then
  4372. :
  4373. else
  4374. echo "$as_me: failed program was:" >&5
  4375. sed 's/^/| /' conftest.$ac_ext >&5
  4376. # Broken: fails on valid input.
  4377. continue
  4378. fi
  4379. rm -f conftest.err conftest.$ac_ext
  4380. # OK, works on sane cases. Now check whether non-existent headers
  4381. # can be detected and how.
  4382. cat >conftest.$ac_ext <<_ACEOF
  4383. /* confdefs.h. */
  4384. _ACEOF
  4385. cat confdefs.h >>conftest.$ac_ext
  4386. cat >>conftest.$ac_ext <<_ACEOF
  4387. /* end confdefs.h. */
  4388. #include <ac_nonexistent.h>
  4389. _ACEOF
  4390. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4391. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4392. ac_status=$?
  4393. grep -v '^ *+' conftest.er1 >conftest.err
  4394. rm -f conftest.er1
  4395. cat conftest.err >&5
  4396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4397. (exit $ac_status); } >/dev/null; then
  4398. if test -s conftest.err; then
  4399. ac_cpp_err=$ac_c_preproc_warn_flag
  4400. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4401. else
  4402. ac_cpp_err=
  4403. fi
  4404. else
  4405. ac_cpp_err=yes
  4406. fi
  4407. if test -z "$ac_cpp_err"; then
  4408. # Broken: success on invalid input.
  4409. continue
  4410. else
  4411. echo "$as_me: failed program was:" >&5
  4412. sed 's/^/| /' conftest.$ac_ext >&5
  4413. # Passes both tests.
  4414. ac_preproc_ok=:
  4415. break
  4416. fi
  4417. rm -f conftest.err conftest.$ac_ext
  4418. done
  4419. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4420. rm -f conftest.err conftest.$ac_ext
  4421. if $ac_preproc_ok; then
  4422. :
  4423. else
  4424. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4425. See \`config.log' for more details." >&5
  4426. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4427. See \`config.log' for more details." >&2;}
  4428. { (exit 1); exit 1; }; }
  4429. fi
  4430. ac_ext=c
  4431. ac_cpp='$CPP $CPPFLAGS'
  4432. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4433. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4434. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4435. echo "$as_me:$LINENO: checking for egrep" >&5
  4436. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  4437. if test "${ac_cv_prog_egrep+set}" = set; then
  4438. echo $ECHO_N "(cached) $ECHO_C" >&6
  4439. else
  4440. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  4441. then ac_cv_prog_egrep='grep -E'
  4442. else ac_cv_prog_egrep='egrep'
  4443. fi
  4444. fi
  4445. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  4446. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  4447. EGREP=$ac_cv_prog_egrep
  4448. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  4449. # for constant arguments. Useless!
  4450. echo "$as_me:$LINENO: checking for working alloca.h" >&5
  4451. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
  4452. if test "${ac_cv_working_alloca_h+set}" = set; then
  4453. echo $ECHO_N "(cached) $ECHO_C" >&6
  4454. else
  4455. cat >conftest.$ac_ext <<_ACEOF
  4456. /* confdefs.h. */
  4457. _ACEOF
  4458. cat confdefs.h >>conftest.$ac_ext
  4459. cat >>conftest.$ac_ext <<_ACEOF
  4460. /* end confdefs.h. */
  4461. #include <alloca.h>
  4462. int
  4463. main ()
  4464. {
  4465. char *p = (char *) alloca (2 * sizeof (int));
  4466. ;
  4467. return 0;
  4468. }
  4469. _ACEOF
  4470. rm -f conftest.$ac_objext conftest$ac_exeext
  4471. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4472. (eval $ac_link) 2>conftest.er1
  4473. ac_status=$?
  4474. grep -v '^ *+' conftest.er1 >conftest.err
  4475. rm -f conftest.er1
  4476. cat conftest.err >&5
  4477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4478. (exit $ac_status); } &&
  4479. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4480. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4481. (eval $ac_try) 2>&5
  4482. ac_status=$?
  4483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4484. (exit $ac_status); }; } &&
  4485. { ac_try='test -s conftest$ac_exeext'
  4486. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4487. (eval $ac_try) 2>&5
  4488. ac_status=$?
  4489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4490. (exit $ac_status); }; }; then
  4491. ac_cv_working_alloca_h=yes
  4492. else
  4493. echo "$as_me: failed program was:" >&5
  4494. sed 's/^/| /' conftest.$ac_ext >&5
  4495. ac_cv_working_alloca_h=no
  4496. fi
  4497. rm -f conftest.err conftest.$ac_objext \
  4498. conftest$ac_exeext conftest.$ac_ext
  4499. fi
  4500. echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  4501. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
  4502. if test $ac_cv_working_alloca_h = yes; then
  4503. cat >>confdefs.h <<\_ACEOF
  4504. #define HAVE_ALLOCA_H 1
  4505. _ACEOF
  4506. fi
  4507. echo "$as_me:$LINENO: checking for alloca" >&5
  4508. echo $ECHO_N "checking for alloca... $ECHO_C" >&6
  4509. if test "${ac_cv_func_alloca_works+set}" = set; then
  4510. echo $ECHO_N "(cached) $ECHO_C" >&6
  4511. else
  4512. cat >conftest.$ac_ext <<_ACEOF
  4513. /* confdefs.h. */
  4514. _ACEOF
  4515. cat confdefs.h >>conftest.$ac_ext
  4516. cat >>conftest.$ac_ext <<_ACEOF
  4517. /* end confdefs.h. */
  4518. #ifdef __GNUC__
  4519. # define alloca __builtin_alloca
  4520. #else
  4521. # ifdef _MSC_VER
  4522. # include <malloc.h>
  4523. # define alloca _alloca
  4524. # else
  4525. # if HAVE_ALLOCA_H
  4526. # include <alloca.h>
  4527. # else
  4528. # ifdef _AIX
  4529. #pragma alloca
  4530. # else
  4531. # ifndef alloca /* predefined by HP cc +Olibcalls */
  4532. char *alloca ();
  4533. # endif
  4534. # endif
  4535. # endif
  4536. # endif
  4537. #endif
  4538. int
  4539. main ()
  4540. {
  4541. char *p = (char *) alloca (1);
  4542. ;
  4543. return 0;
  4544. }
  4545. _ACEOF
  4546. rm -f conftest.$ac_objext conftest$ac_exeext
  4547. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4548. (eval $ac_link) 2>conftest.er1
  4549. ac_status=$?
  4550. grep -v '^ *+' conftest.er1 >conftest.err
  4551. rm -f conftest.er1
  4552. cat conftest.err >&5
  4553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4554. (exit $ac_status); } &&
  4555. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4556. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4557. (eval $ac_try) 2>&5
  4558. ac_status=$?
  4559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4560. (exit $ac_status); }; } &&
  4561. { ac_try='test -s conftest$ac_exeext'
  4562. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4563. (eval $ac_try) 2>&5
  4564. ac_status=$?
  4565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4566. (exit $ac_status); }; }; then
  4567. ac_cv_func_alloca_works=yes
  4568. else
  4569. echo "$as_me: failed program was:" >&5
  4570. sed 's/^/| /' conftest.$ac_ext >&5
  4571. ac_cv_func_alloca_works=no
  4572. fi
  4573. rm -f conftest.err conftest.$ac_objext \
  4574. conftest$ac_exeext conftest.$ac_ext
  4575. fi
  4576. echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  4577. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
  4578. if test $ac_cv_func_alloca_works = yes; then
  4579. cat >>confdefs.h <<\_ACEOF
  4580. #define HAVE_ALLOCA 1
  4581. _ACEOF
  4582. else
  4583. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  4584. # that cause trouble. Some versions do not even contain alloca or
  4585. # contain a buggy version. If you still want to use their alloca,
  4586. # use ar to extract alloca.o from them instead of compiling alloca.c.
  4587. ALLOCA=alloca.$ac_objext
  4588. cat >>confdefs.h <<\_ACEOF
  4589. #define C_ALLOCA 1
  4590. _ACEOF
  4591. echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  4592. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
  4593. if test "${ac_cv_os_cray+set}" = set; then
  4594. echo $ECHO_N "(cached) $ECHO_C" >&6
  4595. else
  4596. cat >conftest.$ac_ext <<_ACEOF
  4597. /* confdefs.h. */
  4598. _ACEOF
  4599. cat confdefs.h >>conftest.$ac_ext
  4600. cat >>conftest.$ac_ext <<_ACEOF
  4601. /* end confdefs.h. */
  4602. #if defined(CRAY) && ! defined(CRAY2)
  4603. webecray
  4604. #else
  4605. wenotbecray
  4606. #endif
  4607. _ACEOF
  4608. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4609. $EGREP "webecray" >/dev/null 2>&1; then
  4610. ac_cv_os_cray=yes
  4611. else
  4612. ac_cv_os_cray=no
  4613. fi
  4614. rm -f conftest*
  4615. fi
  4616. echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  4617. echo "${ECHO_T}$ac_cv_os_cray" >&6
  4618. if test $ac_cv_os_cray = yes; then
  4619. for ac_func in _getb67 GETB67 getb67; do
  4620. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4621. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4622. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4623. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4624. echo $ECHO_N "(cached) $ECHO_C" >&6
  4625. else
  4626. cat >conftest.$ac_ext <<_ACEOF
  4627. /* confdefs.h. */
  4628. _ACEOF
  4629. cat confdefs.h >>conftest.$ac_ext
  4630. cat >>conftest.$ac_ext <<_ACEOF
  4631. /* end confdefs.h. */
  4632. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4633. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4634. #define $ac_func innocuous_$ac_func
  4635. /* System header to define __stub macros and hopefully few prototypes,
  4636. which can conflict with char $ac_func (); below.
  4637. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4638. <limits.h> exists even on freestanding compilers. */
  4639. #ifdef __STDC__
  4640. # include <limits.h>
  4641. #else
  4642. # include <assert.h>
  4643. #endif
  4644. #undef $ac_func
  4645. /* Override any gcc2 internal prototype to avoid an error. */
  4646. #ifdef __cplusplus
  4647. extern "C"
  4648. {
  4649. #endif
  4650. /* We use char because int might match the return type of a gcc2
  4651. builtin and then its argument prototype would still apply. */
  4652. char $ac_func ();
  4653. /* The GNU C library defines this for functions which it implements
  4654. to always fail with ENOSYS. Some functions are actually named
  4655. something starting with __ and the normal name is an alias. */
  4656. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4657. choke me
  4658. #else
  4659. char (*f) () = $ac_func;
  4660. #endif
  4661. #ifdef __cplusplus
  4662. }
  4663. #endif
  4664. int
  4665. main ()
  4666. {
  4667. return f != $ac_func;
  4668. ;
  4669. return 0;
  4670. }
  4671. _ACEOF
  4672. rm -f conftest.$ac_objext conftest$ac_exeext
  4673. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4674. (eval $ac_link) 2>conftest.er1
  4675. ac_status=$?
  4676. grep -v '^ *+' conftest.er1 >conftest.err
  4677. rm -f conftest.er1
  4678. cat conftest.err >&5
  4679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4680. (exit $ac_status); } &&
  4681. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4682. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4683. (eval $ac_try) 2>&5
  4684. ac_status=$?
  4685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4686. (exit $ac_status); }; } &&
  4687. { ac_try='test -s conftest$ac_exeext'
  4688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4689. (eval $ac_try) 2>&5
  4690. ac_status=$?
  4691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4692. (exit $ac_status); }; }; then
  4693. eval "$as_ac_var=yes"
  4694. else
  4695. echo "$as_me: failed program was:" >&5
  4696. sed 's/^/| /' conftest.$ac_ext >&5
  4697. eval "$as_ac_var=no"
  4698. fi
  4699. rm -f conftest.err conftest.$ac_objext \
  4700. conftest$ac_exeext conftest.$ac_ext
  4701. fi
  4702. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4703. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4704. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4705. cat >>confdefs.h <<_ACEOF
  4706. #define CRAY_STACKSEG_END $ac_func
  4707. _ACEOF
  4708. break
  4709. fi
  4710. done
  4711. fi
  4712. echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  4713. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
  4714. if test "${ac_cv_c_stack_direction+set}" = set; then
  4715. echo $ECHO_N "(cached) $ECHO_C" >&6
  4716. else
  4717. if test "$cross_compiling" = yes; then
  4718. ac_cv_c_stack_direction=0
  4719. else
  4720. cat >conftest.$ac_ext <<_ACEOF
  4721. /* confdefs.h. */
  4722. _ACEOF
  4723. cat confdefs.h >>conftest.$ac_ext
  4724. cat >>conftest.$ac_ext <<_ACEOF
  4725. /* end confdefs.h. */
  4726. int
  4727. find_stack_direction ()
  4728. {
  4729. static char *addr = 0;
  4730. auto char dummy;
  4731. if (addr == 0)
  4732. {
  4733. addr = &dummy;
  4734. return find_stack_direction ();
  4735. }
  4736. else
  4737. return (&dummy > addr) ? 1 : -1;
  4738. }
  4739. int
  4740. main ()
  4741. {
  4742. exit (find_stack_direction () < 0);
  4743. }
  4744. _ACEOF
  4745. rm -f conftest$ac_exeext
  4746. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4747. (eval $ac_link) 2>&5
  4748. ac_status=$?
  4749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4750. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4751. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4752. (eval $ac_try) 2>&5
  4753. ac_status=$?
  4754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4755. (exit $ac_status); }; }; then
  4756. ac_cv_c_stack_direction=1
  4757. else
  4758. echo "$as_me: program exited with status $ac_status" >&5
  4759. echo "$as_me: failed program was:" >&5
  4760. sed 's/^/| /' conftest.$ac_ext >&5
  4761. ( exit $ac_status )
  4762. ac_cv_c_stack_direction=-1
  4763. fi
  4764. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4765. fi
  4766. fi
  4767. echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  4768. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
  4769. cat >>confdefs.h <<_ACEOF
  4770. #define STACK_DIRECTION $ac_cv_c_stack_direction
  4771. _ACEOF
  4772. fi
  4773. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4774. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4775. if test "${ac_cv_header_stdc+set}" = set; then
  4776. echo $ECHO_N "(cached) $ECHO_C" >&6
  4777. else
  4778. cat >conftest.$ac_ext <<_ACEOF
  4779. /* confdefs.h. */
  4780. _ACEOF
  4781. cat confdefs.h >>conftest.$ac_ext
  4782. cat >>conftest.$ac_ext <<_ACEOF
  4783. /* end confdefs.h. */
  4784. #include <stdlib.h>
  4785. #include <stdarg.h>
  4786. #include <string.h>
  4787. #include <float.h>
  4788. int
  4789. main ()
  4790. {
  4791. ;
  4792. return 0;
  4793. }
  4794. _ACEOF
  4795. rm -f conftest.$ac_objext
  4796. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4797. (eval $ac_compile) 2>conftest.er1
  4798. ac_status=$?
  4799. grep -v '^ *+' conftest.er1 >conftest.err
  4800. rm -f conftest.er1
  4801. cat conftest.err >&5
  4802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4803. (exit $ac_status); } &&
  4804. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4806. (eval $ac_try) 2>&5
  4807. ac_status=$?
  4808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4809. (exit $ac_status); }; } &&
  4810. { ac_try='test -s conftest.$ac_objext'
  4811. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4812. (eval $ac_try) 2>&5
  4813. ac_status=$?
  4814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4815. (exit $ac_status); }; }; then
  4816. ac_cv_header_stdc=yes
  4817. else
  4818. echo "$as_me: failed program was:" >&5
  4819. sed 's/^/| /' conftest.$ac_ext >&5
  4820. ac_cv_header_stdc=no
  4821. fi
  4822. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4823. if test $ac_cv_header_stdc = yes; then
  4824. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4825. cat >conftest.$ac_ext <<_ACEOF
  4826. /* confdefs.h. */
  4827. _ACEOF
  4828. cat confdefs.h >>conftest.$ac_ext
  4829. cat >>conftest.$ac_ext <<_ACEOF
  4830. /* end confdefs.h. */
  4831. #include <string.h>
  4832. _ACEOF
  4833. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4834. $EGREP "memchr" >/dev/null 2>&1; then
  4835. :
  4836. else
  4837. ac_cv_header_stdc=no
  4838. fi
  4839. rm -f conftest*
  4840. fi
  4841. if test $ac_cv_header_stdc = yes; then
  4842. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4843. cat >conftest.$ac_ext <<_ACEOF
  4844. /* confdefs.h. */
  4845. _ACEOF
  4846. cat confdefs.h >>conftest.$ac_ext
  4847. cat >>conftest.$ac_ext <<_ACEOF
  4848. /* end confdefs.h. */
  4849. #include <stdlib.h>
  4850. _ACEOF
  4851. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4852. $EGREP "free" >/dev/null 2>&1; then
  4853. :
  4854. else
  4855. ac_cv_header_stdc=no
  4856. fi
  4857. rm -f conftest*
  4858. fi
  4859. if test $ac_cv_header_stdc = yes; then
  4860. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4861. if test "$cross_compiling" = yes; then
  4862. :
  4863. else
  4864. cat >conftest.$ac_ext <<_ACEOF
  4865. /* confdefs.h. */
  4866. _ACEOF
  4867. cat confdefs.h >>conftest.$ac_ext
  4868. cat >>conftest.$ac_ext <<_ACEOF
  4869. /* end confdefs.h. */
  4870. #include <ctype.h>
  4871. #if ((' ' & 0x0FF) == 0x020)
  4872. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4873. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4874. #else
  4875. # define ISLOWER(c) \
  4876. (('a' <= (c) && (c) <= 'i') \
  4877. || ('j' <= (c) && (c) <= 'r') \
  4878. || ('s' <= (c) && (c) <= 'z'))
  4879. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4880. #endif
  4881. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4882. int
  4883. main ()
  4884. {
  4885. int i;
  4886. for (i = 0; i < 256; i++)
  4887. if (XOR (islower (i), ISLOWER (i))
  4888. || toupper (i) != TOUPPER (i))
  4889. exit(2);
  4890. exit (0);
  4891. }
  4892. _ACEOF
  4893. rm -f conftest$ac_exeext
  4894. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4895. (eval $ac_link) 2>&5
  4896. ac_status=$?
  4897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4898. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4899. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4900. (eval $ac_try) 2>&5
  4901. ac_status=$?
  4902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4903. (exit $ac_status); }; }; then
  4904. :
  4905. else
  4906. echo "$as_me: program exited with status $ac_status" >&5
  4907. echo "$as_me: failed program was:" >&5
  4908. sed 's/^/| /' conftest.$ac_ext >&5
  4909. ( exit $ac_status )
  4910. ac_cv_header_stdc=no
  4911. fi
  4912. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4913. fi
  4914. fi
  4915. fi
  4916. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4917. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4918. if test $ac_cv_header_stdc = yes; then
  4919. cat >>confdefs.h <<\_ACEOF
  4920. #define STDC_HEADERS 1
  4921. _ACEOF
  4922. fi
  4923. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4924. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4925. inttypes.h stdint.h unistd.h
  4926. do
  4927. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4928. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4929. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4930. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4931. echo $ECHO_N "(cached) $ECHO_C" >&6
  4932. else
  4933. cat >conftest.$ac_ext <<_ACEOF
  4934. /* confdefs.h. */
  4935. _ACEOF
  4936. cat confdefs.h >>conftest.$ac_ext
  4937. cat >>conftest.$ac_ext <<_ACEOF
  4938. /* end confdefs.h. */
  4939. $ac_includes_default
  4940. #include <$ac_header>
  4941. _ACEOF
  4942. rm -f conftest.$ac_objext
  4943. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4944. (eval $ac_compile) 2>conftest.er1
  4945. ac_status=$?
  4946. grep -v '^ *+' conftest.er1 >conftest.err
  4947. rm -f conftest.er1
  4948. cat conftest.err >&5
  4949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4950. (exit $ac_status); } &&
  4951. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4952. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4953. (eval $ac_try) 2>&5
  4954. ac_status=$?
  4955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4956. (exit $ac_status); }; } &&
  4957. { ac_try='test -s conftest.$ac_objext'
  4958. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4959. (eval $ac_try) 2>&5
  4960. ac_status=$?
  4961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4962. (exit $ac_status); }; }; then
  4963. eval "$as_ac_Header=yes"
  4964. else
  4965. echo "$as_me: failed program was:" >&5
  4966. sed 's/^/| /' conftest.$ac_ext >&5
  4967. eval "$as_ac_Header=no"
  4968. fi
  4969. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4970. fi
  4971. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4972. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4973. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4974. cat >>confdefs.h <<_ACEOF
  4975. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4976. _ACEOF
  4977. fi
  4978. done
  4979. 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
  4980. do
  4981. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4982. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4983. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4984. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4985. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4986. echo $ECHO_N "(cached) $ECHO_C" >&6
  4987. fi
  4988. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4989. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4990. else
  4991. # Is the header compilable?
  4992. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4993. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4994. cat >conftest.$ac_ext <<_ACEOF
  4995. /* confdefs.h. */
  4996. _ACEOF
  4997. cat confdefs.h >>conftest.$ac_ext
  4998. cat >>conftest.$ac_ext <<_ACEOF
  4999. /* end confdefs.h. */
  5000. $ac_includes_default
  5001. #include <$ac_header>
  5002. _ACEOF
  5003. rm -f conftest.$ac_objext
  5004. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5005. (eval $ac_compile) 2>conftest.er1
  5006. ac_status=$?
  5007. grep -v '^ *+' conftest.er1 >conftest.err
  5008. rm -f conftest.er1
  5009. cat conftest.err >&5
  5010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5011. (exit $ac_status); } &&
  5012. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5013. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5014. (eval $ac_try) 2>&5
  5015. ac_status=$?
  5016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5017. (exit $ac_status); }; } &&
  5018. { ac_try='test -s conftest.$ac_objext'
  5019. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5020. (eval $ac_try) 2>&5
  5021. ac_status=$?
  5022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5023. (exit $ac_status); }; }; then
  5024. ac_header_compiler=yes
  5025. else
  5026. echo "$as_me: failed program was:" >&5
  5027. sed 's/^/| /' conftest.$ac_ext >&5
  5028. ac_header_compiler=no
  5029. fi
  5030. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5031. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5032. echo "${ECHO_T}$ac_header_compiler" >&6
  5033. # Is the header present?
  5034. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5035. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5036. cat >conftest.$ac_ext <<_ACEOF
  5037. /* confdefs.h. */
  5038. _ACEOF
  5039. cat confdefs.h >>conftest.$ac_ext
  5040. cat >>conftest.$ac_ext <<_ACEOF
  5041. /* end confdefs.h. */
  5042. #include <$ac_header>
  5043. _ACEOF
  5044. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5045. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5046. ac_status=$?
  5047. grep -v '^ *+' conftest.er1 >conftest.err
  5048. rm -f conftest.er1
  5049. cat conftest.err >&5
  5050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5051. (exit $ac_status); } >/dev/null; then
  5052. if test -s conftest.err; then
  5053. ac_cpp_err=$ac_c_preproc_warn_flag
  5054. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5055. else
  5056. ac_cpp_err=
  5057. fi
  5058. else
  5059. ac_cpp_err=yes
  5060. fi
  5061. if test -z "$ac_cpp_err"; then
  5062. ac_header_preproc=yes
  5063. else
  5064. echo "$as_me: failed program was:" >&5
  5065. sed 's/^/| /' conftest.$ac_ext >&5
  5066. ac_header_preproc=no
  5067. fi
  5068. rm -f conftest.err conftest.$ac_ext
  5069. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5070. echo "${ECHO_T}$ac_header_preproc" >&6
  5071. # So? What about this header?
  5072. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5073. yes:no: )
  5074. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5075. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5076. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5077. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5078. ac_header_preproc=yes
  5079. ;;
  5080. no:yes:* )
  5081. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5082. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5083. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5084. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5085. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5086. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5087. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5088. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5089. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5090. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5091. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5092. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5093. (
  5094. cat <<\_ASBOX
  5095. ## ----------------------------------- ##
  5096. ## Report this to tujikawa@rednoah.com ##
  5097. ## ----------------------------------- ##
  5098. _ASBOX
  5099. ) |
  5100. sed "s/^/$as_me: WARNING: /" >&2
  5101. ;;
  5102. esac
  5103. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5104. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5105. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5106. echo $ECHO_N "(cached) $ECHO_C" >&6
  5107. else
  5108. eval "$as_ac_Header=\$ac_header_preproc"
  5109. fi
  5110. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5111. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5112. fi
  5113. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5114. cat >>confdefs.h <<_ACEOF
  5115. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5116. _ACEOF
  5117. fi
  5118. done
  5119. # Checks for typedefs, structures, and compiler characteristics.
  5120. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  5121. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  5122. if test "${ac_cv_header_stdbool_h+set}" = set; then
  5123. echo $ECHO_N "(cached) $ECHO_C" >&6
  5124. else
  5125. cat >conftest.$ac_ext <<_ACEOF
  5126. /* confdefs.h. */
  5127. _ACEOF
  5128. cat confdefs.h >>conftest.$ac_ext
  5129. cat >>conftest.$ac_ext <<_ACEOF
  5130. /* end confdefs.h. */
  5131. #include <stdbool.h>
  5132. #ifndef bool
  5133. # error bool is not defined
  5134. #endif
  5135. #ifndef false
  5136. # error false is not defined
  5137. #endif
  5138. #if false
  5139. # error false is not 0
  5140. #endif
  5141. #ifndef true
  5142. # error true is not defined
  5143. #endif
  5144. #if true != 1
  5145. # error true is not 1
  5146. #endif
  5147. #ifndef __bool_true_false_are_defined
  5148. # error __bool_true_false_are_defined is not defined
  5149. #endif
  5150. struct s { _Bool s: 1; _Bool t; } s;
  5151. char a[true == 1 ? 1 : -1];
  5152. char b[false == 0 ? 1 : -1];
  5153. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  5154. char d[(bool) -0.5 == true ? 1 : -1];
  5155. bool e = &s;
  5156. char f[(_Bool) -0.0 == false ? 1 : -1];
  5157. char g[true];
  5158. char h[sizeof (_Bool)];
  5159. char i[sizeof s.t];
  5160. int
  5161. main ()
  5162. {
  5163. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  5164. ;
  5165. return 0;
  5166. }
  5167. _ACEOF
  5168. rm -f conftest.$ac_objext
  5169. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5170. (eval $ac_compile) 2>conftest.er1
  5171. ac_status=$?
  5172. grep -v '^ *+' conftest.er1 >conftest.err
  5173. rm -f conftest.er1
  5174. cat conftest.err >&5
  5175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5176. (exit $ac_status); } &&
  5177. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5178. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5179. (eval $ac_try) 2>&5
  5180. ac_status=$?
  5181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5182. (exit $ac_status); }; } &&
  5183. { ac_try='test -s conftest.$ac_objext'
  5184. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5185. (eval $ac_try) 2>&5
  5186. ac_status=$?
  5187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5188. (exit $ac_status); }; }; then
  5189. ac_cv_header_stdbool_h=yes
  5190. else
  5191. echo "$as_me: failed program was:" >&5
  5192. sed 's/^/| /' conftest.$ac_ext >&5
  5193. ac_cv_header_stdbool_h=no
  5194. fi
  5195. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5196. fi
  5197. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  5198. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  5199. echo "$as_me:$LINENO: checking for _Bool" >&5
  5200. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  5201. if test "${ac_cv_type__Bool+set}" = set; then
  5202. echo $ECHO_N "(cached) $ECHO_C" >&6
  5203. else
  5204. cat >conftest.$ac_ext <<_ACEOF
  5205. /* confdefs.h. */
  5206. _ACEOF
  5207. cat confdefs.h >>conftest.$ac_ext
  5208. cat >>conftest.$ac_ext <<_ACEOF
  5209. /* end confdefs.h. */
  5210. $ac_includes_default
  5211. int
  5212. main ()
  5213. {
  5214. if ((_Bool *) 0)
  5215. return 0;
  5216. if (sizeof (_Bool))
  5217. return 0;
  5218. ;
  5219. return 0;
  5220. }
  5221. _ACEOF
  5222. rm -f conftest.$ac_objext
  5223. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5224. (eval $ac_compile) 2>conftest.er1
  5225. ac_status=$?
  5226. grep -v '^ *+' conftest.er1 >conftest.err
  5227. rm -f conftest.er1
  5228. cat conftest.err >&5
  5229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5230. (exit $ac_status); } &&
  5231. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5233. (eval $ac_try) 2>&5
  5234. ac_status=$?
  5235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5236. (exit $ac_status); }; } &&
  5237. { ac_try='test -s conftest.$ac_objext'
  5238. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5239. (eval $ac_try) 2>&5
  5240. ac_status=$?
  5241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5242. (exit $ac_status); }; }; then
  5243. ac_cv_type__Bool=yes
  5244. else
  5245. echo "$as_me: failed program was:" >&5
  5246. sed 's/^/| /' conftest.$ac_ext >&5
  5247. ac_cv_type__Bool=no
  5248. fi
  5249. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5250. fi
  5251. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  5252. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  5253. if test $ac_cv_type__Bool = yes; then
  5254. cat >>confdefs.h <<_ACEOF
  5255. #define HAVE__BOOL 1
  5256. _ACEOF
  5257. fi
  5258. if test $ac_cv_header_stdbool_h = yes; then
  5259. cat >>confdefs.h <<\_ACEOF
  5260. #define HAVE_STDBOOL_H 1
  5261. _ACEOF
  5262. fi
  5263. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5264. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5265. if test "${ac_cv_c_const+set}" = set; then
  5266. echo $ECHO_N "(cached) $ECHO_C" >&6
  5267. else
  5268. cat >conftest.$ac_ext <<_ACEOF
  5269. /* confdefs.h. */
  5270. _ACEOF
  5271. cat confdefs.h >>conftest.$ac_ext
  5272. cat >>conftest.$ac_ext <<_ACEOF
  5273. /* end confdefs.h. */
  5274. int
  5275. main ()
  5276. {
  5277. /* FIXME: Include the comments suggested by Paul. */
  5278. #ifndef __cplusplus
  5279. /* Ultrix mips cc rejects this. */
  5280. typedef int charset[2];
  5281. const charset x;
  5282. /* SunOS 4.1.1 cc rejects this. */
  5283. char const *const *ccp;
  5284. char **p;
  5285. /* NEC SVR4.0.2 mips cc rejects this. */
  5286. struct point {int x, y;};
  5287. static struct point const zero = {0,0};
  5288. /* AIX XL C 1.02.0.0 rejects this.
  5289. It does not let you subtract one const X* pointer from another in
  5290. an arm of an if-expression whose if-part is not a constant
  5291. expression */
  5292. const char *g = "string";
  5293. ccp = &g + (g ? g-g : 0);
  5294. /* HPUX 7.0 cc rejects these. */
  5295. ++ccp;
  5296. p = (char**) ccp;
  5297. ccp = (char const *const *) p;
  5298. { /* SCO 3.2v4 cc rejects this. */
  5299. char *t;
  5300. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5301. *t++ = 0;
  5302. }
  5303. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5304. int x[] = {25, 17};
  5305. const int *foo = &x[0];
  5306. ++foo;
  5307. }
  5308. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5309. typedef const int *iptr;
  5310. iptr p = 0;
  5311. ++p;
  5312. }
  5313. { /* AIX XL C 1.02.0.0 rejects this saying
  5314. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5315. struct s { int j; const int *ap[3]; };
  5316. struct s *b; b->j = 5;
  5317. }
  5318. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5319. const int foo = 10;
  5320. }
  5321. #endif
  5322. ;
  5323. return 0;
  5324. }
  5325. _ACEOF
  5326. rm -f conftest.$ac_objext
  5327. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5328. (eval $ac_compile) 2>conftest.er1
  5329. ac_status=$?
  5330. grep -v '^ *+' conftest.er1 >conftest.err
  5331. rm -f conftest.er1
  5332. cat conftest.err >&5
  5333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5334. (exit $ac_status); } &&
  5335. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5336. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5337. (eval $ac_try) 2>&5
  5338. ac_status=$?
  5339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5340. (exit $ac_status); }; } &&
  5341. { ac_try='test -s conftest.$ac_objext'
  5342. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5343. (eval $ac_try) 2>&5
  5344. ac_status=$?
  5345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5346. (exit $ac_status); }; }; then
  5347. ac_cv_c_const=yes
  5348. else
  5349. echo "$as_me: failed program was:" >&5
  5350. sed 's/^/| /' conftest.$ac_ext >&5
  5351. ac_cv_c_const=no
  5352. fi
  5353. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5354. fi
  5355. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5356. echo "${ECHO_T}$ac_cv_c_const" >&6
  5357. if test $ac_cv_c_const = no; then
  5358. cat >>confdefs.h <<\_ACEOF
  5359. #define const
  5360. _ACEOF
  5361. fi
  5362. echo "$as_me:$LINENO: checking for inline" >&5
  5363. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  5364. if test "${ac_cv_c_inline+set}" = set; then
  5365. echo $ECHO_N "(cached) $ECHO_C" >&6
  5366. else
  5367. ac_cv_c_inline=no
  5368. for ac_kw in inline __inline__ __inline; do
  5369. cat >conftest.$ac_ext <<_ACEOF
  5370. /* confdefs.h. */
  5371. _ACEOF
  5372. cat confdefs.h >>conftest.$ac_ext
  5373. cat >>conftest.$ac_ext <<_ACEOF
  5374. /* end confdefs.h. */
  5375. #ifndef __cplusplus
  5376. typedef int foo_t;
  5377. static $ac_kw foo_t static_foo () {return 0; }
  5378. $ac_kw foo_t foo () {return 0; }
  5379. #endif
  5380. _ACEOF
  5381. rm -f conftest.$ac_objext
  5382. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5383. (eval $ac_compile) 2>conftest.er1
  5384. ac_status=$?
  5385. grep -v '^ *+' conftest.er1 >conftest.err
  5386. rm -f conftest.er1
  5387. cat conftest.err >&5
  5388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5389. (exit $ac_status); } &&
  5390. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5391. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5392. (eval $ac_try) 2>&5
  5393. ac_status=$?
  5394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5395. (exit $ac_status); }; } &&
  5396. { ac_try='test -s conftest.$ac_objext'
  5397. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5398. (eval $ac_try) 2>&5
  5399. ac_status=$?
  5400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5401. (exit $ac_status); }; }; then
  5402. ac_cv_c_inline=$ac_kw; break
  5403. else
  5404. echo "$as_me: failed program was:" >&5
  5405. sed 's/^/| /' conftest.$ac_ext >&5
  5406. fi
  5407. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5408. done
  5409. fi
  5410. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  5411. echo "${ECHO_T}$ac_cv_c_inline" >&6
  5412. case $ac_cv_c_inline in
  5413. inline | yes) ;;
  5414. *)
  5415. case $ac_cv_c_inline in
  5416. no) ac_val=;;
  5417. *) ac_val=$ac_cv_c_inline;;
  5418. esac
  5419. cat >>confdefs.h <<_ACEOF
  5420. #ifndef __cplusplus
  5421. #define inline $ac_val
  5422. #endif
  5423. _ACEOF
  5424. ;;
  5425. esac
  5426. echo "$as_me:$LINENO: checking for size_t" >&5
  5427. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5428. if test "${ac_cv_type_size_t+set}" = set; then
  5429. echo $ECHO_N "(cached) $ECHO_C" >&6
  5430. else
  5431. cat >conftest.$ac_ext <<_ACEOF
  5432. /* confdefs.h. */
  5433. _ACEOF
  5434. cat confdefs.h >>conftest.$ac_ext
  5435. cat >>conftest.$ac_ext <<_ACEOF
  5436. /* end confdefs.h. */
  5437. $ac_includes_default
  5438. int
  5439. main ()
  5440. {
  5441. if ((size_t *) 0)
  5442. return 0;
  5443. if (sizeof (size_t))
  5444. return 0;
  5445. ;
  5446. return 0;
  5447. }
  5448. _ACEOF
  5449. rm -f conftest.$ac_objext
  5450. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5451. (eval $ac_compile) 2>conftest.er1
  5452. ac_status=$?
  5453. grep -v '^ *+' conftest.er1 >conftest.err
  5454. rm -f conftest.er1
  5455. cat conftest.err >&5
  5456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5457. (exit $ac_status); } &&
  5458. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5459. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5460. (eval $ac_try) 2>&5
  5461. ac_status=$?
  5462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5463. (exit $ac_status); }; } &&
  5464. { ac_try='test -s conftest.$ac_objext'
  5465. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5466. (eval $ac_try) 2>&5
  5467. ac_status=$?
  5468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5469. (exit $ac_status); }; }; then
  5470. ac_cv_type_size_t=yes
  5471. else
  5472. echo "$as_me: failed program was:" >&5
  5473. sed 's/^/| /' conftest.$ac_ext >&5
  5474. ac_cv_type_size_t=no
  5475. fi
  5476. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5477. fi
  5478. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5479. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5480. if test $ac_cv_type_size_t = yes; then
  5481. :
  5482. else
  5483. cat >>confdefs.h <<_ACEOF
  5484. #define size_t unsigned
  5485. _ACEOF
  5486. fi
  5487. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5488. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5489. if test "${ac_cv_header_time+set}" = set; then
  5490. echo $ECHO_N "(cached) $ECHO_C" >&6
  5491. else
  5492. cat >conftest.$ac_ext <<_ACEOF
  5493. /* confdefs.h. */
  5494. _ACEOF
  5495. cat confdefs.h >>conftest.$ac_ext
  5496. cat >>conftest.$ac_ext <<_ACEOF
  5497. /* end confdefs.h. */
  5498. #include <sys/types.h>
  5499. #include <sys/time.h>
  5500. #include <time.h>
  5501. int
  5502. main ()
  5503. {
  5504. if ((struct tm *) 0)
  5505. return 0;
  5506. ;
  5507. return 0;
  5508. }
  5509. _ACEOF
  5510. rm -f conftest.$ac_objext
  5511. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5512. (eval $ac_compile) 2>conftest.er1
  5513. ac_status=$?
  5514. grep -v '^ *+' conftest.er1 >conftest.err
  5515. rm -f conftest.er1
  5516. cat conftest.err >&5
  5517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5518. (exit $ac_status); } &&
  5519. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5520. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5521. (eval $ac_try) 2>&5
  5522. ac_status=$?
  5523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5524. (exit $ac_status); }; } &&
  5525. { ac_try='test -s conftest.$ac_objext'
  5526. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5527. (eval $ac_try) 2>&5
  5528. ac_status=$?
  5529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5530. (exit $ac_status); }; }; then
  5531. ac_cv_header_time=yes
  5532. else
  5533. echo "$as_me: failed program was:" >&5
  5534. sed 's/^/| /' conftest.$ac_ext >&5
  5535. ac_cv_header_time=no
  5536. fi
  5537. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5538. fi
  5539. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5540. echo "${ECHO_T}$ac_cv_header_time" >&6
  5541. if test $ac_cv_header_time = yes; then
  5542. cat >>confdefs.h <<\_ACEOF
  5543. #define TIME_WITH_SYS_TIME 1
  5544. _ACEOF
  5545. fi
  5546. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  5547. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  5548. if test "${ac_cv_struct_tm+set}" = set; then
  5549. echo $ECHO_N "(cached) $ECHO_C" >&6
  5550. else
  5551. cat >conftest.$ac_ext <<_ACEOF
  5552. /* confdefs.h. */
  5553. _ACEOF
  5554. cat confdefs.h >>conftest.$ac_ext
  5555. cat >>conftest.$ac_ext <<_ACEOF
  5556. /* end confdefs.h. */
  5557. #include <sys/types.h>
  5558. #include <time.h>
  5559. int
  5560. main ()
  5561. {
  5562. struct tm *tp; tp->tm_sec;
  5563. ;
  5564. return 0;
  5565. }
  5566. _ACEOF
  5567. rm -f conftest.$ac_objext
  5568. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5569. (eval $ac_compile) 2>conftest.er1
  5570. ac_status=$?
  5571. grep -v '^ *+' conftest.er1 >conftest.err
  5572. rm -f conftest.er1
  5573. cat conftest.err >&5
  5574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5575. (exit $ac_status); } &&
  5576. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5577. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5578. (eval $ac_try) 2>&5
  5579. ac_status=$?
  5580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5581. (exit $ac_status); }; } &&
  5582. { ac_try='test -s conftest.$ac_objext'
  5583. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5584. (eval $ac_try) 2>&5
  5585. ac_status=$?
  5586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5587. (exit $ac_status); }; }; then
  5588. ac_cv_struct_tm=time.h
  5589. else
  5590. echo "$as_me: failed program was:" >&5
  5591. sed 's/^/| /' conftest.$ac_ext >&5
  5592. ac_cv_struct_tm=sys/time.h
  5593. fi
  5594. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5595. fi
  5596. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  5597. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  5598. if test $ac_cv_struct_tm = sys/time.h; then
  5599. cat >>confdefs.h <<\_ACEOF
  5600. #define TM_IN_SYS_TIME 1
  5601. _ACEOF
  5602. fi
  5603. echo "$as_me:$LINENO: checking for working volatile" >&5
  5604. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  5605. if test "${ac_cv_c_volatile+set}" = set; then
  5606. echo $ECHO_N "(cached) $ECHO_C" >&6
  5607. else
  5608. cat >conftest.$ac_ext <<_ACEOF
  5609. /* confdefs.h. */
  5610. _ACEOF
  5611. cat confdefs.h >>conftest.$ac_ext
  5612. cat >>conftest.$ac_ext <<_ACEOF
  5613. /* end confdefs.h. */
  5614. int
  5615. main ()
  5616. {
  5617. volatile int x;
  5618. int * volatile y;
  5619. ;
  5620. return 0;
  5621. }
  5622. _ACEOF
  5623. rm -f conftest.$ac_objext
  5624. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5625. (eval $ac_compile) 2>conftest.er1
  5626. ac_status=$?
  5627. grep -v '^ *+' conftest.er1 >conftest.err
  5628. rm -f conftest.er1
  5629. cat conftest.err >&5
  5630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5631. (exit $ac_status); } &&
  5632. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5633. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5634. (eval $ac_try) 2>&5
  5635. ac_status=$?
  5636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5637. (exit $ac_status); }; } &&
  5638. { ac_try='test -s conftest.$ac_objext'
  5639. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5640. (eval $ac_try) 2>&5
  5641. ac_status=$?
  5642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5643. (exit $ac_status); }; }; then
  5644. ac_cv_c_volatile=yes
  5645. else
  5646. echo "$as_me: failed program was:" >&5
  5647. sed 's/^/| /' conftest.$ac_ext >&5
  5648. ac_cv_c_volatile=no
  5649. fi
  5650. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5651. fi
  5652. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5653. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  5654. if test $ac_cv_c_volatile = no; then
  5655. cat >>confdefs.h <<\_ACEOF
  5656. #define volatile
  5657. _ACEOF
  5658. fi
  5659. # Checks for library functions.
  5660. MKINSTALLDIRS=
  5661. if test -n "$ac_aux_dir"; then
  5662. case "$ac_aux_dir" in
  5663. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  5664. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  5665. esac
  5666. fi
  5667. if test -z "$MKINSTALLDIRS"; then
  5668. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  5669. fi
  5670. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  5671. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  5672. # Check whether --enable-nls or --disable-nls was given.
  5673. if test "${enable_nls+set}" = set; then
  5674. enableval="$enable_nls"
  5675. USE_NLS=$enableval
  5676. else
  5677. USE_NLS=yes
  5678. fi;
  5679. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  5680. echo "${ECHO_T}$USE_NLS" >&6
  5681. # Prepare PATH_SEPARATOR.
  5682. # The user is always right.
  5683. if test "${PATH_SEPARATOR+set}" != set; then
  5684. echo "#! /bin/sh" >conf$$.sh
  5685. echo "exit 0" >>conf$$.sh
  5686. chmod +x conf$$.sh
  5687. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5688. PATH_SEPARATOR=';'
  5689. else
  5690. PATH_SEPARATOR=:
  5691. fi
  5692. rm -f conf$$.sh
  5693. fi
  5694. # Find out how to test for executable files. Don't use a zero-byte file,
  5695. # as systems may use methods other than mode bits to determine executability.
  5696. cat >conf$$.file <<_ASEOF
  5697. #! /bin/sh
  5698. exit 0
  5699. _ASEOF
  5700. chmod +x conf$$.file
  5701. if test -x conf$$.file >/dev/null 2>&1; then
  5702. ac_executable_p="test -x"
  5703. else
  5704. ac_executable_p="test -f"
  5705. fi
  5706. rm -f conf$$.file
  5707. # Extract the first word of "msgfmt", so it can be a program name with args.
  5708. set dummy msgfmt; ac_word=$2
  5709. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5710. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5711. if test "${ac_cv_path_MSGFMT+set}" = set; then
  5712. echo $ECHO_N "(cached) $ECHO_C" >&6
  5713. else
  5714. case "$MSGFMT" in
  5715. [\\/]* | ?:[\\/]*)
  5716. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  5717. ;;
  5718. *)
  5719. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5720. for ac_dir in $PATH; do
  5721. IFS="$ac_save_IFS"
  5722. test -z "$ac_dir" && ac_dir=.
  5723. for ac_exec_ext in '' $ac_executable_extensions; do
  5724. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5725. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  5726. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5727. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  5728. break 2
  5729. fi
  5730. fi
  5731. done
  5732. done
  5733. IFS="$ac_save_IFS"
  5734. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  5735. ;;
  5736. esac
  5737. fi
  5738. MSGFMT="$ac_cv_path_MSGFMT"
  5739. if test "$MSGFMT" != ":"; then
  5740. echo "$as_me:$LINENO: result: $MSGFMT" >&5
  5741. echo "${ECHO_T}$MSGFMT" >&6
  5742. else
  5743. echo "$as_me:$LINENO: result: no" >&5
  5744. echo "${ECHO_T}no" >&6
  5745. fi
  5746. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  5747. set dummy gmsgfmt; ac_word=$2
  5748. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5749. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5750. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  5751. echo $ECHO_N "(cached) $ECHO_C" >&6
  5752. else
  5753. case $GMSGFMT in
  5754. [\\/]* | ?:[\\/]*)
  5755. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  5756. ;;
  5757. *)
  5758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5759. for as_dir in $PATH
  5760. do
  5761. IFS=$as_save_IFS
  5762. test -z "$as_dir" && as_dir=.
  5763. for ac_exec_ext in '' $ac_executable_extensions; do
  5764. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5765. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  5766. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5767. break 2
  5768. fi
  5769. done
  5770. done
  5771. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  5772. ;;
  5773. esac
  5774. fi
  5775. GMSGFMT=$ac_cv_path_GMSGFMT
  5776. if test -n "$GMSGFMT"; then
  5777. echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  5778. echo "${ECHO_T}$GMSGFMT" >&6
  5779. else
  5780. echo "$as_me:$LINENO: result: no" >&5
  5781. echo "${ECHO_T}no" >&6
  5782. fi
  5783. # Prepare PATH_SEPARATOR.
  5784. # The user is always right.
  5785. if test "${PATH_SEPARATOR+set}" != set; then
  5786. echo "#! /bin/sh" >conf$$.sh
  5787. echo "exit 0" >>conf$$.sh
  5788. chmod +x conf$$.sh
  5789. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5790. PATH_SEPARATOR=';'
  5791. else
  5792. PATH_SEPARATOR=:
  5793. fi
  5794. rm -f conf$$.sh
  5795. fi
  5796. # Find out how to test for executable files. Don't use a zero-byte file,
  5797. # as systems may use methods other than mode bits to determine executability.
  5798. cat >conf$$.file <<_ASEOF
  5799. #! /bin/sh
  5800. exit 0
  5801. _ASEOF
  5802. chmod +x conf$$.file
  5803. if test -x conf$$.file >/dev/null 2>&1; then
  5804. ac_executable_p="test -x"
  5805. else
  5806. ac_executable_p="test -f"
  5807. fi
  5808. rm -f conf$$.file
  5809. # Extract the first word of "xgettext", so it can be a program name with args.
  5810. set dummy xgettext; ac_word=$2
  5811. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5812. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5813. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  5814. echo $ECHO_N "(cached) $ECHO_C" >&6
  5815. else
  5816. case "$XGETTEXT" in
  5817. [\\/]* | ?:[\\/]*)
  5818. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  5819. ;;
  5820. *)
  5821. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5822. for ac_dir in $PATH; do
  5823. IFS="$ac_save_IFS"
  5824. test -z "$ac_dir" && ac_dir=.
  5825. for ac_exec_ext in '' $ac_executable_extensions; do
  5826. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5827. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  5828. (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
  5829. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  5830. break 2
  5831. fi
  5832. fi
  5833. done
  5834. done
  5835. IFS="$ac_save_IFS"
  5836. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  5837. ;;
  5838. esac
  5839. fi
  5840. XGETTEXT="$ac_cv_path_XGETTEXT"
  5841. if test "$XGETTEXT" != ":"; then
  5842. echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  5843. echo "${ECHO_T}$XGETTEXT" >&6
  5844. else
  5845. echo "$as_me:$LINENO: result: no" >&5
  5846. echo "${ECHO_T}no" >&6
  5847. fi
  5848. rm -f messages.po
  5849. # Prepare PATH_SEPARATOR.
  5850. # The user is always right.
  5851. if test "${PATH_SEPARATOR+set}" != set; then
  5852. echo "#! /bin/sh" >conf$$.sh
  5853. echo "exit 0" >>conf$$.sh
  5854. chmod +x conf$$.sh
  5855. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5856. PATH_SEPARATOR=';'
  5857. else
  5858. PATH_SEPARATOR=:
  5859. fi
  5860. rm -f conf$$.sh
  5861. fi
  5862. # Find out how to test for executable files. Don't use a zero-byte file,
  5863. # as systems may use methods other than mode bits to determine executability.
  5864. cat >conf$$.file <<_ASEOF
  5865. #! /bin/sh
  5866. exit 0
  5867. _ASEOF
  5868. chmod +x conf$$.file
  5869. if test -x conf$$.file >/dev/null 2>&1; then
  5870. ac_executable_p="test -x"
  5871. else
  5872. ac_executable_p="test -f"
  5873. fi
  5874. rm -f conf$$.file
  5875. # Extract the first word of "msgmerge", so it can be a program name with args.
  5876. set dummy msgmerge; ac_word=$2
  5877. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5878. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5879. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  5880. echo $ECHO_N "(cached) $ECHO_C" >&6
  5881. else
  5882. case "$MSGMERGE" in
  5883. [\\/]* | ?:[\\/]*)
  5884. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  5885. ;;
  5886. *)
  5887. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5888. for ac_dir in $PATH; do
  5889. IFS="$ac_save_IFS"
  5890. test -z "$ac_dir" && ac_dir=.
  5891. for ac_exec_ext in '' $ac_executable_extensions; do
  5892. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5893. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  5894. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  5895. break 2
  5896. fi
  5897. fi
  5898. done
  5899. done
  5900. IFS="$ac_save_IFS"
  5901. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  5902. ;;
  5903. esac
  5904. fi
  5905. MSGMERGE="$ac_cv_path_MSGMERGE"
  5906. if test "$MSGMERGE" != ":"; then
  5907. echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  5908. echo "${ECHO_T}$MSGMERGE" >&6
  5909. else
  5910. echo "$as_me:$LINENO: result: no" >&5
  5911. echo "${ECHO_T}no" >&6
  5912. fi
  5913. if test "$GMSGFMT" != ":"; then
  5914. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  5915. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5916. : ;
  5917. else
  5918. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  5919. echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  5920. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
  5921. GMSGFMT=":"
  5922. fi
  5923. fi
  5924. if test "$XGETTEXT" != ":"; then
  5925. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  5926. (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
  5927. : ;
  5928. else
  5929. echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  5930. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
  5931. XGETTEXT=":"
  5932. fi
  5933. rm -f messages.po
  5934. fi
  5935. ac_config_commands="$ac_config_commands default-1"
  5936. # Make sure we can run config.sub.
  5937. $ac_config_sub sun4 >/dev/null 2>&1 ||
  5938. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  5939. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  5940. { (exit 1); exit 1; }; }
  5941. echo "$as_me:$LINENO: checking build system type" >&5
  5942. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  5943. if test "${ac_cv_build+set}" = set; then
  5944. echo $ECHO_N "(cached) $ECHO_C" >&6
  5945. else
  5946. ac_cv_build_alias=$build_alias
  5947. test -z "$ac_cv_build_alias" &&
  5948. ac_cv_build_alias=`$ac_config_guess`
  5949. test -z "$ac_cv_build_alias" &&
  5950. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  5951. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  5952. { (exit 1); exit 1; }; }
  5953. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  5954. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  5955. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  5956. { (exit 1); exit 1; }; }
  5957. fi
  5958. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  5959. echo "${ECHO_T}$ac_cv_build" >&6
  5960. build=$ac_cv_build
  5961. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  5962. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  5963. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  5964. echo "$as_me:$LINENO: checking host system type" >&5
  5965. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  5966. if test "${ac_cv_host+set}" = set; then
  5967. echo $ECHO_N "(cached) $ECHO_C" >&6
  5968. else
  5969. ac_cv_host_alias=$host_alias
  5970. test -z "$ac_cv_host_alias" &&
  5971. ac_cv_host_alias=$ac_cv_build_alias
  5972. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  5973. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  5974. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  5975. { (exit 1); exit 1; }; }
  5976. fi
  5977. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  5978. echo "${ECHO_T}$ac_cv_host" >&6
  5979. host=$ac_cv_host
  5980. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  5981. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  5982. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  5983. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  5984. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  5985. if test "${ac_cv_search_strerror+set}" = set; then
  5986. echo $ECHO_N "(cached) $ECHO_C" >&6
  5987. else
  5988. ac_func_search_save_LIBS=$LIBS
  5989. ac_cv_search_strerror=no
  5990. cat >conftest.$ac_ext <<_ACEOF
  5991. /* confdefs.h. */
  5992. _ACEOF
  5993. cat confdefs.h >>conftest.$ac_ext
  5994. cat >>conftest.$ac_ext <<_ACEOF
  5995. /* end confdefs.h. */
  5996. /* Override any gcc2 internal prototype to avoid an error. */
  5997. #ifdef __cplusplus
  5998. extern "C"
  5999. #endif
  6000. /* We use char because int might match the return type of a gcc2
  6001. builtin and then its argument prototype would still apply. */
  6002. char strerror ();
  6003. int
  6004. main ()
  6005. {
  6006. strerror ();
  6007. ;
  6008. return 0;
  6009. }
  6010. _ACEOF
  6011. rm -f conftest.$ac_objext conftest$ac_exeext
  6012. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6013. (eval $ac_link) 2>conftest.er1
  6014. ac_status=$?
  6015. grep -v '^ *+' conftest.er1 >conftest.err
  6016. rm -f conftest.er1
  6017. cat conftest.err >&5
  6018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6019. (exit $ac_status); } &&
  6020. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6022. (eval $ac_try) 2>&5
  6023. ac_status=$?
  6024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6025. (exit $ac_status); }; } &&
  6026. { ac_try='test -s conftest$ac_exeext'
  6027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6028. (eval $ac_try) 2>&5
  6029. ac_status=$?
  6030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6031. (exit $ac_status); }; }; then
  6032. ac_cv_search_strerror="none required"
  6033. else
  6034. echo "$as_me: failed program was:" >&5
  6035. sed 's/^/| /' conftest.$ac_ext >&5
  6036. fi
  6037. rm -f conftest.err conftest.$ac_objext \
  6038. conftest$ac_exeext conftest.$ac_ext
  6039. if test "$ac_cv_search_strerror" = no; then
  6040. for ac_lib in cposix; do
  6041. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6042. cat >conftest.$ac_ext <<_ACEOF
  6043. /* confdefs.h. */
  6044. _ACEOF
  6045. cat confdefs.h >>conftest.$ac_ext
  6046. cat >>conftest.$ac_ext <<_ACEOF
  6047. /* end confdefs.h. */
  6048. /* Override any gcc2 internal prototype to avoid an error. */
  6049. #ifdef __cplusplus
  6050. extern "C"
  6051. #endif
  6052. /* We use char because int might match the return type of a gcc2
  6053. builtin and then its argument prototype would still apply. */
  6054. char strerror ();
  6055. int
  6056. main ()
  6057. {
  6058. strerror ();
  6059. ;
  6060. return 0;
  6061. }
  6062. _ACEOF
  6063. rm -f conftest.$ac_objext conftest$ac_exeext
  6064. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6065. (eval $ac_link) 2>conftest.er1
  6066. ac_status=$?
  6067. grep -v '^ *+' conftest.er1 >conftest.err
  6068. rm -f conftest.er1
  6069. cat conftest.err >&5
  6070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6071. (exit $ac_status); } &&
  6072. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6073. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6074. (eval $ac_try) 2>&5
  6075. ac_status=$?
  6076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6077. (exit $ac_status); }; } &&
  6078. { ac_try='test -s conftest$ac_exeext'
  6079. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6080. (eval $ac_try) 2>&5
  6081. ac_status=$?
  6082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6083. (exit $ac_status); }; }; then
  6084. ac_cv_search_strerror="-l$ac_lib"
  6085. break
  6086. else
  6087. echo "$as_me: failed program was:" >&5
  6088. sed 's/^/| /' conftest.$ac_ext >&5
  6089. fi
  6090. rm -f conftest.err conftest.$ac_objext \
  6091. conftest$ac_exeext conftest.$ac_ext
  6092. done
  6093. fi
  6094. LIBS=$ac_func_search_save_LIBS
  6095. fi
  6096. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  6097. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  6098. if test "$ac_cv_search_strerror" != no; then
  6099. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  6100. fi
  6101. echo "$as_me:$LINENO: checking for off_t" >&5
  6102. echo $ECHO_N "checking for off_t... $ECHO_C" >&6
  6103. if test "${ac_cv_type_off_t+set}" = set; then
  6104. echo $ECHO_N "(cached) $ECHO_C" >&6
  6105. else
  6106. cat >conftest.$ac_ext <<_ACEOF
  6107. /* confdefs.h. */
  6108. _ACEOF
  6109. cat confdefs.h >>conftest.$ac_ext
  6110. cat >>conftest.$ac_ext <<_ACEOF
  6111. /* end confdefs.h. */
  6112. $ac_includes_default
  6113. int
  6114. main ()
  6115. {
  6116. if ((off_t *) 0)
  6117. return 0;
  6118. if (sizeof (off_t))
  6119. return 0;
  6120. ;
  6121. return 0;
  6122. }
  6123. _ACEOF
  6124. rm -f conftest.$ac_objext
  6125. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6126. (eval $ac_compile) 2>conftest.er1
  6127. ac_status=$?
  6128. grep -v '^ *+' conftest.er1 >conftest.err
  6129. rm -f conftest.er1
  6130. cat conftest.err >&5
  6131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6132. (exit $ac_status); } &&
  6133. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6134. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6135. (eval $ac_try) 2>&5
  6136. ac_status=$?
  6137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6138. (exit $ac_status); }; } &&
  6139. { ac_try='test -s conftest.$ac_objext'
  6140. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6141. (eval $ac_try) 2>&5
  6142. ac_status=$?
  6143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6144. (exit $ac_status); }; }; then
  6145. ac_cv_type_off_t=yes
  6146. else
  6147. echo "$as_me: failed program was:" >&5
  6148. sed 's/^/| /' conftest.$ac_ext >&5
  6149. ac_cv_type_off_t=no
  6150. fi
  6151. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6152. fi
  6153. echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  6154. echo "${ECHO_T}$ac_cv_type_off_t" >&6
  6155. if test $ac_cv_type_off_t = yes; then
  6156. :
  6157. else
  6158. cat >>confdefs.h <<_ACEOF
  6159. #define off_t long
  6160. _ACEOF
  6161. fi
  6162. for ac_header in stdlib.h unistd.h
  6163. do
  6164. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6165. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6166. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6167. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6168. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6169. echo $ECHO_N "(cached) $ECHO_C" >&6
  6170. fi
  6171. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6172. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6173. else
  6174. # Is the header compilable?
  6175. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6176. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6177. cat >conftest.$ac_ext <<_ACEOF
  6178. /* confdefs.h. */
  6179. _ACEOF
  6180. cat confdefs.h >>conftest.$ac_ext
  6181. cat >>conftest.$ac_ext <<_ACEOF
  6182. /* end confdefs.h. */
  6183. $ac_includes_default
  6184. #include <$ac_header>
  6185. _ACEOF
  6186. rm -f conftest.$ac_objext
  6187. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6188. (eval $ac_compile) 2>conftest.er1
  6189. ac_status=$?
  6190. grep -v '^ *+' conftest.er1 >conftest.err
  6191. rm -f conftest.er1
  6192. cat conftest.err >&5
  6193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6194. (exit $ac_status); } &&
  6195. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6196. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6197. (eval $ac_try) 2>&5
  6198. ac_status=$?
  6199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6200. (exit $ac_status); }; } &&
  6201. { ac_try='test -s conftest.$ac_objext'
  6202. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6203. (eval $ac_try) 2>&5
  6204. ac_status=$?
  6205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6206. (exit $ac_status); }; }; then
  6207. ac_header_compiler=yes
  6208. else
  6209. echo "$as_me: failed program was:" >&5
  6210. sed 's/^/| /' conftest.$ac_ext >&5
  6211. ac_header_compiler=no
  6212. fi
  6213. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6214. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6215. echo "${ECHO_T}$ac_header_compiler" >&6
  6216. # Is the header present?
  6217. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6218. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6219. cat >conftest.$ac_ext <<_ACEOF
  6220. /* confdefs.h. */
  6221. _ACEOF
  6222. cat confdefs.h >>conftest.$ac_ext
  6223. cat >>conftest.$ac_ext <<_ACEOF
  6224. /* end confdefs.h. */
  6225. #include <$ac_header>
  6226. _ACEOF
  6227. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6228. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6229. ac_status=$?
  6230. grep -v '^ *+' conftest.er1 >conftest.err
  6231. rm -f conftest.er1
  6232. cat conftest.err >&5
  6233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6234. (exit $ac_status); } >/dev/null; then
  6235. if test -s conftest.err; then
  6236. ac_cpp_err=$ac_c_preproc_warn_flag
  6237. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6238. else
  6239. ac_cpp_err=
  6240. fi
  6241. else
  6242. ac_cpp_err=yes
  6243. fi
  6244. if test -z "$ac_cpp_err"; then
  6245. ac_header_preproc=yes
  6246. else
  6247. echo "$as_me: failed program was:" >&5
  6248. sed 's/^/| /' conftest.$ac_ext >&5
  6249. ac_header_preproc=no
  6250. fi
  6251. rm -f conftest.err conftest.$ac_ext
  6252. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6253. echo "${ECHO_T}$ac_header_preproc" >&6
  6254. # So? What about this header?
  6255. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6256. yes:no: )
  6257. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6258. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6259. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6260. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6261. ac_header_preproc=yes
  6262. ;;
  6263. no:yes:* )
  6264. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6265. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6266. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6267. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6268. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6269. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6270. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6271. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6272. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6273. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6274. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6275. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6276. (
  6277. cat <<\_ASBOX
  6278. ## ----------------------------------- ##
  6279. ## Report this to tujikawa@rednoah.com ##
  6280. ## ----------------------------------- ##
  6281. _ASBOX
  6282. ) |
  6283. sed "s/^/$as_me: WARNING: /" >&2
  6284. ;;
  6285. esac
  6286. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6287. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6288. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6289. echo $ECHO_N "(cached) $ECHO_C" >&6
  6290. else
  6291. eval "$as_ac_Header=\$ac_header_preproc"
  6292. fi
  6293. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6294. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6295. fi
  6296. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6297. cat >>confdefs.h <<_ACEOF
  6298. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6299. _ACEOF
  6300. fi
  6301. done
  6302. for ac_func in getpagesize
  6303. do
  6304. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6305. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6306. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6307. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6308. echo $ECHO_N "(cached) $ECHO_C" >&6
  6309. else
  6310. cat >conftest.$ac_ext <<_ACEOF
  6311. /* confdefs.h. */
  6312. _ACEOF
  6313. cat confdefs.h >>conftest.$ac_ext
  6314. cat >>conftest.$ac_ext <<_ACEOF
  6315. /* end confdefs.h. */
  6316. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6317. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6318. #define $ac_func innocuous_$ac_func
  6319. /* System header to define __stub macros and hopefully few prototypes,
  6320. which can conflict with char $ac_func (); below.
  6321. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6322. <limits.h> exists even on freestanding compilers. */
  6323. #ifdef __STDC__
  6324. # include <limits.h>
  6325. #else
  6326. # include <assert.h>
  6327. #endif
  6328. #undef $ac_func
  6329. /* Override any gcc2 internal prototype to avoid an error. */
  6330. #ifdef __cplusplus
  6331. extern "C"
  6332. {
  6333. #endif
  6334. /* We use char because int might match the return type of a gcc2
  6335. builtin and then its argument prototype would still apply. */
  6336. char $ac_func ();
  6337. /* The GNU C library defines this for functions which it implements
  6338. to always fail with ENOSYS. Some functions are actually named
  6339. something starting with __ and the normal name is an alias. */
  6340. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6341. choke me
  6342. #else
  6343. char (*f) () = $ac_func;
  6344. #endif
  6345. #ifdef __cplusplus
  6346. }
  6347. #endif
  6348. int
  6349. main ()
  6350. {
  6351. return f != $ac_func;
  6352. ;
  6353. return 0;
  6354. }
  6355. _ACEOF
  6356. rm -f conftest.$ac_objext conftest$ac_exeext
  6357. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6358. (eval $ac_link) 2>conftest.er1
  6359. ac_status=$?
  6360. grep -v '^ *+' conftest.er1 >conftest.err
  6361. rm -f conftest.er1
  6362. cat conftest.err >&5
  6363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6364. (exit $ac_status); } &&
  6365. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6366. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6367. (eval $ac_try) 2>&5
  6368. ac_status=$?
  6369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6370. (exit $ac_status); }; } &&
  6371. { ac_try='test -s conftest$ac_exeext'
  6372. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6373. (eval $ac_try) 2>&5
  6374. ac_status=$?
  6375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6376. (exit $ac_status); }; }; then
  6377. eval "$as_ac_var=yes"
  6378. else
  6379. echo "$as_me: failed program was:" >&5
  6380. sed 's/^/| /' conftest.$ac_ext >&5
  6381. eval "$as_ac_var=no"
  6382. fi
  6383. rm -f conftest.err conftest.$ac_objext \
  6384. conftest$ac_exeext conftest.$ac_ext
  6385. fi
  6386. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6387. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6388. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6389. cat >>confdefs.h <<_ACEOF
  6390. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6391. _ACEOF
  6392. fi
  6393. done
  6394. echo "$as_me:$LINENO: checking for working mmap" >&5
  6395. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  6396. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  6397. echo $ECHO_N "(cached) $ECHO_C" >&6
  6398. else
  6399. if test "$cross_compiling" = yes; then
  6400. ac_cv_func_mmap_fixed_mapped=no
  6401. else
  6402. cat >conftest.$ac_ext <<_ACEOF
  6403. /* confdefs.h. */
  6404. _ACEOF
  6405. cat confdefs.h >>conftest.$ac_ext
  6406. cat >>conftest.$ac_ext <<_ACEOF
  6407. /* end confdefs.h. */
  6408. $ac_includes_default
  6409. /* malloc might have been renamed as rpl_malloc. */
  6410. #undef malloc
  6411. /* Thanks to Mike Haertel and Jim Avera for this test.
  6412. Here is a matrix of mmap possibilities:
  6413. mmap private not fixed
  6414. mmap private fixed at somewhere currently unmapped
  6415. mmap private fixed at somewhere already mapped
  6416. mmap shared not fixed
  6417. mmap shared fixed at somewhere currently unmapped
  6418. mmap shared fixed at somewhere already mapped
  6419. For private mappings, we should verify that changes cannot be read()
  6420. back from the file, nor mmap's back from the file at a different
  6421. address. (There have been systems where private was not correctly
  6422. implemented like the infamous i386 svr4.0, and systems where the
  6423. VM page cache was not coherent with the file system buffer cache
  6424. like early versions of FreeBSD and possibly contemporary NetBSD.)
  6425. For shared mappings, we should conversely verify that changes get
  6426. propagated back to all the places they're supposed to be.
  6427. Grep wants private fixed already mapped.
  6428. The main things grep needs to know about mmap are:
  6429. * does it exist and is it safe to write into the mmap'd area
  6430. * how to use it (BSD variants) */
  6431. #include <fcntl.h>
  6432. #include <sys/mman.h>
  6433. #if !STDC_HEADERS && !HAVE_STDLIB_H
  6434. char *malloc ();
  6435. #endif
  6436. /* This mess was copied from the GNU getpagesize.h. */
  6437. #if !HAVE_GETPAGESIZE
  6438. /* Assume that all systems that can run configure have sys/param.h. */
  6439. # if !HAVE_SYS_PARAM_H
  6440. # define HAVE_SYS_PARAM_H 1
  6441. # endif
  6442. # ifdef _SC_PAGESIZE
  6443. # define getpagesize() sysconf(_SC_PAGESIZE)
  6444. # else /* no _SC_PAGESIZE */
  6445. # if HAVE_SYS_PARAM_H
  6446. # include <sys/param.h>
  6447. # ifdef EXEC_PAGESIZE
  6448. # define getpagesize() EXEC_PAGESIZE
  6449. # else /* no EXEC_PAGESIZE */
  6450. # ifdef NBPG
  6451. # define getpagesize() NBPG * CLSIZE
  6452. # ifndef CLSIZE
  6453. # define CLSIZE 1
  6454. # endif /* no CLSIZE */
  6455. # else /* no NBPG */
  6456. # ifdef NBPC
  6457. # define getpagesize() NBPC
  6458. # else /* no NBPC */
  6459. # ifdef PAGESIZE
  6460. # define getpagesize() PAGESIZE
  6461. # endif /* PAGESIZE */
  6462. # endif /* no NBPC */
  6463. # endif /* no NBPG */
  6464. # endif /* no EXEC_PAGESIZE */
  6465. # else /* no HAVE_SYS_PARAM_H */
  6466. # define getpagesize() 8192 /* punt totally */
  6467. # endif /* no HAVE_SYS_PARAM_H */
  6468. # endif /* no _SC_PAGESIZE */
  6469. #endif /* no HAVE_GETPAGESIZE */
  6470. int
  6471. main ()
  6472. {
  6473. char *data, *data2, *data3;
  6474. int i, pagesize;
  6475. int fd;
  6476. pagesize = getpagesize ();
  6477. /* First, make a file with some known garbage in it. */
  6478. data = (char *) malloc (pagesize);
  6479. if (!data)
  6480. exit (1);
  6481. for (i = 0; i < pagesize; ++i)
  6482. *(data + i) = rand ();
  6483. umask (0);
  6484. fd = creat ("conftest.mmap", 0600);
  6485. if (fd < 0)
  6486. exit (1);
  6487. if (write (fd, data, pagesize) != pagesize)
  6488. exit (1);
  6489. close (fd);
  6490. /* Next, try to mmap the file at a fixed address which already has
  6491. something else allocated at it. If we can, also make sure that
  6492. we see the same garbage. */
  6493. fd = open ("conftest.mmap", O_RDWR);
  6494. if (fd < 0)
  6495. exit (1);
  6496. data2 = (char *) malloc (2 * pagesize);
  6497. if (!data2)
  6498. exit (1);
  6499. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  6500. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  6501. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  6502. exit (1);
  6503. for (i = 0; i < pagesize; ++i)
  6504. if (*(data + i) != *(data2 + i))
  6505. exit (1);
  6506. /* Finally, make sure that changes to the mapped area do not
  6507. percolate back to the file as seen by read(). (This is a bug on
  6508. some variants of i386 svr4.0.) */
  6509. for (i = 0; i < pagesize; ++i)
  6510. *(data2 + i) = *(data2 + i) + 1;
  6511. data3 = (char *) malloc (pagesize);
  6512. if (!data3)
  6513. exit (1);
  6514. if (read (fd, data3, pagesize) != pagesize)
  6515. exit (1);
  6516. for (i = 0; i < pagesize; ++i)
  6517. if (*(data + i) != *(data3 + i))
  6518. exit (1);
  6519. close (fd);
  6520. exit (0);
  6521. }
  6522. _ACEOF
  6523. rm -f conftest$ac_exeext
  6524. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6525. (eval $ac_link) 2>&5
  6526. ac_status=$?
  6527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6528. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6529. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6530. (eval $ac_try) 2>&5
  6531. ac_status=$?
  6532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6533. (exit $ac_status); }; }; then
  6534. ac_cv_func_mmap_fixed_mapped=yes
  6535. else
  6536. echo "$as_me: program exited with status $ac_status" >&5
  6537. echo "$as_me: failed program was:" >&5
  6538. sed 's/^/| /' conftest.$ac_ext >&5
  6539. ( exit $ac_status )
  6540. ac_cv_func_mmap_fixed_mapped=no
  6541. fi
  6542. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6543. fi
  6544. fi
  6545. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  6546. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  6547. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  6548. cat >>confdefs.h <<\_ACEOF
  6549. #define HAVE_MMAP 1
  6550. _ACEOF
  6551. fi
  6552. rm -f conftest.mmap
  6553. echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  6554. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
  6555. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  6556. echo $ECHO_N "(cached) $ECHO_C" >&6
  6557. else
  6558. cat >conftest.$ac_ext <<_ACEOF
  6559. /* confdefs.h. */
  6560. _ACEOF
  6561. cat confdefs.h >>conftest.$ac_ext
  6562. cat >>conftest.$ac_ext <<_ACEOF
  6563. /* end confdefs.h. */
  6564. #include <features.h>
  6565. #ifdef __GNU_LIBRARY__
  6566. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  6567. Lucky GNU user
  6568. #endif
  6569. #endif
  6570. _ACEOF
  6571. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6572. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  6573. ac_cv_gnu_library_2_1=yes
  6574. else
  6575. ac_cv_gnu_library_2_1=no
  6576. fi
  6577. rm -f conftest*
  6578. fi
  6579. echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  6580. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
  6581. GLIBC21="$ac_cv_gnu_library_2_1"
  6582. echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  6583. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
  6584. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  6585. echo $ECHO_N "(cached) $ECHO_C" >&6
  6586. else
  6587. if test "$cross_compiling" = yes; then
  6588. # Guess based on the CPU.
  6589. case "$host_cpu" in
  6590. alpha* | i3456786 | m68k | s390*)
  6591. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  6592. *)
  6593. gt_cv_int_divbyzero_sigfpe="guessing no";;
  6594. esac
  6595. else
  6596. cat >conftest.$ac_ext <<_ACEOF
  6597. /* confdefs.h. */
  6598. _ACEOF
  6599. cat confdefs.h >>conftest.$ac_ext
  6600. cat >>conftest.$ac_ext <<_ACEOF
  6601. /* end confdefs.h. */
  6602. #include <stdlib.h>
  6603. #include <signal.h>
  6604. static void
  6605. #ifdef __cplusplus
  6606. sigfpe_handler (int sig)
  6607. #else
  6608. sigfpe_handler (sig) int sig;
  6609. #endif
  6610. {
  6611. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  6612. exit (sig != SIGFPE);
  6613. }
  6614. int x = 1;
  6615. int y = 0;
  6616. int z;
  6617. int nan;
  6618. int main ()
  6619. {
  6620. signal (SIGFPE, sigfpe_handler);
  6621. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  6622. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  6623. signal (SIGTRAP, sigfpe_handler);
  6624. #endif
  6625. /* Linux/SPARC yields signal SIGILL. */
  6626. #if defined (__sparc__) && defined (__linux__)
  6627. signal (SIGILL, sigfpe_handler);
  6628. #endif
  6629. z = x / y;
  6630. nan = y / y;
  6631. exit (1);
  6632. }
  6633. _ACEOF
  6634. rm -f conftest$ac_exeext
  6635. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6636. (eval $ac_link) 2>&5
  6637. ac_status=$?
  6638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6639. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6640. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6641. (eval $ac_try) 2>&5
  6642. ac_status=$?
  6643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6644. (exit $ac_status); }; }; then
  6645. gt_cv_int_divbyzero_sigfpe=yes
  6646. else
  6647. echo "$as_me: program exited with status $ac_status" >&5
  6648. echo "$as_me: failed program was:" >&5
  6649. sed 's/^/| /' conftest.$ac_ext >&5
  6650. ( exit $ac_status )
  6651. gt_cv_int_divbyzero_sigfpe=no
  6652. fi
  6653. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6654. fi
  6655. fi
  6656. echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  6657. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
  6658. case "$gt_cv_int_divbyzero_sigfpe" in
  6659. *yes) value=1;;
  6660. *) value=0;;
  6661. esac
  6662. cat >>confdefs.h <<_ACEOF
  6663. #define INTDIV0_RAISES_SIGFPE $value
  6664. _ACEOF
  6665. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  6666. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  6667. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  6668. echo $ECHO_N "(cached) $ECHO_C" >&6
  6669. else
  6670. cat >conftest.$ac_ext <<_ACEOF
  6671. /* confdefs.h. */
  6672. _ACEOF
  6673. cat confdefs.h >>conftest.$ac_ext
  6674. cat >>conftest.$ac_ext <<_ACEOF
  6675. /* end confdefs.h. */
  6676. #include <sys/types.h>
  6677. #include <inttypes.h>
  6678. int
  6679. main ()
  6680. {
  6681. uintmax_t i = (uintmax_t) -1;
  6682. ;
  6683. return 0;
  6684. }
  6685. _ACEOF
  6686. rm -f conftest.$ac_objext
  6687. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6688. (eval $ac_compile) 2>conftest.er1
  6689. ac_status=$?
  6690. grep -v '^ *+' conftest.er1 >conftest.err
  6691. rm -f conftest.er1
  6692. cat conftest.err >&5
  6693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6694. (exit $ac_status); } &&
  6695. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6696. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6697. (eval $ac_try) 2>&5
  6698. ac_status=$?
  6699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6700. (exit $ac_status); }; } &&
  6701. { ac_try='test -s conftest.$ac_objext'
  6702. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6703. (eval $ac_try) 2>&5
  6704. ac_status=$?
  6705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6706. (exit $ac_status); }; }; then
  6707. jm_ac_cv_header_inttypes_h=yes
  6708. else
  6709. echo "$as_me: failed program was:" >&5
  6710. sed 's/^/| /' conftest.$ac_ext >&5
  6711. jm_ac_cv_header_inttypes_h=no
  6712. fi
  6713. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6714. fi
  6715. echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  6716. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
  6717. if test $jm_ac_cv_header_inttypes_h = yes; then
  6718. cat >>confdefs.h <<_ACEOF
  6719. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  6720. _ACEOF
  6721. fi
  6722. echo "$as_me:$LINENO: checking for stdint.h" >&5
  6723. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
  6724. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  6725. echo $ECHO_N "(cached) $ECHO_C" >&6
  6726. else
  6727. cat >conftest.$ac_ext <<_ACEOF
  6728. /* confdefs.h. */
  6729. _ACEOF
  6730. cat confdefs.h >>conftest.$ac_ext
  6731. cat >>conftest.$ac_ext <<_ACEOF
  6732. /* end confdefs.h. */
  6733. #include <sys/types.h>
  6734. #include <stdint.h>
  6735. int
  6736. main ()
  6737. {
  6738. uintmax_t i = (uintmax_t) -1;
  6739. ;
  6740. return 0;
  6741. }
  6742. _ACEOF
  6743. rm -f conftest.$ac_objext
  6744. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6745. (eval $ac_compile) 2>conftest.er1
  6746. ac_status=$?
  6747. grep -v '^ *+' conftest.er1 >conftest.err
  6748. rm -f conftest.er1
  6749. cat conftest.err >&5
  6750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6751. (exit $ac_status); } &&
  6752. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6753. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6754. (eval $ac_try) 2>&5
  6755. ac_status=$?
  6756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6757. (exit $ac_status); }; } &&
  6758. { ac_try='test -s conftest.$ac_objext'
  6759. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6760. (eval $ac_try) 2>&5
  6761. ac_status=$?
  6762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6763. (exit $ac_status); }; }; then
  6764. jm_ac_cv_header_stdint_h=yes
  6765. else
  6766. echo "$as_me: failed program was:" >&5
  6767. sed 's/^/| /' conftest.$ac_ext >&5
  6768. jm_ac_cv_header_stdint_h=no
  6769. fi
  6770. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6771. fi
  6772. echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  6773. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
  6774. if test $jm_ac_cv_header_stdint_h = yes; then
  6775. cat >>confdefs.h <<_ACEOF
  6776. #define HAVE_STDINT_H_WITH_UINTMAX 1
  6777. _ACEOF
  6778. fi
  6779. echo "$as_me:$LINENO: checking for unsigned long long" >&5
  6780. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
  6781. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  6782. echo $ECHO_N "(cached) $ECHO_C" >&6
  6783. else
  6784. cat >conftest.$ac_ext <<_ACEOF
  6785. /* confdefs.h. */
  6786. _ACEOF
  6787. cat confdefs.h >>conftest.$ac_ext
  6788. cat >>conftest.$ac_ext <<_ACEOF
  6789. /* end confdefs.h. */
  6790. unsigned long long ull = 1; int i = 63;
  6791. int
  6792. main ()
  6793. {
  6794. unsigned long long ullmax = (unsigned long long) -1;
  6795. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  6796. ;
  6797. return 0;
  6798. }
  6799. _ACEOF
  6800. rm -f conftest.$ac_objext conftest$ac_exeext
  6801. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6802. (eval $ac_link) 2>conftest.er1
  6803. ac_status=$?
  6804. grep -v '^ *+' conftest.er1 >conftest.err
  6805. rm -f conftest.er1
  6806. cat conftest.err >&5
  6807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6808. (exit $ac_status); } &&
  6809. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6810. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6811. (eval $ac_try) 2>&5
  6812. ac_status=$?
  6813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6814. (exit $ac_status); }; } &&
  6815. { ac_try='test -s conftest$ac_exeext'
  6816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6817. (eval $ac_try) 2>&5
  6818. ac_status=$?
  6819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6820. (exit $ac_status); }; }; then
  6821. ac_cv_type_unsigned_long_long=yes
  6822. else
  6823. echo "$as_me: failed program was:" >&5
  6824. sed 's/^/| /' conftest.$ac_ext >&5
  6825. ac_cv_type_unsigned_long_long=no
  6826. fi
  6827. rm -f conftest.err conftest.$ac_objext \
  6828. conftest$ac_exeext conftest.$ac_ext
  6829. fi
  6830. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  6831. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
  6832. if test $ac_cv_type_unsigned_long_long = yes; then
  6833. cat >>confdefs.h <<\_ACEOF
  6834. #define HAVE_UNSIGNED_LONG_LONG 1
  6835. _ACEOF
  6836. fi
  6837. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  6838. test $ac_cv_type_unsigned_long_long = yes \
  6839. && ac_type='unsigned long long' \
  6840. || ac_type='unsigned long'
  6841. cat >>confdefs.h <<_ACEOF
  6842. #define uintmax_t $ac_type
  6843. _ACEOF
  6844. else
  6845. cat >>confdefs.h <<\_ACEOF
  6846. #define HAVE_UINTMAX_T 1
  6847. _ACEOF
  6848. fi
  6849. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  6850. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  6851. if test "${gt_cv_header_inttypes_h+set}" = set; then
  6852. echo $ECHO_N "(cached) $ECHO_C" >&6
  6853. else
  6854. cat >conftest.$ac_ext <<_ACEOF
  6855. /* confdefs.h. */
  6856. _ACEOF
  6857. cat confdefs.h >>conftest.$ac_ext
  6858. cat >>conftest.$ac_ext <<_ACEOF
  6859. /* end confdefs.h. */
  6860. #include <sys/types.h>
  6861. #include <inttypes.h>
  6862. int
  6863. main ()
  6864. {
  6865. ;
  6866. return 0;
  6867. }
  6868. _ACEOF
  6869. rm -f conftest.$ac_objext
  6870. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6871. (eval $ac_compile) 2>conftest.er1
  6872. ac_status=$?
  6873. grep -v '^ *+' conftest.er1 >conftest.err
  6874. rm -f conftest.er1
  6875. cat conftest.err >&5
  6876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6877. (exit $ac_status); } &&
  6878. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6879. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6880. (eval $ac_try) 2>&5
  6881. ac_status=$?
  6882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6883. (exit $ac_status); }; } &&
  6884. { ac_try='test -s conftest.$ac_objext'
  6885. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6886. (eval $ac_try) 2>&5
  6887. ac_status=$?
  6888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6889. (exit $ac_status); }; }; then
  6890. gt_cv_header_inttypes_h=yes
  6891. else
  6892. echo "$as_me: failed program was:" >&5
  6893. sed 's/^/| /' conftest.$ac_ext >&5
  6894. gt_cv_header_inttypes_h=no
  6895. fi
  6896. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6897. fi
  6898. echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  6899. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
  6900. if test $gt_cv_header_inttypes_h = yes; then
  6901. cat >>confdefs.h <<_ACEOF
  6902. #define HAVE_INTTYPES_H 1
  6903. _ACEOF
  6904. fi
  6905. if test $gt_cv_header_inttypes_h = yes; then
  6906. echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  6907. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
  6908. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  6909. echo $ECHO_N "(cached) $ECHO_C" >&6
  6910. else
  6911. cat >conftest.$ac_ext <<_ACEOF
  6912. /* confdefs.h. */
  6913. _ACEOF
  6914. cat confdefs.h >>conftest.$ac_ext
  6915. cat >>conftest.$ac_ext <<_ACEOF
  6916. /* end confdefs.h. */
  6917. #include <inttypes.h>
  6918. #ifdef PRId32
  6919. char *p = PRId32;
  6920. #endif
  6921. int
  6922. main ()
  6923. {
  6924. ;
  6925. return 0;
  6926. }
  6927. _ACEOF
  6928. rm -f conftest.$ac_objext
  6929. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6930. (eval $ac_compile) 2>conftest.er1
  6931. ac_status=$?
  6932. grep -v '^ *+' conftest.er1 >conftest.err
  6933. rm -f conftest.er1
  6934. cat conftest.err >&5
  6935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6936. (exit $ac_status); } &&
  6937. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6938. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6939. (eval $ac_try) 2>&5
  6940. ac_status=$?
  6941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6942. (exit $ac_status); }; } &&
  6943. { ac_try='test -s conftest.$ac_objext'
  6944. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6945. (eval $ac_try) 2>&5
  6946. ac_status=$?
  6947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6948. (exit $ac_status); }; }; then
  6949. gt_cv_inttypes_pri_broken=no
  6950. else
  6951. echo "$as_me: failed program was:" >&5
  6952. sed 's/^/| /' conftest.$ac_ext >&5
  6953. gt_cv_inttypes_pri_broken=yes
  6954. fi
  6955. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6956. fi
  6957. echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  6958. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
  6959. fi
  6960. if test "$gt_cv_inttypes_pri_broken" = yes; then
  6961. cat >>confdefs.h <<_ACEOF
  6962. #define PRI_MACROS_BROKEN 1
  6963. _ACEOF
  6964. fi
  6965. if test "X$prefix" = "XNONE"; then
  6966. acl_final_prefix="$ac_default_prefix"
  6967. else
  6968. acl_final_prefix="$prefix"
  6969. fi
  6970. if test "X$exec_prefix" = "XNONE"; then
  6971. acl_final_exec_prefix='${prefix}'
  6972. else
  6973. acl_final_exec_prefix="$exec_prefix"
  6974. fi
  6975. acl_save_prefix="$prefix"
  6976. prefix="$acl_final_prefix"
  6977. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  6978. prefix="$acl_save_prefix"
  6979. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  6980. if test "${with_gnu_ld+set}" = set; then
  6981. withval="$with_gnu_ld"
  6982. test "$withval" = no || with_gnu_ld=yes
  6983. else
  6984. with_gnu_ld=no
  6985. fi;
  6986. # Prepare PATH_SEPARATOR.
  6987. # The user is always right.
  6988. if test "${PATH_SEPARATOR+set}" != set; then
  6989. echo "#! /bin/sh" >conf$$.sh
  6990. echo "exit 0" >>conf$$.sh
  6991. chmod +x conf$$.sh
  6992. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6993. PATH_SEPARATOR=';'
  6994. else
  6995. PATH_SEPARATOR=:
  6996. fi
  6997. rm -f conf$$.sh
  6998. fi
  6999. ac_prog=ld
  7000. if test "$GCC" = yes; then
  7001. # Check if gcc -print-prog-name=ld gives a path.
  7002. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  7003. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  7004. case $host in
  7005. *-*-mingw*)
  7006. # gcc leaves a trailing carriage return which upsets mingw
  7007. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7008. *)
  7009. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7010. esac
  7011. case $ac_prog in
  7012. # Accept absolute paths.
  7013. [\\/]* | [A-Za-z]:[\\/]*)
  7014. re_direlt='/[^/][^/]*/\.\./'
  7015. # Canonicalize the path of ld
  7016. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  7017. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  7018. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  7019. done
  7020. test -z "$LD" && LD="$ac_prog"
  7021. ;;
  7022. "")
  7023. # If it fails, then pretend we aren't using GCC.
  7024. ac_prog=ld
  7025. ;;
  7026. *)
  7027. # If it is relative, then search for the first ld in PATH.
  7028. with_gnu_ld=unknown
  7029. ;;
  7030. esac
  7031. elif test "$with_gnu_ld" = yes; then
  7032. echo "$as_me:$LINENO: checking for GNU ld" >&5
  7033. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  7034. else
  7035. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  7036. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  7037. fi
  7038. if test "${acl_cv_path_LD+set}" = set; then
  7039. echo $ECHO_N "(cached) $ECHO_C" >&6
  7040. else
  7041. if test -z "$LD"; then
  7042. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  7043. for ac_dir in $PATH; do
  7044. test -z "$ac_dir" && ac_dir=.
  7045. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7046. acl_cv_path_LD="$ac_dir/$ac_prog"
  7047. # Check to see if the program is GNU ld. I'd rather use --version,
  7048. # but apparently some GNU ld's only accept -v.
  7049. # Break only if it was the GNU/non-GNU ld that we prefer.
  7050. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  7051. test "$with_gnu_ld" != no && break
  7052. else
  7053. test "$with_gnu_ld" != yes && break
  7054. fi
  7055. fi
  7056. done
  7057. IFS="$ac_save_ifs"
  7058. else
  7059. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  7060. fi
  7061. fi
  7062. LD="$acl_cv_path_LD"
  7063. if test -n "$LD"; then
  7064. echo "$as_me:$LINENO: result: $LD" >&5
  7065. echo "${ECHO_T}$LD" >&6
  7066. else
  7067. echo "$as_me:$LINENO: result: no" >&5
  7068. echo "${ECHO_T}no" >&6
  7069. fi
  7070. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  7071. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  7072. { (exit 1); exit 1; }; }
  7073. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  7074. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  7075. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  7076. echo $ECHO_N "(cached) $ECHO_C" >&6
  7077. else
  7078. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  7079. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  7080. acl_cv_prog_gnu_ld=yes
  7081. else
  7082. acl_cv_prog_gnu_ld=no
  7083. fi
  7084. fi
  7085. echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  7086. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
  7087. with_gnu_ld=$acl_cv_prog_gnu_ld
  7088. echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  7089. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
  7090. if test "${acl_cv_rpath+set}" = set; then
  7091. echo $ECHO_N "(cached) $ECHO_C" >&6
  7092. else
  7093. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  7094. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  7095. . ./conftest.sh
  7096. rm -f ./conftest.sh
  7097. acl_cv_rpath=done
  7098. fi
  7099. echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  7100. echo "${ECHO_T}$acl_cv_rpath" >&6
  7101. wl="$acl_cv_wl"
  7102. libext="$acl_cv_libext"
  7103. shlibext="$acl_cv_shlibext"
  7104. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  7105. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  7106. hardcode_direct="$acl_cv_hardcode_direct"
  7107. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  7108. # Check whether --enable-rpath or --disable-rpath was given.
  7109. if test "${enable_rpath+set}" = set; then
  7110. enableval="$enable_rpath"
  7111. :
  7112. else
  7113. enable_rpath=yes
  7114. fi;
  7115. use_additional=yes
  7116. acl_save_prefix="$prefix"
  7117. prefix="$acl_final_prefix"
  7118. acl_save_exec_prefix="$exec_prefix"
  7119. exec_prefix="$acl_final_exec_prefix"
  7120. eval additional_includedir=\"$includedir\"
  7121. eval additional_libdir=\"$libdir\"
  7122. exec_prefix="$acl_save_exec_prefix"
  7123. prefix="$acl_save_prefix"
  7124. # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
  7125. if test "${with_libiconv_prefix+set}" = set; then
  7126. withval="$with_libiconv_prefix"
  7127. if test "X$withval" = "Xno"; then
  7128. use_additional=no
  7129. else
  7130. if test "X$withval" = "X"; then
  7131. acl_save_prefix="$prefix"
  7132. prefix="$acl_final_prefix"
  7133. acl_save_exec_prefix="$exec_prefix"
  7134. exec_prefix="$acl_final_exec_prefix"
  7135. eval additional_includedir=\"$includedir\"
  7136. eval additional_libdir=\"$libdir\"
  7137. exec_prefix="$acl_save_exec_prefix"
  7138. prefix="$acl_save_prefix"
  7139. else
  7140. additional_includedir="$withval/include"
  7141. additional_libdir="$withval/lib"
  7142. fi
  7143. fi
  7144. fi;
  7145. LIBICONV=
  7146. LTLIBICONV=
  7147. INCICONV=
  7148. rpathdirs=
  7149. ltrpathdirs=
  7150. names_already_handled=
  7151. names_next_round='iconv '
  7152. while test -n "$names_next_round"; do
  7153. names_this_round="$names_next_round"
  7154. names_next_round=
  7155. for name in $names_this_round; do
  7156. already_handled=
  7157. for n in $names_already_handled; do
  7158. if test "$n" = "$name"; then
  7159. already_handled=yes
  7160. break
  7161. fi
  7162. done
  7163. if test -z "$already_handled"; then
  7164. names_already_handled="$names_already_handled $name"
  7165. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  7166. eval value=\"\$HAVE_LIB$uppername\"
  7167. if test -n "$value"; then
  7168. if test "$value" = yes; then
  7169. eval value=\"\$LIB$uppername\"
  7170. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  7171. eval value=\"\$LTLIB$uppername\"
  7172. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  7173. else
  7174. :
  7175. fi
  7176. else
  7177. found_dir=
  7178. found_la=
  7179. found_so=
  7180. found_a=
  7181. if test $use_additional = yes; then
  7182. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  7183. found_dir="$additional_libdir"
  7184. found_so="$additional_libdir/lib$name.$shlibext"
  7185. if test -f "$additional_libdir/lib$name.la"; then
  7186. found_la="$additional_libdir/lib$name.la"
  7187. fi
  7188. else
  7189. if test -f "$additional_libdir/lib$name.$libext"; then
  7190. found_dir="$additional_libdir"
  7191. found_a="$additional_libdir/lib$name.$libext"
  7192. if test -f "$additional_libdir/lib$name.la"; then
  7193. found_la="$additional_libdir/lib$name.la"
  7194. fi
  7195. fi
  7196. fi
  7197. fi
  7198. if test "X$found_dir" = "X"; then
  7199. for x in $LDFLAGS $LTLIBICONV; do
  7200. acl_save_prefix="$prefix"
  7201. prefix="$acl_final_prefix"
  7202. acl_save_exec_prefix="$exec_prefix"
  7203. exec_prefix="$acl_final_exec_prefix"
  7204. eval x=\"$x\"
  7205. exec_prefix="$acl_save_exec_prefix"
  7206. prefix="$acl_save_prefix"
  7207. case "$x" in
  7208. -L*)
  7209. dir=`echo "X$x" | sed -e 's/^X-L//'`
  7210. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  7211. found_dir="$dir"
  7212. found_so="$dir/lib$name.$shlibext"
  7213. if test -f "$dir/lib$name.la"; then
  7214. found_la="$dir/lib$name.la"
  7215. fi
  7216. else
  7217. if test -f "$dir/lib$name.$libext"; then
  7218. found_dir="$dir"
  7219. found_a="$dir/lib$name.$libext"
  7220. if test -f "$dir/lib$name.la"; then
  7221. found_la="$dir/lib$name.la"
  7222. fi
  7223. fi
  7224. fi
  7225. ;;
  7226. esac
  7227. if test "X$found_dir" != "X"; then
  7228. break
  7229. fi
  7230. done
  7231. fi
  7232. if test "X$found_dir" != "X"; then
  7233. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  7234. if test "X$found_so" != "X"; then
  7235. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  7236. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7237. else
  7238. haveit=
  7239. for x in $ltrpathdirs; do
  7240. if test "X$x" = "X$found_dir"; then
  7241. haveit=yes
  7242. break
  7243. fi
  7244. done
  7245. if test -z "$haveit"; then
  7246. ltrpathdirs="$ltrpathdirs $found_dir"
  7247. fi
  7248. if test "$hardcode_direct" = yes; then
  7249. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7250. else
  7251. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  7252. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7253. haveit=
  7254. for x in $rpathdirs; do
  7255. if test "X$x" = "X$found_dir"; then
  7256. haveit=yes
  7257. break
  7258. fi
  7259. done
  7260. if test -z "$haveit"; then
  7261. rpathdirs="$rpathdirs $found_dir"
  7262. fi
  7263. else
  7264. haveit=
  7265. for x in $LDFLAGS $LIBICONV; do
  7266. acl_save_prefix="$prefix"
  7267. prefix="$acl_final_prefix"
  7268. acl_save_exec_prefix="$exec_prefix"
  7269. exec_prefix="$acl_final_exec_prefix"
  7270. eval x=\"$x\"
  7271. exec_prefix="$acl_save_exec_prefix"
  7272. prefix="$acl_save_prefix"
  7273. if test "X$x" = "X-L$found_dir"; then
  7274. haveit=yes
  7275. break
  7276. fi
  7277. done
  7278. if test -z "$haveit"; then
  7279. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  7280. fi
  7281. if test "$hardcode_minus_L" != no; then
  7282. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7283. else
  7284. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  7285. fi
  7286. fi
  7287. fi
  7288. fi
  7289. else
  7290. if test "X$found_a" != "X"; then
  7291. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  7292. else
  7293. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  7294. fi
  7295. fi
  7296. additional_includedir=
  7297. case "$found_dir" in
  7298. */lib | */lib/)
  7299. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  7300. additional_includedir="$basedir/include"
  7301. ;;
  7302. esac
  7303. if test "X$additional_includedir" != "X"; then
  7304. if test "X$additional_includedir" != "X/usr/include"; then
  7305. haveit=
  7306. if test "X$additional_includedir" = "X/usr/local/include"; then
  7307. if test -n "$GCC"; then
  7308. case $host_os in
  7309. linux*) haveit=yes;;
  7310. esac
  7311. fi
  7312. fi
  7313. if test -z "$haveit"; then
  7314. for x in $CPPFLAGS $INCICONV; 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-I$additional_includedir"; then
  7323. haveit=yes
  7324. break
  7325. fi
  7326. done
  7327. if test -z "$haveit"; then
  7328. if test -d "$additional_includedir"; then
  7329. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  7330. fi
  7331. fi
  7332. fi
  7333. fi
  7334. fi
  7335. if test -n "$found_la"; then
  7336. save_libdir="$libdir"
  7337. case "$found_la" in
  7338. */* | *\\*) . "$found_la" ;;
  7339. *) . "./$found_la" ;;
  7340. esac
  7341. libdir="$save_libdir"
  7342. for dep in $dependency_libs; do
  7343. case "$dep" in
  7344. -L*)
  7345. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  7346. if test "X$additional_libdir" != "X/usr/lib"; then
  7347. haveit=
  7348. if test "X$additional_libdir" = "X/usr/local/lib"; then
  7349. if test -n "$GCC"; then
  7350. case $host_os in
  7351. linux*) haveit=yes;;
  7352. esac
  7353. fi
  7354. fi
  7355. if test -z "$haveit"; then
  7356. haveit=
  7357. for x in $LDFLAGS $LIBICONV; do
  7358. acl_save_prefix="$prefix"
  7359. prefix="$acl_final_prefix"
  7360. acl_save_exec_prefix="$exec_prefix"
  7361. exec_prefix="$acl_final_exec_prefix"
  7362. eval x=\"$x\"
  7363. exec_prefix="$acl_save_exec_prefix"
  7364. prefix="$acl_save_prefix"
  7365. if test "X$x" = "X-L$additional_libdir"; then
  7366. haveit=yes
  7367. break
  7368. fi
  7369. done
  7370. if test -z "$haveit"; then
  7371. if test -d "$additional_libdir"; then
  7372. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  7373. fi
  7374. fi
  7375. haveit=
  7376. for x in $LDFLAGS $LTLIBICONV; do
  7377. acl_save_prefix="$prefix"
  7378. prefix="$acl_final_prefix"
  7379. acl_save_exec_prefix="$exec_prefix"
  7380. exec_prefix="$acl_final_exec_prefix"
  7381. eval x=\"$x\"
  7382. exec_prefix="$acl_save_exec_prefix"
  7383. prefix="$acl_save_prefix"
  7384. if test "X$x" = "X-L$additional_libdir"; then
  7385. haveit=yes
  7386. break
  7387. fi
  7388. done
  7389. if test -z "$haveit"; then
  7390. if test -d "$additional_libdir"; then
  7391. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  7392. fi
  7393. fi
  7394. fi
  7395. fi
  7396. ;;
  7397. -R*)
  7398. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  7399. if test "$enable_rpath" != no; then
  7400. haveit=
  7401. for x in $rpathdirs; do
  7402. if test "X$x" = "X$dir"; then
  7403. haveit=yes
  7404. break
  7405. fi
  7406. done
  7407. if test -z "$haveit"; then
  7408. rpathdirs="$rpathdirs $dir"
  7409. fi
  7410. haveit=
  7411. for x in $ltrpathdirs; do
  7412. if test "X$x" = "X$dir"; then
  7413. haveit=yes
  7414. break
  7415. fi
  7416. done
  7417. if test -z "$haveit"; then
  7418. ltrpathdirs="$ltrpathdirs $dir"
  7419. fi
  7420. fi
  7421. ;;
  7422. -l*)
  7423. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  7424. ;;
  7425. *.la)
  7426. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  7427. ;;
  7428. *)
  7429. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  7430. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  7431. ;;
  7432. esac
  7433. done
  7434. fi
  7435. else
  7436. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  7437. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  7438. fi
  7439. fi
  7440. fi
  7441. done
  7442. done
  7443. if test "X$rpathdirs" != "X"; then
  7444. if test -n "$hardcode_libdir_separator"; then
  7445. alldirs=
  7446. for found_dir in $rpathdirs; do
  7447. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  7448. done
  7449. acl_save_libdir="$libdir"
  7450. libdir="$alldirs"
  7451. eval flag=\"$hardcode_libdir_flag_spec\"
  7452. libdir="$acl_save_libdir"
  7453. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7454. else
  7455. for found_dir in $rpathdirs; do
  7456. acl_save_libdir="$libdir"
  7457. libdir="$found_dir"
  7458. eval flag=\"$hardcode_libdir_flag_spec\"
  7459. libdir="$acl_save_libdir"
  7460. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7461. done
  7462. fi
  7463. fi
  7464. if test "X$ltrpathdirs" != "X"; then
  7465. for found_dir in $ltrpathdirs; do
  7466. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  7467. done
  7468. fi
  7469. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  7470. stdlib.h string.h unistd.h sys/param.h
  7471. do
  7472. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7473. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7474. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7475. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7476. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7477. echo $ECHO_N "(cached) $ECHO_C" >&6
  7478. fi
  7479. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7480. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7481. else
  7482. # Is the header compilable?
  7483. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7484. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7485. cat >conftest.$ac_ext <<_ACEOF
  7486. /* confdefs.h. */
  7487. _ACEOF
  7488. cat confdefs.h >>conftest.$ac_ext
  7489. cat >>conftest.$ac_ext <<_ACEOF
  7490. /* end confdefs.h. */
  7491. $ac_includes_default
  7492. #include <$ac_header>
  7493. _ACEOF
  7494. rm -f conftest.$ac_objext
  7495. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7496. (eval $ac_compile) 2>conftest.er1
  7497. ac_status=$?
  7498. grep -v '^ *+' conftest.er1 >conftest.err
  7499. rm -f conftest.er1
  7500. cat conftest.err >&5
  7501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7502. (exit $ac_status); } &&
  7503. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7504. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7505. (eval $ac_try) 2>&5
  7506. ac_status=$?
  7507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7508. (exit $ac_status); }; } &&
  7509. { ac_try='test -s conftest.$ac_objext'
  7510. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7511. (eval $ac_try) 2>&5
  7512. ac_status=$?
  7513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7514. (exit $ac_status); }; }; then
  7515. ac_header_compiler=yes
  7516. else
  7517. echo "$as_me: failed program was:" >&5
  7518. sed 's/^/| /' conftest.$ac_ext >&5
  7519. ac_header_compiler=no
  7520. fi
  7521. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7522. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7523. echo "${ECHO_T}$ac_header_compiler" >&6
  7524. # Is the header present?
  7525. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7526. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7527. cat >conftest.$ac_ext <<_ACEOF
  7528. /* confdefs.h. */
  7529. _ACEOF
  7530. cat confdefs.h >>conftest.$ac_ext
  7531. cat >>conftest.$ac_ext <<_ACEOF
  7532. /* end confdefs.h. */
  7533. #include <$ac_header>
  7534. _ACEOF
  7535. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7536. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7537. ac_status=$?
  7538. grep -v '^ *+' conftest.er1 >conftest.err
  7539. rm -f conftest.er1
  7540. cat conftest.err >&5
  7541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7542. (exit $ac_status); } >/dev/null; then
  7543. if test -s conftest.err; then
  7544. ac_cpp_err=$ac_c_preproc_warn_flag
  7545. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7546. else
  7547. ac_cpp_err=
  7548. fi
  7549. else
  7550. ac_cpp_err=yes
  7551. fi
  7552. if test -z "$ac_cpp_err"; then
  7553. ac_header_preproc=yes
  7554. else
  7555. echo "$as_me: failed program was:" >&5
  7556. sed 's/^/| /' conftest.$ac_ext >&5
  7557. ac_header_preproc=no
  7558. fi
  7559. rm -f conftest.err conftest.$ac_ext
  7560. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7561. echo "${ECHO_T}$ac_header_preproc" >&6
  7562. # So? What about this header?
  7563. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7564. yes:no: )
  7565. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7566. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7567. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7568. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7569. ac_header_preproc=yes
  7570. ;;
  7571. no:yes:* )
  7572. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7573. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7574. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7575. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7576. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7577. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7578. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7579. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7580. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7581. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7582. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7583. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7584. (
  7585. cat <<\_ASBOX
  7586. ## ----------------------------------- ##
  7587. ## Report this to tujikawa@rednoah.com ##
  7588. ## ----------------------------------- ##
  7589. _ASBOX
  7590. ) |
  7591. sed "s/^/$as_me: WARNING: /" >&2
  7592. ;;
  7593. esac
  7594. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7595. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7596. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7597. echo $ECHO_N "(cached) $ECHO_C" >&6
  7598. else
  7599. eval "$as_ac_Header=\$ac_header_preproc"
  7600. fi
  7601. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7602. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7603. fi
  7604. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7605. cat >>confdefs.h <<_ACEOF
  7606. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7607. _ACEOF
  7608. fi
  7609. done
  7610. for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
  7611. geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
  7612. strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
  7613. __fsetlocking
  7614. do
  7615. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7616. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7617. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7618. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7619. echo $ECHO_N "(cached) $ECHO_C" >&6
  7620. else
  7621. cat >conftest.$ac_ext <<_ACEOF
  7622. /* confdefs.h. */
  7623. _ACEOF
  7624. cat confdefs.h >>conftest.$ac_ext
  7625. cat >>conftest.$ac_ext <<_ACEOF
  7626. /* end confdefs.h. */
  7627. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7628. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7629. #define $ac_func innocuous_$ac_func
  7630. /* System header to define __stub macros and hopefully few prototypes,
  7631. which can conflict with char $ac_func (); below.
  7632. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7633. <limits.h> exists even on freestanding compilers. */
  7634. #ifdef __STDC__
  7635. # include <limits.h>
  7636. #else
  7637. # include <assert.h>
  7638. #endif
  7639. #undef $ac_func
  7640. /* Override any gcc2 internal prototype to avoid an error. */
  7641. #ifdef __cplusplus
  7642. extern "C"
  7643. {
  7644. #endif
  7645. /* We use char because int might match the return type of a gcc2
  7646. builtin and then its argument prototype would still apply. */
  7647. char $ac_func ();
  7648. /* The GNU C library defines this for functions which it implements
  7649. to always fail with ENOSYS. Some functions are actually named
  7650. something starting with __ and the normal name is an alias. */
  7651. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7652. choke me
  7653. #else
  7654. char (*f) () = $ac_func;
  7655. #endif
  7656. #ifdef __cplusplus
  7657. }
  7658. #endif
  7659. int
  7660. main ()
  7661. {
  7662. return f != $ac_func;
  7663. ;
  7664. return 0;
  7665. }
  7666. _ACEOF
  7667. rm -f conftest.$ac_objext conftest$ac_exeext
  7668. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7669. (eval $ac_link) 2>conftest.er1
  7670. ac_status=$?
  7671. grep -v '^ *+' conftest.er1 >conftest.err
  7672. rm -f conftest.er1
  7673. cat conftest.err >&5
  7674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7675. (exit $ac_status); } &&
  7676. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7677. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7678. (eval $ac_try) 2>&5
  7679. ac_status=$?
  7680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7681. (exit $ac_status); }; } &&
  7682. { ac_try='test -s conftest$ac_exeext'
  7683. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7684. (eval $ac_try) 2>&5
  7685. ac_status=$?
  7686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7687. (exit $ac_status); }; }; then
  7688. eval "$as_ac_var=yes"
  7689. else
  7690. echo "$as_me: failed program was:" >&5
  7691. sed 's/^/| /' conftest.$ac_ext >&5
  7692. eval "$as_ac_var=no"
  7693. fi
  7694. rm -f conftest.err conftest.$ac_objext \
  7695. conftest$ac_exeext conftest.$ac_ext
  7696. fi
  7697. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7698. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7699. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7700. cat >>confdefs.h <<_ACEOF
  7701. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7702. _ACEOF
  7703. fi
  7704. done
  7705. am_save_CPPFLAGS="$CPPFLAGS"
  7706. for element in $INCICONV; do
  7707. haveit=
  7708. for x in $CPPFLAGS; do
  7709. acl_save_prefix="$prefix"
  7710. prefix="$acl_final_prefix"
  7711. acl_save_exec_prefix="$exec_prefix"
  7712. exec_prefix="$acl_final_exec_prefix"
  7713. eval x=\"$x\"
  7714. exec_prefix="$acl_save_exec_prefix"
  7715. prefix="$acl_save_prefix"
  7716. if test "X$x" = "X$element"; then
  7717. haveit=yes
  7718. break
  7719. fi
  7720. done
  7721. if test -z "$haveit"; then
  7722. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  7723. fi
  7724. done
  7725. echo "$as_me:$LINENO: checking for iconv" >&5
  7726. echo $ECHO_N "checking for iconv... $ECHO_C" >&6
  7727. if test "${am_cv_func_iconv+set}" = set; then
  7728. echo $ECHO_N "(cached) $ECHO_C" >&6
  7729. else
  7730. am_cv_func_iconv="no, consider installing GNU libiconv"
  7731. am_cv_lib_iconv=no
  7732. cat >conftest.$ac_ext <<_ACEOF
  7733. /* confdefs.h. */
  7734. _ACEOF
  7735. cat confdefs.h >>conftest.$ac_ext
  7736. cat >>conftest.$ac_ext <<_ACEOF
  7737. /* end confdefs.h. */
  7738. #include <stdlib.h>
  7739. #include <iconv.h>
  7740. int
  7741. main ()
  7742. {
  7743. iconv_t cd = iconv_open("","");
  7744. iconv(cd,NULL,NULL,NULL,NULL);
  7745. iconv_close(cd);
  7746. ;
  7747. return 0;
  7748. }
  7749. _ACEOF
  7750. rm -f conftest.$ac_objext conftest$ac_exeext
  7751. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7752. (eval $ac_link) 2>conftest.er1
  7753. ac_status=$?
  7754. grep -v '^ *+' conftest.er1 >conftest.err
  7755. rm -f conftest.er1
  7756. cat conftest.err >&5
  7757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7758. (exit $ac_status); } &&
  7759. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7760. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7761. (eval $ac_try) 2>&5
  7762. ac_status=$?
  7763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7764. (exit $ac_status); }; } &&
  7765. { ac_try='test -s conftest$ac_exeext'
  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); }; }; then
  7771. am_cv_func_iconv=yes
  7772. else
  7773. echo "$as_me: failed program was:" >&5
  7774. sed 's/^/| /' conftest.$ac_ext >&5
  7775. fi
  7776. rm -f conftest.err conftest.$ac_objext \
  7777. conftest$ac_exeext conftest.$ac_ext
  7778. if test "$am_cv_func_iconv" != yes; then
  7779. am_save_LIBS="$LIBS"
  7780. LIBS="$LIBS $LIBICONV"
  7781. cat >conftest.$ac_ext <<_ACEOF
  7782. /* confdefs.h. */
  7783. _ACEOF
  7784. cat confdefs.h >>conftest.$ac_ext
  7785. cat >>conftest.$ac_ext <<_ACEOF
  7786. /* end confdefs.h. */
  7787. #include <stdlib.h>
  7788. #include <iconv.h>
  7789. int
  7790. main ()
  7791. {
  7792. iconv_t cd = iconv_open("","");
  7793. iconv(cd,NULL,NULL,NULL,NULL);
  7794. iconv_close(cd);
  7795. ;
  7796. return 0;
  7797. }
  7798. _ACEOF
  7799. rm -f conftest.$ac_objext conftest$ac_exeext
  7800. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7801. (eval $ac_link) 2>conftest.er1
  7802. ac_status=$?
  7803. grep -v '^ *+' conftest.er1 >conftest.err
  7804. rm -f conftest.er1
  7805. cat conftest.err >&5
  7806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7807. (exit $ac_status); } &&
  7808. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7810. (eval $ac_try) 2>&5
  7811. ac_status=$?
  7812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7813. (exit $ac_status); }; } &&
  7814. { ac_try='test -s conftest$ac_exeext'
  7815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7816. (eval $ac_try) 2>&5
  7817. ac_status=$?
  7818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7819. (exit $ac_status); }; }; then
  7820. am_cv_lib_iconv=yes
  7821. am_cv_func_iconv=yes
  7822. else
  7823. echo "$as_me: failed program was:" >&5
  7824. sed 's/^/| /' conftest.$ac_ext >&5
  7825. fi
  7826. rm -f conftest.err conftest.$ac_objext \
  7827. conftest$ac_exeext conftest.$ac_ext
  7828. LIBS="$am_save_LIBS"
  7829. fi
  7830. fi
  7831. echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  7832. echo "${ECHO_T}$am_cv_func_iconv" >&6
  7833. if test "$am_cv_func_iconv" = yes; then
  7834. cat >>confdefs.h <<\_ACEOF
  7835. #define HAVE_ICONV 1
  7836. _ACEOF
  7837. fi
  7838. if test "$am_cv_lib_iconv" = yes; then
  7839. echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  7840. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
  7841. echo "$as_me:$LINENO: result: $LIBICONV" >&5
  7842. echo "${ECHO_T}$LIBICONV" >&6
  7843. else
  7844. CPPFLAGS="$am_save_CPPFLAGS"
  7845. LIBICONV=
  7846. LTLIBICONV=
  7847. fi
  7848. if test "$am_cv_func_iconv" = yes; then
  7849. echo "$as_me:$LINENO: checking for iconv declaration" >&5
  7850. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
  7851. if test "${am_cv_proto_iconv+set}" = set; then
  7852. echo $ECHO_N "(cached) $ECHO_C" >&6
  7853. else
  7854. cat >conftest.$ac_ext <<_ACEOF
  7855. /* confdefs.h. */
  7856. _ACEOF
  7857. cat confdefs.h >>conftest.$ac_ext
  7858. cat >>conftest.$ac_ext <<_ACEOF
  7859. /* end confdefs.h. */
  7860. #include <stdlib.h>
  7861. #include <iconv.h>
  7862. extern
  7863. #ifdef __cplusplus
  7864. "C"
  7865. #endif
  7866. #if defined(__STDC__) || defined(__cplusplus)
  7867. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  7868. #else
  7869. size_t iconv();
  7870. #endif
  7871. int
  7872. main ()
  7873. {
  7874. ;
  7875. return 0;
  7876. }
  7877. _ACEOF
  7878. rm -f conftest.$ac_objext
  7879. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7880. (eval $ac_compile) 2>conftest.er1
  7881. ac_status=$?
  7882. grep -v '^ *+' conftest.er1 >conftest.err
  7883. rm -f conftest.er1
  7884. cat conftest.err >&5
  7885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7886. (exit $ac_status); } &&
  7887. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7889. (eval $ac_try) 2>&5
  7890. ac_status=$?
  7891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7892. (exit $ac_status); }; } &&
  7893. { ac_try='test -s conftest.$ac_objext'
  7894. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7895. (eval $ac_try) 2>&5
  7896. ac_status=$?
  7897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7898. (exit $ac_status); }; }; then
  7899. am_cv_proto_iconv_arg1=""
  7900. else
  7901. echo "$as_me: failed program was:" >&5
  7902. sed 's/^/| /' conftest.$ac_ext >&5
  7903. am_cv_proto_iconv_arg1="const"
  7904. fi
  7905. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7906. 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);"
  7907. fi
  7908. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  7909. echo "$as_me:$LINENO: result: ${ac_t:-
  7910. }$am_cv_proto_iconv" >&5
  7911. echo "${ECHO_T}${ac_t:-
  7912. }$am_cv_proto_iconv" >&6
  7913. cat >>confdefs.h <<_ACEOF
  7914. #define ICONV_CONST $am_cv_proto_iconv_arg1
  7915. _ACEOF
  7916. fi
  7917. echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  7918. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
  7919. if test "${am_cv_langinfo_codeset+set}" = set; then
  7920. echo $ECHO_N "(cached) $ECHO_C" >&6
  7921. else
  7922. cat >conftest.$ac_ext <<_ACEOF
  7923. /* confdefs.h. */
  7924. _ACEOF
  7925. cat confdefs.h >>conftest.$ac_ext
  7926. cat >>conftest.$ac_ext <<_ACEOF
  7927. /* end confdefs.h. */
  7928. #include <langinfo.h>
  7929. int
  7930. main ()
  7931. {
  7932. char* cs = nl_langinfo(CODESET);
  7933. ;
  7934. return 0;
  7935. }
  7936. _ACEOF
  7937. rm -f conftest.$ac_objext conftest$ac_exeext
  7938. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7939. (eval $ac_link) 2>conftest.er1
  7940. ac_status=$?
  7941. grep -v '^ *+' conftest.er1 >conftest.err
  7942. rm -f conftest.er1
  7943. cat conftest.err >&5
  7944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7945. (exit $ac_status); } &&
  7946. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7948. (eval $ac_try) 2>&5
  7949. ac_status=$?
  7950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7951. (exit $ac_status); }; } &&
  7952. { ac_try='test -s conftest$ac_exeext'
  7953. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7954. (eval $ac_try) 2>&5
  7955. ac_status=$?
  7956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7957. (exit $ac_status); }; }; then
  7958. am_cv_langinfo_codeset=yes
  7959. else
  7960. echo "$as_me: failed program was:" >&5
  7961. sed 's/^/| /' conftest.$ac_ext >&5
  7962. am_cv_langinfo_codeset=no
  7963. fi
  7964. rm -f conftest.err conftest.$ac_objext \
  7965. conftest$ac_exeext conftest.$ac_ext
  7966. fi
  7967. echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  7968. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
  7969. if test $am_cv_langinfo_codeset = yes; then
  7970. cat >>confdefs.h <<\_ACEOF
  7971. #define HAVE_LANGINFO_CODESET 1
  7972. _ACEOF
  7973. fi
  7974. if test $ac_cv_header_locale_h = yes; then
  7975. echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  7976. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
  7977. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  7978. echo $ECHO_N "(cached) $ECHO_C" >&6
  7979. else
  7980. cat >conftest.$ac_ext <<_ACEOF
  7981. /* confdefs.h. */
  7982. _ACEOF
  7983. cat confdefs.h >>conftest.$ac_ext
  7984. cat >>conftest.$ac_ext <<_ACEOF
  7985. /* end confdefs.h. */
  7986. #include <locale.h>
  7987. int
  7988. main ()
  7989. {
  7990. return LC_MESSAGES
  7991. ;
  7992. return 0;
  7993. }
  7994. _ACEOF
  7995. rm -f conftest.$ac_objext conftest$ac_exeext
  7996. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7997. (eval $ac_link) 2>conftest.er1
  7998. ac_status=$?
  7999. grep -v '^ *+' conftest.er1 >conftest.err
  8000. rm -f conftest.er1
  8001. cat conftest.err >&5
  8002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8003. (exit $ac_status); } &&
  8004. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8005. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8006. (eval $ac_try) 2>&5
  8007. ac_status=$?
  8008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8009. (exit $ac_status); }; } &&
  8010. { ac_try='test -s conftest$ac_exeext'
  8011. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8012. (eval $ac_try) 2>&5
  8013. ac_status=$?
  8014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8015. (exit $ac_status); }; }; then
  8016. am_cv_val_LC_MESSAGES=yes
  8017. else
  8018. echo "$as_me: failed program was:" >&5
  8019. sed 's/^/| /' conftest.$ac_ext >&5
  8020. am_cv_val_LC_MESSAGES=no
  8021. fi
  8022. rm -f conftest.err conftest.$ac_objext \
  8023. conftest$ac_exeext conftest.$ac_ext
  8024. fi
  8025. echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  8026. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
  8027. if test $am_cv_val_LC_MESSAGES = yes; then
  8028. cat >>confdefs.h <<\_ACEOF
  8029. #define HAVE_LC_MESSAGES 1
  8030. _ACEOF
  8031. fi
  8032. fi
  8033. for ac_prog in bison
  8034. do
  8035. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8036. set dummy $ac_prog; ac_word=$2
  8037. echo "$as_me:$LINENO: checking for $ac_word" >&5
  8038. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8039. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  8040. echo $ECHO_N "(cached) $ECHO_C" >&6
  8041. else
  8042. if test -n "$INTLBISON"; then
  8043. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  8044. else
  8045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8046. for as_dir in $PATH
  8047. do
  8048. IFS=$as_save_IFS
  8049. test -z "$as_dir" && as_dir=.
  8050. for ac_exec_ext in '' $ac_executable_extensions; do
  8051. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8052. ac_cv_prog_INTLBISON="$ac_prog"
  8053. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8054. break 2
  8055. fi
  8056. done
  8057. done
  8058. fi
  8059. fi
  8060. INTLBISON=$ac_cv_prog_INTLBISON
  8061. if test -n "$INTLBISON"; then
  8062. echo "$as_me:$LINENO: result: $INTLBISON" >&5
  8063. echo "${ECHO_T}$INTLBISON" >&6
  8064. else
  8065. echo "$as_me:$LINENO: result: no" >&5
  8066. echo "${ECHO_T}no" >&6
  8067. fi
  8068. test -n "$INTLBISON" && break
  8069. done
  8070. if test -z "$INTLBISON"; then
  8071. ac_verc_fail=yes
  8072. else
  8073. echo "$as_me:$LINENO: checking version of bison" >&5
  8074. echo $ECHO_N "checking version of bison... $ECHO_C" >&6
  8075. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  8076. case $ac_prog_version in
  8077. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  8078. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  8079. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  8080. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  8081. esac
  8082. echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  8083. echo "${ECHO_T}$ac_prog_version" >&6
  8084. fi
  8085. if test $ac_verc_fail = yes; then
  8086. INTLBISON=:
  8087. fi
  8088. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  8089. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  8090. # Check whether --enable-nls or --disable-nls was given.
  8091. if test "${enable_nls+set}" = set; then
  8092. enableval="$enable_nls"
  8093. USE_NLS=$enableval
  8094. else
  8095. USE_NLS=yes
  8096. fi;
  8097. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8098. echo "${ECHO_T}$USE_NLS" >&6
  8099. BUILD_INCLUDED_LIBINTL=no
  8100. USE_INCLUDED_LIBINTL=no
  8101. LIBINTL=
  8102. LTLIBINTL=
  8103. POSUB=
  8104. if test "$USE_NLS" = "yes"; then
  8105. gt_use_preinstalled_gnugettext=no
  8106. echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  8107. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
  8108. # Check whether --with-included-gettext or --without-included-gettext was given.
  8109. if test "${with_included_gettext+set}" = set; then
  8110. withval="$with_included_gettext"
  8111. nls_cv_force_use_gnu_gettext=$withval
  8112. else
  8113. nls_cv_force_use_gnu_gettext=no
  8114. fi;
  8115. echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  8116. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
  8117. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  8118. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  8119. echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  8120. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
  8121. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  8122. echo $ECHO_N "(cached) $ECHO_C" >&6
  8123. else
  8124. cat >conftest.$ac_ext <<_ACEOF
  8125. /* confdefs.h. */
  8126. _ACEOF
  8127. cat confdefs.h >>conftest.$ac_ext
  8128. cat >>conftest.$ac_ext <<_ACEOF
  8129. /* end confdefs.h. */
  8130. #include <libintl.h>
  8131. extern int _nl_msg_cat_cntr;
  8132. extern int *_nl_domain_bindings;
  8133. int
  8134. main ()
  8135. {
  8136. bindtextdomain ("", "");
  8137. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  8138. ;
  8139. return 0;
  8140. }
  8141. _ACEOF
  8142. rm -f conftest.$ac_objext conftest$ac_exeext
  8143. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8144. (eval $ac_link) 2>conftest.er1
  8145. ac_status=$?
  8146. grep -v '^ *+' conftest.er1 >conftest.err
  8147. rm -f conftest.er1
  8148. cat conftest.err >&5
  8149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8150. (exit $ac_status); } &&
  8151. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8152. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8153. (eval $ac_try) 2>&5
  8154. ac_status=$?
  8155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8156. (exit $ac_status); }; } &&
  8157. { ac_try='test -s conftest$ac_exeext'
  8158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8159. (eval $ac_try) 2>&5
  8160. ac_status=$?
  8161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8162. (exit $ac_status); }; }; then
  8163. gt_cv_func_gnugettext1_libc=yes
  8164. else
  8165. echo "$as_me: failed program was:" >&5
  8166. sed 's/^/| /' conftest.$ac_ext >&5
  8167. gt_cv_func_gnugettext1_libc=no
  8168. fi
  8169. rm -f conftest.err conftest.$ac_objext \
  8170. conftest$ac_exeext conftest.$ac_ext
  8171. fi
  8172. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  8173. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
  8174. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  8175. use_additional=yes
  8176. acl_save_prefix="$prefix"
  8177. prefix="$acl_final_prefix"
  8178. acl_save_exec_prefix="$exec_prefix"
  8179. exec_prefix="$acl_final_exec_prefix"
  8180. eval additional_includedir=\"$includedir\"
  8181. eval additional_libdir=\"$libdir\"
  8182. exec_prefix="$acl_save_exec_prefix"
  8183. prefix="$acl_save_prefix"
  8184. # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
  8185. if test "${with_libintl_prefix+set}" = set; then
  8186. withval="$with_libintl_prefix"
  8187. if test "X$withval" = "Xno"; then
  8188. use_additional=no
  8189. else
  8190. if test "X$withval" = "X"; then
  8191. acl_save_prefix="$prefix"
  8192. prefix="$acl_final_prefix"
  8193. acl_save_exec_prefix="$exec_prefix"
  8194. exec_prefix="$acl_final_exec_prefix"
  8195. eval additional_includedir=\"$includedir\"
  8196. eval additional_libdir=\"$libdir\"
  8197. exec_prefix="$acl_save_exec_prefix"
  8198. prefix="$acl_save_prefix"
  8199. else
  8200. additional_includedir="$withval/include"
  8201. additional_libdir="$withval/lib"
  8202. fi
  8203. fi
  8204. fi;
  8205. LIBINTL=
  8206. LTLIBINTL=
  8207. INCINTL=
  8208. rpathdirs=
  8209. ltrpathdirs=
  8210. names_already_handled=
  8211. names_next_round='intl '
  8212. while test -n "$names_next_round"; do
  8213. names_this_round="$names_next_round"
  8214. names_next_round=
  8215. for name in $names_this_round; do
  8216. already_handled=
  8217. for n in $names_already_handled; do
  8218. if test "$n" = "$name"; then
  8219. already_handled=yes
  8220. break
  8221. fi
  8222. done
  8223. if test -z "$already_handled"; then
  8224. names_already_handled="$names_already_handled $name"
  8225. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8226. eval value=\"\$HAVE_LIB$uppername\"
  8227. if test -n "$value"; then
  8228. if test "$value" = yes; then
  8229. eval value=\"\$LIB$uppername\"
  8230. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  8231. eval value=\"\$LTLIB$uppername\"
  8232. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  8233. else
  8234. :
  8235. fi
  8236. else
  8237. found_dir=
  8238. found_la=
  8239. found_so=
  8240. found_a=
  8241. if test $use_additional = yes; then
  8242. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  8243. found_dir="$additional_libdir"
  8244. found_so="$additional_libdir/lib$name.$shlibext"
  8245. if test -f "$additional_libdir/lib$name.la"; then
  8246. found_la="$additional_libdir/lib$name.la"
  8247. fi
  8248. else
  8249. if test -f "$additional_libdir/lib$name.$libext"; then
  8250. found_dir="$additional_libdir"
  8251. found_a="$additional_libdir/lib$name.$libext"
  8252. if test -f "$additional_libdir/lib$name.la"; then
  8253. found_la="$additional_libdir/lib$name.la"
  8254. fi
  8255. fi
  8256. fi
  8257. fi
  8258. if test "X$found_dir" = "X"; then
  8259. for x in $LDFLAGS $LTLIBINTL; do
  8260. acl_save_prefix="$prefix"
  8261. prefix="$acl_final_prefix"
  8262. acl_save_exec_prefix="$exec_prefix"
  8263. exec_prefix="$acl_final_exec_prefix"
  8264. eval x=\"$x\"
  8265. exec_prefix="$acl_save_exec_prefix"
  8266. prefix="$acl_save_prefix"
  8267. case "$x" in
  8268. -L*)
  8269. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8270. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  8271. found_dir="$dir"
  8272. found_so="$dir/lib$name.$shlibext"
  8273. if test -f "$dir/lib$name.la"; then
  8274. found_la="$dir/lib$name.la"
  8275. fi
  8276. else
  8277. if test -f "$dir/lib$name.$libext"; then
  8278. found_dir="$dir"
  8279. found_a="$dir/lib$name.$libext"
  8280. if test -f "$dir/lib$name.la"; then
  8281. found_la="$dir/lib$name.la"
  8282. fi
  8283. fi
  8284. fi
  8285. ;;
  8286. esac
  8287. if test "X$found_dir" != "X"; then
  8288. break
  8289. fi
  8290. done
  8291. fi
  8292. if test "X$found_dir" != "X"; then
  8293. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  8294. if test "X$found_so" != "X"; then
  8295. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8296. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8297. else
  8298. haveit=
  8299. for x in $ltrpathdirs; do
  8300. if test "X$x" = "X$found_dir"; then
  8301. haveit=yes
  8302. break
  8303. fi
  8304. done
  8305. if test -z "$haveit"; then
  8306. ltrpathdirs="$ltrpathdirs $found_dir"
  8307. fi
  8308. if test "$hardcode_direct" = yes; then
  8309. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8310. else
  8311. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8312. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8313. haveit=
  8314. for x in $rpathdirs; do
  8315. if test "X$x" = "X$found_dir"; then
  8316. haveit=yes
  8317. break
  8318. fi
  8319. done
  8320. if test -z "$haveit"; then
  8321. rpathdirs="$rpathdirs $found_dir"
  8322. fi
  8323. else
  8324. haveit=
  8325. for x in $LDFLAGS $LIBINTL; do
  8326. acl_save_prefix="$prefix"
  8327. prefix="$acl_final_prefix"
  8328. acl_save_exec_prefix="$exec_prefix"
  8329. exec_prefix="$acl_final_exec_prefix"
  8330. eval x=\"$x\"
  8331. exec_prefix="$acl_save_exec_prefix"
  8332. prefix="$acl_save_prefix"
  8333. if test "X$x" = "X-L$found_dir"; then
  8334. haveit=yes
  8335. break
  8336. fi
  8337. done
  8338. if test -z "$haveit"; then
  8339. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  8340. fi
  8341. if test "$hardcode_minus_L" != no; then
  8342. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8343. else
  8344. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  8345. fi
  8346. fi
  8347. fi
  8348. fi
  8349. else
  8350. if test "X$found_a" != "X"; then
  8351. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  8352. else
  8353. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  8354. fi
  8355. fi
  8356. additional_includedir=
  8357. case "$found_dir" in
  8358. */lib | */lib/)
  8359. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8360. additional_includedir="$basedir/include"
  8361. ;;
  8362. esac
  8363. if test "X$additional_includedir" != "X"; then
  8364. if test "X$additional_includedir" != "X/usr/include"; then
  8365. haveit=
  8366. if test "X$additional_includedir" = "X/usr/local/include"; then
  8367. if test -n "$GCC"; then
  8368. case $host_os in
  8369. linux*) haveit=yes;;
  8370. esac
  8371. fi
  8372. fi
  8373. if test -z "$haveit"; then
  8374. for x in $CPPFLAGS $INCINTL; 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-I$additional_includedir"; then
  8383. haveit=yes
  8384. break
  8385. fi
  8386. done
  8387. if test -z "$haveit"; then
  8388. if test -d "$additional_includedir"; then
  8389. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  8390. fi
  8391. fi
  8392. fi
  8393. fi
  8394. fi
  8395. if test -n "$found_la"; then
  8396. save_libdir="$libdir"
  8397. case "$found_la" in
  8398. */* | *\\*) . "$found_la" ;;
  8399. *) . "./$found_la" ;;
  8400. esac
  8401. libdir="$save_libdir"
  8402. for dep in $dependency_libs; do
  8403. case "$dep" in
  8404. -L*)
  8405. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8406. if test "X$additional_libdir" != "X/usr/lib"; then
  8407. haveit=
  8408. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8409. if test -n "$GCC"; then
  8410. case $host_os in
  8411. linux*) haveit=yes;;
  8412. esac
  8413. fi
  8414. fi
  8415. if test -z "$haveit"; then
  8416. haveit=
  8417. for x in $LDFLAGS $LIBINTL; do
  8418. acl_save_prefix="$prefix"
  8419. prefix="$acl_final_prefix"
  8420. acl_save_exec_prefix="$exec_prefix"
  8421. exec_prefix="$acl_final_exec_prefix"
  8422. eval x=\"$x\"
  8423. exec_prefix="$acl_save_exec_prefix"
  8424. prefix="$acl_save_prefix"
  8425. if test "X$x" = "X-L$additional_libdir"; then
  8426. haveit=yes
  8427. break
  8428. fi
  8429. done
  8430. if test -z "$haveit"; then
  8431. if test -d "$additional_libdir"; then
  8432. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  8433. fi
  8434. fi
  8435. haveit=
  8436. for x in $LDFLAGS $LTLIBINTL; do
  8437. acl_save_prefix="$prefix"
  8438. prefix="$acl_final_prefix"
  8439. acl_save_exec_prefix="$exec_prefix"
  8440. exec_prefix="$acl_final_exec_prefix"
  8441. eval x=\"$x\"
  8442. exec_prefix="$acl_save_exec_prefix"
  8443. prefix="$acl_save_prefix"
  8444. if test "X$x" = "X-L$additional_libdir"; then
  8445. haveit=yes
  8446. break
  8447. fi
  8448. done
  8449. if test -z "$haveit"; then
  8450. if test -d "$additional_libdir"; then
  8451. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  8452. fi
  8453. fi
  8454. fi
  8455. fi
  8456. ;;
  8457. -R*)
  8458. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8459. if test "$enable_rpath" != no; then
  8460. haveit=
  8461. for x in $rpathdirs; do
  8462. if test "X$x" = "X$dir"; then
  8463. haveit=yes
  8464. break
  8465. fi
  8466. done
  8467. if test -z "$haveit"; then
  8468. rpathdirs="$rpathdirs $dir"
  8469. fi
  8470. haveit=
  8471. for x in $ltrpathdirs; do
  8472. if test "X$x" = "X$dir"; then
  8473. haveit=yes
  8474. break
  8475. fi
  8476. done
  8477. if test -z "$haveit"; then
  8478. ltrpathdirs="$ltrpathdirs $dir"
  8479. fi
  8480. fi
  8481. ;;
  8482. -l*)
  8483. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8484. ;;
  8485. *.la)
  8486. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8487. ;;
  8488. *)
  8489. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  8490. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  8491. ;;
  8492. esac
  8493. done
  8494. fi
  8495. else
  8496. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  8497. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  8498. fi
  8499. fi
  8500. fi
  8501. done
  8502. done
  8503. if test "X$rpathdirs" != "X"; then
  8504. if test -n "$hardcode_libdir_separator"; then
  8505. alldirs=
  8506. for found_dir in $rpathdirs; do
  8507. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8508. done
  8509. acl_save_libdir="$libdir"
  8510. libdir="$alldirs"
  8511. eval flag=\"$hardcode_libdir_flag_spec\"
  8512. libdir="$acl_save_libdir"
  8513. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  8514. else
  8515. for found_dir in $rpathdirs; do
  8516. acl_save_libdir="$libdir"
  8517. libdir="$found_dir"
  8518. eval flag=\"$hardcode_libdir_flag_spec\"
  8519. libdir="$acl_save_libdir"
  8520. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  8521. done
  8522. fi
  8523. fi
  8524. if test "X$ltrpathdirs" != "X"; then
  8525. for found_dir in $ltrpathdirs; do
  8526. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  8527. done
  8528. fi
  8529. echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  8530. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
  8531. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  8532. echo $ECHO_N "(cached) $ECHO_C" >&6
  8533. else
  8534. gt_save_CPPFLAGS="$CPPFLAGS"
  8535. CPPFLAGS="$CPPFLAGS $INCINTL"
  8536. gt_save_LIBS="$LIBS"
  8537. LIBS="$LIBS $LIBINTL"
  8538. cat >conftest.$ac_ext <<_ACEOF
  8539. /* confdefs.h. */
  8540. _ACEOF
  8541. cat confdefs.h >>conftest.$ac_ext
  8542. cat >>conftest.$ac_ext <<_ACEOF
  8543. /* end confdefs.h. */
  8544. #include <libintl.h>
  8545. extern int _nl_msg_cat_cntr;
  8546. extern
  8547. #ifdef __cplusplus
  8548. "C"
  8549. #endif
  8550. const char *_nl_expand_alias ();
  8551. int
  8552. main ()
  8553. {
  8554. bindtextdomain ("", "");
  8555. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  8556. ;
  8557. return 0;
  8558. }
  8559. _ACEOF
  8560. rm -f conftest.$ac_objext conftest$ac_exeext
  8561. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8562. (eval $ac_link) 2>conftest.er1
  8563. ac_status=$?
  8564. grep -v '^ *+' conftest.er1 >conftest.err
  8565. rm -f conftest.er1
  8566. cat conftest.err >&5
  8567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8568. (exit $ac_status); } &&
  8569. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8570. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8571. (eval $ac_try) 2>&5
  8572. ac_status=$?
  8573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8574. (exit $ac_status); }; } &&
  8575. { ac_try='test -s conftest$ac_exeext'
  8576. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8577. (eval $ac_try) 2>&5
  8578. ac_status=$?
  8579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8580. (exit $ac_status); }; }; then
  8581. gt_cv_func_gnugettext1_libintl=yes
  8582. else
  8583. echo "$as_me: failed program was:" >&5
  8584. sed 's/^/| /' conftest.$ac_ext >&5
  8585. gt_cv_func_gnugettext1_libintl=no
  8586. fi
  8587. rm -f conftest.err conftest.$ac_objext \
  8588. conftest$ac_exeext conftest.$ac_ext
  8589. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  8590. LIBS="$LIBS $LIBICONV"
  8591. cat >conftest.$ac_ext <<_ACEOF
  8592. /* confdefs.h. */
  8593. _ACEOF
  8594. cat confdefs.h >>conftest.$ac_ext
  8595. cat >>conftest.$ac_ext <<_ACEOF
  8596. /* end confdefs.h. */
  8597. #include <libintl.h>
  8598. extern int _nl_msg_cat_cntr;
  8599. extern
  8600. #ifdef __cplusplus
  8601. "C"
  8602. #endif
  8603. const char *_nl_expand_alias ();
  8604. int
  8605. main ()
  8606. {
  8607. bindtextdomain ("", "");
  8608. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  8609. ;
  8610. return 0;
  8611. }
  8612. _ACEOF
  8613. rm -f conftest.$ac_objext conftest$ac_exeext
  8614. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8615. (eval $ac_link) 2>conftest.er1
  8616. ac_status=$?
  8617. grep -v '^ *+' conftest.er1 >conftest.err
  8618. rm -f conftest.er1
  8619. cat conftest.err >&5
  8620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8621. (exit $ac_status); } &&
  8622. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8623. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8624. (eval $ac_try) 2>&5
  8625. ac_status=$?
  8626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8627. (exit $ac_status); }; } &&
  8628. { ac_try='test -s conftest$ac_exeext'
  8629. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8630. (eval $ac_try) 2>&5
  8631. ac_status=$?
  8632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8633. (exit $ac_status); }; }; then
  8634. LIBINTL="$LIBINTL $LIBICONV"
  8635. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  8636. gt_cv_func_gnugettext1_libintl=yes
  8637. else
  8638. echo "$as_me: failed program was:" >&5
  8639. sed 's/^/| /' conftest.$ac_ext >&5
  8640. fi
  8641. rm -f conftest.err conftest.$ac_objext \
  8642. conftest$ac_exeext conftest.$ac_ext
  8643. fi
  8644. CPPFLAGS="$gt_save_CPPFLAGS"
  8645. LIBS="$gt_save_LIBS"
  8646. fi
  8647. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  8648. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
  8649. fi
  8650. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  8651. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  8652. && test "$PACKAGE" != gettext-runtime \
  8653. && test "$PACKAGE" != gettext-tools; }; then
  8654. gt_use_preinstalled_gnugettext=yes
  8655. else
  8656. LIBINTL=
  8657. LTLIBINTL=
  8658. INCINTL=
  8659. fi
  8660. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  8661. nls_cv_use_gnu_gettext=yes
  8662. fi
  8663. fi
  8664. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  8665. BUILD_INCLUDED_LIBINTL=yes
  8666. USE_INCLUDED_LIBINTL=yes
  8667. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  8668. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  8669. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  8670. fi
  8671. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  8672. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  8673. CATOBJEXT=.gmo
  8674. fi
  8675. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  8676. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  8677. cat >>confdefs.h <<\_ACEOF
  8678. #define ENABLE_NLS 1
  8679. _ACEOF
  8680. else
  8681. USE_NLS=no
  8682. fi
  8683. fi
  8684. echo "$as_me:$LINENO: checking whether to use NLS" >&5
  8685. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
  8686. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8687. echo "${ECHO_T}$USE_NLS" >&6
  8688. if test "$USE_NLS" = "yes"; then
  8689. echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  8690. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
  8691. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  8692. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  8693. gt_source="external libintl"
  8694. else
  8695. gt_source="libc"
  8696. fi
  8697. else
  8698. gt_source="included intl directory"
  8699. fi
  8700. echo "$as_me:$LINENO: result: $gt_source" >&5
  8701. echo "${ECHO_T}$gt_source" >&6
  8702. fi
  8703. if test "$USE_NLS" = "yes"; then
  8704. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  8705. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  8706. echo "$as_me:$LINENO: checking how to link with libintl" >&5
  8707. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
  8708. echo "$as_me:$LINENO: result: $LIBINTL" >&5
  8709. echo "${ECHO_T}$LIBINTL" >&6
  8710. for element in $INCINTL; do
  8711. haveit=
  8712. for x in $CPPFLAGS; do
  8713. acl_save_prefix="$prefix"
  8714. prefix="$acl_final_prefix"
  8715. acl_save_exec_prefix="$exec_prefix"
  8716. exec_prefix="$acl_final_exec_prefix"
  8717. eval x=\"$x\"
  8718. exec_prefix="$acl_save_exec_prefix"
  8719. prefix="$acl_save_prefix"
  8720. if test "X$x" = "X$element"; then
  8721. haveit=yes
  8722. break
  8723. fi
  8724. done
  8725. if test -z "$haveit"; then
  8726. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8727. fi
  8728. done
  8729. fi
  8730. cat >>confdefs.h <<\_ACEOF
  8731. #define HAVE_GETTEXT 1
  8732. _ACEOF
  8733. cat >>confdefs.h <<\_ACEOF
  8734. #define HAVE_DCGETTEXT 1
  8735. _ACEOF
  8736. fi
  8737. POSUB=po
  8738. fi
  8739. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  8740. BUILD_INCLUDED_LIBINTL=yes
  8741. fi
  8742. nls_cv_header_intl=
  8743. nls_cv_header_libgt=
  8744. DATADIRNAME=share
  8745. INSTOBJEXT=.mo
  8746. GENCAT=gencat
  8747. if test "$USE_INCLUDED_LIBINTL" = yes; then
  8748. INTLOBJS="\$(GETTOBJS)"
  8749. fi
  8750. INTL_LIBTOOL_SUFFIX_PREFIX=
  8751. INTLLIBS="$LIBINTL"
  8752. echo "$as_me:$LINENO: checking for error_at_line" >&5
  8753. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  8754. if test "${ac_cv_lib_error_at_line+set}" = set; then
  8755. echo $ECHO_N "(cached) $ECHO_C" >&6
  8756. else
  8757. cat >conftest.$ac_ext <<_ACEOF
  8758. /* confdefs.h. */
  8759. _ACEOF
  8760. cat confdefs.h >>conftest.$ac_ext
  8761. cat >>conftest.$ac_ext <<_ACEOF
  8762. /* end confdefs.h. */
  8763. $ac_includes_default
  8764. int
  8765. main ()
  8766. {
  8767. error_at_line (0, 0, "", 0, "");
  8768. ;
  8769. return 0;
  8770. }
  8771. _ACEOF
  8772. rm -f conftest.$ac_objext conftest$ac_exeext
  8773. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8774. (eval $ac_link) 2>conftest.er1
  8775. ac_status=$?
  8776. grep -v '^ *+' conftest.er1 >conftest.err
  8777. rm -f conftest.er1
  8778. cat conftest.err >&5
  8779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8780. (exit $ac_status); } &&
  8781. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8782. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8783. (eval $ac_try) 2>&5
  8784. ac_status=$?
  8785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8786. (exit $ac_status); }; } &&
  8787. { ac_try='test -s conftest$ac_exeext'
  8788. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8789. (eval $ac_try) 2>&5
  8790. ac_status=$?
  8791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8792. (exit $ac_status); }; }; then
  8793. ac_cv_lib_error_at_line=yes
  8794. else
  8795. echo "$as_me: failed program was:" >&5
  8796. sed 's/^/| /' conftest.$ac_ext >&5
  8797. ac_cv_lib_error_at_line=no
  8798. fi
  8799. rm -f conftest.err conftest.$ac_objext \
  8800. conftest$ac_exeext conftest.$ac_ext
  8801. fi
  8802. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  8803. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  8804. if test $ac_cv_lib_error_at_line = no; then
  8805. case $LIBOBJS in
  8806. "error.$ac_objext" | \
  8807. *" error.$ac_objext" | \
  8808. "error.$ac_objext "* | \
  8809. *" error.$ac_objext "* ) ;;
  8810. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  8811. esac
  8812. fi
  8813. for ac_header in stdlib.h
  8814. do
  8815. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8816. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8817. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8818. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8819. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8820. echo $ECHO_N "(cached) $ECHO_C" >&6
  8821. fi
  8822. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8823. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8824. else
  8825. # Is the header compilable?
  8826. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8827. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8828. cat >conftest.$ac_ext <<_ACEOF
  8829. /* confdefs.h. */
  8830. _ACEOF
  8831. cat confdefs.h >>conftest.$ac_ext
  8832. cat >>conftest.$ac_ext <<_ACEOF
  8833. /* end confdefs.h. */
  8834. $ac_includes_default
  8835. #include <$ac_header>
  8836. _ACEOF
  8837. rm -f conftest.$ac_objext
  8838. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8839. (eval $ac_compile) 2>conftest.er1
  8840. ac_status=$?
  8841. grep -v '^ *+' conftest.er1 >conftest.err
  8842. rm -f conftest.er1
  8843. cat conftest.err >&5
  8844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8845. (exit $ac_status); } &&
  8846. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8847. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8848. (eval $ac_try) 2>&5
  8849. ac_status=$?
  8850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8851. (exit $ac_status); }; } &&
  8852. { ac_try='test -s conftest.$ac_objext'
  8853. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8854. (eval $ac_try) 2>&5
  8855. ac_status=$?
  8856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8857. (exit $ac_status); }; }; then
  8858. ac_header_compiler=yes
  8859. else
  8860. echo "$as_me: failed program was:" >&5
  8861. sed 's/^/| /' conftest.$ac_ext >&5
  8862. ac_header_compiler=no
  8863. fi
  8864. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8865. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8866. echo "${ECHO_T}$ac_header_compiler" >&6
  8867. # Is the header present?
  8868. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8869. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8870. cat >conftest.$ac_ext <<_ACEOF
  8871. /* confdefs.h. */
  8872. _ACEOF
  8873. cat confdefs.h >>conftest.$ac_ext
  8874. cat >>conftest.$ac_ext <<_ACEOF
  8875. /* end confdefs.h. */
  8876. #include <$ac_header>
  8877. _ACEOF
  8878. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8879. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8880. ac_status=$?
  8881. grep -v '^ *+' conftest.er1 >conftest.err
  8882. rm -f conftest.er1
  8883. cat conftest.err >&5
  8884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8885. (exit $ac_status); } >/dev/null; then
  8886. if test -s conftest.err; then
  8887. ac_cpp_err=$ac_c_preproc_warn_flag
  8888. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8889. else
  8890. ac_cpp_err=
  8891. fi
  8892. else
  8893. ac_cpp_err=yes
  8894. fi
  8895. if test -z "$ac_cpp_err"; then
  8896. ac_header_preproc=yes
  8897. else
  8898. echo "$as_me: failed program was:" >&5
  8899. sed 's/^/| /' conftest.$ac_ext >&5
  8900. ac_header_preproc=no
  8901. fi
  8902. rm -f conftest.err conftest.$ac_ext
  8903. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8904. echo "${ECHO_T}$ac_header_preproc" >&6
  8905. # So? What about this header?
  8906. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8907. yes:no: )
  8908. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8909. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8910. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8911. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8912. ac_header_preproc=yes
  8913. ;;
  8914. no:yes:* )
  8915. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8916. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8917. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8918. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8919. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8920. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8921. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8922. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8923. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8924. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8925. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8926. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8927. (
  8928. cat <<\_ASBOX
  8929. ## ----------------------------------- ##
  8930. ## Report this to tujikawa@rednoah.com ##
  8931. ## ----------------------------------- ##
  8932. _ASBOX
  8933. ) |
  8934. sed "s/^/$as_me: WARNING: /" >&2
  8935. ;;
  8936. esac
  8937. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8938. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8939. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8940. echo $ECHO_N "(cached) $ECHO_C" >&6
  8941. else
  8942. eval "$as_ac_Header=\$ac_header_preproc"
  8943. fi
  8944. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8945. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8946. fi
  8947. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8948. cat >>confdefs.h <<_ACEOF
  8949. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8950. _ACEOF
  8951. fi
  8952. done
  8953. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8954. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8955. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8956. echo $ECHO_N "(cached) $ECHO_C" >&6
  8957. else
  8958. if test "$cross_compiling" = yes; then
  8959. ac_cv_func_malloc_0_nonnull=no
  8960. else
  8961. cat >conftest.$ac_ext <<_ACEOF
  8962. /* confdefs.h. */
  8963. _ACEOF
  8964. cat confdefs.h >>conftest.$ac_ext
  8965. cat >>conftest.$ac_ext <<_ACEOF
  8966. /* end confdefs.h. */
  8967. #if STDC_HEADERS || HAVE_STDLIB_H
  8968. # include <stdlib.h>
  8969. #else
  8970. char *malloc ();
  8971. #endif
  8972. int
  8973. main ()
  8974. {
  8975. exit (malloc (0) ? 0 : 1);
  8976. ;
  8977. return 0;
  8978. }
  8979. _ACEOF
  8980. rm -f conftest$ac_exeext
  8981. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8982. (eval $ac_link) 2>&5
  8983. ac_status=$?
  8984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8985. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8986. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8987. (eval $ac_try) 2>&5
  8988. ac_status=$?
  8989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8990. (exit $ac_status); }; }; then
  8991. ac_cv_func_malloc_0_nonnull=yes
  8992. else
  8993. echo "$as_me: program exited with status $ac_status" >&5
  8994. echo "$as_me: failed program was:" >&5
  8995. sed 's/^/| /' conftest.$ac_ext >&5
  8996. ( exit $ac_status )
  8997. ac_cv_func_malloc_0_nonnull=no
  8998. fi
  8999. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9000. fi
  9001. fi
  9002. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9003. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  9004. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9005. cat >>confdefs.h <<\_ACEOF
  9006. #define HAVE_MALLOC 1
  9007. _ACEOF
  9008. else
  9009. cat >>confdefs.h <<\_ACEOF
  9010. #define HAVE_MALLOC 0
  9011. _ACEOF
  9012. case $LIBOBJS in
  9013. "malloc.$ac_objext" | \
  9014. *" malloc.$ac_objext" | \
  9015. "malloc.$ac_objext "* | \
  9016. *" malloc.$ac_objext "* ) ;;
  9017. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  9018. esac
  9019. cat >>confdefs.h <<\_ACEOF
  9020. #define malloc rpl_malloc
  9021. _ACEOF
  9022. fi
  9023. echo "$as_me:$LINENO: checking for working memcmp" >&5
  9024. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  9025. if test "${ac_cv_func_memcmp_working+set}" = set; then
  9026. echo $ECHO_N "(cached) $ECHO_C" >&6
  9027. else
  9028. if test "$cross_compiling" = yes; then
  9029. ac_cv_func_memcmp_working=no
  9030. else
  9031. cat >conftest.$ac_ext <<_ACEOF
  9032. /* confdefs.h. */
  9033. _ACEOF
  9034. cat confdefs.h >>conftest.$ac_ext
  9035. cat >>conftest.$ac_ext <<_ACEOF
  9036. /* end confdefs.h. */
  9037. $ac_includes_default
  9038. int
  9039. main ()
  9040. {
  9041. /* Some versions of memcmp are not 8-bit clean. */
  9042. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  9043. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  9044. exit (1);
  9045. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  9046. or more and with at least one buffer not starting on a 4-byte boundary.
  9047. William Lewis provided this test program. */
  9048. {
  9049. char foo[21];
  9050. char bar[21];
  9051. int i;
  9052. for (i = 0; i < 4; i++)
  9053. {
  9054. char *a = foo + i;
  9055. char *b = bar + i;
  9056. strcpy (a, "--------01111111");
  9057. strcpy (b, "--------10000000");
  9058. if (memcmp (a, b, 16) >= 0)
  9059. exit (1);
  9060. }
  9061. exit (0);
  9062. }
  9063. ;
  9064. return 0;
  9065. }
  9066. _ACEOF
  9067. rm -f conftest$ac_exeext
  9068. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9069. (eval $ac_link) 2>&5
  9070. ac_status=$?
  9071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9072. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9073. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9074. (eval $ac_try) 2>&5
  9075. ac_status=$?
  9076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9077. (exit $ac_status); }; }; then
  9078. ac_cv_func_memcmp_working=yes
  9079. else
  9080. echo "$as_me: program exited with status $ac_status" >&5
  9081. echo "$as_me: failed program was:" >&5
  9082. sed 's/^/| /' conftest.$ac_ext >&5
  9083. ( exit $ac_status )
  9084. ac_cv_func_memcmp_working=no
  9085. fi
  9086. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9087. fi
  9088. fi
  9089. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  9090. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  9091. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  9092. "memcmp.$ac_objext" | \
  9093. *" memcmp.$ac_objext" | \
  9094. "memcmp.$ac_objext "* | \
  9095. *" memcmp.$ac_objext "* ) ;;
  9096. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  9097. esac
  9098. for ac_header in stdlib.h unistd.h
  9099. do
  9100. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9101. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9102. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9103. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9104. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9105. echo $ECHO_N "(cached) $ECHO_C" >&6
  9106. fi
  9107. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9108. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9109. else
  9110. # Is the header compilable?
  9111. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9112. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9113. cat >conftest.$ac_ext <<_ACEOF
  9114. /* confdefs.h. */
  9115. _ACEOF
  9116. cat confdefs.h >>conftest.$ac_ext
  9117. cat >>conftest.$ac_ext <<_ACEOF
  9118. /* end confdefs.h. */
  9119. $ac_includes_default
  9120. #include <$ac_header>
  9121. _ACEOF
  9122. rm -f conftest.$ac_objext
  9123. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9124. (eval $ac_compile) 2>conftest.er1
  9125. ac_status=$?
  9126. grep -v '^ *+' conftest.er1 >conftest.err
  9127. rm -f conftest.er1
  9128. cat conftest.err >&5
  9129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9130. (exit $ac_status); } &&
  9131. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9132. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9133. (eval $ac_try) 2>&5
  9134. ac_status=$?
  9135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9136. (exit $ac_status); }; } &&
  9137. { ac_try='test -s conftest.$ac_objext'
  9138. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9139. (eval $ac_try) 2>&5
  9140. ac_status=$?
  9141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9142. (exit $ac_status); }; }; then
  9143. ac_header_compiler=yes
  9144. else
  9145. echo "$as_me: failed program was:" >&5
  9146. sed 's/^/| /' conftest.$ac_ext >&5
  9147. ac_header_compiler=no
  9148. fi
  9149. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9150. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9151. echo "${ECHO_T}$ac_header_compiler" >&6
  9152. # Is the header present?
  9153. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9154. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9155. cat >conftest.$ac_ext <<_ACEOF
  9156. /* confdefs.h. */
  9157. _ACEOF
  9158. cat confdefs.h >>conftest.$ac_ext
  9159. cat >>conftest.$ac_ext <<_ACEOF
  9160. /* end confdefs.h. */
  9161. #include <$ac_header>
  9162. _ACEOF
  9163. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9164. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9165. ac_status=$?
  9166. grep -v '^ *+' conftest.er1 >conftest.err
  9167. rm -f conftest.er1
  9168. cat conftest.err >&5
  9169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9170. (exit $ac_status); } >/dev/null; then
  9171. if test -s conftest.err; then
  9172. ac_cpp_err=$ac_c_preproc_warn_flag
  9173. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9174. else
  9175. ac_cpp_err=
  9176. fi
  9177. else
  9178. ac_cpp_err=yes
  9179. fi
  9180. if test -z "$ac_cpp_err"; then
  9181. ac_header_preproc=yes
  9182. else
  9183. echo "$as_me: failed program was:" >&5
  9184. sed 's/^/| /' conftest.$ac_ext >&5
  9185. ac_header_preproc=no
  9186. fi
  9187. rm -f conftest.err conftest.$ac_ext
  9188. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9189. echo "${ECHO_T}$ac_header_preproc" >&6
  9190. # So? What about this header?
  9191. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9192. yes:no: )
  9193. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9194. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9195. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9196. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9197. ac_header_preproc=yes
  9198. ;;
  9199. no:yes:* )
  9200. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9201. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9202. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9203. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9204. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9205. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9206. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9207. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9208. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9209. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9210. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9211. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9212. (
  9213. cat <<\_ASBOX
  9214. ## ----------------------------------- ##
  9215. ## Report this to tujikawa@rednoah.com ##
  9216. ## ----------------------------------- ##
  9217. _ASBOX
  9218. ) |
  9219. sed "s/^/$as_me: WARNING: /" >&2
  9220. ;;
  9221. esac
  9222. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9223. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9224. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9225. echo $ECHO_N "(cached) $ECHO_C" >&6
  9226. else
  9227. eval "$as_ac_Header=\$ac_header_preproc"
  9228. fi
  9229. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9230. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9231. fi
  9232. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9233. cat >>confdefs.h <<_ACEOF
  9234. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9235. _ACEOF
  9236. fi
  9237. done
  9238. for ac_func in getpagesize
  9239. do
  9240. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9241. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9242. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9243. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9244. echo $ECHO_N "(cached) $ECHO_C" >&6
  9245. else
  9246. cat >conftest.$ac_ext <<_ACEOF
  9247. /* confdefs.h. */
  9248. _ACEOF
  9249. cat confdefs.h >>conftest.$ac_ext
  9250. cat >>conftest.$ac_ext <<_ACEOF
  9251. /* end confdefs.h. */
  9252. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9253. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9254. #define $ac_func innocuous_$ac_func
  9255. /* System header to define __stub macros and hopefully few prototypes,
  9256. which can conflict with char $ac_func (); below.
  9257. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9258. <limits.h> exists even on freestanding compilers. */
  9259. #ifdef __STDC__
  9260. # include <limits.h>
  9261. #else
  9262. # include <assert.h>
  9263. #endif
  9264. #undef $ac_func
  9265. /* Override any gcc2 internal prototype to avoid an error. */
  9266. #ifdef __cplusplus
  9267. extern "C"
  9268. {
  9269. #endif
  9270. /* We use char because int might match the return type of a gcc2
  9271. builtin and then its argument prototype would still apply. */
  9272. char $ac_func ();
  9273. /* The GNU C library defines this for functions which it implements
  9274. to always fail with ENOSYS. Some functions are actually named
  9275. something starting with __ and the normal name is an alias. */
  9276. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9277. choke me
  9278. #else
  9279. char (*f) () = $ac_func;
  9280. #endif
  9281. #ifdef __cplusplus
  9282. }
  9283. #endif
  9284. int
  9285. main ()
  9286. {
  9287. return f != $ac_func;
  9288. ;
  9289. return 0;
  9290. }
  9291. _ACEOF
  9292. rm -f conftest.$ac_objext conftest$ac_exeext
  9293. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9294. (eval $ac_link) 2>conftest.er1
  9295. ac_status=$?
  9296. grep -v '^ *+' conftest.er1 >conftest.err
  9297. rm -f conftest.er1
  9298. cat conftest.err >&5
  9299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9300. (exit $ac_status); } &&
  9301. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9302. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9303. (eval $ac_try) 2>&5
  9304. ac_status=$?
  9305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9306. (exit $ac_status); }; } &&
  9307. { ac_try='test -s conftest$ac_exeext'
  9308. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9309. (eval $ac_try) 2>&5
  9310. ac_status=$?
  9311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9312. (exit $ac_status); }; }; then
  9313. eval "$as_ac_var=yes"
  9314. else
  9315. echo "$as_me: failed program was:" >&5
  9316. sed 's/^/| /' conftest.$ac_ext >&5
  9317. eval "$as_ac_var=no"
  9318. fi
  9319. rm -f conftest.err conftest.$ac_objext \
  9320. conftest$ac_exeext conftest.$ac_ext
  9321. fi
  9322. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9323. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9324. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9325. cat >>confdefs.h <<_ACEOF
  9326. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9327. _ACEOF
  9328. fi
  9329. done
  9330. echo "$as_me:$LINENO: checking for working mmap" >&5
  9331. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9332. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9333. echo $ECHO_N "(cached) $ECHO_C" >&6
  9334. else
  9335. if test "$cross_compiling" = yes; then
  9336. ac_cv_func_mmap_fixed_mapped=no
  9337. else
  9338. cat >conftest.$ac_ext <<_ACEOF
  9339. /* confdefs.h. */
  9340. _ACEOF
  9341. cat confdefs.h >>conftest.$ac_ext
  9342. cat >>conftest.$ac_ext <<_ACEOF
  9343. /* end confdefs.h. */
  9344. $ac_includes_default
  9345. /* malloc might have been renamed as rpl_malloc. */
  9346. #undef malloc
  9347. /* Thanks to Mike Haertel and Jim Avera for this test.
  9348. Here is a matrix of mmap possibilities:
  9349. mmap private not fixed
  9350. mmap private fixed at somewhere currently unmapped
  9351. mmap private fixed at somewhere already mapped
  9352. mmap shared not fixed
  9353. mmap shared fixed at somewhere currently unmapped
  9354. mmap shared fixed at somewhere already mapped
  9355. For private mappings, we should verify that changes cannot be read()
  9356. back from the file, nor mmap's back from the file at a different
  9357. address. (There have been systems where private was not correctly
  9358. implemented like the infamous i386 svr4.0, and systems where the
  9359. VM page cache was not coherent with the file system buffer cache
  9360. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9361. For shared mappings, we should conversely verify that changes get
  9362. propagated back to all the places they're supposed to be.
  9363. Grep wants private fixed already mapped.
  9364. The main things grep needs to know about mmap are:
  9365. * does it exist and is it safe to write into the mmap'd area
  9366. * how to use it (BSD variants) */
  9367. #include <fcntl.h>
  9368. #include <sys/mman.h>
  9369. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9370. char *malloc ();
  9371. #endif
  9372. /* This mess was copied from the GNU getpagesize.h. */
  9373. #if !HAVE_GETPAGESIZE
  9374. /* Assume that all systems that can run configure have sys/param.h. */
  9375. # if !HAVE_SYS_PARAM_H
  9376. # define HAVE_SYS_PARAM_H 1
  9377. # endif
  9378. # ifdef _SC_PAGESIZE
  9379. # define getpagesize() sysconf(_SC_PAGESIZE)
  9380. # else /* no _SC_PAGESIZE */
  9381. # if HAVE_SYS_PARAM_H
  9382. # include <sys/param.h>
  9383. # ifdef EXEC_PAGESIZE
  9384. # define getpagesize() EXEC_PAGESIZE
  9385. # else /* no EXEC_PAGESIZE */
  9386. # ifdef NBPG
  9387. # define getpagesize() NBPG * CLSIZE
  9388. # ifndef CLSIZE
  9389. # define CLSIZE 1
  9390. # endif /* no CLSIZE */
  9391. # else /* no NBPG */
  9392. # ifdef NBPC
  9393. # define getpagesize() NBPC
  9394. # else /* no NBPC */
  9395. # ifdef PAGESIZE
  9396. # define getpagesize() PAGESIZE
  9397. # endif /* PAGESIZE */
  9398. # endif /* no NBPC */
  9399. # endif /* no NBPG */
  9400. # endif /* no EXEC_PAGESIZE */
  9401. # else /* no HAVE_SYS_PARAM_H */
  9402. # define getpagesize() 8192 /* punt totally */
  9403. # endif /* no HAVE_SYS_PARAM_H */
  9404. # endif /* no _SC_PAGESIZE */
  9405. #endif /* no HAVE_GETPAGESIZE */
  9406. int
  9407. main ()
  9408. {
  9409. char *data, *data2, *data3;
  9410. int i, pagesize;
  9411. int fd;
  9412. pagesize = getpagesize ();
  9413. /* First, make a file with some known garbage in it. */
  9414. data = (char *) malloc (pagesize);
  9415. if (!data)
  9416. exit (1);
  9417. for (i = 0; i < pagesize; ++i)
  9418. *(data + i) = rand ();
  9419. umask (0);
  9420. fd = creat ("conftest.mmap", 0600);
  9421. if (fd < 0)
  9422. exit (1);
  9423. if (write (fd, data, pagesize) != pagesize)
  9424. exit (1);
  9425. close (fd);
  9426. /* Next, try to mmap the file at a fixed address which already has
  9427. something else allocated at it. If we can, also make sure that
  9428. we see the same garbage. */
  9429. fd = open ("conftest.mmap", O_RDWR);
  9430. if (fd < 0)
  9431. exit (1);
  9432. data2 = (char *) malloc (2 * pagesize);
  9433. if (!data2)
  9434. exit (1);
  9435. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9436. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9437. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9438. exit (1);
  9439. for (i = 0; i < pagesize; ++i)
  9440. if (*(data + i) != *(data2 + i))
  9441. exit (1);
  9442. /* Finally, make sure that changes to the mapped area do not
  9443. percolate back to the file as seen by read(). (This is a bug on
  9444. some variants of i386 svr4.0.) */
  9445. for (i = 0; i < pagesize; ++i)
  9446. *(data2 + i) = *(data2 + i) + 1;
  9447. data3 = (char *) malloc (pagesize);
  9448. if (!data3)
  9449. exit (1);
  9450. if (read (fd, data3, pagesize) != pagesize)
  9451. exit (1);
  9452. for (i = 0; i < pagesize; ++i)
  9453. if (*(data + i) != *(data3 + i))
  9454. exit (1);
  9455. close (fd);
  9456. exit (0);
  9457. }
  9458. _ACEOF
  9459. rm -f conftest$ac_exeext
  9460. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9461. (eval $ac_link) 2>&5
  9462. ac_status=$?
  9463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9464. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9465. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9466. (eval $ac_try) 2>&5
  9467. ac_status=$?
  9468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9469. (exit $ac_status); }; }; then
  9470. ac_cv_func_mmap_fixed_mapped=yes
  9471. else
  9472. echo "$as_me: program exited with status $ac_status" >&5
  9473. echo "$as_me: failed program was:" >&5
  9474. sed 's/^/| /' conftest.$ac_ext >&5
  9475. ( exit $ac_status )
  9476. ac_cv_func_mmap_fixed_mapped=no
  9477. fi
  9478. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9479. fi
  9480. fi
  9481. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9482. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9483. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9484. cat >>confdefs.h <<\_ACEOF
  9485. #define HAVE_MMAP 1
  9486. _ACEOF
  9487. fi
  9488. rm -f conftest.mmap
  9489. for ac_header in stdlib.h
  9490. do
  9491. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9492. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9493. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9494. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9495. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9496. echo $ECHO_N "(cached) $ECHO_C" >&6
  9497. fi
  9498. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9499. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9500. else
  9501. # Is the header compilable?
  9502. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9503. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9504. cat >conftest.$ac_ext <<_ACEOF
  9505. /* confdefs.h. */
  9506. _ACEOF
  9507. cat confdefs.h >>conftest.$ac_ext
  9508. cat >>conftest.$ac_ext <<_ACEOF
  9509. /* end confdefs.h. */
  9510. $ac_includes_default
  9511. #include <$ac_header>
  9512. _ACEOF
  9513. rm -f conftest.$ac_objext
  9514. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9515. (eval $ac_compile) 2>conftest.er1
  9516. ac_status=$?
  9517. grep -v '^ *+' conftest.er1 >conftest.err
  9518. rm -f conftest.er1
  9519. cat conftest.err >&5
  9520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9521. (exit $ac_status); } &&
  9522. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9523. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9524. (eval $ac_try) 2>&5
  9525. ac_status=$?
  9526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9527. (exit $ac_status); }; } &&
  9528. { ac_try='test -s conftest.$ac_objext'
  9529. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9530. (eval $ac_try) 2>&5
  9531. ac_status=$?
  9532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9533. (exit $ac_status); }; }; then
  9534. ac_header_compiler=yes
  9535. else
  9536. echo "$as_me: failed program was:" >&5
  9537. sed 's/^/| /' conftest.$ac_ext >&5
  9538. ac_header_compiler=no
  9539. fi
  9540. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9541. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9542. echo "${ECHO_T}$ac_header_compiler" >&6
  9543. # Is the header present?
  9544. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9545. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9546. cat >conftest.$ac_ext <<_ACEOF
  9547. /* confdefs.h. */
  9548. _ACEOF
  9549. cat confdefs.h >>conftest.$ac_ext
  9550. cat >>conftest.$ac_ext <<_ACEOF
  9551. /* end confdefs.h. */
  9552. #include <$ac_header>
  9553. _ACEOF
  9554. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9555. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9556. ac_status=$?
  9557. grep -v '^ *+' conftest.er1 >conftest.err
  9558. rm -f conftest.er1
  9559. cat conftest.err >&5
  9560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9561. (exit $ac_status); } >/dev/null; then
  9562. if test -s conftest.err; then
  9563. ac_cpp_err=$ac_c_preproc_warn_flag
  9564. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9565. else
  9566. ac_cpp_err=
  9567. fi
  9568. else
  9569. ac_cpp_err=yes
  9570. fi
  9571. if test -z "$ac_cpp_err"; then
  9572. ac_header_preproc=yes
  9573. else
  9574. echo "$as_me: failed program was:" >&5
  9575. sed 's/^/| /' conftest.$ac_ext >&5
  9576. ac_header_preproc=no
  9577. fi
  9578. rm -f conftest.err conftest.$ac_ext
  9579. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9580. echo "${ECHO_T}$ac_header_preproc" >&6
  9581. # So? What about this header?
  9582. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9583. yes:no: )
  9584. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9585. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9586. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9587. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9588. ac_header_preproc=yes
  9589. ;;
  9590. no:yes:* )
  9591. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9592. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9593. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9594. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9595. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9596. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9597. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9598. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9599. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9600. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9601. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9602. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9603. (
  9604. cat <<\_ASBOX
  9605. ## ----------------------------------- ##
  9606. ## Report this to tujikawa@rednoah.com ##
  9607. ## ----------------------------------- ##
  9608. _ASBOX
  9609. ) |
  9610. sed "s/^/$as_me: WARNING: /" >&2
  9611. ;;
  9612. esac
  9613. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9614. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9615. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9616. echo $ECHO_N "(cached) $ECHO_C" >&6
  9617. else
  9618. eval "$as_ac_Header=\$ac_header_preproc"
  9619. fi
  9620. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9621. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9622. fi
  9623. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9624. cat >>confdefs.h <<_ACEOF
  9625. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9626. _ACEOF
  9627. fi
  9628. done
  9629. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9630. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9631. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9632. echo $ECHO_N "(cached) $ECHO_C" >&6
  9633. else
  9634. if test "$cross_compiling" = yes; then
  9635. ac_cv_func_realloc_0_nonnull=no
  9636. else
  9637. cat >conftest.$ac_ext <<_ACEOF
  9638. /* confdefs.h. */
  9639. _ACEOF
  9640. cat confdefs.h >>conftest.$ac_ext
  9641. cat >>conftest.$ac_ext <<_ACEOF
  9642. /* end confdefs.h. */
  9643. #if STDC_HEADERS || HAVE_STDLIB_H
  9644. # include <stdlib.h>
  9645. #else
  9646. char *realloc ();
  9647. #endif
  9648. int
  9649. main ()
  9650. {
  9651. exit (realloc (0, 0) ? 0 : 1);
  9652. ;
  9653. return 0;
  9654. }
  9655. _ACEOF
  9656. rm -f conftest$ac_exeext
  9657. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9658. (eval $ac_link) 2>&5
  9659. ac_status=$?
  9660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9661. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9662. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9663. (eval $ac_try) 2>&5
  9664. ac_status=$?
  9665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9666. (exit $ac_status); }; }; then
  9667. ac_cv_func_realloc_0_nonnull=yes
  9668. else
  9669. echo "$as_me: program exited with status $ac_status" >&5
  9670. echo "$as_me: failed program was:" >&5
  9671. sed 's/^/| /' conftest.$ac_ext >&5
  9672. ( exit $ac_status )
  9673. ac_cv_func_realloc_0_nonnull=no
  9674. fi
  9675. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9676. fi
  9677. fi
  9678. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9679. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9680. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9681. cat >>confdefs.h <<\_ACEOF
  9682. #define HAVE_REALLOC 1
  9683. _ACEOF
  9684. else
  9685. cat >>confdefs.h <<\_ACEOF
  9686. #define HAVE_REALLOC 0
  9687. _ACEOF
  9688. case $LIBOBJS in
  9689. "realloc.$ac_objext" | \
  9690. *" realloc.$ac_objext" | \
  9691. "realloc.$ac_objext "* | \
  9692. *" realloc.$ac_objext "* ) ;;
  9693. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9694. esac
  9695. cat >>confdefs.h <<\_ACEOF
  9696. #define realloc rpl_realloc
  9697. _ACEOF
  9698. fi
  9699. for ac_header in sys/select.h sys/socket.h
  9700. do
  9701. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9702. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9703. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9704. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9705. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9706. echo $ECHO_N "(cached) $ECHO_C" >&6
  9707. fi
  9708. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9709. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9710. else
  9711. # Is the header compilable?
  9712. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9713. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9714. cat >conftest.$ac_ext <<_ACEOF
  9715. /* confdefs.h. */
  9716. _ACEOF
  9717. cat confdefs.h >>conftest.$ac_ext
  9718. cat >>conftest.$ac_ext <<_ACEOF
  9719. /* end confdefs.h. */
  9720. $ac_includes_default
  9721. #include <$ac_header>
  9722. _ACEOF
  9723. rm -f conftest.$ac_objext
  9724. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9725. (eval $ac_compile) 2>conftest.er1
  9726. ac_status=$?
  9727. grep -v '^ *+' conftest.er1 >conftest.err
  9728. rm -f conftest.er1
  9729. cat conftest.err >&5
  9730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9731. (exit $ac_status); } &&
  9732. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9733. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9734. (eval $ac_try) 2>&5
  9735. ac_status=$?
  9736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9737. (exit $ac_status); }; } &&
  9738. { ac_try='test -s conftest.$ac_objext'
  9739. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9740. (eval $ac_try) 2>&5
  9741. ac_status=$?
  9742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9743. (exit $ac_status); }; }; then
  9744. ac_header_compiler=yes
  9745. else
  9746. echo "$as_me: failed program was:" >&5
  9747. sed 's/^/| /' conftest.$ac_ext >&5
  9748. ac_header_compiler=no
  9749. fi
  9750. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9751. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9752. echo "${ECHO_T}$ac_header_compiler" >&6
  9753. # Is the header present?
  9754. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9755. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9756. cat >conftest.$ac_ext <<_ACEOF
  9757. /* confdefs.h. */
  9758. _ACEOF
  9759. cat confdefs.h >>conftest.$ac_ext
  9760. cat >>conftest.$ac_ext <<_ACEOF
  9761. /* end confdefs.h. */
  9762. #include <$ac_header>
  9763. _ACEOF
  9764. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9765. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9766. ac_status=$?
  9767. grep -v '^ *+' conftest.er1 >conftest.err
  9768. rm -f conftest.er1
  9769. cat conftest.err >&5
  9770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9771. (exit $ac_status); } >/dev/null; then
  9772. if test -s conftest.err; then
  9773. ac_cpp_err=$ac_c_preproc_warn_flag
  9774. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9775. else
  9776. ac_cpp_err=
  9777. fi
  9778. else
  9779. ac_cpp_err=yes
  9780. fi
  9781. if test -z "$ac_cpp_err"; then
  9782. ac_header_preproc=yes
  9783. else
  9784. echo "$as_me: failed program was:" >&5
  9785. sed 's/^/| /' conftest.$ac_ext >&5
  9786. ac_header_preproc=no
  9787. fi
  9788. rm -f conftest.err conftest.$ac_ext
  9789. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9790. echo "${ECHO_T}$ac_header_preproc" >&6
  9791. # So? What about this header?
  9792. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9793. yes:no: )
  9794. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9795. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9796. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9797. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9798. ac_header_preproc=yes
  9799. ;;
  9800. no:yes:* )
  9801. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9802. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9803. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9804. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9805. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9806. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9807. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9808. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9809. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9810. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9811. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9812. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9813. (
  9814. cat <<\_ASBOX
  9815. ## ----------------------------------- ##
  9816. ## Report this to tujikawa@rednoah.com ##
  9817. ## ----------------------------------- ##
  9818. _ASBOX
  9819. ) |
  9820. sed "s/^/$as_me: WARNING: /" >&2
  9821. ;;
  9822. esac
  9823. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9824. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9825. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9826. echo $ECHO_N "(cached) $ECHO_C" >&6
  9827. else
  9828. eval "$as_ac_Header=\$ac_header_preproc"
  9829. fi
  9830. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9831. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9832. fi
  9833. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9834. cat >>confdefs.h <<_ACEOF
  9835. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9836. _ACEOF
  9837. fi
  9838. done
  9839. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  9840. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  9841. if test "${ac_cv_func_select_args+set}" = set; then
  9842. echo $ECHO_N "(cached) $ECHO_C" >&6
  9843. else
  9844. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  9845. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  9846. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  9847. cat >conftest.$ac_ext <<_ACEOF
  9848. /* confdefs.h. */
  9849. _ACEOF
  9850. cat confdefs.h >>conftest.$ac_ext
  9851. cat >>conftest.$ac_ext <<_ACEOF
  9852. /* end confdefs.h. */
  9853. $ac_includes_default
  9854. #if HAVE_SYS_SELECT_H
  9855. # include <sys/select.h>
  9856. #endif
  9857. #if HAVE_SYS_SOCKET_H
  9858. # include <sys/socket.h>
  9859. #endif
  9860. int
  9861. main ()
  9862. {
  9863. extern int select ($ac_arg1,
  9864. $ac_arg234, $ac_arg234, $ac_arg234,
  9865. $ac_arg5);
  9866. ;
  9867. return 0;
  9868. }
  9869. _ACEOF
  9870. rm -f conftest.$ac_objext
  9871. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9872. (eval $ac_compile) 2>conftest.er1
  9873. ac_status=$?
  9874. grep -v '^ *+' conftest.er1 >conftest.err
  9875. rm -f conftest.er1
  9876. cat conftest.err >&5
  9877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9878. (exit $ac_status); } &&
  9879. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9880. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9881. (eval $ac_try) 2>&5
  9882. ac_status=$?
  9883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9884. (exit $ac_status); }; } &&
  9885. { ac_try='test -s conftest.$ac_objext'
  9886. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9887. (eval $ac_try) 2>&5
  9888. ac_status=$?
  9889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9890. (exit $ac_status); }; }; then
  9891. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  9892. else
  9893. echo "$as_me: failed program was:" >&5
  9894. sed 's/^/| /' conftest.$ac_ext >&5
  9895. fi
  9896. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9897. done
  9898. done
  9899. done
  9900. # Provide a safe default value.
  9901. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  9902. fi
  9903. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  9904. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  9905. ac_save_IFS=$IFS; IFS=','
  9906. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  9907. IFS=$ac_save_IFS
  9908. shift
  9909. cat >>confdefs.h <<_ACEOF
  9910. #define SELECT_TYPE_ARG1 $1
  9911. _ACEOF
  9912. cat >>confdefs.h <<_ACEOF
  9913. #define SELECT_TYPE_ARG234 ($2)
  9914. _ACEOF
  9915. cat >>confdefs.h <<_ACEOF
  9916. #define SELECT_TYPE_ARG5 ($3)
  9917. _ACEOF
  9918. rm -f conftest*
  9919. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9920. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  9921. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9922. echo $ECHO_N "(cached) $ECHO_C" >&6
  9923. else
  9924. rm -f conftest.sym conftest.file
  9925. echo >conftest.file
  9926. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9927. if test "$cross_compiling" = yes; then
  9928. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9929. else
  9930. cat >conftest.$ac_ext <<_ACEOF
  9931. /* confdefs.h. */
  9932. _ACEOF
  9933. cat confdefs.h >>conftest.$ac_ext
  9934. cat >>conftest.$ac_ext <<_ACEOF
  9935. /* end confdefs.h. */
  9936. $ac_includes_default
  9937. int
  9938. main ()
  9939. {
  9940. struct stat sbuf;
  9941. /* Linux will dereference the symlink and fail.
  9942. That is better in the sense that it means we will not
  9943. have to compile and use the lstat wrapper. */
  9944. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  9945. ;
  9946. return 0;
  9947. }
  9948. _ACEOF
  9949. rm -f conftest$ac_exeext
  9950. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9951. (eval $ac_link) 2>&5
  9952. ac_status=$?
  9953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9954. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9956. (eval $ac_try) 2>&5
  9957. ac_status=$?
  9958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9959. (exit $ac_status); }; }; then
  9960. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9961. else
  9962. echo "$as_me: program exited with status $ac_status" >&5
  9963. echo "$as_me: failed program was:" >&5
  9964. sed 's/^/| /' conftest.$ac_ext >&5
  9965. ( exit $ac_status )
  9966. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9967. fi
  9968. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9969. fi
  9970. else
  9971. # If the `ln -s' command failed, then we probably don't even
  9972. # have an lstat function.
  9973. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9974. fi
  9975. rm -f conftest.sym conftest.file
  9976. fi
  9977. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9978. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  9979. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9980. cat >>confdefs.h <<_ACEOF
  9981. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9982. _ACEOF
  9983. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9984. case $LIBOBJS in
  9985. "lstat.$ac_objext" | \
  9986. *" lstat.$ac_objext" | \
  9987. "lstat.$ac_objext "* | \
  9988. *" lstat.$ac_objext "* ) ;;
  9989. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  9990. esac
  9991. fi
  9992. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9993. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9994. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9995. echo $ECHO_N "(cached) $ECHO_C" >&6
  9996. else
  9997. if test "$cross_compiling" = yes; then
  9998. ac_cv_func_stat_empty_string_bug=yes
  9999. else
  10000. cat >conftest.$ac_ext <<_ACEOF
  10001. /* confdefs.h. */
  10002. _ACEOF
  10003. cat confdefs.h >>conftest.$ac_ext
  10004. cat >>conftest.$ac_ext <<_ACEOF
  10005. /* end confdefs.h. */
  10006. $ac_includes_default
  10007. int
  10008. main ()
  10009. {
  10010. struct stat sbuf;
  10011. exit (stat ("", &sbuf) ? 1 : 0);
  10012. ;
  10013. return 0;
  10014. }
  10015. _ACEOF
  10016. rm -f conftest$ac_exeext
  10017. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10018. (eval $ac_link) 2>&5
  10019. ac_status=$?
  10020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10021. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10022. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10023. (eval $ac_try) 2>&5
  10024. ac_status=$?
  10025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10026. (exit $ac_status); }; }; then
  10027. ac_cv_func_stat_empty_string_bug=yes
  10028. else
  10029. echo "$as_me: program exited with status $ac_status" >&5
  10030. echo "$as_me: failed program was:" >&5
  10031. sed 's/^/| /' conftest.$ac_ext >&5
  10032. ( exit $ac_status )
  10033. ac_cv_func_stat_empty_string_bug=no
  10034. fi
  10035. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10036. fi
  10037. fi
  10038. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10039. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  10040. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10041. case $LIBOBJS in
  10042. "stat.$ac_objext" | \
  10043. *" stat.$ac_objext" | \
  10044. "stat.$ac_objext "* | \
  10045. *" stat.$ac_objext "* ) ;;
  10046. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  10047. esac
  10048. cat >>confdefs.h <<_ACEOF
  10049. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10050. _ACEOF
  10051. fi
  10052. for ac_func in vprintf
  10053. do
  10054. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10055. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10056. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10057. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10058. echo $ECHO_N "(cached) $ECHO_C" >&6
  10059. else
  10060. cat >conftest.$ac_ext <<_ACEOF
  10061. /* confdefs.h. */
  10062. _ACEOF
  10063. cat confdefs.h >>conftest.$ac_ext
  10064. cat >>conftest.$ac_ext <<_ACEOF
  10065. /* end confdefs.h. */
  10066. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10067. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10068. #define $ac_func innocuous_$ac_func
  10069. /* System header to define __stub macros and hopefully few prototypes,
  10070. which can conflict with char $ac_func (); below.
  10071. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10072. <limits.h> exists even on freestanding compilers. */
  10073. #ifdef __STDC__
  10074. # include <limits.h>
  10075. #else
  10076. # include <assert.h>
  10077. #endif
  10078. #undef $ac_func
  10079. /* Override any gcc2 internal prototype to avoid an error. */
  10080. #ifdef __cplusplus
  10081. extern "C"
  10082. {
  10083. #endif
  10084. /* We use char because int might match the return type of a gcc2
  10085. builtin and then its argument prototype would still apply. */
  10086. char $ac_func ();
  10087. /* The GNU C library defines this for functions which it implements
  10088. to always fail with ENOSYS. Some functions are actually named
  10089. something starting with __ and the normal name is an alias. */
  10090. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10091. choke me
  10092. #else
  10093. char (*f) () = $ac_func;
  10094. #endif
  10095. #ifdef __cplusplus
  10096. }
  10097. #endif
  10098. int
  10099. main ()
  10100. {
  10101. return f != $ac_func;
  10102. ;
  10103. return 0;
  10104. }
  10105. _ACEOF
  10106. rm -f conftest.$ac_objext conftest$ac_exeext
  10107. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10108. (eval $ac_link) 2>conftest.er1
  10109. ac_status=$?
  10110. grep -v '^ *+' conftest.er1 >conftest.err
  10111. rm -f conftest.er1
  10112. cat conftest.err >&5
  10113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10114. (exit $ac_status); } &&
  10115. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10117. (eval $ac_try) 2>&5
  10118. ac_status=$?
  10119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10120. (exit $ac_status); }; } &&
  10121. { ac_try='test -s conftest$ac_exeext'
  10122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10123. (eval $ac_try) 2>&5
  10124. ac_status=$?
  10125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10126. (exit $ac_status); }; }; then
  10127. eval "$as_ac_var=yes"
  10128. else
  10129. echo "$as_me: failed program was:" >&5
  10130. sed 's/^/| /' conftest.$ac_ext >&5
  10131. eval "$as_ac_var=no"
  10132. fi
  10133. rm -f conftest.err conftest.$ac_objext \
  10134. conftest$ac_exeext conftest.$ac_ext
  10135. fi
  10136. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10137. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10138. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10139. cat >>confdefs.h <<_ACEOF
  10140. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10141. _ACEOF
  10142. echo "$as_me:$LINENO: checking for _doprnt" >&5
  10143. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  10144. if test "${ac_cv_func__doprnt+set}" = set; then
  10145. echo $ECHO_N "(cached) $ECHO_C" >&6
  10146. else
  10147. cat >conftest.$ac_ext <<_ACEOF
  10148. /* confdefs.h. */
  10149. _ACEOF
  10150. cat confdefs.h >>conftest.$ac_ext
  10151. cat >>conftest.$ac_ext <<_ACEOF
  10152. /* end confdefs.h. */
  10153. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  10154. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10155. #define _doprnt innocuous__doprnt
  10156. /* System header to define __stub macros and hopefully few prototypes,
  10157. which can conflict with char _doprnt (); below.
  10158. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10159. <limits.h> exists even on freestanding compilers. */
  10160. #ifdef __STDC__
  10161. # include <limits.h>
  10162. #else
  10163. # include <assert.h>
  10164. #endif
  10165. #undef _doprnt
  10166. /* Override any gcc2 internal prototype to avoid an error. */
  10167. #ifdef __cplusplus
  10168. extern "C"
  10169. {
  10170. #endif
  10171. /* We use char because int might match the return type of a gcc2
  10172. builtin and then its argument prototype would still apply. */
  10173. char _doprnt ();
  10174. /* The GNU C library defines this for functions which it implements
  10175. to always fail with ENOSYS. Some functions are actually named
  10176. something starting with __ and the normal name is an alias. */
  10177. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  10178. choke me
  10179. #else
  10180. char (*f) () = _doprnt;
  10181. #endif
  10182. #ifdef __cplusplus
  10183. }
  10184. #endif
  10185. int
  10186. main ()
  10187. {
  10188. return f != _doprnt;
  10189. ;
  10190. return 0;
  10191. }
  10192. _ACEOF
  10193. rm -f conftest.$ac_objext conftest$ac_exeext
  10194. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10195. (eval $ac_link) 2>conftest.er1
  10196. ac_status=$?
  10197. grep -v '^ *+' conftest.er1 >conftest.err
  10198. rm -f conftest.er1
  10199. cat conftest.err >&5
  10200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10201. (exit $ac_status); } &&
  10202. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10203. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10204. (eval $ac_try) 2>&5
  10205. ac_status=$?
  10206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10207. (exit $ac_status); }; } &&
  10208. { ac_try='test -s conftest$ac_exeext'
  10209. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10210. (eval $ac_try) 2>&5
  10211. ac_status=$?
  10212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10213. (exit $ac_status); }; }; then
  10214. ac_cv_func__doprnt=yes
  10215. else
  10216. echo "$as_me: failed program was:" >&5
  10217. sed 's/^/| /' conftest.$ac_ext >&5
  10218. ac_cv_func__doprnt=no
  10219. fi
  10220. rm -f conftest.err conftest.$ac_objext \
  10221. conftest$ac_exeext conftest.$ac_ext
  10222. fi
  10223. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  10224. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  10225. if test $ac_cv_func__doprnt = yes; then
  10226. cat >>confdefs.h <<\_ACEOF
  10227. #define HAVE_DOPRNT 1
  10228. _ACEOF
  10229. fi
  10230. fi
  10231. done
  10232. 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
  10233. do
  10234. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10235. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10236. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10237. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10238. echo $ECHO_N "(cached) $ECHO_C" >&6
  10239. else
  10240. cat >conftest.$ac_ext <<_ACEOF
  10241. /* confdefs.h. */
  10242. _ACEOF
  10243. cat confdefs.h >>conftest.$ac_ext
  10244. cat >>conftest.$ac_ext <<_ACEOF
  10245. /* end confdefs.h. */
  10246. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10247. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10248. #define $ac_func innocuous_$ac_func
  10249. /* System header to define __stub macros and hopefully few prototypes,
  10250. which can conflict with char $ac_func (); below.
  10251. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10252. <limits.h> exists even on freestanding compilers. */
  10253. #ifdef __STDC__
  10254. # include <limits.h>
  10255. #else
  10256. # include <assert.h>
  10257. #endif
  10258. #undef $ac_func
  10259. /* Override any gcc2 internal prototype to avoid an error. */
  10260. #ifdef __cplusplus
  10261. extern "C"
  10262. {
  10263. #endif
  10264. /* We use char because int might match the return type of a gcc2
  10265. builtin and then its argument prototype would still apply. */
  10266. char $ac_func ();
  10267. /* The GNU C library defines this for functions which it implements
  10268. to always fail with ENOSYS. Some functions are actually named
  10269. something starting with __ and the normal name is an alias. */
  10270. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10271. choke me
  10272. #else
  10273. char (*f) () = $ac_func;
  10274. #endif
  10275. #ifdef __cplusplus
  10276. }
  10277. #endif
  10278. int
  10279. main ()
  10280. {
  10281. return f != $ac_func;
  10282. ;
  10283. return 0;
  10284. }
  10285. _ACEOF
  10286. rm -f conftest.$ac_objext conftest$ac_exeext
  10287. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10288. (eval $ac_link) 2>conftest.er1
  10289. ac_status=$?
  10290. grep -v '^ *+' conftest.er1 >conftest.err
  10291. rm -f conftest.er1
  10292. cat conftest.err >&5
  10293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10294. (exit $ac_status); } &&
  10295. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10296. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10297. (eval $ac_try) 2>&5
  10298. ac_status=$?
  10299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10300. (exit $ac_status); }; } &&
  10301. { ac_try='test -s conftest$ac_exeext'
  10302. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10303. (eval $ac_try) 2>&5
  10304. ac_status=$?
  10305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10306. (exit $ac_status); }; }; then
  10307. eval "$as_ac_var=yes"
  10308. else
  10309. echo "$as_me: failed program was:" >&5
  10310. sed 's/^/| /' conftest.$ac_ext >&5
  10311. eval "$as_ac_var=no"
  10312. fi
  10313. rm -f conftest.err conftest.$ac_objext \
  10314. conftest$ac_exeext conftest.$ac_ext
  10315. fi
  10316. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10317. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10318. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10319. cat >>confdefs.h <<_ACEOF
  10320. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10321. _ACEOF
  10322. fi
  10323. done
  10324. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile"
  10325. cat >confcache <<\_ACEOF
  10326. # This file is a shell script that caches the results of configure
  10327. # tests run on this system so they can be shared between configure
  10328. # scripts and configure runs, see configure's option --config-cache.
  10329. # It is not useful on other systems. If it contains results you don't
  10330. # want to keep, you may remove or edit it.
  10331. #
  10332. # config.status only pays attention to the cache file if you give it
  10333. # the --recheck option to rerun configure.
  10334. #
  10335. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10336. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10337. # following values.
  10338. _ACEOF
  10339. # The following way of writing the cache mishandles newlines in values,
  10340. # but we know of no workaround that is simple, portable, and efficient.
  10341. # So, don't put newlines in cache variables' values.
  10342. # Ultrix sh set writes to stderr and can't be redirected directly,
  10343. # and sets the high bit in the cache file unless we assign to the vars.
  10344. {
  10345. (set) 2>&1 |
  10346. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10347. *ac_space=\ *)
  10348. # `set' does not quote correctly, so add quotes (double-quote
  10349. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10350. sed -n \
  10351. "s/'/'\\\\''/g;
  10352. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10353. ;;
  10354. *)
  10355. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10356. sed -n \
  10357. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10358. ;;
  10359. esac;
  10360. } |
  10361. sed '
  10362. t clear
  10363. : clear
  10364. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10365. t end
  10366. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10367. : end' >>confcache
  10368. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10369. if test -w $cache_file; then
  10370. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  10371. cat confcache >$cache_file
  10372. else
  10373. echo "not updating unwritable cache $cache_file"
  10374. fi
  10375. fi
  10376. rm -f confcache
  10377. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10378. # Let make expand exec_prefix.
  10379. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10380. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10381. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10382. # trailing colons and then remove the whole line if VPATH becomes empty
  10383. # (actually we leave an empty line to preserve line numbers).
  10384. if test "x$srcdir" = x.; then
  10385. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10386. s/:*\$(srcdir):*/:/;
  10387. s/:*\${srcdir}:*/:/;
  10388. s/:*@srcdir@:*/:/;
  10389. s/^\([^=]*=[ ]*\):*/\1/;
  10390. s/:*$//;
  10391. s/^[^=]*=[ ]*$//;
  10392. }'
  10393. fi
  10394. DEFS=-DHAVE_CONFIG_H
  10395. ac_libobjs=
  10396. ac_ltlibobjs=
  10397. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10398. # 1. Remove the extension, and $U if already installed.
  10399. ac_i=`echo "$ac_i" |
  10400. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10401. # 2. Add them.
  10402. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10403. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10404. done
  10405. LIBOBJS=$ac_libobjs
  10406. LTLIBOBJS=$ac_ltlibobjs
  10407. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10408. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  10409. Usually this means the macro was only invoked conditionally." >&5
  10410. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  10411. Usually this means the macro was only invoked conditionally." >&2;}
  10412. { (exit 1); exit 1; }; }
  10413. fi
  10414. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  10415. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  10416. Usually this means the macro was only invoked conditionally." >&5
  10417. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  10418. Usually this means the macro was only invoked conditionally." >&2;}
  10419. { (exit 1); exit 1; }; }
  10420. fi
  10421. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10422. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  10423. Usually this means the macro was only invoked conditionally." >&5
  10424. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  10425. Usually this means the macro was only invoked conditionally." >&2;}
  10426. { (exit 1); exit 1; }; }
  10427. fi
  10428. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  10429. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  10430. Usually this means the macro was only invoked conditionally." >&5
  10431. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  10432. Usually this means the macro was only invoked conditionally." >&2;}
  10433. { (exit 1); exit 1; }; }
  10434. fi
  10435. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  10436. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  10437. Usually this means the macro was only invoked conditionally." >&5
  10438. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  10439. Usually this means the macro was only invoked conditionally." >&2;}
  10440. { (exit 1); exit 1; }; }
  10441. fi
  10442. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  10443. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  10444. Usually this means the macro was only invoked conditionally." >&5
  10445. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  10446. Usually this means the macro was only invoked conditionally." >&2;}
  10447. { (exit 1); exit 1; }; }
  10448. fi
  10449. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  10450. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  10451. Usually this means the macro was only invoked conditionally." >&5
  10452. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  10453. Usually this means the macro was only invoked conditionally." >&2;}
  10454. { (exit 1); exit 1; }; }
  10455. fi
  10456. : ${CONFIG_STATUS=./config.status}
  10457. ac_clean_files_save=$ac_clean_files
  10458. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10459. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10460. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10461. cat >$CONFIG_STATUS <<_ACEOF
  10462. #! $SHELL
  10463. # Generated by $as_me.
  10464. # Run this file to recreate the current configuration.
  10465. # Compiler output produced by configure, useful for debugging
  10466. # configure, is in config.log if it exists.
  10467. debug=false
  10468. ac_cs_recheck=false
  10469. ac_cs_silent=false
  10470. SHELL=\${CONFIG_SHELL-$SHELL}
  10471. _ACEOF
  10472. cat >>$CONFIG_STATUS <<\_ACEOF
  10473. ## --------------------- ##
  10474. ## M4sh Initialization. ##
  10475. ## --------------------- ##
  10476. # Be Bourne compatible
  10477. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10478. emulate sh
  10479. NULLCMD=:
  10480. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10481. # is contrary to our usage. Disable this feature.
  10482. alias -g '${1+"$@"}'='"$@"'
  10483. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10484. set -o posix
  10485. fi
  10486. DUALCASE=1; export DUALCASE # for MKS sh
  10487. # Support unset when possible.
  10488. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10489. as_unset=unset
  10490. else
  10491. as_unset=false
  10492. fi
  10493. # Work around bugs in pre-3.0 UWIN ksh.
  10494. $as_unset ENV MAIL MAILPATH
  10495. PS1='$ '
  10496. PS2='> '
  10497. PS4='+ '
  10498. # NLS nuisances.
  10499. for as_var in \
  10500. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10501. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10502. LC_TELEPHONE LC_TIME
  10503. do
  10504. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10505. eval $as_var=C; export $as_var
  10506. else
  10507. $as_unset $as_var
  10508. fi
  10509. done
  10510. # Required to use basename.
  10511. if expr a : '\(a\)' >/dev/null 2>&1; then
  10512. as_expr=expr
  10513. else
  10514. as_expr=false
  10515. fi
  10516. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  10517. as_basename=basename
  10518. else
  10519. as_basename=false
  10520. fi
  10521. # Name of the executable.
  10522. as_me=`$as_basename "$0" ||
  10523. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10524. X"$0" : 'X\(//\)$' \| \
  10525. X"$0" : 'X\(/\)$' \| \
  10526. . : '\(.\)' 2>/dev/null ||
  10527. echo X/"$0" |
  10528. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  10529. /^X\/\(\/\/\)$/{ s//\1/; q; }
  10530. /^X\/\(\/\).*/{ s//\1/; q; }
  10531. s/.*/./; q'`
  10532. # PATH needs CR, and LINENO needs CR and PATH.
  10533. # Avoid depending upon Character Ranges.
  10534. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10535. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10536. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10537. as_cr_digits='0123456789'
  10538. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10539. # The user is always right.
  10540. if test "${PATH_SEPARATOR+set}" != set; then
  10541. echo "#! /bin/sh" >conf$$.sh
  10542. echo "exit 0" >>conf$$.sh
  10543. chmod +x conf$$.sh
  10544. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10545. PATH_SEPARATOR=';'
  10546. else
  10547. PATH_SEPARATOR=:
  10548. fi
  10549. rm -f conf$$.sh
  10550. fi
  10551. as_lineno_1=$LINENO
  10552. as_lineno_2=$LINENO
  10553. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10554. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10555. test "x$as_lineno_3" = "x$as_lineno_2" || {
  10556. # Find who we are. Look in the path if we contain no path at all
  10557. # relative or not.
  10558. case $0 in
  10559. *[\\/]* ) as_myself=$0 ;;
  10560. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10561. for as_dir in $PATH
  10562. do
  10563. IFS=$as_save_IFS
  10564. test -z "$as_dir" && as_dir=.
  10565. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10566. done
  10567. ;;
  10568. esac
  10569. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10570. # in which case we are not to be found in the path.
  10571. if test "x$as_myself" = x; then
  10572. as_myself=$0
  10573. fi
  10574. if test ! -f "$as_myself"; then
  10575. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  10576. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  10577. { (exit 1); exit 1; }; }
  10578. fi
  10579. case $CONFIG_SHELL in
  10580. '')
  10581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10582. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  10583. do
  10584. IFS=$as_save_IFS
  10585. test -z "$as_dir" && as_dir=.
  10586. for as_base in sh bash ksh sh5; do
  10587. case $as_dir in
  10588. /*)
  10589. if ("$as_dir/$as_base" -c '
  10590. as_lineno_1=$LINENO
  10591. as_lineno_2=$LINENO
  10592. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10593. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10594. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  10595. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  10596. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  10597. CONFIG_SHELL=$as_dir/$as_base
  10598. export CONFIG_SHELL
  10599. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  10600. fi;;
  10601. esac
  10602. done
  10603. done
  10604. ;;
  10605. esac
  10606. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10607. # uniformly replaced by the line number. The first 'sed' inserts a
  10608. # line-number line before each line; the second 'sed' does the real
  10609. # work. The second script uses 'N' to pair each line-number line
  10610. # with the numbered line, and appends trailing '-' during
  10611. # substitution so that $LINENO is not a special case at line end.
  10612. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10613. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  10614. sed '=' <$as_myself |
  10615. sed '
  10616. N
  10617. s,$,-,
  10618. : loop
  10619. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  10620. t loop
  10621. s,-$,,
  10622. s,^['$as_cr_digits']*\n,,
  10623. ' >$as_me.lineno &&
  10624. chmod +x $as_me.lineno ||
  10625. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  10626. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  10627. { (exit 1); exit 1; }; }
  10628. # Don't try to exec as it changes $[0], causing all sort of problems
  10629. # (the dirname of $[0] is not the place where we might find the
  10630. # original and so on. Autoconf is especially sensible to this).
  10631. . ./$as_me.lineno
  10632. # Exit status is that of the last command.
  10633. exit
  10634. }
  10635. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  10636. *c*,-n*) ECHO_N= ECHO_C='
  10637. ' ECHO_T=' ' ;;
  10638. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  10639. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  10640. esac
  10641. if expr a : '\(a\)' >/dev/null 2>&1; then
  10642. as_expr=expr
  10643. else
  10644. as_expr=false
  10645. fi
  10646. rm -f conf$$ conf$$.exe conf$$.file
  10647. echo >conf$$.file
  10648. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10649. # We could just check for DJGPP; but this test a) works b) is more generic
  10650. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  10651. if test -f conf$$.exe; then
  10652. # Don't use ln at all; we don't have any links
  10653. as_ln_s='cp -p'
  10654. else
  10655. as_ln_s='ln -s'
  10656. fi
  10657. elif ln conf$$.file conf$$ 2>/dev/null; then
  10658. as_ln_s=ln
  10659. else
  10660. as_ln_s='cp -p'
  10661. fi
  10662. rm -f conf$$ conf$$.exe conf$$.file
  10663. if mkdir -p . 2>/dev/null; then
  10664. as_mkdir_p=:
  10665. else
  10666. test -d ./-p && rmdir ./-p
  10667. as_mkdir_p=false
  10668. fi
  10669. as_executable_p="test -f"
  10670. # Sed expression to map a string onto a valid CPP name.
  10671. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10672. # Sed expression to map a string onto a valid variable name.
  10673. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10674. # IFS
  10675. # We need space, tab and new line, in precisely that order.
  10676. as_nl='
  10677. '
  10678. IFS=" $as_nl"
  10679. # CDPATH.
  10680. $as_unset CDPATH
  10681. exec 6>&1
  10682. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  10683. # report actual input values of CONFIG_FILES etc. instead of their
  10684. # values after options handling. Logging --version etc. is OK.
  10685. exec 5>>config.log
  10686. {
  10687. echo
  10688. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10689. ## Running $as_me. ##
  10690. _ASBOX
  10691. } >&5
  10692. cat >&5 <<_CSEOF
  10693. This file was extended by aria2c $as_me 0.6.0, which was
  10694. generated by GNU Autoconf 2.59. Invocation command line was
  10695. CONFIG_FILES = $CONFIG_FILES
  10696. CONFIG_HEADERS = $CONFIG_HEADERS
  10697. CONFIG_LINKS = $CONFIG_LINKS
  10698. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10699. $ $0 $@
  10700. _CSEOF
  10701. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  10702. echo >&5
  10703. _ACEOF
  10704. # Files that config.status was made for.
  10705. if test -n "$ac_config_files"; then
  10706. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  10707. fi
  10708. if test -n "$ac_config_headers"; then
  10709. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  10710. fi
  10711. if test -n "$ac_config_links"; then
  10712. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  10713. fi
  10714. if test -n "$ac_config_commands"; then
  10715. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  10716. fi
  10717. cat >>$CONFIG_STATUS <<\_ACEOF
  10718. ac_cs_usage="\
  10719. \`$as_me' instantiates files from templates according to the
  10720. current configuration.
  10721. Usage: $0 [OPTIONS] [FILE]...
  10722. -h, --help print this help, then exit
  10723. -V, --version print version number, then exit
  10724. -q, --quiet do not print progress messages
  10725. -d, --debug don't remove temporary files
  10726. --recheck update $as_me by reconfiguring in the same conditions
  10727. --file=FILE[:TEMPLATE]
  10728. instantiate the configuration file FILE
  10729. --header=FILE[:TEMPLATE]
  10730. instantiate the configuration header FILE
  10731. Configuration files:
  10732. $config_files
  10733. Configuration headers:
  10734. $config_headers
  10735. Configuration commands:
  10736. $config_commands
  10737. Report bugs to <bug-autoconf@gnu.org>."
  10738. _ACEOF
  10739. cat >>$CONFIG_STATUS <<_ACEOF
  10740. ac_cs_version="\\
  10741. aria2c config.status 0.6.0
  10742. configured by $0, generated by GNU Autoconf 2.59,
  10743. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  10744. Copyright (C) 2003 Free Software Foundation, Inc.
  10745. This config.status script is free software; the Free Software Foundation
  10746. gives unlimited permission to copy, distribute and modify it."
  10747. srcdir=$srcdir
  10748. INSTALL="$INSTALL"
  10749. _ACEOF
  10750. cat >>$CONFIG_STATUS <<\_ACEOF
  10751. # If no file are specified by the user, then we need to provide default
  10752. # value. By we need to know if files were specified by the user.
  10753. ac_need_defaults=:
  10754. while test $# != 0
  10755. do
  10756. case $1 in
  10757. --*=*)
  10758. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  10759. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  10760. ac_shift=:
  10761. ;;
  10762. -*)
  10763. ac_option=$1
  10764. ac_optarg=$2
  10765. ac_shift=shift
  10766. ;;
  10767. *) # This is not an option, so the user has probably given explicit
  10768. # arguments.
  10769. ac_option=$1
  10770. ac_need_defaults=false;;
  10771. esac
  10772. case $ac_option in
  10773. # Handling of the options.
  10774. _ACEOF
  10775. cat >>$CONFIG_STATUS <<\_ACEOF
  10776. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10777. ac_cs_recheck=: ;;
  10778. --version | --vers* | -V )
  10779. echo "$ac_cs_version"; exit 0 ;;
  10780. --he | --h)
  10781. # Conflict between --help and --header
  10782. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  10783. Try \`$0 --help' for more information." >&5
  10784. echo "$as_me: error: ambiguous option: $1
  10785. Try \`$0 --help' for more information." >&2;}
  10786. { (exit 1); exit 1; }; };;
  10787. --help | --hel | -h )
  10788. echo "$ac_cs_usage"; exit 0 ;;
  10789. --debug | --d* | -d )
  10790. debug=: ;;
  10791. --file | --fil | --fi | --f )
  10792. $ac_shift
  10793. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  10794. ac_need_defaults=false;;
  10795. --header | --heade | --head | --hea )
  10796. $ac_shift
  10797. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  10798. ac_need_defaults=false;;
  10799. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10800. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10801. ac_cs_silent=: ;;
  10802. # This is an error.
  10803. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  10804. Try \`$0 --help' for more information." >&5
  10805. echo "$as_me: error: unrecognized option: $1
  10806. Try \`$0 --help' for more information." >&2;}
  10807. { (exit 1); exit 1; }; } ;;
  10808. *) ac_config_targets="$ac_config_targets $1" ;;
  10809. esac
  10810. shift
  10811. done
  10812. ac_configure_extra_args=
  10813. if $ac_cs_silent; then
  10814. exec 6>/dev/null
  10815. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10816. fi
  10817. _ACEOF
  10818. cat >>$CONFIG_STATUS <<_ACEOF
  10819. if \$ac_cs_recheck; then
  10820. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  10821. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10822. fi
  10823. _ACEOF
  10824. cat >>$CONFIG_STATUS <<_ACEOF
  10825. #
  10826. # INIT-COMMANDS section.
  10827. #
  10828. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10829. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  10830. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  10831. # from automake.
  10832. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  10833. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  10834. LINGUAS="${LINGUAS-%UNSET%}"
  10835. _ACEOF
  10836. cat >>$CONFIG_STATUS <<\_ACEOF
  10837. for ac_config_target in $ac_config_targets
  10838. do
  10839. case "$ac_config_target" in
  10840. # Handling of arguments.
  10841. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10842. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10843. "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  10844. "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  10845. "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  10846. "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  10847. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10848. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  10849. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10850. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10851. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10852. { (exit 1); exit 1; }; };;
  10853. esac
  10854. done
  10855. # If the user did not use the arguments to specify the items to instantiate,
  10856. # then the envvar interface is used. Set only those that are not.
  10857. # We use the long form for the default assignment because of an extremely
  10858. # bizarre bug on SunOS 4.1.3.
  10859. if $ac_need_defaults; then
  10860. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10861. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10862. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10863. fi
  10864. # Have a temporary directory for convenience. Make it in the build tree
  10865. # simply because there is no reason to put it here, and in addition,
  10866. # creating and moving files from /tmp can sometimes cause problems.
  10867. # Create a temporary directory, and hook for its removal unless debugging.
  10868. $debug ||
  10869. {
  10870. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  10871. trap '{ (exit 1); exit 1; }' 1 2 13 15
  10872. }
  10873. # Create a (secure) tmp directory for tmp files.
  10874. {
  10875. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  10876. test -n "$tmp" && test -d "$tmp"
  10877. } ||
  10878. {
  10879. tmp=./confstat$$-$RANDOM
  10880. (umask 077 && mkdir $tmp)
  10881. } ||
  10882. {
  10883. echo "$me: cannot create a temporary directory in ." >&2
  10884. { (exit 1); exit 1; }
  10885. }
  10886. _ACEOF
  10887. cat >>$CONFIG_STATUS <<_ACEOF
  10888. #
  10889. # CONFIG_FILES section.
  10890. #
  10891. # No need to generate the scripts if there are no CONFIG_FILES.
  10892. # This happens for instance when ./config.status config.h
  10893. if test -n "\$CONFIG_FILES"; then
  10894. # Protect against being on the right side of a sed subst in config.status.
  10895. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  10896. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  10897. s,@SHELL@,$SHELL,;t t
  10898. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  10899. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  10900. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  10901. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  10902. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  10903. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  10904. s,@exec_prefix@,$exec_prefix,;t t
  10905. s,@prefix@,$prefix,;t t
  10906. s,@program_transform_name@,$program_transform_name,;t t
  10907. s,@bindir@,$bindir,;t t
  10908. s,@sbindir@,$sbindir,;t t
  10909. s,@libexecdir@,$libexecdir,;t t
  10910. s,@datadir@,$datadir,;t t
  10911. s,@sysconfdir@,$sysconfdir,;t t
  10912. s,@sharedstatedir@,$sharedstatedir,;t t
  10913. s,@localstatedir@,$localstatedir,;t t
  10914. s,@libdir@,$libdir,;t t
  10915. s,@includedir@,$includedir,;t t
  10916. s,@oldincludedir@,$oldincludedir,;t t
  10917. s,@infodir@,$infodir,;t t
  10918. s,@mandir@,$mandir,;t t
  10919. s,@build_alias@,$build_alias,;t t
  10920. s,@host_alias@,$host_alias,;t t
  10921. s,@target_alias@,$target_alias,;t t
  10922. s,@DEFS@,$DEFS,;t t
  10923. s,@ECHO_C@,$ECHO_C,;t t
  10924. s,@ECHO_N@,$ECHO_N,;t t
  10925. s,@ECHO_T@,$ECHO_T,;t t
  10926. s,@LIBS@,$LIBS,;t t
  10927. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  10928. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  10929. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  10930. s,@CYGPATH_W@,$CYGPATH_W,;t t
  10931. s,@PACKAGE@,$PACKAGE,;t t
  10932. s,@VERSION@,$VERSION,;t t
  10933. s,@ACLOCAL@,$ACLOCAL,;t t
  10934. s,@AUTOCONF@,$AUTOCONF,;t t
  10935. s,@AUTOMAKE@,$AUTOMAKE,;t t
  10936. s,@AUTOHEADER@,$AUTOHEADER,;t t
  10937. s,@MAKEINFO@,$MAKEINFO,;t t
  10938. s,@install_sh@,$install_sh,;t t
  10939. s,@STRIP@,$STRIP,;t t
  10940. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  10941. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  10942. s,@mkdir_p@,$mkdir_p,;t t
  10943. s,@AWK@,$AWK,;t t
  10944. s,@SET_MAKE@,$SET_MAKE,;t t
  10945. s,@am__leading_dot@,$am__leading_dot,;t t
  10946. s,@AMTAR@,$AMTAR,;t t
  10947. s,@am__tar@,$am__tar,;t t
  10948. s,@am__untar@,$am__untar,;t t
  10949. s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
  10950. s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
  10951. s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
  10952. s,@localedir@,$localedir,;t t
  10953. s,@CXX@,$CXX,;t t
  10954. s,@CXXFLAGS@,$CXXFLAGS,;t t
  10955. s,@LDFLAGS@,$LDFLAGS,;t t
  10956. s,@CPPFLAGS@,$CPPFLAGS,;t t
  10957. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  10958. s,@EXEEXT@,$EXEEXT,;t t
  10959. s,@OBJEXT@,$OBJEXT,;t t
  10960. s,@DEPDIR@,$DEPDIR,;t t
  10961. s,@am__include@,$am__include,;t t
  10962. s,@am__quote@,$am__quote,;t t
  10963. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  10964. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  10965. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  10966. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  10967. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  10968. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  10969. s,@CC@,$CC,;t t
  10970. s,@CFLAGS@,$CFLAGS,;t t
  10971. s,@ac_ct_CC@,$ac_ct_CC,;t t
  10972. s,@CCDEPMODE@,$CCDEPMODE,;t t
  10973. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  10974. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  10975. s,@RANLIB@,$RANLIB,;t t
  10976. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  10977. s,@YACC@,$YACC,;t t
  10978. s,@XML2_CONFIG@,$XML2_CONFIG,;t t
  10979. s,@XML_CPPFLAGS@,$XML_CPPFLAGS,;t t
  10980. s,@XML_LIBS@,$XML_LIBS,;t t
  10981. s,@LIBGNUTLS_CONFIG@,$LIBGNUTLS_CONFIG,;t t
  10982. s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
  10983. s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
  10984. s,@LIBGCRYPT_CONFIG@,$LIBGCRYPT_CONFIG,;t t
  10985. s,@LIBGCRYPT_CFLAGS@,$LIBGCRYPT_CFLAGS,;t t
  10986. s,@LIBGCRYPT_LIBS@,$LIBGCRYPT_LIBS,;t t
  10987. s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
  10988. s,@OPENSSL_CFLAGS@,$OPENSSL_CFLAGS,;t t
  10989. s,@ENABLE_BITTORRENT_TRUE@,$ENABLE_BITTORRENT_TRUE,;t t
  10990. s,@ENABLE_BITTORRENT_FALSE@,$ENABLE_BITTORRENT_FALSE,;t t
  10991. s,@ENABLE_METALINK_TRUE@,$ENABLE_METALINK_TRUE,;t t
  10992. s,@ENABLE_METALINK_FALSE@,$ENABLE_METALINK_FALSE,;t t
  10993. s,@ALLOCA@,$ALLOCA,;t t
  10994. s,@CPP@,$CPP,;t t
  10995. s,@EGREP@,$EGREP,;t t
  10996. s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
  10997. s,@USE_NLS@,$USE_NLS,;t t
  10998. s,@MSGFMT@,$MSGFMT,;t t
  10999. s,@GMSGFMT@,$GMSGFMT,;t t
  11000. s,@XGETTEXT@,$XGETTEXT,;t t
  11001. s,@MSGMERGE@,$MSGMERGE,;t t
  11002. s,@build@,$build,;t t
  11003. s,@build_cpu@,$build_cpu,;t t
  11004. s,@build_vendor@,$build_vendor,;t t
  11005. s,@build_os@,$build_os,;t t
  11006. s,@host@,$host,;t t
  11007. s,@host_cpu@,$host_cpu,;t t
  11008. s,@host_vendor@,$host_vendor,;t t
  11009. s,@host_os@,$host_os,;t t
  11010. s,@GLIBC21@,$GLIBC21,;t t
  11011. s,@LIBICONV@,$LIBICONV,;t t
  11012. s,@LTLIBICONV@,$LTLIBICONV,;t t
  11013. s,@INTLBISON@,$INTLBISON,;t t
  11014. s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
  11015. s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
  11016. s,@CATOBJEXT@,$CATOBJEXT,;t t
  11017. s,@DATADIRNAME@,$DATADIRNAME,;t t
  11018. s,@INSTOBJEXT@,$INSTOBJEXT,;t t
  11019. s,@GENCAT@,$GENCAT,;t t
  11020. s,@INTLOBJS@,$INTLOBJS,;t t
  11021. s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
  11022. s,@INTLLIBS@,$INTLLIBS,;t t
  11023. s,@LIBINTL@,$LIBINTL,;t t
  11024. s,@LTLIBINTL@,$LTLIBINTL,;t t
  11025. s,@POSUB@,$POSUB,;t t
  11026. s,@LIBOBJS@,$LIBOBJS,;t t
  11027. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11028. CEOF
  11029. _ACEOF
  11030. cat >>$CONFIG_STATUS <<\_ACEOF
  11031. # Split the substitutions into bite-sized pieces for seds with
  11032. # small command number limits, like on Digital OSF/1 and HP-UX.
  11033. ac_max_sed_lines=48
  11034. ac_sed_frag=1 # Number of current file.
  11035. ac_beg=1 # First line for current file.
  11036. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11037. ac_more_lines=:
  11038. ac_sed_cmds=
  11039. while $ac_more_lines; do
  11040. if test $ac_beg -gt 1; then
  11041. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11042. else
  11043. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11044. fi
  11045. if test ! -s $tmp/subs.frag; then
  11046. ac_more_lines=false
  11047. else
  11048. # The purpose of the label and of the branching condition is to
  11049. # speed up the sed processing (if there are no `@' at all, there
  11050. # is no need to browse any of the substitutions).
  11051. # These are the two extra sed commands mentioned above.
  11052. (echo ':t
  11053. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11054. if test -z "$ac_sed_cmds"; then
  11055. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11056. else
  11057. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11058. fi
  11059. ac_sed_frag=`expr $ac_sed_frag + 1`
  11060. ac_beg=$ac_end
  11061. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11062. fi
  11063. done
  11064. if test -z "$ac_sed_cmds"; then
  11065. ac_sed_cmds=cat
  11066. fi
  11067. fi # test -n "$CONFIG_FILES"
  11068. _ACEOF
  11069. cat >>$CONFIG_STATUS <<\_ACEOF
  11070. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11071. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11072. case $ac_file in
  11073. - | *:- | *:-:* ) # input from stdin
  11074. cat >$tmp/stdin
  11075. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11076. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11077. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11078. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11079. * ) ac_file_in=$ac_file.in ;;
  11080. esac
  11081. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11082. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11083. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11084. X"$ac_file" : 'X\(//\)[^/]' \| \
  11085. X"$ac_file" : 'X\(//\)$' \| \
  11086. X"$ac_file" : 'X\(/\)' \| \
  11087. . : '\(.\)' 2>/dev/null ||
  11088. echo X"$ac_file" |
  11089. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11090. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11091. /^X\(\/\/\)$/{ s//\1/; q; }
  11092. /^X\(\/\).*/{ s//\1/; q; }
  11093. s/.*/./; q'`
  11094. { if $as_mkdir_p; then
  11095. mkdir -p "$ac_dir"
  11096. else
  11097. as_dir="$ac_dir"
  11098. as_dirs=
  11099. while test ! -d "$as_dir"; do
  11100. as_dirs="$as_dir $as_dirs"
  11101. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11102. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11103. X"$as_dir" : 'X\(//\)[^/]' \| \
  11104. X"$as_dir" : 'X\(//\)$' \| \
  11105. X"$as_dir" : 'X\(/\)' \| \
  11106. . : '\(.\)' 2>/dev/null ||
  11107. echo X"$as_dir" |
  11108. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11109. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11110. /^X\(\/\/\)$/{ s//\1/; q; }
  11111. /^X\(\/\).*/{ s//\1/; q; }
  11112. s/.*/./; q'`
  11113. done
  11114. test ! -n "$as_dirs" || mkdir $as_dirs
  11115. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11116. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11117. { (exit 1); exit 1; }; }; }
  11118. ac_builddir=.
  11119. if test "$ac_dir" != .; then
  11120. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11121. # A "../" for each directory in $ac_dir_suffix.
  11122. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11123. else
  11124. ac_dir_suffix= ac_top_builddir=
  11125. fi
  11126. case $srcdir in
  11127. .) # No --srcdir option. We are building in place.
  11128. ac_srcdir=.
  11129. if test -z "$ac_top_builddir"; then
  11130. ac_top_srcdir=.
  11131. else
  11132. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11133. fi ;;
  11134. [\\/]* | ?:[\\/]* ) # Absolute path.
  11135. ac_srcdir=$srcdir$ac_dir_suffix;
  11136. ac_top_srcdir=$srcdir ;;
  11137. *) # Relative path.
  11138. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11139. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11140. esac
  11141. # Do not use `cd foo && pwd` to compute absolute paths, because
  11142. # the directories may not exist.
  11143. case `pwd` in
  11144. .) ac_abs_builddir="$ac_dir";;
  11145. *)
  11146. case "$ac_dir" in
  11147. .) ac_abs_builddir=`pwd`;;
  11148. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11149. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11150. esac;;
  11151. esac
  11152. case $ac_abs_builddir in
  11153. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11154. *)
  11155. case ${ac_top_builddir}. in
  11156. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11157. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11158. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11159. esac;;
  11160. esac
  11161. case $ac_abs_builddir in
  11162. .) ac_abs_srcdir=$ac_srcdir;;
  11163. *)
  11164. case $ac_srcdir in
  11165. .) ac_abs_srcdir=$ac_abs_builddir;;
  11166. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11167. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11168. esac;;
  11169. esac
  11170. case $ac_abs_builddir in
  11171. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11172. *)
  11173. case $ac_top_srcdir in
  11174. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11175. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11176. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11177. esac;;
  11178. esac
  11179. case $INSTALL in
  11180. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11181. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  11182. esac
  11183. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11184. # use $as_me), people would be surprised to read:
  11185. # /* config.h. Generated by config.status. */
  11186. if test x"$ac_file" = x-; then
  11187. configure_input=
  11188. else
  11189. configure_input="$ac_file. "
  11190. fi
  11191. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11192. sed 's,.*/,,'` by configure."
  11193. # First look for the input files in the build tree, otherwise in the
  11194. # src tree.
  11195. ac_file_inputs=`IFS=:
  11196. for f in $ac_file_in; do
  11197. case $f in
  11198. -) echo $tmp/stdin ;;
  11199. [\\/$]*)
  11200. # Absolute (can't be DOS-style, as IFS=:)
  11201. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11202. echo "$as_me: error: cannot find input file: $f" >&2;}
  11203. { (exit 1); exit 1; }; }
  11204. echo "$f";;
  11205. *) # Relative
  11206. if test -f "$f"; then
  11207. # Build tree
  11208. echo "$f"
  11209. elif test -f "$srcdir/$f"; then
  11210. # Source tree
  11211. echo "$srcdir/$f"
  11212. else
  11213. # /dev/null tree
  11214. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11215. echo "$as_me: error: cannot find input file: $f" >&2;}
  11216. { (exit 1); exit 1; }; }
  11217. fi;;
  11218. esac
  11219. done` || { (exit 1); exit 1; }
  11220. if test x"$ac_file" != x-; then
  11221. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11222. echo "$as_me: creating $ac_file" >&6;}
  11223. rm -f "$ac_file"
  11224. fi
  11225. _ACEOF
  11226. cat >>$CONFIG_STATUS <<_ACEOF
  11227. sed "$ac_vpsub
  11228. $extrasub
  11229. _ACEOF
  11230. cat >>$CONFIG_STATUS <<\_ACEOF
  11231. :t
  11232. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11233. s,@configure_input@,$configure_input,;t t
  11234. s,@srcdir@,$ac_srcdir,;t t
  11235. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11236. s,@top_srcdir@,$ac_top_srcdir,;t t
  11237. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11238. s,@builddir@,$ac_builddir,;t t
  11239. s,@abs_builddir@,$ac_abs_builddir,;t t
  11240. s,@top_builddir@,$ac_top_builddir,;t t
  11241. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11242. s,@INSTALL@,$ac_INSTALL,;t t
  11243. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11244. rm -f $tmp/stdin
  11245. if test x"$ac_file" != x-; then
  11246. mv $tmp/out $ac_file
  11247. else
  11248. cat $tmp/out
  11249. rm -f $tmp/out
  11250. fi
  11251. done
  11252. _ACEOF
  11253. cat >>$CONFIG_STATUS <<\_ACEOF
  11254. #
  11255. # CONFIG_HEADER section.
  11256. #
  11257. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11258. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11259. #
  11260. # ac_d sets the value in "#define NAME VALUE" lines.
  11261. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11262. ac_dB='[ ].*$,\1#\2'
  11263. ac_dC=' '
  11264. ac_dD=',;t'
  11265. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11266. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11267. ac_uB='$,\1#\2define\3'
  11268. ac_uC=' '
  11269. ac_uD=',;t'
  11270. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11271. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11272. case $ac_file in
  11273. - | *:- | *:-:* ) # input from stdin
  11274. cat >$tmp/stdin
  11275. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11276. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11277. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11278. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11279. * ) ac_file_in=$ac_file.in ;;
  11280. esac
  11281. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11282. echo "$as_me: creating $ac_file" >&6;}
  11283. # First look for the input files in the build tree, otherwise in the
  11284. # src tree.
  11285. ac_file_inputs=`IFS=:
  11286. for f in $ac_file_in; do
  11287. case $f in
  11288. -) echo $tmp/stdin ;;
  11289. [\\/$]*)
  11290. # Absolute (can't be DOS-style, as IFS=:)
  11291. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11292. echo "$as_me: error: cannot find input file: $f" >&2;}
  11293. { (exit 1); exit 1; }; }
  11294. # Do quote $f, to prevent DOS paths from being IFS'd.
  11295. echo "$f";;
  11296. *) # Relative
  11297. if test -f "$f"; then
  11298. # Build tree
  11299. echo "$f"
  11300. elif test -f "$srcdir/$f"; then
  11301. # Source tree
  11302. echo "$srcdir/$f"
  11303. else
  11304. # /dev/null tree
  11305. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11306. echo "$as_me: error: cannot find input file: $f" >&2;}
  11307. { (exit 1); exit 1; }; }
  11308. fi;;
  11309. esac
  11310. done` || { (exit 1); exit 1; }
  11311. # Remove the trailing spaces.
  11312. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11313. _ACEOF
  11314. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11315. # `conftest.undefs', that substitutes the proper values into
  11316. # config.h.in to produce config.h. The first handles `#define'
  11317. # templates, and the second `#undef' templates.
  11318. # And first: Protect against being on the right side of a sed subst in
  11319. # config.status. Protect against being in an unquoted here document
  11320. # in config.status.
  11321. rm -f conftest.defines conftest.undefs
  11322. # Using a here document instead of a string reduces the quoting nightmare.
  11323. # Putting comments in sed scripts is not portable.
  11324. #
  11325. # `end' is used to avoid that the second main sed command (meant for
  11326. # 0-ary CPP macros) applies to n-ary macro definitions.
  11327. # See the Autoconf documentation for `clear'.
  11328. cat >confdef2sed.sed <<\_ACEOF
  11329. s/[\\&,]/\\&/g
  11330. s,[\\$`],\\&,g
  11331. t clear
  11332. : clear
  11333. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11334. t end
  11335. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11336. : end
  11337. _ACEOF
  11338. # If some macros were called several times there might be several times
  11339. # the same #defines, which is useless. Nevertheless, we may not want to
  11340. # sort them, since we want the *last* AC-DEFINE to be honored.
  11341. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11342. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11343. rm -f confdef2sed.sed
  11344. # This sed command replaces #undef with comments. This is necessary, for
  11345. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11346. # on some systems where configure will not decide to define it.
  11347. cat >>conftest.undefs <<\_ACEOF
  11348. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11349. _ACEOF
  11350. # Break up conftest.defines because some shells have a limit on the size
  11351. # of here documents, and old seds have small limits too (100 cmds).
  11352. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11353. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11354. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11355. echo ' :' >>$CONFIG_STATUS
  11356. rm -f conftest.tail
  11357. while grep . conftest.defines >/dev/null
  11358. do
  11359. # Write a limited-size here document to $tmp/defines.sed.
  11360. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11361. # Speed up: don't consider the non `#define' lines.
  11362. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11363. # Work around the forget-to-reset-the-flag bug.
  11364. echo 't clr' >>$CONFIG_STATUS
  11365. echo ': clr' >>$CONFIG_STATUS
  11366. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11367. echo 'CEOF
  11368. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11369. rm -f $tmp/in
  11370. mv $tmp/out $tmp/in
  11371. ' >>$CONFIG_STATUS
  11372. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11373. rm -f conftest.defines
  11374. mv conftest.tail conftest.defines
  11375. done
  11376. rm -f conftest.defines
  11377. echo ' fi # grep' >>$CONFIG_STATUS
  11378. echo >>$CONFIG_STATUS
  11379. # Break up conftest.undefs because some shells have a limit on the size
  11380. # of here documents, and old seds have small limits too (100 cmds).
  11381. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11382. rm -f conftest.tail
  11383. while grep . conftest.undefs >/dev/null
  11384. do
  11385. # Write a limited-size here document to $tmp/undefs.sed.
  11386. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11387. # Speed up: don't consider the non `#undef'
  11388. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11389. # Work around the forget-to-reset-the-flag bug.
  11390. echo 't clr' >>$CONFIG_STATUS
  11391. echo ': clr' >>$CONFIG_STATUS
  11392. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11393. echo 'CEOF
  11394. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11395. rm -f $tmp/in
  11396. mv $tmp/out $tmp/in
  11397. ' >>$CONFIG_STATUS
  11398. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11399. rm -f conftest.undefs
  11400. mv conftest.tail conftest.undefs
  11401. done
  11402. rm -f conftest.undefs
  11403. cat >>$CONFIG_STATUS <<\_ACEOF
  11404. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11405. # use $as_me), people would be surprised to read:
  11406. # /* config.h. Generated by config.status. */
  11407. if test x"$ac_file" = x-; then
  11408. echo "/* Generated by configure. */" >$tmp/config.h
  11409. else
  11410. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11411. fi
  11412. cat $tmp/in >>$tmp/config.h
  11413. rm -f $tmp/in
  11414. if test x"$ac_file" != x-; then
  11415. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11416. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11417. echo "$as_me: $ac_file is unchanged" >&6;}
  11418. else
  11419. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11420. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11421. X"$ac_file" : 'X\(//\)[^/]' \| \
  11422. X"$ac_file" : 'X\(//\)$' \| \
  11423. X"$ac_file" : 'X\(/\)' \| \
  11424. . : '\(.\)' 2>/dev/null ||
  11425. echo X"$ac_file" |
  11426. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11427. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11428. /^X\(\/\/\)$/{ s//\1/; q; }
  11429. /^X\(\/\).*/{ s//\1/; q; }
  11430. s/.*/./; q'`
  11431. { if $as_mkdir_p; then
  11432. mkdir -p "$ac_dir"
  11433. else
  11434. as_dir="$ac_dir"
  11435. as_dirs=
  11436. while test ! -d "$as_dir"; do
  11437. as_dirs="$as_dir $as_dirs"
  11438. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11439. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11440. X"$as_dir" : 'X\(//\)[^/]' \| \
  11441. X"$as_dir" : 'X\(//\)$' \| \
  11442. X"$as_dir" : 'X\(/\)' \| \
  11443. . : '\(.\)' 2>/dev/null ||
  11444. echo X"$as_dir" |
  11445. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11446. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11447. /^X\(\/\/\)$/{ s//\1/; q; }
  11448. /^X\(\/\).*/{ s//\1/; q; }
  11449. s/.*/./; q'`
  11450. done
  11451. test ! -n "$as_dirs" || mkdir $as_dirs
  11452. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11453. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11454. { (exit 1); exit 1; }; }; }
  11455. rm -f $ac_file
  11456. mv $tmp/config.h $ac_file
  11457. fi
  11458. else
  11459. cat $tmp/config.h
  11460. rm -f $tmp/config.h
  11461. fi
  11462. # Compute $ac_file's index in $config_headers.
  11463. _am_stamp_count=1
  11464. for _am_header in $config_headers :; do
  11465. case $_am_header in
  11466. $ac_file | $ac_file:* )
  11467. break ;;
  11468. * )
  11469. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11470. esac
  11471. done
  11472. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  11473. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11474. X$ac_file : 'X\(//\)[^/]' \| \
  11475. X$ac_file : 'X\(//\)$' \| \
  11476. X$ac_file : 'X\(/\)' \| \
  11477. . : '\(.\)' 2>/dev/null ||
  11478. echo X$ac_file |
  11479. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11480. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11481. /^X\(\/\/\)$/{ s//\1/; q; }
  11482. /^X\(\/\).*/{ s//\1/; q; }
  11483. s/.*/./; q'`/stamp-h$_am_stamp_count
  11484. done
  11485. _ACEOF
  11486. cat >>$CONFIG_STATUS <<\_ACEOF
  11487. #
  11488. # CONFIG_COMMANDS section.
  11489. #
  11490. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  11491. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  11492. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11493. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  11494. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11495. X"$ac_dest" : 'X\(//\)[^/]' \| \
  11496. X"$ac_dest" : 'X\(//\)$' \| \
  11497. X"$ac_dest" : 'X\(/\)' \| \
  11498. . : '\(.\)' 2>/dev/null ||
  11499. echo X"$ac_dest" |
  11500. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11501. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11502. /^X\(\/\/\)$/{ s//\1/; q; }
  11503. /^X\(\/\).*/{ s//\1/; q; }
  11504. s/.*/./; q'`
  11505. { if $as_mkdir_p; then
  11506. mkdir -p "$ac_dir"
  11507. else
  11508. as_dir="$ac_dir"
  11509. as_dirs=
  11510. while test ! -d "$as_dir"; do
  11511. as_dirs="$as_dir $as_dirs"
  11512. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11513. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11514. X"$as_dir" : 'X\(//\)[^/]' \| \
  11515. X"$as_dir" : 'X\(//\)$' \| \
  11516. X"$as_dir" : 'X\(/\)' \| \
  11517. . : '\(.\)' 2>/dev/null ||
  11518. echo X"$as_dir" |
  11519. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11520. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11521. /^X\(\/\/\)$/{ s//\1/; q; }
  11522. /^X\(\/\).*/{ s//\1/; q; }
  11523. s/.*/./; q'`
  11524. done
  11525. test ! -n "$as_dirs" || mkdir $as_dirs
  11526. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11527. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11528. { (exit 1); exit 1; }; }; }
  11529. ac_builddir=.
  11530. if test "$ac_dir" != .; then
  11531. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11532. # A "../" for each directory in $ac_dir_suffix.
  11533. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11534. else
  11535. ac_dir_suffix= ac_top_builddir=
  11536. fi
  11537. case $srcdir in
  11538. .) # No --srcdir option. We are building in place.
  11539. ac_srcdir=.
  11540. if test -z "$ac_top_builddir"; then
  11541. ac_top_srcdir=.
  11542. else
  11543. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11544. fi ;;
  11545. [\\/]* | ?:[\\/]* ) # Absolute path.
  11546. ac_srcdir=$srcdir$ac_dir_suffix;
  11547. ac_top_srcdir=$srcdir ;;
  11548. *) # Relative path.
  11549. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11550. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11551. esac
  11552. # Do not use `cd foo && pwd` to compute absolute paths, because
  11553. # the directories may not exist.
  11554. case `pwd` in
  11555. .) ac_abs_builddir="$ac_dir";;
  11556. *)
  11557. case "$ac_dir" in
  11558. .) ac_abs_builddir=`pwd`;;
  11559. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11560. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11561. esac;;
  11562. esac
  11563. case $ac_abs_builddir in
  11564. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11565. *)
  11566. case ${ac_top_builddir}. in
  11567. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11568. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11569. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11570. esac;;
  11571. esac
  11572. case $ac_abs_builddir in
  11573. .) ac_abs_srcdir=$ac_srcdir;;
  11574. *)
  11575. case $ac_srcdir in
  11576. .) ac_abs_srcdir=$ac_abs_builddir;;
  11577. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11578. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11579. esac;;
  11580. esac
  11581. case $ac_abs_builddir in
  11582. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11583. *)
  11584. case $ac_top_srcdir in
  11585. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11586. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11587. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11588. esac;;
  11589. esac
  11590. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  11591. echo "$as_me: executing $ac_dest commands" >&6;}
  11592. case $ac_dest in
  11593. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  11594. # Strip MF so we end up with the name of the file.
  11595. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11596. # Check whether this is an Automake generated Makefile or not.
  11597. # We used to match only the files named `Makefile.in', but
  11598. # some people rename them; so instead we look at the file content.
  11599. # Grep'ing the first line is not enough: some people post-process
  11600. # each Makefile.in and add a new line on top of each file to say so.
  11601. # So let's grep whole file.
  11602. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  11603. dirpart=`(dirname "$mf") 2>/dev/null ||
  11604. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11605. X"$mf" : 'X\(//\)[^/]' \| \
  11606. X"$mf" : 'X\(//\)$' \| \
  11607. X"$mf" : 'X\(/\)' \| \
  11608. . : '\(.\)' 2>/dev/null ||
  11609. echo X"$mf" |
  11610. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11611. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11612. /^X\(\/\/\)$/{ s//\1/; q; }
  11613. /^X\(\/\).*/{ s//\1/; q; }
  11614. s/.*/./; q'`
  11615. else
  11616. continue
  11617. fi
  11618. # Extract the definition of DEPDIR, am__include, and am__quote
  11619. # from the Makefile without running `make'.
  11620. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11621. test -z "$DEPDIR" && continue
  11622. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11623. test -z "am__include" && continue
  11624. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11625. # When using ansi2knr, U may be empty or an underscore; expand it
  11626. U=`sed -n 's/^U = //p' < "$mf"`
  11627. # Find all dependency output files, they are included files with
  11628. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11629. # simplest approach to changing $(DEPDIR) to its actual value in the
  11630. # expansion.
  11631. for file in `sed -n "
  11632. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11633. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11634. # Make sure the directory exists.
  11635. test -f "$dirpart/$file" && continue
  11636. fdir=`(dirname "$file") 2>/dev/null ||
  11637. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11638. X"$file" : 'X\(//\)[^/]' \| \
  11639. X"$file" : 'X\(//\)$' \| \
  11640. X"$file" : 'X\(/\)' \| \
  11641. . : '\(.\)' 2>/dev/null ||
  11642. echo X"$file" |
  11643. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11644. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11645. /^X\(\/\/\)$/{ s//\1/; q; }
  11646. /^X\(\/\).*/{ s//\1/; q; }
  11647. s/.*/./; q'`
  11648. { if $as_mkdir_p; then
  11649. mkdir -p $dirpart/$fdir
  11650. else
  11651. as_dir=$dirpart/$fdir
  11652. as_dirs=
  11653. while test ! -d "$as_dir"; do
  11654. as_dirs="$as_dir $as_dirs"
  11655. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11656. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11657. X"$as_dir" : 'X\(//\)[^/]' \| \
  11658. X"$as_dir" : 'X\(//\)$' \| \
  11659. X"$as_dir" : 'X\(/\)' \| \
  11660. . : '\(.\)' 2>/dev/null ||
  11661. echo X"$as_dir" |
  11662. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11663. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11664. /^X\(\/\/\)$/{ s//\1/; q; }
  11665. /^X\(\/\).*/{ s//\1/; q; }
  11666. s/.*/./; q'`
  11667. done
  11668. test ! -n "$as_dirs" || mkdir $as_dirs
  11669. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  11670. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  11671. { (exit 1); exit 1; }; }; }
  11672. # echo "creating $dirpart/$file"
  11673. echo '# dummy' > "$dirpart/$file"
  11674. done
  11675. done
  11676. ;;
  11677. default-1 )
  11678. for ac_file in $CONFIG_FILES; do
  11679. # Support "outfile[:infile[:infile...]]"
  11680. case "$ac_file" in
  11681. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11682. esac
  11683. # PO directories have a Makefile.in generated from Makefile.in.in.
  11684. case "$ac_file" in */Makefile.in)
  11685. # Adjust a relative srcdir.
  11686. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  11687. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  11688. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  11689. # In autoconf-2.13 it is called $ac_given_srcdir.
  11690. # In autoconf-2.50 it is called $srcdir.
  11691. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  11692. case "$ac_given_srcdir" in
  11693. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  11694. /*) top_srcdir="$ac_given_srcdir" ;;
  11695. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11696. esac
  11697. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  11698. rm -f "$ac_dir/POTFILES"
  11699. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  11700. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  11701. POMAKEFILEDEPS="POTFILES.in"
  11702. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  11703. # on $ac_dir but don't depend on user-specified configuration
  11704. # parameters.
  11705. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  11706. # The LINGUAS file contains the set of available languages.
  11707. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  11708. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  11709. fi
  11710. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  11711. # Hide the ALL_LINGUAS assigment from automake.
  11712. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  11713. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  11714. else
  11715. # The set of available languages was given in configure.in.
  11716. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  11717. fi
  11718. case "$ac_given_srcdir" in
  11719. .) srcdirpre= ;;
  11720. *) srcdirpre='$(srcdir)/' ;;
  11721. esac
  11722. POFILES=
  11723. GMOFILES=
  11724. UPDATEPOFILES=
  11725. DUMMYPOFILES=
  11726. for lang in $ALL_LINGUAS; do
  11727. POFILES="$POFILES $srcdirpre$lang.po"
  11728. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  11729. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  11730. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  11731. done
  11732. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  11733. # environment variable.
  11734. INST_LINGUAS=
  11735. if test -n "$ALL_LINGUAS"; then
  11736. for presentlang in $ALL_LINGUAS; do
  11737. useit=no
  11738. if test "%UNSET%" != "$LINGUAS"; then
  11739. desiredlanguages="$LINGUAS"
  11740. else
  11741. desiredlanguages="$ALL_LINGUAS"
  11742. fi
  11743. for desiredlang in $desiredlanguages; do
  11744. # Use the presentlang catalog if desiredlang is
  11745. # a. equal to presentlang, or
  11746. # b. a variant of presentlang (because in this case,
  11747. # presentlang can be used as a fallback for messages
  11748. # which are not translated in the desiredlang catalog).
  11749. case "$desiredlang" in
  11750. "$presentlang"*) useit=yes;;
  11751. esac
  11752. done
  11753. if test $useit = yes; then
  11754. INST_LINGUAS="$INST_LINGUAS $presentlang"
  11755. fi
  11756. done
  11757. fi
  11758. CATALOGS=
  11759. if test -n "$INST_LINGUAS"; then
  11760. for lang in $INST_LINGUAS; do
  11761. CATALOGS="$CATALOGS $lang.gmo"
  11762. done
  11763. fi
  11764. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  11765. 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"
  11766. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  11767. if test -f "$f"; then
  11768. case "$f" in
  11769. *.orig | *.bak | *~) ;;
  11770. *) cat "$f" >> "$ac_dir/Makefile" ;;
  11771. esac
  11772. fi
  11773. done
  11774. fi
  11775. ;;
  11776. esac
  11777. done ;;
  11778. esac
  11779. done
  11780. _ACEOF
  11781. cat >>$CONFIG_STATUS <<\_ACEOF
  11782. { (exit 0); exit 0; }
  11783. _ACEOF
  11784. chmod +x $CONFIG_STATUS
  11785. ac_clean_files=$ac_clean_files_save
  11786. # configure is writing to config.log, and then calls config.status.
  11787. # config.status does its own redirection, appending to config.log.
  11788. # Unfortunately, on DOS this fails, as config.log is still kept open
  11789. # by configure, so config.status won't be able to write to it; its
  11790. # output is simply discarded. So we exec the FD to /dev/null,
  11791. # effectively closing config.log, so it can be properly (re)opened and
  11792. # appended to by config.status. When coming back to configure, we
  11793. # need to make the FD available again.
  11794. if test "$no_create" != yes; then
  11795. ac_cs_success=:
  11796. ac_config_status_args=
  11797. test "$silent" = yes &&
  11798. ac_config_status_args="$ac_config_status_args --quiet"
  11799. exec 5>/dev/null
  11800. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11801. exec 5>>config.log
  11802. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11803. # would make configure fail if this is the last instruction.
  11804. $ac_cs_success || { (exit 1); exit 1; }
  11805. fi