configure 374 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for aria2c 0.5.2.
  4. #
  5. # Report bugs to <tujikawa@rednoah.com>.
  6. #
  7. # Copyright (C) 2003 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13. # Be Bourne compatible
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. DUALCASE=1; export DUALCASE # for MKS sh
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30. # Work around bugs in pre-3.0 UWIN ksh.
  31. $as_unset ENV MAIL MAILPATH
  32. PS1='$ '
  33. PS2='> '
  34. PS4='+ '
  35. # NLS nuisances.
  36. for as_var in \
  37. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  38. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  39. LC_TELEPHONE LC_TIME
  40. do
  41. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42. eval $as_var=C; export $as_var
  43. else
  44. $as_unset $as_var
  45. fi
  46. done
  47. # Required to use basename.
  48. if expr a : '\(a\)' >/dev/null 2>&1; then
  49. as_expr=expr
  50. else
  51. as_expr=false
  52. fi
  53. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  54. as_basename=basename
  55. else
  56. as_basename=false
  57. fi
  58. # Name of the executable.
  59. as_me=`$as_basename "$0" ||
  60. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  61. X"$0" : 'X\(//\)$' \| \
  62. X"$0" : 'X\(/\)$' \| \
  63. . : '\(.\)' 2>/dev/null ||
  64. echo X/"$0" |
  65. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  66. /^X\/\(\/\/\)$/{ s//\1/; q; }
  67. /^X\/\(\/\).*/{ s//\1/; q; }
  68. s/.*/./; q'`
  69. # PATH needs CR, and LINENO needs CR and PATH.
  70. # Avoid depending upon Character Ranges.
  71. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  72. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  73. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  74. as_cr_digits='0123456789'
  75. as_cr_alnum=$as_cr_Letters$as_cr_digits
  76. # The user is always right.
  77. if test "${PATH_SEPARATOR+set}" != set; then
  78. echo "#! /bin/sh" >conf$$.sh
  79. echo "exit 0" >>conf$$.sh
  80. chmod +x conf$$.sh
  81. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  82. PATH_SEPARATOR=';'
  83. else
  84. PATH_SEPARATOR=:
  85. fi
  86. rm -f conf$$.sh
  87. fi
  88. as_lineno_1=$LINENO
  89. as_lineno_2=$LINENO
  90. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  91. test "x$as_lineno_1" != "x$as_lineno_2" &&
  92. test "x$as_lineno_3" = "x$as_lineno_2" || {
  93. # Find who we are. Look in the path if we contain no path at all
  94. # relative or not.
  95. case $0 in
  96. *[\\/]* ) as_myself=$0 ;;
  97. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98. for as_dir in $PATH
  99. do
  100. IFS=$as_save_IFS
  101. test -z "$as_dir" && as_dir=.
  102. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  103. done
  104. ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109. as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  113. { (exit 1); exit 1; }; }
  114. fi
  115. case $CONFIG_SHELL in
  116. '')
  117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  118. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  119. do
  120. IFS=$as_save_IFS
  121. test -z "$as_dir" && as_dir=.
  122. for as_base in sh bash ksh sh5; do
  123. case $as_dir in
  124. /*)
  125. if ("$as_dir/$as_base" -c '
  126. as_lineno_1=$LINENO
  127. as_lineno_2=$LINENO
  128. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  129. test "x$as_lineno_1" != "x$as_lineno_2" &&
  130. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  131. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  132. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  133. CONFIG_SHELL=$as_dir/$as_base
  134. export CONFIG_SHELL
  135. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  136. fi;;
  137. esac
  138. done
  139. done
  140. ;;
  141. esac
  142. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  143. # uniformly replaced by the line number. The first 'sed' inserts a
  144. # line-number line before each line; the second 'sed' does the real
  145. # work. The second script uses 'N' to pair each line-number line
  146. # with the numbered line, and appends trailing '-' during
  147. # substitution so that $LINENO is not a special case at line end.
  148. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  149. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  150. sed '=' <$as_myself |
  151. sed '
  152. N
  153. s,$,-,
  154. : loop
  155. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  156. t loop
  157. s,-$,,
  158. s,^['$as_cr_digits']*\n,,
  159. ' >$as_me.lineno &&
  160. chmod +x $as_me.lineno ||
  161. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  162. { (exit 1); exit 1; }; }
  163. # Don't try to exec as it changes $[0], causing all sort of problems
  164. # (the dirname of $[0] is not the place where we might find the
  165. # original and so on. Autoconf is especially sensible to this).
  166. . ./$as_me.lineno
  167. # Exit status is that of the last command.
  168. exit
  169. }
  170. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  171. *c*,-n*) ECHO_N= ECHO_C='
  172. ' ECHO_T=' ' ;;
  173. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  174. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  175. esac
  176. if expr a : '\(a\)' >/dev/null 2>&1; then
  177. as_expr=expr
  178. else
  179. as_expr=false
  180. fi
  181. rm -f conf$$ conf$$.exe conf$$.file
  182. echo >conf$$.file
  183. if ln -s conf$$.file conf$$ 2>/dev/null; then
  184. # We could just check for DJGPP; but this test a) works b) is more generic
  185. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  186. if test -f conf$$.exe; then
  187. # Don't use ln at all; we don't have any links
  188. as_ln_s='cp -p'
  189. else
  190. as_ln_s='ln -s'
  191. fi
  192. elif ln conf$$.file conf$$ 2>/dev/null; then
  193. as_ln_s=ln
  194. else
  195. as_ln_s='cp -p'
  196. fi
  197. rm -f conf$$ conf$$.exe conf$$.file
  198. if mkdir -p . 2>/dev/null; then
  199. as_mkdir_p=:
  200. else
  201. test -d ./-p && rmdir ./-p
  202. as_mkdir_p=false
  203. fi
  204. as_executable_p="test -f"
  205. # Sed expression to map a string onto a valid CPP name.
  206. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  207. # Sed expression to map a string onto a valid variable name.
  208. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  209. # IFS
  210. # We need space, tab and new line, in precisely that order.
  211. as_nl='
  212. '
  213. IFS=" $as_nl"
  214. # CDPATH.
  215. $as_unset CDPATH
  216. # Name of the host.
  217. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  218. # so uname gets run too.
  219. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  220. exec 6>&1
  221. #
  222. # Initializations.
  223. #
  224. ac_default_prefix=/usr/local
  225. ac_config_libobj_dir=.
  226. cross_compiling=no
  227. subdirs=
  228. MFLAGS=
  229. MAKEFLAGS=
  230. SHELL=${CONFIG_SHELL-/bin/sh}
  231. # Maximum number of lines to put in a shell here document.
  232. # This variable seems obsolete. It should probably be removed, and
  233. # only ac_max_sed_lines should be used.
  234. : ${ac_max_here_lines=38}
  235. # Identity of this package.
  236. PACKAGE_NAME='aria2c'
  237. PACKAGE_TARNAME='aria2c'
  238. PACKAGE_VERSION='0.5.2'
  239. PACKAGE_STRING='aria2c 0.5.2'
  240. PACKAGE_BUGREPORT='tujikawa@rednoah.com'
  241. ac_unique_file="src/Socket.h"
  242. # Factoring default headers for most tests.
  243. ac_includes_default="\
  244. #include <stdio.h>
  245. #if HAVE_SYS_TYPES_H
  246. # include <sys/types.h>
  247. #endif
  248. #if HAVE_SYS_STAT_H
  249. # include <sys/stat.h>
  250. #endif
  251. #if STDC_HEADERS
  252. # include <stdlib.h>
  253. # include <stddef.h>
  254. #else
  255. # if HAVE_STDLIB_H
  256. # include <stdlib.h>
  257. # endif
  258. #endif
  259. #if HAVE_STRING_H
  260. # if !STDC_HEADERS && HAVE_MEMORY_H
  261. # include <memory.h>
  262. # endif
  263. # include <string.h>
  264. #endif
  265. #if HAVE_STRINGS_H
  266. # include <strings.h>
  267. #endif
  268. #if HAVE_INTTYPES_H
  269. # include <inttypes.h>
  270. #else
  271. # if HAVE_STDINT_H
  272. # include <stdint.h>
  273. # endif
  274. #endif
  275. #if HAVE_UNISTD_H
  276. # include <unistd.h>
  277. #endif"
  278. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CPPUNIT_CONFIG CPPUNIT_CFLAGS CPPUNIT_LIBS localedir CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB YACC LIBGNUTLS_CONFIG LIBGNUTLS_CFLAGS LIBGNUTLS_LIBS LIBGCRYPT_CONFIG LIBGCRYPT_CFLAGS LIBGCRYPT_LIBS OPENSSL_LIBS OPENSSL_CFLAGS ALLOCA CPP EGREP MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS LTLIBOBJS'
  279. ac_subst_files=''
  280. # Initialize some variables set by options.
  281. ac_init_help=
  282. ac_init_version=false
  283. # The variables have the same names as the options, with
  284. # dashes changed to underlines.
  285. cache_file=/dev/null
  286. exec_prefix=NONE
  287. no_create=
  288. no_recursion=
  289. prefix=NONE
  290. program_prefix=NONE
  291. program_suffix=NONE
  292. program_transform_name=s,x,x,
  293. silent=
  294. site=
  295. srcdir=
  296. verbose=
  297. x_includes=NONE
  298. x_libraries=NONE
  299. # Installation directory options.
  300. # These are left unexpanded so users can "make install exec_prefix=/foo"
  301. # and all the variables that are supposed to be based on exec_prefix
  302. # by default will actually change.
  303. # Use braces instead of parens because sh, perl, etc. also accept them.
  304. bindir='${exec_prefix}/bin'
  305. sbindir='${exec_prefix}/sbin'
  306. libexecdir='${exec_prefix}/libexec'
  307. datadir='${prefix}/share'
  308. sysconfdir='${prefix}/etc'
  309. sharedstatedir='${prefix}/com'
  310. localstatedir='${prefix}/var'
  311. libdir='${exec_prefix}/lib'
  312. includedir='${prefix}/include'
  313. oldincludedir='/usr/include'
  314. infodir='${prefix}/info'
  315. mandir='${prefix}/man'
  316. ac_prev=
  317. for ac_option
  318. do
  319. # If the previous option needs an argument, assign it.
  320. if test -n "$ac_prev"; then
  321. eval "$ac_prev=\$ac_option"
  322. ac_prev=
  323. continue
  324. fi
  325. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  326. # Accept the important Cygnus configure options, so we can diagnose typos.
  327. case $ac_option in
  328. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  329. ac_prev=bindir ;;
  330. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  331. bindir=$ac_optarg ;;
  332. -build | --build | --buil | --bui | --bu)
  333. ac_prev=build_alias ;;
  334. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  335. build_alias=$ac_optarg ;;
  336. -cache-file | --cache-file | --cache-fil | --cache-fi \
  337. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  338. ac_prev=cache_file ;;
  339. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  340. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  341. cache_file=$ac_optarg ;;
  342. --config-cache | -C)
  343. cache_file=config.cache ;;
  344. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  345. ac_prev=datadir ;;
  346. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  347. | --da=*)
  348. datadir=$ac_optarg ;;
  349. -disable-* | --disable-*)
  350. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  351. # Reject names that are not valid shell variable names.
  352. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  353. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  354. { (exit 1); exit 1; }; }
  355. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  356. eval "enable_$ac_feature=no" ;;
  357. -enable-* | --enable-*)
  358. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  359. # Reject names that are not valid shell variable names.
  360. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  361. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  362. { (exit 1); exit 1; }; }
  363. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  364. case $ac_option in
  365. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  366. *) ac_optarg=yes ;;
  367. esac
  368. eval "enable_$ac_feature='$ac_optarg'" ;;
  369. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  370. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  371. | --exec | --exe | --ex)
  372. ac_prev=exec_prefix ;;
  373. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  374. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  375. | --exec=* | --exe=* | --ex=*)
  376. exec_prefix=$ac_optarg ;;
  377. -gas | --gas | --ga | --g)
  378. # Obsolete; use --with-gas.
  379. with_gas=yes ;;
  380. -help | --help | --hel | --he | -h)
  381. ac_init_help=long ;;
  382. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  383. ac_init_help=recursive ;;
  384. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  385. ac_init_help=short ;;
  386. -host | --host | --hos | --ho)
  387. ac_prev=host_alias ;;
  388. -host=* | --host=* | --hos=* | --ho=*)
  389. host_alias=$ac_optarg ;;
  390. -includedir | --includedir | --includedi | --included | --include \
  391. | --includ | --inclu | --incl | --inc)
  392. ac_prev=includedir ;;
  393. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  394. | --includ=* | --inclu=* | --incl=* | --inc=*)
  395. includedir=$ac_optarg ;;
  396. -infodir | --infodir | --infodi | --infod | --info | --inf)
  397. ac_prev=infodir ;;
  398. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  399. infodir=$ac_optarg ;;
  400. -libdir | --libdir | --libdi | --libd)
  401. ac_prev=libdir ;;
  402. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  403. libdir=$ac_optarg ;;
  404. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  405. | --libexe | --libex | --libe)
  406. ac_prev=libexecdir ;;
  407. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  408. | --libexe=* | --libex=* | --libe=*)
  409. libexecdir=$ac_optarg ;;
  410. -localstatedir | --localstatedir | --localstatedi | --localstated \
  411. | --localstate | --localstat | --localsta | --localst \
  412. | --locals | --local | --loca | --loc | --lo)
  413. ac_prev=localstatedir ;;
  414. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  415. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  416. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  417. localstatedir=$ac_optarg ;;
  418. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  419. ac_prev=mandir ;;
  420. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  421. mandir=$ac_optarg ;;
  422. -nfp | --nfp | --nf)
  423. # Obsolete; use --without-fp.
  424. with_fp=no ;;
  425. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  426. | --no-cr | --no-c | -n)
  427. no_create=yes ;;
  428. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  429. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  430. no_recursion=yes ;;
  431. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  432. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  433. | --oldin | --oldi | --old | --ol | --o)
  434. ac_prev=oldincludedir ;;
  435. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  436. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  437. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  438. oldincludedir=$ac_optarg ;;
  439. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  440. ac_prev=prefix ;;
  441. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  442. prefix=$ac_optarg ;;
  443. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  444. | --program-pre | --program-pr | --program-p)
  445. ac_prev=program_prefix ;;
  446. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  447. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  448. program_prefix=$ac_optarg ;;
  449. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  450. | --program-suf | --program-su | --program-s)
  451. ac_prev=program_suffix ;;
  452. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  453. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  454. program_suffix=$ac_optarg ;;
  455. -program-transform-name | --program-transform-name \
  456. | --program-transform-nam | --program-transform-na \
  457. | --program-transform-n | --program-transform- \
  458. | --program-transform | --program-transfor \
  459. | --program-transfo | --program-transf \
  460. | --program-trans | --program-tran \
  461. | --progr-tra | --program-tr | --program-t)
  462. ac_prev=program_transform_name ;;
  463. -program-transform-name=* | --program-transform-name=* \
  464. | --program-transform-nam=* | --program-transform-na=* \
  465. | --program-transform-n=* | --program-transform-=* \
  466. | --program-transform=* | --program-transfor=* \
  467. | --program-transfo=* | --program-transf=* \
  468. | --program-trans=* | --program-tran=* \
  469. | --progr-tra=* | --program-tr=* | --program-t=*)
  470. program_transform_name=$ac_optarg ;;
  471. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  472. | -silent | --silent | --silen | --sile | --sil)
  473. silent=yes ;;
  474. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  475. ac_prev=sbindir ;;
  476. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  477. | --sbi=* | --sb=*)
  478. sbindir=$ac_optarg ;;
  479. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  480. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  481. | --sharedst | --shareds | --shared | --share | --shar \
  482. | --sha | --sh)
  483. ac_prev=sharedstatedir ;;
  484. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  485. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  486. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  487. | --sha=* | --sh=*)
  488. sharedstatedir=$ac_optarg ;;
  489. -site | --site | --sit)
  490. ac_prev=site ;;
  491. -site=* | --site=* | --sit=*)
  492. site=$ac_optarg ;;
  493. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  494. ac_prev=srcdir ;;
  495. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  496. srcdir=$ac_optarg ;;
  497. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  498. | --syscon | --sysco | --sysc | --sys | --sy)
  499. ac_prev=sysconfdir ;;
  500. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  501. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  502. sysconfdir=$ac_optarg ;;
  503. -target | --target | --targe | --targ | --tar | --ta | --t)
  504. ac_prev=target_alias ;;
  505. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  506. target_alias=$ac_optarg ;;
  507. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  508. verbose=yes ;;
  509. -version | --version | --versio | --versi | --vers | -V)
  510. ac_init_version=: ;;
  511. -with-* | --with-*)
  512. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  513. # Reject names that are not valid shell variable names.
  514. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  515. { echo "$as_me: error: invalid package name: $ac_package" >&2
  516. { (exit 1); exit 1; }; }
  517. ac_package=`echo $ac_package| sed 's/-/_/g'`
  518. case $ac_option in
  519. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  520. *) ac_optarg=yes ;;
  521. esac
  522. eval "with_$ac_package='$ac_optarg'" ;;
  523. -without-* | --without-*)
  524. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  525. # Reject names that are not valid shell variable names.
  526. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  527. { echo "$as_me: error: invalid package name: $ac_package" >&2
  528. { (exit 1); exit 1; }; }
  529. ac_package=`echo $ac_package | sed 's/-/_/g'`
  530. eval "with_$ac_package=no" ;;
  531. --x)
  532. # Obsolete; use --with-x.
  533. with_x=yes ;;
  534. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  535. | --x-incl | --x-inc | --x-in | --x-i)
  536. ac_prev=x_includes ;;
  537. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  538. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  539. x_includes=$ac_optarg ;;
  540. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  541. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  542. ac_prev=x_libraries ;;
  543. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  544. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  545. x_libraries=$ac_optarg ;;
  546. -*) { echo "$as_me: error: unrecognized option: $ac_option
  547. Try \`$0 --help' for more information." >&2
  548. { (exit 1); exit 1; }; }
  549. ;;
  550. *=*)
  551. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  552. # Reject names that are not valid shell variable names.
  553. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  554. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  555. { (exit 1); exit 1; }; }
  556. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  557. eval "$ac_envvar='$ac_optarg'"
  558. export $ac_envvar ;;
  559. *)
  560. # FIXME: should be removed in autoconf 3.0.
  561. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  562. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  563. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  564. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  565. ;;
  566. esac
  567. done
  568. if test -n "$ac_prev"; then
  569. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  570. { echo "$as_me: error: missing argument to $ac_option" >&2
  571. { (exit 1); exit 1; }; }
  572. fi
  573. # Be sure to have absolute paths.
  574. for ac_var in exec_prefix prefix
  575. do
  576. eval ac_val=$`echo $ac_var`
  577. case $ac_val in
  578. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  579. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  580. { (exit 1); exit 1; }; };;
  581. esac
  582. done
  583. # Be sure to have absolute paths.
  584. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  585. localstatedir libdir includedir oldincludedir infodir mandir
  586. do
  587. eval ac_val=$`echo $ac_var`
  588. case $ac_val in
  589. [\\/$]* | ?:[\\/]* ) ;;
  590. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  591. { (exit 1); exit 1; }; };;
  592. esac
  593. done
  594. # There might be people who depend on the old broken behavior: `$host'
  595. # used to hold the argument of --host etc.
  596. # FIXME: To remove some day.
  597. build=$build_alias
  598. host=$host_alias
  599. target=$target_alias
  600. # FIXME: To remove some day.
  601. if test "x$host_alias" != x; then
  602. if test "x$build_alias" = x; then
  603. cross_compiling=maybe
  604. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  605. If a cross compiler is detected then cross compile mode will be used." >&2
  606. elif test "x$build_alias" != "x$host_alias"; then
  607. cross_compiling=yes
  608. fi
  609. fi
  610. ac_tool_prefix=
  611. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  612. test "$silent" = yes && exec 6>/dev/null
  613. # Find the source files, if location was not specified.
  614. if test -z "$srcdir"; then
  615. ac_srcdir_defaulted=yes
  616. # Try the directory containing this script, then its parent.
  617. ac_confdir=`(dirname "$0") 2>/dev/null ||
  618. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  619. X"$0" : 'X\(//\)[^/]' \| \
  620. X"$0" : 'X\(//\)$' \| \
  621. X"$0" : 'X\(/\)' \| \
  622. . : '\(.\)' 2>/dev/null ||
  623. echo X"$0" |
  624. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  625. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  626. /^X\(\/\/\)$/{ s//\1/; q; }
  627. /^X\(\/\).*/{ s//\1/; q; }
  628. s/.*/./; q'`
  629. srcdir=$ac_confdir
  630. if test ! -r $srcdir/$ac_unique_file; then
  631. srcdir=..
  632. fi
  633. else
  634. ac_srcdir_defaulted=no
  635. fi
  636. if test ! -r $srcdir/$ac_unique_file; then
  637. if test "$ac_srcdir_defaulted" = yes; then
  638. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  639. { (exit 1); exit 1; }; }
  640. else
  641. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  642. { (exit 1); exit 1; }; }
  643. fi
  644. fi
  645. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  646. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  647. { (exit 1); exit 1; }; }
  648. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  649. ac_env_build_alias_set=${build_alias+set}
  650. ac_env_build_alias_value=$build_alias
  651. ac_cv_env_build_alias_set=${build_alias+set}
  652. ac_cv_env_build_alias_value=$build_alias
  653. ac_env_host_alias_set=${host_alias+set}
  654. ac_env_host_alias_value=$host_alias
  655. ac_cv_env_host_alias_set=${host_alias+set}
  656. ac_cv_env_host_alias_value=$host_alias
  657. ac_env_target_alias_set=${target_alias+set}
  658. ac_env_target_alias_value=$target_alias
  659. ac_cv_env_target_alias_set=${target_alias+set}
  660. ac_cv_env_target_alias_value=$target_alias
  661. ac_env_CXX_set=${CXX+set}
  662. ac_env_CXX_value=$CXX
  663. ac_cv_env_CXX_set=${CXX+set}
  664. ac_cv_env_CXX_value=$CXX
  665. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  666. ac_env_CXXFLAGS_value=$CXXFLAGS
  667. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  668. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  669. ac_env_LDFLAGS_set=${LDFLAGS+set}
  670. ac_env_LDFLAGS_value=$LDFLAGS
  671. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_cv_env_LDFLAGS_value=$LDFLAGS
  673. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  674. ac_env_CPPFLAGS_value=$CPPFLAGS
  675. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_env_CC_set=${CC+set}
  678. ac_env_CC_value=$CC
  679. ac_cv_env_CC_set=${CC+set}
  680. ac_cv_env_CC_value=$CC
  681. ac_env_CFLAGS_set=${CFLAGS+set}
  682. ac_env_CFLAGS_value=$CFLAGS
  683. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  684. ac_cv_env_CFLAGS_value=$CFLAGS
  685. ac_env_CPP_set=${CPP+set}
  686. ac_env_CPP_value=$CPP
  687. ac_cv_env_CPP_set=${CPP+set}
  688. ac_cv_env_CPP_value=$CPP
  689. #
  690. # Report the --help message.
  691. #
  692. if test "$ac_init_help" = "long"; then
  693. # Omit some internal or obsolete options to make the list less imposing.
  694. # This message is too long to be a string in the A/UX 3.1 sh.
  695. cat <<_ACEOF
  696. \`configure' configures aria2c 0.5.2 to adapt to many kinds of systems.
  697. Usage: $0 [OPTION]... [VAR=VALUE]...
  698. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  699. VAR=VALUE. See below for descriptions of some of the useful variables.
  700. Defaults for the options are specified in brackets.
  701. Configuration:
  702. -h, --help display this help and exit
  703. --help=short display options specific to this package
  704. --help=recursive display the short help of all the included packages
  705. -V, --version display version information and exit
  706. -q, --quiet, --silent do not print \`checking...' messages
  707. --cache-file=FILE cache test results in FILE [disabled]
  708. -C, --config-cache alias for \`--cache-file=config.cache'
  709. -n, --no-create do not create output files
  710. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  711. _ACEOF
  712. cat <<_ACEOF
  713. Installation directories:
  714. --prefix=PREFIX install architecture-independent files in PREFIX
  715. [$ac_default_prefix]
  716. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  717. [PREFIX]
  718. By default, \`make install' will install all the files in
  719. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  720. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  721. for instance \`--prefix=\$HOME'.
  722. For better control, use the options below.
  723. Fine tuning of the installation directories:
  724. --bindir=DIR user executables [EPREFIX/bin]
  725. --sbindir=DIR system admin executables [EPREFIX/sbin]
  726. --libexecdir=DIR program executables [EPREFIX/libexec]
  727. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  728. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  729. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  730. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  731. --libdir=DIR object code libraries [EPREFIX/lib]
  732. --includedir=DIR C header files [PREFIX/include]
  733. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  734. --infodir=DIR info documentation [PREFIX/info]
  735. --mandir=DIR man documentation [PREFIX/man]
  736. _ACEOF
  737. cat <<\_ACEOF
  738. Program names:
  739. --program-prefix=PREFIX prepend PREFIX to installed program names
  740. --program-suffix=SUFFIX append SUFFIX to installed program names
  741. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  742. System types:
  743. --build=BUILD configure for building on BUILD [guessed]
  744. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  745. _ACEOF
  746. fi
  747. if test -n "$ac_init_help"; then
  748. case $ac_init_help in
  749. short | recursive ) echo "Configuration of aria2c 0.5.2:";;
  750. esac
  751. cat <<\_ACEOF
  752. Optional Features:
  753. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  754. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  755. --disable-dependency-tracking speeds up one-time build
  756. --enable-dependency-tracking do not reject slow dependency extractors
  757. --disable-nls do not use Native Language Support
  758. --disable-rpath do not hardcode runtime library paths
  759. Optional Packages:
  760. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  761. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  762. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  763. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  764. --with-gnutls use gnutls library if installed. Default: yes
  765. --with-openssl use openssl library if installed. Default: yes
  766. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  767. --with-libgcrypt-prefix=PFX
  768. prefix where LIBGCRYPT is installed (optional)
  769. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  770. --with-gnu-ld assume the C compiler uses GNU ld default=no
  771. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  772. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  773. --with-included-gettext use the GNU gettext library included here
  774. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  775. --without-libintl-prefix don't search for libintl in includedir and libdir
  776. Some influential environment variables:
  777. CXX C++ compiler command
  778. CXXFLAGS C++ compiler flags
  779. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  780. nonstandard directory <lib dir>
  781. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  782. headers in a nonstandard directory <include dir>
  783. CC C compiler command
  784. CFLAGS C compiler flags
  785. CPP C preprocessor
  786. Use these variables to override the choices made by `configure' or to help
  787. it to find libraries and programs with nonstandard names/locations.
  788. Report bugs to <tujikawa@rednoah.com>.
  789. _ACEOF
  790. fi
  791. if test "$ac_init_help" = "recursive"; then
  792. # If there are subdirs, report their specific --help.
  793. ac_popdir=`pwd`
  794. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  795. test -d $ac_dir || continue
  796. ac_builddir=.
  797. if test "$ac_dir" != .; then
  798. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  799. # A "../" for each directory in $ac_dir_suffix.
  800. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  801. else
  802. ac_dir_suffix= ac_top_builddir=
  803. fi
  804. case $srcdir in
  805. .) # No --srcdir option. We are building in place.
  806. ac_srcdir=.
  807. if test -z "$ac_top_builddir"; then
  808. ac_top_srcdir=.
  809. else
  810. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  811. fi ;;
  812. [\\/]* | ?:[\\/]* ) # Absolute path.
  813. ac_srcdir=$srcdir$ac_dir_suffix;
  814. ac_top_srcdir=$srcdir ;;
  815. *) # Relative path.
  816. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  817. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  818. esac
  819. # Do not use `cd foo && pwd` to compute absolute paths, because
  820. # the directories may not exist.
  821. case `pwd` in
  822. .) ac_abs_builddir="$ac_dir";;
  823. *)
  824. case "$ac_dir" in
  825. .) ac_abs_builddir=`pwd`;;
  826. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  827. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  828. esac;;
  829. esac
  830. case $ac_abs_builddir in
  831. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  832. *)
  833. case ${ac_top_builddir}. in
  834. .) ac_abs_top_builddir=$ac_abs_builddir;;
  835. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  836. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  837. esac;;
  838. esac
  839. case $ac_abs_builddir in
  840. .) ac_abs_srcdir=$ac_srcdir;;
  841. *)
  842. case $ac_srcdir in
  843. .) ac_abs_srcdir=$ac_abs_builddir;;
  844. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  845. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  846. esac;;
  847. esac
  848. case $ac_abs_builddir in
  849. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  850. *)
  851. case $ac_top_srcdir in
  852. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  853. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  854. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  855. esac;;
  856. esac
  857. cd $ac_dir
  858. # Check for guested configure; otherwise get Cygnus style configure.
  859. if test -f $ac_srcdir/configure.gnu; then
  860. echo
  861. $SHELL $ac_srcdir/configure.gnu --help=recursive
  862. elif test -f $ac_srcdir/configure; then
  863. echo
  864. $SHELL $ac_srcdir/configure --help=recursive
  865. elif test -f $ac_srcdir/configure.ac ||
  866. test -f $ac_srcdir/configure.in; then
  867. echo
  868. $ac_configure --help
  869. else
  870. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  871. fi
  872. cd "$ac_popdir"
  873. done
  874. fi
  875. test -n "$ac_init_help" && exit 0
  876. if $ac_init_version; then
  877. cat <<\_ACEOF
  878. aria2c configure 0.5.2
  879. generated by GNU Autoconf 2.59
  880. Copyright (C) 2003 Free Software Foundation, Inc.
  881. This configure script is free software; the Free Software Foundation
  882. gives unlimited permission to copy, distribute and modify it.
  883. _ACEOF
  884. exit 0
  885. fi
  886. exec 5>config.log
  887. cat >&5 <<_ACEOF
  888. This file contains any messages produced by compilers while
  889. running configure, to aid debugging if configure makes a mistake.
  890. It was created by aria2c $as_me 0.5.2, which was
  891. generated by GNU Autoconf 2.59. Invocation command line was
  892. $ $0 $@
  893. _ACEOF
  894. {
  895. cat <<_ASUNAME
  896. ## --------- ##
  897. ## Platform. ##
  898. ## --------- ##
  899. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  900. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  901. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  902. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  903. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  904. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  905. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  906. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  907. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  908. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  909. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  910. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  911. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  912. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  913. _ASUNAME
  914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  915. for as_dir in $PATH
  916. do
  917. IFS=$as_save_IFS
  918. test -z "$as_dir" && as_dir=.
  919. echo "PATH: $as_dir"
  920. done
  921. } >&5
  922. cat >&5 <<_ACEOF
  923. ## ----------- ##
  924. ## Core tests. ##
  925. ## ----------- ##
  926. _ACEOF
  927. # Keep a trace of the command line.
  928. # Strip out --no-create and --no-recursion so they do not pile up.
  929. # Strip out --silent because we don't want to record it for future runs.
  930. # Also quote any args containing shell meta-characters.
  931. # Make two passes to allow for proper duplicate-argument suppression.
  932. ac_configure_args=
  933. ac_configure_args0=
  934. ac_configure_args1=
  935. ac_sep=
  936. ac_must_keep_next=false
  937. for ac_pass in 1 2
  938. do
  939. for ac_arg
  940. do
  941. case $ac_arg in
  942. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  943. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  944. | -silent | --silent | --silen | --sile | --sil)
  945. continue ;;
  946. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  947. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  948. esac
  949. case $ac_pass in
  950. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  951. 2)
  952. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  953. if test $ac_must_keep_next = true; then
  954. ac_must_keep_next=false # Got value, back to normal.
  955. else
  956. case $ac_arg in
  957. *=* | --config-cache | -C | -disable-* | --disable-* \
  958. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  959. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  960. | -with-* | --with-* | -without-* | --without-* | --x)
  961. case "$ac_configure_args0 " in
  962. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  963. esac
  964. ;;
  965. -* ) ac_must_keep_next=true ;;
  966. esac
  967. fi
  968. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  969. # Get rid of the leading space.
  970. ac_sep=" "
  971. ;;
  972. esac
  973. done
  974. done
  975. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  976. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  977. # When interrupted or exit'd, cleanup temporary files, and complete
  978. # config.log. We remove comments because anyway the quotes in there
  979. # would cause problems or look ugly.
  980. # WARNING: Be sure not to use single quotes in there, as some shells,
  981. # such as our DU 5.0 friend, will then `close' the trap.
  982. trap 'exit_status=$?
  983. # Save into config.log some information that might help in debugging.
  984. {
  985. echo
  986. cat <<\_ASBOX
  987. ## ---------------- ##
  988. ## Cache variables. ##
  989. ## ---------------- ##
  990. _ASBOX
  991. echo
  992. # The following way of writing the cache mishandles newlines in values,
  993. {
  994. (set) 2>&1 |
  995. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  996. *ac_space=\ *)
  997. sed -n \
  998. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  999. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1000. ;;
  1001. *)
  1002. sed -n \
  1003. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1004. ;;
  1005. esac;
  1006. }
  1007. echo
  1008. cat <<\_ASBOX
  1009. ## ----------------- ##
  1010. ## Output variables. ##
  1011. ## ----------------- ##
  1012. _ASBOX
  1013. echo
  1014. for ac_var in $ac_subst_vars
  1015. do
  1016. eval ac_val=$`echo $ac_var`
  1017. echo "$ac_var='"'"'$ac_val'"'"'"
  1018. done | sort
  1019. echo
  1020. if test -n "$ac_subst_files"; then
  1021. cat <<\_ASBOX
  1022. ## ------------- ##
  1023. ## Output files. ##
  1024. ## ------------- ##
  1025. _ASBOX
  1026. echo
  1027. for ac_var in $ac_subst_files
  1028. do
  1029. eval ac_val=$`echo $ac_var`
  1030. echo "$ac_var='"'"'$ac_val'"'"'"
  1031. done | sort
  1032. echo
  1033. fi
  1034. if test -s confdefs.h; then
  1035. cat <<\_ASBOX
  1036. ## ----------- ##
  1037. ## confdefs.h. ##
  1038. ## ----------- ##
  1039. _ASBOX
  1040. echo
  1041. sed "/^$/d" confdefs.h | sort
  1042. echo
  1043. fi
  1044. test "$ac_signal" != 0 &&
  1045. echo "$as_me: caught signal $ac_signal"
  1046. echo "$as_me: exit $exit_status"
  1047. } >&5
  1048. rm -f core *.core &&
  1049. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1050. exit $exit_status
  1051. ' 0
  1052. for ac_signal in 1 2 13 15; do
  1053. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1054. done
  1055. ac_signal=0
  1056. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1057. rm -rf conftest* confdefs.h
  1058. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1059. echo >confdefs.h
  1060. # Predefined preprocessor variables.
  1061. cat >>confdefs.h <<_ACEOF
  1062. #define PACKAGE_NAME "$PACKAGE_NAME"
  1063. _ACEOF
  1064. cat >>confdefs.h <<_ACEOF
  1065. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1066. _ACEOF
  1067. cat >>confdefs.h <<_ACEOF
  1068. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1069. _ACEOF
  1070. cat >>confdefs.h <<_ACEOF
  1071. #define PACKAGE_STRING "$PACKAGE_STRING"
  1072. _ACEOF
  1073. cat >>confdefs.h <<_ACEOF
  1074. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1075. _ACEOF
  1076. # Let the site file select an alternate cache file if it wants to.
  1077. # Prefer explicitly selected file to automatically selected ones.
  1078. if test -z "$CONFIG_SITE"; then
  1079. if test "x$prefix" != xNONE; then
  1080. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1081. else
  1082. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1083. fi
  1084. fi
  1085. for ac_site_file in $CONFIG_SITE; do
  1086. if test -r "$ac_site_file"; then
  1087. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1088. echo "$as_me: loading site script $ac_site_file" >&6;}
  1089. sed 's/^/| /' "$ac_site_file" >&5
  1090. . "$ac_site_file"
  1091. fi
  1092. done
  1093. if test -r "$cache_file"; then
  1094. # Some versions of bash will fail to source /dev/null (special
  1095. # files actually), so we avoid doing that.
  1096. if test -f "$cache_file"; then
  1097. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1098. echo "$as_me: loading cache $cache_file" >&6;}
  1099. case $cache_file in
  1100. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1101. *) . ./$cache_file;;
  1102. esac
  1103. fi
  1104. else
  1105. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1106. echo "$as_me: creating cache $cache_file" >&6;}
  1107. >$cache_file
  1108. fi
  1109. # Check that the precious variables saved in the cache have kept the same
  1110. # value.
  1111. ac_cache_corrupted=false
  1112. for ac_var in `(set) 2>&1 |
  1113. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1114. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1115. eval ac_new_set=\$ac_env_${ac_var}_set
  1116. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1117. eval ac_new_val="\$ac_env_${ac_var}_value"
  1118. case $ac_old_set,$ac_new_set in
  1119. set,)
  1120. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1121. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1122. ac_cache_corrupted=: ;;
  1123. ,set)
  1124. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1125. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1126. ac_cache_corrupted=: ;;
  1127. ,);;
  1128. *)
  1129. if test "x$ac_old_val" != "x$ac_new_val"; then
  1130. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1131. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1132. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1133. echo "$as_me: former value: $ac_old_val" >&2;}
  1134. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1135. echo "$as_me: current value: $ac_new_val" >&2;}
  1136. ac_cache_corrupted=:
  1137. fi;;
  1138. esac
  1139. # Pass precious variables to config.status.
  1140. if test "$ac_new_set" = set; then
  1141. case $ac_new_val in
  1142. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1143. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1144. *) ac_arg=$ac_var=$ac_new_val ;;
  1145. esac
  1146. case " $ac_configure_args " in
  1147. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1148. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1149. esac
  1150. fi
  1151. done
  1152. if $ac_cache_corrupted; then
  1153. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1154. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1155. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1156. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1157. { (exit 1); exit 1; }; }
  1158. fi
  1159. ac_ext=c
  1160. ac_cpp='$CPP $CPPFLAGS'
  1161. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1162. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1163. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1164. am__api_version="1.9"
  1165. ac_aux_dir=
  1166. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1167. if test -f $ac_dir/install-sh; then
  1168. ac_aux_dir=$ac_dir
  1169. ac_install_sh="$ac_aux_dir/install-sh -c"
  1170. break
  1171. elif test -f $ac_dir/install.sh; then
  1172. ac_aux_dir=$ac_dir
  1173. ac_install_sh="$ac_aux_dir/install.sh -c"
  1174. break
  1175. elif test -f $ac_dir/shtool; then
  1176. ac_aux_dir=$ac_dir
  1177. ac_install_sh="$ac_aux_dir/shtool install -c"
  1178. break
  1179. fi
  1180. done
  1181. if test -z "$ac_aux_dir"; then
  1182. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1183. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1184. { (exit 1); exit 1; }; }
  1185. fi
  1186. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1187. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1188. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1189. # Find a good install program. We prefer a C program (faster),
  1190. # so one script is as good as another. But avoid the broken or
  1191. # incompatible versions:
  1192. # SysV /etc/install, /usr/sbin/install
  1193. # SunOS /usr/etc/install
  1194. # IRIX /sbin/install
  1195. # AIX /bin/install
  1196. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1197. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1198. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1199. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1200. # OS/2's system install, which has a completely different semantic
  1201. # ./install, which can be erroneously created by make from ./install.sh.
  1202. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1203. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1204. if test -z "$INSTALL"; then
  1205. if test "${ac_cv_path_install+set}" = set; then
  1206. echo $ECHO_N "(cached) $ECHO_C" >&6
  1207. else
  1208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1209. for as_dir in $PATH
  1210. do
  1211. IFS=$as_save_IFS
  1212. test -z "$as_dir" && as_dir=.
  1213. # Account for people who put trailing slashes in PATH elements.
  1214. case $as_dir/ in
  1215. ./ | .// | /cC/* | \
  1216. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1217. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1218. /usr/ucb/* ) ;;
  1219. *)
  1220. # OSF1 and SCO ODT 3.0 have their own names for install.
  1221. # Don't use installbsd from OSF since it installs stuff as root
  1222. # by default.
  1223. for ac_prog in ginstall scoinst install; do
  1224. for ac_exec_ext in '' $ac_executable_extensions; do
  1225. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1226. if test $ac_prog = install &&
  1227. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1228. # AIX install. It has an incompatible calling convention.
  1229. :
  1230. elif test $ac_prog = install &&
  1231. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1232. # program-specific install script used by HP pwplus--don't use.
  1233. :
  1234. else
  1235. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1236. break 3
  1237. fi
  1238. fi
  1239. done
  1240. done
  1241. ;;
  1242. esac
  1243. done
  1244. fi
  1245. if test "${ac_cv_path_install+set}" = set; then
  1246. INSTALL=$ac_cv_path_install
  1247. else
  1248. # As a last resort, use the slow shell script. We don't cache a
  1249. # path for INSTALL within a source directory, because that will
  1250. # break other packages using the cache if that directory is
  1251. # removed, or if the path is relative.
  1252. INSTALL=$ac_install_sh
  1253. fi
  1254. fi
  1255. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1256. echo "${ECHO_T}$INSTALL" >&6
  1257. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1258. # It thinks the first close brace ends the variable substitution.
  1259. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1260. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1261. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1262. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1263. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1264. # Just in case
  1265. sleep 1
  1266. echo timestamp > conftest.file
  1267. # Do `set' in a subshell so we don't clobber the current shell's
  1268. # arguments. Must try -L first in case configure is actually a
  1269. # symlink; some systems play weird games with the mod time of symlinks
  1270. # (eg FreeBSD returns the mod time of the symlink's containing
  1271. # directory).
  1272. if (
  1273. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1274. if test "$*" = "X"; then
  1275. # -L didn't work.
  1276. set X `ls -t $srcdir/configure conftest.file`
  1277. fi
  1278. rm -f conftest.file
  1279. if test "$*" != "X $srcdir/configure conftest.file" \
  1280. && test "$*" != "X conftest.file $srcdir/configure"; then
  1281. # If neither matched, then we have a broken ls. This can happen
  1282. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1283. # broken ls alias from the environment. This has actually
  1284. # happened. Such a system could not be considered "sane".
  1285. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1286. alias in your environment" >&5
  1287. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1288. alias in your environment" >&2;}
  1289. { (exit 1); exit 1; }; }
  1290. fi
  1291. test "$2" = conftest.file
  1292. )
  1293. then
  1294. # Ok.
  1295. :
  1296. else
  1297. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1298. Check your system clock" >&5
  1299. echo "$as_me: error: newly created file is older than distributed files!
  1300. Check your system clock" >&2;}
  1301. { (exit 1); exit 1; }; }
  1302. fi
  1303. echo "$as_me:$LINENO: result: yes" >&5
  1304. echo "${ECHO_T}yes" >&6
  1305. test "$program_prefix" != NONE &&
  1306. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1307. # Use a double $ so make ignores it.
  1308. test "$program_suffix" != NONE &&
  1309. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1310. # Double any \ or $. echo might interpret backslashes.
  1311. # By default was `s,x,x', remove it if useless.
  1312. cat <<\_ACEOF >conftest.sed
  1313. s/[\\$]/&&/g;s/;s,x,x,$//
  1314. _ACEOF
  1315. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1316. rm conftest.sed
  1317. # expand $ac_aux_dir to an absolute path
  1318. am_aux_dir=`cd $ac_aux_dir && pwd`
  1319. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1320. # Use eval to expand $SHELL
  1321. if eval "$MISSING --run true"; then
  1322. am_missing_run="$MISSING --run "
  1323. else
  1324. am_missing_run=
  1325. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1326. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1327. fi
  1328. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1329. # We used to keeping the `.' as first argument, in order to
  1330. # allow $(mkdir_p) to be used without argument. As in
  1331. # $(mkdir_p) $(somedir)
  1332. # where $(somedir) is conditionally defined. However this is wrong
  1333. # for two reasons:
  1334. # 1. if the package is installed by a user who cannot write `.'
  1335. # make install will fail,
  1336. # 2. the above comment should most certainly read
  1337. # $(mkdir_p) $(DESTDIR)$(somedir)
  1338. # so it does not work when $(somedir) is undefined and
  1339. # $(DESTDIR) is not.
  1340. # To support the latter case, we have to write
  1341. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1342. # so the `.' trick is pointless.
  1343. mkdir_p='mkdir -p --'
  1344. else
  1345. # On NextStep and OpenStep, the `mkdir' command does not
  1346. # recognize any option. It will interpret all options as
  1347. # directories to create, and then abort because `.' already
  1348. # exists.
  1349. for d in ./-p ./--version;
  1350. do
  1351. test -d $d && rmdir $d
  1352. done
  1353. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1354. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1355. mkdir_p='$(mkinstalldirs)'
  1356. else
  1357. mkdir_p='$(install_sh) -d'
  1358. fi
  1359. fi
  1360. for ac_prog in gawk mawk nawk awk
  1361. do
  1362. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1363. set dummy $ac_prog; ac_word=$2
  1364. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1365. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1366. if test "${ac_cv_prog_AWK+set}" = set; then
  1367. echo $ECHO_N "(cached) $ECHO_C" >&6
  1368. else
  1369. if test -n "$AWK"; then
  1370. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1371. else
  1372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1373. for as_dir in $PATH
  1374. do
  1375. IFS=$as_save_IFS
  1376. test -z "$as_dir" && as_dir=.
  1377. for ac_exec_ext in '' $ac_executable_extensions; do
  1378. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1379. ac_cv_prog_AWK="$ac_prog"
  1380. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1381. break 2
  1382. fi
  1383. done
  1384. done
  1385. fi
  1386. fi
  1387. AWK=$ac_cv_prog_AWK
  1388. if test -n "$AWK"; then
  1389. echo "$as_me:$LINENO: result: $AWK" >&5
  1390. echo "${ECHO_T}$AWK" >&6
  1391. else
  1392. echo "$as_me:$LINENO: result: no" >&5
  1393. echo "${ECHO_T}no" >&6
  1394. fi
  1395. test -n "$AWK" && break
  1396. done
  1397. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1398. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1399. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1400. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1401. echo $ECHO_N "(cached) $ECHO_C" >&6
  1402. else
  1403. cat >conftest.make <<\_ACEOF
  1404. all:
  1405. @echo 'ac_maketemp="$(MAKE)"'
  1406. _ACEOF
  1407. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1408. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1409. if test -n "$ac_maketemp"; then
  1410. eval ac_cv_prog_make_${ac_make}_set=yes
  1411. else
  1412. eval ac_cv_prog_make_${ac_make}_set=no
  1413. fi
  1414. rm -f conftest.make
  1415. fi
  1416. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1417. echo "$as_me:$LINENO: result: yes" >&5
  1418. echo "${ECHO_T}yes" >&6
  1419. SET_MAKE=
  1420. else
  1421. echo "$as_me:$LINENO: result: no" >&5
  1422. echo "${ECHO_T}no" >&6
  1423. SET_MAKE="MAKE=${MAKE-make}"
  1424. fi
  1425. rm -rf .tst 2>/dev/null
  1426. mkdir .tst 2>/dev/null
  1427. if test -d .tst; then
  1428. am__leading_dot=.
  1429. else
  1430. am__leading_dot=_
  1431. fi
  1432. rmdir .tst 2>/dev/null
  1433. # test to see if srcdir already configured
  1434. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1435. test -f $srcdir/config.status; then
  1436. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1437. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1438. { (exit 1); exit 1; }; }
  1439. fi
  1440. # test whether we have cygpath
  1441. if test -z "$CYGPATH_W"; then
  1442. if (cygpath --version) >/dev/null 2>/dev/null; then
  1443. CYGPATH_W='cygpath -w'
  1444. else
  1445. CYGPATH_W=echo
  1446. fi
  1447. fi
  1448. # Define the identity of the package.
  1449. PACKAGE='aria2c'
  1450. VERSION='0.5.2'
  1451. cat >>confdefs.h <<_ACEOF
  1452. #define PACKAGE "$PACKAGE"
  1453. _ACEOF
  1454. cat >>confdefs.h <<_ACEOF
  1455. #define VERSION "$VERSION"
  1456. _ACEOF
  1457. # Some tools Automake needs.
  1458. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1459. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1460. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1461. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1462. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1463. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1464. # Installed binaries are usually stripped using `strip' when the user
  1465. # run `make install-strip'. However `strip' might not be the right
  1466. # tool to use in cross-compilation environments, therefore Automake
  1467. # will honor the `STRIP' environment variable to overrule this program.
  1468. if test "$cross_compiling" != no; then
  1469. if test -n "$ac_tool_prefix"; then
  1470. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1471. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1472. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1473. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1474. if test "${ac_cv_prog_STRIP+set}" = set; then
  1475. echo $ECHO_N "(cached) $ECHO_C" >&6
  1476. else
  1477. if test -n "$STRIP"; then
  1478. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1479. else
  1480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1481. for as_dir in $PATH
  1482. do
  1483. IFS=$as_save_IFS
  1484. test -z "$as_dir" && as_dir=.
  1485. for ac_exec_ext in '' $ac_executable_extensions; do
  1486. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1487. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1488. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1489. break 2
  1490. fi
  1491. done
  1492. done
  1493. fi
  1494. fi
  1495. STRIP=$ac_cv_prog_STRIP
  1496. if test -n "$STRIP"; then
  1497. echo "$as_me:$LINENO: result: $STRIP" >&5
  1498. echo "${ECHO_T}$STRIP" >&6
  1499. else
  1500. echo "$as_me:$LINENO: result: no" >&5
  1501. echo "${ECHO_T}no" >&6
  1502. fi
  1503. fi
  1504. if test -z "$ac_cv_prog_STRIP"; then
  1505. ac_ct_STRIP=$STRIP
  1506. # Extract the first word of "strip", so it can be a program name with args.
  1507. set dummy strip; ac_word=$2
  1508. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1509. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1510. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1511. echo $ECHO_N "(cached) $ECHO_C" >&6
  1512. else
  1513. if test -n "$ac_ct_STRIP"; then
  1514. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1515. else
  1516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1517. for as_dir in $PATH
  1518. do
  1519. IFS=$as_save_IFS
  1520. test -z "$as_dir" && as_dir=.
  1521. for ac_exec_ext in '' $ac_executable_extensions; do
  1522. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1523. ac_cv_prog_ac_ct_STRIP="strip"
  1524. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1525. break 2
  1526. fi
  1527. done
  1528. done
  1529. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1530. fi
  1531. fi
  1532. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1533. if test -n "$ac_ct_STRIP"; then
  1534. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1535. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1536. else
  1537. echo "$as_me:$LINENO: result: no" >&5
  1538. echo "${ECHO_T}no" >&6
  1539. fi
  1540. STRIP=$ac_ct_STRIP
  1541. else
  1542. STRIP="$ac_cv_prog_STRIP"
  1543. fi
  1544. fi
  1545. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1546. # We need awk for the "check" target. The system "awk" is bad on
  1547. # some platforms.
  1548. # Always define AMTAR for backward compatibility.
  1549. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1550. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1551. # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
  1552. if test "${with_cppunit_prefix+set}" = set; then
  1553. withval="$with_cppunit_prefix"
  1554. cppunit_config_prefix="$withval"
  1555. else
  1556. cppunit_config_prefix=""
  1557. fi;
  1558. # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
  1559. if test "${with_cppunit_exec_prefix+set}" = set; then
  1560. withval="$with_cppunit_exec_prefix"
  1561. cppunit_config_exec_prefix="$withval"
  1562. else
  1563. cppunit_config_exec_prefix=""
  1564. fi;
  1565. if test x$cppunit_config_exec_prefix != x ; then
  1566. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  1567. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1568. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  1569. fi
  1570. fi
  1571. if test x$cppunit_config_prefix != x ; then
  1572. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  1573. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1574. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  1575. fi
  1576. fi
  1577. # Extract the first word of "cppunit-config", so it can be a program name with args.
  1578. set dummy cppunit-config; ac_word=$2
  1579. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1580. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1581. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  1582. echo $ECHO_N "(cached) $ECHO_C" >&6
  1583. else
  1584. case $CPPUNIT_CONFIG in
  1585. [\\/]* | ?:[\\/]*)
  1586. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  1587. ;;
  1588. *)
  1589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1590. for as_dir in $PATH
  1591. do
  1592. IFS=$as_save_IFS
  1593. test -z "$as_dir" && as_dir=.
  1594. for ac_exec_ext in '' $ac_executable_extensions; do
  1595. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1596. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  1597. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1598. break 2
  1599. fi
  1600. done
  1601. done
  1602. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  1603. ;;
  1604. esac
  1605. fi
  1606. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  1607. if test -n "$CPPUNIT_CONFIG"; then
  1608. echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  1609. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
  1610. else
  1611. echo "$as_me:$LINENO: result: no" >&5
  1612. echo "${ECHO_T}no" >&6
  1613. fi
  1614. cppunit_version_min=1.10.2
  1615. echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  1616. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
  1617. no_cppunit=""
  1618. if test "$CPPUNIT_CONFIG" = "no" ; then
  1619. no_cppunit=yes
  1620. else
  1621. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  1622. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  1623. cppunit_version=`$CPPUNIT_CONFIG --version`
  1624. cppunit_major_version=`echo $cppunit_version | \
  1625. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1626. cppunit_minor_version=`echo $cppunit_version | \
  1627. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1628. cppunit_micro_version=`echo $cppunit_version | \
  1629. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1630. cppunit_major_min=`echo $cppunit_version_min | \
  1631. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1632. cppunit_minor_min=`echo $cppunit_version_min | \
  1633. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1634. cppunit_micro_min=`echo $cppunit_version_min | \
  1635. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1636. cppunit_version_proper=`expr \
  1637. $cppunit_major_version \> $cppunit_major_min \| \
  1638. $cppunit_major_version \= $cppunit_major_min \& \
  1639. $cppunit_minor_version \> $cppunit_minor_min \| \
  1640. $cppunit_major_version \= $cppunit_major_min \& \
  1641. $cppunit_minor_version \= $cppunit_minor_min \& \
  1642. $cppunit_micro_version \>= $cppunit_micro_min `
  1643. if test "$cppunit_version_proper" = "1" ; then
  1644. echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  1645. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
  1646. else
  1647. echo "$as_me:$LINENO: result: no" >&5
  1648. echo "${ECHO_T}no" >&6
  1649. no_cppunit=yes
  1650. fi
  1651. fi
  1652. if test "x$no_cppunit" = x ; then
  1653. :
  1654. else
  1655. CPPUNIT_CFLAGS=""
  1656. CPPUNIT_LIBS=""
  1657. :
  1658. fi
  1659. ac_config_headers="$ac_config_headers config.h"
  1660. # Set localedir
  1661. localedir=${datadir}/locale
  1662. # Checks for arguments.
  1663. # Check whether --with-gnutls or --without-gnutls was given.
  1664. if test "${with_gnutls+set}" = set; then
  1665. withval="$with_gnutls"
  1666. with_gnutls=$enableval
  1667. else
  1668. with_gnutls=yes
  1669. fi;
  1670. # Check whether --with-openssl or --without-openssl was given.
  1671. if test "${with_openssl+set}" = set; then
  1672. withval="$with_openssl"
  1673. with_openssl=$enableval
  1674. else
  1675. with_openssl=yes
  1676. fi;
  1677. # Checks for programs.
  1678. ac_ext=cc
  1679. ac_cpp='$CXXCPP $CPPFLAGS'
  1680. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1681. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1682. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1683. if test -n "$ac_tool_prefix"; then
  1684. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1685. do
  1686. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1687. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1688. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1689. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1690. if test "${ac_cv_prog_CXX+set}" = set; then
  1691. echo $ECHO_N "(cached) $ECHO_C" >&6
  1692. else
  1693. if test -n "$CXX"; then
  1694. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1695. else
  1696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1697. for as_dir in $PATH
  1698. do
  1699. IFS=$as_save_IFS
  1700. test -z "$as_dir" && as_dir=.
  1701. for ac_exec_ext in '' $ac_executable_extensions; do
  1702. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1703. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1704. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1705. break 2
  1706. fi
  1707. done
  1708. done
  1709. fi
  1710. fi
  1711. CXX=$ac_cv_prog_CXX
  1712. if test -n "$CXX"; then
  1713. echo "$as_me:$LINENO: result: $CXX" >&5
  1714. echo "${ECHO_T}$CXX" >&6
  1715. else
  1716. echo "$as_me:$LINENO: result: no" >&5
  1717. echo "${ECHO_T}no" >&6
  1718. fi
  1719. test -n "$CXX" && break
  1720. done
  1721. fi
  1722. if test -z "$CXX"; then
  1723. ac_ct_CXX=$CXX
  1724. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1725. do
  1726. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1727. set dummy $ac_prog; ac_word=$2
  1728. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1729. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1730. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1731. echo $ECHO_N "(cached) $ECHO_C" >&6
  1732. else
  1733. if test -n "$ac_ct_CXX"; then
  1734. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1735. else
  1736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1737. for as_dir in $PATH
  1738. do
  1739. IFS=$as_save_IFS
  1740. test -z "$as_dir" && as_dir=.
  1741. for ac_exec_ext in '' $ac_executable_extensions; do
  1742. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1743. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1744. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1745. break 2
  1746. fi
  1747. done
  1748. done
  1749. fi
  1750. fi
  1751. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1752. if test -n "$ac_ct_CXX"; then
  1753. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1754. echo "${ECHO_T}$ac_ct_CXX" >&6
  1755. else
  1756. echo "$as_me:$LINENO: result: no" >&5
  1757. echo "${ECHO_T}no" >&6
  1758. fi
  1759. test -n "$ac_ct_CXX" && break
  1760. done
  1761. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1762. CXX=$ac_ct_CXX
  1763. fi
  1764. # Provide some information about the compiler.
  1765. echo "$as_me:$LINENO:" \
  1766. "checking for C++ compiler version" >&5
  1767. ac_compiler=`set X $ac_compile; echo $2`
  1768. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1769. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1770. ac_status=$?
  1771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1772. (exit $ac_status); }
  1773. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1774. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1775. ac_status=$?
  1776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1777. (exit $ac_status); }
  1778. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1779. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1780. ac_status=$?
  1781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1782. (exit $ac_status); }
  1783. cat >conftest.$ac_ext <<_ACEOF
  1784. /* confdefs.h. */
  1785. _ACEOF
  1786. cat confdefs.h >>conftest.$ac_ext
  1787. cat >>conftest.$ac_ext <<_ACEOF
  1788. /* end confdefs.h. */
  1789. int
  1790. main ()
  1791. {
  1792. ;
  1793. return 0;
  1794. }
  1795. _ACEOF
  1796. ac_clean_files_save=$ac_clean_files
  1797. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1798. # Try to create an executable without -o first, disregard a.out.
  1799. # It will help us diagnose broken compilers, and finding out an intuition
  1800. # of exeext.
  1801. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1802. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1803. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1804. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1805. (eval $ac_link_default) 2>&5
  1806. ac_status=$?
  1807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1808. (exit $ac_status); }; then
  1809. # Find the output, starting from the most likely. This scheme is
  1810. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1811. # resort.
  1812. # Be careful to initialize this variable, since it used to be cached.
  1813. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1814. ac_cv_exeext=
  1815. # b.out is created by i960 compilers.
  1816. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1817. do
  1818. test -f "$ac_file" || continue
  1819. case $ac_file in
  1820. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1821. ;;
  1822. conftest.$ac_ext )
  1823. # This is the source file.
  1824. ;;
  1825. [ab].out )
  1826. # We found the default executable, but exeext='' is most
  1827. # certainly right.
  1828. break;;
  1829. *.* )
  1830. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1831. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1832. # but it would be cool to find out if it's true. Does anybody
  1833. # maintain Libtool? --akim.
  1834. export ac_cv_exeext
  1835. break;;
  1836. * )
  1837. break;;
  1838. esac
  1839. done
  1840. else
  1841. echo "$as_me: failed program was:" >&5
  1842. sed 's/^/| /' conftest.$ac_ext >&5
  1843. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1844. See \`config.log' for more details." >&5
  1845. echo "$as_me: error: C++ compiler cannot create executables
  1846. See \`config.log' for more details." >&2;}
  1847. { (exit 77); exit 77; }; }
  1848. fi
  1849. ac_exeext=$ac_cv_exeext
  1850. echo "$as_me:$LINENO: result: $ac_file" >&5
  1851. echo "${ECHO_T}$ac_file" >&6
  1852. # Check the compiler produces executables we can run. If not, either
  1853. # the compiler is broken, or we cross compile.
  1854. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1855. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1856. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1857. # If not cross compiling, check that we can run a simple program.
  1858. if test "$cross_compiling" != yes; then
  1859. if { ac_try='./$ac_file'
  1860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1861. (eval $ac_try) 2>&5
  1862. ac_status=$?
  1863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1864. (exit $ac_status); }; }; then
  1865. cross_compiling=no
  1866. else
  1867. if test "$cross_compiling" = maybe; then
  1868. cross_compiling=yes
  1869. else
  1870. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1871. If you meant to cross compile, use \`--host'.
  1872. See \`config.log' for more details." >&5
  1873. echo "$as_me: error: cannot run C++ compiled programs.
  1874. If you meant to cross compile, use \`--host'.
  1875. See \`config.log' for more details." >&2;}
  1876. { (exit 1); exit 1; }; }
  1877. fi
  1878. fi
  1879. fi
  1880. echo "$as_me:$LINENO: result: yes" >&5
  1881. echo "${ECHO_T}yes" >&6
  1882. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1883. ac_clean_files=$ac_clean_files_save
  1884. # Check the compiler produces executables we can run. If not, either
  1885. # the compiler is broken, or we cross compile.
  1886. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1887. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1888. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1889. echo "${ECHO_T}$cross_compiling" >&6
  1890. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1891. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1892. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1893. (eval $ac_link) 2>&5
  1894. ac_status=$?
  1895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1896. (exit $ac_status); }; then
  1897. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1898. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1899. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1900. # `rm'.
  1901. for ac_file in conftest.exe conftest conftest.*; do
  1902. test -f "$ac_file" || continue
  1903. case $ac_file in
  1904. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1905. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1906. export ac_cv_exeext
  1907. break;;
  1908. * ) break;;
  1909. esac
  1910. done
  1911. else
  1912. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1913. See \`config.log' for more details." >&5
  1914. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1915. See \`config.log' for more details." >&2;}
  1916. { (exit 1); exit 1; }; }
  1917. fi
  1918. rm -f conftest$ac_cv_exeext
  1919. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1920. echo "${ECHO_T}$ac_cv_exeext" >&6
  1921. rm -f conftest.$ac_ext
  1922. EXEEXT=$ac_cv_exeext
  1923. ac_exeext=$EXEEXT
  1924. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1925. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1926. if test "${ac_cv_objext+set}" = set; then
  1927. echo $ECHO_N "(cached) $ECHO_C" >&6
  1928. else
  1929. cat >conftest.$ac_ext <<_ACEOF
  1930. /* confdefs.h. */
  1931. _ACEOF
  1932. cat confdefs.h >>conftest.$ac_ext
  1933. cat >>conftest.$ac_ext <<_ACEOF
  1934. /* end confdefs.h. */
  1935. int
  1936. main ()
  1937. {
  1938. ;
  1939. return 0;
  1940. }
  1941. _ACEOF
  1942. rm -f conftest.o conftest.obj
  1943. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1944. (eval $ac_compile) 2>&5
  1945. ac_status=$?
  1946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1947. (exit $ac_status); }; then
  1948. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1949. case $ac_file in
  1950. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1951. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1952. break;;
  1953. esac
  1954. done
  1955. else
  1956. echo "$as_me: failed program was:" >&5
  1957. sed 's/^/| /' conftest.$ac_ext >&5
  1958. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1959. See \`config.log' for more details." >&5
  1960. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1961. See \`config.log' for more details." >&2;}
  1962. { (exit 1); exit 1; }; }
  1963. fi
  1964. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1965. fi
  1966. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1967. echo "${ECHO_T}$ac_cv_objext" >&6
  1968. OBJEXT=$ac_cv_objext
  1969. ac_objext=$OBJEXT
  1970. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1971. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  1972. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1973. echo $ECHO_N "(cached) $ECHO_C" >&6
  1974. else
  1975. cat >conftest.$ac_ext <<_ACEOF
  1976. /* confdefs.h. */
  1977. _ACEOF
  1978. cat confdefs.h >>conftest.$ac_ext
  1979. cat >>conftest.$ac_ext <<_ACEOF
  1980. /* end confdefs.h. */
  1981. int
  1982. main ()
  1983. {
  1984. #ifndef __GNUC__
  1985. choke me
  1986. #endif
  1987. ;
  1988. return 0;
  1989. }
  1990. _ACEOF
  1991. rm -f conftest.$ac_objext
  1992. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1993. (eval $ac_compile) 2>conftest.er1
  1994. ac_status=$?
  1995. grep -v '^ *+' conftest.er1 >conftest.err
  1996. rm -f conftest.er1
  1997. cat conftest.err >&5
  1998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1999. (exit $ac_status); } &&
  2000. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2001. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2002. (eval $ac_try) 2>&5
  2003. ac_status=$?
  2004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2005. (exit $ac_status); }; } &&
  2006. { ac_try='test -s conftest.$ac_objext'
  2007. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2008. (eval $ac_try) 2>&5
  2009. ac_status=$?
  2010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2011. (exit $ac_status); }; }; then
  2012. ac_compiler_gnu=yes
  2013. else
  2014. echo "$as_me: failed program was:" >&5
  2015. sed 's/^/| /' conftest.$ac_ext >&5
  2016. ac_compiler_gnu=no
  2017. fi
  2018. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2019. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2020. fi
  2021. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2022. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2023. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2024. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2025. ac_save_CXXFLAGS=$CXXFLAGS
  2026. CXXFLAGS="-g"
  2027. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2028. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2029. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2030. echo $ECHO_N "(cached) $ECHO_C" >&6
  2031. else
  2032. cat >conftest.$ac_ext <<_ACEOF
  2033. /* confdefs.h. */
  2034. _ACEOF
  2035. cat confdefs.h >>conftest.$ac_ext
  2036. cat >>conftest.$ac_ext <<_ACEOF
  2037. /* end confdefs.h. */
  2038. int
  2039. main ()
  2040. {
  2041. ;
  2042. return 0;
  2043. }
  2044. _ACEOF
  2045. rm -f conftest.$ac_objext
  2046. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2047. (eval $ac_compile) 2>conftest.er1
  2048. ac_status=$?
  2049. grep -v '^ *+' conftest.er1 >conftest.err
  2050. rm -f conftest.er1
  2051. cat conftest.err >&5
  2052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2053. (exit $ac_status); } &&
  2054. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2055. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2056. (eval $ac_try) 2>&5
  2057. ac_status=$?
  2058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2059. (exit $ac_status); }; } &&
  2060. { ac_try='test -s conftest.$ac_objext'
  2061. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2062. (eval $ac_try) 2>&5
  2063. ac_status=$?
  2064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2065. (exit $ac_status); }; }; then
  2066. ac_cv_prog_cxx_g=yes
  2067. else
  2068. echo "$as_me: failed program was:" >&5
  2069. sed 's/^/| /' conftest.$ac_ext >&5
  2070. ac_cv_prog_cxx_g=no
  2071. fi
  2072. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2073. fi
  2074. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2075. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2076. if test "$ac_test_CXXFLAGS" = set; then
  2077. CXXFLAGS=$ac_save_CXXFLAGS
  2078. elif test $ac_cv_prog_cxx_g = yes; then
  2079. if test "$GXX" = yes; then
  2080. CXXFLAGS="-g -O2"
  2081. else
  2082. CXXFLAGS="-g"
  2083. fi
  2084. else
  2085. if test "$GXX" = yes; then
  2086. CXXFLAGS="-O2"
  2087. else
  2088. CXXFLAGS=
  2089. fi
  2090. fi
  2091. for ac_declaration in \
  2092. '' \
  2093. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2094. 'extern "C" void std::exit (int); using std::exit;' \
  2095. 'extern "C" void exit (int) throw ();' \
  2096. 'extern "C" void exit (int);' \
  2097. 'void exit (int);'
  2098. do
  2099. cat >conftest.$ac_ext <<_ACEOF
  2100. /* confdefs.h. */
  2101. _ACEOF
  2102. cat confdefs.h >>conftest.$ac_ext
  2103. cat >>conftest.$ac_ext <<_ACEOF
  2104. /* end confdefs.h. */
  2105. $ac_declaration
  2106. #include <stdlib.h>
  2107. int
  2108. main ()
  2109. {
  2110. exit (42);
  2111. ;
  2112. return 0;
  2113. }
  2114. _ACEOF
  2115. rm -f conftest.$ac_objext
  2116. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2117. (eval $ac_compile) 2>conftest.er1
  2118. ac_status=$?
  2119. grep -v '^ *+' conftest.er1 >conftest.err
  2120. rm -f conftest.er1
  2121. cat conftest.err >&5
  2122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2123. (exit $ac_status); } &&
  2124. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2125. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2126. (eval $ac_try) 2>&5
  2127. ac_status=$?
  2128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2129. (exit $ac_status); }; } &&
  2130. { ac_try='test -s conftest.$ac_objext'
  2131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2132. (eval $ac_try) 2>&5
  2133. ac_status=$?
  2134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2135. (exit $ac_status); }; }; then
  2136. :
  2137. else
  2138. echo "$as_me: failed program was:" >&5
  2139. sed 's/^/| /' conftest.$ac_ext >&5
  2140. continue
  2141. fi
  2142. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2143. cat >conftest.$ac_ext <<_ACEOF
  2144. /* confdefs.h. */
  2145. _ACEOF
  2146. cat confdefs.h >>conftest.$ac_ext
  2147. cat >>conftest.$ac_ext <<_ACEOF
  2148. /* end confdefs.h. */
  2149. $ac_declaration
  2150. int
  2151. main ()
  2152. {
  2153. exit (42);
  2154. ;
  2155. return 0;
  2156. }
  2157. _ACEOF
  2158. rm -f conftest.$ac_objext
  2159. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2160. (eval $ac_compile) 2>conftest.er1
  2161. ac_status=$?
  2162. grep -v '^ *+' conftest.er1 >conftest.err
  2163. rm -f conftest.er1
  2164. cat conftest.err >&5
  2165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2166. (exit $ac_status); } &&
  2167. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2168. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2169. (eval $ac_try) 2>&5
  2170. ac_status=$?
  2171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2172. (exit $ac_status); }; } &&
  2173. { ac_try='test -s conftest.$ac_objext'
  2174. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2175. (eval $ac_try) 2>&5
  2176. ac_status=$?
  2177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2178. (exit $ac_status); }; }; then
  2179. break
  2180. else
  2181. echo "$as_me: failed program was:" >&5
  2182. sed 's/^/| /' conftest.$ac_ext >&5
  2183. fi
  2184. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2185. done
  2186. rm -f conftest*
  2187. if test -n "$ac_declaration"; then
  2188. echo '#ifdef __cplusplus' >>confdefs.h
  2189. echo $ac_declaration >>confdefs.h
  2190. echo '#endif' >>confdefs.h
  2191. fi
  2192. ac_ext=c
  2193. ac_cpp='$CPP $CPPFLAGS'
  2194. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2195. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2196. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2197. DEPDIR="${am__leading_dot}deps"
  2198. ac_config_commands="$ac_config_commands depfiles"
  2199. am_make=${MAKE-make}
  2200. cat > confinc << 'END'
  2201. am__doit:
  2202. @echo done
  2203. .PHONY: am__doit
  2204. END
  2205. # If we don't find an include directive, just comment out the code.
  2206. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2207. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2208. am__include="#"
  2209. am__quote=
  2210. _am_result=none
  2211. # First try GNU make style include.
  2212. echo "include confinc" > confmf
  2213. # We grep out `Entering directory' and `Leaving directory'
  2214. # messages which can occur if `w' ends up in MAKEFLAGS.
  2215. # In particular we don't look at `^make:' because GNU make might
  2216. # be invoked under some other name (usually "gmake"), in which
  2217. # case it prints its new name instead of `make'.
  2218. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2219. am__include=include
  2220. am__quote=
  2221. _am_result=GNU
  2222. fi
  2223. # Now try BSD make style include.
  2224. if test "$am__include" = "#"; then
  2225. echo '.include "confinc"' > confmf
  2226. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2227. am__include=.include
  2228. am__quote="\""
  2229. _am_result=BSD
  2230. fi
  2231. fi
  2232. echo "$as_me:$LINENO: result: $_am_result" >&5
  2233. echo "${ECHO_T}$_am_result" >&6
  2234. rm -f confinc confmf
  2235. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2236. if test "${enable_dependency_tracking+set}" = set; then
  2237. enableval="$enable_dependency_tracking"
  2238. fi;
  2239. if test "x$enable_dependency_tracking" != xno; then
  2240. am_depcomp="$ac_aux_dir/depcomp"
  2241. AMDEPBACKSLASH='\'
  2242. fi
  2243. if test "x$enable_dependency_tracking" != xno; then
  2244. AMDEP_TRUE=
  2245. AMDEP_FALSE='#'
  2246. else
  2247. AMDEP_TRUE='#'
  2248. AMDEP_FALSE=
  2249. fi
  2250. depcc="$CXX" am_compiler_list=
  2251. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2252. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2253. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2254. echo $ECHO_N "(cached) $ECHO_C" >&6
  2255. else
  2256. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2257. # We make a subdir and do the tests there. Otherwise we can end up
  2258. # making bogus files that we don't know about and never remove. For
  2259. # instance it was reported that on HP-UX the gcc test will end up
  2260. # making a dummy file named `D' -- because `-MD' means `put the output
  2261. # in D'.
  2262. mkdir conftest.dir
  2263. # Copy depcomp to subdir because otherwise we won't find it if we're
  2264. # using a relative directory.
  2265. cp "$am_depcomp" conftest.dir
  2266. cd conftest.dir
  2267. # We will build objects and dependencies in a subdirectory because
  2268. # it helps to detect inapplicable dependency modes. For instance
  2269. # both Tru64's cc and ICC support -MD to output dependencies as a
  2270. # side effect of compilation, but ICC will put the dependencies in
  2271. # the current directory while Tru64 will put them in the object
  2272. # directory.
  2273. mkdir sub
  2274. am_cv_CXX_dependencies_compiler_type=none
  2275. if test "$am_compiler_list" = ""; then
  2276. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2277. fi
  2278. for depmode in $am_compiler_list; do
  2279. # Setup a source with many dependencies, because some compilers
  2280. # like to wrap large dependency lists on column 80 (with \), and
  2281. # we should not choose a depcomp mode which is confused by this.
  2282. #
  2283. # We need to recreate these files for each test, as the compiler may
  2284. # overwrite some of them when testing with obscure command lines.
  2285. # This happens at least with the AIX C compiler.
  2286. : > sub/conftest.c
  2287. for i in 1 2 3 4 5 6; do
  2288. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2289. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2290. # Solaris 8's {/usr,}/bin/sh.
  2291. touch sub/conftst$i.h
  2292. done
  2293. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2294. case $depmode in
  2295. nosideeffect)
  2296. # after this tag, mechanisms are not by side-effect, so they'll
  2297. # only be used when explicitly requested
  2298. if test "x$enable_dependency_tracking" = xyes; then
  2299. continue
  2300. else
  2301. break
  2302. fi
  2303. ;;
  2304. none) break ;;
  2305. esac
  2306. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2307. # mode. It turns out that the SunPro C++ compiler does not properly
  2308. # handle `-M -o', and we need to detect this.
  2309. if depmode=$depmode \
  2310. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2311. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2312. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2313. >/dev/null 2>conftest.err &&
  2314. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2315. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2316. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2317. # icc doesn't choke on unknown options, it will just issue warnings
  2318. # or remarks (even with -Werror). So we grep stderr for any message
  2319. # that says an option was ignored or not supported.
  2320. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2321. # icc: Command line warning: ignoring option '-M'; no argument required
  2322. # The diagnosis changed in icc 8.0:
  2323. # icc: Command line remark: option '-MP' not supported
  2324. if (grep 'ignoring option' conftest.err ||
  2325. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2326. am_cv_CXX_dependencies_compiler_type=$depmode
  2327. break
  2328. fi
  2329. fi
  2330. done
  2331. cd ..
  2332. rm -rf conftest.dir
  2333. else
  2334. am_cv_CXX_dependencies_compiler_type=none
  2335. fi
  2336. fi
  2337. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2338. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2339. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2340. if
  2341. test "x$enable_dependency_tracking" != xno \
  2342. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2343. am__fastdepCXX_TRUE=
  2344. am__fastdepCXX_FALSE='#'
  2345. else
  2346. am__fastdepCXX_TRUE='#'
  2347. am__fastdepCXX_FALSE=
  2348. fi
  2349. ac_ext=c
  2350. ac_cpp='$CPP $CPPFLAGS'
  2351. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2352. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2353. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2354. if test -n "$ac_tool_prefix"; then
  2355. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2356. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2357. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2358. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2359. if test "${ac_cv_prog_CC+set}" = set; then
  2360. echo $ECHO_N "(cached) $ECHO_C" >&6
  2361. else
  2362. if test -n "$CC"; then
  2363. ac_cv_prog_CC="$CC" # Let the user override the test.
  2364. else
  2365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2366. for as_dir in $PATH
  2367. do
  2368. IFS=$as_save_IFS
  2369. test -z "$as_dir" && as_dir=.
  2370. for ac_exec_ext in '' $ac_executable_extensions; do
  2371. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2372. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2373. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2374. break 2
  2375. fi
  2376. done
  2377. done
  2378. fi
  2379. fi
  2380. CC=$ac_cv_prog_CC
  2381. if test -n "$CC"; then
  2382. echo "$as_me:$LINENO: result: $CC" >&5
  2383. echo "${ECHO_T}$CC" >&6
  2384. else
  2385. echo "$as_me:$LINENO: result: no" >&5
  2386. echo "${ECHO_T}no" >&6
  2387. fi
  2388. fi
  2389. if test -z "$ac_cv_prog_CC"; then
  2390. ac_ct_CC=$CC
  2391. # Extract the first word of "gcc", so it can be a program name with args.
  2392. set dummy gcc; ac_word=$2
  2393. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2394. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2395. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2396. echo $ECHO_N "(cached) $ECHO_C" >&6
  2397. else
  2398. if test -n "$ac_ct_CC"; then
  2399. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2400. else
  2401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2402. for as_dir in $PATH
  2403. do
  2404. IFS=$as_save_IFS
  2405. test -z "$as_dir" && as_dir=.
  2406. for ac_exec_ext in '' $ac_executable_extensions; do
  2407. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2408. ac_cv_prog_ac_ct_CC="gcc"
  2409. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2410. break 2
  2411. fi
  2412. done
  2413. done
  2414. fi
  2415. fi
  2416. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2417. if test -n "$ac_ct_CC"; then
  2418. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2419. echo "${ECHO_T}$ac_ct_CC" >&6
  2420. else
  2421. echo "$as_me:$LINENO: result: no" >&5
  2422. echo "${ECHO_T}no" >&6
  2423. fi
  2424. CC=$ac_ct_CC
  2425. else
  2426. CC="$ac_cv_prog_CC"
  2427. fi
  2428. if test -z "$CC"; then
  2429. if test -n "$ac_tool_prefix"; then
  2430. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2431. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2432. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2433. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2434. if test "${ac_cv_prog_CC+set}" = set; then
  2435. echo $ECHO_N "(cached) $ECHO_C" >&6
  2436. else
  2437. if test -n "$CC"; then
  2438. ac_cv_prog_CC="$CC" # Let the user override the test.
  2439. else
  2440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2441. for as_dir in $PATH
  2442. do
  2443. IFS=$as_save_IFS
  2444. test -z "$as_dir" && as_dir=.
  2445. for ac_exec_ext in '' $ac_executable_extensions; do
  2446. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2447. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2448. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2449. break 2
  2450. fi
  2451. done
  2452. done
  2453. fi
  2454. fi
  2455. CC=$ac_cv_prog_CC
  2456. if test -n "$CC"; then
  2457. echo "$as_me:$LINENO: result: $CC" >&5
  2458. echo "${ECHO_T}$CC" >&6
  2459. else
  2460. echo "$as_me:$LINENO: result: no" >&5
  2461. echo "${ECHO_T}no" >&6
  2462. fi
  2463. fi
  2464. if test -z "$ac_cv_prog_CC"; then
  2465. ac_ct_CC=$CC
  2466. # Extract the first word of "cc", so it can be a program name with args.
  2467. set dummy cc; ac_word=$2
  2468. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2469. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2470. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2471. echo $ECHO_N "(cached) $ECHO_C" >&6
  2472. else
  2473. if test -n "$ac_ct_CC"; then
  2474. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2475. else
  2476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2477. for as_dir in $PATH
  2478. do
  2479. IFS=$as_save_IFS
  2480. test -z "$as_dir" && as_dir=.
  2481. for ac_exec_ext in '' $ac_executable_extensions; do
  2482. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2483. ac_cv_prog_ac_ct_CC="cc"
  2484. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2485. break 2
  2486. fi
  2487. done
  2488. done
  2489. fi
  2490. fi
  2491. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2492. if test -n "$ac_ct_CC"; then
  2493. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2494. echo "${ECHO_T}$ac_ct_CC" >&6
  2495. else
  2496. echo "$as_me:$LINENO: result: no" >&5
  2497. echo "${ECHO_T}no" >&6
  2498. fi
  2499. CC=$ac_ct_CC
  2500. else
  2501. CC="$ac_cv_prog_CC"
  2502. fi
  2503. fi
  2504. if test -z "$CC"; then
  2505. # Extract the first word of "cc", so it can be a program name with args.
  2506. set dummy cc; ac_word=$2
  2507. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2508. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2509. if test "${ac_cv_prog_CC+set}" = set; then
  2510. echo $ECHO_N "(cached) $ECHO_C" >&6
  2511. else
  2512. if test -n "$CC"; then
  2513. ac_cv_prog_CC="$CC" # Let the user override the test.
  2514. else
  2515. ac_prog_rejected=no
  2516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2517. for as_dir in $PATH
  2518. do
  2519. IFS=$as_save_IFS
  2520. test -z "$as_dir" && as_dir=.
  2521. for ac_exec_ext in '' $ac_executable_extensions; do
  2522. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2523. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2524. ac_prog_rejected=yes
  2525. continue
  2526. fi
  2527. ac_cv_prog_CC="cc"
  2528. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2529. break 2
  2530. fi
  2531. done
  2532. done
  2533. if test $ac_prog_rejected = yes; then
  2534. # We found a bogon in the path, so make sure we never use it.
  2535. set dummy $ac_cv_prog_CC
  2536. shift
  2537. if test $# != 0; then
  2538. # We chose a different compiler from the bogus one.
  2539. # However, it has the same basename, so the bogon will be chosen
  2540. # first if we set CC to just the basename; use the full file name.
  2541. shift
  2542. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2543. fi
  2544. fi
  2545. fi
  2546. fi
  2547. CC=$ac_cv_prog_CC
  2548. if test -n "$CC"; then
  2549. echo "$as_me:$LINENO: result: $CC" >&5
  2550. echo "${ECHO_T}$CC" >&6
  2551. else
  2552. echo "$as_me:$LINENO: result: no" >&5
  2553. echo "${ECHO_T}no" >&6
  2554. fi
  2555. fi
  2556. if test -z "$CC"; then
  2557. if test -n "$ac_tool_prefix"; then
  2558. for ac_prog in cl
  2559. do
  2560. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2561. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2562. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2563. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2564. if test "${ac_cv_prog_CC+set}" = set; then
  2565. echo $ECHO_N "(cached) $ECHO_C" >&6
  2566. else
  2567. if test -n "$CC"; then
  2568. ac_cv_prog_CC="$CC" # Let the user override the test.
  2569. else
  2570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2571. for as_dir in $PATH
  2572. do
  2573. IFS=$as_save_IFS
  2574. test -z "$as_dir" && as_dir=.
  2575. for ac_exec_ext in '' $ac_executable_extensions; do
  2576. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2577. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2578. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2579. break 2
  2580. fi
  2581. done
  2582. done
  2583. fi
  2584. fi
  2585. CC=$ac_cv_prog_CC
  2586. if test -n "$CC"; then
  2587. echo "$as_me:$LINENO: result: $CC" >&5
  2588. echo "${ECHO_T}$CC" >&6
  2589. else
  2590. echo "$as_me:$LINENO: result: no" >&5
  2591. echo "${ECHO_T}no" >&6
  2592. fi
  2593. test -n "$CC" && break
  2594. done
  2595. fi
  2596. if test -z "$CC"; then
  2597. ac_ct_CC=$CC
  2598. for ac_prog in cl
  2599. do
  2600. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2601. set dummy $ac_prog; ac_word=$2
  2602. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2603. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2604. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2605. echo $ECHO_N "(cached) $ECHO_C" >&6
  2606. else
  2607. if test -n "$ac_ct_CC"; then
  2608. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2609. else
  2610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2611. for as_dir in $PATH
  2612. do
  2613. IFS=$as_save_IFS
  2614. test -z "$as_dir" && as_dir=.
  2615. for ac_exec_ext in '' $ac_executable_extensions; do
  2616. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2617. ac_cv_prog_ac_ct_CC="$ac_prog"
  2618. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2619. break 2
  2620. fi
  2621. done
  2622. done
  2623. fi
  2624. fi
  2625. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2626. if test -n "$ac_ct_CC"; then
  2627. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2628. echo "${ECHO_T}$ac_ct_CC" >&6
  2629. else
  2630. echo "$as_me:$LINENO: result: no" >&5
  2631. echo "${ECHO_T}no" >&6
  2632. fi
  2633. test -n "$ac_ct_CC" && break
  2634. done
  2635. CC=$ac_ct_CC
  2636. fi
  2637. fi
  2638. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2639. See \`config.log' for more details." >&5
  2640. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2641. See \`config.log' for more details." >&2;}
  2642. { (exit 1); exit 1; }; }
  2643. # Provide some information about the compiler.
  2644. echo "$as_me:$LINENO:" \
  2645. "checking for C compiler version" >&5
  2646. ac_compiler=`set X $ac_compile; echo $2`
  2647. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2648. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2649. ac_status=$?
  2650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2651. (exit $ac_status); }
  2652. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2653. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2654. ac_status=$?
  2655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2656. (exit $ac_status); }
  2657. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2658. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2659. ac_status=$?
  2660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2661. (exit $ac_status); }
  2662. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2663. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2664. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2665. echo $ECHO_N "(cached) $ECHO_C" >&6
  2666. else
  2667. cat >conftest.$ac_ext <<_ACEOF
  2668. /* confdefs.h. */
  2669. _ACEOF
  2670. cat confdefs.h >>conftest.$ac_ext
  2671. cat >>conftest.$ac_ext <<_ACEOF
  2672. /* end confdefs.h. */
  2673. int
  2674. main ()
  2675. {
  2676. #ifndef __GNUC__
  2677. choke me
  2678. #endif
  2679. ;
  2680. return 0;
  2681. }
  2682. _ACEOF
  2683. rm -f conftest.$ac_objext
  2684. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2685. (eval $ac_compile) 2>conftest.er1
  2686. ac_status=$?
  2687. grep -v '^ *+' conftest.er1 >conftest.err
  2688. rm -f conftest.er1
  2689. cat conftest.err >&5
  2690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2691. (exit $ac_status); } &&
  2692. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2694. (eval $ac_try) 2>&5
  2695. ac_status=$?
  2696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2697. (exit $ac_status); }; } &&
  2698. { ac_try='test -s conftest.$ac_objext'
  2699. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2700. (eval $ac_try) 2>&5
  2701. ac_status=$?
  2702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2703. (exit $ac_status); }; }; then
  2704. ac_compiler_gnu=yes
  2705. else
  2706. echo "$as_me: failed program was:" >&5
  2707. sed 's/^/| /' conftest.$ac_ext >&5
  2708. ac_compiler_gnu=no
  2709. fi
  2710. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2711. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2712. fi
  2713. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2714. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2715. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2716. ac_test_CFLAGS=${CFLAGS+set}
  2717. ac_save_CFLAGS=$CFLAGS
  2718. CFLAGS="-g"
  2719. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2720. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2721. if test "${ac_cv_prog_cc_g+set}" = set; then
  2722. echo $ECHO_N "(cached) $ECHO_C" >&6
  2723. else
  2724. cat >conftest.$ac_ext <<_ACEOF
  2725. /* confdefs.h. */
  2726. _ACEOF
  2727. cat confdefs.h >>conftest.$ac_ext
  2728. cat >>conftest.$ac_ext <<_ACEOF
  2729. /* end confdefs.h. */
  2730. int
  2731. main ()
  2732. {
  2733. ;
  2734. return 0;
  2735. }
  2736. _ACEOF
  2737. rm -f conftest.$ac_objext
  2738. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2739. (eval $ac_compile) 2>conftest.er1
  2740. ac_status=$?
  2741. grep -v '^ *+' conftest.er1 >conftest.err
  2742. rm -f conftest.er1
  2743. cat conftest.err >&5
  2744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2745. (exit $ac_status); } &&
  2746. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2748. (eval $ac_try) 2>&5
  2749. ac_status=$?
  2750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2751. (exit $ac_status); }; } &&
  2752. { ac_try='test -s conftest.$ac_objext'
  2753. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2754. (eval $ac_try) 2>&5
  2755. ac_status=$?
  2756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2757. (exit $ac_status); }; }; then
  2758. ac_cv_prog_cc_g=yes
  2759. else
  2760. echo "$as_me: failed program was:" >&5
  2761. sed 's/^/| /' conftest.$ac_ext >&5
  2762. ac_cv_prog_cc_g=no
  2763. fi
  2764. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2765. fi
  2766. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2767. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2768. if test "$ac_test_CFLAGS" = set; then
  2769. CFLAGS=$ac_save_CFLAGS
  2770. elif test $ac_cv_prog_cc_g = yes; then
  2771. if test "$GCC" = yes; then
  2772. CFLAGS="-g -O2"
  2773. else
  2774. CFLAGS="-g"
  2775. fi
  2776. else
  2777. if test "$GCC" = yes; then
  2778. CFLAGS="-O2"
  2779. else
  2780. CFLAGS=
  2781. fi
  2782. fi
  2783. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2784. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2785. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2786. echo $ECHO_N "(cached) $ECHO_C" >&6
  2787. else
  2788. ac_cv_prog_cc_stdc=no
  2789. ac_save_CC=$CC
  2790. cat >conftest.$ac_ext <<_ACEOF
  2791. /* confdefs.h. */
  2792. _ACEOF
  2793. cat confdefs.h >>conftest.$ac_ext
  2794. cat >>conftest.$ac_ext <<_ACEOF
  2795. /* end confdefs.h. */
  2796. #include <stdarg.h>
  2797. #include <stdio.h>
  2798. #include <sys/types.h>
  2799. #include <sys/stat.h>
  2800. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2801. struct buf { int x; };
  2802. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2803. static char *e (p, i)
  2804. char **p;
  2805. int i;
  2806. {
  2807. return p[i];
  2808. }
  2809. static char *f (char * (*g) (char **, int), char **p, ...)
  2810. {
  2811. char *s;
  2812. va_list v;
  2813. va_start (v,p);
  2814. s = g (p, va_arg (v,int));
  2815. va_end (v);
  2816. return s;
  2817. }
  2818. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2819. function prototypes and stuff, but not '\xHH' hex character constants.
  2820. These don't provoke an error unfortunately, instead are silently treated
  2821. as 'x'. The following induces an error, until -std1 is added to get
  2822. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2823. array size at least. It's necessary to write '\x00'==0 to get something
  2824. that's true only with -std1. */
  2825. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2826. int test (int i, double x);
  2827. struct s1 {int (*f) (int a);};
  2828. struct s2 {int (*f) (double a);};
  2829. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2830. int argc;
  2831. char **argv;
  2832. int
  2833. main ()
  2834. {
  2835. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2836. ;
  2837. return 0;
  2838. }
  2839. _ACEOF
  2840. # Don't try gcc -ansi; that turns off useful extensions and
  2841. # breaks some systems' header files.
  2842. # AIX -qlanglvl=ansi
  2843. # Ultrix and OSF/1 -std1
  2844. # HP-UX 10.20 and later -Ae
  2845. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2846. # SVR4 -Xc -D__EXTENSIONS__
  2847. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2848. do
  2849. CC="$ac_save_CC $ac_arg"
  2850. rm -f conftest.$ac_objext
  2851. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2852. (eval $ac_compile) 2>conftest.er1
  2853. ac_status=$?
  2854. grep -v '^ *+' conftest.er1 >conftest.err
  2855. rm -f conftest.er1
  2856. cat conftest.err >&5
  2857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2858. (exit $ac_status); } &&
  2859. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2861. (eval $ac_try) 2>&5
  2862. ac_status=$?
  2863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2864. (exit $ac_status); }; } &&
  2865. { ac_try='test -s conftest.$ac_objext'
  2866. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2867. (eval $ac_try) 2>&5
  2868. ac_status=$?
  2869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2870. (exit $ac_status); }; }; then
  2871. ac_cv_prog_cc_stdc=$ac_arg
  2872. break
  2873. else
  2874. echo "$as_me: failed program was:" >&5
  2875. sed 's/^/| /' conftest.$ac_ext >&5
  2876. fi
  2877. rm -f conftest.err conftest.$ac_objext
  2878. done
  2879. rm -f conftest.$ac_ext conftest.$ac_objext
  2880. CC=$ac_save_CC
  2881. fi
  2882. case "x$ac_cv_prog_cc_stdc" in
  2883. x|xno)
  2884. echo "$as_me:$LINENO: result: none needed" >&5
  2885. echo "${ECHO_T}none needed" >&6 ;;
  2886. *)
  2887. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2888. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2889. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2890. esac
  2891. # Some people use a C++ compiler to compile C. Since we use `exit',
  2892. # in C++ we need to declare it. In case someone uses the same compiler
  2893. # for both compiling C and C++ we need to have the C++ compiler decide
  2894. # the declaration of exit, since it's the most demanding environment.
  2895. cat >conftest.$ac_ext <<_ACEOF
  2896. #ifndef __cplusplus
  2897. choke me
  2898. #endif
  2899. _ACEOF
  2900. rm -f conftest.$ac_objext
  2901. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2902. (eval $ac_compile) 2>conftest.er1
  2903. ac_status=$?
  2904. grep -v '^ *+' conftest.er1 >conftest.err
  2905. rm -f conftest.er1
  2906. cat conftest.err >&5
  2907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2908. (exit $ac_status); } &&
  2909. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2911. (eval $ac_try) 2>&5
  2912. ac_status=$?
  2913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2914. (exit $ac_status); }; } &&
  2915. { ac_try='test -s conftest.$ac_objext'
  2916. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2917. (eval $ac_try) 2>&5
  2918. ac_status=$?
  2919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2920. (exit $ac_status); }; }; then
  2921. for ac_declaration in \
  2922. '' \
  2923. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2924. 'extern "C" void std::exit (int); using std::exit;' \
  2925. 'extern "C" void exit (int) throw ();' \
  2926. 'extern "C" void exit (int);' \
  2927. 'void exit (int);'
  2928. do
  2929. cat >conftest.$ac_ext <<_ACEOF
  2930. /* confdefs.h. */
  2931. _ACEOF
  2932. cat confdefs.h >>conftest.$ac_ext
  2933. cat >>conftest.$ac_ext <<_ACEOF
  2934. /* end confdefs.h. */
  2935. $ac_declaration
  2936. #include <stdlib.h>
  2937. int
  2938. main ()
  2939. {
  2940. exit (42);
  2941. ;
  2942. return 0;
  2943. }
  2944. _ACEOF
  2945. rm -f conftest.$ac_objext
  2946. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2947. (eval $ac_compile) 2>conftest.er1
  2948. ac_status=$?
  2949. grep -v '^ *+' conftest.er1 >conftest.err
  2950. rm -f conftest.er1
  2951. cat conftest.err >&5
  2952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2953. (exit $ac_status); } &&
  2954. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2956. (eval $ac_try) 2>&5
  2957. ac_status=$?
  2958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2959. (exit $ac_status); }; } &&
  2960. { ac_try='test -s conftest.$ac_objext'
  2961. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2962. (eval $ac_try) 2>&5
  2963. ac_status=$?
  2964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2965. (exit $ac_status); }; }; then
  2966. :
  2967. else
  2968. echo "$as_me: failed program was:" >&5
  2969. sed 's/^/| /' conftest.$ac_ext >&5
  2970. continue
  2971. fi
  2972. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2973. cat >conftest.$ac_ext <<_ACEOF
  2974. /* confdefs.h. */
  2975. _ACEOF
  2976. cat confdefs.h >>conftest.$ac_ext
  2977. cat >>conftest.$ac_ext <<_ACEOF
  2978. /* end confdefs.h. */
  2979. $ac_declaration
  2980. int
  2981. main ()
  2982. {
  2983. exit (42);
  2984. ;
  2985. return 0;
  2986. }
  2987. _ACEOF
  2988. rm -f conftest.$ac_objext
  2989. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2990. (eval $ac_compile) 2>conftest.er1
  2991. ac_status=$?
  2992. grep -v '^ *+' conftest.er1 >conftest.err
  2993. rm -f conftest.er1
  2994. cat conftest.err >&5
  2995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2996. (exit $ac_status); } &&
  2997. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2999. (eval $ac_try) 2>&5
  3000. ac_status=$?
  3001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3002. (exit $ac_status); }; } &&
  3003. { ac_try='test -s conftest.$ac_objext'
  3004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3005. (eval $ac_try) 2>&5
  3006. ac_status=$?
  3007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3008. (exit $ac_status); }; }; then
  3009. break
  3010. else
  3011. echo "$as_me: failed program was:" >&5
  3012. sed 's/^/| /' conftest.$ac_ext >&5
  3013. fi
  3014. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3015. done
  3016. rm -f conftest*
  3017. if test -n "$ac_declaration"; then
  3018. echo '#ifdef __cplusplus' >>confdefs.h
  3019. echo $ac_declaration >>confdefs.h
  3020. echo '#endif' >>confdefs.h
  3021. fi
  3022. else
  3023. echo "$as_me: failed program was:" >&5
  3024. sed 's/^/| /' conftest.$ac_ext >&5
  3025. fi
  3026. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3027. ac_ext=c
  3028. ac_cpp='$CPP $CPPFLAGS'
  3029. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3030. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3031. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3032. depcc="$CC" am_compiler_list=
  3033. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3034. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3035. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3036. echo $ECHO_N "(cached) $ECHO_C" >&6
  3037. else
  3038. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3039. # We make a subdir and do the tests there. Otherwise we can end up
  3040. # making bogus files that we don't know about and never remove. For
  3041. # instance it was reported that on HP-UX the gcc test will end up
  3042. # making a dummy file named `D' -- because `-MD' means `put the output
  3043. # in D'.
  3044. mkdir conftest.dir
  3045. # Copy depcomp to subdir because otherwise we won't find it if we're
  3046. # using a relative directory.
  3047. cp "$am_depcomp" conftest.dir
  3048. cd conftest.dir
  3049. # We will build objects and dependencies in a subdirectory because
  3050. # it helps to detect inapplicable dependency modes. For instance
  3051. # both Tru64's cc and ICC support -MD to output dependencies as a
  3052. # side effect of compilation, but ICC will put the dependencies in
  3053. # the current directory while Tru64 will put them in the object
  3054. # directory.
  3055. mkdir sub
  3056. am_cv_CC_dependencies_compiler_type=none
  3057. if test "$am_compiler_list" = ""; then
  3058. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3059. fi
  3060. for depmode in $am_compiler_list; do
  3061. # Setup a source with many dependencies, because some compilers
  3062. # like to wrap large dependency lists on column 80 (with \), and
  3063. # we should not choose a depcomp mode which is confused by this.
  3064. #
  3065. # We need to recreate these files for each test, as the compiler may
  3066. # overwrite some of them when testing with obscure command lines.
  3067. # This happens at least with the AIX C compiler.
  3068. : > sub/conftest.c
  3069. for i in 1 2 3 4 5 6; do
  3070. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3071. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3072. # Solaris 8's {/usr,}/bin/sh.
  3073. touch sub/conftst$i.h
  3074. done
  3075. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3076. case $depmode in
  3077. nosideeffect)
  3078. # after this tag, mechanisms are not by side-effect, so they'll
  3079. # only be used when explicitly requested
  3080. if test "x$enable_dependency_tracking" = xyes; then
  3081. continue
  3082. else
  3083. break
  3084. fi
  3085. ;;
  3086. none) break ;;
  3087. esac
  3088. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3089. # mode. It turns out that the SunPro C++ compiler does not properly
  3090. # handle `-M -o', and we need to detect this.
  3091. if depmode=$depmode \
  3092. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3093. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3094. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3095. >/dev/null 2>conftest.err &&
  3096. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3097. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3098. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3099. # icc doesn't choke on unknown options, it will just issue warnings
  3100. # or remarks (even with -Werror). So we grep stderr for any message
  3101. # that says an option was ignored or not supported.
  3102. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3103. # icc: Command line warning: ignoring option '-M'; no argument required
  3104. # The diagnosis changed in icc 8.0:
  3105. # icc: Command line remark: option '-MP' not supported
  3106. if (grep 'ignoring option' conftest.err ||
  3107. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3108. am_cv_CC_dependencies_compiler_type=$depmode
  3109. break
  3110. fi
  3111. fi
  3112. done
  3113. cd ..
  3114. rm -rf conftest.dir
  3115. else
  3116. am_cv_CC_dependencies_compiler_type=none
  3117. fi
  3118. fi
  3119. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3120. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3121. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3122. if
  3123. test "x$enable_dependency_tracking" != xno \
  3124. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3125. am__fastdepCC_TRUE=
  3126. am__fastdepCC_FALSE='#'
  3127. else
  3128. am__fastdepCC_TRUE='#'
  3129. am__fastdepCC_FALSE=
  3130. fi
  3131. # Find a good install program. We prefer a C program (faster),
  3132. # so one script is as good as another. But avoid the broken or
  3133. # incompatible versions:
  3134. # SysV /etc/install, /usr/sbin/install
  3135. # SunOS /usr/etc/install
  3136. # IRIX /sbin/install
  3137. # AIX /bin/install
  3138. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3139. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3140. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3141. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3142. # OS/2's system install, which has a completely different semantic
  3143. # ./install, which can be erroneously created by make from ./install.sh.
  3144. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3145. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  3146. if test -z "$INSTALL"; then
  3147. if test "${ac_cv_path_install+set}" = set; then
  3148. echo $ECHO_N "(cached) $ECHO_C" >&6
  3149. else
  3150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3151. for as_dir in $PATH
  3152. do
  3153. IFS=$as_save_IFS
  3154. test -z "$as_dir" && as_dir=.
  3155. # Account for people who put trailing slashes in PATH elements.
  3156. case $as_dir/ in
  3157. ./ | .// | /cC/* | \
  3158. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3159. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3160. /usr/ucb/* ) ;;
  3161. *)
  3162. # OSF1 and SCO ODT 3.0 have their own names for install.
  3163. # Don't use installbsd from OSF since it installs stuff as root
  3164. # by default.
  3165. for ac_prog in ginstall scoinst install; do
  3166. for ac_exec_ext in '' $ac_executable_extensions; do
  3167. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3168. if test $ac_prog = install &&
  3169. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3170. # AIX install. It has an incompatible calling convention.
  3171. :
  3172. elif test $ac_prog = install &&
  3173. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3174. # program-specific install script used by HP pwplus--don't use.
  3175. :
  3176. else
  3177. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3178. break 3
  3179. fi
  3180. fi
  3181. done
  3182. done
  3183. ;;
  3184. esac
  3185. done
  3186. fi
  3187. if test "${ac_cv_path_install+set}" = set; then
  3188. INSTALL=$ac_cv_path_install
  3189. else
  3190. # As a last resort, use the slow shell script. We don't cache a
  3191. # path for INSTALL within a source directory, because that will
  3192. # break other packages using the cache if that directory is
  3193. # removed, or if the path is relative.
  3194. INSTALL=$ac_install_sh
  3195. fi
  3196. fi
  3197. echo "$as_me:$LINENO: result: $INSTALL" >&5
  3198. echo "${ECHO_T}$INSTALL" >&6
  3199. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3200. # It thinks the first close brace ends the variable substitution.
  3201. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3202. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3203. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3204. if test -n "$ac_tool_prefix"; then
  3205. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3206. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3207. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3208. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3209. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3210. echo $ECHO_N "(cached) $ECHO_C" >&6
  3211. else
  3212. if test -n "$RANLIB"; then
  3213. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3214. else
  3215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3216. for as_dir in $PATH
  3217. do
  3218. IFS=$as_save_IFS
  3219. test -z "$as_dir" && as_dir=.
  3220. for ac_exec_ext in '' $ac_executable_extensions; do
  3221. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3222. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3223. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3224. break 2
  3225. fi
  3226. done
  3227. done
  3228. fi
  3229. fi
  3230. RANLIB=$ac_cv_prog_RANLIB
  3231. if test -n "$RANLIB"; then
  3232. echo "$as_me:$LINENO: result: $RANLIB" >&5
  3233. echo "${ECHO_T}$RANLIB" >&6
  3234. else
  3235. echo "$as_me:$LINENO: result: no" >&5
  3236. echo "${ECHO_T}no" >&6
  3237. fi
  3238. fi
  3239. if test -z "$ac_cv_prog_RANLIB"; then
  3240. ac_ct_RANLIB=$RANLIB
  3241. # Extract the first word of "ranlib", so it can be a program name with args.
  3242. set dummy ranlib; ac_word=$2
  3243. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3244. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3245. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3246. echo $ECHO_N "(cached) $ECHO_C" >&6
  3247. else
  3248. if test -n "$ac_ct_RANLIB"; then
  3249. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3250. else
  3251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3252. for as_dir in $PATH
  3253. do
  3254. IFS=$as_save_IFS
  3255. test -z "$as_dir" && as_dir=.
  3256. for ac_exec_ext in '' $ac_executable_extensions; do
  3257. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3258. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3259. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3260. break 2
  3261. fi
  3262. done
  3263. done
  3264. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3265. fi
  3266. fi
  3267. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3268. if test -n "$ac_ct_RANLIB"; then
  3269. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3270. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3271. else
  3272. echo "$as_me:$LINENO: result: no" >&5
  3273. echo "${ECHO_T}no" >&6
  3274. fi
  3275. RANLIB=$ac_ct_RANLIB
  3276. else
  3277. RANLIB="$ac_cv_prog_RANLIB"
  3278. fi
  3279. for ac_prog in 'bison -y' byacc
  3280. do
  3281. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3282. set dummy $ac_prog; ac_word=$2
  3283. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3284. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3285. if test "${ac_cv_prog_YACC+set}" = set; then
  3286. echo $ECHO_N "(cached) $ECHO_C" >&6
  3287. else
  3288. if test -n "$YACC"; then
  3289. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3290. else
  3291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3292. for as_dir in $PATH
  3293. do
  3294. IFS=$as_save_IFS
  3295. test -z "$as_dir" && as_dir=.
  3296. for ac_exec_ext in '' $ac_executable_extensions; do
  3297. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3298. ac_cv_prog_YACC="$ac_prog"
  3299. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3300. break 2
  3301. fi
  3302. done
  3303. done
  3304. fi
  3305. fi
  3306. YACC=$ac_cv_prog_YACC
  3307. if test -n "$YACC"; then
  3308. echo "$as_me:$LINENO: result: $YACC" >&5
  3309. echo "${ECHO_T}$YACC" >&6
  3310. else
  3311. echo "$as_me:$LINENO: result: no" >&5
  3312. echo "${ECHO_T}no" >&6
  3313. fi
  3314. test -n "$YACC" && break
  3315. done
  3316. test -n "$YACC" || YACC="yacc"
  3317. # Checks for libraries.
  3318. if test "x$with_gnutls" = "xyes"; then
  3319. # Check whether --with-libgnutls-prefix or --without-libgnutls-prefix was given.
  3320. if test "${with_libgnutls_prefix+set}" = set; then
  3321. withval="$with_libgnutls_prefix"
  3322. libgnutls_config_prefix="$withval"
  3323. else
  3324. libgnutls_config_prefix=""
  3325. fi;
  3326. if test x$libgnutls_config_prefix != x ; then
  3327. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  3328. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  3329. fi
  3330. fi
  3331. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  3332. set dummy libgnutls-config; ac_word=$2
  3333. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3334. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3335. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  3336. echo $ECHO_N "(cached) $ECHO_C" >&6
  3337. else
  3338. case $LIBGNUTLS_CONFIG in
  3339. [\\/]* | ?:[\\/]*)
  3340. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  3341. ;;
  3342. *)
  3343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3344. for as_dir in $PATH
  3345. do
  3346. IFS=$as_save_IFS
  3347. test -z "$as_dir" && as_dir=.
  3348. for ac_exec_ext in '' $ac_executable_extensions; do
  3349. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3350. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3351. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3352. break 2
  3353. fi
  3354. done
  3355. done
  3356. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  3357. ;;
  3358. esac
  3359. fi
  3360. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  3361. if test -n "$LIBGNUTLS_CONFIG"; then
  3362. echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  3363. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6
  3364. else
  3365. echo "$as_me:$LINENO: result: no" >&5
  3366. echo "${ECHO_T}no" >&6
  3367. fi
  3368. min_libgnutls_version=1.2.9
  3369. echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  3370. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6
  3371. no_libgnutls=""
  3372. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  3373. no_libgnutls=yes
  3374. else
  3375. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  3376. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  3377. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  3378. ac_save_CFLAGS="$CFLAGS"
  3379. ac_save_LIBS="$LIBS"
  3380. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  3381. LIBS="$LIBS $LIBGNUTLS_LIBS"
  3382. rm -f conf.libgnutlstest
  3383. if test "$cross_compiling" = yes; then
  3384. echo $ac_n "cross compiling; assumed OK... $ac_c"
  3385. else
  3386. cat >conftest.$ac_ext <<_ACEOF
  3387. /* confdefs.h. */
  3388. _ACEOF
  3389. cat confdefs.h >>conftest.$ac_ext
  3390. cat >>conftest.$ac_ext <<_ACEOF
  3391. /* end confdefs.h. */
  3392. #include <stdio.h>
  3393. #include <stdlib.h>
  3394. #include <string.h>
  3395. #include <gnutls/gnutls.h>
  3396. int
  3397. main ()
  3398. {
  3399. system ("touch conf.libgnutlstest");
  3400. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  3401. {
  3402. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  3403. "$libgnutls_config_version", gnutls_check_version(NULL) );
  3404. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  3405. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  3406. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  3407. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  3408. printf("*** required on your system.\n");
  3409. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  3410. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  3411. printf("*** before re-running configure\n");
  3412. }
  3413. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  3414. {
  3415. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  3416. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  3417. }
  3418. else
  3419. {
  3420. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  3421. {
  3422. return 0;
  3423. }
  3424. else
  3425. {
  3426. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  3427. gnutls_check_version(NULL) );
  3428. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  3429. "$min_libgnutls_version" );
  3430. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  3431. printf("*** \n");
  3432. printf("*** If you have already installed a sufficiently new version, this error\n");
  3433. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  3434. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  3435. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  3436. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  3437. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  3438. printf("*** so that the correct libraries are found at run-time))\n");
  3439. }
  3440. }
  3441. return 1;
  3442. }
  3443. _ACEOF
  3444. rm -f conftest$ac_exeext
  3445. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3446. (eval $ac_link) 2>&5
  3447. ac_status=$?
  3448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3449. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3450. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3451. (eval $ac_try) 2>&5
  3452. ac_status=$?
  3453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3454. (exit $ac_status); }; }; then
  3455. :
  3456. else
  3457. echo "$as_me: program exited with status $ac_status" >&5
  3458. echo "$as_me: failed program was:" >&5
  3459. sed 's/^/| /' conftest.$ac_ext >&5
  3460. ( exit $ac_status )
  3461. no_libgnutls=yes
  3462. fi
  3463. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3464. fi
  3465. CFLAGS="$ac_save_CFLAGS"
  3466. LIBS="$ac_save_LIBS"
  3467. fi
  3468. if test "x$no_libgnutls" = x ; then
  3469. echo "$as_me:$LINENO: result: yes" >&5
  3470. echo "${ECHO_T}yes" >&6
  3471. have_libgnutls=yes
  3472. else
  3473. if test -f conf.libgnutlstest ; then
  3474. :
  3475. else
  3476. echo "$as_me:$LINENO: result: no" >&5
  3477. echo "${ECHO_T}no" >&6
  3478. fi
  3479. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  3480. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  3481. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  3482. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  3483. echo "*** full path to libgnutls-config."
  3484. else
  3485. if test -f conf.libgnutlstest ; then
  3486. :
  3487. else
  3488. echo "*** Could not run libgnutls test program, checking why..."
  3489. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  3490. LIBS="$LIBS $LIBGNUTLS_LIBS"
  3491. cat >conftest.$ac_ext <<_ACEOF
  3492. /* confdefs.h. */
  3493. _ACEOF
  3494. cat confdefs.h >>conftest.$ac_ext
  3495. cat >>conftest.$ac_ext <<_ACEOF
  3496. /* end confdefs.h. */
  3497. #include <stdio.h>
  3498. #include <stdlib.h>
  3499. #include <string.h>
  3500. #include <gnutls/gnutls.h>
  3501. int
  3502. main ()
  3503. {
  3504. return !!gnutls_check_version(NULL);
  3505. ;
  3506. return 0;
  3507. }
  3508. _ACEOF
  3509. rm -f conftest.$ac_objext conftest$ac_exeext
  3510. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3511. (eval $ac_link) 2>conftest.er1
  3512. ac_status=$?
  3513. grep -v '^ *+' conftest.er1 >conftest.err
  3514. rm -f conftest.er1
  3515. cat conftest.err >&5
  3516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3517. (exit $ac_status); } &&
  3518. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3519. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3520. (eval $ac_try) 2>&5
  3521. ac_status=$?
  3522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3523. (exit $ac_status); }; } &&
  3524. { ac_try='test -s conftest$ac_exeext'
  3525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3526. (eval $ac_try) 2>&5
  3527. ac_status=$?
  3528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3529. (exit $ac_status); }; }; then
  3530. echo "*** The test program compiled, but did not run. This usually means"
  3531. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  3532. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  3533. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3534. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  3535. echo "*** is required on your system"
  3536. echo "***"
  3537. echo "*** If you have an old version installed, it is best to remove it, although"
  3538. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3539. echo "***"
  3540. else
  3541. echo "$as_me: failed program was:" >&5
  3542. sed 's/^/| /' conftest.$ac_ext >&5
  3543. echo "*** The test program failed to compile or link. See the file config.log for the"
  3544. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  3545. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  3546. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  3547. fi
  3548. rm -f conftest.err conftest.$ac_objext \
  3549. conftest$ac_exeext conftest.$ac_ext
  3550. CFLAGS="$ac_save_CFLAGS"
  3551. LIBS="$ac_save_LIBS"
  3552. fi
  3553. fi
  3554. LIBGNUTLS_CFLAGS=""
  3555. LIBGNUTLS_LIBS=""
  3556. :
  3557. fi
  3558. rm -f conf.libgnutlstest
  3559. if test "x$have_libgnutls" = "xyes"; then
  3560. cat >>confdefs.h <<\_ACEOF
  3561. #define HAVE_LIBGNUTLS 1
  3562. _ACEOF
  3563. fi
  3564. fi
  3565. if test "x$have_libgnutls" = "xyes"; then
  3566. # Check whether --with-libgcrypt-prefix or --without-libgcrypt-prefix was given.
  3567. if test "${with_libgcrypt_prefix+set}" = set; then
  3568. withval="$with_libgcrypt_prefix"
  3569. libgcrypt_config_prefix="$withval"
  3570. else
  3571. libgcrypt_config_prefix=""
  3572. fi;
  3573. if test x$libgcrypt_config_prefix != x ; then
  3574. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  3575. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  3576. fi
  3577. fi
  3578. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  3579. set dummy libgcrypt-config; ac_word=$2
  3580. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3581. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3582. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  3583. echo $ECHO_N "(cached) $ECHO_C" >&6
  3584. else
  3585. case $LIBGCRYPT_CONFIG in
  3586. [\\/]* | ?:[\\/]*)
  3587. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  3588. ;;
  3589. *)
  3590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3591. for as_dir in $PATH
  3592. do
  3593. IFS=$as_save_IFS
  3594. test -z "$as_dir" && as_dir=.
  3595. for ac_exec_ext in '' $ac_executable_extensions; do
  3596. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3597. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3598. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3599. break 2
  3600. fi
  3601. done
  3602. done
  3603. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  3604. ;;
  3605. esac
  3606. fi
  3607. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  3608. if test -n "$LIBGCRYPT_CONFIG"; then
  3609. echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  3610. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6
  3611. else
  3612. echo "$as_me:$LINENO: result: no" >&5
  3613. echo "${ECHO_T}no" >&6
  3614. fi
  3615. tmp=1.2.2
  3616. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  3617. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  3618. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  3619. else
  3620. req_libgcrypt_api=0
  3621. min_libgcrypt_version="$tmp"
  3622. fi
  3623. echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  3624. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6
  3625. ok=no
  3626. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  3627. req_major=`echo $min_libgcrypt_version | \
  3628. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  3629. req_minor=`echo $min_libgcrypt_version | \
  3630. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  3631. req_micro=`echo $min_libgcrypt_version | \
  3632. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  3633. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  3634. major=`echo $libgcrypt_config_version | \
  3635. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  3636. minor=`echo $libgcrypt_config_version | \
  3637. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  3638. micro=`echo $libgcrypt_config_version | \
  3639. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  3640. if test "$major" -gt "$req_major"; then
  3641. ok=yes
  3642. else
  3643. if test "$major" -eq "$req_major"; then
  3644. if test "$minor" -gt "$req_minor"; then
  3645. ok=yes
  3646. else
  3647. if test "$minor" -eq "$req_minor"; then
  3648. if test "$micro" -ge "$req_micro"; then
  3649. ok=yes
  3650. fi
  3651. fi
  3652. fi
  3653. fi
  3654. fi
  3655. fi
  3656. if test $ok = yes; then
  3657. echo "$as_me:$LINENO: result: yes" >&5
  3658. echo "${ECHO_T}yes" >&6
  3659. else
  3660. echo "$as_me:$LINENO: result: no" >&5
  3661. echo "${ECHO_T}no" >&6
  3662. fi
  3663. if test $ok = yes; then
  3664. # If we have a recent libgcrypt, we should also check that the
  3665. # API is compatible
  3666. if test "$req_libgcrypt_api" -gt 0 ; then
  3667. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  3668. if test "$tmp" -gt 0 ; then
  3669. echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  3670. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6
  3671. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  3672. echo "$as_me:$LINENO: result: okay" >&5
  3673. echo "${ECHO_T}okay" >&6
  3674. else
  3675. ok=no
  3676. echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
  3677. echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6
  3678. fi
  3679. fi
  3680. fi
  3681. fi
  3682. if test $ok = yes; then
  3683. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  3684. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  3685. have_libgcrypt=yes
  3686. else
  3687. LIBGCRYPT_CFLAGS=""
  3688. LIBGCRYPT_LIBS=""
  3689. :
  3690. fi
  3691. if test "x$have_libgcrypt" = "xyes"; then
  3692. cat >>confdefs.h <<\_ACEOF
  3693. #define HAVE_LIBGCRYPT 1
  3694. _ACEOF
  3695. fi
  3696. fi
  3697. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  3698. # AC_CHECK_LIB([ssl], [SSL_library_init], [have_openssl=yes])
  3699. # if test "x$have_openssl" = "xyes"; then
  3700. # AC_DEFINE([HAVE_LIBSSL], [1], [Define to 1 if you have openssl.])
  3701. # OPENSSL_LIBS="-lssl"
  3702. # OPENSSL_CFLAGS=""
  3703. # AC_SUBST(OPENSSL_LIBS)
  3704. # AC_SUBST(OPENSSL_CFLAGS)
  3705. # fi
  3706. # Check whether --with-openssl-prefix or --without-openssl-prefix was given.
  3707. if test "${with_openssl_prefix+set}" = set; then
  3708. withval="$with_openssl_prefix"
  3709. openssl_prefix=$withval
  3710. else
  3711. openssl_prefix=""
  3712. fi;
  3713. if test "x$openssl_prefix" = "x"; then
  3714. openssl_prefix="/usr/local"
  3715. fi
  3716. openssl_prefix_lib=$openssl_prefix/lib
  3717. openssl_prefix_include=$openssl_prefix/include
  3718. LIBS_save=$LIBS
  3719. CPPFLAGS_save=$CPPFLAGS
  3720. LIBS="-L$openssl_prefix_lib $LIBS"
  3721. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  3722. echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  3723. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
  3724. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  3725. echo $ECHO_N "(cached) $ECHO_C" >&6
  3726. else
  3727. ac_check_lib_save_LIBS=$LIBS
  3728. LIBS="-lssl $LIBS"
  3729. cat >conftest.$ac_ext <<_ACEOF
  3730. /* confdefs.h. */
  3731. _ACEOF
  3732. cat confdefs.h >>conftest.$ac_ext
  3733. cat >>conftest.$ac_ext <<_ACEOF
  3734. /* end confdefs.h. */
  3735. /* Override any gcc2 internal prototype to avoid an error. */
  3736. #ifdef __cplusplus
  3737. extern "C"
  3738. #endif
  3739. /* We use char because int might match the return type of a gcc2
  3740. builtin and then its argument prototype would still apply. */
  3741. char SSL_library_init ();
  3742. int
  3743. main ()
  3744. {
  3745. SSL_library_init ();
  3746. ;
  3747. return 0;
  3748. }
  3749. _ACEOF
  3750. rm -f conftest.$ac_objext conftest$ac_exeext
  3751. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3752. (eval $ac_link) 2>conftest.er1
  3753. ac_status=$?
  3754. grep -v '^ *+' conftest.er1 >conftest.err
  3755. rm -f conftest.er1
  3756. cat conftest.err >&5
  3757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3758. (exit $ac_status); } &&
  3759. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3760. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3761. (eval $ac_try) 2>&5
  3762. ac_status=$?
  3763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3764. (exit $ac_status); }; } &&
  3765. { ac_try='test -s conftest$ac_exeext'
  3766. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3767. (eval $ac_try) 2>&5
  3768. ac_status=$?
  3769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3770. (exit $ac_status); }; }; then
  3771. ac_cv_lib_ssl_SSL_library_init=yes
  3772. else
  3773. echo "$as_me: failed program was:" >&5
  3774. sed 's/^/| /' conftest.$ac_ext >&5
  3775. ac_cv_lib_ssl_SSL_library_init=no
  3776. fi
  3777. rm -f conftest.err conftest.$ac_objext \
  3778. conftest$ac_exeext conftest.$ac_ext
  3779. LIBS=$ac_check_lib_save_LIBS
  3780. fi
  3781. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  3782. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
  3783. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  3784. have_openssl=yes
  3785. fi
  3786. if test "x$have_openssl" = "xyes"; then
  3787. have_openssl=no
  3788. echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  3789. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
  3790. if test "${ac_cv_lib_crypto_main+set}" = set; then
  3791. echo $ECHO_N "(cached) $ECHO_C" >&6
  3792. else
  3793. ac_check_lib_save_LIBS=$LIBS
  3794. LIBS="-lcrypto $LIBS"
  3795. cat >conftest.$ac_ext <<_ACEOF
  3796. /* confdefs.h. */
  3797. _ACEOF
  3798. cat confdefs.h >>conftest.$ac_ext
  3799. cat >>conftest.$ac_ext <<_ACEOF
  3800. /* end confdefs.h. */
  3801. int
  3802. main ()
  3803. {
  3804. main ();
  3805. ;
  3806. return 0;
  3807. }
  3808. _ACEOF
  3809. rm -f conftest.$ac_objext conftest$ac_exeext
  3810. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3811. (eval $ac_link) 2>conftest.er1
  3812. ac_status=$?
  3813. grep -v '^ *+' conftest.er1 >conftest.err
  3814. rm -f conftest.er1
  3815. cat conftest.err >&5
  3816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3817. (exit $ac_status); } &&
  3818. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3819. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3820. (eval $ac_try) 2>&5
  3821. ac_status=$?
  3822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3823. (exit $ac_status); }; } &&
  3824. { ac_try='test -s conftest$ac_exeext'
  3825. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3826. (eval $ac_try) 2>&5
  3827. ac_status=$?
  3828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3829. (exit $ac_status); }; }; then
  3830. ac_cv_lib_crypto_main=yes
  3831. else
  3832. echo "$as_me: failed program was:" >&5
  3833. sed 's/^/| /' conftest.$ac_ext >&5
  3834. ac_cv_lib_crypto_main=no
  3835. fi
  3836. rm -f conftest.err conftest.$ac_objext \
  3837. conftest$ac_exeext conftest.$ac_ext
  3838. LIBS=$ac_check_lib_save_LIBS
  3839. fi
  3840. echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  3841. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
  3842. if test $ac_cv_lib_crypto_main = yes; then
  3843. have_openssl=yes
  3844. fi
  3845. if test "x$have_openssl" = "xyes"; then
  3846. cat >>confdefs.h <<\_ACEOF
  3847. #define HAVE_LIBSSL 1
  3848. _ACEOF
  3849. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  3850. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  3851. fi
  3852. fi
  3853. LIBS=$LIBS_save
  3854. CPPFLAGS=$CPPFLAGS_save
  3855. fi
  3856. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  3857. cat >>confdefs.h <<\_ACEOF
  3858. #define ENABLE_SSL 1
  3859. _ACEOF
  3860. fi
  3861. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  3862. cat >>confdefs.h <<\_ACEOF
  3863. #define ENABLE_SHA1DIGEST 1
  3864. _ACEOF
  3865. cat >>confdefs.h <<\_ACEOF
  3866. #define ENABLE_BITTORRENT 1
  3867. _ACEOF
  3868. fi
  3869. # Checks for header files.
  3870. ac_ext=c
  3871. ac_cpp='$CPP $CPPFLAGS'
  3872. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3873. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3874. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3875. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3876. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  3877. # On Suns, sometimes $CPP names a directory.
  3878. if test -n "$CPP" && test -d "$CPP"; then
  3879. CPP=
  3880. fi
  3881. if test -z "$CPP"; then
  3882. if test "${ac_cv_prog_CPP+set}" = set; then
  3883. echo $ECHO_N "(cached) $ECHO_C" >&6
  3884. else
  3885. # Double quotes because CPP needs to be expanded
  3886. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3887. do
  3888. ac_preproc_ok=false
  3889. for ac_c_preproc_warn_flag in '' yes
  3890. do
  3891. # Use a header file that comes with gcc, so configuring glibc
  3892. # with a fresh cross-compiler works.
  3893. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3894. # <limits.h> exists even on freestanding compilers.
  3895. # On the NeXT, cc -E runs the code through the compiler's parser,
  3896. # not just through cpp. "Syntax error" is here to catch this case.
  3897. cat >conftest.$ac_ext <<_ACEOF
  3898. /* confdefs.h. */
  3899. _ACEOF
  3900. cat confdefs.h >>conftest.$ac_ext
  3901. cat >>conftest.$ac_ext <<_ACEOF
  3902. /* end confdefs.h. */
  3903. #ifdef __STDC__
  3904. # include <limits.h>
  3905. #else
  3906. # include <assert.h>
  3907. #endif
  3908. Syntax error
  3909. _ACEOF
  3910. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3911. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3912. ac_status=$?
  3913. grep -v '^ *+' conftest.er1 >conftest.err
  3914. rm -f conftest.er1
  3915. cat conftest.err >&5
  3916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3917. (exit $ac_status); } >/dev/null; then
  3918. if test -s conftest.err; then
  3919. ac_cpp_err=$ac_c_preproc_warn_flag
  3920. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3921. else
  3922. ac_cpp_err=
  3923. fi
  3924. else
  3925. ac_cpp_err=yes
  3926. fi
  3927. if test -z "$ac_cpp_err"; then
  3928. :
  3929. else
  3930. echo "$as_me: failed program was:" >&5
  3931. sed 's/^/| /' conftest.$ac_ext >&5
  3932. # Broken: fails on valid input.
  3933. continue
  3934. fi
  3935. rm -f conftest.err conftest.$ac_ext
  3936. # OK, works on sane cases. Now check whether non-existent headers
  3937. # can be detected and how.
  3938. cat >conftest.$ac_ext <<_ACEOF
  3939. /* confdefs.h. */
  3940. _ACEOF
  3941. cat confdefs.h >>conftest.$ac_ext
  3942. cat >>conftest.$ac_ext <<_ACEOF
  3943. /* end confdefs.h. */
  3944. #include <ac_nonexistent.h>
  3945. _ACEOF
  3946. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3947. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3948. ac_status=$?
  3949. grep -v '^ *+' conftest.er1 >conftest.err
  3950. rm -f conftest.er1
  3951. cat conftest.err >&5
  3952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3953. (exit $ac_status); } >/dev/null; then
  3954. if test -s conftest.err; then
  3955. ac_cpp_err=$ac_c_preproc_warn_flag
  3956. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3957. else
  3958. ac_cpp_err=
  3959. fi
  3960. else
  3961. ac_cpp_err=yes
  3962. fi
  3963. if test -z "$ac_cpp_err"; then
  3964. # Broken: success on invalid input.
  3965. continue
  3966. else
  3967. echo "$as_me: failed program was:" >&5
  3968. sed 's/^/| /' conftest.$ac_ext >&5
  3969. # Passes both tests.
  3970. ac_preproc_ok=:
  3971. break
  3972. fi
  3973. rm -f conftest.err conftest.$ac_ext
  3974. done
  3975. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3976. rm -f conftest.err conftest.$ac_ext
  3977. if $ac_preproc_ok; then
  3978. break
  3979. fi
  3980. done
  3981. ac_cv_prog_CPP=$CPP
  3982. fi
  3983. CPP=$ac_cv_prog_CPP
  3984. else
  3985. ac_cv_prog_CPP=$CPP
  3986. fi
  3987. echo "$as_me:$LINENO: result: $CPP" >&5
  3988. echo "${ECHO_T}$CPP" >&6
  3989. ac_preproc_ok=false
  3990. for ac_c_preproc_warn_flag in '' yes
  3991. do
  3992. # Use a header file that comes with gcc, so configuring glibc
  3993. # with a fresh cross-compiler works.
  3994. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3995. # <limits.h> exists even on freestanding compilers.
  3996. # On the NeXT, cc -E runs the code through the compiler's parser,
  3997. # not just through cpp. "Syntax error" is here to catch this case.
  3998. cat >conftest.$ac_ext <<_ACEOF
  3999. /* confdefs.h. */
  4000. _ACEOF
  4001. cat confdefs.h >>conftest.$ac_ext
  4002. cat >>conftest.$ac_ext <<_ACEOF
  4003. /* end confdefs.h. */
  4004. #ifdef __STDC__
  4005. # include <limits.h>
  4006. #else
  4007. # include <assert.h>
  4008. #endif
  4009. Syntax error
  4010. _ACEOF
  4011. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4012. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4013. ac_status=$?
  4014. grep -v '^ *+' conftest.er1 >conftest.err
  4015. rm -f conftest.er1
  4016. cat conftest.err >&5
  4017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4018. (exit $ac_status); } >/dev/null; then
  4019. if test -s conftest.err; then
  4020. ac_cpp_err=$ac_c_preproc_warn_flag
  4021. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4022. else
  4023. ac_cpp_err=
  4024. fi
  4025. else
  4026. ac_cpp_err=yes
  4027. fi
  4028. if test -z "$ac_cpp_err"; then
  4029. :
  4030. else
  4031. echo "$as_me: failed program was:" >&5
  4032. sed 's/^/| /' conftest.$ac_ext >&5
  4033. # Broken: fails on valid input.
  4034. continue
  4035. fi
  4036. rm -f conftest.err conftest.$ac_ext
  4037. # OK, works on sane cases. Now check whether non-existent headers
  4038. # can be detected and how.
  4039. cat >conftest.$ac_ext <<_ACEOF
  4040. /* confdefs.h. */
  4041. _ACEOF
  4042. cat confdefs.h >>conftest.$ac_ext
  4043. cat >>conftest.$ac_ext <<_ACEOF
  4044. /* end confdefs.h. */
  4045. #include <ac_nonexistent.h>
  4046. _ACEOF
  4047. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4048. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4049. ac_status=$?
  4050. grep -v '^ *+' conftest.er1 >conftest.err
  4051. rm -f conftest.er1
  4052. cat conftest.err >&5
  4053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4054. (exit $ac_status); } >/dev/null; then
  4055. if test -s conftest.err; then
  4056. ac_cpp_err=$ac_c_preproc_warn_flag
  4057. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4058. else
  4059. ac_cpp_err=
  4060. fi
  4061. else
  4062. ac_cpp_err=yes
  4063. fi
  4064. if test -z "$ac_cpp_err"; then
  4065. # Broken: success on invalid input.
  4066. continue
  4067. else
  4068. echo "$as_me: failed program was:" >&5
  4069. sed 's/^/| /' conftest.$ac_ext >&5
  4070. # Passes both tests.
  4071. ac_preproc_ok=:
  4072. break
  4073. fi
  4074. rm -f conftest.err conftest.$ac_ext
  4075. done
  4076. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4077. rm -f conftest.err conftest.$ac_ext
  4078. if $ac_preproc_ok; then
  4079. :
  4080. else
  4081. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4082. See \`config.log' for more details." >&5
  4083. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4084. See \`config.log' for more details." >&2;}
  4085. { (exit 1); exit 1; }; }
  4086. fi
  4087. ac_ext=c
  4088. ac_cpp='$CPP $CPPFLAGS'
  4089. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4090. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4091. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4092. echo "$as_me:$LINENO: checking for egrep" >&5
  4093. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  4094. if test "${ac_cv_prog_egrep+set}" = set; then
  4095. echo $ECHO_N "(cached) $ECHO_C" >&6
  4096. else
  4097. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  4098. then ac_cv_prog_egrep='grep -E'
  4099. else ac_cv_prog_egrep='egrep'
  4100. fi
  4101. fi
  4102. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  4103. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  4104. EGREP=$ac_cv_prog_egrep
  4105. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  4106. # for constant arguments. Useless!
  4107. echo "$as_me:$LINENO: checking for working alloca.h" >&5
  4108. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
  4109. if test "${ac_cv_working_alloca_h+set}" = set; then
  4110. echo $ECHO_N "(cached) $ECHO_C" >&6
  4111. else
  4112. cat >conftest.$ac_ext <<_ACEOF
  4113. /* confdefs.h. */
  4114. _ACEOF
  4115. cat confdefs.h >>conftest.$ac_ext
  4116. cat >>conftest.$ac_ext <<_ACEOF
  4117. /* end confdefs.h. */
  4118. #include <alloca.h>
  4119. int
  4120. main ()
  4121. {
  4122. char *p = (char *) alloca (2 * sizeof (int));
  4123. ;
  4124. return 0;
  4125. }
  4126. _ACEOF
  4127. rm -f conftest.$ac_objext conftest$ac_exeext
  4128. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4129. (eval $ac_link) 2>conftest.er1
  4130. ac_status=$?
  4131. grep -v '^ *+' conftest.er1 >conftest.err
  4132. rm -f conftest.er1
  4133. cat conftest.err >&5
  4134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4135. (exit $ac_status); } &&
  4136. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4138. (eval $ac_try) 2>&5
  4139. ac_status=$?
  4140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4141. (exit $ac_status); }; } &&
  4142. { ac_try='test -s conftest$ac_exeext'
  4143. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4144. (eval $ac_try) 2>&5
  4145. ac_status=$?
  4146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4147. (exit $ac_status); }; }; then
  4148. ac_cv_working_alloca_h=yes
  4149. else
  4150. echo "$as_me: failed program was:" >&5
  4151. sed 's/^/| /' conftest.$ac_ext >&5
  4152. ac_cv_working_alloca_h=no
  4153. fi
  4154. rm -f conftest.err conftest.$ac_objext \
  4155. conftest$ac_exeext conftest.$ac_ext
  4156. fi
  4157. echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  4158. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
  4159. if test $ac_cv_working_alloca_h = yes; then
  4160. cat >>confdefs.h <<\_ACEOF
  4161. #define HAVE_ALLOCA_H 1
  4162. _ACEOF
  4163. fi
  4164. echo "$as_me:$LINENO: checking for alloca" >&5
  4165. echo $ECHO_N "checking for alloca... $ECHO_C" >&6
  4166. if test "${ac_cv_func_alloca_works+set}" = set; then
  4167. echo $ECHO_N "(cached) $ECHO_C" >&6
  4168. else
  4169. cat >conftest.$ac_ext <<_ACEOF
  4170. /* confdefs.h. */
  4171. _ACEOF
  4172. cat confdefs.h >>conftest.$ac_ext
  4173. cat >>conftest.$ac_ext <<_ACEOF
  4174. /* end confdefs.h. */
  4175. #ifdef __GNUC__
  4176. # define alloca __builtin_alloca
  4177. #else
  4178. # ifdef _MSC_VER
  4179. # include <malloc.h>
  4180. # define alloca _alloca
  4181. # else
  4182. # if HAVE_ALLOCA_H
  4183. # include <alloca.h>
  4184. # else
  4185. # ifdef _AIX
  4186. #pragma alloca
  4187. # else
  4188. # ifndef alloca /* predefined by HP cc +Olibcalls */
  4189. char *alloca ();
  4190. # endif
  4191. # endif
  4192. # endif
  4193. # endif
  4194. #endif
  4195. int
  4196. main ()
  4197. {
  4198. char *p = (char *) alloca (1);
  4199. ;
  4200. return 0;
  4201. }
  4202. _ACEOF
  4203. rm -f conftest.$ac_objext conftest$ac_exeext
  4204. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4205. (eval $ac_link) 2>conftest.er1
  4206. ac_status=$?
  4207. grep -v '^ *+' conftest.er1 >conftest.err
  4208. rm -f conftest.er1
  4209. cat conftest.err >&5
  4210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4211. (exit $ac_status); } &&
  4212. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4213. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4214. (eval $ac_try) 2>&5
  4215. ac_status=$?
  4216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4217. (exit $ac_status); }; } &&
  4218. { ac_try='test -s conftest$ac_exeext'
  4219. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4220. (eval $ac_try) 2>&5
  4221. ac_status=$?
  4222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4223. (exit $ac_status); }; }; then
  4224. ac_cv_func_alloca_works=yes
  4225. else
  4226. echo "$as_me: failed program was:" >&5
  4227. sed 's/^/| /' conftest.$ac_ext >&5
  4228. ac_cv_func_alloca_works=no
  4229. fi
  4230. rm -f conftest.err conftest.$ac_objext \
  4231. conftest$ac_exeext conftest.$ac_ext
  4232. fi
  4233. echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  4234. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
  4235. if test $ac_cv_func_alloca_works = yes; then
  4236. cat >>confdefs.h <<\_ACEOF
  4237. #define HAVE_ALLOCA 1
  4238. _ACEOF
  4239. else
  4240. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  4241. # that cause trouble. Some versions do not even contain alloca or
  4242. # contain a buggy version. If you still want to use their alloca,
  4243. # use ar to extract alloca.o from them instead of compiling alloca.c.
  4244. ALLOCA=alloca.$ac_objext
  4245. cat >>confdefs.h <<\_ACEOF
  4246. #define C_ALLOCA 1
  4247. _ACEOF
  4248. echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  4249. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
  4250. if test "${ac_cv_os_cray+set}" = set; then
  4251. echo $ECHO_N "(cached) $ECHO_C" >&6
  4252. else
  4253. cat >conftest.$ac_ext <<_ACEOF
  4254. /* confdefs.h. */
  4255. _ACEOF
  4256. cat confdefs.h >>conftest.$ac_ext
  4257. cat >>conftest.$ac_ext <<_ACEOF
  4258. /* end confdefs.h. */
  4259. #if defined(CRAY) && ! defined(CRAY2)
  4260. webecray
  4261. #else
  4262. wenotbecray
  4263. #endif
  4264. _ACEOF
  4265. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4266. $EGREP "webecray" >/dev/null 2>&1; then
  4267. ac_cv_os_cray=yes
  4268. else
  4269. ac_cv_os_cray=no
  4270. fi
  4271. rm -f conftest*
  4272. fi
  4273. echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  4274. echo "${ECHO_T}$ac_cv_os_cray" >&6
  4275. if test $ac_cv_os_cray = yes; then
  4276. for ac_func in _getb67 GETB67 getb67; do
  4277. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4278. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4279. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4280. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4281. echo $ECHO_N "(cached) $ECHO_C" >&6
  4282. else
  4283. cat >conftest.$ac_ext <<_ACEOF
  4284. /* confdefs.h. */
  4285. _ACEOF
  4286. cat confdefs.h >>conftest.$ac_ext
  4287. cat >>conftest.$ac_ext <<_ACEOF
  4288. /* end confdefs.h. */
  4289. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4290. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4291. #define $ac_func innocuous_$ac_func
  4292. /* System header to define __stub macros and hopefully few prototypes,
  4293. which can conflict with char $ac_func (); below.
  4294. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4295. <limits.h> exists even on freestanding compilers. */
  4296. #ifdef __STDC__
  4297. # include <limits.h>
  4298. #else
  4299. # include <assert.h>
  4300. #endif
  4301. #undef $ac_func
  4302. /* Override any gcc2 internal prototype to avoid an error. */
  4303. #ifdef __cplusplus
  4304. extern "C"
  4305. {
  4306. #endif
  4307. /* We use char because int might match the return type of a gcc2
  4308. builtin and then its argument prototype would still apply. */
  4309. char $ac_func ();
  4310. /* The GNU C library defines this for functions which it implements
  4311. to always fail with ENOSYS. Some functions are actually named
  4312. something starting with __ and the normal name is an alias. */
  4313. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4314. choke me
  4315. #else
  4316. char (*f) () = $ac_func;
  4317. #endif
  4318. #ifdef __cplusplus
  4319. }
  4320. #endif
  4321. int
  4322. main ()
  4323. {
  4324. return f != $ac_func;
  4325. ;
  4326. return 0;
  4327. }
  4328. _ACEOF
  4329. rm -f conftest.$ac_objext conftest$ac_exeext
  4330. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4331. (eval $ac_link) 2>conftest.er1
  4332. ac_status=$?
  4333. grep -v '^ *+' conftest.er1 >conftest.err
  4334. rm -f conftest.er1
  4335. cat conftest.err >&5
  4336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4337. (exit $ac_status); } &&
  4338. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4340. (eval $ac_try) 2>&5
  4341. ac_status=$?
  4342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4343. (exit $ac_status); }; } &&
  4344. { ac_try='test -s conftest$ac_exeext'
  4345. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4346. (eval $ac_try) 2>&5
  4347. ac_status=$?
  4348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4349. (exit $ac_status); }; }; then
  4350. eval "$as_ac_var=yes"
  4351. else
  4352. echo "$as_me: failed program was:" >&5
  4353. sed 's/^/| /' conftest.$ac_ext >&5
  4354. eval "$as_ac_var=no"
  4355. fi
  4356. rm -f conftest.err conftest.$ac_objext \
  4357. conftest$ac_exeext conftest.$ac_ext
  4358. fi
  4359. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4360. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4361. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4362. cat >>confdefs.h <<_ACEOF
  4363. #define CRAY_STACKSEG_END $ac_func
  4364. _ACEOF
  4365. break
  4366. fi
  4367. done
  4368. fi
  4369. echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  4370. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
  4371. if test "${ac_cv_c_stack_direction+set}" = set; then
  4372. echo $ECHO_N "(cached) $ECHO_C" >&6
  4373. else
  4374. if test "$cross_compiling" = yes; then
  4375. ac_cv_c_stack_direction=0
  4376. else
  4377. cat >conftest.$ac_ext <<_ACEOF
  4378. /* confdefs.h. */
  4379. _ACEOF
  4380. cat confdefs.h >>conftest.$ac_ext
  4381. cat >>conftest.$ac_ext <<_ACEOF
  4382. /* end confdefs.h. */
  4383. int
  4384. find_stack_direction ()
  4385. {
  4386. static char *addr = 0;
  4387. auto char dummy;
  4388. if (addr == 0)
  4389. {
  4390. addr = &dummy;
  4391. return find_stack_direction ();
  4392. }
  4393. else
  4394. return (&dummy > addr) ? 1 : -1;
  4395. }
  4396. int
  4397. main ()
  4398. {
  4399. exit (find_stack_direction () < 0);
  4400. }
  4401. _ACEOF
  4402. rm -f conftest$ac_exeext
  4403. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4404. (eval $ac_link) 2>&5
  4405. ac_status=$?
  4406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4407. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4408. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4409. (eval $ac_try) 2>&5
  4410. ac_status=$?
  4411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4412. (exit $ac_status); }; }; then
  4413. ac_cv_c_stack_direction=1
  4414. else
  4415. echo "$as_me: program exited with status $ac_status" >&5
  4416. echo "$as_me: failed program was:" >&5
  4417. sed 's/^/| /' conftest.$ac_ext >&5
  4418. ( exit $ac_status )
  4419. ac_cv_c_stack_direction=-1
  4420. fi
  4421. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4422. fi
  4423. fi
  4424. echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  4425. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
  4426. cat >>confdefs.h <<_ACEOF
  4427. #define STACK_DIRECTION $ac_cv_c_stack_direction
  4428. _ACEOF
  4429. fi
  4430. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4431. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4432. if test "${ac_cv_header_stdc+set}" = set; then
  4433. echo $ECHO_N "(cached) $ECHO_C" >&6
  4434. else
  4435. cat >conftest.$ac_ext <<_ACEOF
  4436. /* confdefs.h. */
  4437. _ACEOF
  4438. cat confdefs.h >>conftest.$ac_ext
  4439. cat >>conftest.$ac_ext <<_ACEOF
  4440. /* end confdefs.h. */
  4441. #include <stdlib.h>
  4442. #include <stdarg.h>
  4443. #include <string.h>
  4444. #include <float.h>
  4445. int
  4446. main ()
  4447. {
  4448. ;
  4449. return 0;
  4450. }
  4451. _ACEOF
  4452. rm -f conftest.$ac_objext
  4453. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4454. (eval $ac_compile) 2>conftest.er1
  4455. ac_status=$?
  4456. grep -v '^ *+' conftest.er1 >conftest.err
  4457. rm -f conftest.er1
  4458. cat conftest.err >&5
  4459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4460. (exit $ac_status); } &&
  4461. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4462. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4463. (eval $ac_try) 2>&5
  4464. ac_status=$?
  4465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4466. (exit $ac_status); }; } &&
  4467. { ac_try='test -s conftest.$ac_objext'
  4468. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4469. (eval $ac_try) 2>&5
  4470. ac_status=$?
  4471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4472. (exit $ac_status); }; }; then
  4473. ac_cv_header_stdc=yes
  4474. else
  4475. echo "$as_me: failed program was:" >&5
  4476. sed 's/^/| /' conftest.$ac_ext >&5
  4477. ac_cv_header_stdc=no
  4478. fi
  4479. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4480. if test $ac_cv_header_stdc = yes; then
  4481. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4482. cat >conftest.$ac_ext <<_ACEOF
  4483. /* confdefs.h. */
  4484. _ACEOF
  4485. cat confdefs.h >>conftest.$ac_ext
  4486. cat >>conftest.$ac_ext <<_ACEOF
  4487. /* end confdefs.h. */
  4488. #include <string.h>
  4489. _ACEOF
  4490. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4491. $EGREP "memchr" >/dev/null 2>&1; then
  4492. :
  4493. else
  4494. ac_cv_header_stdc=no
  4495. fi
  4496. rm -f conftest*
  4497. fi
  4498. if test $ac_cv_header_stdc = yes; then
  4499. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4500. cat >conftest.$ac_ext <<_ACEOF
  4501. /* confdefs.h. */
  4502. _ACEOF
  4503. cat confdefs.h >>conftest.$ac_ext
  4504. cat >>conftest.$ac_ext <<_ACEOF
  4505. /* end confdefs.h. */
  4506. #include <stdlib.h>
  4507. _ACEOF
  4508. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4509. $EGREP "free" >/dev/null 2>&1; then
  4510. :
  4511. else
  4512. ac_cv_header_stdc=no
  4513. fi
  4514. rm -f conftest*
  4515. fi
  4516. if test $ac_cv_header_stdc = yes; then
  4517. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4518. if test "$cross_compiling" = yes; then
  4519. :
  4520. else
  4521. cat >conftest.$ac_ext <<_ACEOF
  4522. /* confdefs.h. */
  4523. _ACEOF
  4524. cat confdefs.h >>conftest.$ac_ext
  4525. cat >>conftest.$ac_ext <<_ACEOF
  4526. /* end confdefs.h. */
  4527. #include <ctype.h>
  4528. #if ((' ' & 0x0FF) == 0x020)
  4529. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4530. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4531. #else
  4532. # define ISLOWER(c) \
  4533. (('a' <= (c) && (c) <= 'i') \
  4534. || ('j' <= (c) && (c) <= 'r') \
  4535. || ('s' <= (c) && (c) <= 'z'))
  4536. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4537. #endif
  4538. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4539. int
  4540. main ()
  4541. {
  4542. int i;
  4543. for (i = 0; i < 256; i++)
  4544. if (XOR (islower (i), ISLOWER (i))
  4545. || toupper (i) != TOUPPER (i))
  4546. exit(2);
  4547. exit (0);
  4548. }
  4549. _ACEOF
  4550. rm -f conftest$ac_exeext
  4551. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4552. (eval $ac_link) 2>&5
  4553. ac_status=$?
  4554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4555. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  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); }; }; then
  4561. :
  4562. else
  4563. echo "$as_me: program exited with status $ac_status" >&5
  4564. echo "$as_me: failed program was:" >&5
  4565. sed 's/^/| /' conftest.$ac_ext >&5
  4566. ( exit $ac_status )
  4567. ac_cv_header_stdc=no
  4568. fi
  4569. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4570. fi
  4571. fi
  4572. fi
  4573. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4574. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4575. if test $ac_cv_header_stdc = yes; then
  4576. cat >>confdefs.h <<\_ACEOF
  4577. #define STDC_HEADERS 1
  4578. _ACEOF
  4579. fi
  4580. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4581. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4582. inttypes.h stdint.h unistd.h
  4583. do
  4584. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4585. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4586. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4587. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4588. echo $ECHO_N "(cached) $ECHO_C" >&6
  4589. else
  4590. cat >conftest.$ac_ext <<_ACEOF
  4591. /* confdefs.h. */
  4592. _ACEOF
  4593. cat confdefs.h >>conftest.$ac_ext
  4594. cat >>conftest.$ac_ext <<_ACEOF
  4595. /* end confdefs.h. */
  4596. $ac_includes_default
  4597. #include <$ac_header>
  4598. _ACEOF
  4599. rm -f conftest.$ac_objext
  4600. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4601. (eval $ac_compile) 2>conftest.er1
  4602. ac_status=$?
  4603. grep -v '^ *+' conftest.er1 >conftest.err
  4604. rm -f conftest.er1
  4605. cat conftest.err >&5
  4606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4607. (exit $ac_status); } &&
  4608. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4609. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4610. (eval $ac_try) 2>&5
  4611. ac_status=$?
  4612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4613. (exit $ac_status); }; } &&
  4614. { ac_try='test -s conftest.$ac_objext'
  4615. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4616. (eval $ac_try) 2>&5
  4617. ac_status=$?
  4618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4619. (exit $ac_status); }; }; then
  4620. eval "$as_ac_Header=yes"
  4621. else
  4622. echo "$as_me: failed program was:" >&5
  4623. sed 's/^/| /' conftest.$ac_ext >&5
  4624. eval "$as_ac_Header=no"
  4625. fi
  4626. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4627. fi
  4628. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4629. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4630. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4631. cat >>confdefs.h <<_ACEOF
  4632. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4633. _ACEOF
  4634. fi
  4635. done
  4636. 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
  4637. do
  4638. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4639. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4640. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4641. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4642. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4643. echo $ECHO_N "(cached) $ECHO_C" >&6
  4644. fi
  4645. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4646. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4647. else
  4648. # Is the header compilable?
  4649. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4650. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4651. cat >conftest.$ac_ext <<_ACEOF
  4652. /* confdefs.h. */
  4653. _ACEOF
  4654. cat confdefs.h >>conftest.$ac_ext
  4655. cat >>conftest.$ac_ext <<_ACEOF
  4656. /* end confdefs.h. */
  4657. $ac_includes_default
  4658. #include <$ac_header>
  4659. _ACEOF
  4660. rm -f conftest.$ac_objext
  4661. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4662. (eval $ac_compile) 2>conftest.er1
  4663. ac_status=$?
  4664. grep -v '^ *+' conftest.er1 >conftest.err
  4665. rm -f conftest.er1
  4666. cat conftest.err >&5
  4667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4668. (exit $ac_status); } &&
  4669. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4670. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4671. (eval $ac_try) 2>&5
  4672. ac_status=$?
  4673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4674. (exit $ac_status); }; } &&
  4675. { ac_try='test -s conftest.$ac_objext'
  4676. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4677. (eval $ac_try) 2>&5
  4678. ac_status=$?
  4679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4680. (exit $ac_status); }; }; then
  4681. ac_header_compiler=yes
  4682. else
  4683. echo "$as_me: failed program was:" >&5
  4684. sed 's/^/| /' conftest.$ac_ext >&5
  4685. ac_header_compiler=no
  4686. fi
  4687. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4688. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4689. echo "${ECHO_T}$ac_header_compiler" >&6
  4690. # Is the header present?
  4691. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4692. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4693. cat >conftest.$ac_ext <<_ACEOF
  4694. /* confdefs.h. */
  4695. _ACEOF
  4696. cat confdefs.h >>conftest.$ac_ext
  4697. cat >>conftest.$ac_ext <<_ACEOF
  4698. /* end confdefs.h. */
  4699. #include <$ac_header>
  4700. _ACEOF
  4701. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4702. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4703. ac_status=$?
  4704. grep -v '^ *+' conftest.er1 >conftest.err
  4705. rm -f conftest.er1
  4706. cat conftest.err >&5
  4707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4708. (exit $ac_status); } >/dev/null; then
  4709. if test -s conftest.err; then
  4710. ac_cpp_err=$ac_c_preproc_warn_flag
  4711. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4712. else
  4713. ac_cpp_err=
  4714. fi
  4715. else
  4716. ac_cpp_err=yes
  4717. fi
  4718. if test -z "$ac_cpp_err"; then
  4719. ac_header_preproc=yes
  4720. else
  4721. echo "$as_me: failed program was:" >&5
  4722. sed 's/^/| /' conftest.$ac_ext >&5
  4723. ac_header_preproc=no
  4724. fi
  4725. rm -f conftest.err conftest.$ac_ext
  4726. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4727. echo "${ECHO_T}$ac_header_preproc" >&6
  4728. # So? What about this header?
  4729. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4730. yes:no: )
  4731. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4732. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4733. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4734. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4735. ac_header_preproc=yes
  4736. ;;
  4737. no:yes:* )
  4738. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4739. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4740. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4741. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4742. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4743. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4744. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4745. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4746. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4747. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4748. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4749. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4750. (
  4751. cat <<\_ASBOX
  4752. ## ----------------------------------- ##
  4753. ## Report this to tujikawa@rednoah.com ##
  4754. ## ----------------------------------- ##
  4755. _ASBOX
  4756. ) |
  4757. sed "s/^/$as_me: WARNING: /" >&2
  4758. ;;
  4759. esac
  4760. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4761. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4762. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4763. echo $ECHO_N "(cached) $ECHO_C" >&6
  4764. else
  4765. eval "$as_ac_Header=\$ac_header_preproc"
  4766. fi
  4767. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4768. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4769. fi
  4770. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4771. cat >>confdefs.h <<_ACEOF
  4772. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4773. _ACEOF
  4774. fi
  4775. done
  4776. # Checks for typedefs, structures, and compiler characteristics.
  4777. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  4778. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  4779. if test "${ac_cv_header_stdbool_h+set}" = set; then
  4780. echo $ECHO_N "(cached) $ECHO_C" >&6
  4781. else
  4782. cat >conftest.$ac_ext <<_ACEOF
  4783. /* confdefs.h. */
  4784. _ACEOF
  4785. cat confdefs.h >>conftest.$ac_ext
  4786. cat >>conftest.$ac_ext <<_ACEOF
  4787. /* end confdefs.h. */
  4788. #include <stdbool.h>
  4789. #ifndef bool
  4790. # error bool is not defined
  4791. #endif
  4792. #ifndef false
  4793. # error false is not defined
  4794. #endif
  4795. #if false
  4796. # error false is not 0
  4797. #endif
  4798. #ifndef true
  4799. # error true is not defined
  4800. #endif
  4801. #if true != 1
  4802. # error true is not 1
  4803. #endif
  4804. #ifndef __bool_true_false_are_defined
  4805. # error __bool_true_false_are_defined is not defined
  4806. #endif
  4807. struct s { _Bool s: 1; _Bool t; } s;
  4808. char a[true == 1 ? 1 : -1];
  4809. char b[false == 0 ? 1 : -1];
  4810. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  4811. char d[(bool) -0.5 == true ? 1 : -1];
  4812. bool e = &s;
  4813. char f[(_Bool) -0.0 == false ? 1 : -1];
  4814. char g[true];
  4815. char h[sizeof (_Bool)];
  4816. char i[sizeof s.t];
  4817. int
  4818. main ()
  4819. {
  4820. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  4821. ;
  4822. return 0;
  4823. }
  4824. _ACEOF
  4825. rm -f conftest.$ac_objext
  4826. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4827. (eval $ac_compile) 2>conftest.er1
  4828. ac_status=$?
  4829. grep -v '^ *+' conftest.er1 >conftest.err
  4830. rm -f conftest.er1
  4831. cat conftest.err >&5
  4832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4833. (exit $ac_status); } &&
  4834. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4835. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4836. (eval $ac_try) 2>&5
  4837. ac_status=$?
  4838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4839. (exit $ac_status); }; } &&
  4840. { ac_try='test -s conftest.$ac_objext'
  4841. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4842. (eval $ac_try) 2>&5
  4843. ac_status=$?
  4844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4845. (exit $ac_status); }; }; then
  4846. ac_cv_header_stdbool_h=yes
  4847. else
  4848. echo "$as_me: failed program was:" >&5
  4849. sed 's/^/| /' conftest.$ac_ext >&5
  4850. ac_cv_header_stdbool_h=no
  4851. fi
  4852. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4853. fi
  4854. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  4855. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  4856. echo "$as_me:$LINENO: checking for _Bool" >&5
  4857. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  4858. if test "${ac_cv_type__Bool+set}" = set; then
  4859. echo $ECHO_N "(cached) $ECHO_C" >&6
  4860. else
  4861. cat >conftest.$ac_ext <<_ACEOF
  4862. /* confdefs.h. */
  4863. _ACEOF
  4864. cat confdefs.h >>conftest.$ac_ext
  4865. cat >>conftest.$ac_ext <<_ACEOF
  4866. /* end confdefs.h. */
  4867. $ac_includes_default
  4868. int
  4869. main ()
  4870. {
  4871. if ((_Bool *) 0)
  4872. return 0;
  4873. if (sizeof (_Bool))
  4874. return 0;
  4875. ;
  4876. return 0;
  4877. }
  4878. _ACEOF
  4879. rm -f conftest.$ac_objext
  4880. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4881. (eval $ac_compile) 2>conftest.er1
  4882. ac_status=$?
  4883. grep -v '^ *+' conftest.er1 >conftest.err
  4884. rm -f conftest.er1
  4885. cat conftest.err >&5
  4886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4887. (exit $ac_status); } &&
  4888. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4889. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4890. (eval $ac_try) 2>&5
  4891. ac_status=$?
  4892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4893. (exit $ac_status); }; } &&
  4894. { ac_try='test -s conftest.$ac_objext'
  4895. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4896. (eval $ac_try) 2>&5
  4897. ac_status=$?
  4898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4899. (exit $ac_status); }; }; then
  4900. ac_cv_type__Bool=yes
  4901. else
  4902. echo "$as_me: failed program was:" >&5
  4903. sed 's/^/| /' conftest.$ac_ext >&5
  4904. ac_cv_type__Bool=no
  4905. fi
  4906. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4907. fi
  4908. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  4909. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  4910. if test $ac_cv_type__Bool = yes; then
  4911. cat >>confdefs.h <<_ACEOF
  4912. #define HAVE__BOOL 1
  4913. _ACEOF
  4914. fi
  4915. if test $ac_cv_header_stdbool_h = yes; then
  4916. cat >>confdefs.h <<\_ACEOF
  4917. #define HAVE_STDBOOL_H 1
  4918. _ACEOF
  4919. fi
  4920. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  4921. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  4922. if test "${ac_cv_c_const+set}" = set; then
  4923. echo $ECHO_N "(cached) $ECHO_C" >&6
  4924. else
  4925. cat >conftest.$ac_ext <<_ACEOF
  4926. /* confdefs.h. */
  4927. _ACEOF
  4928. cat confdefs.h >>conftest.$ac_ext
  4929. cat >>conftest.$ac_ext <<_ACEOF
  4930. /* end confdefs.h. */
  4931. int
  4932. main ()
  4933. {
  4934. /* FIXME: Include the comments suggested by Paul. */
  4935. #ifndef __cplusplus
  4936. /* Ultrix mips cc rejects this. */
  4937. typedef int charset[2];
  4938. const charset x;
  4939. /* SunOS 4.1.1 cc rejects this. */
  4940. char const *const *ccp;
  4941. char **p;
  4942. /* NEC SVR4.0.2 mips cc rejects this. */
  4943. struct point {int x, y;};
  4944. static struct point const zero = {0,0};
  4945. /* AIX XL C 1.02.0.0 rejects this.
  4946. It does not let you subtract one const X* pointer from another in
  4947. an arm of an if-expression whose if-part is not a constant
  4948. expression */
  4949. const char *g = "string";
  4950. ccp = &g + (g ? g-g : 0);
  4951. /* HPUX 7.0 cc rejects these. */
  4952. ++ccp;
  4953. p = (char**) ccp;
  4954. ccp = (char const *const *) p;
  4955. { /* SCO 3.2v4 cc rejects this. */
  4956. char *t;
  4957. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4958. *t++ = 0;
  4959. }
  4960. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4961. int x[] = {25, 17};
  4962. const int *foo = &x[0];
  4963. ++foo;
  4964. }
  4965. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4966. typedef const int *iptr;
  4967. iptr p = 0;
  4968. ++p;
  4969. }
  4970. { /* AIX XL C 1.02.0.0 rejects this saying
  4971. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4972. struct s { int j; const int *ap[3]; };
  4973. struct s *b; b->j = 5;
  4974. }
  4975. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4976. const int foo = 10;
  4977. }
  4978. #endif
  4979. ;
  4980. return 0;
  4981. }
  4982. _ACEOF
  4983. rm -f conftest.$ac_objext
  4984. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4985. (eval $ac_compile) 2>conftest.er1
  4986. ac_status=$?
  4987. grep -v '^ *+' conftest.er1 >conftest.err
  4988. rm -f conftest.er1
  4989. cat conftest.err >&5
  4990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4991. (exit $ac_status); } &&
  4992. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4994. (eval $ac_try) 2>&5
  4995. ac_status=$?
  4996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4997. (exit $ac_status); }; } &&
  4998. { ac_try='test -s conftest.$ac_objext'
  4999. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5000. (eval $ac_try) 2>&5
  5001. ac_status=$?
  5002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5003. (exit $ac_status); }; }; then
  5004. ac_cv_c_const=yes
  5005. else
  5006. echo "$as_me: failed program was:" >&5
  5007. sed 's/^/| /' conftest.$ac_ext >&5
  5008. ac_cv_c_const=no
  5009. fi
  5010. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5011. fi
  5012. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5013. echo "${ECHO_T}$ac_cv_c_const" >&6
  5014. if test $ac_cv_c_const = no; then
  5015. cat >>confdefs.h <<\_ACEOF
  5016. #define const
  5017. _ACEOF
  5018. fi
  5019. echo "$as_me:$LINENO: checking for inline" >&5
  5020. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  5021. if test "${ac_cv_c_inline+set}" = set; then
  5022. echo $ECHO_N "(cached) $ECHO_C" >&6
  5023. else
  5024. ac_cv_c_inline=no
  5025. for ac_kw in inline __inline__ __inline; do
  5026. cat >conftest.$ac_ext <<_ACEOF
  5027. /* confdefs.h. */
  5028. _ACEOF
  5029. cat confdefs.h >>conftest.$ac_ext
  5030. cat >>conftest.$ac_ext <<_ACEOF
  5031. /* end confdefs.h. */
  5032. #ifndef __cplusplus
  5033. typedef int foo_t;
  5034. static $ac_kw foo_t static_foo () {return 0; }
  5035. $ac_kw foo_t foo () {return 0; }
  5036. #endif
  5037. _ACEOF
  5038. rm -f conftest.$ac_objext
  5039. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5040. (eval $ac_compile) 2>conftest.er1
  5041. ac_status=$?
  5042. grep -v '^ *+' conftest.er1 >conftest.err
  5043. rm -f conftest.er1
  5044. cat conftest.err >&5
  5045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5046. (exit $ac_status); } &&
  5047. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5048. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5049. (eval $ac_try) 2>&5
  5050. ac_status=$?
  5051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5052. (exit $ac_status); }; } &&
  5053. { ac_try='test -s conftest.$ac_objext'
  5054. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5055. (eval $ac_try) 2>&5
  5056. ac_status=$?
  5057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5058. (exit $ac_status); }; }; then
  5059. ac_cv_c_inline=$ac_kw; break
  5060. else
  5061. echo "$as_me: failed program was:" >&5
  5062. sed 's/^/| /' conftest.$ac_ext >&5
  5063. fi
  5064. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5065. done
  5066. fi
  5067. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  5068. echo "${ECHO_T}$ac_cv_c_inline" >&6
  5069. case $ac_cv_c_inline in
  5070. inline | yes) ;;
  5071. *)
  5072. case $ac_cv_c_inline in
  5073. no) ac_val=;;
  5074. *) ac_val=$ac_cv_c_inline;;
  5075. esac
  5076. cat >>confdefs.h <<_ACEOF
  5077. #ifndef __cplusplus
  5078. #define inline $ac_val
  5079. #endif
  5080. _ACEOF
  5081. ;;
  5082. esac
  5083. echo "$as_me:$LINENO: checking for size_t" >&5
  5084. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5085. if test "${ac_cv_type_size_t+set}" = set; then
  5086. echo $ECHO_N "(cached) $ECHO_C" >&6
  5087. else
  5088. cat >conftest.$ac_ext <<_ACEOF
  5089. /* confdefs.h. */
  5090. _ACEOF
  5091. cat confdefs.h >>conftest.$ac_ext
  5092. cat >>conftest.$ac_ext <<_ACEOF
  5093. /* end confdefs.h. */
  5094. $ac_includes_default
  5095. int
  5096. main ()
  5097. {
  5098. if ((size_t *) 0)
  5099. return 0;
  5100. if (sizeof (size_t))
  5101. return 0;
  5102. ;
  5103. return 0;
  5104. }
  5105. _ACEOF
  5106. rm -f conftest.$ac_objext
  5107. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5108. (eval $ac_compile) 2>conftest.er1
  5109. ac_status=$?
  5110. grep -v '^ *+' conftest.er1 >conftest.err
  5111. rm -f conftest.er1
  5112. cat conftest.err >&5
  5113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5114. (exit $ac_status); } &&
  5115. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5117. (eval $ac_try) 2>&5
  5118. ac_status=$?
  5119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5120. (exit $ac_status); }; } &&
  5121. { ac_try='test -s conftest.$ac_objext'
  5122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5123. (eval $ac_try) 2>&5
  5124. ac_status=$?
  5125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5126. (exit $ac_status); }; }; then
  5127. ac_cv_type_size_t=yes
  5128. else
  5129. echo "$as_me: failed program was:" >&5
  5130. sed 's/^/| /' conftest.$ac_ext >&5
  5131. ac_cv_type_size_t=no
  5132. fi
  5133. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5134. fi
  5135. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5136. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5137. if test $ac_cv_type_size_t = yes; then
  5138. :
  5139. else
  5140. cat >>confdefs.h <<_ACEOF
  5141. #define size_t unsigned
  5142. _ACEOF
  5143. fi
  5144. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5145. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5146. if test "${ac_cv_header_time+set}" = set; then
  5147. echo $ECHO_N "(cached) $ECHO_C" >&6
  5148. else
  5149. cat >conftest.$ac_ext <<_ACEOF
  5150. /* confdefs.h. */
  5151. _ACEOF
  5152. cat confdefs.h >>conftest.$ac_ext
  5153. cat >>conftest.$ac_ext <<_ACEOF
  5154. /* end confdefs.h. */
  5155. #include <sys/types.h>
  5156. #include <sys/time.h>
  5157. #include <time.h>
  5158. int
  5159. main ()
  5160. {
  5161. if ((struct tm *) 0)
  5162. return 0;
  5163. ;
  5164. return 0;
  5165. }
  5166. _ACEOF
  5167. rm -f conftest.$ac_objext
  5168. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5169. (eval $ac_compile) 2>conftest.er1
  5170. ac_status=$?
  5171. grep -v '^ *+' conftest.er1 >conftest.err
  5172. rm -f conftest.er1
  5173. cat conftest.err >&5
  5174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5175. (exit $ac_status); } &&
  5176. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5177. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5178. (eval $ac_try) 2>&5
  5179. ac_status=$?
  5180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5181. (exit $ac_status); }; } &&
  5182. { ac_try='test -s conftest.$ac_objext'
  5183. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5184. (eval $ac_try) 2>&5
  5185. ac_status=$?
  5186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5187. (exit $ac_status); }; }; then
  5188. ac_cv_header_time=yes
  5189. else
  5190. echo "$as_me: failed program was:" >&5
  5191. sed 's/^/| /' conftest.$ac_ext >&5
  5192. ac_cv_header_time=no
  5193. fi
  5194. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5195. fi
  5196. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5197. echo "${ECHO_T}$ac_cv_header_time" >&6
  5198. if test $ac_cv_header_time = yes; then
  5199. cat >>confdefs.h <<\_ACEOF
  5200. #define TIME_WITH_SYS_TIME 1
  5201. _ACEOF
  5202. fi
  5203. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  5204. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  5205. if test "${ac_cv_struct_tm+set}" = set; then
  5206. echo $ECHO_N "(cached) $ECHO_C" >&6
  5207. else
  5208. cat >conftest.$ac_ext <<_ACEOF
  5209. /* confdefs.h. */
  5210. _ACEOF
  5211. cat confdefs.h >>conftest.$ac_ext
  5212. cat >>conftest.$ac_ext <<_ACEOF
  5213. /* end confdefs.h. */
  5214. #include <sys/types.h>
  5215. #include <time.h>
  5216. int
  5217. main ()
  5218. {
  5219. struct tm *tp; tp->tm_sec;
  5220. ;
  5221. return 0;
  5222. }
  5223. _ACEOF
  5224. rm -f conftest.$ac_objext
  5225. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5226. (eval $ac_compile) 2>conftest.er1
  5227. ac_status=$?
  5228. grep -v '^ *+' conftest.er1 >conftest.err
  5229. rm -f conftest.er1
  5230. cat conftest.err >&5
  5231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5232. (exit $ac_status); } &&
  5233. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5234. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5235. (eval $ac_try) 2>&5
  5236. ac_status=$?
  5237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5238. (exit $ac_status); }; } &&
  5239. { ac_try='test -s conftest.$ac_objext'
  5240. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5241. (eval $ac_try) 2>&5
  5242. ac_status=$?
  5243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5244. (exit $ac_status); }; }; then
  5245. ac_cv_struct_tm=time.h
  5246. else
  5247. echo "$as_me: failed program was:" >&5
  5248. sed 's/^/| /' conftest.$ac_ext >&5
  5249. ac_cv_struct_tm=sys/time.h
  5250. fi
  5251. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5252. fi
  5253. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  5254. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  5255. if test $ac_cv_struct_tm = sys/time.h; then
  5256. cat >>confdefs.h <<\_ACEOF
  5257. #define TM_IN_SYS_TIME 1
  5258. _ACEOF
  5259. fi
  5260. echo "$as_me:$LINENO: checking for working volatile" >&5
  5261. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  5262. if test "${ac_cv_c_volatile+set}" = set; then
  5263. echo $ECHO_N "(cached) $ECHO_C" >&6
  5264. else
  5265. cat >conftest.$ac_ext <<_ACEOF
  5266. /* confdefs.h. */
  5267. _ACEOF
  5268. cat confdefs.h >>conftest.$ac_ext
  5269. cat >>conftest.$ac_ext <<_ACEOF
  5270. /* end confdefs.h. */
  5271. int
  5272. main ()
  5273. {
  5274. volatile int x;
  5275. int * volatile y;
  5276. ;
  5277. return 0;
  5278. }
  5279. _ACEOF
  5280. rm -f conftest.$ac_objext
  5281. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5282. (eval $ac_compile) 2>conftest.er1
  5283. ac_status=$?
  5284. grep -v '^ *+' conftest.er1 >conftest.err
  5285. rm -f conftest.er1
  5286. cat conftest.err >&5
  5287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5288. (exit $ac_status); } &&
  5289. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5290. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5291. (eval $ac_try) 2>&5
  5292. ac_status=$?
  5293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5294. (exit $ac_status); }; } &&
  5295. { ac_try='test -s conftest.$ac_objext'
  5296. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5297. (eval $ac_try) 2>&5
  5298. ac_status=$?
  5299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5300. (exit $ac_status); }; }; then
  5301. ac_cv_c_volatile=yes
  5302. else
  5303. echo "$as_me: failed program was:" >&5
  5304. sed 's/^/| /' conftest.$ac_ext >&5
  5305. ac_cv_c_volatile=no
  5306. fi
  5307. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5308. fi
  5309. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5310. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  5311. if test $ac_cv_c_volatile = no; then
  5312. cat >>confdefs.h <<\_ACEOF
  5313. #define volatile
  5314. _ACEOF
  5315. fi
  5316. # Checks for library functions.
  5317. MKINSTALLDIRS=
  5318. if test -n "$ac_aux_dir"; then
  5319. case "$ac_aux_dir" in
  5320. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  5321. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  5322. esac
  5323. fi
  5324. if test -z "$MKINSTALLDIRS"; then
  5325. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  5326. fi
  5327. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  5328. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  5329. # Check whether --enable-nls or --disable-nls was given.
  5330. if test "${enable_nls+set}" = set; then
  5331. enableval="$enable_nls"
  5332. USE_NLS=$enableval
  5333. else
  5334. USE_NLS=yes
  5335. fi;
  5336. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  5337. echo "${ECHO_T}$USE_NLS" >&6
  5338. # Prepare PATH_SEPARATOR.
  5339. # The user is always right.
  5340. if test "${PATH_SEPARATOR+set}" != set; then
  5341. echo "#! /bin/sh" >conf$$.sh
  5342. echo "exit 0" >>conf$$.sh
  5343. chmod +x conf$$.sh
  5344. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5345. PATH_SEPARATOR=';'
  5346. else
  5347. PATH_SEPARATOR=:
  5348. fi
  5349. rm -f conf$$.sh
  5350. fi
  5351. # Find out how to test for executable files. Don't use a zero-byte file,
  5352. # as systems may use methods other than mode bits to determine executability.
  5353. cat >conf$$.file <<_ASEOF
  5354. #! /bin/sh
  5355. exit 0
  5356. _ASEOF
  5357. chmod +x conf$$.file
  5358. if test -x conf$$.file >/dev/null 2>&1; then
  5359. ac_executable_p="test -x"
  5360. else
  5361. ac_executable_p="test -f"
  5362. fi
  5363. rm -f conf$$.file
  5364. # Extract the first word of "msgfmt", so it can be a program name with args.
  5365. set dummy msgfmt; ac_word=$2
  5366. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5367. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5368. if test "${ac_cv_path_MSGFMT+set}" = set; then
  5369. echo $ECHO_N "(cached) $ECHO_C" >&6
  5370. else
  5371. case "$MSGFMT" in
  5372. [\\/]* | ?:[\\/]*)
  5373. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  5374. ;;
  5375. *)
  5376. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5377. for ac_dir in $PATH; do
  5378. IFS="$ac_save_IFS"
  5379. test -z "$ac_dir" && ac_dir=.
  5380. for ac_exec_ext in '' $ac_executable_extensions; do
  5381. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5382. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  5383. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5384. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  5385. break 2
  5386. fi
  5387. fi
  5388. done
  5389. done
  5390. IFS="$ac_save_IFS"
  5391. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  5392. ;;
  5393. esac
  5394. fi
  5395. MSGFMT="$ac_cv_path_MSGFMT"
  5396. if test "$MSGFMT" != ":"; then
  5397. echo "$as_me:$LINENO: result: $MSGFMT" >&5
  5398. echo "${ECHO_T}$MSGFMT" >&6
  5399. else
  5400. echo "$as_me:$LINENO: result: no" >&5
  5401. echo "${ECHO_T}no" >&6
  5402. fi
  5403. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  5404. set dummy gmsgfmt; ac_word=$2
  5405. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5406. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5407. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  5408. echo $ECHO_N "(cached) $ECHO_C" >&6
  5409. else
  5410. case $GMSGFMT in
  5411. [\\/]* | ?:[\\/]*)
  5412. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  5413. ;;
  5414. *)
  5415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5416. for as_dir in $PATH
  5417. do
  5418. IFS=$as_save_IFS
  5419. test -z "$as_dir" && as_dir=.
  5420. for ac_exec_ext in '' $ac_executable_extensions; do
  5421. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5422. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  5423. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5424. break 2
  5425. fi
  5426. done
  5427. done
  5428. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  5429. ;;
  5430. esac
  5431. fi
  5432. GMSGFMT=$ac_cv_path_GMSGFMT
  5433. if test -n "$GMSGFMT"; then
  5434. echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  5435. echo "${ECHO_T}$GMSGFMT" >&6
  5436. else
  5437. echo "$as_me:$LINENO: result: no" >&5
  5438. echo "${ECHO_T}no" >&6
  5439. fi
  5440. # Prepare PATH_SEPARATOR.
  5441. # The user is always right.
  5442. if test "${PATH_SEPARATOR+set}" != set; then
  5443. echo "#! /bin/sh" >conf$$.sh
  5444. echo "exit 0" >>conf$$.sh
  5445. chmod +x conf$$.sh
  5446. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5447. PATH_SEPARATOR=';'
  5448. else
  5449. PATH_SEPARATOR=:
  5450. fi
  5451. rm -f conf$$.sh
  5452. fi
  5453. # Find out how to test for executable files. Don't use a zero-byte file,
  5454. # as systems may use methods other than mode bits to determine executability.
  5455. cat >conf$$.file <<_ASEOF
  5456. #! /bin/sh
  5457. exit 0
  5458. _ASEOF
  5459. chmod +x conf$$.file
  5460. if test -x conf$$.file >/dev/null 2>&1; then
  5461. ac_executable_p="test -x"
  5462. else
  5463. ac_executable_p="test -f"
  5464. fi
  5465. rm -f conf$$.file
  5466. # Extract the first word of "xgettext", so it can be a program name with args.
  5467. set dummy xgettext; ac_word=$2
  5468. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5469. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5470. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  5471. echo $ECHO_N "(cached) $ECHO_C" >&6
  5472. else
  5473. case "$XGETTEXT" in
  5474. [\\/]* | ?:[\\/]*)
  5475. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  5476. ;;
  5477. *)
  5478. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5479. for ac_dir in $PATH; do
  5480. IFS="$ac_save_IFS"
  5481. test -z "$ac_dir" && ac_dir=.
  5482. for ac_exec_ext in '' $ac_executable_extensions; do
  5483. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5484. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  5485. (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
  5486. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  5487. break 2
  5488. fi
  5489. fi
  5490. done
  5491. done
  5492. IFS="$ac_save_IFS"
  5493. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  5494. ;;
  5495. esac
  5496. fi
  5497. XGETTEXT="$ac_cv_path_XGETTEXT"
  5498. if test "$XGETTEXT" != ":"; then
  5499. echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  5500. echo "${ECHO_T}$XGETTEXT" >&6
  5501. else
  5502. echo "$as_me:$LINENO: result: no" >&5
  5503. echo "${ECHO_T}no" >&6
  5504. fi
  5505. rm -f messages.po
  5506. # Prepare PATH_SEPARATOR.
  5507. # The user is always right.
  5508. if test "${PATH_SEPARATOR+set}" != set; then
  5509. echo "#! /bin/sh" >conf$$.sh
  5510. echo "exit 0" >>conf$$.sh
  5511. chmod +x conf$$.sh
  5512. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5513. PATH_SEPARATOR=';'
  5514. else
  5515. PATH_SEPARATOR=:
  5516. fi
  5517. rm -f conf$$.sh
  5518. fi
  5519. # Find out how to test for executable files. Don't use a zero-byte file,
  5520. # as systems may use methods other than mode bits to determine executability.
  5521. cat >conf$$.file <<_ASEOF
  5522. #! /bin/sh
  5523. exit 0
  5524. _ASEOF
  5525. chmod +x conf$$.file
  5526. if test -x conf$$.file >/dev/null 2>&1; then
  5527. ac_executable_p="test -x"
  5528. else
  5529. ac_executable_p="test -f"
  5530. fi
  5531. rm -f conf$$.file
  5532. # Extract the first word of "msgmerge", so it can be a program name with args.
  5533. set dummy msgmerge; ac_word=$2
  5534. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5535. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5536. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  5537. echo $ECHO_N "(cached) $ECHO_C" >&6
  5538. else
  5539. case "$MSGMERGE" in
  5540. [\\/]* | ?:[\\/]*)
  5541. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  5542. ;;
  5543. *)
  5544. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5545. for ac_dir in $PATH; do
  5546. IFS="$ac_save_IFS"
  5547. test -z "$ac_dir" && ac_dir=.
  5548. for ac_exec_ext in '' $ac_executable_extensions; do
  5549. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5550. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  5551. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  5552. break 2
  5553. fi
  5554. fi
  5555. done
  5556. done
  5557. IFS="$ac_save_IFS"
  5558. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  5559. ;;
  5560. esac
  5561. fi
  5562. MSGMERGE="$ac_cv_path_MSGMERGE"
  5563. if test "$MSGMERGE" != ":"; then
  5564. echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  5565. echo "${ECHO_T}$MSGMERGE" >&6
  5566. else
  5567. echo "$as_me:$LINENO: result: no" >&5
  5568. echo "${ECHO_T}no" >&6
  5569. fi
  5570. if test "$GMSGFMT" != ":"; then
  5571. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  5572. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5573. : ;
  5574. else
  5575. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  5576. echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  5577. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
  5578. GMSGFMT=":"
  5579. fi
  5580. fi
  5581. if test "$XGETTEXT" != ":"; then
  5582. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  5583. (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
  5584. : ;
  5585. else
  5586. echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  5587. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
  5588. XGETTEXT=":"
  5589. fi
  5590. rm -f messages.po
  5591. fi
  5592. ac_config_commands="$ac_config_commands default-1"
  5593. # Make sure we can run config.sub.
  5594. $ac_config_sub sun4 >/dev/null 2>&1 ||
  5595. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  5596. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  5597. { (exit 1); exit 1; }; }
  5598. echo "$as_me:$LINENO: checking build system type" >&5
  5599. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  5600. if test "${ac_cv_build+set}" = set; then
  5601. echo $ECHO_N "(cached) $ECHO_C" >&6
  5602. else
  5603. ac_cv_build_alias=$build_alias
  5604. test -z "$ac_cv_build_alias" &&
  5605. ac_cv_build_alias=`$ac_config_guess`
  5606. test -z "$ac_cv_build_alias" &&
  5607. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  5608. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  5609. { (exit 1); exit 1; }; }
  5610. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  5611. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  5612. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  5613. { (exit 1); exit 1; }; }
  5614. fi
  5615. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  5616. echo "${ECHO_T}$ac_cv_build" >&6
  5617. build=$ac_cv_build
  5618. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  5619. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  5620. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  5621. echo "$as_me:$LINENO: checking host system type" >&5
  5622. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  5623. if test "${ac_cv_host+set}" = set; then
  5624. echo $ECHO_N "(cached) $ECHO_C" >&6
  5625. else
  5626. ac_cv_host_alias=$host_alias
  5627. test -z "$ac_cv_host_alias" &&
  5628. ac_cv_host_alias=$ac_cv_build_alias
  5629. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  5630. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  5631. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  5632. { (exit 1); exit 1; }; }
  5633. fi
  5634. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  5635. echo "${ECHO_T}$ac_cv_host" >&6
  5636. host=$ac_cv_host
  5637. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  5638. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  5639. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  5640. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  5641. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  5642. if test "${ac_cv_search_strerror+set}" = set; then
  5643. echo $ECHO_N "(cached) $ECHO_C" >&6
  5644. else
  5645. ac_func_search_save_LIBS=$LIBS
  5646. ac_cv_search_strerror=no
  5647. cat >conftest.$ac_ext <<_ACEOF
  5648. /* confdefs.h. */
  5649. _ACEOF
  5650. cat confdefs.h >>conftest.$ac_ext
  5651. cat >>conftest.$ac_ext <<_ACEOF
  5652. /* end confdefs.h. */
  5653. /* Override any gcc2 internal prototype to avoid an error. */
  5654. #ifdef __cplusplus
  5655. extern "C"
  5656. #endif
  5657. /* We use char because int might match the return type of a gcc2
  5658. builtin and then its argument prototype would still apply. */
  5659. char strerror ();
  5660. int
  5661. main ()
  5662. {
  5663. strerror ();
  5664. ;
  5665. return 0;
  5666. }
  5667. _ACEOF
  5668. rm -f conftest.$ac_objext conftest$ac_exeext
  5669. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5670. (eval $ac_link) 2>conftest.er1
  5671. ac_status=$?
  5672. grep -v '^ *+' conftest.er1 >conftest.err
  5673. rm -f conftest.er1
  5674. cat conftest.err >&5
  5675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5676. (exit $ac_status); } &&
  5677. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5678. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5679. (eval $ac_try) 2>&5
  5680. ac_status=$?
  5681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5682. (exit $ac_status); }; } &&
  5683. { ac_try='test -s conftest$ac_exeext'
  5684. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5685. (eval $ac_try) 2>&5
  5686. ac_status=$?
  5687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5688. (exit $ac_status); }; }; then
  5689. ac_cv_search_strerror="none required"
  5690. else
  5691. echo "$as_me: failed program was:" >&5
  5692. sed 's/^/| /' conftest.$ac_ext >&5
  5693. fi
  5694. rm -f conftest.err conftest.$ac_objext \
  5695. conftest$ac_exeext conftest.$ac_ext
  5696. if test "$ac_cv_search_strerror" = no; then
  5697. for ac_lib in cposix; do
  5698. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5699. cat >conftest.$ac_ext <<_ACEOF
  5700. /* confdefs.h. */
  5701. _ACEOF
  5702. cat confdefs.h >>conftest.$ac_ext
  5703. cat >>conftest.$ac_ext <<_ACEOF
  5704. /* end confdefs.h. */
  5705. /* Override any gcc2 internal prototype to avoid an error. */
  5706. #ifdef __cplusplus
  5707. extern "C"
  5708. #endif
  5709. /* We use char because int might match the return type of a gcc2
  5710. builtin and then its argument prototype would still apply. */
  5711. char strerror ();
  5712. int
  5713. main ()
  5714. {
  5715. strerror ();
  5716. ;
  5717. return 0;
  5718. }
  5719. _ACEOF
  5720. rm -f conftest.$ac_objext conftest$ac_exeext
  5721. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5722. (eval $ac_link) 2>conftest.er1
  5723. ac_status=$?
  5724. grep -v '^ *+' conftest.er1 >conftest.err
  5725. rm -f conftest.er1
  5726. cat conftest.err >&5
  5727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5728. (exit $ac_status); } &&
  5729. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5730. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5731. (eval $ac_try) 2>&5
  5732. ac_status=$?
  5733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5734. (exit $ac_status); }; } &&
  5735. { ac_try='test -s conftest$ac_exeext'
  5736. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5737. (eval $ac_try) 2>&5
  5738. ac_status=$?
  5739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5740. (exit $ac_status); }; }; then
  5741. ac_cv_search_strerror="-l$ac_lib"
  5742. break
  5743. else
  5744. echo "$as_me: failed program was:" >&5
  5745. sed 's/^/| /' conftest.$ac_ext >&5
  5746. fi
  5747. rm -f conftest.err conftest.$ac_objext \
  5748. conftest$ac_exeext conftest.$ac_ext
  5749. done
  5750. fi
  5751. LIBS=$ac_func_search_save_LIBS
  5752. fi
  5753. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  5754. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  5755. if test "$ac_cv_search_strerror" != no; then
  5756. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  5757. fi
  5758. echo "$as_me:$LINENO: checking for off_t" >&5
  5759. echo $ECHO_N "checking for off_t... $ECHO_C" >&6
  5760. if test "${ac_cv_type_off_t+set}" = set; then
  5761. echo $ECHO_N "(cached) $ECHO_C" >&6
  5762. else
  5763. cat >conftest.$ac_ext <<_ACEOF
  5764. /* confdefs.h. */
  5765. _ACEOF
  5766. cat confdefs.h >>conftest.$ac_ext
  5767. cat >>conftest.$ac_ext <<_ACEOF
  5768. /* end confdefs.h. */
  5769. $ac_includes_default
  5770. int
  5771. main ()
  5772. {
  5773. if ((off_t *) 0)
  5774. return 0;
  5775. if (sizeof (off_t))
  5776. return 0;
  5777. ;
  5778. return 0;
  5779. }
  5780. _ACEOF
  5781. rm -f conftest.$ac_objext
  5782. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5783. (eval $ac_compile) 2>conftest.er1
  5784. ac_status=$?
  5785. grep -v '^ *+' conftest.er1 >conftest.err
  5786. rm -f conftest.er1
  5787. cat conftest.err >&5
  5788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5789. (exit $ac_status); } &&
  5790. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5791. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5792. (eval $ac_try) 2>&5
  5793. ac_status=$?
  5794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5795. (exit $ac_status); }; } &&
  5796. { ac_try='test -s conftest.$ac_objext'
  5797. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5798. (eval $ac_try) 2>&5
  5799. ac_status=$?
  5800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5801. (exit $ac_status); }; }; then
  5802. ac_cv_type_off_t=yes
  5803. else
  5804. echo "$as_me: failed program was:" >&5
  5805. sed 's/^/| /' conftest.$ac_ext >&5
  5806. ac_cv_type_off_t=no
  5807. fi
  5808. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5809. fi
  5810. echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  5811. echo "${ECHO_T}$ac_cv_type_off_t" >&6
  5812. if test $ac_cv_type_off_t = yes; then
  5813. :
  5814. else
  5815. cat >>confdefs.h <<_ACEOF
  5816. #define off_t long
  5817. _ACEOF
  5818. fi
  5819. for ac_header in stdlib.h unistd.h
  5820. do
  5821. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5822. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5823. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5824. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5825. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5826. echo $ECHO_N "(cached) $ECHO_C" >&6
  5827. fi
  5828. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5829. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5830. else
  5831. # Is the header compilable?
  5832. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5833. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5834. cat >conftest.$ac_ext <<_ACEOF
  5835. /* confdefs.h. */
  5836. _ACEOF
  5837. cat confdefs.h >>conftest.$ac_ext
  5838. cat >>conftest.$ac_ext <<_ACEOF
  5839. /* end confdefs.h. */
  5840. $ac_includes_default
  5841. #include <$ac_header>
  5842. _ACEOF
  5843. rm -f conftest.$ac_objext
  5844. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5845. (eval $ac_compile) 2>conftest.er1
  5846. ac_status=$?
  5847. grep -v '^ *+' conftest.er1 >conftest.err
  5848. rm -f conftest.er1
  5849. cat conftest.err >&5
  5850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5851. (exit $ac_status); } &&
  5852. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5853. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5854. (eval $ac_try) 2>&5
  5855. ac_status=$?
  5856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5857. (exit $ac_status); }; } &&
  5858. { ac_try='test -s conftest.$ac_objext'
  5859. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5860. (eval $ac_try) 2>&5
  5861. ac_status=$?
  5862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5863. (exit $ac_status); }; }; then
  5864. ac_header_compiler=yes
  5865. else
  5866. echo "$as_me: failed program was:" >&5
  5867. sed 's/^/| /' conftest.$ac_ext >&5
  5868. ac_header_compiler=no
  5869. fi
  5870. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5871. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5872. echo "${ECHO_T}$ac_header_compiler" >&6
  5873. # Is the header present?
  5874. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5875. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5876. cat >conftest.$ac_ext <<_ACEOF
  5877. /* confdefs.h. */
  5878. _ACEOF
  5879. cat confdefs.h >>conftest.$ac_ext
  5880. cat >>conftest.$ac_ext <<_ACEOF
  5881. /* end confdefs.h. */
  5882. #include <$ac_header>
  5883. _ACEOF
  5884. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5885. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5886. ac_status=$?
  5887. grep -v '^ *+' conftest.er1 >conftest.err
  5888. rm -f conftest.er1
  5889. cat conftest.err >&5
  5890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5891. (exit $ac_status); } >/dev/null; then
  5892. if test -s conftest.err; then
  5893. ac_cpp_err=$ac_c_preproc_warn_flag
  5894. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5895. else
  5896. ac_cpp_err=
  5897. fi
  5898. else
  5899. ac_cpp_err=yes
  5900. fi
  5901. if test -z "$ac_cpp_err"; then
  5902. ac_header_preproc=yes
  5903. else
  5904. echo "$as_me: failed program was:" >&5
  5905. sed 's/^/| /' conftest.$ac_ext >&5
  5906. ac_header_preproc=no
  5907. fi
  5908. rm -f conftest.err conftest.$ac_ext
  5909. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5910. echo "${ECHO_T}$ac_header_preproc" >&6
  5911. # So? What about this header?
  5912. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5913. yes:no: )
  5914. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5915. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5916. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5917. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5918. ac_header_preproc=yes
  5919. ;;
  5920. no:yes:* )
  5921. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5922. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5923. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5924. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5925. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5926. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5927. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5928. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5929. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5930. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5931. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5932. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5933. (
  5934. cat <<\_ASBOX
  5935. ## ----------------------------------- ##
  5936. ## Report this to tujikawa@rednoah.com ##
  5937. ## ----------------------------------- ##
  5938. _ASBOX
  5939. ) |
  5940. sed "s/^/$as_me: WARNING: /" >&2
  5941. ;;
  5942. esac
  5943. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5944. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5945. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5946. echo $ECHO_N "(cached) $ECHO_C" >&6
  5947. else
  5948. eval "$as_ac_Header=\$ac_header_preproc"
  5949. fi
  5950. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5951. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5952. fi
  5953. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5954. cat >>confdefs.h <<_ACEOF
  5955. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5956. _ACEOF
  5957. fi
  5958. done
  5959. for ac_func in getpagesize
  5960. do
  5961. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5962. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5963. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5964. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5965. echo $ECHO_N "(cached) $ECHO_C" >&6
  5966. else
  5967. cat >conftest.$ac_ext <<_ACEOF
  5968. /* confdefs.h. */
  5969. _ACEOF
  5970. cat confdefs.h >>conftest.$ac_ext
  5971. cat >>conftest.$ac_ext <<_ACEOF
  5972. /* end confdefs.h. */
  5973. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5974. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5975. #define $ac_func innocuous_$ac_func
  5976. /* System header to define __stub macros and hopefully few prototypes,
  5977. which can conflict with char $ac_func (); below.
  5978. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5979. <limits.h> exists even on freestanding compilers. */
  5980. #ifdef __STDC__
  5981. # include <limits.h>
  5982. #else
  5983. # include <assert.h>
  5984. #endif
  5985. #undef $ac_func
  5986. /* Override any gcc2 internal prototype to avoid an error. */
  5987. #ifdef __cplusplus
  5988. extern "C"
  5989. {
  5990. #endif
  5991. /* We use char because int might match the return type of a gcc2
  5992. builtin and then its argument prototype would still apply. */
  5993. char $ac_func ();
  5994. /* The GNU C library defines this for functions which it implements
  5995. to always fail with ENOSYS. Some functions are actually named
  5996. something starting with __ and the normal name is an alias. */
  5997. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5998. choke me
  5999. #else
  6000. char (*f) () = $ac_func;
  6001. #endif
  6002. #ifdef __cplusplus
  6003. }
  6004. #endif
  6005. int
  6006. main ()
  6007. {
  6008. return f != $ac_func;
  6009. ;
  6010. return 0;
  6011. }
  6012. _ACEOF
  6013. rm -f conftest.$ac_objext conftest$ac_exeext
  6014. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6015. (eval $ac_link) 2>conftest.er1
  6016. ac_status=$?
  6017. grep -v '^ *+' conftest.er1 >conftest.err
  6018. rm -f conftest.er1
  6019. cat conftest.err >&5
  6020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6021. (exit $ac_status); } &&
  6022. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6023. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6024. (eval $ac_try) 2>&5
  6025. ac_status=$?
  6026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6027. (exit $ac_status); }; } &&
  6028. { ac_try='test -s conftest$ac_exeext'
  6029. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6030. (eval $ac_try) 2>&5
  6031. ac_status=$?
  6032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6033. (exit $ac_status); }; }; then
  6034. eval "$as_ac_var=yes"
  6035. else
  6036. echo "$as_me: failed program was:" >&5
  6037. sed 's/^/| /' conftest.$ac_ext >&5
  6038. eval "$as_ac_var=no"
  6039. fi
  6040. rm -f conftest.err conftest.$ac_objext \
  6041. conftest$ac_exeext conftest.$ac_ext
  6042. fi
  6043. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6044. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6045. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6046. cat >>confdefs.h <<_ACEOF
  6047. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6048. _ACEOF
  6049. fi
  6050. done
  6051. echo "$as_me:$LINENO: checking for working mmap" >&5
  6052. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  6053. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  6054. echo $ECHO_N "(cached) $ECHO_C" >&6
  6055. else
  6056. if test "$cross_compiling" = yes; then
  6057. ac_cv_func_mmap_fixed_mapped=no
  6058. else
  6059. cat >conftest.$ac_ext <<_ACEOF
  6060. /* confdefs.h. */
  6061. _ACEOF
  6062. cat confdefs.h >>conftest.$ac_ext
  6063. cat >>conftest.$ac_ext <<_ACEOF
  6064. /* end confdefs.h. */
  6065. $ac_includes_default
  6066. /* malloc might have been renamed as rpl_malloc. */
  6067. #undef malloc
  6068. /* Thanks to Mike Haertel and Jim Avera for this test.
  6069. Here is a matrix of mmap possibilities:
  6070. mmap private not fixed
  6071. mmap private fixed at somewhere currently unmapped
  6072. mmap private fixed at somewhere already mapped
  6073. mmap shared not fixed
  6074. mmap shared fixed at somewhere currently unmapped
  6075. mmap shared fixed at somewhere already mapped
  6076. For private mappings, we should verify that changes cannot be read()
  6077. back from the file, nor mmap's back from the file at a different
  6078. address. (There have been systems where private was not correctly
  6079. implemented like the infamous i386 svr4.0, and systems where the
  6080. VM page cache was not coherent with the file system buffer cache
  6081. like early versions of FreeBSD and possibly contemporary NetBSD.)
  6082. For shared mappings, we should conversely verify that changes get
  6083. propagated back to all the places they're supposed to be.
  6084. Grep wants private fixed already mapped.
  6085. The main things grep needs to know about mmap are:
  6086. * does it exist and is it safe to write into the mmap'd area
  6087. * how to use it (BSD variants) */
  6088. #include <fcntl.h>
  6089. #include <sys/mman.h>
  6090. #if !STDC_HEADERS && !HAVE_STDLIB_H
  6091. char *malloc ();
  6092. #endif
  6093. /* This mess was copied from the GNU getpagesize.h. */
  6094. #if !HAVE_GETPAGESIZE
  6095. /* Assume that all systems that can run configure have sys/param.h. */
  6096. # if !HAVE_SYS_PARAM_H
  6097. # define HAVE_SYS_PARAM_H 1
  6098. # endif
  6099. # ifdef _SC_PAGESIZE
  6100. # define getpagesize() sysconf(_SC_PAGESIZE)
  6101. # else /* no _SC_PAGESIZE */
  6102. # if HAVE_SYS_PARAM_H
  6103. # include <sys/param.h>
  6104. # ifdef EXEC_PAGESIZE
  6105. # define getpagesize() EXEC_PAGESIZE
  6106. # else /* no EXEC_PAGESIZE */
  6107. # ifdef NBPG
  6108. # define getpagesize() NBPG * CLSIZE
  6109. # ifndef CLSIZE
  6110. # define CLSIZE 1
  6111. # endif /* no CLSIZE */
  6112. # else /* no NBPG */
  6113. # ifdef NBPC
  6114. # define getpagesize() NBPC
  6115. # else /* no NBPC */
  6116. # ifdef PAGESIZE
  6117. # define getpagesize() PAGESIZE
  6118. # endif /* PAGESIZE */
  6119. # endif /* no NBPC */
  6120. # endif /* no NBPG */
  6121. # endif /* no EXEC_PAGESIZE */
  6122. # else /* no HAVE_SYS_PARAM_H */
  6123. # define getpagesize() 8192 /* punt totally */
  6124. # endif /* no HAVE_SYS_PARAM_H */
  6125. # endif /* no _SC_PAGESIZE */
  6126. #endif /* no HAVE_GETPAGESIZE */
  6127. int
  6128. main ()
  6129. {
  6130. char *data, *data2, *data3;
  6131. int i, pagesize;
  6132. int fd;
  6133. pagesize = getpagesize ();
  6134. /* First, make a file with some known garbage in it. */
  6135. data = (char *) malloc (pagesize);
  6136. if (!data)
  6137. exit (1);
  6138. for (i = 0; i < pagesize; ++i)
  6139. *(data + i) = rand ();
  6140. umask (0);
  6141. fd = creat ("conftest.mmap", 0600);
  6142. if (fd < 0)
  6143. exit (1);
  6144. if (write (fd, data, pagesize) != pagesize)
  6145. exit (1);
  6146. close (fd);
  6147. /* Next, try to mmap the file at a fixed address which already has
  6148. something else allocated at it. If we can, also make sure that
  6149. we see the same garbage. */
  6150. fd = open ("conftest.mmap", O_RDWR);
  6151. if (fd < 0)
  6152. exit (1);
  6153. data2 = (char *) malloc (2 * pagesize);
  6154. if (!data2)
  6155. exit (1);
  6156. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  6157. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  6158. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  6159. exit (1);
  6160. for (i = 0; i < pagesize; ++i)
  6161. if (*(data + i) != *(data2 + i))
  6162. exit (1);
  6163. /* Finally, make sure that changes to the mapped area do not
  6164. percolate back to the file as seen by read(). (This is a bug on
  6165. some variants of i386 svr4.0.) */
  6166. for (i = 0; i < pagesize; ++i)
  6167. *(data2 + i) = *(data2 + i) + 1;
  6168. data3 = (char *) malloc (pagesize);
  6169. if (!data3)
  6170. exit (1);
  6171. if (read (fd, data3, pagesize) != pagesize)
  6172. exit (1);
  6173. for (i = 0; i < pagesize; ++i)
  6174. if (*(data + i) != *(data3 + i))
  6175. exit (1);
  6176. close (fd);
  6177. exit (0);
  6178. }
  6179. _ACEOF
  6180. rm -f conftest$ac_exeext
  6181. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6182. (eval $ac_link) 2>&5
  6183. ac_status=$?
  6184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6185. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6186. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6187. (eval $ac_try) 2>&5
  6188. ac_status=$?
  6189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6190. (exit $ac_status); }; }; then
  6191. ac_cv_func_mmap_fixed_mapped=yes
  6192. else
  6193. echo "$as_me: program exited with status $ac_status" >&5
  6194. echo "$as_me: failed program was:" >&5
  6195. sed 's/^/| /' conftest.$ac_ext >&5
  6196. ( exit $ac_status )
  6197. ac_cv_func_mmap_fixed_mapped=no
  6198. fi
  6199. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6200. fi
  6201. fi
  6202. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  6203. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  6204. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  6205. cat >>confdefs.h <<\_ACEOF
  6206. #define HAVE_MMAP 1
  6207. _ACEOF
  6208. fi
  6209. rm -f conftest.mmap
  6210. echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  6211. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
  6212. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  6213. echo $ECHO_N "(cached) $ECHO_C" >&6
  6214. else
  6215. cat >conftest.$ac_ext <<_ACEOF
  6216. /* confdefs.h. */
  6217. _ACEOF
  6218. cat confdefs.h >>conftest.$ac_ext
  6219. cat >>conftest.$ac_ext <<_ACEOF
  6220. /* end confdefs.h. */
  6221. #include <features.h>
  6222. #ifdef __GNU_LIBRARY__
  6223. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  6224. Lucky GNU user
  6225. #endif
  6226. #endif
  6227. _ACEOF
  6228. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6229. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  6230. ac_cv_gnu_library_2_1=yes
  6231. else
  6232. ac_cv_gnu_library_2_1=no
  6233. fi
  6234. rm -f conftest*
  6235. fi
  6236. echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  6237. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
  6238. GLIBC21="$ac_cv_gnu_library_2_1"
  6239. echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  6240. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
  6241. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  6242. echo $ECHO_N "(cached) $ECHO_C" >&6
  6243. else
  6244. if test "$cross_compiling" = yes; then
  6245. # Guess based on the CPU.
  6246. case "$host_cpu" in
  6247. alpha* | i3456786 | m68k | s390*)
  6248. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  6249. *)
  6250. gt_cv_int_divbyzero_sigfpe="guessing no";;
  6251. esac
  6252. else
  6253. cat >conftest.$ac_ext <<_ACEOF
  6254. /* confdefs.h. */
  6255. _ACEOF
  6256. cat confdefs.h >>conftest.$ac_ext
  6257. cat >>conftest.$ac_ext <<_ACEOF
  6258. /* end confdefs.h. */
  6259. #include <stdlib.h>
  6260. #include <signal.h>
  6261. static void
  6262. #ifdef __cplusplus
  6263. sigfpe_handler (int sig)
  6264. #else
  6265. sigfpe_handler (sig) int sig;
  6266. #endif
  6267. {
  6268. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  6269. exit (sig != SIGFPE);
  6270. }
  6271. int x = 1;
  6272. int y = 0;
  6273. int z;
  6274. int nan;
  6275. int main ()
  6276. {
  6277. signal (SIGFPE, sigfpe_handler);
  6278. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  6279. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  6280. signal (SIGTRAP, sigfpe_handler);
  6281. #endif
  6282. /* Linux/SPARC yields signal SIGILL. */
  6283. #if defined (__sparc__) && defined (__linux__)
  6284. signal (SIGILL, sigfpe_handler);
  6285. #endif
  6286. z = x / y;
  6287. nan = y / y;
  6288. exit (1);
  6289. }
  6290. _ACEOF
  6291. rm -f conftest$ac_exeext
  6292. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6293. (eval $ac_link) 2>&5
  6294. ac_status=$?
  6295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6296. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6297. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6298. (eval $ac_try) 2>&5
  6299. ac_status=$?
  6300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6301. (exit $ac_status); }; }; then
  6302. gt_cv_int_divbyzero_sigfpe=yes
  6303. else
  6304. echo "$as_me: program exited with status $ac_status" >&5
  6305. echo "$as_me: failed program was:" >&5
  6306. sed 's/^/| /' conftest.$ac_ext >&5
  6307. ( exit $ac_status )
  6308. gt_cv_int_divbyzero_sigfpe=no
  6309. fi
  6310. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6311. fi
  6312. fi
  6313. echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  6314. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
  6315. case "$gt_cv_int_divbyzero_sigfpe" in
  6316. *yes) value=1;;
  6317. *) value=0;;
  6318. esac
  6319. cat >>confdefs.h <<_ACEOF
  6320. #define INTDIV0_RAISES_SIGFPE $value
  6321. _ACEOF
  6322. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  6323. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  6324. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  6325. echo $ECHO_N "(cached) $ECHO_C" >&6
  6326. else
  6327. cat >conftest.$ac_ext <<_ACEOF
  6328. /* confdefs.h. */
  6329. _ACEOF
  6330. cat confdefs.h >>conftest.$ac_ext
  6331. cat >>conftest.$ac_ext <<_ACEOF
  6332. /* end confdefs.h. */
  6333. #include <sys/types.h>
  6334. #include <inttypes.h>
  6335. int
  6336. main ()
  6337. {
  6338. uintmax_t i = (uintmax_t) -1;
  6339. ;
  6340. return 0;
  6341. }
  6342. _ACEOF
  6343. rm -f conftest.$ac_objext
  6344. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6345. (eval $ac_compile) 2>conftest.er1
  6346. ac_status=$?
  6347. grep -v '^ *+' conftest.er1 >conftest.err
  6348. rm -f conftest.er1
  6349. cat conftest.err >&5
  6350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6351. (exit $ac_status); } &&
  6352. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6353. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6354. (eval $ac_try) 2>&5
  6355. ac_status=$?
  6356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6357. (exit $ac_status); }; } &&
  6358. { ac_try='test -s conftest.$ac_objext'
  6359. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6360. (eval $ac_try) 2>&5
  6361. ac_status=$?
  6362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6363. (exit $ac_status); }; }; then
  6364. jm_ac_cv_header_inttypes_h=yes
  6365. else
  6366. echo "$as_me: failed program was:" >&5
  6367. sed 's/^/| /' conftest.$ac_ext >&5
  6368. jm_ac_cv_header_inttypes_h=no
  6369. fi
  6370. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6371. fi
  6372. echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  6373. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
  6374. if test $jm_ac_cv_header_inttypes_h = yes; then
  6375. cat >>confdefs.h <<_ACEOF
  6376. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  6377. _ACEOF
  6378. fi
  6379. echo "$as_me:$LINENO: checking for stdint.h" >&5
  6380. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
  6381. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  6382. echo $ECHO_N "(cached) $ECHO_C" >&6
  6383. else
  6384. cat >conftest.$ac_ext <<_ACEOF
  6385. /* confdefs.h. */
  6386. _ACEOF
  6387. cat confdefs.h >>conftest.$ac_ext
  6388. cat >>conftest.$ac_ext <<_ACEOF
  6389. /* end confdefs.h. */
  6390. #include <sys/types.h>
  6391. #include <stdint.h>
  6392. int
  6393. main ()
  6394. {
  6395. uintmax_t i = (uintmax_t) -1;
  6396. ;
  6397. return 0;
  6398. }
  6399. _ACEOF
  6400. rm -f conftest.$ac_objext
  6401. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6402. (eval $ac_compile) 2>conftest.er1
  6403. ac_status=$?
  6404. grep -v '^ *+' conftest.er1 >conftest.err
  6405. rm -f conftest.er1
  6406. cat conftest.err >&5
  6407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6408. (exit $ac_status); } &&
  6409. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6411. (eval $ac_try) 2>&5
  6412. ac_status=$?
  6413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6414. (exit $ac_status); }; } &&
  6415. { ac_try='test -s conftest.$ac_objext'
  6416. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6417. (eval $ac_try) 2>&5
  6418. ac_status=$?
  6419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6420. (exit $ac_status); }; }; then
  6421. jm_ac_cv_header_stdint_h=yes
  6422. else
  6423. echo "$as_me: failed program was:" >&5
  6424. sed 's/^/| /' conftest.$ac_ext >&5
  6425. jm_ac_cv_header_stdint_h=no
  6426. fi
  6427. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6428. fi
  6429. echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  6430. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
  6431. if test $jm_ac_cv_header_stdint_h = yes; then
  6432. cat >>confdefs.h <<_ACEOF
  6433. #define HAVE_STDINT_H_WITH_UINTMAX 1
  6434. _ACEOF
  6435. fi
  6436. echo "$as_me:$LINENO: checking for unsigned long long" >&5
  6437. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
  6438. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  6439. echo $ECHO_N "(cached) $ECHO_C" >&6
  6440. else
  6441. cat >conftest.$ac_ext <<_ACEOF
  6442. /* confdefs.h. */
  6443. _ACEOF
  6444. cat confdefs.h >>conftest.$ac_ext
  6445. cat >>conftest.$ac_ext <<_ACEOF
  6446. /* end confdefs.h. */
  6447. unsigned long long ull = 1; int i = 63;
  6448. int
  6449. main ()
  6450. {
  6451. unsigned long long ullmax = (unsigned long long) -1;
  6452. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  6453. ;
  6454. return 0;
  6455. }
  6456. _ACEOF
  6457. rm -f conftest.$ac_objext conftest$ac_exeext
  6458. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6459. (eval $ac_link) 2>conftest.er1
  6460. ac_status=$?
  6461. grep -v '^ *+' conftest.er1 >conftest.err
  6462. rm -f conftest.er1
  6463. cat conftest.err >&5
  6464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6465. (exit $ac_status); } &&
  6466. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6467. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6468. (eval $ac_try) 2>&5
  6469. ac_status=$?
  6470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6471. (exit $ac_status); }; } &&
  6472. { ac_try='test -s conftest$ac_exeext'
  6473. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6474. (eval $ac_try) 2>&5
  6475. ac_status=$?
  6476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6477. (exit $ac_status); }; }; then
  6478. ac_cv_type_unsigned_long_long=yes
  6479. else
  6480. echo "$as_me: failed program was:" >&5
  6481. sed 's/^/| /' conftest.$ac_ext >&5
  6482. ac_cv_type_unsigned_long_long=no
  6483. fi
  6484. rm -f conftest.err conftest.$ac_objext \
  6485. conftest$ac_exeext conftest.$ac_ext
  6486. fi
  6487. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  6488. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
  6489. if test $ac_cv_type_unsigned_long_long = yes; then
  6490. cat >>confdefs.h <<\_ACEOF
  6491. #define HAVE_UNSIGNED_LONG_LONG 1
  6492. _ACEOF
  6493. fi
  6494. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  6495. test $ac_cv_type_unsigned_long_long = yes \
  6496. && ac_type='unsigned long long' \
  6497. || ac_type='unsigned long'
  6498. cat >>confdefs.h <<_ACEOF
  6499. #define uintmax_t $ac_type
  6500. _ACEOF
  6501. else
  6502. cat >>confdefs.h <<\_ACEOF
  6503. #define HAVE_UINTMAX_T 1
  6504. _ACEOF
  6505. fi
  6506. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  6507. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  6508. if test "${gt_cv_header_inttypes_h+set}" = set; then
  6509. echo $ECHO_N "(cached) $ECHO_C" >&6
  6510. else
  6511. cat >conftest.$ac_ext <<_ACEOF
  6512. /* confdefs.h. */
  6513. _ACEOF
  6514. cat confdefs.h >>conftest.$ac_ext
  6515. cat >>conftest.$ac_ext <<_ACEOF
  6516. /* end confdefs.h. */
  6517. #include <sys/types.h>
  6518. #include <inttypes.h>
  6519. int
  6520. main ()
  6521. {
  6522. ;
  6523. return 0;
  6524. }
  6525. _ACEOF
  6526. rm -f conftest.$ac_objext
  6527. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6528. (eval $ac_compile) 2>conftest.er1
  6529. ac_status=$?
  6530. grep -v '^ *+' conftest.er1 >conftest.err
  6531. rm -f conftest.er1
  6532. cat conftest.err >&5
  6533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6534. (exit $ac_status); } &&
  6535. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6536. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6537. (eval $ac_try) 2>&5
  6538. ac_status=$?
  6539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6540. (exit $ac_status); }; } &&
  6541. { ac_try='test -s conftest.$ac_objext'
  6542. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6543. (eval $ac_try) 2>&5
  6544. ac_status=$?
  6545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6546. (exit $ac_status); }; }; then
  6547. gt_cv_header_inttypes_h=yes
  6548. else
  6549. echo "$as_me: failed program was:" >&5
  6550. sed 's/^/| /' conftest.$ac_ext >&5
  6551. gt_cv_header_inttypes_h=no
  6552. fi
  6553. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6554. fi
  6555. echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  6556. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
  6557. if test $gt_cv_header_inttypes_h = yes; then
  6558. cat >>confdefs.h <<_ACEOF
  6559. #define HAVE_INTTYPES_H 1
  6560. _ACEOF
  6561. fi
  6562. if test $gt_cv_header_inttypes_h = yes; then
  6563. echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  6564. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
  6565. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  6566. echo $ECHO_N "(cached) $ECHO_C" >&6
  6567. else
  6568. cat >conftest.$ac_ext <<_ACEOF
  6569. /* confdefs.h. */
  6570. _ACEOF
  6571. cat confdefs.h >>conftest.$ac_ext
  6572. cat >>conftest.$ac_ext <<_ACEOF
  6573. /* end confdefs.h. */
  6574. #include <inttypes.h>
  6575. #ifdef PRId32
  6576. char *p = PRId32;
  6577. #endif
  6578. int
  6579. main ()
  6580. {
  6581. ;
  6582. return 0;
  6583. }
  6584. _ACEOF
  6585. rm -f conftest.$ac_objext
  6586. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6587. (eval $ac_compile) 2>conftest.er1
  6588. ac_status=$?
  6589. grep -v '^ *+' conftest.er1 >conftest.err
  6590. rm -f conftest.er1
  6591. cat conftest.err >&5
  6592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6593. (exit $ac_status); } &&
  6594. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6595. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6596. (eval $ac_try) 2>&5
  6597. ac_status=$?
  6598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6599. (exit $ac_status); }; } &&
  6600. { ac_try='test -s conftest.$ac_objext'
  6601. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6602. (eval $ac_try) 2>&5
  6603. ac_status=$?
  6604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6605. (exit $ac_status); }; }; then
  6606. gt_cv_inttypes_pri_broken=no
  6607. else
  6608. echo "$as_me: failed program was:" >&5
  6609. sed 's/^/| /' conftest.$ac_ext >&5
  6610. gt_cv_inttypes_pri_broken=yes
  6611. fi
  6612. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6613. fi
  6614. echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  6615. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
  6616. fi
  6617. if test "$gt_cv_inttypes_pri_broken" = yes; then
  6618. cat >>confdefs.h <<_ACEOF
  6619. #define PRI_MACROS_BROKEN 1
  6620. _ACEOF
  6621. fi
  6622. if test "X$prefix" = "XNONE"; then
  6623. acl_final_prefix="$ac_default_prefix"
  6624. else
  6625. acl_final_prefix="$prefix"
  6626. fi
  6627. if test "X$exec_prefix" = "XNONE"; then
  6628. acl_final_exec_prefix='${prefix}'
  6629. else
  6630. acl_final_exec_prefix="$exec_prefix"
  6631. fi
  6632. acl_save_prefix="$prefix"
  6633. prefix="$acl_final_prefix"
  6634. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  6635. prefix="$acl_save_prefix"
  6636. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  6637. if test "${with_gnu_ld+set}" = set; then
  6638. withval="$with_gnu_ld"
  6639. test "$withval" = no || with_gnu_ld=yes
  6640. else
  6641. with_gnu_ld=no
  6642. fi;
  6643. # Prepare PATH_SEPARATOR.
  6644. # The user is always right.
  6645. if test "${PATH_SEPARATOR+set}" != set; then
  6646. echo "#! /bin/sh" >conf$$.sh
  6647. echo "exit 0" >>conf$$.sh
  6648. chmod +x conf$$.sh
  6649. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6650. PATH_SEPARATOR=';'
  6651. else
  6652. PATH_SEPARATOR=:
  6653. fi
  6654. rm -f conf$$.sh
  6655. fi
  6656. ac_prog=ld
  6657. if test "$GCC" = yes; then
  6658. # Check if gcc -print-prog-name=ld gives a path.
  6659. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  6660. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  6661. case $host in
  6662. *-*-mingw*)
  6663. # gcc leaves a trailing carriage return which upsets mingw
  6664. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6665. *)
  6666. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6667. esac
  6668. case $ac_prog in
  6669. # Accept absolute paths.
  6670. [\\/]* | [A-Za-z]:[\\/]*)
  6671. re_direlt='/[^/][^/]*/\.\./'
  6672. # Canonicalize the path of ld
  6673. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  6674. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  6675. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  6676. done
  6677. test -z "$LD" && LD="$ac_prog"
  6678. ;;
  6679. "")
  6680. # If it fails, then pretend we aren't using GCC.
  6681. ac_prog=ld
  6682. ;;
  6683. *)
  6684. # If it is relative, then search for the first ld in PATH.
  6685. with_gnu_ld=unknown
  6686. ;;
  6687. esac
  6688. elif test "$with_gnu_ld" = yes; then
  6689. echo "$as_me:$LINENO: checking for GNU ld" >&5
  6690. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  6691. else
  6692. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  6693. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  6694. fi
  6695. if test "${acl_cv_path_LD+set}" = set; then
  6696. echo $ECHO_N "(cached) $ECHO_C" >&6
  6697. else
  6698. if test -z "$LD"; then
  6699. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  6700. for ac_dir in $PATH; do
  6701. test -z "$ac_dir" && ac_dir=.
  6702. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6703. acl_cv_path_LD="$ac_dir/$ac_prog"
  6704. # Check to see if the program is GNU ld. I'd rather use --version,
  6705. # but apparently some GNU ld's only accept -v.
  6706. # Break only if it was the GNU/non-GNU ld that we prefer.
  6707. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  6708. test "$with_gnu_ld" != no && break
  6709. else
  6710. test "$with_gnu_ld" != yes && break
  6711. fi
  6712. fi
  6713. done
  6714. IFS="$ac_save_ifs"
  6715. else
  6716. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  6717. fi
  6718. fi
  6719. LD="$acl_cv_path_LD"
  6720. if test -n "$LD"; then
  6721. echo "$as_me:$LINENO: result: $LD" >&5
  6722. echo "${ECHO_T}$LD" >&6
  6723. else
  6724. echo "$as_me:$LINENO: result: no" >&5
  6725. echo "${ECHO_T}no" >&6
  6726. fi
  6727. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  6728. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  6729. { (exit 1); exit 1; }; }
  6730. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  6731. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  6732. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  6733. echo $ECHO_N "(cached) $ECHO_C" >&6
  6734. else
  6735. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  6736. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  6737. acl_cv_prog_gnu_ld=yes
  6738. else
  6739. acl_cv_prog_gnu_ld=no
  6740. fi
  6741. fi
  6742. echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  6743. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
  6744. with_gnu_ld=$acl_cv_prog_gnu_ld
  6745. echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  6746. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
  6747. if test "${acl_cv_rpath+set}" = set; then
  6748. echo $ECHO_N "(cached) $ECHO_C" >&6
  6749. else
  6750. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  6751. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  6752. . ./conftest.sh
  6753. rm -f ./conftest.sh
  6754. acl_cv_rpath=done
  6755. fi
  6756. echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  6757. echo "${ECHO_T}$acl_cv_rpath" >&6
  6758. wl="$acl_cv_wl"
  6759. libext="$acl_cv_libext"
  6760. shlibext="$acl_cv_shlibext"
  6761. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  6762. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  6763. hardcode_direct="$acl_cv_hardcode_direct"
  6764. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  6765. # Check whether --enable-rpath or --disable-rpath was given.
  6766. if test "${enable_rpath+set}" = set; then
  6767. enableval="$enable_rpath"
  6768. :
  6769. else
  6770. enable_rpath=yes
  6771. fi;
  6772. use_additional=yes
  6773. acl_save_prefix="$prefix"
  6774. prefix="$acl_final_prefix"
  6775. acl_save_exec_prefix="$exec_prefix"
  6776. exec_prefix="$acl_final_exec_prefix"
  6777. eval additional_includedir=\"$includedir\"
  6778. eval additional_libdir=\"$libdir\"
  6779. exec_prefix="$acl_save_exec_prefix"
  6780. prefix="$acl_save_prefix"
  6781. # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
  6782. if test "${with_libiconv_prefix+set}" = set; then
  6783. withval="$with_libiconv_prefix"
  6784. if test "X$withval" = "Xno"; then
  6785. use_additional=no
  6786. else
  6787. if test "X$withval" = "X"; then
  6788. acl_save_prefix="$prefix"
  6789. prefix="$acl_final_prefix"
  6790. acl_save_exec_prefix="$exec_prefix"
  6791. exec_prefix="$acl_final_exec_prefix"
  6792. eval additional_includedir=\"$includedir\"
  6793. eval additional_libdir=\"$libdir\"
  6794. exec_prefix="$acl_save_exec_prefix"
  6795. prefix="$acl_save_prefix"
  6796. else
  6797. additional_includedir="$withval/include"
  6798. additional_libdir="$withval/lib"
  6799. fi
  6800. fi
  6801. fi;
  6802. LIBICONV=
  6803. LTLIBICONV=
  6804. INCICONV=
  6805. rpathdirs=
  6806. ltrpathdirs=
  6807. names_already_handled=
  6808. names_next_round='iconv '
  6809. while test -n "$names_next_round"; do
  6810. names_this_round="$names_next_round"
  6811. names_next_round=
  6812. for name in $names_this_round; do
  6813. already_handled=
  6814. for n in $names_already_handled; do
  6815. if test "$n" = "$name"; then
  6816. already_handled=yes
  6817. break
  6818. fi
  6819. done
  6820. if test -z "$already_handled"; then
  6821. names_already_handled="$names_already_handled $name"
  6822. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  6823. eval value=\"\$HAVE_LIB$uppername\"
  6824. if test -n "$value"; then
  6825. if test "$value" = yes; then
  6826. eval value=\"\$LIB$uppername\"
  6827. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  6828. eval value=\"\$LTLIB$uppername\"
  6829. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  6830. else
  6831. :
  6832. fi
  6833. else
  6834. found_dir=
  6835. found_la=
  6836. found_so=
  6837. found_a=
  6838. if test $use_additional = yes; then
  6839. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  6840. found_dir="$additional_libdir"
  6841. found_so="$additional_libdir/lib$name.$shlibext"
  6842. if test -f "$additional_libdir/lib$name.la"; then
  6843. found_la="$additional_libdir/lib$name.la"
  6844. fi
  6845. else
  6846. if test -f "$additional_libdir/lib$name.$libext"; then
  6847. found_dir="$additional_libdir"
  6848. found_a="$additional_libdir/lib$name.$libext"
  6849. if test -f "$additional_libdir/lib$name.la"; then
  6850. found_la="$additional_libdir/lib$name.la"
  6851. fi
  6852. fi
  6853. fi
  6854. fi
  6855. if test "X$found_dir" = "X"; then
  6856. for x in $LDFLAGS $LTLIBICONV; do
  6857. acl_save_prefix="$prefix"
  6858. prefix="$acl_final_prefix"
  6859. acl_save_exec_prefix="$exec_prefix"
  6860. exec_prefix="$acl_final_exec_prefix"
  6861. eval x=\"$x\"
  6862. exec_prefix="$acl_save_exec_prefix"
  6863. prefix="$acl_save_prefix"
  6864. case "$x" in
  6865. -L*)
  6866. dir=`echo "X$x" | sed -e 's/^X-L//'`
  6867. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  6868. found_dir="$dir"
  6869. found_so="$dir/lib$name.$shlibext"
  6870. if test -f "$dir/lib$name.la"; then
  6871. found_la="$dir/lib$name.la"
  6872. fi
  6873. else
  6874. if test -f "$dir/lib$name.$libext"; then
  6875. found_dir="$dir"
  6876. found_a="$dir/lib$name.$libext"
  6877. if test -f "$dir/lib$name.la"; then
  6878. found_la="$dir/lib$name.la"
  6879. fi
  6880. fi
  6881. fi
  6882. ;;
  6883. esac
  6884. if test "X$found_dir" != "X"; then
  6885. break
  6886. fi
  6887. done
  6888. fi
  6889. if test "X$found_dir" != "X"; then
  6890. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  6891. if test "X$found_so" != "X"; then
  6892. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  6893. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  6894. else
  6895. haveit=
  6896. for x in $ltrpathdirs; do
  6897. if test "X$x" = "X$found_dir"; then
  6898. haveit=yes
  6899. break
  6900. fi
  6901. done
  6902. if test -z "$haveit"; then
  6903. ltrpathdirs="$ltrpathdirs $found_dir"
  6904. fi
  6905. if test "$hardcode_direct" = yes; then
  6906. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  6907. else
  6908. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  6909. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  6910. haveit=
  6911. for x in $rpathdirs; do
  6912. if test "X$x" = "X$found_dir"; then
  6913. haveit=yes
  6914. break
  6915. fi
  6916. done
  6917. if test -z "$haveit"; then
  6918. rpathdirs="$rpathdirs $found_dir"
  6919. fi
  6920. else
  6921. haveit=
  6922. for x in $LDFLAGS $LIBICONV; do
  6923. acl_save_prefix="$prefix"
  6924. prefix="$acl_final_prefix"
  6925. acl_save_exec_prefix="$exec_prefix"
  6926. exec_prefix="$acl_final_exec_prefix"
  6927. eval x=\"$x\"
  6928. exec_prefix="$acl_save_exec_prefix"
  6929. prefix="$acl_save_prefix"
  6930. if test "X$x" = "X-L$found_dir"; then
  6931. haveit=yes
  6932. break
  6933. fi
  6934. done
  6935. if test -z "$haveit"; then
  6936. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  6937. fi
  6938. if test "$hardcode_minus_L" != no; then
  6939. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  6940. else
  6941. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  6942. fi
  6943. fi
  6944. fi
  6945. fi
  6946. else
  6947. if test "X$found_a" != "X"; then
  6948. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  6949. else
  6950. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  6951. fi
  6952. fi
  6953. additional_includedir=
  6954. case "$found_dir" in
  6955. */lib | */lib/)
  6956. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  6957. additional_includedir="$basedir/include"
  6958. ;;
  6959. esac
  6960. if test "X$additional_includedir" != "X"; then
  6961. if test "X$additional_includedir" != "X/usr/include"; then
  6962. haveit=
  6963. if test "X$additional_includedir" = "X/usr/local/include"; then
  6964. if test -n "$GCC"; then
  6965. case $host_os in
  6966. linux*) haveit=yes;;
  6967. esac
  6968. fi
  6969. fi
  6970. if test -z "$haveit"; then
  6971. for x in $CPPFLAGS $INCICONV; do
  6972. acl_save_prefix="$prefix"
  6973. prefix="$acl_final_prefix"
  6974. acl_save_exec_prefix="$exec_prefix"
  6975. exec_prefix="$acl_final_exec_prefix"
  6976. eval x=\"$x\"
  6977. exec_prefix="$acl_save_exec_prefix"
  6978. prefix="$acl_save_prefix"
  6979. if test "X$x" = "X-I$additional_includedir"; then
  6980. haveit=yes
  6981. break
  6982. fi
  6983. done
  6984. if test -z "$haveit"; then
  6985. if test -d "$additional_includedir"; then
  6986. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  6987. fi
  6988. fi
  6989. fi
  6990. fi
  6991. fi
  6992. if test -n "$found_la"; then
  6993. save_libdir="$libdir"
  6994. case "$found_la" in
  6995. */* | *\\*) . "$found_la" ;;
  6996. *) . "./$found_la" ;;
  6997. esac
  6998. libdir="$save_libdir"
  6999. for dep in $dependency_libs; do
  7000. case "$dep" in
  7001. -L*)
  7002. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  7003. if test "X$additional_libdir" != "X/usr/lib"; then
  7004. haveit=
  7005. if test "X$additional_libdir" = "X/usr/local/lib"; then
  7006. if test -n "$GCC"; then
  7007. case $host_os in
  7008. linux*) haveit=yes;;
  7009. esac
  7010. fi
  7011. fi
  7012. if test -z "$haveit"; then
  7013. haveit=
  7014. for x in $LDFLAGS $LIBICONV; do
  7015. acl_save_prefix="$prefix"
  7016. prefix="$acl_final_prefix"
  7017. acl_save_exec_prefix="$exec_prefix"
  7018. exec_prefix="$acl_final_exec_prefix"
  7019. eval x=\"$x\"
  7020. exec_prefix="$acl_save_exec_prefix"
  7021. prefix="$acl_save_prefix"
  7022. if test "X$x" = "X-L$additional_libdir"; then
  7023. haveit=yes
  7024. break
  7025. fi
  7026. done
  7027. if test -z "$haveit"; then
  7028. if test -d "$additional_libdir"; then
  7029. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  7030. fi
  7031. fi
  7032. haveit=
  7033. for x in $LDFLAGS $LTLIBICONV; do
  7034. acl_save_prefix="$prefix"
  7035. prefix="$acl_final_prefix"
  7036. acl_save_exec_prefix="$exec_prefix"
  7037. exec_prefix="$acl_final_exec_prefix"
  7038. eval x=\"$x\"
  7039. exec_prefix="$acl_save_exec_prefix"
  7040. prefix="$acl_save_prefix"
  7041. if test "X$x" = "X-L$additional_libdir"; then
  7042. haveit=yes
  7043. break
  7044. fi
  7045. done
  7046. if test -z "$haveit"; then
  7047. if test -d "$additional_libdir"; then
  7048. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  7049. fi
  7050. fi
  7051. fi
  7052. fi
  7053. ;;
  7054. -R*)
  7055. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  7056. if test "$enable_rpath" != no; then
  7057. haveit=
  7058. for x in $rpathdirs; do
  7059. if test "X$x" = "X$dir"; then
  7060. haveit=yes
  7061. break
  7062. fi
  7063. done
  7064. if test -z "$haveit"; then
  7065. rpathdirs="$rpathdirs $dir"
  7066. fi
  7067. haveit=
  7068. for x in $ltrpathdirs; do
  7069. if test "X$x" = "X$dir"; then
  7070. haveit=yes
  7071. break
  7072. fi
  7073. done
  7074. if test -z "$haveit"; then
  7075. ltrpathdirs="$ltrpathdirs $dir"
  7076. fi
  7077. fi
  7078. ;;
  7079. -l*)
  7080. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  7081. ;;
  7082. *.la)
  7083. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  7084. ;;
  7085. *)
  7086. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  7087. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  7088. ;;
  7089. esac
  7090. done
  7091. fi
  7092. else
  7093. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  7094. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  7095. fi
  7096. fi
  7097. fi
  7098. done
  7099. done
  7100. if test "X$rpathdirs" != "X"; then
  7101. if test -n "$hardcode_libdir_separator"; then
  7102. alldirs=
  7103. for found_dir in $rpathdirs; do
  7104. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  7105. done
  7106. acl_save_libdir="$libdir"
  7107. libdir="$alldirs"
  7108. eval flag=\"$hardcode_libdir_flag_spec\"
  7109. libdir="$acl_save_libdir"
  7110. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7111. else
  7112. for found_dir in $rpathdirs; do
  7113. acl_save_libdir="$libdir"
  7114. libdir="$found_dir"
  7115. eval flag=\"$hardcode_libdir_flag_spec\"
  7116. libdir="$acl_save_libdir"
  7117. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7118. done
  7119. fi
  7120. fi
  7121. if test "X$ltrpathdirs" != "X"; then
  7122. for found_dir in $ltrpathdirs; do
  7123. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  7124. done
  7125. fi
  7126. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  7127. stdlib.h string.h unistd.h sys/param.h
  7128. do
  7129. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7130. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7131. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7132. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7133. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7134. echo $ECHO_N "(cached) $ECHO_C" >&6
  7135. fi
  7136. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7137. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7138. else
  7139. # Is the header compilable?
  7140. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7141. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7142. cat >conftest.$ac_ext <<_ACEOF
  7143. /* confdefs.h. */
  7144. _ACEOF
  7145. cat confdefs.h >>conftest.$ac_ext
  7146. cat >>conftest.$ac_ext <<_ACEOF
  7147. /* end confdefs.h. */
  7148. $ac_includes_default
  7149. #include <$ac_header>
  7150. _ACEOF
  7151. rm -f conftest.$ac_objext
  7152. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7153. (eval $ac_compile) 2>conftest.er1
  7154. ac_status=$?
  7155. grep -v '^ *+' conftest.er1 >conftest.err
  7156. rm -f conftest.er1
  7157. cat conftest.err >&5
  7158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7159. (exit $ac_status); } &&
  7160. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7161. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7162. (eval $ac_try) 2>&5
  7163. ac_status=$?
  7164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7165. (exit $ac_status); }; } &&
  7166. { ac_try='test -s conftest.$ac_objext'
  7167. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7168. (eval $ac_try) 2>&5
  7169. ac_status=$?
  7170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7171. (exit $ac_status); }; }; then
  7172. ac_header_compiler=yes
  7173. else
  7174. echo "$as_me: failed program was:" >&5
  7175. sed 's/^/| /' conftest.$ac_ext >&5
  7176. ac_header_compiler=no
  7177. fi
  7178. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7179. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7180. echo "${ECHO_T}$ac_header_compiler" >&6
  7181. # Is the header present?
  7182. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7183. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7184. cat >conftest.$ac_ext <<_ACEOF
  7185. /* confdefs.h. */
  7186. _ACEOF
  7187. cat confdefs.h >>conftest.$ac_ext
  7188. cat >>conftest.$ac_ext <<_ACEOF
  7189. /* end confdefs.h. */
  7190. #include <$ac_header>
  7191. _ACEOF
  7192. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7193. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7194. ac_status=$?
  7195. grep -v '^ *+' conftest.er1 >conftest.err
  7196. rm -f conftest.er1
  7197. cat conftest.err >&5
  7198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7199. (exit $ac_status); } >/dev/null; then
  7200. if test -s conftest.err; then
  7201. ac_cpp_err=$ac_c_preproc_warn_flag
  7202. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7203. else
  7204. ac_cpp_err=
  7205. fi
  7206. else
  7207. ac_cpp_err=yes
  7208. fi
  7209. if test -z "$ac_cpp_err"; then
  7210. ac_header_preproc=yes
  7211. else
  7212. echo "$as_me: failed program was:" >&5
  7213. sed 's/^/| /' conftest.$ac_ext >&5
  7214. ac_header_preproc=no
  7215. fi
  7216. rm -f conftest.err conftest.$ac_ext
  7217. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7218. echo "${ECHO_T}$ac_header_preproc" >&6
  7219. # So? What about this header?
  7220. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7221. yes:no: )
  7222. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7223. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7224. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7225. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7226. ac_header_preproc=yes
  7227. ;;
  7228. no:yes:* )
  7229. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7230. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7231. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7232. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7233. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7234. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7235. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7236. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7237. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7238. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7239. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7240. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7241. (
  7242. cat <<\_ASBOX
  7243. ## ----------------------------------- ##
  7244. ## Report this to tujikawa@rednoah.com ##
  7245. ## ----------------------------------- ##
  7246. _ASBOX
  7247. ) |
  7248. sed "s/^/$as_me: WARNING: /" >&2
  7249. ;;
  7250. esac
  7251. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7252. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7253. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7254. echo $ECHO_N "(cached) $ECHO_C" >&6
  7255. else
  7256. eval "$as_ac_Header=\$ac_header_preproc"
  7257. fi
  7258. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7259. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7260. fi
  7261. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7262. cat >>confdefs.h <<_ACEOF
  7263. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7264. _ACEOF
  7265. fi
  7266. done
  7267. for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
  7268. geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
  7269. strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
  7270. __fsetlocking
  7271. do
  7272. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7273. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7274. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7275. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7276. echo $ECHO_N "(cached) $ECHO_C" >&6
  7277. else
  7278. cat >conftest.$ac_ext <<_ACEOF
  7279. /* confdefs.h. */
  7280. _ACEOF
  7281. cat confdefs.h >>conftest.$ac_ext
  7282. cat >>conftest.$ac_ext <<_ACEOF
  7283. /* end confdefs.h. */
  7284. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7285. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7286. #define $ac_func innocuous_$ac_func
  7287. /* System header to define __stub macros and hopefully few prototypes,
  7288. which can conflict with char $ac_func (); below.
  7289. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7290. <limits.h> exists even on freestanding compilers. */
  7291. #ifdef __STDC__
  7292. # include <limits.h>
  7293. #else
  7294. # include <assert.h>
  7295. #endif
  7296. #undef $ac_func
  7297. /* Override any gcc2 internal prototype to avoid an error. */
  7298. #ifdef __cplusplus
  7299. extern "C"
  7300. {
  7301. #endif
  7302. /* We use char because int might match the return type of a gcc2
  7303. builtin and then its argument prototype would still apply. */
  7304. char $ac_func ();
  7305. /* The GNU C library defines this for functions which it implements
  7306. to always fail with ENOSYS. Some functions are actually named
  7307. something starting with __ and the normal name is an alias. */
  7308. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7309. choke me
  7310. #else
  7311. char (*f) () = $ac_func;
  7312. #endif
  7313. #ifdef __cplusplus
  7314. }
  7315. #endif
  7316. int
  7317. main ()
  7318. {
  7319. return f != $ac_func;
  7320. ;
  7321. return 0;
  7322. }
  7323. _ACEOF
  7324. rm -f conftest.$ac_objext conftest$ac_exeext
  7325. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7326. (eval $ac_link) 2>conftest.er1
  7327. ac_status=$?
  7328. grep -v '^ *+' conftest.er1 >conftest.err
  7329. rm -f conftest.er1
  7330. cat conftest.err >&5
  7331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7332. (exit $ac_status); } &&
  7333. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7335. (eval $ac_try) 2>&5
  7336. ac_status=$?
  7337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7338. (exit $ac_status); }; } &&
  7339. { ac_try='test -s conftest$ac_exeext'
  7340. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7341. (eval $ac_try) 2>&5
  7342. ac_status=$?
  7343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7344. (exit $ac_status); }; }; then
  7345. eval "$as_ac_var=yes"
  7346. else
  7347. echo "$as_me: failed program was:" >&5
  7348. sed 's/^/| /' conftest.$ac_ext >&5
  7349. eval "$as_ac_var=no"
  7350. fi
  7351. rm -f conftest.err conftest.$ac_objext \
  7352. conftest$ac_exeext conftest.$ac_ext
  7353. fi
  7354. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7355. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7356. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7357. cat >>confdefs.h <<_ACEOF
  7358. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7359. _ACEOF
  7360. fi
  7361. done
  7362. am_save_CPPFLAGS="$CPPFLAGS"
  7363. for element in $INCICONV; do
  7364. haveit=
  7365. for x in $CPPFLAGS; do
  7366. acl_save_prefix="$prefix"
  7367. prefix="$acl_final_prefix"
  7368. acl_save_exec_prefix="$exec_prefix"
  7369. exec_prefix="$acl_final_exec_prefix"
  7370. eval x=\"$x\"
  7371. exec_prefix="$acl_save_exec_prefix"
  7372. prefix="$acl_save_prefix"
  7373. if test "X$x" = "X$element"; then
  7374. haveit=yes
  7375. break
  7376. fi
  7377. done
  7378. if test -z "$haveit"; then
  7379. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  7380. fi
  7381. done
  7382. echo "$as_me:$LINENO: checking for iconv" >&5
  7383. echo $ECHO_N "checking for iconv... $ECHO_C" >&6
  7384. if test "${am_cv_func_iconv+set}" = set; then
  7385. echo $ECHO_N "(cached) $ECHO_C" >&6
  7386. else
  7387. am_cv_func_iconv="no, consider installing GNU libiconv"
  7388. am_cv_lib_iconv=no
  7389. cat >conftest.$ac_ext <<_ACEOF
  7390. /* confdefs.h. */
  7391. _ACEOF
  7392. cat confdefs.h >>conftest.$ac_ext
  7393. cat >>conftest.$ac_ext <<_ACEOF
  7394. /* end confdefs.h. */
  7395. #include <stdlib.h>
  7396. #include <iconv.h>
  7397. int
  7398. main ()
  7399. {
  7400. iconv_t cd = iconv_open("","");
  7401. iconv(cd,NULL,NULL,NULL,NULL);
  7402. iconv_close(cd);
  7403. ;
  7404. return 0;
  7405. }
  7406. _ACEOF
  7407. rm -f conftest.$ac_objext conftest$ac_exeext
  7408. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7409. (eval $ac_link) 2>conftest.er1
  7410. ac_status=$?
  7411. grep -v '^ *+' conftest.er1 >conftest.err
  7412. rm -f conftest.er1
  7413. cat conftest.err >&5
  7414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7415. (exit $ac_status); } &&
  7416. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7417. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7418. (eval $ac_try) 2>&5
  7419. ac_status=$?
  7420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7421. (exit $ac_status); }; } &&
  7422. { ac_try='test -s conftest$ac_exeext'
  7423. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7424. (eval $ac_try) 2>&5
  7425. ac_status=$?
  7426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7427. (exit $ac_status); }; }; then
  7428. am_cv_func_iconv=yes
  7429. else
  7430. echo "$as_me: failed program was:" >&5
  7431. sed 's/^/| /' conftest.$ac_ext >&5
  7432. fi
  7433. rm -f conftest.err conftest.$ac_objext \
  7434. conftest$ac_exeext conftest.$ac_ext
  7435. if test "$am_cv_func_iconv" != yes; then
  7436. am_save_LIBS="$LIBS"
  7437. LIBS="$LIBS $LIBICONV"
  7438. cat >conftest.$ac_ext <<_ACEOF
  7439. /* confdefs.h. */
  7440. _ACEOF
  7441. cat confdefs.h >>conftest.$ac_ext
  7442. cat >>conftest.$ac_ext <<_ACEOF
  7443. /* end confdefs.h. */
  7444. #include <stdlib.h>
  7445. #include <iconv.h>
  7446. int
  7447. main ()
  7448. {
  7449. iconv_t cd = iconv_open("","");
  7450. iconv(cd,NULL,NULL,NULL,NULL);
  7451. iconv_close(cd);
  7452. ;
  7453. return 0;
  7454. }
  7455. _ACEOF
  7456. rm -f conftest.$ac_objext conftest$ac_exeext
  7457. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7458. (eval $ac_link) 2>conftest.er1
  7459. ac_status=$?
  7460. grep -v '^ *+' conftest.er1 >conftest.err
  7461. rm -f conftest.er1
  7462. cat conftest.err >&5
  7463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7464. (exit $ac_status); } &&
  7465. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7466. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7467. (eval $ac_try) 2>&5
  7468. ac_status=$?
  7469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7470. (exit $ac_status); }; } &&
  7471. { ac_try='test -s conftest$ac_exeext'
  7472. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7473. (eval $ac_try) 2>&5
  7474. ac_status=$?
  7475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7476. (exit $ac_status); }; }; then
  7477. am_cv_lib_iconv=yes
  7478. am_cv_func_iconv=yes
  7479. else
  7480. echo "$as_me: failed program was:" >&5
  7481. sed 's/^/| /' conftest.$ac_ext >&5
  7482. fi
  7483. rm -f conftest.err conftest.$ac_objext \
  7484. conftest$ac_exeext conftest.$ac_ext
  7485. LIBS="$am_save_LIBS"
  7486. fi
  7487. fi
  7488. echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  7489. echo "${ECHO_T}$am_cv_func_iconv" >&6
  7490. if test "$am_cv_func_iconv" = yes; then
  7491. cat >>confdefs.h <<\_ACEOF
  7492. #define HAVE_ICONV 1
  7493. _ACEOF
  7494. fi
  7495. if test "$am_cv_lib_iconv" = yes; then
  7496. echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  7497. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
  7498. echo "$as_me:$LINENO: result: $LIBICONV" >&5
  7499. echo "${ECHO_T}$LIBICONV" >&6
  7500. else
  7501. CPPFLAGS="$am_save_CPPFLAGS"
  7502. LIBICONV=
  7503. LTLIBICONV=
  7504. fi
  7505. if test "$am_cv_func_iconv" = yes; then
  7506. echo "$as_me:$LINENO: checking for iconv declaration" >&5
  7507. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
  7508. if test "${am_cv_proto_iconv+set}" = set; then
  7509. echo $ECHO_N "(cached) $ECHO_C" >&6
  7510. else
  7511. cat >conftest.$ac_ext <<_ACEOF
  7512. /* confdefs.h. */
  7513. _ACEOF
  7514. cat confdefs.h >>conftest.$ac_ext
  7515. cat >>conftest.$ac_ext <<_ACEOF
  7516. /* end confdefs.h. */
  7517. #include <stdlib.h>
  7518. #include <iconv.h>
  7519. extern
  7520. #ifdef __cplusplus
  7521. "C"
  7522. #endif
  7523. #if defined(__STDC__) || defined(__cplusplus)
  7524. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  7525. #else
  7526. size_t iconv();
  7527. #endif
  7528. int
  7529. main ()
  7530. {
  7531. ;
  7532. return 0;
  7533. }
  7534. _ACEOF
  7535. rm -f conftest.$ac_objext
  7536. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7537. (eval $ac_compile) 2>conftest.er1
  7538. ac_status=$?
  7539. grep -v '^ *+' conftest.er1 >conftest.err
  7540. rm -f conftest.er1
  7541. cat conftest.err >&5
  7542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7543. (exit $ac_status); } &&
  7544. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7545. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7546. (eval $ac_try) 2>&5
  7547. ac_status=$?
  7548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7549. (exit $ac_status); }; } &&
  7550. { ac_try='test -s conftest.$ac_objext'
  7551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7552. (eval $ac_try) 2>&5
  7553. ac_status=$?
  7554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7555. (exit $ac_status); }; }; then
  7556. am_cv_proto_iconv_arg1=""
  7557. else
  7558. echo "$as_me: failed program was:" >&5
  7559. sed 's/^/| /' conftest.$ac_ext >&5
  7560. am_cv_proto_iconv_arg1="const"
  7561. fi
  7562. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7563. 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);"
  7564. fi
  7565. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  7566. echo "$as_me:$LINENO: result: ${ac_t:-
  7567. }$am_cv_proto_iconv" >&5
  7568. echo "${ECHO_T}${ac_t:-
  7569. }$am_cv_proto_iconv" >&6
  7570. cat >>confdefs.h <<_ACEOF
  7571. #define ICONV_CONST $am_cv_proto_iconv_arg1
  7572. _ACEOF
  7573. fi
  7574. echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  7575. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
  7576. if test "${am_cv_langinfo_codeset+set}" = set; then
  7577. echo $ECHO_N "(cached) $ECHO_C" >&6
  7578. else
  7579. cat >conftest.$ac_ext <<_ACEOF
  7580. /* confdefs.h. */
  7581. _ACEOF
  7582. cat confdefs.h >>conftest.$ac_ext
  7583. cat >>conftest.$ac_ext <<_ACEOF
  7584. /* end confdefs.h. */
  7585. #include <langinfo.h>
  7586. int
  7587. main ()
  7588. {
  7589. char* cs = nl_langinfo(CODESET);
  7590. ;
  7591. return 0;
  7592. }
  7593. _ACEOF
  7594. rm -f conftest.$ac_objext conftest$ac_exeext
  7595. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7596. (eval $ac_link) 2>conftest.er1
  7597. ac_status=$?
  7598. grep -v '^ *+' conftest.er1 >conftest.err
  7599. rm -f conftest.er1
  7600. cat conftest.err >&5
  7601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7602. (exit $ac_status); } &&
  7603. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7604. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7605. (eval $ac_try) 2>&5
  7606. ac_status=$?
  7607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7608. (exit $ac_status); }; } &&
  7609. { ac_try='test -s conftest$ac_exeext'
  7610. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7611. (eval $ac_try) 2>&5
  7612. ac_status=$?
  7613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7614. (exit $ac_status); }; }; then
  7615. am_cv_langinfo_codeset=yes
  7616. else
  7617. echo "$as_me: failed program was:" >&5
  7618. sed 's/^/| /' conftest.$ac_ext >&5
  7619. am_cv_langinfo_codeset=no
  7620. fi
  7621. rm -f conftest.err conftest.$ac_objext \
  7622. conftest$ac_exeext conftest.$ac_ext
  7623. fi
  7624. echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  7625. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
  7626. if test $am_cv_langinfo_codeset = yes; then
  7627. cat >>confdefs.h <<\_ACEOF
  7628. #define HAVE_LANGINFO_CODESET 1
  7629. _ACEOF
  7630. fi
  7631. if test $ac_cv_header_locale_h = yes; then
  7632. echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  7633. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
  7634. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  7635. echo $ECHO_N "(cached) $ECHO_C" >&6
  7636. else
  7637. cat >conftest.$ac_ext <<_ACEOF
  7638. /* confdefs.h. */
  7639. _ACEOF
  7640. cat confdefs.h >>conftest.$ac_ext
  7641. cat >>conftest.$ac_ext <<_ACEOF
  7642. /* end confdefs.h. */
  7643. #include <locale.h>
  7644. int
  7645. main ()
  7646. {
  7647. return LC_MESSAGES
  7648. ;
  7649. return 0;
  7650. }
  7651. _ACEOF
  7652. rm -f conftest.$ac_objext conftest$ac_exeext
  7653. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7654. (eval $ac_link) 2>conftest.er1
  7655. ac_status=$?
  7656. grep -v '^ *+' conftest.er1 >conftest.err
  7657. rm -f conftest.er1
  7658. cat conftest.err >&5
  7659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7660. (exit $ac_status); } &&
  7661. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7662. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7663. (eval $ac_try) 2>&5
  7664. ac_status=$?
  7665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7666. (exit $ac_status); }; } &&
  7667. { ac_try='test -s conftest$ac_exeext'
  7668. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7669. (eval $ac_try) 2>&5
  7670. ac_status=$?
  7671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7672. (exit $ac_status); }; }; then
  7673. am_cv_val_LC_MESSAGES=yes
  7674. else
  7675. echo "$as_me: failed program was:" >&5
  7676. sed 's/^/| /' conftest.$ac_ext >&5
  7677. am_cv_val_LC_MESSAGES=no
  7678. fi
  7679. rm -f conftest.err conftest.$ac_objext \
  7680. conftest$ac_exeext conftest.$ac_ext
  7681. fi
  7682. echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  7683. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
  7684. if test $am_cv_val_LC_MESSAGES = yes; then
  7685. cat >>confdefs.h <<\_ACEOF
  7686. #define HAVE_LC_MESSAGES 1
  7687. _ACEOF
  7688. fi
  7689. fi
  7690. for ac_prog in bison
  7691. do
  7692. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7693. set dummy $ac_prog; ac_word=$2
  7694. echo "$as_me:$LINENO: checking for $ac_word" >&5
  7695. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7696. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  7697. echo $ECHO_N "(cached) $ECHO_C" >&6
  7698. else
  7699. if test -n "$INTLBISON"; then
  7700. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  7701. else
  7702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7703. for as_dir in $PATH
  7704. do
  7705. IFS=$as_save_IFS
  7706. test -z "$as_dir" && as_dir=.
  7707. for ac_exec_ext in '' $ac_executable_extensions; do
  7708. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7709. ac_cv_prog_INTLBISON="$ac_prog"
  7710. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7711. break 2
  7712. fi
  7713. done
  7714. done
  7715. fi
  7716. fi
  7717. INTLBISON=$ac_cv_prog_INTLBISON
  7718. if test -n "$INTLBISON"; then
  7719. echo "$as_me:$LINENO: result: $INTLBISON" >&5
  7720. echo "${ECHO_T}$INTLBISON" >&6
  7721. else
  7722. echo "$as_me:$LINENO: result: no" >&5
  7723. echo "${ECHO_T}no" >&6
  7724. fi
  7725. test -n "$INTLBISON" && break
  7726. done
  7727. if test -z "$INTLBISON"; then
  7728. ac_verc_fail=yes
  7729. else
  7730. echo "$as_me:$LINENO: checking version of bison" >&5
  7731. echo $ECHO_N "checking version of bison... $ECHO_C" >&6
  7732. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  7733. case $ac_prog_version in
  7734. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  7735. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  7736. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  7737. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  7738. esac
  7739. echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  7740. echo "${ECHO_T}$ac_prog_version" >&6
  7741. fi
  7742. if test $ac_verc_fail = yes; then
  7743. INTLBISON=:
  7744. fi
  7745. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  7746. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  7747. # Check whether --enable-nls or --disable-nls was given.
  7748. if test "${enable_nls+set}" = set; then
  7749. enableval="$enable_nls"
  7750. USE_NLS=$enableval
  7751. else
  7752. USE_NLS=yes
  7753. fi;
  7754. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  7755. echo "${ECHO_T}$USE_NLS" >&6
  7756. BUILD_INCLUDED_LIBINTL=no
  7757. USE_INCLUDED_LIBINTL=no
  7758. LIBINTL=
  7759. LTLIBINTL=
  7760. POSUB=
  7761. if test "$USE_NLS" = "yes"; then
  7762. gt_use_preinstalled_gnugettext=no
  7763. echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  7764. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
  7765. # Check whether --with-included-gettext or --without-included-gettext was given.
  7766. if test "${with_included_gettext+set}" = set; then
  7767. withval="$with_included_gettext"
  7768. nls_cv_force_use_gnu_gettext=$withval
  7769. else
  7770. nls_cv_force_use_gnu_gettext=no
  7771. fi;
  7772. echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  7773. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
  7774. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  7775. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  7776. echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  7777. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
  7778. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  7779. echo $ECHO_N "(cached) $ECHO_C" >&6
  7780. else
  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 <libintl.h>
  7788. extern int _nl_msg_cat_cntr;
  7789. extern int *_nl_domain_bindings;
  7790. int
  7791. main ()
  7792. {
  7793. bindtextdomain ("", "");
  7794. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  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. gt_cv_func_gnugettext1_libc=yes
  7821. else
  7822. echo "$as_me: failed program was:" >&5
  7823. sed 's/^/| /' conftest.$ac_ext >&5
  7824. gt_cv_func_gnugettext1_libc=no
  7825. fi
  7826. rm -f conftest.err conftest.$ac_objext \
  7827. conftest$ac_exeext conftest.$ac_ext
  7828. fi
  7829. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  7830. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
  7831. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  7832. use_additional=yes
  7833. acl_save_prefix="$prefix"
  7834. prefix="$acl_final_prefix"
  7835. acl_save_exec_prefix="$exec_prefix"
  7836. exec_prefix="$acl_final_exec_prefix"
  7837. eval additional_includedir=\"$includedir\"
  7838. eval additional_libdir=\"$libdir\"
  7839. exec_prefix="$acl_save_exec_prefix"
  7840. prefix="$acl_save_prefix"
  7841. # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
  7842. if test "${with_libintl_prefix+set}" = set; then
  7843. withval="$with_libintl_prefix"
  7844. if test "X$withval" = "Xno"; then
  7845. use_additional=no
  7846. else
  7847. if test "X$withval" = "X"; then
  7848. acl_save_prefix="$prefix"
  7849. prefix="$acl_final_prefix"
  7850. acl_save_exec_prefix="$exec_prefix"
  7851. exec_prefix="$acl_final_exec_prefix"
  7852. eval additional_includedir=\"$includedir\"
  7853. eval additional_libdir=\"$libdir\"
  7854. exec_prefix="$acl_save_exec_prefix"
  7855. prefix="$acl_save_prefix"
  7856. else
  7857. additional_includedir="$withval/include"
  7858. additional_libdir="$withval/lib"
  7859. fi
  7860. fi
  7861. fi;
  7862. LIBINTL=
  7863. LTLIBINTL=
  7864. INCINTL=
  7865. rpathdirs=
  7866. ltrpathdirs=
  7867. names_already_handled=
  7868. names_next_round='intl '
  7869. while test -n "$names_next_round"; do
  7870. names_this_round="$names_next_round"
  7871. names_next_round=
  7872. for name in $names_this_round; do
  7873. already_handled=
  7874. for n in $names_already_handled; do
  7875. if test "$n" = "$name"; then
  7876. already_handled=yes
  7877. break
  7878. fi
  7879. done
  7880. if test -z "$already_handled"; then
  7881. names_already_handled="$names_already_handled $name"
  7882. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  7883. eval value=\"\$HAVE_LIB$uppername\"
  7884. if test -n "$value"; then
  7885. if test "$value" = yes; then
  7886. eval value=\"\$LIB$uppername\"
  7887. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  7888. eval value=\"\$LTLIB$uppername\"
  7889. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  7890. else
  7891. :
  7892. fi
  7893. else
  7894. found_dir=
  7895. found_la=
  7896. found_so=
  7897. found_a=
  7898. if test $use_additional = yes; then
  7899. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  7900. found_dir="$additional_libdir"
  7901. found_so="$additional_libdir/lib$name.$shlibext"
  7902. if test -f "$additional_libdir/lib$name.la"; then
  7903. found_la="$additional_libdir/lib$name.la"
  7904. fi
  7905. else
  7906. if test -f "$additional_libdir/lib$name.$libext"; then
  7907. found_dir="$additional_libdir"
  7908. found_a="$additional_libdir/lib$name.$libext"
  7909. if test -f "$additional_libdir/lib$name.la"; then
  7910. found_la="$additional_libdir/lib$name.la"
  7911. fi
  7912. fi
  7913. fi
  7914. fi
  7915. if test "X$found_dir" = "X"; then
  7916. for x in $LDFLAGS $LTLIBINTL; do
  7917. acl_save_prefix="$prefix"
  7918. prefix="$acl_final_prefix"
  7919. acl_save_exec_prefix="$exec_prefix"
  7920. exec_prefix="$acl_final_exec_prefix"
  7921. eval x=\"$x\"
  7922. exec_prefix="$acl_save_exec_prefix"
  7923. prefix="$acl_save_prefix"
  7924. case "$x" in
  7925. -L*)
  7926. dir=`echo "X$x" | sed -e 's/^X-L//'`
  7927. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  7928. found_dir="$dir"
  7929. found_so="$dir/lib$name.$shlibext"
  7930. if test -f "$dir/lib$name.la"; then
  7931. found_la="$dir/lib$name.la"
  7932. fi
  7933. else
  7934. if test -f "$dir/lib$name.$libext"; then
  7935. found_dir="$dir"
  7936. found_a="$dir/lib$name.$libext"
  7937. if test -f "$dir/lib$name.la"; then
  7938. found_la="$dir/lib$name.la"
  7939. fi
  7940. fi
  7941. fi
  7942. ;;
  7943. esac
  7944. if test "X$found_dir" != "X"; then
  7945. break
  7946. fi
  7947. done
  7948. fi
  7949. if test "X$found_dir" != "X"; then
  7950. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  7951. if test "X$found_so" != "X"; then
  7952. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  7953. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  7954. else
  7955. haveit=
  7956. for x in $ltrpathdirs; do
  7957. if test "X$x" = "X$found_dir"; then
  7958. haveit=yes
  7959. break
  7960. fi
  7961. done
  7962. if test -z "$haveit"; then
  7963. ltrpathdirs="$ltrpathdirs $found_dir"
  7964. fi
  7965. if test "$hardcode_direct" = yes; then
  7966. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  7967. else
  7968. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  7969. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  7970. haveit=
  7971. for x in $rpathdirs; do
  7972. if test "X$x" = "X$found_dir"; then
  7973. haveit=yes
  7974. break
  7975. fi
  7976. done
  7977. if test -z "$haveit"; then
  7978. rpathdirs="$rpathdirs $found_dir"
  7979. fi
  7980. else
  7981. haveit=
  7982. for x in $LDFLAGS $LIBINTL; do
  7983. acl_save_prefix="$prefix"
  7984. prefix="$acl_final_prefix"
  7985. acl_save_exec_prefix="$exec_prefix"
  7986. exec_prefix="$acl_final_exec_prefix"
  7987. eval x=\"$x\"
  7988. exec_prefix="$acl_save_exec_prefix"
  7989. prefix="$acl_save_prefix"
  7990. if test "X$x" = "X-L$found_dir"; then
  7991. haveit=yes
  7992. break
  7993. fi
  7994. done
  7995. if test -z "$haveit"; then
  7996. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  7997. fi
  7998. if test "$hardcode_minus_L" != no; then
  7999. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8000. else
  8001. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  8002. fi
  8003. fi
  8004. fi
  8005. fi
  8006. else
  8007. if test "X$found_a" != "X"; then
  8008. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  8009. else
  8010. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  8011. fi
  8012. fi
  8013. additional_includedir=
  8014. case "$found_dir" in
  8015. */lib | */lib/)
  8016. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8017. additional_includedir="$basedir/include"
  8018. ;;
  8019. esac
  8020. if test "X$additional_includedir" != "X"; then
  8021. if test "X$additional_includedir" != "X/usr/include"; then
  8022. haveit=
  8023. if test "X$additional_includedir" = "X/usr/local/include"; then
  8024. if test -n "$GCC"; then
  8025. case $host_os in
  8026. linux*) haveit=yes;;
  8027. esac
  8028. fi
  8029. fi
  8030. if test -z "$haveit"; then
  8031. for x in $CPPFLAGS $INCINTL; do
  8032. acl_save_prefix="$prefix"
  8033. prefix="$acl_final_prefix"
  8034. acl_save_exec_prefix="$exec_prefix"
  8035. exec_prefix="$acl_final_exec_prefix"
  8036. eval x=\"$x\"
  8037. exec_prefix="$acl_save_exec_prefix"
  8038. prefix="$acl_save_prefix"
  8039. if test "X$x" = "X-I$additional_includedir"; then
  8040. haveit=yes
  8041. break
  8042. fi
  8043. done
  8044. if test -z "$haveit"; then
  8045. if test -d "$additional_includedir"; then
  8046. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  8047. fi
  8048. fi
  8049. fi
  8050. fi
  8051. fi
  8052. if test -n "$found_la"; then
  8053. save_libdir="$libdir"
  8054. case "$found_la" in
  8055. */* | *\\*) . "$found_la" ;;
  8056. *) . "./$found_la" ;;
  8057. esac
  8058. libdir="$save_libdir"
  8059. for dep in $dependency_libs; do
  8060. case "$dep" in
  8061. -L*)
  8062. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8063. if test "X$additional_libdir" != "X/usr/lib"; then
  8064. haveit=
  8065. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8066. if test -n "$GCC"; then
  8067. case $host_os in
  8068. linux*) haveit=yes;;
  8069. esac
  8070. fi
  8071. fi
  8072. if test -z "$haveit"; then
  8073. haveit=
  8074. for x in $LDFLAGS $LIBINTL; do
  8075. acl_save_prefix="$prefix"
  8076. prefix="$acl_final_prefix"
  8077. acl_save_exec_prefix="$exec_prefix"
  8078. exec_prefix="$acl_final_exec_prefix"
  8079. eval x=\"$x\"
  8080. exec_prefix="$acl_save_exec_prefix"
  8081. prefix="$acl_save_prefix"
  8082. if test "X$x" = "X-L$additional_libdir"; then
  8083. haveit=yes
  8084. break
  8085. fi
  8086. done
  8087. if test -z "$haveit"; then
  8088. if test -d "$additional_libdir"; then
  8089. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  8090. fi
  8091. fi
  8092. haveit=
  8093. for x in $LDFLAGS $LTLIBINTL; do
  8094. acl_save_prefix="$prefix"
  8095. prefix="$acl_final_prefix"
  8096. acl_save_exec_prefix="$exec_prefix"
  8097. exec_prefix="$acl_final_exec_prefix"
  8098. eval x=\"$x\"
  8099. exec_prefix="$acl_save_exec_prefix"
  8100. prefix="$acl_save_prefix"
  8101. if test "X$x" = "X-L$additional_libdir"; then
  8102. haveit=yes
  8103. break
  8104. fi
  8105. done
  8106. if test -z "$haveit"; then
  8107. if test -d "$additional_libdir"; then
  8108. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  8109. fi
  8110. fi
  8111. fi
  8112. fi
  8113. ;;
  8114. -R*)
  8115. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8116. if test "$enable_rpath" != no; then
  8117. haveit=
  8118. for x in $rpathdirs; do
  8119. if test "X$x" = "X$dir"; then
  8120. haveit=yes
  8121. break
  8122. fi
  8123. done
  8124. if test -z "$haveit"; then
  8125. rpathdirs="$rpathdirs $dir"
  8126. fi
  8127. haveit=
  8128. for x in $ltrpathdirs; do
  8129. if test "X$x" = "X$dir"; then
  8130. haveit=yes
  8131. break
  8132. fi
  8133. done
  8134. if test -z "$haveit"; then
  8135. ltrpathdirs="$ltrpathdirs $dir"
  8136. fi
  8137. fi
  8138. ;;
  8139. -l*)
  8140. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8141. ;;
  8142. *.la)
  8143. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8144. ;;
  8145. *)
  8146. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  8147. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  8148. ;;
  8149. esac
  8150. done
  8151. fi
  8152. else
  8153. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  8154. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  8155. fi
  8156. fi
  8157. fi
  8158. done
  8159. done
  8160. if test "X$rpathdirs" != "X"; then
  8161. if test -n "$hardcode_libdir_separator"; then
  8162. alldirs=
  8163. for found_dir in $rpathdirs; do
  8164. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8165. done
  8166. acl_save_libdir="$libdir"
  8167. libdir="$alldirs"
  8168. eval flag=\"$hardcode_libdir_flag_spec\"
  8169. libdir="$acl_save_libdir"
  8170. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  8171. else
  8172. for found_dir in $rpathdirs; do
  8173. acl_save_libdir="$libdir"
  8174. libdir="$found_dir"
  8175. eval flag=\"$hardcode_libdir_flag_spec\"
  8176. libdir="$acl_save_libdir"
  8177. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  8178. done
  8179. fi
  8180. fi
  8181. if test "X$ltrpathdirs" != "X"; then
  8182. for found_dir in $ltrpathdirs; do
  8183. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  8184. done
  8185. fi
  8186. echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  8187. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
  8188. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  8189. echo $ECHO_N "(cached) $ECHO_C" >&6
  8190. else
  8191. gt_save_CPPFLAGS="$CPPFLAGS"
  8192. CPPFLAGS="$CPPFLAGS $INCINTL"
  8193. gt_save_LIBS="$LIBS"
  8194. LIBS="$LIBS $LIBINTL"
  8195. cat >conftest.$ac_ext <<_ACEOF
  8196. /* confdefs.h. */
  8197. _ACEOF
  8198. cat confdefs.h >>conftest.$ac_ext
  8199. cat >>conftest.$ac_ext <<_ACEOF
  8200. /* end confdefs.h. */
  8201. #include <libintl.h>
  8202. extern int _nl_msg_cat_cntr;
  8203. extern
  8204. #ifdef __cplusplus
  8205. "C"
  8206. #endif
  8207. const char *_nl_expand_alias ();
  8208. int
  8209. main ()
  8210. {
  8211. bindtextdomain ("", "");
  8212. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  8213. ;
  8214. return 0;
  8215. }
  8216. _ACEOF
  8217. rm -f conftest.$ac_objext conftest$ac_exeext
  8218. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8219. (eval $ac_link) 2>conftest.er1
  8220. ac_status=$?
  8221. grep -v '^ *+' conftest.er1 >conftest.err
  8222. rm -f conftest.er1
  8223. cat conftest.err >&5
  8224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8225. (exit $ac_status); } &&
  8226. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8227. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8228. (eval $ac_try) 2>&5
  8229. ac_status=$?
  8230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8231. (exit $ac_status); }; } &&
  8232. { ac_try='test -s conftest$ac_exeext'
  8233. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8234. (eval $ac_try) 2>&5
  8235. ac_status=$?
  8236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8237. (exit $ac_status); }; }; then
  8238. gt_cv_func_gnugettext1_libintl=yes
  8239. else
  8240. echo "$as_me: failed program was:" >&5
  8241. sed 's/^/| /' conftest.$ac_ext >&5
  8242. gt_cv_func_gnugettext1_libintl=no
  8243. fi
  8244. rm -f conftest.err conftest.$ac_objext \
  8245. conftest$ac_exeext conftest.$ac_ext
  8246. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  8247. LIBS="$LIBS $LIBICONV"
  8248. cat >conftest.$ac_ext <<_ACEOF
  8249. /* confdefs.h. */
  8250. _ACEOF
  8251. cat confdefs.h >>conftest.$ac_ext
  8252. cat >>conftest.$ac_ext <<_ACEOF
  8253. /* end confdefs.h. */
  8254. #include <libintl.h>
  8255. extern int _nl_msg_cat_cntr;
  8256. extern
  8257. #ifdef __cplusplus
  8258. "C"
  8259. #endif
  8260. const char *_nl_expand_alias ();
  8261. int
  8262. main ()
  8263. {
  8264. bindtextdomain ("", "");
  8265. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  8266. ;
  8267. return 0;
  8268. }
  8269. _ACEOF
  8270. rm -f conftest.$ac_objext conftest$ac_exeext
  8271. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8272. (eval $ac_link) 2>conftest.er1
  8273. ac_status=$?
  8274. grep -v '^ *+' conftest.er1 >conftest.err
  8275. rm -f conftest.er1
  8276. cat conftest.err >&5
  8277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8278. (exit $ac_status); } &&
  8279. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8280. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8281. (eval $ac_try) 2>&5
  8282. ac_status=$?
  8283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8284. (exit $ac_status); }; } &&
  8285. { ac_try='test -s conftest$ac_exeext'
  8286. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8287. (eval $ac_try) 2>&5
  8288. ac_status=$?
  8289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8290. (exit $ac_status); }; }; then
  8291. LIBINTL="$LIBINTL $LIBICONV"
  8292. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  8293. gt_cv_func_gnugettext1_libintl=yes
  8294. else
  8295. echo "$as_me: failed program was:" >&5
  8296. sed 's/^/| /' conftest.$ac_ext >&5
  8297. fi
  8298. rm -f conftest.err conftest.$ac_objext \
  8299. conftest$ac_exeext conftest.$ac_ext
  8300. fi
  8301. CPPFLAGS="$gt_save_CPPFLAGS"
  8302. LIBS="$gt_save_LIBS"
  8303. fi
  8304. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  8305. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
  8306. fi
  8307. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  8308. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  8309. && test "$PACKAGE" != gettext-runtime \
  8310. && test "$PACKAGE" != gettext-tools; }; then
  8311. gt_use_preinstalled_gnugettext=yes
  8312. else
  8313. LIBINTL=
  8314. LTLIBINTL=
  8315. INCINTL=
  8316. fi
  8317. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  8318. nls_cv_use_gnu_gettext=yes
  8319. fi
  8320. fi
  8321. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  8322. BUILD_INCLUDED_LIBINTL=yes
  8323. USE_INCLUDED_LIBINTL=yes
  8324. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  8325. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  8326. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  8327. fi
  8328. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  8329. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  8330. CATOBJEXT=.gmo
  8331. fi
  8332. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  8333. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  8334. cat >>confdefs.h <<\_ACEOF
  8335. #define ENABLE_NLS 1
  8336. _ACEOF
  8337. else
  8338. USE_NLS=no
  8339. fi
  8340. fi
  8341. echo "$as_me:$LINENO: checking whether to use NLS" >&5
  8342. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
  8343. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8344. echo "${ECHO_T}$USE_NLS" >&6
  8345. if test "$USE_NLS" = "yes"; then
  8346. echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  8347. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
  8348. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  8349. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  8350. gt_source="external libintl"
  8351. else
  8352. gt_source="libc"
  8353. fi
  8354. else
  8355. gt_source="included intl directory"
  8356. fi
  8357. echo "$as_me:$LINENO: result: $gt_source" >&5
  8358. echo "${ECHO_T}$gt_source" >&6
  8359. fi
  8360. if test "$USE_NLS" = "yes"; then
  8361. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  8362. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  8363. echo "$as_me:$LINENO: checking how to link with libintl" >&5
  8364. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
  8365. echo "$as_me:$LINENO: result: $LIBINTL" >&5
  8366. echo "${ECHO_T}$LIBINTL" >&6
  8367. for element in $INCINTL; do
  8368. haveit=
  8369. for x in $CPPFLAGS; do
  8370. acl_save_prefix="$prefix"
  8371. prefix="$acl_final_prefix"
  8372. acl_save_exec_prefix="$exec_prefix"
  8373. exec_prefix="$acl_final_exec_prefix"
  8374. eval x=\"$x\"
  8375. exec_prefix="$acl_save_exec_prefix"
  8376. prefix="$acl_save_prefix"
  8377. if test "X$x" = "X$element"; then
  8378. haveit=yes
  8379. break
  8380. fi
  8381. done
  8382. if test -z "$haveit"; then
  8383. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8384. fi
  8385. done
  8386. fi
  8387. cat >>confdefs.h <<\_ACEOF
  8388. #define HAVE_GETTEXT 1
  8389. _ACEOF
  8390. cat >>confdefs.h <<\_ACEOF
  8391. #define HAVE_DCGETTEXT 1
  8392. _ACEOF
  8393. fi
  8394. POSUB=po
  8395. fi
  8396. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  8397. BUILD_INCLUDED_LIBINTL=yes
  8398. fi
  8399. nls_cv_header_intl=
  8400. nls_cv_header_libgt=
  8401. DATADIRNAME=share
  8402. INSTOBJEXT=.mo
  8403. GENCAT=gencat
  8404. if test "$USE_INCLUDED_LIBINTL" = yes; then
  8405. INTLOBJS="\$(GETTOBJS)"
  8406. fi
  8407. INTL_LIBTOOL_SUFFIX_PREFIX=
  8408. INTLLIBS="$LIBINTL"
  8409. echo "$as_me:$LINENO: checking for error_at_line" >&5
  8410. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  8411. if test "${ac_cv_lib_error_at_line+set}" = set; then
  8412. echo $ECHO_N "(cached) $ECHO_C" >&6
  8413. else
  8414. cat >conftest.$ac_ext <<_ACEOF
  8415. /* confdefs.h. */
  8416. _ACEOF
  8417. cat confdefs.h >>conftest.$ac_ext
  8418. cat >>conftest.$ac_ext <<_ACEOF
  8419. /* end confdefs.h. */
  8420. $ac_includes_default
  8421. int
  8422. main ()
  8423. {
  8424. error_at_line (0, 0, "", 0, "");
  8425. ;
  8426. return 0;
  8427. }
  8428. _ACEOF
  8429. rm -f conftest.$ac_objext conftest$ac_exeext
  8430. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8431. (eval $ac_link) 2>conftest.er1
  8432. ac_status=$?
  8433. grep -v '^ *+' conftest.er1 >conftest.err
  8434. rm -f conftest.er1
  8435. cat conftest.err >&5
  8436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8437. (exit $ac_status); } &&
  8438. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8439. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8440. (eval $ac_try) 2>&5
  8441. ac_status=$?
  8442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8443. (exit $ac_status); }; } &&
  8444. { ac_try='test -s conftest$ac_exeext'
  8445. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8446. (eval $ac_try) 2>&5
  8447. ac_status=$?
  8448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8449. (exit $ac_status); }; }; then
  8450. ac_cv_lib_error_at_line=yes
  8451. else
  8452. echo "$as_me: failed program was:" >&5
  8453. sed 's/^/| /' conftest.$ac_ext >&5
  8454. ac_cv_lib_error_at_line=no
  8455. fi
  8456. rm -f conftest.err conftest.$ac_objext \
  8457. conftest$ac_exeext conftest.$ac_ext
  8458. fi
  8459. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  8460. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  8461. if test $ac_cv_lib_error_at_line = no; then
  8462. case $LIBOBJS in
  8463. "error.$ac_objext" | \
  8464. *" error.$ac_objext" | \
  8465. "error.$ac_objext "* | \
  8466. *" error.$ac_objext "* ) ;;
  8467. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  8468. esac
  8469. fi
  8470. for ac_header in stdlib.h
  8471. do
  8472. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8473. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8474. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8475. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8476. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8477. echo $ECHO_N "(cached) $ECHO_C" >&6
  8478. fi
  8479. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8480. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8481. else
  8482. # Is the header compilable?
  8483. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8484. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8485. cat >conftest.$ac_ext <<_ACEOF
  8486. /* confdefs.h. */
  8487. _ACEOF
  8488. cat confdefs.h >>conftest.$ac_ext
  8489. cat >>conftest.$ac_ext <<_ACEOF
  8490. /* end confdefs.h. */
  8491. $ac_includes_default
  8492. #include <$ac_header>
  8493. _ACEOF
  8494. rm -f conftest.$ac_objext
  8495. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8496. (eval $ac_compile) 2>conftest.er1
  8497. ac_status=$?
  8498. grep -v '^ *+' conftest.er1 >conftest.err
  8499. rm -f conftest.er1
  8500. cat conftest.err >&5
  8501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8502. (exit $ac_status); } &&
  8503. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8504. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8505. (eval $ac_try) 2>&5
  8506. ac_status=$?
  8507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8508. (exit $ac_status); }; } &&
  8509. { ac_try='test -s conftest.$ac_objext'
  8510. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8511. (eval $ac_try) 2>&5
  8512. ac_status=$?
  8513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8514. (exit $ac_status); }; }; then
  8515. ac_header_compiler=yes
  8516. else
  8517. echo "$as_me: failed program was:" >&5
  8518. sed 's/^/| /' conftest.$ac_ext >&5
  8519. ac_header_compiler=no
  8520. fi
  8521. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8522. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8523. echo "${ECHO_T}$ac_header_compiler" >&6
  8524. # Is the header present?
  8525. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8526. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8527. cat >conftest.$ac_ext <<_ACEOF
  8528. /* confdefs.h. */
  8529. _ACEOF
  8530. cat confdefs.h >>conftest.$ac_ext
  8531. cat >>conftest.$ac_ext <<_ACEOF
  8532. /* end confdefs.h. */
  8533. #include <$ac_header>
  8534. _ACEOF
  8535. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8536. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8537. ac_status=$?
  8538. grep -v '^ *+' conftest.er1 >conftest.err
  8539. rm -f conftest.er1
  8540. cat conftest.err >&5
  8541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8542. (exit $ac_status); } >/dev/null; then
  8543. if test -s conftest.err; then
  8544. ac_cpp_err=$ac_c_preproc_warn_flag
  8545. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8546. else
  8547. ac_cpp_err=
  8548. fi
  8549. else
  8550. ac_cpp_err=yes
  8551. fi
  8552. if test -z "$ac_cpp_err"; then
  8553. ac_header_preproc=yes
  8554. else
  8555. echo "$as_me: failed program was:" >&5
  8556. sed 's/^/| /' conftest.$ac_ext >&5
  8557. ac_header_preproc=no
  8558. fi
  8559. rm -f conftest.err conftest.$ac_ext
  8560. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8561. echo "${ECHO_T}$ac_header_preproc" >&6
  8562. # So? What about this header?
  8563. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8564. yes:no: )
  8565. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8566. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8567. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8568. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8569. ac_header_preproc=yes
  8570. ;;
  8571. no:yes:* )
  8572. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8573. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8574. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8575. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8576. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8577. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8578. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8579. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8580. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8581. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8582. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8583. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8584. (
  8585. cat <<\_ASBOX
  8586. ## ----------------------------------- ##
  8587. ## Report this to tujikawa@rednoah.com ##
  8588. ## ----------------------------------- ##
  8589. _ASBOX
  8590. ) |
  8591. sed "s/^/$as_me: WARNING: /" >&2
  8592. ;;
  8593. esac
  8594. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8595. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8596. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8597. echo $ECHO_N "(cached) $ECHO_C" >&6
  8598. else
  8599. eval "$as_ac_Header=\$ac_header_preproc"
  8600. fi
  8601. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8602. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8603. fi
  8604. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8605. cat >>confdefs.h <<_ACEOF
  8606. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8607. _ACEOF
  8608. fi
  8609. done
  8610. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8611. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8612. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8613. echo $ECHO_N "(cached) $ECHO_C" >&6
  8614. else
  8615. if test "$cross_compiling" = yes; then
  8616. ac_cv_func_malloc_0_nonnull=no
  8617. else
  8618. cat >conftest.$ac_ext <<_ACEOF
  8619. /* confdefs.h. */
  8620. _ACEOF
  8621. cat confdefs.h >>conftest.$ac_ext
  8622. cat >>conftest.$ac_ext <<_ACEOF
  8623. /* end confdefs.h. */
  8624. #if STDC_HEADERS || HAVE_STDLIB_H
  8625. # include <stdlib.h>
  8626. #else
  8627. char *malloc ();
  8628. #endif
  8629. int
  8630. main ()
  8631. {
  8632. exit (malloc (0) ? 0 : 1);
  8633. ;
  8634. return 0;
  8635. }
  8636. _ACEOF
  8637. rm -f conftest$ac_exeext
  8638. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8639. (eval $ac_link) 2>&5
  8640. ac_status=$?
  8641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8642. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8643. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8644. (eval $ac_try) 2>&5
  8645. ac_status=$?
  8646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8647. (exit $ac_status); }; }; then
  8648. ac_cv_func_malloc_0_nonnull=yes
  8649. else
  8650. echo "$as_me: program exited with status $ac_status" >&5
  8651. echo "$as_me: failed program was:" >&5
  8652. sed 's/^/| /' conftest.$ac_ext >&5
  8653. ( exit $ac_status )
  8654. ac_cv_func_malloc_0_nonnull=no
  8655. fi
  8656. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8657. fi
  8658. fi
  8659. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8660. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8661. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8662. cat >>confdefs.h <<\_ACEOF
  8663. #define HAVE_MALLOC 1
  8664. _ACEOF
  8665. else
  8666. cat >>confdefs.h <<\_ACEOF
  8667. #define HAVE_MALLOC 0
  8668. _ACEOF
  8669. case $LIBOBJS in
  8670. "malloc.$ac_objext" | \
  8671. *" malloc.$ac_objext" | \
  8672. "malloc.$ac_objext "* | \
  8673. *" malloc.$ac_objext "* ) ;;
  8674. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8675. esac
  8676. cat >>confdefs.h <<\_ACEOF
  8677. #define malloc rpl_malloc
  8678. _ACEOF
  8679. fi
  8680. echo "$as_me:$LINENO: checking for working memcmp" >&5
  8681. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  8682. if test "${ac_cv_func_memcmp_working+set}" = set; then
  8683. echo $ECHO_N "(cached) $ECHO_C" >&6
  8684. else
  8685. if test "$cross_compiling" = yes; then
  8686. ac_cv_func_memcmp_working=no
  8687. else
  8688. cat >conftest.$ac_ext <<_ACEOF
  8689. /* confdefs.h. */
  8690. _ACEOF
  8691. cat confdefs.h >>conftest.$ac_ext
  8692. cat >>conftest.$ac_ext <<_ACEOF
  8693. /* end confdefs.h. */
  8694. $ac_includes_default
  8695. int
  8696. main ()
  8697. {
  8698. /* Some versions of memcmp are not 8-bit clean. */
  8699. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  8700. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  8701. exit (1);
  8702. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  8703. or more and with at least one buffer not starting on a 4-byte boundary.
  8704. William Lewis provided this test program. */
  8705. {
  8706. char foo[21];
  8707. char bar[21];
  8708. int i;
  8709. for (i = 0; i < 4; i++)
  8710. {
  8711. char *a = foo + i;
  8712. char *b = bar + i;
  8713. strcpy (a, "--------01111111");
  8714. strcpy (b, "--------10000000");
  8715. if (memcmp (a, b, 16) >= 0)
  8716. exit (1);
  8717. }
  8718. exit (0);
  8719. }
  8720. ;
  8721. return 0;
  8722. }
  8723. _ACEOF
  8724. rm -f conftest$ac_exeext
  8725. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8726. (eval $ac_link) 2>&5
  8727. ac_status=$?
  8728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8729. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8730. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8731. (eval $ac_try) 2>&5
  8732. ac_status=$?
  8733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8734. (exit $ac_status); }; }; then
  8735. ac_cv_func_memcmp_working=yes
  8736. else
  8737. echo "$as_me: program exited with status $ac_status" >&5
  8738. echo "$as_me: failed program was:" >&5
  8739. sed 's/^/| /' conftest.$ac_ext >&5
  8740. ( exit $ac_status )
  8741. ac_cv_func_memcmp_working=no
  8742. fi
  8743. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8744. fi
  8745. fi
  8746. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  8747. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  8748. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  8749. "memcmp.$ac_objext" | \
  8750. *" memcmp.$ac_objext" | \
  8751. "memcmp.$ac_objext "* | \
  8752. *" memcmp.$ac_objext "* ) ;;
  8753. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  8754. esac
  8755. for ac_header in stdlib.h unistd.h
  8756. do
  8757. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8758. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8759. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8760. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8761. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8762. echo $ECHO_N "(cached) $ECHO_C" >&6
  8763. fi
  8764. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8765. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8766. else
  8767. # Is the header compilable?
  8768. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8769. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8770. cat >conftest.$ac_ext <<_ACEOF
  8771. /* confdefs.h. */
  8772. _ACEOF
  8773. cat confdefs.h >>conftest.$ac_ext
  8774. cat >>conftest.$ac_ext <<_ACEOF
  8775. /* end confdefs.h. */
  8776. $ac_includes_default
  8777. #include <$ac_header>
  8778. _ACEOF
  8779. rm -f conftest.$ac_objext
  8780. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8781. (eval $ac_compile) 2>conftest.er1
  8782. ac_status=$?
  8783. grep -v '^ *+' conftest.er1 >conftest.err
  8784. rm -f conftest.er1
  8785. cat conftest.err >&5
  8786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8787. (exit $ac_status); } &&
  8788. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8789. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8790. (eval $ac_try) 2>&5
  8791. ac_status=$?
  8792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8793. (exit $ac_status); }; } &&
  8794. { ac_try='test -s conftest.$ac_objext'
  8795. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8796. (eval $ac_try) 2>&5
  8797. ac_status=$?
  8798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8799. (exit $ac_status); }; }; then
  8800. ac_header_compiler=yes
  8801. else
  8802. echo "$as_me: failed program was:" >&5
  8803. sed 's/^/| /' conftest.$ac_ext >&5
  8804. ac_header_compiler=no
  8805. fi
  8806. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8807. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8808. echo "${ECHO_T}$ac_header_compiler" >&6
  8809. # Is the header present?
  8810. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8811. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8812. cat >conftest.$ac_ext <<_ACEOF
  8813. /* confdefs.h. */
  8814. _ACEOF
  8815. cat confdefs.h >>conftest.$ac_ext
  8816. cat >>conftest.$ac_ext <<_ACEOF
  8817. /* end confdefs.h. */
  8818. #include <$ac_header>
  8819. _ACEOF
  8820. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8821. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8822. ac_status=$?
  8823. grep -v '^ *+' conftest.er1 >conftest.err
  8824. rm -f conftest.er1
  8825. cat conftest.err >&5
  8826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8827. (exit $ac_status); } >/dev/null; then
  8828. if test -s conftest.err; then
  8829. ac_cpp_err=$ac_c_preproc_warn_flag
  8830. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8831. else
  8832. ac_cpp_err=
  8833. fi
  8834. else
  8835. ac_cpp_err=yes
  8836. fi
  8837. if test -z "$ac_cpp_err"; then
  8838. ac_header_preproc=yes
  8839. else
  8840. echo "$as_me: failed program was:" >&5
  8841. sed 's/^/| /' conftest.$ac_ext >&5
  8842. ac_header_preproc=no
  8843. fi
  8844. rm -f conftest.err conftest.$ac_ext
  8845. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8846. echo "${ECHO_T}$ac_header_preproc" >&6
  8847. # So? What about this header?
  8848. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8849. yes:no: )
  8850. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8851. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8852. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8853. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8854. ac_header_preproc=yes
  8855. ;;
  8856. no:yes:* )
  8857. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8858. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8859. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8860. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8861. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8862. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8863. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8864. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8865. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8866. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8867. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8868. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8869. (
  8870. cat <<\_ASBOX
  8871. ## ----------------------------------- ##
  8872. ## Report this to tujikawa@rednoah.com ##
  8873. ## ----------------------------------- ##
  8874. _ASBOX
  8875. ) |
  8876. sed "s/^/$as_me: WARNING: /" >&2
  8877. ;;
  8878. esac
  8879. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8880. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8881. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8882. echo $ECHO_N "(cached) $ECHO_C" >&6
  8883. else
  8884. eval "$as_ac_Header=\$ac_header_preproc"
  8885. fi
  8886. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8887. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8888. fi
  8889. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8890. cat >>confdefs.h <<_ACEOF
  8891. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8892. _ACEOF
  8893. fi
  8894. done
  8895. for ac_func in getpagesize
  8896. do
  8897. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8898. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8899. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8900. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8901. echo $ECHO_N "(cached) $ECHO_C" >&6
  8902. else
  8903. cat >conftest.$ac_ext <<_ACEOF
  8904. /* confdefs.h. */
  8905. _ACEOF
  8906. cat confdefs.h >>conftest.$ac_ext
  8907. cat >>conftest.$ac_ext <<_ACEOF
  8908. /* end confdefs.h. */
  8909. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8910. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8911. #define $ac_func innocuous_$ac_func
  8912. /* System header to define __stub macros and hopefully few prototypes,
  8913. which can conflict with char $ac_func (); below.
  8914. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8915. <limits.h> exists even on freestanding compilers. */
  8916. #ifdef __STDC__
  8917. # include <limits.h>
  8918. #else
  8919. # include <assert.h>
  8920. #endif
  8921. #undef $ac_func
  8922. /* Override any gcc2 internal prototype to avoid an error. */
  8923. #ifdef __cplusplus
  8924. extern "C"
  8925. {
  8926. #endif
  8927. /* We use char because int might match the return type of a gcc2
  8928. builtin and then its argument prototype would still apply. */
  8929. char $ac_func ();
  8930. /* The GNU C library defines this for functions which it implements
  8931. to always fail with ENOSYS. Some functions are actually named
  8932. something starting with __ and the normal name is an alias. */
  8933. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8934. choke me
  8935. #else
  8936. char (*f) () = $ac_func;
  8937. #endif
  8938. #ifdef __cplusplus
  8939. }
  8940. #endif
  8941. int
  8942. main ()
  8943. {
  8944. return f != $ac_func;
  8945. ;
  8946. return 0;
  8947. }
  8948. _ACEOF
  8949. rm -f conftest.$ac_objext conftest$ac_exeext
  8950. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8951. (eval $ac_link) 2>conftest.er1
  8952. ac_status=$?
  8953. grep -v '^ *+' conftest.er1 >conftest.err
  8954. rm -f conftest.er1
  8955. cat conftest.err >&5
  8956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8957. (exit $ac_status); } &&
  8958. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8959. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8960. (eval $ac_try) 2>&5
  8961. ac_status=$?
  8962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8963. (exit $ac_status); }; } &&
  8964. { ac_try='test -s conftest$ac_exeext'
  8965. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8966. (eval $ac_try) 2>&5
  8967. ac_status=$?
  8968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8969. (exit $ac_status); }; }; then
  8970. eval "$as_ac_var=yes"
  8971. else
  8972. echo "$as_me: failed program was:" >&5
  8973. sed 's/^/| /' conftest.$ac_ext >&5
  8974. eval "$as_ac_var=no"
  8975. fi
  8976. rm -f conftest.err conftest.$ac_objext \
  8977. conftest$ac_exeext conftest.$ac_ext
  8978. fi
  8979. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8980. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8981. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8982. cat >>confdefs.h <<_ACEOF
  8983. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8984. _ACEOF
  8985. fi
  8986. done
  8987. echo "$as_me:$LINENO: checking for working mmap" >&5
  8988. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  8989. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  8990. echo $ECHO_N "(cached) $ECHO_C" >&6
  8991. else
  8992. if test "$cross_compiling" = yes; then
  8993. ac_cv_func_mmap_fixed_mapped=no
  8994. else
  8995. cat >conftest.$ac_ext <<_ACEOF
  8996. /* confdefs.h. */
  8997. _ACEOF
  8998. cat confdefs.h >>conftest.$ac_ext
  8999. cat >>conftest.$ac_ext <<_ACEOF
  9000. /* end confdefs.h. */
  9001. $ac_includes_default
  9002. /* malloc might have been renamed as rpl_malloc. */
  9003. #undef malloc
  9004. /* Thanks to Mike Haertel and Jim Avera for this test.
  9005. Here is a matrix of mmap possibilities:
  9006. mmap private not fixed
  9007. mmap private fixed at somewhere currently unmapped
  9008. mmap private fixed at somewhere already mapped
  9009. mmap shared not fixed
  9010. mmap shared fixed at somewhere currently unmapped
  9011. mmap shared fixed at somewhere already mapped
  9012. For private mappings, we should verify that changes cannot be read()
  9013. back from the file, nor mmap's back from the file at a different
  9014. address. (There have been systems where private was not correctly
  9015. implemented like the infamous i386 svr4.0, and systems where the
  9016. VM page cache was not coherent with the file system buffer cache
  9017. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9018. For shared mappings, we should conversely verify that changes get
  9019. propagated back to all the places they're supposed to be.
  9020. Grep wants private fixed already mapped.
  9021. The main things grep needs to know about mmap are:
  9022. * does it exist and is it safe to write into the mmap'd area
  9023. * how to use it (BSD variants) */
  9024. #include <fcntl.h>
  9025. #include <sys/mman.h>
  9026. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9027. char *malloc ();
  9028. #endif
  9029. /* This mess was copied from the GNU getpagesize.h. */
  9030. #if !HAVE_GETPAGESIZE
  9031. /* Assume that all systems that can run configure have sys/param.h. */
  9032. # if !HAVE_SYS_PARAM_H
  9033. # define HAVE_SYS_PARAM_H 1
  9034. # endif
  9035. # ifdef _SC_PAGESIZE
  9036. # define getpagesize() sysconf(_SC_PAGESIZE)
  9037. # else /* no _SC_PAGESIZE */
  9038. # if HAVE_SYS_PARAM_H
  9039. # include <sys/param.h>
  9040. # ifdef EXEC_PAGESIZE
  9041. # define getpagesize() EXEC_PAGESIZE
  9042. # else /* no EXEC_PAGESIZE */
  9043. # ifdef NBPG
  9044. # define getpagesize() NBPG * CLSIZE
  9045. # ifndef CLSIZE
  9046. # define CLSIZE 1
  9047. # endif /* no CLSIZE */
  9048. # else /* no NBPG */
  9049. # ifdef NBPC
  9050. # define getpagesize() NBPC
  9051. # else /* no NBPC */
  9052. # ifdef PAGESIZE
  9053. # define getpagesize() PAGESIZE
  9054. # endif /* PAGESIZE */
  9055. # endif /* no NBPC */
  9056. # endif /* no NBPG */
  9057. # endif /* no EXEC_PAGESIZE */
  9058. # else /* no HAVE_SYS_PARAM_H */
  9059. # define getpagesize() 8192 /* punt totally */
  9060. # endif /* no HAVE_SYS_PARAM_H */
  9061. # endif /* no _SC_PAGESIZE */
  9062. #endif /* no HAVE_GETPAGESIZE */
  9063. int
  9064. main ()
  9065. {
  9066. char *data, *data2, *data3;
  9067. int i, pagesize;
  9068. int fd;
  9069. pagesize = getpagesize ();
  9070. /* First, make a file with some known garbage in it. */
  9071. data = (char *) malloc (pagesize);
  9072. if (!data)
  9073. exit (1);
  9074. for (i = 0; i < pagesize; ++i)
  9075. *(data + i) = rand ();
  9076. umask (0);
  9077. fd = creat ("conftest.mmap", 0600);
  9078. if (fd < 0)
  9079. exit (1);
  9080. if (write (fd, data, pagesize) != pagesize)
  9081. exit (1);
  9082. close (fd);
  9083. /* Next, try to mmap the file at a fixed address which already has
  9084. something else allocated at it. If we can, also make sure that
  9085. we see the same garbage. */
  9086. fd = open ("conftest.mmap", O_RDWR);
  9087. if (fd < 0)
  9088. exit (1);
  9089. data2 = (char *) malloc (2 * pagesize);
  9090. if (!data2)
  9091. exit (1);
  9092. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9093. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9094. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9095. exit (1);
  9096. for (i = 0; i < pagesize; ++i)
  9097. if (*(data + i) != *(data2 + i))
  9098. exit (1);
  9099. /* Finally, make sure that changes to the mapped area do not
  9100. percolate back to the file as seen by read(). (This is a bug on
  9101. some variants of i386 svr4.0.) */
  9102. for (i = 0; i < pagesize; ++i)
  9103. *(data2 + i) = *(data2 + i) + 1;
  9104. data3 = (char *) malloc (pagesize);
  9105. if (!data3)
  9106. exit (1);
  9107. if (read (fd, data3, pagesize) != pagesize)
  9108. exit (1);
  9109. for (i = 0; i < pagesize; ++i)
  9110. if (*(data + i) != *(data3 + i))
  9111. exit (1);
  9112. close (fd);
  9113. exit (0);
  9114. }
  9115. _ACEOF
  9116. rm -f conftest$ac_exeext
  9117. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9118. (eval $ac_link) 2>&5
  9119. ac_status=$?
  9120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9121. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9123. (eval $ac_try) 2>&5
  9124. ac_status=$?
  9125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9126. (exit $ac_status); }; }; then
  9127. ac_cv_func_mmap_fixed_mapped=yes
  9128. else
  9129. echo "$as_me: program exited with status $ac_status" >&5
  9130. echo "$as_me: failed program was:" >&5
  9131. sed 's/^/| /' conftest.$ac_ext >&5
  9132. ( exit $ac_status )
  9133. ac_cv_func_mmap_fixed_mapped=no
  9134. fi
  9135. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9136. fi
  9137. fi
  9138. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9139. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9140. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9141. cat >>confdefs.h <<\_ACEOF
  9142. #define HAVE_MMAP 1
  9143. _ACEOF
  9144. fi
  9145. rm -f conftest.mmap
  9146. for ac_header in stdlib.h
  9147. do
  9148. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9149. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9150. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9151. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9152. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9153. echo $ECHO_N "(cached) $ECHO_C" >&6
  9154. fi
  9155. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9156. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9157. else
  9158. # Is the header compilable?
  9159. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9160. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9161. cat >conftest.$ac_ext <<_ACEOF
  9162. /* confdefs.h. */
  9163. _ACEOF
  9164. cat confdefs.h >>conftest.$ac_ext
  9165. cat >>conftest.$ac_ext <<_ACEOF
  9166. /* end confdefs.h. */
  9167. $ac_includes_default
  9168. #include <$ac_header>
  9169. _ACEOF
  9170. rm -f conftest.$ac_objext
  9171. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9172. (eval $ac_compile) 2>conftest.er1
  9173. ac_status=$?
  9174. grep -v '^ *+' conftest.er1 >conftest.err
  9175. rm -f conftest.er1
  9176. cat conftest.err >&5
  9177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9178. (exit $ac_status); } &&
  9179. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9180. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9181. (eval $ac_try) 2>&5
  9182. ac_status=$?
  9183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9184. (exit $ac_status); }; } &&
  9185. { ac_try='test -s conftest.$ac_objext'
  9186. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9187. (eval $ac_try) 2>&5
  9188. ac_status=$?
  9189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9190. (exit $ac_status); }; }; then
  9191. ac_header_compiler=yes
  9192. else
  9193. echo "$as_me: failed program was:" >&5
  9194. sed 's/^/| /' conftest.$ac_ext >&5
  9195. ac_header_compiler=no
  9196. fi
  9197. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9198. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9199. echo "${ECHO_T}$ac_header_compiler" >&6
  9200. # Is the header present?
  9201. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9202. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9203. cat >conftest.$ac_ext <<_ACEOF
  9204. /* confdefs.h. */
  9205. _ACEOF
  9206. cat confdefs.h >>conftest.$ac_ext
  9207. cat >>conftest.$ac_ext <<_ACEOF
  9208. /* end confdefs.h. */
  9209. #include <$ac_header>
  9210. _ACEOF
  9211. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9212. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9213. ac_status=$?
  9214. grep -v '^ *+' conftest.er1 >conftest.err
  9215. rm -f conftest.er1
  9216. cat conftest.err >&5
  9217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9218. (exit $ac_status); } >/dev/null; then
  9219. if test -s conftest.err; then
  9220. ac_cpp_err=$ac_c_preproc_warn_flag
  9221. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9222. else
  9223. ac_cpp_err=
  9224. fi
  9225. else
  9226. ac_cpp_err=yes
  9227. fi
  9228. if test -z "$ac_cpp_err"; then
  9229. ac_header_preproc=yes
  9230. else
  9231. echo "$as_me: failed program was:" >&5
  9232. sed 's/^/| /' conftest.$ac_ext >&5
  9233. ac_header_preproc=no
  9234. fi
  9235. rm -f conftest.err conftest.$ac_ext
  9236. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9237. echo "${ECHO_T}$ac_header_preproc" >&6
  9238. # So? What about this header?
  9239. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9240. yes:no: )
  9241. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9242. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9243. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9244. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9245. ac_header_preproc=yes
  9246. ;;
  9247. no:yes:* )
  9248. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9249. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9250. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9251. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9252. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9253. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9254. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9255. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9256. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9257. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9258. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9259. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9260. (
  9261. cat <<\_ASBOX
  9262. ## ----------------------------------- ##
  9263. ## Report this to tujikawa@rednoah.com ##
  9264. ## ----------------------------------- ##
  9265. _ASBOX
  9266. ) |
  9267. sed "s/^/$as_me: WARNING: /" >&2
  9268. ;;
  9269. esac
  9270. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9271. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9272. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9273. echo $ECHO_N "(cached) $ECHO_C" >&6
  9274. else
  9275. eval "$as_ac_Header=\$ac_header_preproc"
  9276. fi
  9277. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9278. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9279. fi
  9280. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9281. cat >>confdefs.h <<_ACEOF
  9282. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9283. _ACEOF
  9284. fi
  9285. done
  9286. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9287. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9288. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9289. echo $ECHO_N "(cached) $ECHO_C" >&6
  9290. else
  9291. if test "$cross_compiling" = yes; then
  9292. ac_cv_func_realloc_0_nonnull=no
  9293. else
  9294. cat >conftest.$ac_ext <<_ACEOF
  9295. /* confdefs.h. */
  9296. _ACEOF
  9297. cat confdefs.h >>conftest.$ac_ext
  9298. cat >>conftest.$ac_ext <<_ACEOF
  9299. /* end confdefs.h. */
  9300. #if STDC_HEADERS || HAVE_STDLIB_H
  9301. # include <stdlib.h>
  9302. #else
  9303. char *realloc ();
  9304. #endif
  9305. int
  9306. main ()
  9307. {
  9308. exit (realloc (0, 0) ? 0 : 1);
  9309. ;
  9310. return 0;
  9311. }
  9312. _ACEOF
  9313. rm -f conftest$ac_exeext
  9314. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9315. (eval $ac_link) 2>&5
  9316. ac_status=$?
  9317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9318. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9319. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9320. (eval $ac_try) 2>&5
  9321. ac_status=$?
  9322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9323. (exit $ac_status); }; }; then
  9324. ac_cv_func_realloc_0_nonnull=yes
  9325. else
  9326. echo "$as_me: program exited with status $ac_status" >&5
  9327. echo "$as_me: failed program was:" >&5
  9328. sed 's/^/| /' conftest.$ac_ext >&5
  9329. ( exit $ac_status )
  9330. ac_cv_func_realloc_0_nonnull=no
  9331. fi
  9332. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9333. fi
  9334. fi
  9335. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9336. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9337. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9338. cat >>confdefs.h <<\_ACEOF
  9339. #define HAVE_REALLOC 1
  9340. _ACEOF
  9341. else
  9342. cat >>confdefs.h <<\_ACEOF
  9343. #define HAVE_REALLOC 0
  9344. _ACEOF
  9345. case $LIBOBJS in
  9346. "realloc.$ac_objext" | \
  9347. *" realloc.$ac_objext" | \
  9348. "realloc.$ac_objext "* | \
  9349. *" realloc.$ac_objext "* ) ;;
  9350. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9351. esac
  9352. cat >>confdefs.h <<\_ACEOF
  9353. #define realloc rpl_realloc
  9354. _ACEOF
  9355. fi
  9356. for ac_header in sys/select.h sys/socket.h
  9357. do
  9358. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9359. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9360. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9361. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9362. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9363. echo $ECHO_N "(cached) $ECHO_C" >&6
  9364. fi
  9365. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9366. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9367. else
  9368. # Is the header compilable?
  9369. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9370. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9371. cat >conftest.$ac_ext <<_ACEOF
  9372. /* confdefs.h. */
  9373. _ACEOF
  9374. cat confdefs.h >>conftest.$ac_ext
  9375. cat >>conftest.$ac_ext <<_ACEOF
  9376. /* end confdefs.h. */
  9377. $ac_includes_default
  9378. #include <$ac_header>
  9379. _ACEOF
  9380. rm -f conftest.$ac_objext
  9381. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9382. (eval $ac_compile) 2>conftest.er1
  9383. ac_status=$?
  9384. grep -v '^ *+' conftest.er1 >conftest.err
  9385. rm -f conftest.er1
  9386. cat conftest.err >&5
  9387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9388. (exit $ac_status); } &&
  9389. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9390. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9391. (eval $ac_try) 2>&5
  9392. ac_status=$?
  9393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9394. (exit $ac_status); }; } &&
  9395. { ac_try='test -s conftest.$ac_objext'
  9396. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9397. (eval $ac_try) 2>&5
  9398. ac_status=$?
  9399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9400. (exit $ac_status); }; }; then
  9401. ac_header_compiler=yes
  9402. else
  9403. echo "$as_me: failed program was:" >&5
  9404. sed 's/^/| /' conftest.$ac_ext >&5
  9405. ac_header_compiler=no
  9406. fi
  9407. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9408. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9409. echo "${ECHO_T}$ac_header_compiler" >&6
  9410. # Is the header present?
  9411. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9412. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9413. cat >conftest.$ac_ext <<_ACEOF
  9414. /* confdefs.h. */
  9415. _ACEOF
  9416. cat confdefs.h >>conftest.$ac_ext
  9417. cat >>conftest.$ac_ext <<_ACEOF
  9418. /* end confdefs.h. */
  9419. #include <$ac_header>
  9420. _ACEOF
  9421. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9422. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9423. ac_status=$?
  9424. grep -v '^ *+' conftest.er1 >conftest.err
  9425. rm -f conftest.er1
  9426. cat conftest.err >&5
  9427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9428. (exit $ac_status); } >/dev/null; then
  9429. if test -s conftest.err; then
  9430. ac_cpp_err=$ac_c_preproc_warn_flag
  9431. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9432. else
  9433. ac_cpp_err=
  9434. fi
  9435. else
  9436. ac_cpp_err=yes
  9437. fi
  9438. if test -z "$ac_cpp_err"; then
  9439. ac_header_preproc=yes
  9440. else
  9441. echo "$as_me: failed program was:" >&5
  9442. sed 's/^/| /' conftest.$ac_ext >&5
  9443. ac_header_preproc=no
  9444. fi
  9445. rm -f conftest.err conftest.$ac_ext
  9446. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9447. echo "${ECHO_T}$ac_header_preproc" >&6
  9448. # So? What about this header?
  9449. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9450. yes:no: )
  9451. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9452. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9453. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9454. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9455. ac_header_preproc=yes
  9456. ;;
  9457. no:yes:* )
  9458. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9459. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9460. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9461. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9462. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9463. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9464. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9465. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9466. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9467. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9468. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9469. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9470. (
  9471. cat <<\_ASBOX
  9472. ## ----------------------------------- ##
  9473. ## Report this to tujikawa@rednoah.com ##
  9474. ## ----------------------------------- ##
  9475. _ASBOX
  9476. ) |
  9477. sed "s/^/$as_me: WARNING: /" >&2
  9478. ;;
  9479. esac
  9480. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9481. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9482. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9483. echo $ECHO_N "(cached) $ECHO_C" >&6
  9484. else
  9485. eval "$as_ac_Header=\$ac_header_preproc"
  9486. fi
  9487. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9488. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9489. fi
  9490. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9491. cat >>confdefs.h <<_ACEOF
  9492. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9493. _ACEOF
  9494. fi
  9495. done
  9496. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  9497. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  9498. if test "${ac_cv_func_select_args+set}" = set; then
  9499. echo $ECHO_N "(cached) $ECHO_C" >&6
  9500. else
  9501. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  9502. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  9503. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  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. #if HAVE_SYS_SELECT_H
  9512. # include <sys/select.h>
  9513. #endif
  9514. #if HAVE_SYS_SOCKET_H
  9515. # include <sys/socket.h>
  9516. #endif
  9517. int
  9518. main ()
  9519. {
  9520. extern int select ($ac_arg1,
  9521. $ac_arg234, $ac_arg234, $ac_arg234,
  9522. $ac_arg5);
  9523. ;
  9524. return 0;
  9525. }
  9526. _ACEOF
  9527. rm -f conftest.$ac_objext
  9528. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9529. (eval $ac_compile) 2>conftest.er1
  9530. ac_status=$?
  9531. grep -v '^ *+' conftest.er1 >conftest.err
  9532. rm -f conftest.er1
  9533. cat conftest.err >&5
  9534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9535. (exit $ac_status); } &&
  9536. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9537. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9538. (eval $ac_try) 2>&5
  9539. ac_status=$?
  9540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9541. (exit $ac_status); }; } &&
  9542. { ac_try='test -s conftest.$ac_objext'
  9543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9544. (eval $ac_try) 2>&5
  9545. ac_status=$?
  9546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9547. (exit $ac_status); }; }; then
  9548. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  9549. else
  9550. echo "$as_me: failed program was:" >&5
  9551. sed 's/^/| /' conftest.$ac_ext >&5
  9552. fi
  9553. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9554. done
  9555. done
  9556. done
  9557. # Provide a safe default value.
  9558. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  9559. fi
  9560. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  9561. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  9562. ac_save_IFS=$IFS; IFS=','
  9563. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  9564. IFS=$ac_save_IFS
  9565. shift
  9566. cat >>confdefs.h <<_ACEOF
  9567. #define SELECT_TYPE_ARG1 $1
  9568. _ACEOF
  9569. cat >>confdefs.h <<_ACEOF
  9570. #define SELECT_TYPE_ARG234 ($2)
  9571. _ACEOF
  9572. cat >>confdefs.h <<_ACEOF
  9573. #define SELECT_TYPE_ARG5 ($3)
  9574. _ACEOF
  9575. rm -f conftest*
  9576. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9577. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  9578. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9579. echo $ECHO_N "(cached) $ECHO_C" >&6
  9580. else
  9581. rm -f conftest.sym conftest.file
  9582. echo >conftest.file
  9583. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9584. if test "$cross_compiling" = yes; then
  9585. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9586. else
  9587. cat >conftest.$ac_ext <<_ACEOF
  9588. /* confdefs.h. */
  9589. _ACEOF
  9590. cat confdefs.h >>conftest.$ac_ext
  9591. cat >>conftest.$ac_ext <<_ACEOF
  9592. /* end confdefs.h. */
  9593. $ac_includes_default
  9594. int
  9595. main ()
  9596. {
  9597. struct stat sbuf;
  9598. /* Linux will dereference the symlink and fail.
  9599. That is better in the sense that it means we will not
  9600. have to compile and use the lstat wrapper. */
  9601. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  9602. ;
  9603. return 0;
  9604. }
  9605. _ACEOF
  9606. rm -f conftest$ac_exeext
  9607. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9608. (eval $ac_link) 2>&5
  9609. ac_status=$?
  9610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9611. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9612. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9613. (eval $ac_try) 2>&5
  9614. ac_status=$?
  9615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9616. (exit $ac_status); }; }; then
  9617. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9618. else
  9619. echo "$as_me: program exited with status $ac_status" >&5
  9620. echo "$as_me: failed program was:" >&5
  9621. sed 's/^/| /' conftest.$ac_ext >&5
  9622. ( exit $ac_status )
  9623. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9624. fi
  9625. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9626. fi
  9627. else
  9628. # If the `ln -s' command failed, then we probably don't even
  9629. # have an lstat function.
  9630. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9631. fi
  9632. rm -f conftest.sym conftest.file
  9633. fi
  9634. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9635. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  9636. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9637. cat >>confdefs.h <<_ACEOF
  9638. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9639. _ACEOF
  9640. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9641. case $LIBOBJS in
  9642. "lstat.$ac_objext" | \
  9643. *" lstat.$ac_objext" | \
  9644. "lstat.$ac_objext "* | \
  9645. *" lstat.$ac_objext "* ) ;;
  9646. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  9647. esac
  9648. fi
  9649. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9650. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9651. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9652. echo $ECHO_N "(cached) $ECHO_C" >&6
  9653. else
  9654. if test "$cross_compiling" = yes; then
  9655. ac_cv_func_stat_empty_string_bug=yes
  9656. else
  9657. cat >conftest.$ac_ext <<_ACEOF
  9658. /* confdefs.h. */
  9659. _ACEOF
  9660. cat confdefs.h >>conftest.$ac_ext
  9661. cat >>conftest.$ac_ext <<_ACEOF
  9662. /* end confdefs.h. */
  9663. $ac_includes_default
  9664. int
  9665. main ()
  9666. {
  9667. struct stat sbuf;
  9668. exit (stat ("", &sbuf) ? 1 : 0);
  9669. ;
  9670. return 0;
  9671. }
  9672. _ACEOF
  9673. rm -f conftest$ac_exeext
  9674. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9675. (eval $ac_link) 2>&5
  9676. ac_status=$?
  9677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9678. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9679. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9680. (eval $ac_try) 2>&5
  9681. ac_status=$?
  9682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9683. (exit $ac_status); }; }; then
  9684. ac_cv_func_stat_empty_string_bug=yes
  9685. else
  9686. echo "$as_me: program exited with status $ac_status" >&5
  9687. echo "$as_me: failed program was:" >&5
  9688. sed 's/^/| /' conftest.$ac_ext >&5
  9689. ( exit $ac_status )
  9690. ac_cv_func_stat_empty_string_bug=no
  9691. fi
  9692. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9693. fi
  9694. fi
  9695. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9696. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9697. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9698. case $LIBOBJS in
  9699. "stat.$ac_objext" | \
  9700. *" stat.$ac_objext" | \
  9701. "stat.$ac_objext "* | \
  9702. *" stat.$ac_objext "* ) ;;
  9703. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9704. esac
  9705. cat >>confdefs.h <<_ACEOF
  9706. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9707. _ACEOF
  9708. fi
  9709. for ac_func in vprintf
  9710. do
  9711. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9712. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9713. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9714. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9715. echo $ECHO_N "(cached) $ECHO_C" >&6
  9716. else
  9717. cat >conftest.$ac_ext <<_ACEOF
  9718. /* confdefs.h. */
  9719. _ACEOF
  9720. cat confdefs.h >>conftest.$ac_ext
  9721. cat >>conftest.$ac_ext <<_ACEOF
  9722. /* end confdefs.h. */
  9723. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9724. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9725. #define $ac_func innocuous_$ac_func
  9726. /* System header to define __stub macros and hopefully few prototypes,
  9727. which can conflict with char $ac_func (); below.
  9728. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9729. <limits.h> exists even on freestanding compilers. */
  9730. #ifdef __STDC__
  9731. # include <limits.h>
  9732. #else
  9733. # include <assert.h>
  9734. #endif
  9735. #undef $ac_func
  9736. /* Override any gcc2 internal prototype to avoid an error. */
  9737. #ifdef __cplusplus
  9738. extern "C"
  9739. {
  9740. #endif
  9741. /* We use char because int might match the return type of a gcc2
  9742. builtin and then its argument prototype would still apply. */
  9743. char $ac_func ();
  9744. /* The GNU C library defines this for functions which it implements
  9745. to always fail with ENOSYS. Some functions are actually named
  9746. something starting with __ and the normal name is an alias. */
  9747. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9748. choke me
  9749. #else
  9750. char (*f) () = $ac_func;
  9751. #endif
  9752. #ifdef __cplusplus
  9753. }
  9754. #endif
  9755. int
  9756. main ()
  9757. {
  9758. return f != $ac_func;
  9759. ;
  9760. return 0;
  9761. }
  9762. _ACEOF
  9763. rm -f conftest.$ac_objext conftest$ac_exeext
  9764. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9765. (eval $ac_link) 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); } &&
  9772. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9773. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9774. (eval $ac_try) 2>&5
  9775. ac_status=$?
  9776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9777. (exit $ac_status); }; } &&
  9778. { ac_try='test -s conftest$ac_exeext'
  9779. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9780. (eval $ac_try) 2>&5
  9781. ac_status=$?
  9782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9783. (exit $ac_status); }; }; then
  9784. eval "$as_ac_var=yes"
  9785. else
  9786. echo "$as_me: failed program was:" >&5
  9787. sed 's/^/| /' conftest.$ac_ext >&5
  9788. eval "$as_ac_var=no"
  9789. fi
  9790. rm -f conftest.err conftest.$ac_objext \
  9791. conftest$ac_exeext conftest.$ac_ext
  9792. fi
  9793. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9794. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9795. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9796. cat >>confdefs.h <<_ACEOF
  9797. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9798. _ACEOF
  9799. echo "$as_me:$LINENO: checking for _doprnt" >&5
  9800. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  9801. if test "${ac_cv_func__doprnt+set}" = set; then
  9802. echo $ECHO_N "(cached) $ECHO_C" >&6
  9803. else
  9804. cat >conftest.$ac_ext <<_ACEOF
  9805. /* confdefs.h. */
  9806. _ACEOF
  9807. cat confdefs.h >>conftest.$ac_ext
  9808. cat >>conftest.$ac_ext <<_ACEOF
  9809. /* end confdefs.h. */
  9810. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  9811. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9812. #define _doprnt innocuous__doprnt
  9813. /* System header to define __stub macros and hopefully few prototypes,
  9814. which can conflict with char _doprnt (); below.
  9815. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9816. <limits.h> exists even on freestanding compilers. */
  9817. #ifdef __STDC__
  9818. # include <limits.h>
  9819. #else
  9820. # include <assert.h>
  9821. #endif
  9822. #undef _doprnt
  9823. /* Override any gcc2 internal prototype to avoid an error. */
  9824. #ifdef __cplusplus
  9825. extern "C"
  9826. {
  9827. #endif
  9828. /* We use char because int might match the return type of a gcc2
  9829. builtin and then its argument prototype would still apply. */
  9830. char _doprnt ();
  9831. /* The GNU C library defines this for functions which it implements
  9832. to always fail with ENOSYS. Some functions are actually named
  9833. something starting with __ and the normal name is an alias. */
  9834. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  9835. choke me
  9836. #else
  9837. char (*f) () = _doprnt;
  9838. #endif
  9839. #ifdef __cplusplus
  9840. }
  9841. #endif
  9842. int
  9843. main ()
  9844. {
  9845. return f != _doprnt;
  9846. ;
  9847. return 0;
  9848. }
  9849. _ACEOF
  9850. rm -f conftest.$ac_objext conftest$ac_exeext
  9851. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9852. (eval $ac_link) 2>conftest.er1
  9853. ac_status=$?
  9854. grep -v '^ *+' conftest.er1 >conftest.err
  9855. rm -f conftest.er1
  9856. cat conftest.err >&5
  9857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9858. (exit $ac_status); } &&
  9859. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9861. (eval $ac_try) 2>&5
  9862. ac_status=$?
  9863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9864. (exit $ac_status); }; } &&
  9865. { ac_try='test -s conftest$ac_exeext'
  9866. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9867. (eval $ac_try) 2>&5
  9868. ac_status=$?
  9869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9870. (exit $ac_status); }; }; then
  9871. ac_cv_func__doprnt=yes
  9872. else
  9873. echo "$as_me: failed program was:" >&5
  9874. sed 's/^/| /' conftest.$ac_ext >&5
  9875. ac_cv_func__doprnt=no
  9876. fi
  9877. rm -f conftest.err conftest.$ac_objext \
  9878. conftest$ac_exeext conftest.$ac_ext
  9879. fi
  9880. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  9881. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  9882. if test $ac_cv_func__doprnt = yes; then
  9883. cat >>confdefs.h <<\_ACEOF
  9884. #define HAVE_DOPRNT 1
  9885. _ACEOF
  9886. fi
  9887. fi
  9888. done
  9889. 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
  9890. do
  9891. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9892. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9893. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9894. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9895. echo $ECHO_N "(cached) $ECHO_C" >&6
  9896. else
  9897. cat >conftest.$ac_ext <<_ACEOF
  9898. /* confdefs.h. */
  9899. _ACEOF
  9900. cat confdefs.h >>conftest.$ac_ext
  9901. cat >>conftest.$ac_ext <<_ACEOF
  9902. /* end confdefs.h. */
  9903. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9904. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9905. #define $ac_func innocuous_$ac_func
  9906. /* System header to define __stub macros and hopefully few prototypes,
  9907. which can conflict with char $ac_func (); below.
  9908. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9909. <limits.h> exists even on freestanding compilers. */
  9910. #ifdef __STDC__
  9911. # include <limits.h>
  9912. #else
  9913. # include <assert.h>
  9914. #endif
  9915. #undef $ac_func
  9916. /* Override any gcc2 internal prototype to avoid an error. */
  9917. #ifdef __cplusplus
  9918. extern "C"
  9919. {
  9920. #endif
  9921. /* We use char because int might match the return type of a gcc2
  9922. builtin and then its argument prototype would still apply. */
  9923. char $ac_func ();
  9924. /* The GNU C library defines this for functions which it implements
  9925. to always fail with ENOSYS. Some functions are actually named
  9926. something starting with __ and the normal name is an alias. */
  9927. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9928. choke me
  9929. #else
  9930. char (*f) () = $ac_func;
  9931. #endif
  9932. #ifdef __cplusplus
  9933. }
  9934. #endif
  9935. int
  9936. main ()
  9937. {
  9938. return f != $ac_func;
  9939. ;
  9940. return 0;
  9941. }
  9942. _ACEOF
  9943. rm -f conftest.$ac_objext conftest$ac_exeext
  9944. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9945. (eval $ac_link) 2>conftest.er1
  9946. ac_status=$?
  9947. grep -v '^ *+' conftest.er1 >conftest.err
  9948. rm -f conftest.er1
  9949. cat conftest.err >&5
  9950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9951. (exit $ac_status); } &&
  9952. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9953. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9954. (eval $ac_try) 2>&5
  9955. ac_status=$?
  9956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9957. (exit $ac_status); }; } &&
  9958. { ac_try='test -s conftest$ac_exeext'
  9959. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9960. (eval $ac_try) 2>&5
  9961. ac_status=$?
  9962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9963. (exit $ac_status); }; }; then
  9964. eval "$as_ac_var=yes"
  9965. else
  9966. echo "$as_me: failed program was:" >&5
  9967. sed 's/^/| /' conftest.$ac_ext >&5
  9968. eval "$as_ac_var=no"
  9969. fi
  9970. rm -f conftest.err conftest.$ac_objext \
  9971. conftest$ac_exeext conftest.$ac_ext
  9972. fi
  9973. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9974. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9975. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9976. cat >>confdefs.h <<_ACEOF
  9977. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9978. _ACEOF
  9979. fi
  9980. done
  9981. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile"
  9982. cat >confcache <<\_ACEOF
  9983. # This file is a shell script that caches the results of configure
  9984. # tests run on this system so they can be shared between configure
  9985. # scripts and configure runs, see configure's option --config-cache.
  9986. # It is not useful on other systems. If it contains results you don't
  9987. # want to keep, you may remove or edit it.
  9988. #
  9989. # config.status only pays attention to the cache file if you give it
  9990. # the --recheck option to rerun configure.
  9991. #
  9992. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9993. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9994. # following values.
  9995. _ACEOF
  9996. # The following way of writing the cache mishandles newlines in values,
  9997. # but we know of no workaround that is simple, portable, and efficient.
  9998. # So, don't put newlines in cache variables' values.
  9999. # Ultrix sh set writes to stderr and can't be redirected directly,
  10000. # and sets the high bit in the cache file unless we assign to the vars.
  10001. {
  10002. (set) 2>&1 |
  10003. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10004. *ac_space=\ *)
  10005. # `set' does not quote correctly, so add quotes (double-quote
  10006. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10007. sed -n \
  10008. "s/'/'\\\\''/g;
  10009. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10010. ;;
  10011. *)
  10012. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10013. sed -n \
  10014. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10015. ;;
  10016. esac;
  10017. } |
  10018. sed '
  10019. t clear
  10020. : clear
  10021. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10022. t end
  10023. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10024. : end' >>confcache
  10025. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10026. if test -w $cache_file; then
  10027. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  10028. cat confcache >$cache_file
  10029. else
  10030. echo "not updating unwritable cache $cache_file"
  10031. fi
  10032. fi
  10033. rm -f confcache
  10034. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10035. # Let make expand exec_prefix.
  10036. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10037. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10038. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10039. # trailing colons and then remove the whole line if VPATH becomes empty
  10040. # (actually we leave an empty line to preserve line numbers).
  10041. if test "x$srcdir" = x.; then
  10042. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10043. s/:*\$(srcdir):*/:/;
  10044. s/:*\${srcdir}:*/:/;
  10045. s/:*@srcdir@:*/:/;
  10046. s/^\([^=]*=[ ]*\):*/\1/;
  10047. s/:*$//;
  10048. s/^[^=]*=[ ]*$//;
  10049. }'
  10050. fi
  10051. DEFS=-DHAVE_CONFIG_H
  10052. ac_libobjs=
  10053. ac_ltlibobjs=
  10054. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10055. # 1. Remove the extension, and $U if already installed.
  10056. ac_i=`echo "$ac_i" |
  10057. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10058. # 2. Add them.
  10059. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10060. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10061. done
  10062. LIBOBJS=$ac_libobjs
  10063. LTLIBOBJS=$ac_ltlibobjs
  10064. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10065. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  10066. Usually this means the macro was only invoked conditionally." >&5
  10067. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  10068. Usually this means the macro was only invoked conditionally." >&2;}
  10069. { (exit 1); exit 1; }; }
  10070. fi
  10071. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  10072. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  10073. Usually this means the macro was only invoked conditionally." >&5
  10074. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  10075. Usually this means the macro was only invoked conditionally." >&2;}
  10076. { (exit 1); exit 1; }; }
  10077. fi
  10078. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10079. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  10080. Usually this means the macro was only invoked conditionally." >&5
  10081. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  10082. Usually this means the macro was only invoked conditionally." >&2;}
  10083. { (exit 1); exit 1; }; }
  10084. fi
  10085. : ${CONFIG_STATUS=./config.status}
  10086. ac_clean_files_save=$ac_clean_files
  10087. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10088. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10089. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10090. cat >$CONFIG_STATUS <<_ACEOF
  10091. #! $SHELL
  10092. # Generated by $as_me.
  10093. # Run this file to recreate the current configuration.
  10094. # Compiler output produced by configure, useful for debugging
  10095. # configure, is in config.log if it exists.
  10096. debug=false
  10097. ac_cs_recheck=false
  10098. ac_cs_silent=false
  10099. SHELL=\${CONFIG_SHELL-$SHELL}
  10100. _ACEOF
  10101. cat >>$CONFIG_STATUS <<\_ACEOF
  10102. ## --------------------- ##
  10103. ## M4sh Initialization. ##
  10104. ## --------------------- ##
  10105. # Be Bourne compatible
  10106. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10107. emulate sh
  10108. NULLCMD=:
  10109. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10110. # is contrary to our usage. Disable this feature.
  10111. alias -g '${1+"$@"}'='"$@"'
  10112. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10113. set -o posix
  10114. fi
  10115. DUALCASE=1; export DUALCASE # for MKS sh
  10116. # Support unset when possible.
  10117. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10118. as_unset=unset
  10119. else
  10120. as_unset=false
  10121. fi
  10122. # Work around bugs in pre-3.0 UWIN ksh.
  10123. $as_unset ENV MAIL MAILPATH
  10124. PS1='$ '
  10125. PS2='> '
  10126. PS4='+ '
  10127. # NLS nuisances.
  10128. for as_var in \
  10129. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10130. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10131. LC_TELEPHONE LC_TIME
  10132. do
  10133. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10134. eval $as_var=C; export $as_var
  10135. else
  10136. $as_unset $as_var
  10137. fi
  10138. done
  10139. # Required to use basename.
  10140. if expr a : '\(a\)' >/dev/null 2>&1; then
  10141. as_expr=expr
  10142. else
  10143. as_expr=false
  10144. fi
  10145. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  10146. as_basename=basename
  10147. else
  10148. as_basename=false
  10149. fi
  10150. # Name of the executable.
  10151. as_me=`$as_basename "$0" ||
  10152. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10153. X"$0" : 'X\(//\)$' \| \
  10154. X"$0" : 'X\(/\)$' \| \
  10155. . : '\(.\)' 2>/dev/null ||
  10156. echo X/"$0" |
  10157. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  10158. /^X\/\(\/\/\)$/{ s//\1/; q; }
  10159. /^X\/\(\/\).*/{ s//\1/; q; }
  10160. s/.*/./; q'`
  10161. # PATH needs CR, and LINENO needs CR and PATH.
  10162. # Avoid depending upon Character Ranges.
  10163. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10164. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10165. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10166. as_cr_digits='0123456789'
  10167. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10168. # The user is always right.
  10169. if test "${PATH_SEPARATOR+set}" != set; then
  10170. echo "#! /bin/sh" >conf$$.sh
  10171. echo "exit 0" >>conf$$.sh
  10172. chmod +x conf$$.sh
  10173. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10174. PATH_SEPARATOR=';'
  10175. else
  10176. PATH_SEPARATOR=:
  10177. fi
  10178. rm -f conf$$.sh
  10179. fi
  10180. as_lineno_1=$LINENO
  10181. as_lineno_2=$LINENO
  10182. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10183. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10184. test "x$as_lineno_3" = "x$as_lineno_2" || {
  10185. # Find who we are. Look in the path if we contain no path at all
  10186. # relative or not.
  10187. case $0 in
  10188. *[\\/]* ) as_myself=$0 ;;
  10189. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10190. for as_dir in $PATH
  10191. do
  10192. IFS=$as_save_IFS
  10193. test -z "$as_dir" && as_dir=.
  10194. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10195. done
  10196. ;;
  10197. esac
  10198. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10199. # in which case we are not to be found in the path.
  10200. if test "x$as_myself" = x; then
  10201. as_myself=$0
  10202. fi
  10203. if test ! -f "$as_myself"; then
  10204. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  10205. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  10206. { (exit 1); exit 1; }; }
  10207. fi
  10208. case $CONFIG_SHELL in
  10209. '')
  10210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10211. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  10212. do
  10213. IFS=$as_save_IFS
  10214. test -z "$as_dir" && as_dir=.
  10215. for as_base in sh bash ksh sh5; do
  10216. case $as_dir in
  10217. /*)
  10218. if ("$as_dir/$as_base" -c '
  10219. as_lineno_1=$LINENO
  10220. as_lineno_2=$LINENO
  10221. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10222. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10223. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  10224. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  10225. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  10226. CONFIG_SHELL=$as_dir/$as_base
  10227. export CONFIG_SHELL
  10228. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  10229. fi;;
  10230. esac
  10231. done
  10232. done
  10233. ;;
  10234. esac
  10235. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10236. # uniformly replaced by the line number. The first 'sed' inserts a
  10237. # line-number line before each line; the second 'sed' does the real
  10238. # work. The second script uses 'N' to pair each line-number line
  10239. # with the numbered line, and appends trailing '-' during
  10240. # substitution so that $LINENO is not a special case at line end.
  10241. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10242. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  10243. sed '=' <$as_myself |
  10244. sed '
  10245. N
  10246. s,$,-,
  10247. : loop
  10248. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  10249. t loop
  10250. s,-$,,
  10251. s,^['$as_cr_digits']*\n,,
  10252. ' >$as_me.lineno &&
  10253. chmod +x $as_me.lineno ||
  10254. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  10255. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  10256. { (exit 1); exit 1; }; }
  10257. # Don't try to exec as it changes $[0], causing all sort of problems
  10258. # (the dirname of $[0] is not the place where we might find the
  10259. # original and so on. Autoconf is especially sensible to this).
  10260. . ./$as_me.lineno
  10261. # Exit status is that of the last command.
  10262. exit
  10263. }
  10264. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  10265. *c*,-n*) ECHO_N= ECHO_C='
  10266. ' ECHO_T=' ' ;;
  10267. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  10268. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  10269. esac
  10270. if expr a : '\(a\)' >/dev/null 2>&1; then
  10271. as_expr=expr
  10272. else
  10273. as_expr=false
  10274. fi
  10275. rm -f conf$$ conf$$.exe conf$$.file
  10276. echo >conf$$.file
  10277. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10278. # We could just check for DJGPP; but this test a) works b) is more generic
  10279. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  10280. if test -f conf$$.exe; then
  10281. # Don't use ln at all; we don't have any links
  10282. as_ln_s='cp -p'
  10283. else
  10284. as_ln_s='ln -s'
  10285. fi
  10286. elif ln conf$$.file conf$$ 2>/dev/null; then
  10287. as_ln_s=ln
  10288. else
  10289. as_ln_s='cp -p'
  10290. fi
  10291. rm -f conf$$ conf$$.exe conf$$.file
  10292. if mkdir -p . 2>/dev/null; then
  10293. as_mkdir_p=:
  10294. else
  10295. test -d ./-p && rmdir ./-p
  10296. as_mkdir_p=false
  10297. fi
  10298. as_executable_p="test -f"
  10299. # Sed expression to map a string onto a valid CPP name.
  10300. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10301. # Sed expression to map a string onto a valid variable name.
  10302. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10303. # IFS
  10304. # We need space, tab and new line, in precisely that order.
  10305. as_nl='
  10306. '
  10307. IFS=" $as_nl"
  10308. # CDPATH.
  10309. $as_unset CDPATH
  10310. exec 6>&1
  10311. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  10312. # report actual input values of CONFIG_FILES etc. instead of their
  10313. # values after options handling. Logging --version etc. is OK.
  10314. exec 5>>config.log
  10315. {
  10316. echo
  10317. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10318. ## Running $as_me. ##
  10319. _ASBOX
  10320. } >&5
  10321. cat >&5 <<_CSEOF
  10322. This file was extended by aria2c $as_me 0.5.2, which was
  10323. generated by GNU Autoconf 2.59. Invocation command line was
  10324. CONFIG_FILES = $CONFIG_FILES
  10325. CONFIG_HEADERS = $CONFIG_HEADERS
  10326. CONFIG_LINKS = $CONFIG_LINKS
  10327. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10328. $ $0 $@
  10329. _CSEOF
  10330. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  10331. echo >&5
  10332. _ACEOF
  10333. # Files that config.status was made for.
  10334. if test -n "$ac_config_files"; then
  10335. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  10336. fi
  10337. if test -n "$ac_config_headers"; then
  10338. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  10339. fi
  10340. if test -n "$ac_config_links"; then
  10341. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  10342. fi
  10343. if test -n "$ac_config_commands"; then
  10344. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  10345. fi
  10346. cat >>$CONFIG_STATUS <<\_ACEOF
  10347. ac_cs_usage="\
  10348. \`$as_me' instantiates files from templates according to the
  10349. current configuration.
  10350. Usage: $0 [OPTIONS] [FILE]...
  10351. -h, --help print this help, then exit
  10352. -V, --version print version number, then exit
  10353. -q, --quiet do not print progress messages
  10354. -d, --debug don't remove temporary files
  10355. --recheck update $as_me by reconfiguring in the same conditions
  10356. --file=FILE[:TEMPLATE]
  10357. instantiate the configuration file FILE
  10358. --header=FILE[:TEMPLATE]
  10359. instantiate the configuration header FILE
  10360. Configuration files:
  10361. $config_files
  10362. Configuration headers:
  10363. $config_headers
  10364. Configuration commands:
  10365. $config_commands
  10366. Report bugs to <bug-autoconf@gnu.org>."
  10367. _ACEOF
  10368. cat >>$CONFIG_STATUS <<_ACEOF
  10369. ac_cs_version="\\
  10370. aria2c config.status 0.5.2
  10371. configured by $0, generated by GNU Autoconf 2.59,
  10372. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  10373. Copyright (C) 2003 Free Software Foundation, Inc.
  10374. This config.status script is free software; the Free Software Foundation
  10375. gives unlimited permission to copy, distribute and modify it."
  10376. srcdir=$srcdir
  10377. INSTALL="$INSTALL"
  10378. _ACEOF
  10379. cat >>$CONFIG_STATUS <<\_ACEOF
  10380. # If no file are specified by the user, then we need to provide default
  10381. # value. By we need to know if files were specified by the user.
  10382. ac_need_defaults=:
  10383. while test $# != 0
  10384. do
  10385. case $1 in
  10386. --*=*)
  10387. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  10388. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  10389. ac_shift=:
  10390. ;;
  10391. -*)
  10392. ac_option=$1
  10393. ac_optarg=$2
  10394. ac_shift=shift
  10395. ;;
  10396. *) # This is not an option, so the user has probably given explicit
  10397. # arguments.
  10398. ac_option=$1
  10399. ac_need_defaults=false;;
  10400. esac
  10401. case $ac_option in
  10402. # Handling of the options.
  10403. _ACEOF
  10404. cat >>$CONFIG_STATUS <<\_ACEOF
  10405. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10406. ac_cs_recheck=: ;;
  10407. --version | --vers* | -V )
  10408. echo "$ac_cs_version"; exit 0 ;;
  10409. --he | --h)
  10410. # Conflict between --help and --header
  10411. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  10412. Try \`$0 --help' for more information." >&5
  10413. echo "$as_me: error: ambiguous option: $1
  10414. Try \`$0 --help' for more information." >&2;}
  10415. { (exit 1); exit 1; }; };;
  10416. --help | --hel | -h )
  10417. echo "$ac_cs_usage"; exit 0 ;;
  10418. --debug | --d* | -d )
  10419. debug=: ;;
  10420. --file | --fil | --fi | --f )
  10421. $ac_shift
  10422. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  10423. ac_need_defaults=false;;
  10424. --header | --heade | --head | --hea )
  10425. $ac_shift
  10426. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  10427. ac_need_defaults=false;;
  10428. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10429. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10430. ac_cs_silent=: ;;
  10431. # This is an error.
  10432. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  10433. Try \`$0 --help' for more information." >&5
  10434. echo "$as_me: error: unrecognized option: $1
  10435. Try \`$0 --help' for more information." >&2;}
  10436. { (exit 1); exit 1; }; } ;;
  10437. *) ac_config_targets="$ac_config_targets $1" ;;
  10438. esac
  10439. shift
  10440. done
  10441. ac_configure_extra_args=
  10442. if $ac_cs_silent; then
  10443. exec 6>/dev/null
  10444. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10445. fi
  10446. _ACEOF
  10447. cat >>$CONFIG_STATUS <<_ACEOF
  10448. if \$ac_cs_recheck; then
  10449. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  10450. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10451. fi
  10452. _ACEOF
  10453. cat >>$CONFIG_STATUS <<_ACEOF
  10454. #
  10455. # INIT-COMMANDS section.
  10456. #
  10457. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10458. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  10459. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  10460. # from automake.
  10461. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  10462. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  10463. LINGUAS="${LINGUAS-%UNSET%}"
  10464. _ACEOF
  10465. cat >>$CONFIG_STATUS <<\_ACEOF
  10466. for ac_config_target in $ac_config_targets
  10467. do
  10468. case "$ac_config_target" in
  10469. # Handling of arguments.
  10470. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10471. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10472. "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  10473. "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  10474. "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  10475. "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  10476. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10477. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  10478. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10479. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10480. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10481. { (exit 1); exit 1; }; };;
  10482. esac
  10483. done
  10484. # If the user did not use the arguments to specify the items to instantiate,
  10485. # then the envvar interface is used. Set only those that are not.
  10486. # We use the long form for the default assignment because of an extremely
  10487. # bizarre bug on SunOS 4.1.3.
  10488. if $ac_need_defaults; then
  10489. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10490. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10491. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10492. fi
  10493. # Have a temporary directory for convenience. Make it in the build tree
  10494. # simply because there is no reason to put it here, and in addition,
  10495. # creating and moving files from /tmp can sometimes cause problems.
  10496. # Create a temporary directory, and hook for its removal unless debugging.
  10497. $debug ||
  10498. {
  10499. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  10500. trap '{ (exit 1); exit 1; }' 1 2 13 15
  10501. }
  10502. # Create a (secure) tmp directory for tmp files.
  10503. {
  10504. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  10505. test -n "$tmp" && test -d "$tmp"
  10506. } ||
  10507. {
  10508. tmp=./confstat$$-$RANDOM
  10509. (umask 077 && mkdir $tmp)
  10510. } ||
  10511. {
  10512. echo "$me: cannot create a temporary directory in ." >&2
  10513. { (exit 1); exit 1; }
  10514. }
  10515. _ACEOF
  10516. cat >>$CONFIG_STATUS <<_ACEOF
  10517. #
  10518. # CONFIG_FILES section.
  10519. #
  10520. # No need to generate the scripts if there are no CONFIG_FILES.
  10521. # This happens for instance when ./config.status config.h
  10522. if test -n "\$CONFIG_FILES"; then
  10523. # Protect against being on the right side of a sed subst in config.status.
  10524. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  10525. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  10526. s,@SHELL@,$SHELL,;t t
  10527. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  10528. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  10529. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  10530. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  10531. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  10532. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  10533. s,@exec_prefix@,$exec_prefix,;t t
  10534. s,@prefix@,$prefix,;t t
  10535. s,@program_transform_name@,$program_transform_name,;t t
  10536. s,@bindir@,$bindir,;t t
  10537. s,@sbindir@,$sbindir,;t t
  10538. s,@libexecdir@,$libexecdir,;t t
  10539. s,@datadir@,$datadir,;t t
  10540. s,@sysconfdir@,$sysconfdir,;t t
  10541. s,@sharedstatedir@,$sharedstatedir,;t t
  10542. s,@localstatedir@,$localstatedir,;t t
  10543. s,@libdir@,$libdir,;t t
  10544. s,@includedir@,$includedir,;t t
  10545. s,@oldincludedir@,$oldincludedir,;t t
  10546. s,@infodir@,$infodir,;t t
  10547. s,@mandir@,$mandir,;t t
  10548. s,@build_alias@,$build_alias,;t t
  10549. s,@host_alias@,$host_alias,;t t
  10550. s,@target_alias@,$target_alias,;t t
  10551. s,@DEFS@,$DEFS,;t t
  10552. s,@ECHO_C@,$ECHO_C,;t t
  10553. s,@ECHO_N@,$ECHO_N,;t t
  10554. s,@ECHO_T@,$ECHO_T,;t t
  10555. s,@LIBS@,$LIBS,;t t
  10556. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  10557. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  10558. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  10559. s,@CYGPATH_W@,$CYGPATH_W,;t t
  10560. s,@PACKAGE@,$PACKAGE,;t t
  10561. s,@VERSION@,$VERSION,;t t
  10562. s,@ACLOCAL@,$ACLOCAL,;t t
  10563. s,@AUTOCONF@,$AUTOCONF,;t t
  10564. s,@AUTOMAKE@,$AUTOMAKE,;t t
  10565. s,@AUTOHEADER@,$AUTOHEADER,;t t
  10566. s,@MAKEINFO@,$MAKEINFO,;t t
  10567. s,@install_sh@,$install_sh,;t t
  10568. s,@STRIP@,$STRIP,;t t
  10569. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  10570. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  10571. s,@mkdir_p@,$mkdir_p,;t t
  10572. s,@AWK@,$AWK,;t t
  10573. s,@SET_MAKE@,$SET_MAKE,;t t
  10574. s,@am__leading_dot@,$am__leading_dot,;t t
  10575. s,@AMTAR@,$AMTAR,;t t
  10576. s,@am__tar@,$am__tar,;t t
  10577. s,@am__untar@,$am__untar,;t t
  10578. s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
  10579. s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
  10580. s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
  10581. s,@localedir@,$localedir,;t t
  10582. s,@CXX@,$CXX,;t t
  10583. s,@CXXFLAGS@,$CXXFLAGS,;t t
  10584. s,@LDFLAGS@,$LDFLAGS,;t t
  10585. s,@CPPFLAGS@,$CPPFLAGS,;t t
  10586. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  10587. s,@EXEEXT@,$EXEEXT,;t t
  10588. s,@OBJEXT@,$OBJEXT,;t t
  10589. s,@DEPDIR@,$DEPDIR,;t t
  10590. s,@am__include@,$am__include,;t t
  10591. s,@am__quote@,$am__quote,;t t
  10592. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  10593. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  10594. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  10595. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  10596. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  10597. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  10598. s,@CC@,$CC,;t t
  10599. s,@CFLAGS@,$CFLAGS,;t t
  10600. s,@ac_ct_CC@,$ac_ct_CC,;t t
  10601. s,@CCDEPMODE@,$CCDEPMODE,;t t
  10602. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  10603. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  10604. s,@RANLIB@,$RANLIB,;t t
  10605. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  10606. s,@YACC@,$YACC,;t t
  10607. s,@LIBGNUTLS_CONFIG@,$LIBGNUTLS_CONFIG,;t t
  10608. s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
  10609. s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
  10610. s,@LIBGCRYPT_CONFIG@,$LIBGCRYPT_CONFIG,;t t
  10611. s,@LIBGCRYPT_CFLAGS@,$LIBGCRYPT_CFLAGS,;t t
  10612. s,@LIBGCRYPT_LIBS@,$LIBGCRYPT_LIBS,;t t
  10613. s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
  10614. s,@OPENSSL_CFLAGS@,$OPENSSL_CFLAGS,;t t
  10615. s,@ALLOCA@,$ALLOCA,;t t
  10616. s,@CPP@,$CPP,;t t
  10617. s,@EGREP@,$EGREP,;t t
  10618. s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
  10619. s,@USE_NLS@,$USE_NLS,;t t
  10620. s,@MSGFMT@,$MSGFMT,;t t
  10621. s,@GMSGFMT@,$GMSGFMT,;t t
  10622. s,@XGETTEXT@,$XGETTEXT,;t t
  10623. s,@MSGMERGE@,$MSGMERGE,;t t
  10624. s,@build@,$build,;t t
  10625. s,@build_cpu@,$build_cpu,;t t
  10626. s,@build_vendor@,$build_vendor,;t t
  10627. s,@build_os@,$build_os,;t t
  10628. s,@host@,$host,;t t
  10629. s,@host_cpu@,$host_cpu,;t t
  10630. s,@host_vendor@,$host_vendor,;t t
  10631. s,@host_os@,$host_os,;t t
  10632. s,@GLIBC21@,$GLIBC21,;t t
  10633. s,@LIBICONV@,$LIBICONV,;t t
  10634. s,@LTLIBICONV@,$LTLIBICONV,;t t
  10635. s,@INTLBISON@,$INTLBISON,;t t
  10636. s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
  10637. s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
  10638. s,@CATOBJEXT@,$CATOBJEXT,;t t
  10639. s,@DATADIRNAME@,$DATADIRNAME,;t t
  10640. s,@INSTOBJEXT@,$INSTOBJEXT,;t t
  10641. s,@GENCAT@,$GENCAT,;t t
  10642. s,@INTLOBJS@,$INTLOBJS,;t t
  10643. s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
  10644. s,@INTLLIBS@,$INTLLIBS,;t t
  10645. s,@LIBINTL@,$LIBINTL,;t t
  10646. s,@LTLIBINTL@,$LTLIBINTL,;t t
  10647. s,@POSUB@,$POSUB,;t t
  10648. s,@LIBOBJS@,$LIBOBJS,;t t
  10649. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  10650. CEOF
  10651. _ACEOF
  10652. cat >>$CONFIG_STATUS <<\_ACEOF
  10653. # Split the substitutions into bite-sized pieces for seds with
  10654. # small command number limits, like on Digital OSF/1 and HP-UX.
  10655. ac_max_sed_lines=48
  10656. ac_sed_frag=1 # Number of current file.
  10657. ac_beg=1 # First line for current file.
  10658. ac_end=$ac_max_sed_lines # Line after last line for current file.
  10659. ac_more_lines=:
  10660. ac_sed_cmds=
  10661. while $ac_more_lines; do
  10662. if test $ac_beg -gt 1; then
  10663. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10664. else
  10665. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10666. fi
  10667. if test ! -s $tmp/subs.frag; then
  10668. ac_more_lines=false
  10669. else
  10670. # The purpose of the label and of the branching condition is to
  10671. # speed up the sed processing (if there are no `@' at all, there
  10672. # is no need to browse any of the substitutions).
  10673. # These are the two extra sed commands mentioned above.
  10674. (echo ':t
  10675. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  10676. if test -z "$ac_sed_cmds"; then
  10677. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  10678. else
  10679. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  10680. fi
  10681. ac_sed_frag=`expr $ac_sed_frag + 1`
  10682. ac_beg=$ac_end
  10683. ac_end=`expr $ac_end + $ac_max_sed_lines`
  10684. fi
  10685. done
  10686. if test -z "$ac_sed_cmds"; then
  10687. ac_sed_cmds=cat
  10688. fi
  10689. fi # test -n "$CONFIG_FILES"
  10690. _ACEOF
  10691. cat >>$CONFIG_STATUS <<\_ACEOF
  10692. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  10693. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10694. case $ac_file in
  10695. - | *:- | *:-:* ) # input from stdin
  10696. cat >$tmp/stdin
  10697. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10698. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10699. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10700. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10701. * ) ac_file_in=$ac_file.in ;;
  10702. esac
  10703. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  10704. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10705. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10706. X"$ac_file" : 'X\(//\)[^/]' \| \
  10707. X"$ac_file" : 'X\(//\)$' \| \
  10708. X"$ac_file" : 'X\(/\)' \| \
  10709. . : '\(.\)' 2>/dev/null ||
  10710. echo X"$ac_file" |
  10711. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10712. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10713. /^X\(\/\/\)$/{ s//\1/; q; }
  10714. /^X\(\/\).*/{ s//\1/; q; }
  10715. s/.*/./; q'`
  10716. { if $as_mkdir_p; then
  10717. mkdir -p "$ac_dir"
  10718. else
  10719. as_dir="$ac_dir"
  10720. as_dirs=
  10721. while test ! -d "$as_dir"; do
  10722. as_dirs="$as_dir $as_dirs"
  10723. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10724. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10725. X"$as_dir" : 'X\(//\)[^/]' \| \
  10726. X"$as_dir" : 'X\(//\)$' \| \
  10727. X"$as_dir" : 'X\(/\)' \| \
  10728. . : '\(.\)' 2>/dev/null ||
  10729. echo X"$as_dir" |
  10730. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10731. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10732. /^X\(\/\/\)$/{ s//\1/; q; }
  10733. /^X\(\/\).*/{ s//\1/; q; }
  10734. s/.*/./; q'`
  10735. done
  10736. test ! -n "$as_dirs" || mkdir $as_dirs
  10737. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  10738. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  10739. { (exit 1); exit 1; }; }; }
  10740. ac_builddir=.
  10741. if test "$ac_dir" != .; then
  10742. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  10743. # A "../" for each directory in $ac_dir_suffix.
  10744. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  10745. else
  10746. ac_dir_suffix= ac_top_builddir=
  10747. fi
  10748. case $srcdir in
  10749. .) # No --srcdir option. We are building in place.
  10750. ac_srcdir=.
  10751. if test -z "$ac_top_builddir"; then
  10752. ac_top_srcdir=.
  10753. else
  10754. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  10755. fi ;;
  10756. [\\/]* | ?:[\\/]* ) # Absolute path.
  10757. ac_srcdir=$srcdir$ac_dir_suffix;
  10758. ac_top_srcdir=$srcdir ;;
  10759. *) # Relative path.
  10760. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  10761. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  10762. esac
  10763. # Do not use `cd foo && pwd` to compute absolute paths, because
  10764. # the directories may not exist.
  10765. case `pwd` in
  10766. .) ac_abs_builddir="$ac_dir";;
  10767. *)
  10768. case "$ac_dir" in
  10769. .) ac_abs_builddir=`pwd`;;
  10770. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  10771. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  10772. esac;;
  10773. esac
  10774. case $ac_abs_builddir in
  10775. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  10776. *)
  10777. case ${ac_top_builddir}. in
  10778. .) ac_abs_top_builddir=$ac_abs_builddir;;
  10779. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  10780. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  10781. esac;;
  10782. esac
  10783. case $ac_abs_builddir in
  10784. .) ac_abs_srcdir=$ac_srcdir;;
  10785. *)
  10786. case $ac_srcdir in
  10787. .) ac_abs_srcdir=$ac_abs_builddir;;
  10788. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  10789. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  10790. esac;;
  10791. esac
  10792. case $ac_abs_builddir in
  10793. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  10794. *)
  10795. case $ac_top_srcdir in
  10796. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  10797. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  10798. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  10799. esac;;
  10800. esac
  10801. case $INSTALL in
  10802. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10803. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  10804. esac
  10805. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10806. # use $as_me), people would be surprised to read:
  10807. # /* config.h. Generated by config.status. */
  10808. if test x"$ac_file" = x-; then
  10809. configure_input=
  10810. else
  10811. configure_input="$ac_file. "
  10812. fi
  10813. configure_input=$configure_input"Generated from `echo $ac_file_in |
  10814. sed 's,.*/,,'` by configure."
  10815. # First look for the input files in the build tree, otherwise in the
  10816. # src tree.
  10817. ac_file_inputs=`IFS=:
  10818. for f in $ac_file_in; do
  10819. case $f in
  10820. -) echo $tmp/stdin ;;
  10821. [\\/$]*)
  10822. # Absolute (can't be DOS-style, as IFS=:)
  10823. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10824. echo "$as_me: error: cannot find input file: $f" >&2;}
  10825. { (exit 1); exit 1; }; }
  10826. echo "$f";;
  10827. *) # Relative
  10828. if test -f "$f"; then
  10829. # Build tree
  10830. echo "$f"
  10831. elif test -f "$srcdir/$f"; then
  10832. # Source tree
  10833. echo "$srcdir/$f"
  10834. else
  10835. # /dev/null tree
  10836. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10837. echo "$as_me: error: cannot find input file: $f" >&2;}
  10838. { (exit 1); exit 1; }; }
  10839. fi;;
  10840. esac
  10841. done` || { (exit 1); exit 1; }
  10842. if test x"$ac_file" != x-; then
  10843. { echo "$as_me:$LINENO: creating $ac_file" >&5
  10844. echo "$as_me: creating $ac_file" >&6;}
  10845. rm -f "$ac_file"
  10846. fi
  10847. _ACEOF
  10848. cat >>$CONFIG_STATUS <<_ACEOF
  10849. sed "$ac_vpsub
  10850. $extrasub
  10851. _ACEOF
  10852. cat >>$CONFIG_STATUS <<\_ACEOF
  10853. :t
  10854. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10855. s,@configure_input@,$configure_input,;t t
  10856. s,@srcdir@,$ac_srcdir,;t t
  10857. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  10858. s,@top_srcdir@,$ac_top_srcdir,;t t
  10859. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  10860. s,@builddir@,$ac_builddir,;t t
  10861. s,@abs_builddir@,$ac_abs_builddir,;t t
  10862. s,@top_builddir@,$ac_top_builddir,;t t
  10863. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  10864. s,@INSTALL@,$ac_INSTALL,;t t
  10865. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  10866. rm -f $tmp/stdin
  10867. if test x"$ac_file" != x-; then
  10868. mv $tmp/out $ac_file
  10869. else
  10870. cat $tmp/out
  10871. rm -f $tmp/out
  10872. fi
  10873. done
  10874. _ACEOF
  10875. cat >>$CONFIG_STATUS <<\_ACEOF
  10876. #
  10877. # CONFIG_HEADER section.
  10878. #
  10879. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  10880. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  10881. #
  10882. # ac_d sets the value in "#define NAME VALUE" lines.
  10883. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  10884. ac_dB='[ ].*$,\1#\2'
  10885. ac_dC=' '
  10886. ac_dD=',;t'
  10887. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  10888. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  10889. ac_uB='$,\1#\2define\3'
  10890. ac_uC=' '
  10891. ac_uD=',;t'
  10892. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  10893. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10894. case $ac_file in
  10895. - | *:- | *:-:* ) # input from stdin
  10896. cat >$tmp/stdin
  10897. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10898. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10899. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10900. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10901. * ) ac_file_in=$ac_file.in ;;
  10902. esac
  10903. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  10904. echo "$as_me: creating $ac_file" >&6;}
  10905. # First look for the input files in the build tree, otherwise in the
  10906. # src tree.
  10907. ac_file_inputs=`IFS=:
  10908. for f in $ac_file_in; do
  10909. case $f in
  10910. -) echo $tmp/stdin ;;
  10911. [\\/$]*)
  10912. # Absolute (can't be DOS-style, as IFS=:)
  10913. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10914. echo "$as_me: error: cannot find input file: $f" >&2;}
  10915. { (exit 1); exit 1; }; }
  10916. # Do quote $f, to prevent DOS paths from being IFS'd.
  10917. echo "$f";;
  10918. *) # Relative
  10919. if test -f "$f"; then
  10920. # Build tree
  10921. echo "$f"
  10922. elif test -f "$srcdir/$f"; then
  10923. # Source tree
  10924. echo "$srcdir/$f"
  10925. else
  10926. # /dev/null tree
  10927. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10928. echo "$as_me: error: cannot find input file: $f" >&2;}
  10929. { (exit 1); exit 1; }; }
  10930. fi;;
  10931. esac
  10932. done` || { (exit 1); exit 1; }
  10933. # Remove the trailing spaces.
  10934. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  10935. _ACEOF
  10936. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  10937. # `conftest.undefs', that substitutes the proper values into
  10938. # config.h.in to produce config.h. The first handles `#define'
  10939. # templates, and the second `#undef' templates.
  10940. # And first: Protect against being on the right side of a sed subst in
  10941. # config.status. Protect against being in an unquoted here document
  10942. # in config.status.
  10943. rm -f conftest.defines conftest.undefs
  10944. # Using a here document instead of a string reduces the quoting nightmare.
  10945. # Putting comments in sed scripts is not portable.
  10946. #
  10947. # `end' is used to avoid that the second main sed command (meant for
  10948. # 0-ary CPP macros) applies to n-ary macro definitions.
  10949. # See the Autoconf documentation for `clear'.
  10950. cat >confdef2sed.sed <<\_ACEOF
  10951. s/[\\&,]/\\&/g
  10952. s,[\\$`],\\&,g
  10953. t clear
  10954. : clear
  10955. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  10956. t end
  10957. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  10958. : end
  10959. _ACEOF
  10960. # If some macros were called several times there might be several times
  10961. # the same #defines, which is useless. Nevertheless, we may not want to
  10962. # sort them, since we want the *last* AC-DEFINE to be honored.
  10963. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  10964. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  10965. rm -f confdef2sed.sed
  10966. # This sed command replaces #undef with comments. This is necessary, for
  10967. # example, in the case of _POSIX_SOURCE, which is predefined and required
  10968. # on some systems where configure will not decide to define it.
  10969. cat >>conftest.undefs <<\_ACEOF
  10970. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  10971. _ACEOF
  10972. # Break up conftest.defines because some shells have a limit on the size
  10973. # of here documents, and old seds have small limits too (100 cmds).
  10974. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  10975. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  10976. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  10977. echo ' :' >>$CONFIG_STATUS
  10978. rm -f conftest.tail
  10979. while grep . conftest.defines >/dev/null
  10980. do
  10981. # Write a limited-size here document to $tmp/defines.sed.
  10982. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  10983. # Speed up: don't consider the non `#define' lines.
  10984. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  10985. # Work around the forget-to-reset-the-flag bug.
  10986. echo 't clr' >>$CONFIG_STATUS
  10987. echo ': clr' >>$CONFIG_STATUS
  10988. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  10989. echo 'CEOF
  10990. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  10991. rm -f $tmp/in
  10992. mv $tmp/out $tmp/in
  10993. ' >>$CONFIG_STATUS
  10994. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  10995. rm -f conftest.defines
  10996. mv conftest.tail conftest.defines
  10997. done
  10998. rm -f conftest.defines
  10999. echo ' fi # grep' >>$CONFIG_STATUS
  11000. echo >>$CONFIG_STATUS
  11001. # Break up conftest.undefs because some shells have a limit on the size
  11002. # of here documents, and old seds have small limits too (100 cmds).
  11003. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11004. rm -f conftest.tail
  11005. while grep . conftest.undefs >/dev/null
  11006. do
  11007. # Write a limited-size here document to $tmp/undefs.sed.
  11008. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11009. # Speed up: don't consider the non `#undef'
  11010. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11011. # Work around the forget-to-reset-the-flag bug.
  11012. echo 't clr' >>$CONFIG_STATUS
  11013. echo ': clr' >>$CONFIG_STATUS
  11014. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11015. echo 'CEOF
  11016. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11017. rm -f $tmp/in
  11018. mv $tmp/out $tmp/in
  11019. ' >>$CONFIG_STATUS
  11020. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11021. rm -f conftest.undefs
  11022. mv conftest.tail conftest.undefs
  11023. done
  11024. rm -f conftest.undefs
  11025. cat >>$CONFIG_STATUS <<\_ACEOF
  11026. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11027. # use $as_me), people would be surprised to read:
  11028. # /* config.h. Generated by config.status. */
  11029. if test x"$ac_file" = x-; then
  11030. echo "/* Generated by configure. */" >$tmp/config.h
  11031. else
  11032. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11033. fi
  11034. cat $tmp/in >>$tmp/config.h
  11035. rm -f $tmp/in
  11036. if test x"$ac_file" != x-; then
  11037. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11038. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11039. echo "$as_me: $ac_file is unchanged" >&6;}
  11040. else
  11041. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11042. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11043. X"$ac_file" : 'X\(//\)[^/]' \| \
  11044. X"$ac_file" : 'X\(//\)$' \| \
  11045. X"$ac_file" : 'X\(/\)' \| \
  11046. . : '\(.\)' 2>/dev/null ||
  11047. echo X"$ac_file" |
  11048. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11049. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11050. /^X\(\/\/\)$/{ s//\1/; q; }
  11051. /^X\(\/\).*/{ s//\1/; q; }
  11052. s/.*/./; q'`
  11053. { if $as_mkdir_p; then
  11054. mkdir -p "$ac_dir"
  11055. else
  11056. as_dir="$ac_dir"
  11057. as_dirs=
  11058. while test ! -d "$as_dir"; do
  11059. as_dirs="$as_dir $as_dirs"
  11060. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11061. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11062. X"$as_dir" : 'X\(//\)[^/]' \| \
  11063. X"$as_dir" : 'X\(//\)$' \| \
  11064. X"$as_dir" : 'X\(/\)' \| \
  11065. . : '\(.\)' 2>/dev/null ||
  11066. echo X"$as_dir" |
  11067. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11068. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11069. /^X\(\/\/\)$/{ s//\1/; q; }
  11070. /^X\(\/\).*/{ s//\1/; q; }
  11071. s/.*/./; q'`
  11072. done
  11073. test ! -n "$as_dirs" || mkdir $as_dirs
  11074. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11075. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11076. { (exit 1); exit 1; }; }; }
  11077. rm -f $ac_file
  11078. mv $tmp/config.h $ac_file
  11079. fi
  11080. else
  11081. cat $tmp/config.h
  11082. rm -f $tmp/config.h
  11083. fi
  11084. # Compute $ac_file's index in $config_headers.
  11085. _am_stamp_count=1
  11086. for _am_header in $config_headers :; do
  11087. case $_am_header in
  11088. $ac_file | $ac_file:* )
  11089. break ;;
  11090. * )
  11091. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11092. esac
  11093. done
  11094. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  11095. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11096. X$ac_file : 'X\(//\)[^/]' \| \
  11097. X$ac_file : 'X\(//\)$' \| \
  11098. X$ac_file : 'X\(/\)' \| \
  11099. . : '\(.\)' 2>/dev/null ||
  11100. echo X$ac_file |
  11101. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11102. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11103. /^X\(\/\/\)$/{ s//\1/; q; }
  11104. /^X\(\/\).*/{ s//\1/; q; }
  11105. s/.*/./; q'`/stamp-h$_am_stamp_count
  11106. done
  11107. _ACEOF
  11108. cat >>$CONFIG_STATUS <<\_ACEOF
  11109. #
  11110. # CONFIG_COMMANDS section.
  11111. #
  11112. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  11113. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  11114. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11115. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  11116. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11117. X"$ac_dest" : 'X\(//\)[^/]' \| \
  11118. X"$ac_dest" : 'X\(//\)$' \| \
  11119. X"$ac_dest" : 'X\(/\)' \| \
  11120. . : '\(.\)' 2>/dev/null ||
  11121. echo X"$ac_dest" |
  11122. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11123. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11124. /^X\(\/\/\)$/{ s//\1/; q; }
  11125. /^X\(\/\).*/{ s//\1/; q; }
  11126. s/.*/./; q'`
  11127. { if $as_mkdir_p; then
  11128. mkdir -p "$ac_dir"
  11129. else
  11130. as_dir="$ac_dir"
  11131. as_dirs=
  11132. while test ! -d "$as_dir"; do
  11133. as_dirs="$as_dir $as_dirs"
  11134. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11135. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11136. X"$as_dir" : 'X\(//\)[^/]' \| \
  11137. X"$as_dir" : 'X\(//\)$' \| \
  11138. X"$as_dir" : 'X\(/\)' \| \
  11139. . : '\(.\)' 2>/dev/null ||
  11140. echo X"$as_dir" |
  11141. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11142. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11143. /^X\(\/\/\)$/{ s//\1/; q; }
  11144. /^X\(\/\).*/{ s//\1/; q; }
  11145. s/.*/./; q'`
  11146. done
  11147. test ! -n "$as_dirs" || mkdir $as_dirs
  11148. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11149. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11150. { (exit 1); exit 1; }; }; }
  11151. ac_builddir=.
  11152. if test "$ac_dir" != .; then
  11153. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11154. # A "../" for each directory in $ac_dir_suffix.
  11155. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11156. else
  11157. ac_dir_suffix= ac_top_builddir=
  11158. fi
  11159. case $srcdir in
  11160. .) # No --srcdir option. We are building in place.
  11161. ac_srcdir=.
  11162. if test -z "$ac_top_builddir"; then
  11163. ac_top_srcdir=.
  11164. else
  11165. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11166. fi ;;
  11167. [\\/]* | ?:[\\/]* ) # Absolute path.
  11168. ac_srcdir=$srcdir$ac_dir_suffix;
  11169. ac_top_srcdir=$srcdir ;;
  11170. *) # Relative path.
  11171. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11172. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11173. esac
  11174. # Do not use `cd foo && pwd` to compute absolute paths, because
  11175. # the directories may not exist.
  11176. case `pwd` in
  11177. .) ac_abs_builddir="$ac_dir";;
  11178. *)
  11179. case "$ac_dir" in
  11180. .) ac_abs_builddir=`pwd`;;
  11181. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11182. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11183. esac;;
  11184. esac
  11185. case $ac_abs_builddir in
  11186. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11187. *)
  11188. case ${ac_top_builddir}. in
  11189. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11190. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11191. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11192. esac;;
  11193. esac
  11194. case $ac_abs_builddir in
  11195. .) ac_abs_srcdir=$ac_srcdir;;
  11196. *)
  11197. case $ac_srcdir in
  11198. .) ac_abs_srcdir=$ac_abs_builddir;;
  11199. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11200. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11201. esac;;
  11202. esac
  11203. case $ac_abs_builddir in
  11204. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11205. *)
  11206. case $ac_top_srcdir in
  11207. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11208. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11209. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11210. esac;;
  11211. esac
  11212. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  11213. echo "$as_me: executing $ac_dest commands" >&6;}
  11214. case $ac_dest in
  11215. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  11216. # Strip MF so we end up with the name of the file.
  11217. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11218. # Check whether this is an Automake generated Makefile or not.
  11219. # We used to match only the files named `Makefile.in', but
  11220. # some people rename them; so instead we look at the file content.
  11221. # Grep'ing the first line is not enough: some people post-process
  11222. # each Makefile.in and add a new line on top of each file to say so.
  11223. # So let's grep whole file.
  11224. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  11225. dirpart=`(dirname "$mf") 2>/dev/null ||
  11226. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11227. X"$mf" : 'X\(//\)[^/]' \| \
  11228. X"$mf" : 'X\(//\)$' \| \
  11229. X"$mf" : 'X\(/\)' \| \
  11230. . : '\(.\)' 2>/dev/null ||
  11231. echo X"$mf" |
  11232. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11233. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11234. /^X\(\/\/\)$/{ s//\1/; q; }
  11235. /^X\(\/\).*/{ s//\1/; q; }
  11236. s/.*/./; q'`
  11237. else
  11238. continue
  11239. fi
  11240. # Extract the definition of DEPDIR, am__include, and am__quote
  11241. # from the Makefile without running `make'.
  11242. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11243. test -z "$DEPDIR" && continue
  11244. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11245. test -z "am__include" && continue
  11246. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11247. # When using ansi2knr, U may be empty or an underscore; expand it
  11248. U=`sed -n 's/^U = //p' < "$mf"`
  11249. # Find all dependency output files, they are included files with
  11250. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11251. # simplest approach to changing $(DEPDIR) to its actual value in the
  11252. # expansion.
  11253. for file in `sed -n "
  11254. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11255. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11256. # Make sure the directory exists.
  11257. test -f "$dirpart/$file" && continue
  11258. fdir=`(dirname "$file") 2>/dev/null ||
  11259. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11260. X"$file" : 'X\(//\)[^/]' \| \
  11261. X"$file" : 'X\(//\)$' \| \
  11262. X"$file" : 'X\(/\)' \| \
  11263. . : '\(.\)' 2>/dev/null ||
  11264. echo X"$file" |
  11265. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11266. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11267. /^X\(\/\/\)$/{ s//\1/; q; }
  11268. /^X\(\/\).*/{ s//\1/; q; }
  11269. s/.*/./; q'`
  11270. { if $as_mkdir_p; then
  11271. mkdir -p $dirpart/$fdir
  11272. else
  11273. as_dir=$dirpart/$fdir
  11274. as_dirs=
  11275. while test ! -d "$as_dir"; do
  11276. as_dirs="$as_dir $as_dirs"
  11277. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11278. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11279. X"$as_dir" : 'X\(//\)[^/]' \| \
  11280. X"$as_dir" : 'X\(//\)$' \| \
  11281. X"$as_dir" : 'X\(/\)' \| \
  11282. . : '\(.\)' 2>/dev/null ||
  11283. echo X"$as_dir" |
  11284. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11285. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11286. /^X\(\/\/\)$/{ s//\1/; q; }
  11287. /^X\(\/\).*/{ s//\1/; q; }
  11288. s/.*/./; q'`
  11289. done
  11290. test ! -n "$as_dirs" || mkdir $as_dirs
  11291. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  11292. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  11293. { (exit 1); exit 1; }; }; }
  11294. # echo "creating $dirpart/$file"
  11295. echo '# dummy' > "$dirpart/$file"
  11296. done
  11297. done
  11298. ;;
  11299. default-1 )
  11300. for ac_file in $CONFIG_FILES; do
  11301. # Support "outfile[:infile[:infile...]]"
  11302. case "$ac_file" in
  11303. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11304. esac
  11305. # PO directories have a Makefile.in generated from Makefile.in.in.
  11306. case "$ac_file" in */Makefile.in)
  11307. # Adjust a relative srcdir.
  11308. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  11309. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  11310. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  11311. # In autoconf-2.13 it is called $ac_given_srcdir.
  11312. # In autoconf-2.50 it is called $srcdir.
  11313. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  11314. case "$ac_given_srcdir" in
  11315. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  11316. /*) top_srcdir="$ac_given_srcdir" ;;
  11317. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11318. esac
  11319. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  11320. rm -f "$ac_dir/POTFILES"
  11321. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  11322. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  11323. POMAKEFILEDEPS="POTFILES.in"
  11324. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  11325. # on $ac_dir but don't depend on user-specified configuration
  11326. # parameters.
  11327. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  11328. # The LINGUAS file contains the set of available languages.
  11329. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  11330. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  11331. fi
  11332. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  11333. # Hide the ALL_LINGUAS assigment from automake.
  11334. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  11335. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  11336. else
  11337. # The set of available languages was given in configure.in.
  11338. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  11339. fi
  11340. case "$ac_given_srcdir" in
  11341. .) srcdirpre= ;;
  11342. *) srcdirpre='$(srcdir)/' ;;
  11343. esac
  11344. POFILES=
  11345. GMOFILES=
  11346. UPDATEPOFILES=
  11347. DUMMYPOFILES=
  11348. for lang in $ALL_LINGUAS; do
  11349. POFILES="$POFILES $srcdirpre$lang.po"
  11350. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  11351. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  11352. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  11353. done
  11354. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  11355. # environment variable.
  11356. INST_LINGUAS=
  11357. if test -n "$ALL_LINGUAS"; then
  11358. for presentlang in $ALL_LINGUAS; do
  11359. useit=no
  11360. if test "%UNSET%" != "$LINGUAS"; then
  11361. desiredlanguages="$LINGUAS"
  11362. else
  11363. desiredlanguages="$ALL_LINGUAS"
  11364. fi
  11365. for desiredlang in $desiredlanguages; do
  11366. # Use the presentlang catalog if desiredlang is
  11367. # a. equal to presentlang, or
  11368. # b. a variant of presentlang (because in this case,
  11369. # presentlang can be used as a fallback for messages
  11370. # which are not translated in the desiredlang catalog).
  11371. case "$desiredlang" in
  11372. "$presentlang"*) useit=yes;;
  11373. esac
  11374. done
  11375. if test $useit = yes; then
  11376. INST_LINGUAS="$INST_LINGUAS $presentlang"
  11377. fi
  11378. done
  11379. fi
  11380. CATALOGS=
  11381. if test -n "$INST_LINGUAS"; then
  11382. for lang in $INST_LINGUAS; do
  11383. CATALOGS="$CATALOGS $lang.gmo"
  11384. done
  11385. fi
  11386. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  11387. 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"
  11388. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  11389. if test -f "$f"; then
  11390. case "$f" in
  11391. *.orig | *.bak | *~) ;;
  11392. *) cat "$f" >> "$ac_dir/Makefile" ;;
  11393. esac
  11394. fi
  11395. done
  11396. fi
  11397. ;;
  11398. esac
  11399. done ;;
  11400. esac
  11401. done
  11402. _ACEOF
  11403. cat >>$CONFIG_STATUS <<\_ACEOF
  11404. { (exit 0); exit 0; }
  11405. _ACEOF
  11406. chmod +x $CONFIG_STATUS
  11407. ac_clean_files=$ac_clean_files_save
  11408. # configure is writing to config.log, and then calls config.status.
  11409. # config.status does its own redirection, appending to config.log.
  11410. # Unfortunately, on DOS this fails, as config.log is still kept open
  11411. # by configure, so config.status won't be able to write to it; its
  11412. # output is simply discarded. So we exec the FD to /dev/null,
  11413. # effectively closing config.log, so it can be properly (re)opened and
  11414. # appended to by config.status. When coming back to configure, we
  11415. # need to make the FD available again.
  11416. if test "$no_create" != yes; then
  11417. ac_cs_success=:
  11418. ac_config_status_args=
  11419. test "$silent" = yes &&
  11420. ac_config_status_args="$ac_config_status_args --quiet"
  11421. exec 5>/dev/null
  11422. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11423. exec 5>>config.log
  11424. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11425. # would make configure fail if this is the last instruction.
  11426. $ac_cs_success || { (exit 1); exit 1; }
  11427. fi