configure 339 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59.
  4. #
  5. # Copyright (C) 2003 Free Software Foundation, Inc.
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. ## --------------------- ##
  9. ## M4sh Initialization. ##
  10. ## --------------------- ##
  11. # Be Bourne compatible
  12. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13. emulate sh
  14. NULLCMD=:
  15. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16. # is contrary to our usage. Disable this feature.
  17. alias -g '${1+"$@"}'='"$@"'
  18. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  19. set -o posix
  20. fi
  21. DUALCASE=1; export DUALCASE # for MKS sh
  22. # Support unset when possible.
  23. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24. as_unset=unset
  25. else
  26. as_unset=false
  27. fi
  28. # Work around bugs in pre-3.0 UWIN ksh.
  29. $as_unset ENV MAIL MAILPATH
  30. PS1='$ '
  31. PS2='> '
  32. PS4='+ '
  33. # NLS nuisances.
  34. for as_var in \
  35. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  36. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  37. LC_TELEPHONE LC_TIME
  38. do
  39. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  40. eval $as_var=C; export $as_var
  41. else
  42. $as_unset $as_var
  43. fi
  44. done
  45. # Required to use basename.
  46. if expr a : '\(a\)' >/dev/null 2>&1; then
  47. as_expr=expr
  48. else
  49. as_expr=false
  50. fi
  51. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  52. as_basename=basename
  53. else
  54. as_basename=false
  55. fi
  56. # Name of the executable.
  57. as_me=`$as_basename "$0" ||
  58. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  59. X"$0" : 'X\(//\)$' \| \
  60. X"$0" : 'X\(/\)$' \| \
  61. . : '\(.\)' 2>/dev/null ||
  62. echo X/"$0" |
  63. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  64. /^X\/\(\/\/\)$/{ s//\1/; q; }
  65. /^X\/\(\/\).*/{ s//\1/; q; }
  66. s/.*/./; q'`
  67. # PATH needs CR, and LINENO needs CR and PATH.
  68. # Avoid depending upon Character Ranges.
  69. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  70. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  71. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  72. as_cr_digits='0123456789'
  73. as_cr_alnum=$as_cr_Letters$as_cr_digits
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. echo "#! /bin/sh" >conf$$.sh
  77. echo "exit 0" >>conf$$.sh
  78. chmod +x conf$$.sh
  79. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  80. PATH_SEPARATOR=';'
  81. else
  82. PATH_SEPARATOR=:
  83. fi
  84. rm -f conf$$.sh
  85. fi
  86. as_lineno_1=$LINENO
  87. as_lineno_2=$LINENO
  88. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  89. test "x$as_lineno_1" != "x$as_lineno_2" &&
  90. test "x$as_lineno_3" = "x$as_lineno_2" || {
  91. # Find who we are. Look in the path if we contain no path at all
  92. # relative or not.
  93. case $0 in
  94. *[\\/]* ) as_myself=$0 ;;
  95. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98. IFS=$as_save_IFS
  99. test -z "$as_dir" && as_dir=.
  100. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101. done
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  111. { (exit 1); exit 1; }; }
  112. fi
  113. case $CONFIG_SHELL in
  114. '')
  115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  116. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  117. do
  118. IFS=$as_save_IFS
  119. test -z "$as_dir" && as_dir=.
  120. for as_base in sh bash ksh sh5; do
  121. case $as_dir in
  122. /*)
  123. if ("$as_dir/$as_base" -c '
  124. as_lineno_1=$LINENO
  125. as_lineno_2=$LINENO
  126. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  127. test "x$as_lineno_1" != "x$as_lineno_2" &&
  128. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  129. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  130. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  131. CONFIG_SHELL=$as_dir/$as_base
  132. export CONFIG_SHELL
  133. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  134. fi;;
  135. esac
  136. done
  137. done
  138. ;;
  139. esac
  140. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  141. # uniformly replaced by the line number. The first 'sed' inserts a
  142. # line-number line before each line; the second 'sed' does the real
  143. # work. The second script uses 'N' to pair each line-number line
  144. # with the numbered line, and appends trailing '-' during
  145. # substitution so that $LINENO is not a special case at line end.
  146. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  147. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  148. sed '=' <$as_myself |
  149. sed '
  150. N
  151. s,$,-,
  152. : loop
  153. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  154. t loop
  155. s,-$,,
  156. s,^['$as_cr_digits']*\n,,
  157. ' >$as_me.lineno &&
  158. chmod +x $as_me.lineno ||
  159. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  160. { (exit 1); exit 1; }; }
  161. # Don't try to exec as it changes $[0], causing all sort of problems
  162. # (the dirname of $[0] is not the place where we might find the
  163. # original and so on. Autoconf is especially sensible to this).
  164. . ./$as_me.lineno
  165. # Exit status is that of the last command.
  166. exit
  167. }
  168. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  169. *c*,-n*) ECHO_N= ECHO_C='
  170. ' ECHO_T=' ' ;;
  171. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  172. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  173. esac
  174. if expr a : '\(a\)' >/dev/null 2>&1; then
  175. as_expr=expr
  176. else
  177. as_expr=false
  178. fi
  179. rm -f conf$$ conf$$.exe conf$$.file
  180. echo >conf$$.file
  181. if ln -s conf$$.file conf$$ 2>/dev/null; then
  182. # We could just check for DJGPP; but this test a) works b) is more generic
  183. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  184. if test -f conf$$.exe; then
  185. # Don't use ln at all; we don't have any links
  186. as_ln_s='cp -p'
  187. else
  188. as_ln_s='ln -s'
  189. fi
  190. elif ln conf$$.file conf$$ 2>/dev/null; then
  191. as_ln_s=ln
  192. else
  193. as_ln_s='cp -p'
  194. fi
  195. rm -f conf$$ conf$$.exe conf$$.file
  196. if mkdir -p . 2>/dev/null; then
  197. as_mkdir_p=:
  198. else
  199. test -d ./-p && rmdir ./-p
  200. as_mkdir_p=false
  201. fi
  202. as_executable_p="test -f"
  203. # Sed expression to map a string onto a valid CPP name.
  204. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  205. # Sed expression to map a string onto a valid variable name.
  206. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  207. # IFS
  208. # We need space, tab and new line, in precisely that order.
  209. as_nl='
  210. '
  211. IFS=" $as_nl"
  212. # CDPATH.
  213. $as_unset CDPATH
  214. # Name of the host.
  215. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  216. # so uname gets run too.
  217. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  218. exec 6>&1
  219. #
  220. # Initializations.
  221. #
  222. ac_default_prefix=/usr/local
  223. ac_config_libobj_dir=.
  224. cross_compiling=no
  225. subdirs=
  226. MFLAGS=
  227. MAKEFLAGS=
  228. SHELL=${CONFIG_SHELL-/bin/sh}
  229. # Maximum number of lines to put in a shell here document.
  230. # This variable seems obsolete. It should probably be removed, and
  231. # only ac_max_sed_lines should be used.
  232. : ${ac_max_here_lines=38}
  233. # Identity of this package.
  234. PACKAGE_NAME=
  235. PACKAGE_TARNAME=
  236. PACKAGE_VERSION=
  237. PACKAGE_STRING=
  238. PACKAGE_BUGREPORT=
  239. ac_unique_file="include/dpkg.h.in"
  240. ac_default_prefix=/usr
  241. # Factoring default headers for most tests.
  242. ac_includes_default="\
  243. #include <stdio.h>
  244. #if HAVE_SYS_TYPES_H
  245. # include <sys/types.h>
  246. #endif
  247. #if HAVE_SYS_STAT_H
  248. # include <sys/stat.h>
  249. #endif
  250. #if STDC_HEADERS
  251. # include <stdlib.h>
  252. # include <stddef.h>
  253. #else
  254. # if HAVE_STDLIB_H
  255. # include <stdlib.h>
  256. # endif
  257. #endif
  258. #if HAVE_STRING_H
  259. # if !STDC_HEADERS && HAVE_MEMORY_H
  260. # include <memory.h>
  261. # endif
  262. # include <string.h>
  263. #endif
  264. #if HAVE_STRINGS_H
  265. # include <strings.h>
  266. #endif
  267. #if HAVE_INTTYPES_H
  268. # include <inttypes.h>
  269. #else
  270. # if HAVE_STDINT_H
  271. # include <stdint.h>
  272. # endif
  273. #endif
  274. #if HAVE_UNISTD_H
  275. # include <unistd.h>
  276. #endif"
  277. 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 ALSO_STATIC DSELECTDIR USE_START_STOP_DAEMON USE_SGML_DOC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC ac_ct_CC CFLAGS LDFLAGS CPPFLAGS EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX HAVE_CPLUSPLUS_TRUE HAVE_CPLUSPLUS_FALSE LD ac_ct_LD PACKAGE VERSION SET_MAKE os_type INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB CPP EGREP RANLIB ac_ct_RANLIB LN_S RM SED PERL SSD_LIBS CURSES_LIBS ZLIB_CFLAGS ZLIB_LIBS ZLIB_LIBS_ALSO_STATIC BZ2LIB_CFLAGS BZ2LIB_LIBS BZ2LIB_LIBS_ALSO_STATIC CWARNS admindir LIBOBJS LTLIBOBJS'
  278. ac_subst_files=''
  279. # Initialize some variables set by options.
  280. ac_init_help=
  281. ac_init_version=false
  282. # The variables have the same names as the options, with
  283. # dashes changed to underlines.
  284. cache_file=/dev/null
  285. exec_prefix=NONE
  286. no_create=
  287. no_recursion=
  288. prefix=NONE
  289. program_prefix=NONE
  290. program_suffix=NONE
  291. program_transform_name=s,x,x,
  292. silent=
  293. site=
  294. srcdir=
  295. verbose=
  296. x_includes=NONE
  297. x_libraries=NONE
  298. # Installation directory options.
  299. # These are left unexpanded so users can "make install exec_prefix=/foo"
  300. # and all the variables that are supposed to be based on exec_prefix
  301. # by default will actually change.
  302. # Use braces instead of parens because sh, perl, etc. also accept them.
  303. bindir='${exec_prefix}/bin'
  304. sbindir='${exec_prefix}/sbin'
  305. libexecdir='${exec_prefix}/libexec'
  306. datadir='${prefix}/share'
  307. sysconfdir='${prefix}/etc'
  308. sharedstatedir='${prefix}/com'
  309. localstatedir='${prefix}/var'
  310. libdir='${exec_prefix}/lib'
  311. includedir='${prefix}/include'
  312. oldincludedir='/usr/include'
  313. infodir='${prefix}/info'
  314. mandir='${prefix}/man'
  315. ac_prev=
  316. for ac_option
  317. do
  318. # If the previous option needs an argument, assign it.
  319. if test -n "$ac_prev"; then
  320. eval "$ac_prev=\$ac_option"
  321. ac_prev=
  322. continue
  323. fi
  324. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  325. # Accept the important Cygnus configure options, so we can diagnose typos.
  326. case $ac_option in
  327. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  328. ac_prev=bindir ;;
  329. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  330. bindir=$ac_optarg ;;
  331. -build | --build | --buil | --bui | --bu)
  332. ac_prev=build_alias ;;
  333. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  334. build_alias=$ac_optarg ;;
  335. -cache-file | --cache-file | --cache-fil | --cache-fi \
  336. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  337. ac_prev=cache_file ;;
  338. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  339. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  340. cache_file=$ac_optarg ;;
  341. --config-cache | -C)
  342. cache_file=config.cache ;;
  343. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  344. ac_prev=datadir ;;
  345. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  346. | --da=*)
  347. datadir=$ac_optarg ;;
  348. -disable-* | --disable-*)
  349. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  350. # Reject names that are not valid shell variable names.
  351. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  352. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  353. { (exit 1); exit 1; }; }
  354. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  355. eval "enable_$ac_feature=no" ;;
  356. -enable-* | --enable-*)
  357. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  358. # Reject names that are not valid shell variable names.
  359. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  360. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  361. { (exit 1); exit 1; }; }
  362. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  363. case $ac_option in
  364. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  365. *) ac_optarg=yes ;;
  366. esac
  367. eval "enable_$ac_feature='$ac_optarg'" ;;
  368. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  369. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  370. | --exec | --exe | --ex)
  371. ac_prev=exec_prefix ;;
  372. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  373. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  374. | --exec=* | --exe=* | --ex=*)
  375. exec_prefix=$ac_optarg ;;
  376. -gas | --gas | --ga | --g)
  377. # Obsolete; use --with-gas.
  378. with_gas=yes ;;
  379. -help | --help | --hel | --he | -h)
  380. ac_init_help=long ;;
  381. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  382. ac_init_help=recursive ;;
  383. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  384. ac_init_help=short ;;
  385. -host | --host | --hos | --ho)
  386. ac_prev=host_alias ;;
  387. -host=* | --host=* | --hos=* | --ho=*)
  388. host_alias=$ac_optarg ;;
  389. -includedir | --includedir | --includedi | --included | --include \
  390. | --includ | --inclu | --incl | --inc)
  391. ac_prev=includedir ;;
  392. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  393. | --includ=* | --inclu=* | --incl=* | --inc=*)
  394. includedir=$ac_optarg ;;
  395. -infodir | --infodir | --infodi | --infod | --info | --inf)
  396. ac_prev=infodir ;;
  397. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  398. infodir=$ac_optarg ;;
  399. -libdir | --libdir | --libdi | --libd)
  400. ac_prev=libdir ;;
  401. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  402. libdir=$ac_optarg ;;
  403. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  404. | --libexe | --libex | --libe)
  405. ac_prev=libexecdir ;;
  406. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  407. | --libexe=* | --libex=* | --libe=*)
  408. libexecdir=$ac_optarg ;;
  409. -localstatedir | --localstatedir | --localstatedi | --localstated \
  410. | --localstate | --localstat | --localsta | --localst \
  411. | --locals | --local | --loca | --loc | --lo)
  412. ac_prev=localstatedir ;;
  413. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  414. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  415. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  416. localstatedir=$ac_optarg ;;
  417. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  418. ac_prev=mandir ;;
  419. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  420. mandir=$ac_optarg ;;
  421. -nfp | --nfp | --nf)
  422. # Obsolete; use --without-fp.
  423. with_fp=no ;;
  424. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  425. | --no-cr | --no-c | -n)
  426. no_create=yes ;;
  427. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  428. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  429. no_recursion=yes ;;
  430. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  431. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  432. | --oldin | --oldi | --old | --ol | --o)
  433. ac_prev=oldincludedir ;;
  434. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  435. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  436. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  437. oldincludedir=$ac_optarg ;;
  438. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  439. ac_prev=prefix ;;
  440. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  441. prefix=$ac_optarg ;;
  442. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  443. | --program-pre | --program-pr | --program-p)
  444. ac_prev=program_prefix ;;
  445. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  446. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  447. program_prefix=$ac_optarg ;;
  448. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  449. | --program-suf | --program-su | --program-s)
  450. ac_prev=program_suffix ;;
  451. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  452. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  453. program_suffix=$ac_optarg ;;
  454. -program-transform-name | --program-transform-name \
  455. | --program-transform-nam | --program-transform-na \
  456. | --program-transform-n | --program-transform- \
  457. | --program-transform | --program-transfor \
  458. | --program-transfo | --program-transf \
  459. | --program-trans | --program-tran \
  460. | --progr-tra | --program-tr | --program-t)
  461. ac_prev=program_transform_name ;;
  462. -program-transform-name=* | --program-transform-name=* \
  463. | --program-transform-nam=* | --program-transform-na=* \
  464. | --program-transform-n=* | --program-transform-=* \
  465. | --program-transform=* | --program-transfor=* \
  466. | --program-transfo=* | --program-transf=* \
  467. | --program-trans=* | --program-tran=* \
  468. | --progr-tra=* | --program-tr=* | --program-t=*)
  469. program_transform_name=$ac_optarg ;;
  470. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  471. | -silent | --silent | --silen | --sile | --sil)
  472. silent=yes ;;
  473. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  474. ac_prev=sbindir ;;
  475. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  476. | --sbi=* | --sb=*)
  477. sbindir=$ac_optarg ;;
  478. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  479. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  480. | --sharedst | --shareds | --shared | --share | --shar \
  481. | --sha | --sh)
  482. ac_prev=sharedstatedir ;;
  483. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  484. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  485. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  486. | --sha=* | --sh=*)
  487. sharedstatedir=$ac_optarg ;;
  488. -site | --site | --sit)
  489. ac_prev=site ;;
  490. -site=* | --site=* | --sit=*)
  491. site=$ac_optarg ;;
  492. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  493. ac_prev=srcdir ;;
  494. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  495. srcdir=$ac_optarg ;;
  496. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  497. | --syscon | --sysco | --sysc | --sys | --sy)
  498. ac_prev=sysconfdir ;;
  499. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  500. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  501. sysconfdir=$ac_optarg ;;
  502. -target | --target | --targe | --targ | --tar | --ta | --t)
  503. ac_prev=target_alias ;;
  504. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  505. target_alias=$ac_optarg ;;
  506. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  507. verbose=yes ;;
  508. -version | --version | --versio | --versi | --vers | -V)
  509. ac_init_version=: ;;
  510. -with-* | --with-*)
  511. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  512. # Reject names that are not valid shell variable names.
  513. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  514. { echo "$as_me: error: invalid package name: $ac_package" >&2
  515. { (exit 1); exit 1; }; }
  516. ac_package=`echo $ac_package| sed 's/-/_/g'`
  517. case $ac_option in
  518. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  519. *) ac_optarg=yes ;;
  520. esac
  521. eval "with_$ac_package='$ac_optarg'" ;;
  522. -without-* | --without-*)
  523. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  524. # Reject names that are not valid shell variable names.
  525. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  526. { echo "$as_me: error: invalid package name: $ac_package" >&2
  527. { (exit 1); exit 1; }; }
  528. ac_package=`echo $ac_package | sed 's/-/_/g'`
  529. eval "with_$ac_package=no" ;;
  530. --x)
  531. # Obsolete; use --with-x.
  532. with_x=yes ;;
  533. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  534. | --x-incl | --x-inc | --x-in | --x-i)
  535. ac_prev=x_includes ;;
  536. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  537. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  538. x_includes=$ac_optarg ;;
  539. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  540. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  541. ac_prev=x_libraries ;;
  542. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  543. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  544. x_libraries=$ac_optarg ;;
  545. -*) { echo "$as_me: error: unrecognized option: $ac_option
  546. Try \`$0 --help' for more information." >&2
  547. { (exit 1); exit 1; }; }
  548. ;;
  549. *=*)
  550. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  551. # Reject names that are not valid shell variable names.
  552. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  553. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  554. { (exit 1); exit 1; }; }
  555. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  556. eval "$ac_envvar='$ac_optarg'"
  557. export $ac_envvar ;;
  558. *)
  559. # FIXME: should be removed in autoconf 3.0.
  560. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  561. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  562. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  563. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  564. ;;
  565. esac
  566. done
  567. if test -n "$ac_prev"; then
  568. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  569. { echo "$as_me: error: missing argument to $ac_option" >&2
  570. { (exit 1); exit 1; }; }
  571. fi
  572. # Be sure to have absolute paths.
  573. for ac_var in exec_prefix prefix
  574. do
  575. eval ac_val=$`echo $ac_var`
  576. case $ac_val in
  577. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  578. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  579. { (exit 1); exit 1; }; };;
  580. esac
  581. done
  582. # Be sure to have absolute paths.
  583. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  584. localstatedir libdir includedir oldincludedir infodir mandir
  585. do
  586. eval ac_val=$`echo $ac_var`
  587. case $ac_val in
  588. [\\/$]* | ?:[\\/]* ) ;;
  589. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  590. { (exit 1); exit 1; }; };;
  591. esac
  592. done
  593. # There might be people who depend on the old broken behavior: `$host'
  594. # used to hold the argument of --host etc.
  595. # FIXME: To remove some day.
  596. build=$build_alias
  597. host=$host_alias
  598. target=$target_alias
  599. # FIXME: To remove some day.
  600. if test "x$host_alias" != x; then
  601. if test "x$build_alias" = x; then
  602. cross_compiling=maybe
  603. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  604. If a cross compiler is detected then cross compile mode will be used." >&2
  605. elif test "x$build_alias" != "x$host_alias"; then
  606. cross_compiling=yes
  607. fi
  608. fi
  609. ac_tool_prefix=
  610. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  611. test "$silent" = yes && exec 6>/dev/null
  612. # Find the source files, if location was not specified.
  613. if test -z "$srcdir"; then
  614. ac_srcdir_defaulted=yes
  615. # Try the directory containing this script, then its parent.
  616. ac_confdir=`(dirname "$0") 2>/dev/null ||
  617. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  618. X"$0" : 'X\(//\)[^/]' \| \
  619. X"$0" : 'X\(//\)$' \| \
  620. X"$0" : 'X\(/\)' \| \
  621. . : '\(.\)' 2>/dev/null ||
  622. echo X"$0" |
  623. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  624. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  625. /^X\(\/\/\)$/{ s//\1/; q; }
  626. /^X\(\/\).*/{ s//\1/; q; }
  627. s/.*/./; q'`
  628. srcdir=$ac_confdir
  629. if test ! -r $srcdir/$ac_unique_file; then
  630. srcdir=..
  631. fi
  632. else
  633. ac_srcdir_defaulted=no
  634. fi
  635. if test ! -r $srcdir/$ac_unique_file; then
  636. if test "$ac_srcdir_defaulted" = yes; then
  637. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  638. { (exit 1); exit 1; }; }
  639. else
  640. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  641. { (exit 1); exit 1; }; }
  642. fi
  643. fi
  644. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  645. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  646. { (exit 1); exit 1; }; }
  647. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  648. ac_env_build_alias_set=${build_alias+set}
  649. ac_env_build_alias_value=$build_alias
  650. ac_cv_env_build_alias_set=${build_alias+set}
  651. ac_cv_env_build_alias_value=$build_alias
  652. ac_env_host_alias_set=${host_alias+set}
  653. ac_env_host_alias_value=$host_alias
  654. ac_cv_env_host_alias_set=${host_alias+set}
  655. ac_cv_env_host_alias_value=$host_alias
  656. ac_env_target_alias_set=${target_alias+set}
  657. ac_env_target_alias_value=$target_alias
  658. ac_cv_env_target_alias_set=${target_alias+set}
  659. ac_cv_env_target_alias_value=$target_alias
  660. ac_env_CC_set=${CC+set}
  661. ac_env_CC_value=$CC
  662. ac_cv_env_CC_set=${CC+set}
  663. ac_cv_env_CC_value=$CC
  664. ac_env_CFLAGS_set=${CFLAGS+set}
  665. ac_env_CFLAGS_value=$CFLAGS
  666. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  667. ac_cv_env_CFLAGS_value=$CFLAGS
  668. ac_env_LDFLAGS_set=${LDFLAGS+set}
  669. ac_env_LDFLAGS_value=$LDFLAGS
  670. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  671. ac_cv_env_LDFLAGS_value=$LDFLAGS
  672. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  673. ac_env_CPPFLAGS_value=$CPPFLAGS
  674. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  675. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  676. ac_env_CXX_set=${CXX+set}
  677. ac_env_CXX_value=$CXX
  678. ac_cv_env_CXX_set=${CXX+set}
  679. ac_cv_env_CXX_value=$CXX
  680. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  681. ac_env_CXXFLAGS_value=$CXXFLAGS
  682. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  683. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  684. ac_env_CPP_set=${CPP+set}
  685. ac_env_CPP_value=$CPP
  686. ac_cv_env_CPP_set=${CPP+set}
  687. ac_cv_env_CPP_value=$CPP
  688. #
  689. # Report the --help message.
  690. #
  691. if test "$ac_init_help" = "long"; then
  692. # Omit some internal or obsolete options to make the list less imposing.
  693. # This message is too long to be a string in the A/UX 3.1 sh.
  694. cat <<_ACEOF
  695. \`configure' configures this package to adapt to many kinds of systems.
  696. Usage: $0 [OPTION]... [VAR=VALUE]...
  697. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  698. VAR=VALUE. See below for descriptions of some of the useful variables.
  699. Defaults for the options are specified in brackets.
  700. Configuration:
  701. -h, --help display this help and exit
  702. --help=short display options specific to this package
  703. --help=recursive display the short help of all the included packages
  704. -V, --version display version information and exit
  705. -q, --quiet, --silent do not print \`checking...' messages
  706. --cache-file=FILE cache test results in FILE [disabled]
  707. -C, --config-cache alias for \`--cache-file=config.cache'
  708. -n, --no-create do not create output files
  709. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  710. _ACEOF
  711. cat <<_ACEOF
  712. Installation directories:
  713. --prefix=PREFIX install architecture-independent files in PREFIX
  714. [$ac_default_prefix]
  715. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  716. [PREFIX]
  717. By default, \`make install' will install all the files in
  718. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  719. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  720. for instance \`--prefix=\$HOME'.
  721. For better control, use the options below.
  722. Fine tuning of the installation directories:
  723. --bindir=DIR user executables [EPREFIX/bin]
  724. --sbindir=DIR system admin executables [EPREFIX/sbin]
  725. --libexecdir=DIR program executables [EPREFIX/libexec]
  726. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  727. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  728. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  729. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  730. --libdir=DIR object code libraries [EPREFIX/lib]
  731. --includedir=DIR C header files [PREFIX/include]
  732. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  733. --infodir=DIR info documentation [PREFIX/info]
  734. --mandir=DIR man documentation [PREFIX/man]
  735. _ACEOF
  736. cat <<\_ACEOF
  737. Program names:
  738. --program-prefix=PREFIX prepend PREFIX to installed program names
  739. --program-suffix=SUFFIX append SUFFIX to installed program names
  740. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  741. System types:
  742. --build=BUILD configure for building on BUILD [guessed]
  743. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  744. --target=TARGET configure for building compilers for TARGET [HOST]
  745. _ACEOF
  746. fi
  747. if test -n "$ac_init_help"; then
  748. cat <<\_ACEOF
  749. Optional Features:
  750. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  751. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  752. --disable-largefile omit support for large files
  753. --disable-nls do not use Native Language Support
  754. --disable-rpath do not hardcode runtime library paths
  755. Optional Packages:
  756. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  757. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  758. --with-static-progs compile static versions of certain binaries as well
  759. --with-dselect the dselect package-management frontend
  760. --with-start-stop-daemon
  761. start and stop system daemons
  762. --with-sgml-doc SGML documentation converted to HTML
  763. --with-admindir=DIR store dpkg database in DIR LIBDIR/db
  764. --with-gnu-ld assume the C compiler uses GNU ld default=no
  765. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  766. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  767. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  768. --without-libintl-prefix don't search for libintl in includedir and libdir
  769. --with-zlib use zlib for decompression of some gzip files
  770. --with-bz2lib use bz2lib for decompression of some bzip2 files
  771. --with-Werror use -Werror when compiling
  772. Some influential environment variables:
  773. CC C compiler command
  774. CFLAGS C compiler flags
  775. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  776. nonstandard directory <lib dir>
  777. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  778. headers in a nonstandard directory <include dir>
  779. CXX C++ compiler command
  780. CXXFLAGS C++ compiler flags
  781. CPP C preprocessor
  782. Use these variables to override the choices made by `configure' or to help
  783. it to find libraries and programs with nonstandard names/locations.
  784. _ACEOF
  785. fi
  786. if test "$ac_init_help" = "recursive"; then
  787. # If there are subdirs, report their specific --help.
  788. ac_popdir=`pwd`
  789. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  790. test -d $ac_dir || continue
  791. ac_builddir=.
  792. if test "$ac_dir" != .; then
  793. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  794. # A "../" for each directory in $ac_dir_suffix.
  795. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  796. else
  797. ac_dir_suffix= ac_top_builddir=
  798. fi
  799. case $srcdir in
  800. .) # No --srcdir option. We are building in place.
  801. ac_srcdir=.
  802. if test -z "$ac_top_builddir"; then
  803. ac_top_srcdir=.
  804. else
  805. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  806. fi ;;
  807. [\\/]* | ?:[\\/]* ) # Absolute path.
  808. ac_srcdir=$srcdir$ac_dir_suffix;
  809. ac_top_srcdir=$srcdir ;;
  810. *) # Relative path.
  811. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  812. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  813. esac
  814. # Do not use `cd foo && pwd` to compute absolute paths, because
  815. # the directories may not exist.
  816. case `pwd` in
  817. .) ac_abs_builddir="$ac_dir";;
  818. *)
  819. case "$ac_dir" in
  820. .) ac_abs_builddir=`pwd`;;
  821. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  822. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  823. esac;;
  824. esac
  825. case $ac_abs_builddir in
  826. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  827. *)
  828. case ${ac_top_builddir}. in
  829. .) ac_abs_top_builddir=$ac_abs_builddir;;
  830. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  831. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  832. esac;;
  833. esac
  834. case $ac_abs_builddir in
  835. .) ac_abs_srcdir=$ac_srcdir;;
  836. *)
  837. case $ac_srcdir in
  838. .) ac_abs_srcdir=$ac_abs_builddir;;
  839. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  840. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  841. esac;;
  842. esac
  843. case $ac_abs_builddir in
  844. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  845. *)
  846. case $ac_top_srcdir in
  847. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  848. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  849. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  850. esac;;
  851. esac
  852. cd $ac_dir
  853. # Check for guested configure; otherwise get Cygnus style configure.
  854. if test -f $ac_srcdir/configure.gnu; then
  855. echo
  856. $SHELL $ac_srcdir/configure.gnu --help=recursive
  857. elif test -f $ac_srcdir/configure; then
  858. echo
  859. $SHELL $ac_srcdir/configure --help=recursive
  860. elif test -f $ac_srcdir/configure.ac ||
  861. test -f $ac_srcdir/configure.in; then
  862. echo
  863. $ac_configure --help
  864. else
  865. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  866. fi
  867. cd "$ac_popdir"
  868. done
  869. fi
  870. test -n "$ac_init_help" && exit 0
  871. if $ac_init_version; then
  872. cat <<\_ACEOF
  873. Copyright (C) 2003 Free Software Foundation, Inc.
  874. This configure script is free software; the Free Software Foundation
  875. gives unlimited permission to copy, distribute and modify it.
  876. _ACEOF
  877. exit 0
  878. fi
  879. exec 5>config.log
  880. cat >&5 <<_ACEOF
  881. This file contains any messages produced by compilers while
  882. running configure, to aid debugging if configure makes a mistake.
  883. It was created by $as_me, which was
  884. generated by GNU Autoconf 2.59. Invocation command line was
  885. $ $0 $@
  886. _ACEOF
  887. {
  888. cat <<_ASUNAME
  889. ## --------- ##
  890. ## Platform. ##
  891. ## --------- ##
  892. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  893. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  894. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  895. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  896. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  897. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  898. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  899. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  900. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  901. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  902. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  903. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  904. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  905. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  906. _ASUNAME
  907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  908. for as_dir in $PATH
  909. do
  910. IFS=$as_save_IFS
  911. test -z "$as_dir" && as_dir=.
  912. echo "PATH: $as_dir"
  913. done
  914. } >&5
  915. cat >&5 <<_ACEOF
  916. ## ----------- ##
  917. ## Core tests. ##
  918. ## ----------- ##
  919. _ACEOF
  920. # Keep a trace of the command line.
  921. # Strip out --no-create and --no-recursion so they do not pile up.
  922. # Strip out --silent because we don't want to record it for future runs.
  923. # Also quote any args containing shell meta-characters.
  924. # Make two passes to allow for proper duplicate-argument suppression.
  925. ac_configure_args=
  926. ac_configure_args0=
  927. ac_configure_args1=
  928. ac_sep=
  929. ac_must_keep_next=false
  930. for ac_pass in 1 2
  931. do
  932. for ac_arg
  933. do
  934. case $ac_arg in
  935. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  936. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  937. | -silent | --silent | --silen | --sile | --sil)
  938. continue ;;
  939. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  940. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  941. esac
  942. case $ac_pass in
  943. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  944. 2)
  945. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  946. if test $ac_must_keep_next = true; then
  947. ac_must_keep_next=false # Got value, back to normal.
  948. else
  949. case $ac_arg in
  950. *=* | --config-cache | -C | -disable-* | --disable-* \
  951. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  952. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  953. | -with-* | --with-* | -without-* | --without-* | --x)
  954. case "$ac_configure_args0 " in
  955. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  956. esac
  957. ;;
  958. -* ) ac_must_keep_next=true ;;
  959. esac
  960. fi
  961. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  962. # Get rid of the leading space.
  963. ac_sep=" "
  964. ;;
  965. esac
  966. done
  967. done
  968. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  969. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  970. # When interrupted or exit'd, cleanup temporary files, and complete
  971. # config.log. We remove comments because anyway the quotes in there
  972. # would cause problems or look ugly.
  973. # WARNING: Be sure not to use single quotes in there, as some shells,
  974. # such as our DU 5.0 friend, will then `close' the trap.
  975. trap 'exit_status=$?
  976. # Save into config.log some information that might help in debugging.
  977. {
  978. echo
  979. cat <<\_ASBOX
  980. ## ---------------- ##
  981. ## Cache variables. ##
  982. ## ---------------- ##
  983. _ASBOX
  984. echo
  985. # The following way of writing the cache mishandles newlines in values,
  986. {
  987. (set) 2>&1 |
  988. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  989. *ac_space=\ *)
  990. sed -n \
  991. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  992. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  993. ;;
  994. *)
  995. sed -n \
  996. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  997. ;;
  998. esac;
  999. }
  1000. echo
  1001. cat <<\_ASBOX
  1002. ## ----------------- ##
  1003. ## Output variables. ##
  1004. ## ----------------- ##
  1005. _ASBOX
  1006. echo
  1007. for ac_var in $ac_subst_vars
  1008. do
  1009. eval ac_val=$`echo $ac_var`
  1010. echo "$ac_var='"'"'$ac_val'"'"'"
  1011. done | sort
  1012. echo
  1013. if test -n "$ac_subst_files"; then
  1014. cat <<\_ASBOX
  1015. ## ------------- ##
  1016. ## Output files. ##
  1017. ## ------------- ##
  1018. _ASBOX
  1019. echo
  1020. for ac_var in $ac_subst_files
  1021. do
  1022. eval ac_val=$`echo $ac_var`
  1023. echo "$ac_var='"'"'$ac_val'"'"'"
  1024. done | sort
  1025. echo
  1026. fi
  1027. if test -s confdefs.h; then
  1028. cat <<\_ASBOX
  1029. ## ----------- ##
  1030. ## confdefs.h. ##
  1031. ## ----------- ##
  1032. _ASBOX
  1033. echo
  1034. sed "/^$/d" confdefs.h | sort
  1035. echo
  1036. fi
  1037. test "$ac_signal" != 0 &&
  1038. echo "$as_me: caught signal $ac_signal"
  1039. echo "$as_me: exit $exit_status"
  1040. } >&5
  1041. rm -f core *.core &&
  1042. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1043. exit $exit_status
  1044. ' 0
  1045. for ac_signal in 1 2 13 15; do
  1046. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1047. done
  1048. ac_signal=0
  1049. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1050. rm -rf conftest* confdefs.h
  1051. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1052. echo >confdefs.h
  1053. # Predefined preprocessor variables.
  1054. cat >>confdefs.h <<_ACEOF
  1055. #define PACKAGE_NAME "$PACKAGE_NAME"
  1056. _ACEOF
  1057. cat >>confdefs.h <<_ACEOF
  1058. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1059. _ACEOF
  1060. cat >>confdefs.h <<_ACEOF
  1061. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1062. _ACEOF
  1063. cat >>confdefs.h <<_ACEOF
  1064. #define PACKAGE_STRING "$PACKAGE_STRING"
  1065. _ACEOF
  1066. cat >>confdefs.h <<_ACEOF
  1067. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1068. _ACEOF
  1069. # Let the site file select an alternate cache file if it wants to.
  1070. # Prefer explicitly selected file to automatically selected ones.
  1071. if test -z "$CONFIG_SITE"; then
  1072. if test "x$prefix" != xNONE; then
  1073. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1074. else
  1075. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1076. fi
  1077. fi
  1078. for ac_site_file in $CONFIG_SITE; do
  1079. if test -r "$ac_site_file"; then
  1080. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1081. echo "$as_me: loading site script $ac_site_file" >&6;}
  1082. sed 's/^/| /' "$ac_site_file" >&5
  1083. . "$ac_site_file"
  1084. fi
  1085. done
  1086. if test -r "$cache_file"; then
  1087. # Some versions of bash will fail to source /dev/null (special
  1088. # files actually), so we avoid doing that.
  1089. if test -f "$cache_file"; then
  1090. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1091. echo "$as_me: loading cache $cache_file" >&6;}
  1092. case $cache_file in
  1093. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1094. *) . ./$cache_file;;
  1095. esac
  1096. fi
  1097. else
  1098. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1099. echo "$as_me: creating cache $cache_file" >&6;}
  1100. >$cache_file
  1101. fi
  1102. # Check that the precious variables saved in the cache have kept the same
  1103. # value.
  1104. ac_cache_corrupted=false
  1105. for ac_var in `(set) 2>&1 |
  1106. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1107. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1108. eval ac_new_set=\$ac_env_${ac_var}_set
  1109. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1110. eval ac_new_val="\$ac_env_${ac_var}_value"
  1111. case $ac_old_set,$ac_new_set in
  1112. set,)
  1113. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1114. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1115. ac_cache_corrupted=: ;;
  1116. ,set)
  1117. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1118. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1119. ac_cache_corrupted=: ;;
  1120. ,);;
  1121. *)
  1122. if test "x$ac_old_val" != "x$ac_new_val"; then
  1123. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1124. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1125. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1126. echo "$as_me: former value: $ac_old_val" >&2;}
  1127. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1128. echo "$as_me: current value: $ac_new_val" >&2;}
  1129. ac_cache_corrupted=:
  1130. fi;;
  1131. esac
  1132. # Pass precious variables to config.status.
  1133. if test "$ac_new_set" = set; then
  1134. case $ac_new_val in
  1135. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1136. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1137. *) ac_arg=$ac_var=$ac_new_val ;;
  1138. esac
  1139. case " $ac_configure_args " in
  1140. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1141. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1142. esac
  1143. fi
  1144. done
  1145. if $ac_cache_corrupted; then
  1146. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1147. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1148. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1149. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1150. { (exit 1); exit 1; }; }
  1151. fi
  1152. ac_ext=c
  1153. ac_cpp='$CPP $CPPFLAGS'
  1154. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1155. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1156. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1157. ac_config_headers="$ac_config_headers config.h"
  1158. ALSO_STATIC=
  1159. # Check whether --with-static-progs or --without-static-progs was given.
  1160. if test "${with_static_progs+set}" = set; then
  1161. withval="$with_static_progs"
  1162. case "$withval" in
  1163. "true" | "yes" )
  1164. ALSO_STATIC=1
  1165. ;;
  1166. esac
  1167. fi;
  1168. DSELECTDIR="dselect"
  1169. # Check whether --with-dselect or --without-dselect was given.
  1170. if test "${with_dselect+set}" = set; then
  1171. withval="$with_dselect"
  1172. case "$withval" in
  1173. "false" | "no" )
  1174. DSELECTDIR=""
  1175. ;;
  1176. esac
  1177. fi;
  1178. USE_START_STOP_DAEMON="true"
  1179. # Check whether --with-start-stop-daemon or --without-start-stop-daemon was given.
  1180. if test "${with_start_stop_daemon+set}" = set; then
  1181. withval="$with_start_stop_daemon"
  1182. case "$withval" in
  1183. "false" | "no" )
  1184. USE_START_STOP_DAEMON=""
  1185. ;;
  1186. esac
  1187. fi;
  1188. if test "$USE_START_STOP_DAEMON" != ""; then
  1189. cat >>confdefs.h <<\_ACEOF
  1190. #define USE_START_STOP_DAEMON
  1191. _ACEOF
  1192. fi
  1193. USE_SGML_DOC="true"
  1194. # Check whether --with-sgml-doc or --without-sgml-doc was given.
  1195. if test "${with_sgml_doc+set}" = set; then
  1196. withval="$with_sgml_doc"
  1197. case "$withval" in
  1198. "false" | "no" )
  1199. USE_SGML_DOC=""
  1200. ;;
  1201. esac
  1202. fi;
  1203. admindir="$libdir/db"
  1204. # Check whether --with-admindir or --without-admindir was given.
  1205. if test "${with_admindir+set}" = set; then
  1206. withval="$with_admindir"
  1207. case "$withval" in
  1208. "" )
  1209. { { echo "$as_me:$LINENO: error: invalid admindir specified" >&5
  1210. echo "$as_me: error: invalid admindir specified" >&2;}
  1211. { (exit 1); exit 1; }; }
  1212. ;;
  1213. * )
  1214. admindir="$withval"
  1215. ;;
  1216. esac
  1217. fi;
  1218. ac_aux_dir=
  1219. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1220. if test -f $ac_dir/install-sh; then
  1221. ac_aux_dir=$ac_dir
  1222. ac_install_sh="$ac_aux_dir/install-sh -c"
  1223. break
  1224. elif test -f $ac_dir/install.sh; then
  1225. ac_aux_dir=$ac_dir
  1226. ac_install_sh="$ac_aux_dir/install.sh -c"
  1227. break
  1228. elif test -f $ac_dir/shtool; then
  1229. ac_aux_dir=$ac_dir
  1230. ac_install_sh="$ac_aux_dir/shtool install -c"
  1231. break
  1232. fi
  1233. done
  1234. if test -z "$ac_aux_dir"; then
  1235. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1236. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1237. { (exit 1); exit 1; }; }
  1238. fi
  1239. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1240. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1241. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1242. # Make sure we can run config.sub.
  1243. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1244. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1245. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1246. { (exit 1); exit 1; }; }
  1247. echo "$as_me:$LINENO: checking build system type" >&5
  1248. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1249. if test "${ac_cv_build+set}" = set; then
  1250. echo $ECHO_N "(cached) $ECHO_C" >&6
  1251. else
  1252. ac_cv_build_alias=$build_alias
  1253. test -z "$ac_cv_build_alias" &&
  1254. ac_cv_build_alias=`$ac_config_guess`
  1255. test -z "$ac_cv_build_alias" &&
  1256. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1257. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1258. { (exit 1); exit 1; }; }
  1259. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1260. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1261. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1262. { (exit 1); exit 1; }; }
  1263. fi
  1264. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1265. echo "${ECHO_T}$ac_cv_build" >&6
  1266. build=$ac_cv_build
  1267. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1268. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1269. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1270. echo "$as_me:$LINENO: checking host system type" >&5
  1271. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1272. if test "${ac_cv_host+set}" = set; then
  1273. echo $ECHO_N "(cached) $ECHO_C" >&6
  1274. else
  1275. ac_cv_host_alias=$host_alias
  1276. test -z "$ac_cv_host_alias" &&
  1277. ac_cv_host_alias=$ac_cv_build_alias
  1278. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1279. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1280. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1281. { (exit 1); exit 1; }; }
  1282. fi
  1283. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1284. echo "${ECHO_T}$ac_cv_host" >&6
  1285. host=$ac_cv_host
  1286. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1287. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1288. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1289. echo "$as_me:$LINENO: checking target system type" >&5
  1290. echo $ECHO_N "checking target system type... $ECHO_C" >&6
  1291. if test "${ac_cv_target+set}" = set; then
  1292. echo $ECHO_N "(cached) $ECHO_C" >&6
  1293. else
  1294. ac_cv_target_alias=$target_alias
  1295. test "x$ac_cv_target_alias" = "x" &&
  1296. ac_cv_target_alias=$ac_cv_host_alias
  1297. ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  1298. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  1299. echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  1300. { (exit 1); exit 1; }; }
  1301. fi
  1302. echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1303. echo "${ECHO_T}$ac_cv_target" >&6
  1304. target=$ac_cv_target
  1305. target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1306. target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1307. target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1308. # The aliases save the names the user supplied, while $host etc.
  1309. # will get canonicalized.
  1310. test -n "$target_alias" &&
  1311. test "$program_prefix$program_suffix$program_transform_name" = \
  1312. NONENONEs,x,x, &&
  1313. program_prefix=${target_alias}-
  1314. if test -n "$ac_tool_prefix"; then
  1315. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1316. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1317. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1318. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1319. if test "${ac_cv_prog_CC+set}" = set; then
  1320. echo $ECHO_N "(cached) $ECHO_C" >&6
  1321. else
  1322. if test -n "$CC"; then
  1323. ac_cv_prog_CC="$CC" # Let the user override the test.
  1324. else
  1325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1326. for as_dir in $PATH
  1327. do
  1328. IFS=$as_save_IFS
  1329. test -z "$as_dir" && as_dir=.
  1330. for ac_exec_ext in '' $ac_executable_extensions; do
  1331. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1332. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1333. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1334. break 2
  1335. fi
  1336. done
  1337. done
  1338. fi
  1339. fi
  1340. CC=$ac_cv_prog_CC
  1341. if test -n "$CC"; then
  1342. echo "$as_me:$LINENO: result: $CC" >&5
  1343. echo "${ECHO_T}$CC" >&6
  1344. else
  1345. echo "$as_me:$LINENO: result: no" >&5
  1346. echo "${ECHO_T}no" >&6
  1347. fi
  1348. fi
  1349. if test -z "$ac_cv_prog_CC"; then
  1350. ac_ct_CC=$CC
  1351. # Extract the first word of "gcc", so it can be a program name with args.
  1352. set dummy gcc; ac_word=$2
  1353. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1354. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1355. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1356. echo $ECHO_N "(cached) $ECHO_C" >&6
  1357. else
  1358. if test -n "$ac_ct_CC"; then
  1359. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1360. else
  1361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1362. for as_dir in $PATH
  1363. do
  1364. IFS=$as_save_IFS
  1365. test -z "$as_dir" && as_dir=.
  1366. for ac_exec_ext in '' $ac_executable_extensions; do
  1367. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1368. ac_cv_prog_ac_ct_CC="gcc"
  1369. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1370. break 2
  1371. fi
  1372. done
  1373. done
  1374. fi
  1375. fi
  1376. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1377. if test -n "$ac_ct_CC"; then
  1378. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1379. echo "${ECHO_T}$ac_ct_CC" >&6
  1380. else
  1381. echo "$as_me:$LINENO: result: no" >&5
  1382. echo "${ECHO_T}no" >&6
  1383. fi
  1384. CC=$ac_ct_CC
  1385. else
  1386. CC="$ac_cv_prog_CC"
  1387. fi
  1388. ac_ext=c
  1389. ac_cpp='$CPP $CPPFLAGS'
  1390. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1391. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1392. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1393. if test -n "$ac_tool_prefix"; then
  1394. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1395. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1396. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1397. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1398. if test "${ac_cv_prog_CC+set}" = set; then
  1399. echo $ECHO_N "(cached) $ECHO_C" >&6
  1400. else
  1401. if test -n "$CC"; then
  1402. ac_cv_prog_CC="$CC" # Let the user override the test.
  1403. else
  1404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1405. for as_dir in $PATH
  1406. do
  1407. IFS=$as_save_IFS
  1408. test -z "$as_dir" && as_dir=.
  1409. for ac_exec_ext in '' $ac_executable_extensions; do
  1410. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1411. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1412. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1413. break 2
  1414. fi
  1415. done
  1416. done
  1417. fi
  1418. fi
  1419. CC=$ac_cv_prog_CC
  1420. if test -n "$CC"; then
  1421. echo "$as_me:$LINENO: result: $CC" >&5
  1422. echo "${ECHO_T}$CC" >&6
  1423. else
  1424. echo "$as_me:$LINENO: result: no" >&5
  1425. echo "${ECHO_T}no" >&6
  1426. fi
  1427. fi
  1428. if test -z "$ac_cv_prog_CC"; then
  1429. ac_ct_CC=$CC
  1430. # Extract the first word of "gcc", so it can be a program name with args.
  1431. set dummy gcc; ac_word=$2
  1432. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1433. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1434. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1435. echo $ECHO_N "(cached) $ECHO_C" >&6
  1436. else
  1437. if test -n "$ac_ct_CC"; then
  1438. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1439. else
  1440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1441. for as_dir in $PATH
  1442. do
  1443. IFS=$as_save_IFS
  1444. test -z "$as_dir" && as_dir=.
  1445. for ac_exec_ext in '' $ac_executable_extensions; do
  1446. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1447. ac_cv_prog_ac_ct_CC="gcc"
  1448. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1449. break 2
  1450. fi
  1451. done
  1452. done
  1453. fi
  1454. fi
  1455. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1456. if test -n "$ac_ct_CC"; then
  1457. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1458. echo "${ECHO_T}$ac_ct_CC" >&6
  1459. else
  1460. echo "$as_me:$LINENO: result: no" >&5
  1461. echo "${ECHO_T}no" >&6
  1462. fi
  1463. CC=$ac_ct_CC
  1464. else
  1465. CC="$ac_cv_prog_CC"
  1466. fi
  1467. if test -z "$CC"; then
  1468. if test -n "$ac_tool_prefix"; then
  1469. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1470. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1471. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1472. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1473. if test "${ac_cv_prog_CC+set}" = set; then
  1474. echo $ECHO_N "(cached) $ECHO_C" >&6
  1475. else
  1476. if test -n "$CC"; then
  1477. ac_cv_prog_CC="$CC" # Let the user override the test.
  1478. else
  1479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1480. for as_dir in $PATH
  1481. do
  1482. IFS=$as_save_IFS
  1483. test -z "$as_dir" && as_dir=.
  1484. for ac_exec_ext in '' $ac_executable_extensions; do
  1485. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1486. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1487. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1488. break 2
  1489. fi
  1490. done
  1491. done
  1492. fi
  1493. fi
  1494. CC=$ac_cv_prog_CC
  1495. if test -n "$CC"; then
  1496. echo "$as_me:$LINENO: result: $CC" >&5
  1497. echo "${ECHO_T}$CC" >&6
  1498. else
  1499. echo "$as_me:$LINENO: result: no" >&5
  1500. echo "${ECHO_T}no" >&6
  1501. fi
  1502. fi
  1503. if test -z "$ac_cv_prog_CC"; then
  1504. ac_ct_CC=$CC
  1505. # Extract the first word of "cc", so it can be a program name with args.
  1506. set dummy cc; ac_word=$2
  1507. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1508. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1509. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1510. echo $ECHO_N "(cached) $ECHO_C" >&6
  1511. else
  1512. if test -n "$ac_ct_CC"; then
  1513. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1514. else
  1515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1516. for as_dir in $PATH
  1517. do
  1518. IFS=$as_save_IFS
  1519. test -z "$as_dir" && as_dir=.
  1520. for ac_exec_ext in '' $ac_executable_extensions; do
  1521. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1522. ac_cv_prog_ac_ct_CC="cc"
  1523. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1524. break 2
  1525. fi
  1526. done
  1527. done
  1528. fi
  1529. fi
  1530. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1531. if test -n "$ac_ct_CC"; then
  1532. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1533. echo "${ECHO_T}$ac_ct_CC" >&6
  1534. else
  1535. echo "$as_me:$LINENO: result: no" >&5
  1536. echo "${ECHO_T}no" >&6
  1537. fi
  1538. CC=$ac_ct_CC
  1539. else
  1540. CC="$ac_cv_prog_CC"
  1541. fi
  1542. fi
  1543. if test -z "$CC"; then
  1544. # Extract the first word of "cc", so it can be a program name with args.
  1545. set dummy cc; ac_word=$2
  1546. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1547. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1548. if test "${ac_cv_prog_CC+set}" = set; then
  1549. echo $ECHO_N "(cached) $ECHO_C" >&6
  1550. else
  1551. if test -n "$CC"; then
  1552. ac_cv_prog_CC="$CC" # Let the user override the test.
  1553. else
  1554. ac_prog_rejected=no
  1555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1556. for as_dir in $PATH
  1557. do
  1558. IFS=$as_save_IFS
  1559. test -z "$as_dir" && as_dir=.
  1560. for ac_exec_ext in '' $ac_executable_extensions; do
  1561. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1562. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1563. ac_prog_rejected=yes
  1564. continue
  1565. fi
  1566. ac_cv_prog_CC="cc"
  1567. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1568. break 2
  1569. fi
  1570. done
  1571. done
  1572. if test $ac_prog_rejected = yes; then
  1573. # We found a bogon in the path, so make sure we never use it.
  1574. set dummy $ac_cv_prog_CC
  1575. shift
  1576. if test $# != 0; then
  1577. # We chose a different compiler from the bogus one.
  1578. # However, it has the same basename, so the bogon will be chosen
  1579. # first if we set CC to just the basename; use the full file name.
  1580. shift
  1581. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1582. fi
  1583. fi
  1584. fi
  1585. fi
  1586. CC=$ac_cv_prog_CC
  1587. if test -n "$CC"; then
  1588. echo "$as_me:$LINENO: result: $CC" >&5
  1589. echo "${ECHO_T}$CC" >&6
  1590. else
  1591. echo "$as_me:$LINENO: result: no" >&5
  1592. echo "${ECHO_T}no" >&6
  1593. fi
  1594. fi
  1595. if test -z "$CC"; then
  1596. if test -n "$ac_tool_prefix"; then
  1597. for ac_prog in cl
  1598. do
  1599. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1600. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1601. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1602. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1603. if test "${ac_cv_prog_CC+set}" = set; then
  1604. echo $ECHO_N "(cached) $ECHO_C" >&6
  1605. else
  1606. if test -n "$CC"; then
  1607. ac_cv_prog_CC="$CC" # Let the user override the test.
  1608. else
  1609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1610. for as_dir in $PATH
  1611. do
  1612. IFS=$as_save_IFS
  1613. test -z "$as_dir" && as_dir=.
  1614. for ac_exec_ext in '' $ac_executable_extensions; do
  1615. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1616. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1617. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1618. break 2
  1619. fi
  1620. done
  1621. done
  1622. fi
  1623. fi
  1624. CC=$ac_cv_prog_CC
  1625. if test -n "$CC"; then
  1626. echo "$as_me:$LINENO: result: $CC" >&5
  1627. echo "${ECHO_T}$CC" >&6
  1628. else
  1629. echo "$as_me:$LINENO: result: no" >&5
  1630. echo "${ECHO_T}no" >&6
  1631. fi
  1632. test -n "$CC" && break
  1633. done
  1634. fi
  1635. if test -z "$CC"; then
  1636. ac_ct_CC=$CC
  1637. for ac_prog in cl
  1638. do
  1639. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1640. set dummy $ac_prog; ac_word=$2
  1641. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1642. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1643. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1644. echo $ECHO_N "(cached) $ECHO_C" >&6
  1645. else
  1646. if test -n "$ac_ct_CC"; then
  1647. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1648. else
  1649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1650. for as_dir in $PATH
  1651. do
  1652. IFS=$as_save_IFS
  1653. test -z "$as_dir" && as_dir=.
  1654. for ac_exec_ext in '' $ac_executable_extensions; do
  1655. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1656. ac_cv_prog_ac_ct_CC="$ac_prog"
  1657. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1658. break 2
  1659. fi
  1660. done
  1661. done
  1662. fi
  1663. fi
  1664. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1665. if test -n "$ac_ct_CC"; then
  1666. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1667. echo "${ECHO_T}$ac_ct_CC" >&6
  1668. else
  1669. echo "$as_me:$LINENO: result: no" >&5
  1670. echo "${ECHO_T}no" >&6
  1671. fi
  1672. test -n "$ac_ct_CC" && break
  1673. done
  1674. CC=$ac_ct_CC
  1675. fi
  1676. fi
  1677. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1678. See \`config.log' for more details." >&5
  1679. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1680. See \`config.log' for more details." >&2;}
  1681. { (exit 1); exit 1; }; }
  1682. # Provide some information about the compiler.
  1683. echo "$as_me:$LINENO:" \
  1684. "checking for C compiler version" >&5
  1685. ac_compiler=`set X $ac_compile; echo $2`
  1686. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1687. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1688. ac_status=$?
  1689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1690. (exit $ac_status); }
  1691. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1692. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1693. ac_status=$?
  1694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1695. (exit $ac_status); }
  1696. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1697. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1698. ac_status=$?
  1699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1700. (exit $ac_status); }
  1701. cat >conftest.$ac_ext <<_ACEOF
  1702. /* confdefs.h. */
  1703. _ACEOF
  1704. cat confdefs.h >>conftest.$ac_ext
  1705. cat >>conftest.$ac_ext <<_ACEOF
  1706. /* end confdefs.h. */
  1707. int
  1708. main ()
  1709. {
  1710. ;
  1711. return 0;
  1712. }
  1713. _ACEOF
  1714. ac_clean_files_save=$ac_clean_files
  1715. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1716. # Try to create an executable without -o first, disregard a.out.
  1717. # It will help us diagnose broken compilers, and finding out an intuition
  1718. # of exeext.
  1719. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1720. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1721. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1722. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1723. (eval $ac_link_default) 2>&5
  1724. ac_status=$?
  1725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1726. (exit $ac_status); }; then
  1727. # Find the output, starting from the most likely. This scheme is
  1728. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1729. # resort.
  1730. # Be careful to initialize this variable, since it used to be cached.
  1731. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1732. ac_cv_exeext=
  1733. # b.out is created by i960 compilers.
  1734. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1735. do
  1736. test -f "$ac_file" || continue
  1737. case $ac_file in
  1738. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1739. ;;
  1740. conftest.$ac_ext )
  1741. # This is the source file.
  1742. ;;
  1743. [ab].out )
  1744. # We found the default executable, but exeext='' is most
  1745. # certainly right.
  1746. break;;
  1747. *.* )
  1748. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1749. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1750. # but it would be cool to find out if it's true. Does anybody
  1751. # maintain Libtool? --akim.
  1752. export ac_cv_exeext
  1753. break;;
  1754. * )
  1755. break;;
  1756. esac
  1757. done
  1758. else
  1759. echo "$as_me: failed program was:" >&5
  1760. sed 's/^/| /' conftest.$ac_ext >&5
  1761. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1762. See \`config.log' for more details." >&5
  1763. echo "$as_me: error: C compiler cannot create executables
  1764. See \`config.log' for more details." >&2;}
  1765. { (exit 77); exit 77; }; }
  1766. fi
  1767. ac_exeext=$ac_cv_exeext
  1768. echo "$as_me:$LINENO: result: $ac_file" >&5
  1769. echo "${ECHO_T}$ac_file" >&6
  1770. # Check the compiler produces executables we can run. If not, either
  1771. # the compiler is broken, or we cross compile.
  1772. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1773. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1774. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1775. # If not cross compiling, check that we can run a simple program.
  1776. if test "$cross_compiling" != yes; then
  1777. if { ac_try='./$ac_file'
  1778. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1779. (eval $ac_try) 2>&5
  1780. ac_status=$?
  1781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1782. (exit $ac_status); }; }; then
  1783. cross_compiling=no
  1784. else
  1785. if test "$cross_compiling" = maybe; then
  1786. cross_compiling=yes
  1787. else
  1788. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1789. If you meant to cross compile, use \`--host'.
  1790. See \`config.log' for more details." >&5
  1791. echo "$as_me: error: cannot run C compiled programs.
  1792. If you meant to cross compile, use \`--host'.
  1793. See \`config.log' for more details." >&2;}
  1794. { (exit 1); exit 1; }; }
  1795. fi
  1796. fi
  1797. fi
  1798. echo "$as_me:$LINENO: result: yes" >&5
  1799. echo "${ECHO_T}yes" >&6
  1800. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1801. ac_clean_files=$ac_clean_files_save
  1802. # Check the compiler produces executables we can run. If not, either
  1803. # the compiler is broken, or we cross compile.
  1804. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1805. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1806. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1807. echo "${ECHO_T}$cross_compiling" >&6
  1808. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1809. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1810. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1811. (eval $ac_link) 2>&5
  1812. ac_status=$?
  1813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1814. (exit $ac_status); }; then
  1815. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1816. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1817. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1818. # `rm'.
  1819. for ac_file in conftest.exe conftest conftest.*; do
  1820. test -f "$ac_file" || continue
  1821. case $ac_file in
  1822. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1823. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1824. export ac_cv_exeext
  1825. break;;
  1826. * ) break;;
  1827. esac
  1828. done
  1829. else
  1830. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1831. See \`config.log' for more details." >&5
  1832. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1833. See \`config.log' for more details." >&2;}
  1834. { (exit 1); exit 1; }; }
  1835. fi
  1836. rm -f conftest$ac_cv_exeext
  1837. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1838. echo "${ECHO_T}$ac_cv_exeext" >&6
  1839. rm -f conftest.$ac_ext
  1840. EXEEXT=$ac_cv_exeext
  1841. ac_exeext=$EXEEXT
  1842. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1843. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1844. if test "${ac_cv_objext+set}" = set; then
  1845. echo $ECHO_N "(cached) $ECHO_C" >&6
  1846. else
  1847. cat >conftest.$ac_ext <<_ACEOF
  1848. /* confdefs.h. */
  1849. _ACEOF
  1850. cat confdefs.h >>conftest.$ac_ext
  1851. cat >>conftest.$ac_ext <<_ACEOF
  1852. /* end confdefs.h. */
  1853. int
  1854. main ()
  1855. {
  1856. ;
  1857. return 0;
  1858. }
  1859. _ACEOF
  1860. rm -f conftest.o conftest.obj
  1861. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1862. (eval $ac_compile) 2>&5
  1863. ac_status=$?
  1864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1865. (exit $ac_status); }; then
  1866. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1867. case $ac_file in
  1868. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1869. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1870. break;;
  1871. esac
  1872. done
  1873. else
  1874. echo "$as_me: failed program was:" >&5
  1875. sed 's/^/| /' conftest.$ac_ext >&5
  1876. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1877. See \`config.log' for more details." >&5
  1878. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1879. See \`config.log' for more details." >&2;}
  1880. { (exit 1); exit 1; }; }
  1881. fi
  1882. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1883. fi
  1884. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1885. echo "${ECHO_T}$ac_cv_objext" >&6
  1886. OBJEXT=$ac_cv_objext
  1887. ac_objext=$OBJEXT
  1888. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1889. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1890. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1891. echo $ECHO_N "(cached) $ECHO_C" >&6
  1892. else
  1893. cat >conftest.$ac_ext <<_ACEOF
  1894. /* confdefs.h. */
  1895. _ACEOF
  1896. cat confdefs.h >>conftest.$ac_ext
  1897. cat >>conftest.$ac_ext <<_ACEOF
  1898. /* end confdefs.h. */
  1899. int
  1900. main ()
  1901. {
  1902. #ifndef __GNUC__
  1903. choke me
  1904. #endif
  1905. ;
  1906. return 0;
  1907. }
  1908. _ACEOF
  1909. rm -f conftest.$ac_objext
  1910. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1911. (eval $ac_compile) 2>conftest.er1
  1912. ac_status=$?
  1913. grep -v '^ *+' conftest.er1 >conftest.err
  1914. rm -f conftest.er1
  1915. cat conftest.err >&5
  1916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1917. (exit $ac_status); } &&
  1918. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1919. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1920. (eval $ac_try) 2>&5
  1921. ac_status=$?
  1922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1923. (exit $ac_status); }; } &&
  1924. { ac_try='test -s conftest.$ac_objext'
  1925. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1926. (eval $ac_try) 2>&5
  1927. ac_status=$?
  1928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1929. (exit $ac_status); }; }; then
  1930. ac_compiler_gnu=yes
  1931. else
  1932. echo "$as_me: failed program was:" >&5
  1933. sed 's/^/| /' conftest.$ac_ext >&5
  1934. ac_compiler_gnu=no
  1935. fi
  1936. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1937. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1938. fi
  1939. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1940. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1941. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1942. ac_test_CFLAGS=${CFLAGS+set}
  1943. ac_save_CFLAGS=$CFLAGS
  1944. CFLAGS="-g"
  1945. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1946. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1947. if test "${ac_cv_prog_cc_g+set}" = set; then
  1948. echo $ECHO_N "(cached) $ECHO_C" >&6
  1949. else
  1950. cat >conftest.$ac_ext <<_ACEOF
  1951. /* confdefs.h. */
  1952. _ACEOF
  1953. cat confdefs.h >>conftest.$ac_ext
  1954. cat >>conftest.$ac_ext <<_ACEOF
  1955. /* end confdefs.h. */
  1956. int
  1957. main ()
  1958. {
  1959. ;
  1960. return 0;
  1961. }
  1962. _ACEOF
  1963. rm -f conftest.$ac_objext
  1964. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1965. (eval $ac_compile) 2>conftest.er1
  1966. ac_status=$?
  1967. grep -v '^ *+' conftest.er1 >conftest.err
  1968. rm -f conftest.er1
  1969. cat conftest.err >&5
  1970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1971. (exit $ac_status); } &&
  1972. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1973. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1974. (eval $ac_try) 2>&5
  1975. ac_status=$?
  1976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1977. (exit $ac_status); }; } &&
  1978. { ac_try='test -s conftest.$ac_objext'
  1979. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1980. (eval $ac_try) 2>&5
  1981. ac_status=$?
  1982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1983. (exit $ac_status); }; }; then
  1984. ac_cv_prog_cc_g=yes
  1985. else
  1986. echo "$as_me: failed program was:" >&5
  1987. sed 's/^/| /' conftest.$ac_ext >&5
  1988. ac_cv_prog_cc_g=no
  1989. fi
  1990. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1991. fi
  1992. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1993. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1994. if test "$ac_test_CFLAGS" = set; then
  1995. CFLAGS=$ac_save_CFLAGS
  1996. elif test $ac_cv_prog_cc_g = yes; then
  1997. if test "$GCC" = yes; then
  1998. CFLAGS="-g -O2"
  1999. else
  2000. CFLAGS="-g"
  2001. fi
  2002. else
  2003. if test "$GCC" = yes; then
  2004. CFLAGS="-O2"
  2005. else
  2006. CFLAGS=
  2007. fi
  2008. fi
  2009. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2010. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2011. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2012. echo $ECHO_N "(cached) $ECHO_C" >&6
  2013. else
  2014. ac_cv_prog_cc_stdc=no
  2015. ac_save_CC=$CC
  2016. cat >conftest.$ac_ext <<_ACEOF
  2017. /* confdefs.h. */
  2018. _ACEOF
  2019. cat confdefs.h >>conftest.$ac_ext
  2020. cat >>conftest.$ac_ext <<_ACEOF
  2021. /* end confdefs.h. */
  2022. #include <stdarg.h>
  2023. #include <stdio.h>
  2024. #include <sys/types.h>
  2025. #include <sys/stat.h>
  2026. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2027. struct buf { int x; };
  2028. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2029. static char *e (p, i)
  2030. char **p;
  2031. int i;
  2032. {
  2033. return p[i];
  2034. }
  2035. static char *f (char * (*g) (char **, int), char **p, ...)
  2036. {
  2037. char *s;
  2038. va_list v;
  2039. va_start (v,p);
  2040. s = g (p, va_arg (v,int));
  2041. va_end (v);
  2042. return s;
  2043. }
  2044. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2045. function prototypes and stuff, but not '\xHH' hex character constants.
  2046. These don't provoke an error unfortunately, instead are silently treated
  2047. as 'x'. The following induces an error, until -std1 is added to get
  2048. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2049. array size at least. It's necessary to write '\x00'==0 to get something
  2050. that's true only with -std1. */
  2051. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2052. int test (int i, double x);
  2053. struct s1 {int (*f) (int a);};
  2054. struct s2 {int (*f) (double a);};
  2055. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2056. int argc;
  2057. char **argv;
  2058. int
  2059. main ()
  2060. {
  2061. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2062. ;
  2063. return 0;
  2064. }
  2065. _ACEOF
  2066. # Don't try gcc -ansi; that turns off useful extensions and
  2067. # breaks some systems' header files.
  2068. # AIX -qlanglvl=ansi
  2069. # Ultrix and OSF/1 -std1
  2070. # HP-UX 10.20 and later -Ae
  2071. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2072. # SVR4 -Xc -D__EXTENSIONS__
  2073. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2074. do
  2075. CC="$ac_save_CC $ac_arg"
  2076. rm -f conftest.$ac_objext
  2077. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2078. (eval $ac_compile) 2>conftest.er1
  2079. ac_status=$?
  2080. grep -v '^ *+' conftest.er1 >conftest.err
  2081. rm -f conftest.er1
  2082. cat conftest.err >&5
  2083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2084. (exit $ac_status); } &&
  2085. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2086. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2087. (eval $ac_try) 2>&5
  2088. ac_status=$?
  2089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2090. (exit $ac_status); }; } &&
  2091. { ac_try='test -s conftest.$ac_objext'
  2092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2093. (eval $ac_try) 2>&5
  2094. ac_status=$?
  2095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2096. (exit $ac_status); }; }; then
  2097. ac_cv_prog_cc_stdc=$ac_arg
  2098. break
  2099. else
  2100. echo "$as_me: failed program was:" >&5
  2101. sed 's/^/| /' conftest.$ac_ext >&5
  2102. fi
  2103. rm -f conftest.err conftest.$ac_objext
  2104. done
  2105. rm -f conftest.$ac_ext conftest.$ac_objext
  2106. CC=$ac_save_CC
  2107. fi
  2108. case "x$ac_cv_prog_cc_stdc" in
  2109. x|xno)
  2110. echo "$as_me:$LINENO: result: none needed" >&5
  2111. echo "${ECHO_T}none needed" >&6 ;;
  2112. *)
  2113. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2114. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2115. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2116. esac
  2117. # Some people use a C++ compiler to compile C. Since we use `exit',
  2118. # in C++ we need to declare it. In case someone uses the same compiler
  2119. # for both compiling C and C++ we need to have the C++ compiler decide
  2120. # the declaration of exit, since it's the most demanding environment.
  2121. cat >conftest.$ac_ext <<_ACEOF
  2122. #ifndef __cplusplus
  2123. choke me
  2124. #endif
  2125. _ACEOF
  2126. rm -f conftest.$ac_objext
  2127. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2128. (eval $ac_compile) 2>conftest.er1
  2129. ac_status=$?
  2130. grep -v '^ *+' conftest.er1 >conftest.err
  2131. rm -f conftest.er1
  2132. cat conftest.err >&5
  2133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2134. (exit $ac_status); } &&
  2135. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2136. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2137. (eval $ac_try) 2>&5
  2138. ac_status=$?
  2139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2140. (exit $ac_status); }; } &&
  2141. { ac_try='test -s conftest.$ac_objext'
  2142. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2143. (eval $ac_try) 2>&5
  2144. ac_status=$?
  2145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2146. (exit $ac_status); }; }; then
  2147. for ac_declaration in \
  2148. '' \
  2149. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2150. 'extern "C" void std::exit (int); using std::exit;' \
  2151. 'extern "C" void exit (int) throw ();' \
  2152. 'extern "C" void exit (int);' \
  2153. 'void exit (int);'
  2154. do
  2155. cat >conftest.$ac_ext <<_ACEOF
  2156. /* confdefs.h. */
  2157. _ACEOF
  2158. cat confdefs.h >>conftest.$ac_ext
  2159. cat >>conftest.$ac_ext <<_ACEOF
  2160. /* end confdefs.h. */
  2161. $ac_declaration
  2162. #include <stdlib.h>
  2163. int
  2164. main ()
  2165. {
  2166. exit (42);
  2167. ;
  2168. return 0;
  2169. }
  2170. _ACEOF
  2171. rm -f conftest.$ac_objext
  2172. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2173. (eval $ac_compile) 2>conftest.er1
  2174. ac_status=$?
  2175. grep -v '^ *+' conftest.er1 >conftest.err
  2176. rm -f conftest.er1
  2177. cat conftest.err >&5
  2178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2179. (exit $ac_status); } &&
  2180. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2181. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2182. (eval $ac_try) 2>&5
  2183. ac_status=$?
  2184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2185. (exit $ac_status); }; } &&
  2186. { ac_try='test -s conftest.$ac_objext'
  2187. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2188. (eval $ac_try) 2>&5
  2189. ac_status=$?
  2190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2191. (exit $ac_status); }; }; then
  2192. :
  2193. else
  2194. echo "$as_me: failed program was:" >&5
  2195. sed 's/^/| /' conftest.$ac_ext >&5
  2196. continue
  2197. fi
  2198. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2199. cat >conftest.$ac_ext <<_ACEOF
  2200. /* confdefs.h. */
  2201. _ACEOF
  2202. cat confdefs.h >>conftest.$ac_ext
  2203. cat >>conftest.$ac_ext <<_ACEOF
  2204. /* end confdefs.h. */
  2205. $ac_declaration
  2206. int
  2207. main ()
  2208. {
  2209. exit (42);
  2210. ;
  2211. return 0;
  2212. }
  2213. _ACEOF
  2214. rm -f conftest.$ac_objext
  2215. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2216. (eval $ac_compile) 2>conftest.er1
  2217. ac_status=$?
  2218. grep -v '^ *+' conftest.er1 >conftest.err
  2219. rm -f conftest.er1
  2220. cat conftest.err >&5
  2221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2222. (exit $ac_status); } &&
  2223. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2224. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2225. (eval $ac_try) 2>&5
  2226. ac_status=$?
  2227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2228. (exit $ac_status); }; } &&
  2229. { ac_try='test -s conftest.$ac_objext'
  2230. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2231. (eval $ac_try) 2>&5
  2232. ac_status=$?
  2233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2234. (exit $ac_status); }; }; then
  2235. break
  2236. else
  2237. echo "$as_me: failed program was:" >&5
  2238. sed 's/^/| /' conftest.$ac_ext >&5
  2239. fi
  2240. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2241. done
  2242. rm -f conftest*
  2243. if test -n "$ac_declaration"; then
  2244. echo '#ifdef __cplusplus' >>confdefs.h
  2245. echo $ac_declaration >>confdefs.h
  2246. echo '#endif' >>confdefs.h
  2247. fi
  2248. else
  2249. echo "$as_me: failed program was:" >&5
  2250. sed 's/^/| /' conftest.$ac_ext >&5
  2251. fi
  2252. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2253. ac_ext=c
  2254. ac_cpp='$CPP $CPPFLAGS'
  2255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2258. ac_ext=cc
  2259. ac_cpp='$CXXCPP $CPPFLAGS'
  2260. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2261. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2262. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2263. if test -n "$ac_tool_prefix"; then
  2264. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2265. do
  2266. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2267. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2268. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2269. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2270. if test "${ac_cv_prog_CXX+set}" = set; then
  2271. echo $ECHO_N "(cached) $ECHO_C" >&6
  2272. else
  2273. if test -n "$CXX"; then
  2274. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2275. else
  2276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2277. for as_dir in $PATH
  2278. do
  2279. IFS=$as_save_IFS
  2280. test -z "$as_dir" && as_dir=.
  2281. for ac_exec_ext in '' $ac_executable_extensions; do
  2282. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2283. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2284. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2285. break 2
  2286. fi
  2287. done
  2288. done
  2289. fi
  2290. fi
  2291. CXX=$ac_cv_prog_CXX
  2292. if test -n "$CXX"; then
  2293. echo "$as_me:$LINENO: result: $CXX" >&5
  2294. echo "${ECHO_T}$CXX" >&6
  2295. else
  2296. echo "$as_me:$LINENO: result: no" >&5
  2297. echo "${ECHO_T}no" >&6
  2298. fi
  2299. test -n "$CXX" && break
  2300. done
  2301. fi
  2302. if test -z "$CXX"; then
  2303. ac_ct_CXX=$CXX
  2304. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2305. do
  2306. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2307. set dummy $ac_prog; ac_word=$2
  2308. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2309. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2310. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2311. echo $ECHO_N "(cached) $ECHO_C" >&6
  2312. else
  2313. if test -n "$ac_ct_CXX"; then
  2314. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2315. else
  2316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2317. for as_dir in $PATH
  2318. do
  2319. IFS=$as_save_IFS
  2320. test -z "$as_dir" && as_dir=.
  2321. for ac_exec_ext in '' $ac_executable_extensions; do
  2322. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2323. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2324. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2325. break 2
  2326. fi
  2327. done
  2328. done
  2329. fi
  2330. fi
  2331. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2332. if test -n "$ac_ct_CXX"; then
  2333. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2334. echo "${ECHO_T}$ac_ct_CXX" >&6
  2335. else
  2336. echo "$as_me:$LINENO: result: no" >&5
  2337. echo "${ECHO_T}no" >&6
  2338. fi
  2339. test -n "$ac_ct_CXX" && break
  2340. done
  2341. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  2342. CXX=$ac_ct_CXX
  2343. fi
  2344. # Provide some information about the compiler.
  2345. echo "$as_me:$LINENO:" \
  2346. "checking for C++ compiler version" >&5
  2347. ac_compiler=`set X $ac_compile; echo $2`
  2348. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2349. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2350. ac_status=$?
  2351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2352. (exit $ac_status); }
  2353. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2354. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2355. ac_status=$?
  2356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2357. (exit $ac_status); }
  2358. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2359. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2360. ac_status=$?
  2361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2362. (exit $ac_status); }
  2363. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2364. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2365. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2366. echo $ECHO_N "(cached) $ECHO_C" >&6
  2367. else
  2368. cat >conftest.$ac_ext <<_ACEOF
  2369. /* confdefs.h. */
  2370. _ACEOF
  2371. cat confdefs.h >>conftest.$ac_ext
  2372. cat >>conftest.$ac_ext <<_ACEOF
  2373. /* end confdefs.h. */
  2374. int
  2375. main ()
  2376. {
  2377. #ifndef __GNUC__
  2378. choke me
  2379. #endif
  2380. ;
  2381. return 0;
  2382. }
  2383. _ACEOF
  2384. rm -f conftest.$ac_objext
  2385. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2386. (eval $ac_compile) 2>conftest.er1
  2387. ac_status=$?
  2388. grep -v '^ *+' conftest.er1 >conftest.err
  2389. rm -f conftest.er1
  2390. cat conftest.err >&5
  2391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2392. (exit $ac_status); } &&
  2393. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2394. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2395. (eval $ac_try) 2>&5
  2396. ac_status=$?
  2397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2398. (exit $ac_status); }; } &&
  2399. { ac_try='test -s conftest.$ac_objext'
  2400. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2401. (eval $ac_try) 2>&5
  2402. ac_status=$?
  2403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2404. (exit $ac_status); }; }; then
  2405. ac_compiler_gnu=yes
  2406. else
  2407. echo "$as_me: failed program was:" >&5
  2408. sed 's/^/| /' conftest.$ac_ext >&5
  2409. ac_compiler_gnu=no
  2410. fi
  2411. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2412. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2413. fi
  2414. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2415. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2416. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2417. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2418. ac_save_CXXFLAGS=$CXXFLAGS
  2419. CXXFLAGS="-g"
  2420. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2421. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2422. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2423. echo $ECHO_N "(cached) $ECHO_C" >&6
  2424. else
  2425. cat >conftest.$ac_ext <<_ACEOF
  2426. /* confdefs.h. */
  2427. _ACEOF
  2428. cat confdefs.h >>conftest.$ac_ext
  2429. cat >>conftest.$ac_ext <<_ACEOF
  2430. /* end confdefs.h. */
  2431. int
  2432. main ()
  2433. {
  2434. ;
  2435. return 0;
  2436. }
  2437. _ACEOF
  2438. rm -f conftest.$ac_objext
  2439. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2440. (eval $ac_compile) 2>conftest.er1
  2441. ac_status=$?
  2442. grep -v '^ *+' conftest.er1 >conftest.err
  2443. rm -f conftest.er1
  2444. cat conftest.err >&5
  2445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2446. (exit $ac_status); } &&
  2447. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2448. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2449. (eval $ac_try) 2>&5
  2450. ac_status=$?
  2451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2452. (exit $ac_status); }; } &&
  2453. { ac_try='test -s conftest.$ac_objext'
  2454. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2455. (eval $ac_try) 2>&5
  2456. ac_status=$?
  2457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2458. (exit $ac_status); }; }; then
  2459. ac_cv_prog_cxx_g=yes
  2460. else
  2461. echo "$as_me: failed program was:" >&5
  2462. sed 's/^/| /' conftest.$ac_ext >&5
  2463. ac_cv_prog_cxx_g=no
  2464. fi
  2465. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2466. fi
  2467. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2468. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2469. if test "$ac_test_CXXFLAGS" = set; then
  2470. CXXFLAGS=$ac_save_CXXFLAGS
  2471. elif test $ac_cv_prog_cxx_g = yes; then
  2472. if test "$GXX" = yes; then
  2473. CXXFLAGS="-g -O2"
  2474. else
  2475. CXXFLAGS="-g"
  2476. fi
  2477. else
  2478. if test "$GXX" = yes; then
  2479. CXXFLAGS="-O2"
  2480. else
  2481. CXXFLAGS=
  2482. fi
  2483. fi
  2484. for ac_declaration in \
  2485. '' \
  2486. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2487. 'extern "C" void std::exit (int); using std::exit;' \
  2488. 'extern "C" void exit (int) throw ();' \
  2489. 'extern "C" void exit (int);' \
  2490. 'void exit (int);'
  2491. do
  2492. cat >conftest.$ac_ext <<_ACEOF
  2493. /* confdefs.h. */
  2494. _ACEOF
  2495. cat confdefs.h >>conftest.$ac_ext
  2496. cat >>conftest.$ac_ext <<_ACEOF
  2497. /* end confdefs.h. */
  2498. $ac_declaration
  2499. #include <stdlib.h>
  2500. int
  2501. main ()
  2502. {
  2503. exit (42);
  2504. ;
  2505. return 0;
  2506. }
  2507. _ACEOF
  2508. rm -f conftest.$ac_objext
  2509. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2510. (eval $ac_compile) 2>conftest.er1
  2511. ac_status=$?
  2512. grep -v '^ *+' conftest.er1 >conftest.err
  2513. rm -f conftest.er1
  2514. cat conftest.err >&5
  2515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2516. (exit $ac_status); } &&
  2517. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2518. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2519. (eval $ac_try) 2>&5
  2520. ac_status=$?
  2521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2522. (exit $ac_status); }; } &&
  2523. { ac_try='test -s conftest.$ac_objext'
  2524. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2525. (eval $ac_try) 2>&5
  2526. ac_status=$?
  2527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2528. (exit $ac_status); }; }; then
  2529. :
  2530. else
  2531. echo "$as_me: failed program was:" >&5
  2532. sed 's/^/| /' conftest.$ac_ext >&5
  2533. continue
  2534. fi
  2535. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2536. cat >conftest.$ac_ext <<_ACEOF
  2537. /* confdefs.h. */
  2538. _ACEOF
  2539. cat confdefs.h >>conftest.$ac_ext
  2540. cat >>conftest.$ac_ext <<_ACEOF
  2541. /* end confdefs.h. */
  2542. $ac_declaration
  2543. int
  2544. main ()
  2545. {
  2546. exit (42);
  2547. ;
  2548. return 0;
  2549. }
  2550. _ACEOF
  2551. rm -f conftest.$ac_objext
  2552. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2553. (eval $ac_compile) 2>conftest.er1
  2554. ac_status=$?
  2555. grep -v '^ *+' conftest.er1 >conftest.err
  2556. rm -f conftest.er1
  2557. cat conftest.err >&5
  2558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2559. (exit $ac_status); } &&
  2560. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2561. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2562. (eval $ac_try) 2>&5
  2563. ac_status=$?
  2564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2565. (exit $ac_status); }; } &&
  2566. { ac_try='test -s conftest.$ac_objext'
  2567. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2568. (eval $ac_try) 2>&5
  2569. ac_status=$?
  2570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2571. (exit $ac_status); }; }; then
  2572. break
  2573. else
  2574. echo "$as_me: failed program was:" >&5
  2575. sed 's/^/| /' conftest.$ac_ext >&5
  2576. fi
  2577. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2578. done
  2579. rm -f conftest*
  2580. if test -n "$ac_declaration"; then
  2581. echo '#ifdef __cplusplus' >>confdefs.h
  2582. echo $ac_declaration >>confdefs.h
  2583. echo '#endif' >>confdefs.h
  2584. fi
  2585. ac_ext=c
  2586. ac_cpp='$CPP $CPPFLAGS'
  2587. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2588. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2589. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2590. if test "$CXX" != ""; then
  2591. HAVE_CPLUSPLUS_TRUE=
  2592. HAVE_CPLUSPLUS_FALSE='#'
  2593. else
  2594. HAVE_CPLUSPLUS_TRUE='#'
  2595. HAVE_CPLUSPLUS_FALSE=
  2596. fi
  2597. if test -n "$ac_tool_prefix"; then
  2598. # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
  2599. set dummy ${ac_tool_prefix}ld; ac_word=$2
  2600. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2601. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2602. if test "${ac_cv_prog_LD+set}" = set; then
  2603. echo $ECHO_N "(cached) $ECHO_C" >&6
  2604. else
  2605. if test -n "$LD"; then
  2606. ac_cv_prog_LD="$LD" # Let the user override the test.
  2607. else
  2608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2609. for as_dir in $PATH
  2610. do
  2611. IFS=$as_save_IFS
  2612. test -z "$as_dir" && as_dir=.
  2613. for ac_exec_ext in '' $ac_executable_extensions; do
  2614. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2615. ac_cv_prog_LD="${ac_tool_prefix}ld"
  2616. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2617. break 2
  2618. fi
  2619. done
  2620. done
  2621. fi
  2622. fi
  2623. LD=$ac_cv_prog_LD
  2624. if test -n "$LD"; then
  2625. echo "$as_me:$LINENO: result: $LD" >&5
  2626. echo "${ECHO_T}$LD" >&6
  2627. else
  2628. echo "$as_me:$LINENO: result: no" >&5
  2629. echo "${ECHO_T}no" >&6
  2630. fi
  2631. fi
  2632. if test -z "$ac_cv_prog_LD"; then
  2633. ac_ct_LD=$LD
  2634. # Extract the first word of "ld", so it can be a program name with args.
  2635. set dummy ld; ac_word=$2
  2636. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2637. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2638. if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
  2639. echo $ECHO_N "(cached) $ECHO_C" >&6
  2640. else
  2641. if test -n "$ac_ct_LD"; then
  2642. ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
  2643. else
  2644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2645. for as_dir in $PATH
  2646. do
  2647. IFS=$as_save_IFS
  2648. test -z "$as_dir" && as_dir=.
  2649. for ac_exec_ext in '' $ac_executable_extensions; do
  2650. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2651. ac_cv_prog_ac_ct_LD="ld"
  2652. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2653. break 2
  2654. fi
  2655. done
  2656. done
  2657. test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
  2658. fi
  2659. fi
  2660. ac_ct_LD=$ac_cv_prog_ac_ct_LD
  2661. if test -n "$ac_ct_LD"; then
  2662. echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
  2663. echo "${ECHO_T}$ac_ct_LD" >&6
  2664. else
  2665. echo "$as_me:$LINENO: result: no" >&5
  2666. echo "${ECHO_T}no" >&6
  2667. fi
  2668. LD=$ac_ct_LD
  2669. else
  2670. LD="$ac_cv_prog_LD"
  2671. fi
  2672. PACKAGE=dpkg
  2673. VERSION=`cat $srcdir/version-nr`
  2674. # Check whether --enable-largefile or --disable-largefile was given.
  2675. if test "${enable_largefile+set}" = set; then
  2676. enableval="$enable_largefile"
  2677. fi;
  2678. if test "$enable_largefile" != no; then
  2679. echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  2680. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
  2681. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  2682. echo $ECHO_N "(cached) $ECHO_C" >&6
  2683. else
  2684. ac_cv_sys_largefile_CC=no
  2685. if test "$GCC" != yes; then
  2686. ac_save_CC=$CC
  2687. while :; do
  2688. # IRIX 6.2 and later do not support large files by default,
  2689. # so use the C compiler's -n32 option if that helps.
  2690. cat >conftest.$ac_ext <<_ACEOF
  2691. /* confdefs.h. */
  2692. _ACEOF
  2693. cat confdefs.h >>conftest.$ac_ext
  2694. cat >>conftest.$ac_ext <<_ACEOF
  2695. /* end confdefs.h. */
  2696. #include <sys/types.h>
  2697. /* Check that off_t can represent 2**63 - 1 correctly.
  2698. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  2699. since some C++ compilers masquerading as C compilers
  2700. incorrectly reject 9223372036854775807. */
  2701. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  2702. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  2703. && LARGE_OFF_T % 2147483647 == 1)
  2704. ? 1 : -1];
  2705. int
  2706. main ()
  2707. {
  2708. ;
  2709. return 0;
  2710. }
  2711. _ACEOF
  2712. rm -f conftest.$ac_objext
  2713. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2714. (eval $ac_compile) 2>conftest.er1
  2715. ac_status=$?
  2716. grep -v '^ *+' conftest.er1 >conftest.err
  2717. rm -f conftest.er1
  2718. cat conftest.err >&5
  2719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2720. (exit $ac_status); } &&
  2721. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2722. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2723. (eval $ac_try) 2>&5
  2724. ac_status=$?
  2725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2726. (exit $ac_status); }; } &&
  2727. { ac_try='test -s conftest.$ac_objext'
  2728. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2729. (eval $ac_try) 2>&5
  2730. ac_status=$?
  2731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2732. (exit $ac_status); }; }; then
  2733. break
  2734. else
  2735. echo "$as_me: failed program was:" >&5
  2736. sed 's/^/| /' conftest.$ac_ext >&5
  2737. fi
  2738. rm -f conftest.err conftest.$ac_objext
  2739. CC="$CC -n32"
  2740. rm -f conftest.$ac_objext
  2741. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2742. (eval $ac_compile) 2>conftest.er1
  2743. ac_status=$?
  2744. grep -v '^ *+' conftest.er1 >conftest.err
  2745. rm -f conftest.er1
  2746. cat conftest.err >&5
  2747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2748. (exit $ac_status); } &&
  2749. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2750. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2751. (eval $ac_try) 2>&5
  2752. ac_status=$?
  2753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2754. (exit $ac_status); }; } &&
  2755. { ac_try='test -s conftest.$ac_objext'
  2756. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2757. (eval $ac_try) 2>&5
  2758. ac_status=$?
  2759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2760. (exit $ac_status); }; }; then
  2761. ac_cv_sys_largefile_CC=' -n32'; break
  2762. else
  2763. echo "$as_me: failed program was:" >&5
  2764. sed 's/^/| /' conftest.$ac_ext >&5
  2765. fi
  2766. rm -f conftest.err conftest.$ac_objext
  2767. break
  2768. done
  2769. CC=$ac_save_CC
  2770. rm -f conftest.$ac_ext
  2771. fi
  2772. fi
  2773. echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  2774. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  2775. if test "$ac_cv_sys_largefile_CC" != no; then
  2776. CC=$CC$ac_cv_sys_largefile_CC
  2777. fi
  2778. echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  2779. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
  2780. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  2781. echo $ECHO_N "(cached) $ECHO_C" >&6
  2782. else
  2783. while :; do
  2784. ac_cv_sys_file_offset_bits=no
  2785. cat >conftest.$ac_ext <<_ACEOF
  2786. /* confdefs.h. */
  2787. _ACEOF
  2788. cat confdefs.h >>conftest.$ac_ext
  2789. cat >>conftest.$ac_ext <<_ACEOF
  2790. /* end confdefs.h. */
  2791. #include <sys/types.h>
  2792. /* Check that off_t can represent 2**63 - 1 correctly.
  2793. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  2794. since some C++ compilers masquerading as C compilers
  2795. incorrectly reject 9223372036854775807. */
  2796. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  2797. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  2798. && LARGE_OFF_T % 2147483647 == 1)
  2799. ? 1 : -1];
  2800. int
  2801. main ()
  2802. {
  2803. ;
  2804. return 0;
  2805. }
  2806. _ACEOF
  2807. rm -f conftest.$ac_objext
  2808. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2809. (eval $ac_compile) 2>conftest.er1
  2810. ac_status=$?
  2811. grep -v '^ *+' conftest.er1 >conftest.err
  2812. rm -f conftest.er1
  2813. cat conftest.err >&5
  2814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2815. (exit $ac_status); } &&
  2816. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2817. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2818. (eval $ac_try) 2>&5
  2819. ac_status=$?
  2820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2821. (exit $ac_status); }; } &&
  2822. { ac_try='test -s conftest.$ac_objext'
  2823. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2824. (eval $ac_try) 2>&5
  2825. ac_status=$?
  2826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2827. (exit $ac_status); }; }; then
  2828. break
  2829. else
  2830. echo "$as_me: failed program was:" >&5
  2831. sed 's/^/| /' conftest.$ac_ext >&5
  2832. fi
  2833. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2834. cat >conftest.$ac_ext <<_ACEOF
  2835. /* confdefs.h. */
  2836. _ACEOF
  2837. cat confdefs.h >>conftest.$ac_ext
  2838. cat >>conftest.$ac_ext <<_ACEOF
  2839. /* end confdefs.h. */
  2840. #define _FILE_OFFSET_BITS 64
  2841. #include <sys/types.h>
  2842. /* Check that off_t can represent 2**63 - 1 correctly.
  2843. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  2844. since some C++ compilers masquerading as C compilers
  2845. incorrectly reject 9223372036854775807. */
  2846. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  2847. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  2848. && LARGE_OFF_T % 2147483647 == 1)
  2849. ? 1 : -1];
  2850. int
  2851. main ()
  2852. {
  2853. ;
  2854. return 0;
  2855. }
  2856. _ACEOF
  2857. rm -f conftest.$ac_objext
  2858. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2859. (eval $ac_compile) 2>conftest.er1
  2860. ac_status=$?
  2861. grep -v '^ *+' conftest.er1 >conftest.err
  2862. rm -f conftest.er1
  2863. cat conftest.err >&5
  2864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2865. (exit $ac_status); } &&
  2866. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2867. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2868. (eval $ac_try) 2>&5
  2869. ac_status=$?
  2870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2871. (exit $ac_status); }; } &&
  2872. { ac_try='test -s conftest.$ac_objext'
  2873. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2874. (eval $ac_try) 2>&5
  2875. ac_status=$?
  2876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2877. (exit $ac_status); }; }; then
  2878. ac_cv_sys_file_offset_bits=64; break
  2879. else
  2880. echo "$as_me: failed program was:" >&5
  2881. sed 's/^/| /' conftest.$ac_ext >&5
  2882. fi
  2883. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2884. break
  2885. done
  2886. fi
  2887. echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  2888. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
  2889. if test "$ac_cv_sys_file_offset_bits" != no; then
  2890. cat >>confdefs.h <<_ACEOF
  2891. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  2892. _ACEOF
  2893. fi
  2894. rm -f conftest*
  2895. echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  2896. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
  2897. if test "${ac_cv_sys_large_files+set}" = set; then
  2898. echo $ECHO_N "(cached) $ECHO_C" >&6
  2899. else
  2900. while :; do
  2901. ac_cv_sys_large_files=no
  2902. cat >conftest.$ac_ext <<_ACEOF
  2903. /* confdefs.h. */
  2904. _ACEOF
  2905. cat confdefs.h >>conftest.$ac_ext
  2906. cat >>conftest.$ac_ext <<_ACEOF
  2907. /* end confdefs.h. */
  2908. #include <sys/types.h>
  2909. /* Check that off_t can represent 2**63 - 1 correctly.
  2910. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  2911. since some C++ compilers masquerading as C compilers
  2912. incorrectly reject 9223372036854775807. */
  2913. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  2914. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  2915. && LARGE_OFF_T % 2147483647 == 1)
  2916. ? 1 : -1];
  2917. int
  2918. main ()
  2919. {
  2920. ;
  2921. return 0;
  2922. }
  2923. _ACEOF
  2924. rm -f conftest.$ac_objext
  2925. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2926. (eval $ac_compile) 2>conftest.er1
  2927. ac_status=$?
  2928. grep -v '^ *+' conftest.er1 >conftest.err
  2929. rm -f conftest.er1
  2930. cat conftest.err >&5
  2931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2932. (exit $ac_status); } &&
  2933. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2934. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2935. (eval $ac_try) 2>&5
  2936. ac_status=$?
  2937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2938. (exit $ac_status); }; } &&
  2939. { ac_try='test -s conftest.$ac_objext'
  2940. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2941. (eval $ac_try) 2>&5
  2942. ac_status=$?
  2943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2944. (exit $ac_status); }; }; then
  2945. break
  2946. else
  2947. echo "$as_me: failed program was:" >&5
  2948. sed 's/^/| /' conftest.$ac_ext >&5
  2949. fi
  2950. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2951. cat >conftest.$ac_ext <<_ACEOF
  2952. /* confdefs.h. */
  2953. _ACEOF
  2954. cat confdefs.h >>conftest.$ac_ext
  2955. cat >>conftest.$ac_ext <<_ACEOF
  2956. /* end confdefs.h. */
  2957. #define _LARGE_FILES 1
  2958. #include <sys/types.h>
  2959. /* Check that off_t can represent 2**63 - 1 correctly.
  2960. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  2961. since some C++ compilers masquerading as C compilers
  2962. incorrectly reject 9223372036854775807. */
  2963. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  2964. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  2965. && LARGE_OFF_T % 2147483647 == 1)
  2966. ? 1 : -1];
  2967. int
  2968. main ()
  2969. {
  2970. ;
  2971. return 0;
  2972. }
  2973. _ACEOF
  2974. rm -f conftest.$ac_objext
  2975. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2976. (eval $ac_compile) 2>conftest.er1
  2977. ac_status=$?
  2978. grep -v '^ *+' conftest.er1 >conftest.err
  2979. rm -f conftest.er1
  2980. cat conftest.err >&5
  2981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2982. (exit $ac_status); } &&
  2983. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2985. (eval $ac_try) 2>&5
  2986. ac_status=$?
  2987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2988. (exit $ac_status); }; } &&
  2989. { ac_try='test -s conftest.$ac_objext'
  2990. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2991. (eval $ac_try) 2>&5
  2992. ac_status=$?
  2993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2994. (exit $ac_status); }; }; then
  2995. ac_cv_sys_large_files=1; break
  2996. else
  2997. echo "$as_me: failed program was:" >&5
  2998. sed 's/^/| /' conftest.$ac_ext >&5
  2999. fi
  3000. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3001. break
  3002. done
  3003. fi
  3004. echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  3005. echo "${ECHO_T}$ac_cv_sys_large_files" >&6
  3006. if test "$ac_cv_sys_large_files" != no; then
  3007. cat >>confdefs.h <<_ACEOF
  3008. #define _LARGE_FILES $ac_cv_sys_large_files
  3009. _ACEOF
  3010. fi
  3011. rm -f conftest*
  3012. fi
  3013. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  3014. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  3015. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  3016. { (exit 1); exit 1; }; }
  3017. fi
  3018. cat >>confdefs.h <<_ACEOF
  3019. #define PACKAGE "$PACKAGE"
  3020. _ACEOF
  3021. cat >>confdefs.h <<_ACEOF
  3022. #define VERSION "$VERSION"
  3023. _ACEOF
  3024. test "$program_prefix" != NONE &&
  3025. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  3026. # Use a double $ so make ignores it.
  3027. test "$program_suffix" != NONE &&
  3028. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  3029. # Double any \ or $. echo might interpret backslashes.
  3030. # By default was `s,x,x', remove it if useless.
  3031. cat <<\_ACEOF >conftest.sed
  3032. s/[\\$]/&&/g;s/;s,x,x,$//
  3033. _ACEOF
  3034. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  3035. rm conftest.sed
  3036. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3037. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  3038. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  3039. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  3040. echo $ECHO_N "(cached) $ECHO_C" >&6
  3041. else
  3042. cat >conftest.make <<\_ACEOF
  3043. all:
  3044. @echo 'ac_maketemp="$(MAKE)"'
  3045. _ACEOF
  3046. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3047. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  3048. if test -n "$ac_maketemp"; then
  3049. eval ac_cv_prog_make_${ac_make}_set=yes
  3050. else
  3051. eval ac_cv_prog_make_${ac_make}_set=no
  3052. fi
  3053. rm -f conftest.make
  3054. fi
  3055. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  3056. echo "$as_me:$LINENO: result: yes" >&5
  3057. echo "${ECHO_T}yes" >&6
  3058. SET_MAKE=
  3059. else
  3060. echo "$as_me:$LINENO: result: no" >&5
  3061. echo "${ECHO_T}no" >&6
  3062. SET_MAKE="MAKE=${MAKE-make}"
  3063. fi
  3064. echo "$as_me:$LINENO: checking dpkg version" >&5
  3065. echo $ECHO_N "checking dpkg version... $ECHO_C" >&6
  3066. echo "$as_me:$LINENO: result: $VERSION" >&5
  3067. echo "${ECHO_T}$VERSION" >&6
  3068. # OpenBSD has decided to be odd and includ a version number
  3069. # in the final field of the GNU system type.
  3070. # This code strips it out in a generic way.
  3071. os_type=''
  3072. echo "$as_me:$LINENO: checking Operating system type" >&5
  3073. echo $ECHO_N "checking Operating system type... $ECHO_C" >&6
  3074. case $target_os in
  3075. *linux-gnu* )
  3076. os_type="linux-gnu";;
  3077. *linux* )
  3078. os_type="linux-gnu";;
  3079. *openbsd* )
  3080. os_type="openbsd";;
  3081. *knetbsd*-gnu* )
  3082. os_type="knetbsd-gnu";;
  3083. *netbsd* )
  3084. os_type="netbsd";;
  3085. *kfreebsd*-gnu* )
  3086. os_type="kfreebsd-gnu";;
  3087. *freebsd* )
  3088. os_type="freebsd";;
  3089. gnu )
  3090. os_type="hurd";;
  3091. esac
  3092. if test "x$os_type" = "x"; then
  3093. os_type=$target_os
  3094. fi
  3095. echo "$as_me:$LINENO: result: $os_type" >&5
  3096. echo "${ECHO_T}$os_type" >&6
  3097. dpkg_archset=''
  3098. echo "$as_me:$LINENO: checking Debian architecture" >&5
  3099. echo $ECHO_N "checking Debian architecture... $ECHO_C" >&6
  3100. dpkg_archset="`awk '$1 == "'$target_cpu-$os_type'" { print $2 }' $srcdir/archtable`"
  3101. # Finish off
  3102. if test "x$dpkg_archset" = "x"; then
  3103. echo "$as_me:$LINENO: result: $target_cpu-$os_type, but not found in archtable" >&5
  3104. echo "${ECHO_T}$target_cpu-$os_type, but not found in archtable" >&6
  3105. dpkg_archset=$target_cpu-$os_type
  3106. else
  3107. echo "$as_me:$LINENO: result: $dpkg_archset" >&5
  3108. echo "${ECHO_T}$dpkg_archset" >&6
  3109. fi
  3110. cat >>confdefs.h <<_ACEOF
  3111. #define ARCHITECTURE "${dpkg_archset}"
  3112. _ACEOF
  3113. ALL_LINGUAS="ca cs da de el en es fr gl he it ja ko nl nn pl pt pt_BR ru sv zh_CN"
  3114. # Find a good install program. We prefer a C program (faster),
  3115. # so one script is as good as another. But avoid the broken or
  3116. # incompatible versions:
  3117. # SysV /etc/install, /usr/sbin/install
  3118. # SunOS /usr/etc/install
  3119. # IRIX /sbin/install
  3120. # AIX /bin/install
  3121. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3122. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3123. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3124. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3125. # OS/2's system install, which has a completely different semantic
  3126. # ./install, which can be erroneously created by make from ./install.sh.
  3127. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3128. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  3129. if test -z "$INSTALL"; then
  3130. if test "${ac_cv_path_install+set}" = set; then
  3131. echo $ECHO_N "(cached) $ECHO_C" >&6
  3132. else
  3133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3134. for as_dir in $PATH
  3135. do
  3136. IFS=$as_save_IFS
  3137. test -z "$as_dir" && as_dir=.
  3138. # Account for people who put trailing slashes in PATH elements.
  3139. case $as_dir/ in
  3140. ./ | .// | /cC/* | \
  3141. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3142. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3143. /usr/ucb/* ) ;;
  3144. *)
  3145. # OSF1 and SCO ODT 3.0 have their own names for install.
  3146. # Don't use installbsd from OSF since it installs stuff as root
  3147. # by default.
  3148. for ac_prog in ginstall scoinst install; do
  3149. for ac_exec_ext in '' $ac_executable_extensions; do
  3150. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3151. if test $ac_prog = install &&
  3152. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3153. # AIX install. It has an incompatible calling convention.
  3154. :
  3155. elif test $ac_prog = install &&
  3156. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3157. # program-specific install script used by HP pwplus--don't use.
  3158. :
  3159. else
  3160. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3161. break 3
  3162. fi
  3163. fi
  3164. done
  3165. done
  3166. ;;
  3167. esac
  3168. done
  3169. fi
  3170. if test "${ac_cv_path_install+set}" = set; then
  3171. INSTALL=$ac_cv_path_install
  3172. else
  3173. # As a last resort, use the slow shell script. We don't cache a
  3174. # path for INSTALL within a source directory, because that will
  3175. # break other packages using the cache if that directory is
  3176. # removed, or if the path is relative.
  3177. INSTALL=$ac_install_sh
  3178. fi
  3179. fi
  3180. echo "$as_me:$LINENO: result: $INSTALL" >&5
  3181. echo "${ECHO_T}$INSTALL" >&6
  3182. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3183. # It thinks the first close brace ends the variable substitution.
  3184. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3185. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3186. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3187. MKINSTALLDIRS=
  3188. if test -n "$ac_aux_dir"; then
  3189. case "$ac_aux_dir" in
  3190. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  3191. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  3192. esac
  3193. fi
  3194. if test -z "$MKINSTALLDIRS"; then
  3195. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  3196. fi
  3197. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  3198. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  3199. # Check whether --enable-nls or --disable-nls was given.
  3200. if test "${enable_nls+set}" = set; then
  3201. enableval="$enable_nls"
  3202. USE_NLS=$enableval
  3203. else
  3204. USE_NLS=yes
  3205. fi;
  3206. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  3207. echo "${ECHO_T}$USE_NLS" >&6
  3208. # Prepare PATH_SEPARATOR.
  3209. # The user is always right.
  3210. if test "${PATH_SEPARATOR+set}" != set; then
  3211. echo "#! /bin/sh" >conf$$.sh
  3212. echo "exit 0" >>conf$$.sh
  3213. chmod +x conf$$.sh
  3214. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  3215. PATH_SEPARATOR=';'
  3216. else
  3217. PATH_SEPARATOR=:
  3218. fi
  3219. rm -f conf$$.sh
  3220. fi
  3221. # Find out how to test for executable files. Don't use a zero-byte file,
  3222. # as systems may use methods other than mode bits to determine executability.
  3223. cat >conf$$.file <<_ASEOF
  3224. #! /bin/sh
  3225. exit 0
  3226. _ASEOF
  3227. chmod +x conf$$.file
  3228. if test -x conf$$.file >/dev/null 2>&1; then
  3229. ac_executable_p="test -x"
  3230. else
  3231. ac_executable_p="test -f"
  3232. fi
  3233. rm -f conf$$.file
  3234. # Extract the first word of "msgfmt", so it can be a program name with args.
  3235. set dummy msgfmt; ac_word=$2
  3236. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3237. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3238. if test "${ac_cv_path_MSGFMT+set}" = set; then
  3239. echo $ECHO_N "(cached) $ECHO_C" >&6
  3240. else
  3241. case "$MSGFMT" in
  3242. [\\/]* | ?:[\\/]*)
  3243. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  3244. ;;
  3245. *)
  3246. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  3247. for ac_dir in $PATH; do
  3248. IFS="$ac_save_IFS"
  3249. test -z "$ac_dir" && ac_dir=.
  3250. for ac_exec_ext in '' $ac_executable_extensions; do
  3251. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  3252. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  3253. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  3254. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  3255. break 2
  3256. fi
  3257. fi
  3258. done
  3259. done
  3260. IFS="$ac_save_IFS"
  3261. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  3262. ;;
  3263. esac
  3264. fi
  3265. MSGFMT="$ac_cv_path_MSGFMT"
  3266. if test "$MSGFMT" != ":"; then
  3267. echo "$as_me:$LINENO: result: $MSGFMT" >&5
  3268. echo "${ECHO_T}$MSGFMT" >&6
  3269. else
  3270. echo "$as_me:$LINENO: result: no" >&5
  3271. echo "${ECHO_T}no" >&6
  3272. fi
  3273. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  3274. set dummy gmsgfmt; ac_word=$2
  3275. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3276. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3277. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  3278. echo $ECHO_N "(cached) $ECHO_C" >&6
  3279. else
  3280. case $GMSGFMT in
  3281. [\\/]* | ?:[\\/]*)
  3282. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3283. ;;
  3284. *)
  3285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3286. for as_dir in $PATH
  3287. do
  3288. IFS=$as_save_IFS
  3289. test -z "$as_dir" && as_dir=.
  3290. for ac_exec_ext in '' $ac_executable_extensions; do
  3291. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3292. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  3293. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3294. break 2
  3295. fi
  3296. done
  3297. done
  3298. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  3299. ;;
  3300. esac
  3301. fi
  3302. GMSGFMT=$ac_cv_path_GMSGFMT
  3303. if test -n "$GMSGFMT"; then
  3304. echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  3305. echo "${ECHO_T}$GMSGFMT" >&6
  3306. else
  3307. echo "$as_me:$LINENO: result: no" >&5
  3308. echo "${ECHO_T}no" >&6
  3309. fi
  3310. # Prepare PATH_SEPARATOR.
  3311. # The user is always right.
  3312. if test "${PATH_SEPARATOR+set}" != set; then
  3313. echo "#! /bin/sh" >conf$$.sh
  3314. echo "exit 0" >>conf$$.sh
  3315. chmod +x conf$$.sh
  3316. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  3317. PATH_SEPARATOR=';'
  3318. else
  3319. PATH_SEPARATOR=:
  3320. fi
  3321. rm -f conf$$.sh
  3322. fi
  3323. # Find out how to test for executable files. Don't use a zero-byte file,
  3324. # as systems may use methods other than mode bits to determine executability.
  3325. cat >conf$$.file <<_ASEOF
  3326. #! /bin/sh
  3327. exit 0
  3328. _ASEOF
  3329. chmod +x conf$$.file
  3330. if test -x conf$$.file >/dev/null 2>&1; then
  3331. ac_executable_p="test -x"
  3332. else
  3333. ac_executable_p="test -f"
  3334. fi
  3335. rm -f conf$$.file
  3336. # Extract the first word of "xgettext", so it can be a program name with args.
  3337. set dummy xgettext; ac_word=$2
  3338. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3339. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3340. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  3341. echo $ECHO_N "(cached) $ECHO_C" >&6
  3342. else
  3343. case "$XGETTEXT" in
  3344. [\\/]* | ?:[\\/]*)
  3345. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3346. ;;
  3347. *)
  3348. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  3349. for ac_dir in $PATH; do
  3350. IFS="$ac_save_IFS"
  3351. test -z "$ac_dir" && ac_dir=.
  3352. for ac_exec_ext in '' $ac_executable_extensions; do
  3353. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  3354. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  3355. (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
  3356. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  3357. break 2
  3358. fi
  3359. fi
  3360. done
  3361. done
  3362. IFS="$ac_save_IFS"
  3363. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  3364. ;;
  3365. esac
  3366. fi
  3367. XGETTEXT="$ac_cv_path_XGETTEXT"
  3368. if test "$XGETTEXT" != ":"; then
  3369. echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  3370. echo "${ECHO_T}$XGETTEXT" >&6
  3371. else
  3372. echo "$as_me:$LINENO: result: no" >&5
  3373. echo "${ECHO_T}no" >&6
  3374. fi
  3375. rm -f messages.po
  3376. # Prepare PATH_SEPARATOR.
  3377. # The user is always right.
  3378. if test "${PATH_SEPARATOR+set}" != set; then
  3379. echo "#! /bin/sh" >conf$$.sh
  3380. echo "exit 0" >>conf$$.sh
  3381. chmod +x conf$$.sh
  3382. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  3383. PATH_SEPARATOR=';'
  3384. else
  3385. PATH_SEPARATOR=:
  3386. fi
  3387. rm -f conf$$.sh
  3388. fi
  3389. # Find out how to test for executable files. Don't use a zero-byte file,
  3390. # as systems may use methods other than mode bits to determine executability.
  3391. cat >conf$$.file <<_ASEOF
  3392. #! /bin/sh
  3393. exit 0
  3394. _ASEOF
  3395. chmod +x conf$$.file
  3396. if test -x conf$$.file >/dev/null 2>&1; then
  3397. ac_executable_p="test -x"
  3398. else
  3399. ac_executable_p="test -f"
  3400. fi
  3401. rm -f conf$$.file
  3402. # Extract the first word of "msgmerge", so it can be a program name with args.
  3403. set dummy msgmerge; ac_word=$2
  3404. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3405. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3406. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  3407. echo $ECHO_N "(cached) $ECHO_C" >&6
  3408. else
  3409. case "$MSGMERGE" in
  3410. [\\/]* | ?:[\\/]*)
  3411. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  3412. ;;
  3413. *)
  3414. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  3415. for ac_dir in $PATH; do
  3416. IFS="$ac_save_IFS"
  3417. test -z "$ac_dir" && ac_dir=.
  3418. for ac_exec_ext in '' $ac_executable_extensions; do
  3419. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  3420. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  3421. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  3422. break 2
  3423. fi
  3424. fi
  3425. done
  3426. done
  3427. IFS="$ac_save_IFS"
  3428. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  3429. ;;
  3430. esac
  3431. fi
  3432. MSGMERGE="$ac_cv_path_MSGMERGE"
  3433. if test "$MSGMERGE" != ":"; then
  3434. echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  3435. echo "${ECHO_T}$MSGMERGE" >&6
  3436. else
  3437. echo "$as_me:$LINENO: result: no" >&5
  3438. echo "${ECHO_T}no" >&6
  3439. fi
  3440. if test "$GMSGFMT" != ":"; then
  3441. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  3442. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  3443. : ;
  3444. else
  3445. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  3446. echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  3447. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
  3448. GMSGFMT=":"
  3449. fi
  3450. fi
  3451. if test "$XGETTEXT" != ":"; then
  3452. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  3453. (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
  3454. : ;
  3455. else
  3456. echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  3457. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
  3458. XGETTEXT=":"
  3459. fi
  3460. rm -f messages.po
  3461. fi
  3462. ac_config_commands="$ac_config_commands default-1"
  3463. if test "X$prefix" = "XNONE"; then
  3464. acl_final_prefix="$ac_default_prefix"
  3465. else
  3466. acl_final_prefix="$prefix"
  3467. fi
  3468. if test "X$exec_prefix" = "XNONE"; then
  3469. acl_final_exec_prefix='${prefix}'
  3470. else
  3471. acl_final_exec_prefix="$exec_prefix"
  3472. fi
  3473. acl_save_prefix="$prefix"
  3474. prefix="$acl_final_prefix"
  3475. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  3476. prefix="$acl_save_prefix"
  3477. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  3478. if test "${with_gnu_ld+set}" = set; then
  3479. withval="$with_gnu_ld"
  3480. test "$withval" = no || with_gnu_ld=yes
  3481. else
  3482. with_gnu_ld=no
  3483. fi;
  3484. # Prepare PATH_SEPARATOR.
  3485. # The user is always right.
  3486. if test "${PATH_SEPARATOR+set}" != set; then
  3487. echo "#! /bin/sh" >conf$$.sh
  3488. echo "exit 0" >>conf$$.sh
  3489. chmod +x conf$$.sh
  3490. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  3491. PATH_SEPARATOR=';'
  3492. else
  3493. PATH_SEPARATOR=:
  3494. fi
  3495. rm -f conf$$.sh
  3496. fi
  3497. ac_prog=ld
  3498. if test "$GCC" = yes; then
  3499. # Check if gcc -print-prog-name=ld gives a path.
  3500. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  3501. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  3502. case $host in
  3503. *-*-mingw*)
  3504. # gcc leaves a trailing carriage return which upsets mingw
  3505. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3506. *)
  3507. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3508. esac
  3509. case $ac_prog in
  3510. # Accept absolute paths.
  3511. [\\/]* | [A-Za-z]:[\\/]*)
  3512. re_direlt='/[^/][^/]*/\.\./'
  3513. # Canonicalize the path of ld
  3514. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  3515. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3516. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  3517. done
  3518. test -z "$LD" && LD="$ac_prog"
  3519. ;;
  3520. "")
  3521. # If it fails, then pretend we aren't using GCC.
  3522. ac_prog=ld
  3523. ;;
  3524. *)
  3525. # If it is relative, then search for the first ld in PATH.
  3526. with_gnu_ld=unknown
  3527. ;;
  3528. esac
  3529. elif test "$with_gnu_ld" = yes; then
  3530. echo "$as_me:$LINENO: checking for GNU ld" >&5
  3531. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  3532. else
  3533. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3534. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  3535. fi
  3536. if test "${acl_cv_path_LD+set}" = set; then
  3537. echo $ECHO_N "(cached) $ECHO_C" >&6
  3538. else
  3539. if test -z "$LD"; then
  3540. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  3541. for ac_dir in $PATH; do
  3542. test -z "$ac_dir" && ac_dir=.
  3543. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3544. acl_cv_path_LD="$ac_dir/$ac_prog"
  3545. # Check to see if the program is GNU ld. I'd rather use --version,
  3546. # but apparently some GNU ld's only accept -v.
  3547. # Break only if it was the GNU/non-GNU ld that we prefer.
  3548. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  3549. *GNU* | *'with BFD'*)
  3550. test "$with_gnu_ld" != no && break ;;
  3551. *)
  3552. test "$with_gnu_ld" != yes && break ;;
  3553. esac
  3554. fi
  3555. done
  3556. IFS="$ac_save_ifs"
  3557. else
  3558. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  3559. fi
  3560. fi
  3561. LD="$acl_cv_path_LD"
  3562. if test -n "$LD"; then
  3563. echo "$as_me:$LINENO: result: $LD" >&5
  3564. echo "${ECHO_T}$LD" >&6
  3565. else
  3566. echo "$as_me:$LINENO: result: no" >&5
  3567. echo "${ECHO_T}no" >&6
  3568. fi
  3569. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3570. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3571. { (exit 1); exit 1; }; }
  3572. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3573. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  3574. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  3575. echo $ECHO_N "(cached) $ECHO_C" >&6
  3576. else
  3577. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  3578. case `$LD -v 2>&1 </dev/null` in
  3579. *GNU* | *'with BFD'*)
  3580. acl_cv_prog_gnu_ld=yes ;;
  3581. *)
  3582. acl_cv_prog_gnu_ld=no ;;
  3583. esac
  3584. fi
  3585. echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  3586. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
  3587. with_gnu_ld=$acl_cv_prog_gnu_ld
  3588. echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  3589. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
  3590. if test "${acl_cv_rpath+set}" = set; then
  3591. echo $ECHO_N "(cached) $ECHO_C" >&6
  3592. else
  3593. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  3594. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  3595. . ./conftest.sh
  3596. rm -f ./conftest.sh
  3597. acl_cv_rpath=done
  3598. fi
  3599. echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  3600. echo "${ECHO_T}$acl_cv_rpath" >&6
  3601. wl="$acl_cv_wl"
  3602. libext="$acl_cv_libext"
  3603. shlibext="$acl_cv_shlibext"
  3604. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  3605. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  3606. hardcode_direct="$acl_cv_hardcode_direct"
  3607. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  3608. # Check whether --enable-rpath or --disable-rpath was given.
  3609. if test "${enable_rpath+set}" = set; then
  3610. enableval="$enable_rpath"
  3611. :
  3612. else
  3613. enable_rpath=yes
  3614. fi;
  3615. use_additional=yes
  3616. acl_save_prefix="$prefix"
  3617. prefix="$acl_final_prefix"
  3618. acl_save_exec_prefix="$exec_prefix"
  3619. exec_prefix="$acl_final_exec_prefix"
  3620. eval additional_includedir=\"$includedir\"
  3621. eval additional_libdir=\"$libdir\"
  3622. exec_prefix="$acl_save_exec_prefix"
  3623. prefix="$acl_save_prefix"
  3624. # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
  3625. if test "${with_libiconv_prefix+set}" = set; then
  3626. withval="$with_libiconv_prefix"
  3627. if test "X$withval" = "Xno"; then
  3628. use_additional=no
  3629. else
  3630. if test "X$withval" = "X"; then
  3631. acl_save_prefix="$prefix"
  3632. prefix="$acl_final_prefix"
  3633. acl_save_exec_prefix="$exec_prefix"
  3634. exec_prefix="$acl_final_exec_prefix"
  3635. eval additional_includedir=\"$includedir\"
  3636. eval additional_libdir=\"$libdir\"
  3637. exec_prefix="$acl_save_exec_prefix"
  3638. prefix="$acl_save_prefix"
  3639. else
  3640. additional_includedir="$withval/include"
  3641. additional_libdir="$withval/lib"
  3642. fi
  3643. fi
  3644. fi;
  3645. LIBICONV=
  3646. LTLIBICONV=
  3647. INCICONV=
  3648. rpathdirs=
  3649. ltrpathdirs=
  3650. names_already_handled=
  3651. names_next_round='iconv '
  3652. while test -n "$names_next_round"; do
  3653. names_this_round="$names_next_round"
  3654. names_next_round=
  3655. for name in $names_this_round; do
  3656. already_handled=
  3657. for n in $names_already_handled; do
  3658. if test "$n" = "$name"; then
  3659. already_handled=yes
  3660. break
  3661. fi
  3662. done
  3663. if test -z "$already_handled"; then
  3664. names_already_handled="$names_already_handled $name"
  3665. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  3666. eval value=\"\$HAVE_LIB$uppername\"
  3667. if test -n "$value"; then
  3668. if test "$value" = yes; then
  3669. eval value=\"\$LIB$uppername\"
  3670. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  3671. eval value=\"\$LTLIB$uppername\"
  3672. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  3673. else
  3674. :
  3675. fi
  3676. else
  3677. found_dir=
  3678. found_la=
  3679. found_so=
  3680. found_a=
  3681. if test $use_additional = yes; then
  3682. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  3683. found_dir="$additional_libdir"
  3684. found_so="$additional_libdir/lib$name.$shlibext"
  3685. if test -f "$additional_libdir/lib$name.la"; then
  3686. found_la="$additional_libdir/lib$name.la"
  3687. fi
  3688. else
  3689. if test -f "$additional_libdir/lib$name.$libext"; then
  3690. found_dir="$additional_libdir"
  3691. found_a="$additional_libdir/lib$name.$libext"
  3692. if test -f "$additional_libdir/lib$name.la"; then
  3693. found_la="$additional_libdir/lib$name.la"
  3694. fi
  3695. fi
  3696. fi
  3697. fi
  3698. if test "X$found_dir" = "X"; then
  3699. for x in $LDFLAGS $LTLIBICONV; do
  3700. acl_save_prefix="$prefix"
  3701. prefix="$acl_final_prefix"
  3702. acl_save_exec_prefix="$exec_prefix"
  3703. exec_prefix="$acl_final_exec_prefix"
  3704. eval x=\"$x\"
  3705. exec_prefix="$acl_save_exec_prefix"
  3706. prefix="$acl_save_prefix"
  3707. case "$x" in
  3708. -L*)
  3709. dir=`echo "X$x" | sed -e 's/^X-L//'`
  3710. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  3711. found_dir="$dir"
  3712. found_so="$dir/lib$name.$shlibext"
  3713. if test -f "$dir/lib$name.la"; then
  3714. found_la="$dir/lib$name.la"
  3715. fi
  3716. else
  3717. if test -f "$dir/lib$name.$libext"; then
  3718. found_dir="$dir"
  3719. found_a="$dir/lib$name.$libext"
  3720. if test -f "$dir/lib$name.la"; then
  3721. found_la="$dir/lib$name.la"
  3722. fi
  3723. fi
  3724. fi
  3725. ;;
  3726. esac
  3727. if test "X$found_dir" != "X"; then
  3728. break
  3729. fi
  3730. done
  3731. fi
  3732. if test "X$found_dir" != "X"; then
  3733. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  3734. if test "X$found_so" != "X"; then
  3735. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  3736. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  3737. else
  3738. haveit=
  3739. for x in $ltrpathdirs; do
  3740. if test "X$x" = "X$found_dir"; then
  3741. haveit=yes
  3742. break
  3743. fi
  3744. done
  3745. if test -z "$haveit"; then
  3746. ltrpathdirs="$ltrpathdirs $found_dir"
  3747. fi
  3748. if test "$hardcode_direct" = yes; then
  3749. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  3750. else
  3751. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  3752. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  3753. haveit=
  3754. for x in $rpathdirs; do
  3755. if test "X$x" = "X$found_dir"; then
  3756. haveit=yes
  3757. break
  3758. fi
  3759. done
  3760. if test -z "$haveit"; then
  3761. rpathdirs="$rpathdirs $found_dir"
  3762. fi
  3763. else
  3764. haveit=
  3765. for x in $LDFLAGS $LIBICONV; do
  3766. acl_save_prefix="$prefix"
  3767. prefix="$acl_final_prefix"
  3768. acl_save_exec_prefix="$exec_prefix"
  3769. exec_prefix="$acl_final_exec_prefix"
  3770. eval x=\"$x\"
  3771. exec_prefix="$acl_save_exec_prefix"
  3772. prefix="$acl_save_prefix"
  3773. if test "X$x" = "X-L$found_dir"; then
  3774. haveit=yes
  3775. break
  3776. fi
  3777. done
  3778. if test -z "$haveit"; then
  3779. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  3780. fi
  3781. if test "$hardcode_minus_L" != no; then
  3782. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  3783. else
  3784. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  3785. fi
  3786. fi
  3787. fi
  3788. fi
  3789. else
  3790. if test "X$found_a" != "X"; then
  3791. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  3792. else
  3793. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  3794. fi
  3795. fi
  3796. additional_includedir=
  3797. case "$found_dir" in
  3798. */lib | */lib/)
  3799. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  3800. additional_includedir="$basedir/include"
  3801. ;;
  3802. esac
  3803. if test "X$additional_includedir" != "X"; then
  3804. if test "X$additional_includedir" != "X/usr/include"; then
  3805. haveit=
  3806. if test "X$additional_includedir" = "X/usr/local/include"; then
  3807. if test -n "$GCC"; then
  3808. case $host_os in
  3809. linux*) haveit=yes;;
  3810. esac
  3811. fi
  3812. fi
  3813. if test -z "$haveit"; then
  3814. for x in $CPPFLAGS $INCICONV; do
  3815. acl_save_prefix="$prefix"
  3816. prefix="$acl_final_prefix"
  3817. acl_save_exec_prefix="$exec_prefix"
  3818. exec_prefix="$acl_final_exec_prefix"
  3819. eval x=\"$x\"
  3820. exec_prefix="$acl_save_exec_prefix"
  3821. prefix="$acl_save_prefix"
  3822. if test "X$x" = "X-I$additional_includedir"; then
  3823. haveit=yes
  3824. break
  3825. fi
  3826. done
  3827. if test -z "$haveit"; then
  3828. if test -d "$additional_includedir"; then
  3829. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  3830. fi
  3831. fi
  3832. fi
  3833. fi
  3834. fi
  3835. if test -n "$found_la"; then
  3836. save_libdir="$libdir"
  3837. case "$found_la" in
  3838. */* | *\\*) . "$found_la" ;;
  3839. *) . "./$found_la" ;;
  3840. esac
  3841. libdir="$save_libdir"
  3842. for dep in $dependency_libs; do
  3843. case "$dep" in
  3844. -L*)
  3845. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  3846. if test "X$additional_libdir" != "X/usr/lib"; then
  3847. haveit=
  3848. if test "X$additional_libdir" = "X/usr/local/lib"; then
  3849. if test -n "$GCC"; then
  3850. case $host_os in
  3851. linux*) haveit=yes;;
  3852. esac
  3853. fi
  3854. fi
  3855. if test -z "$haveit"; then
  3856. haveit=
  3857. for x in $LDFLAGS $LIBICONV; do
  3858. acl_save_prefix="$prefix"
  3859. prefix="$acl_final_prefix"
  3860. acl_save_exec_prefix="$exec_prefix"
  3861. exec_prefix="$acl_final_exec_prefix"
  3862. eval x=\"$x\"
  3863. exec_prefix="$acl_save_exec_prefix"
  3864. prefix="$acl_save_prefix"
  3865. if test "X$x" = "X-L$additional_libdir"; then
  3866. haveit=yes
  3867. break
  3868. fi
  3869. done
  3870. if test -z "$haveit"; then
  3871. if test -d "$additional_libdir"; then
  3872. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  3873. fi
  3874. fi
  3875. haveit=
  3876. for x in $LDFLAGS $LTLIBICONV; do
  3877. acl_save_prefix="$prefix"
  3878. prefix="$acl_final_prefix"
  3879. acl_save_exec_prefix="$exec_prefix"
  3880. exec_prefix="$acl_final_exec_prefix"
  3881. eval x=\"$x\"
  3882. exec_prefix="$acl_save_exec_prefix"
  3883. prefix="$acl_save_prefix"
  3884. if test "X$x" = "X-L$additional_libdir"; then
  3885. haveit=yes
  3886. break
  3887. fi
  3888. done
  3889. if test -z "$haveit"; then
  3890. if test -d "$additional_libdir"; then
  3891. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  3892. fi
  3893. fi
  3894. fi
  3895. fi
  3896. ;;
  3897. -R*)
  3898. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  3899. if test "$enable_rpath" != no; then
  3900. haveit=
  3901. for x in $rpathdirs; do
  3902. if test "X$x" = "X$dir"; then
  3903. haveit=yes
  3904. break
  3905. fi
  3906. done
  3907. if test -z "$haveit"; then
  3908. rpathdirs="$rpathdirs $dir"
  3909. fi
  3910. haveit=
  3911. for x in $ltrpathdirs; do
  3912. if test "X$x" = "X$dir"; then
  3913. haveit=yes
  3914. break
  3915. fi
  3916. done
  3917. if test -z "$haveit"; then
  3918. ltrpathdirs="$ltrpathdirs $dir"
  3919. fi
  3920. fi
  3921. ;;
  3922. -l*)
  3923. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  3924. ;;
  3925. *.la)
  3926. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  3927. ;;
  3928. *)
  3929. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  3930. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  3931. ;;
  3932. esac
  3933. done
  3934. fi
  3935. else
  3936. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  3937. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  3938. fi
  3939. fi
  3940. fi
  3941. done
  3942. done
  3943. if test "X$rpathdirs" != "X"; then
  3944. if test -n "$hardcode_libdir_separator"; then
  3945. alldirs=
  3946. for found_dir in $rpathdirs; do
  3947. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  3948. done
  3949. acl_save_libdir="$libdir"
  3950. libdir="$alldirs"
  3951. eval flag=\"$hardcode_libdir_flag_spec\"
  3952. libdir="$acl_save_libdir"
  3953. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  3954. else
  3955. for found_dir in $rpathdirs; do
  3956. acl_save_libdir="$libdir"
  3957. libdir="$found_dir"
  3958. eval flag=\"$hardcode_libdir_flag_spec\"
  3959. libdir="$acl_save_libdir"
  3960. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  3961. done
  3962. fi
  3963. fi
  3964. if test "X$ltrpathdirs" != "X"; then
  3965. for found_dir in $ltrpathdirs; do
  3966. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  3967. done
  3968. fi
  3969. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  3970. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  3971. # Check whether --enable-nls or --disable-nls was given.
  3972. if test "${enable_nls+set}" = set; then
  3973. enableval="$enable_nls"
  3974. USE_NLS=$enableval
  3975. else
  3976. USE_NLS=yes
  3977. fi;
  3978. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  3979. echo "${ECHO_T}$USE_NLS" >&6
  3980. LIBINTL=
  3981. LTLIBINTL=
  3982. POSUB=
  3983. if test "$USE_NLS" = "yes"; then
  3984. gt_use_preinstalled_gnugettext=no
  3985. echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  3986. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
  3987. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  3988. echo $ECHO_N "(cached) $ECHO_C" >&6
  3989. else
  3990. cat >conftest.$ac_ext <<_ACEOF
  3991. /* confdefs.h. */
  3992. _ACEOF
  3993. cat confdefs.h >>conftest.$ac_ext
  3994. cat >>conftest.$ac_ext <<_ACEOF
  3995. /* end confdefs.h. */
  3996. #include <libintl.h>
  3997. extern int _nl_msg_cat_cntr;
  3998. extern int *_nl_domain_bindings;
  3999. int
  4000. main ()
  4001. {
  4002. bindtextdomain ("", "");
  4003. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  4004. ;
  4005. return 0;
  4006. }
  4007. _ACEOF
  4008. rm -f conftest.$ac_objext conftest$ac_exeext
  4009. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4010. (eval $ac_link) 2>conftest.er1
  4011. ac_status=$?
  4012. grep -v '^ *+' conftest.er1 >conftest.err
  4013. rm -f conftest.er1
  4014. cat conftest.err >&5
  4015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4016. (exit $ac_status); } &&
  4017. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4018. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4019. (eval $ac_try) 2>&5
  4020. ac_status=$?
  4021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4022. (exit $ac_status); }; } &&
  4023. { ac_try='test -s conftest$ac_exeext'
  4024. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4025. (eval $ac_try) 2>&5
  4026. ac_status=$?
  4027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4028. (exit $ac_status); }; }; then
  4029. gt_cv_func_gnugettext1_libc=yes
  4030. else
  4031. echo "$as_me: failed program was:" >&5
  4032. sed 's/^/| /' conftest.$ac_ext >&5
  4033. gt_cv_func_gnugettext1_libc=no
  4034. fi
  4035. rm -f conftest.err conftest.$ac_objext \
  4036. conftest$ac_exeext conftest.$ac_ext
  4037. fi
  4038. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  4039. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
  4040. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  4041. am_save_CPPFLAGS="$CPPFLAGS"
  4042. for element in $INCICONV; do
  4043. haveit=
  4044. for x in $CPPFLAGS; do
  4045. acl_save_prefix="$prefix"
  4046. prefix="$acl_final_prefix"
  4047. acl_save_exec_prefix="$exec_prefix"
  4048. exec_prefix="$acl_final_exec_prefix"
  4049. eval x=\"$x\"
  4050. exec_prefix="$acl_save_exec_prefix"
  4051. prefix="$acl_save_prefix"
  4052. if test "X$x" = "X$element"; then
  4053. haveit=yes
  4054. break
  4055. fi
  4056. done
  4057. if test -z "$haveit"; then
  4058. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  4059. fi
  4060. done
  4061. echo "$as_me:$LINENO: checking for iconv" >&5
  4062. echo $ECHO_N "checking for iconv... $ECHO_C" >&6
  4063. if test "${am_cv_func_iconv+set}" = set; then
  4064. echo $ECHO_N "(cached) $ECHO_C" >&6
  4065. else
  4066. am_cv_func_iconv="no, consider installing GNU libiconv"
  4067. am_cv_lib_iconv=no
  4068. cat >conftest.$ac_ext <<_ACEOF
  4069. /* confdefs.h. */
  4070. _ACEOF
  4071. cat confdefs.h >>conftest.$ac_ext
  4072. cat >>conftest.$ac_ext <<_ACEOF
  4073. /* end confdefs.h. */
  4074. #include <stdlib.h>
  4075. #include <iconv.h>
  4076. int
  4077. main ()
  4078. {
  4079. iconv_t cd = iconv_open("","");
  4080. iconv(cd,NULL,NULL,NULL,NULL);
  4081. iconv_close(cd);
  4082. ;
  4083. return 0;
  4084. }
  4085. _ACEOF
  4086. rm -f conftest.$ac_objext conftest$ac_exeext
  4087. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4088. (eval $ac_link) 2>conftest.er1
  4089. ac_status=$?
  4090. grep -v '^ *+' conftest.er1 >conftest.err
  4091. rm -f conftest.er1
  4092. cat conftest.err >&5
  4093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4094. (exit $ac_status); } &&
  4095. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4096. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4097. (eval $ac_try) 2>&5
  4098. ac_status=$?
  4099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4100. (exit $ac_status); }; } &&
  4101. { ac_try='test -s conftest$ac_exeext'
  4102. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4103. (eval $ac_try) 2>&5
  4104. ac_status=$?
  4105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4106. (exit $ac_status); }; }; then
  4107. am_cv_func_iconv=yes
  4108. else
  4109. echo "$as_me: failed program was:" >&5
  4110. sed 's/^/| /' conftest.$ac_ext >&5
  4111. fi
  4112. rm -f conftest.err conftest.$ac_objext \
  4113. conftest$ac_exeext conftest.$ac_ext
  4114. if test "$am_cv_func_iconv" != yes; then
  4115. am_save_LIBS="$LIBS"
  4116. LIBS="$LIBS $LIBICONV"
  4117. cat >conftest.$ac_ext <<_ACEOF
  4118. /* confdefs.h. */
  4119. _ACEOF
  4120. cat confdefs.h >>conftest.$ac_ext
  4121. cat >>conftest.$ac_ext <<_ACEOF
  4122. /* end confdefs.h. */
  4123. #include <stdlib.h>
  4124. #include <iconv.h>
  4125. int
  4126. main ()
  4127. {
  4128. iconv_t cd = iconv_open("","");
  4129. iconv(cd,NULL,NULL,NULL,NULL);
  4130. iconv_close(cd);
  4131. ;
  4132. return 0;
  4133. }
  4134. _ACEOF
  4135. rm -f conftest.$ac_objext conftest$ac_exeext
  4136. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4137. (eval $ac_link) 2>conftest.er1
  4138. ac_status=$?
  4139. grep -v '^ *+' conftest.er1 >conftest.err
  4140. rm -f conftest.er1
  4141. cat conftest.err >&5
  4142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4143. (exit $ac_status); } &&
  4144. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4145. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4146. (eval $ac_try) 2>&5
  4147. ac_status=$?
  4148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4149. (exit $ac_status); }; } &&
  4150. { ac_try='test -s conftest$ac_exeext'
  4151. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4152. (eval $ac_try) 2>&5
  4153. ac_status=$?
  4154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4155. (exit $ac_status); }; }; then
  4156. am_cv_lib_iconv=yes
  4157. am_cv_func_iconv=yes
  4158. else
  4159. echo "$as_me: failed program was:" >&5
  4160. sed 's/^/| /' conftest.$ac_ext >&5
  4161. fi
  4162. rm -f conftest.err conftest.$ac_objext \
  4163. conftest$ac_exeext conftest.$ac_ext
  4164. LIBS="$am_save_LIBS"
  4165. fi
  4166. fi
  4167. echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  4168. echo "${ECHO_T}$am_cv_func_iconv" >&6
  4169. if test "$am_cv_func_iconv" = yes; then
  4170. cat >>confdefs.h <<\_ACEOF
  4171. #define HAVE_ICONV 1
  4172. _ACEOF
  4173. fi
  4174. if test "$am_cv_lib_iconv" = yes; then
  4175. echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  4176. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
  4177. echo "$as_me:$LINENO: result: $LIBICONV" >&5
  4178. echo "${ECHO_T}$LIBICONV" >&6
  4179. else
  4180. CPPFLAGS="$am_save_CPPFLAGS"
  4181. LIBICONV=
  4182. LTLIBICONV=
  4183. fi
  4184. use_additional=yes
  4185. acl_save_prefix="$prefix"
  4186. prefix="$acl_final_prefix"
  4187. acl_save_exec_prefix="$exec_prefix"
  4188. exec_prefix="$acl_final_exec_prefix"
  4189. eval additional_includedir=\"$includedir\"
  4190. eval additional_libdir=\"$libdir\"
  4191. exec_prefix="$acl_save_exec_prefix"
  4192. prefix="$acl_save_prefix"
  4193. # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
  4194. if test "${with_libintl_prefix+set}" = set; then
  4195. withval="$with_libintl_prefix"
  4196. if test "X$withval" = "Xno"; then
  4197. use_additional=no
  4198. else
  4199. if test "X$withval" = "X"; then
  4200. acl_save_prefix="$prefix"
  4201. prefix="$acl_final_prefix"
  4202. acl_save_exec_prefix="$exec_prefix"
  4203. exec_prefix="$acl_final_exec_prefix"
  4204. eval additional_includedir=\"$includedir\"
  4205. eval additional_libdir=\"$libdir\"
  4206. exec_prefix="$acl_save_exec_prefix"
  4207. prefix="$acl_save_prefix"
  4208. else
  4209. additional_includedir="$withval/include"
  4210. additional_libdir="$withval/lib"
  4211. fi
  4212. fi
  4213. fi;
  4214. LIBINTL=
  4215. LTLIBINTL=
  4216. INCINTL=
  4217. rpathdirs=
  4218. ltrpathdirs=
  4219. names_already_handled=
  4220. names_next_round='intl '
  4221. while test -n "$names_next_round"; do
  4222. names_this_round="$names_next_round"
  4223. names_next_round=
  4224. for name in $names_this_round; do
  4225. already_handled=
  4226. for n in $names_already_handled; do
  4227. if test "$n" = "$name"; then
  4228. already_handled=yes
  4229. break
  4230. fi
  4231. done
  4232. if test -z "$already_handled"; then
  4233. names_already_handled="$names_already_handled $name"
  4234. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  4235. eval value=\"\$HAVE_LIB$uppername\"
  4236. if test -n "$value"; then
  4237. if test "$value" = yes; then
  4238. eval value=\"\$LIB$uppername\"
  4239. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  4240. eval value=\"\$LTLIB$uppername\"
  4241. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  4242. else
  4243. :
  4244. fi
  4245. else
  4246. found_dir=
  4247. found_la=
  4248. found_so=
  4249. found_a=
  4250. if test $use_additional = yes; then
  4251. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  4252. found_dir="$additional_libdir"
  4253. found_so="$additional_libdir/lib$name.$shlibext"
  4254. if test -f "$additional_libdir/lib$name.la"; then
  4255. found_la="$additional_libdir/lib$name.la"
  4256. fi
  4257. else
  4258. if test -f "$additional_libdir/lib$name.$libext"; then
  4259. found_dir="$additional_libdir"
  4260. found_a="$additional_libdir/lib$name.$libext"
  4261. if test -f "$additional_libdir/lib$name.la"; then
  4262. found_la="$additional_libdir/lib$name.la"
  4263. fi
  4264. fi
  4265. fi
  4266. fi
  4267. if test "X$found_dir" = "X"; then
  4268. for x in $LDFLAGS $LTLIBINTL; do
  4269. acl_save_prefix="$prefix"
  4270. prefix="$acl_final_prefix"
  4271. acl_save_exec_prefix="$exec_prefix"
  4272. exec_prefix="$acl_final_exec_prefix"
  4273. eval x=\"$x\"
  4274. exec_prefix="$acl_save_exec_prefix"
  4275. prefix="$acl_save_prefix"
  4276. case "$x" in
  4277. -L*)
  4278. dir=`echo "X$x" | sed -e 's/^X-L//'`
  4279. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  4280. found_dir="$dir"
  4281. found_so="$dir/lib$name.$shlibext"
  4282. if test -f "$dir/lib$name.la"; then
  4283. found_la="$dir/lib$name.la"
  4284. fi
  4285. else
  4286. if test -f "$dir/lib$name.$libext"; then
  4287. found_dir="$dir"
  4288. found_a="$dir/lib$name.$libext"
  4289. if test -f "$dir/lib$name.la"; then
  4290. found_la="$dir/lib$name.la"
  4291. fi
  4292. fi
  4293. fi
  4294. ;;
  4295. esac
  4296. if test "X$found_dir" != "X"; then
  4297. break
  4298. fi
  4299. done
  4300. fi
  4301. if test "X$found_dir" != "X"; then
  4302. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  4303. if test "X$found_so" != "X"; then
  4304. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  4305. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  4306. else
  4307. haveit=
  4308. for x in $ltrpathdirs; do
  4309. if test "X$x" = "X$found_dir"; then
  4310. haveit=yes
  4311. break
  4312. fi
  4313. done
  4314. if test -z "$haveit"; then
  4315. ltrpathdirs="$ltrpathdirs $found_dir"
  4316. fi
  4317. if test "$hardcode_direct" = yes; then
  4318. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  4319. else
  4320. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  4321. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  4322. haveit=
  4323. for x in $rpathdirs; do
  4324. if test "X$x" = "X$found_dir"; then
  4325. haveit=yes
  4326. break
  4327. fi
  4328. done
  4329. if test -z "$haveit"; then
  4330. rpathdirs="$rpathdirs $found_dir"
  4331. fi
  4332. else
  4333. haveit=
  4334. for x in $LDFLAGS $LIBINTL; do
  4335. acl_save_prefix="$prefix"
  4336. prefix="$acl_final_prefix"
  4337. acl_save_exec_prefix="$exec_prefix"
  4338. exec_prefix="$acl_final_exec_prefix"
  4339. eval x=\"$x\"
  4340. exec_prefix="$acl_save_exec_prefix"
  4341. prefix="$acl_save_prefix"
  4342. if test "X$x" = "X-L$found_dir"; then
  4343. haveit=yes
  4344. break
  4345. fi
  4346. done
  4347. if test -z "$haveit"; then
  4348. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  4349. fi
  4350. if test "$hardcode_minus_L" != no; then
  4351. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  4352. else
  4353. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  4354. fi
  4355. fi
  4356. fi
  4357. fi
  4358. else
  4359. if test "X$found_a" != "X"; then
  4360. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  4361. else
  4362. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  4363. fi
  4364. fi
  4365. additional_includedir=
  4366. case "$found_dir" in
  4367. */lib | */lib/)
  4368. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  4369. additional_includedir="$basedir/include"
  4370. ;;
  4371. esac
  4372. if test "X$additional_includedir" != "X"; then
  4373. if test "X$additional_includedir" != "X/usr/include"; then
  4374. haveit=
  4375. if test "X$additional_includedir" = "X/usr/local/include"; then
  4376. if test -n "$GCC"; then
  4377. case $host_os in
  4378. linux*) haveit=yes;;
  4379. esac
  4380. fi
  4381. fi
  4382. if test -z "$haveit"; then
  4383. for x in $CPPFLAGS $INCINTL; do
  4384. acl_save_prefix="$prefix"
  4385. prefix="$acl_final_prefix"
  4386. acl_save_exec_prefix="$exec_prefix"
  4387. exec_prefix="$acl_final_exec_prefix"
  4388. eval x=\"$x\"
  4389. exec_prefix="$acl_save_exec_prefix"
  4390. prefix="$acl_save_prefix"
  4391. if test "X$x" = "X-I$additional_includedir"; then
  4392. haveit=yes
  4393. break
  4394. fi
  4395. done
  4396. if test -z "$haveit"; then
  4397. if test -d "$additional_includedir"; then
  4398. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  4399. fi
  4400. fi
  4401. fi
  4402. fi
  4403. fi
  4404. if test -n "$found_la"; then
  4405. save_libdir="$libdir"
  4406. case "$found_la" in
  4407. */* | *\\*) . "$found_la" ;;
  4408. *) . "./$found_la" ;;
  4409. esac
  4410. libdir="$save_libdir"
  4411. for dep in $dependency_libs; do
  4412. case "$dep" in
  4413. -L*)
  4414. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  4415. if test "X$additional_libdir" != "X/usr/lib"; then
  4416. haveit=
  4417. if test "X$additional_libdir" = "X/usr/local/lib"; then
  4418. if test -n "$GCC"; then
  4419. case $host_os in
  4420. linux*) haveit=yes;;
  4421. esac
  4422. fi
  4423. fi
  4424. if test -z "$haveit"; then
  4425. haveit=
  4426. for x in $LDFLAGS $LIBINTL; do
  4427. acl_save_prefix="$prefix"
  4428. prefix="$acl_final_prefix"
  4429. acl_save_exec_prefix="$exec_prefix"
  4430. exec_prefix="$acl_final_exec_prefix"
  4431. eval x=\"$x\"
  4432. exec_prefix="$acl_save_exec_prefix"
  4433. prefix="$acl_save_prefix"
  4434. if test "X$x" = "X-L$additional_libdir"; then
  4435. haveit=yes
  4436. break
  4437. fi
  4438. done
  4439. if test -z "$haveit"; then
  4440. if test -d "$additional_libdir"; then
  4441. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  4442. fi
  4443. fi
  4444. haveit=
  4445. for x in $LDFLAGS $LTLIBINTL; do
  4446. acl_save_prefix="$prefix"
  4447. prefix="$acl_final_prefix"
  4448. acl_save_exec_prefix="$exec_prefix"
  4449. exec_prefix="$acl_final_exec_prefix"
  4450. eval x=\"$x\"
  4451. exec_prefix="$acl_save_exec_prefix"
  4452. prefix="$acl_save_prefix"
  4453. if test "X$x" = "X-L$additional_libdir"; then
  4454. haveit=yes
  4455. break
  4456. fi
  4457. done
  4458. if test -z "$haveit"; then
  4459. if test -d "$additional_libdir"; then
  4460. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  4461. fi
  4462. fi
  4463. fi
  4464. fi
  4465. ;;
  4466. -R*)
  4467. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  4468. if test "$enable_rpath" != no; then
  4469. haveit=
  4470. for x in $rpathdirs; do
  4471. if test "X$x" = "X$dir"; then
  4472. haveit=yes
  4473. break
  4474. fi
  4475. done
  4476. if test -z "$haveit"; then
  4477. rpathdirs="$rpathdirs $dir"
  4478. fi
  4479. haveit=
  4480. for x in $ltrpathdirs; do
  4481. if test "X$x" = "X$dir"; then
  4482. haveit=yes
  4483. break
  4484. fi
  4485. done
  4486. if test -z "$haveit"; then
  4487. ltrpathdirs="$ltrpathdirs $dir"
  4488. fi
  4489. fi
  4490. ;;
  4491. -l*)
  4492. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  4493. ;;
  4494. *.la)
  4495. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  4496. ;;
  4497. *)
  4498. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  4499. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  4500. ;;
  4501. esac
  4502. done
  4503. fi
  4504. else
  4505. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  4506. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  4507. fi
  4508. fi
  4509. fi
  4510. done
  4511. done
  4512. if test "X$rpathdirs" != "X"; then
  4513. if test -n "$hardcode_libdir_separator"; then
  4514. alldirs=
  4515. for found_dir in $rpathdirs; do
  4516. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  4517. done
  4518. acl_save_libdir="$libdir"
  4519. libdir="$alldirs"
  4520. eval flag=\"$hardcode_libdir_flag_spec\"
  4521. libdir="$acl_save_libdir"
  4522. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  4523. else
  4524. for found_dir in $rpathdirs; do
  4525. acl_save_libdir="$libdir"
  4526. libdir="$found_dir"
  4527. eval flag=\"$hardcode_libdir_flag_spec\"
  4528. libdir="$acl_save_libdir"
  4529. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  4530. done
  4531. fi
  4532. fi
  4533. if test "X$ltrpathdirs" != "X"; then
  4534. for found_dir in $ltrpathdirs; do
  4535. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  4536. done
  4537. fi
  4538. echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  4539. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
  4540. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  4541. echo $ECHO_N "(cached) $ECHO_C" >&6
  4542. else
  4543. gt_save_CPPFLAGS="$CPPFLAGS"
  4544. CPPFLAGS="$CPPFLAGS $INCINTL"
  4545. gt_save_LIBS="$LIBS"
  4546. LIBS="$LIBS $LIBINTL"
  4547. cat >conftest.$ac_ext <<_ACEOF
  4548. /* confdefs.h. */
  4549. _ACEOF
  4550. cat confdefs.h >>conftest.$ac_ext
  4551. cat >>conftest.$ac_ext <<_ACEOF
  4552. /* end confdefs.h. */
  4553. #include <libintl.h>
  4554. extern int _nl_msg_cat_cntr;
  4555. extern
  4556. #ifdef __cplusplus
  4557. "C"
  4558. #endif
  4559. const char *_nl_expand_alias ();
  4560. int
  4561. main ()
  4562. {
  4563. bindtextdomain ("", "");
  4564. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  4565. ;
  4566. return 0;
  4567. }
  4568. _ACEOF
  4569. rm -f conftest.$ac_objext conftest$ac_exeext
  4570. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4571. (eval $ac_link) 2>conftest.er1
  4572. ac_status=$?
  4573. grep -v '^ *+' conftest.er1 >conftest.err
  4574. rm -f conftest.er1
  4575. cat conftest.err >&5
  4576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4577. (exit $ac_status); } &&
  4578. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4579. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4580. (eval $ac_try) 2>&5
  4581. ac_status=$?
  4582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4583. (exit $ac_status); }; } &&
  4584. { ac_try='test -s conftest$ac_exeext'
  4585. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4586. (eval $ac_try) 2>&5
  4587. ac_status=$?
  4588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4589. (exit $ac_status); }; }; then
  4590. gt_cv_func_gnugettext1_libintl=yes
  4591. else
  4592. echo "$as_me: failed program was:" >&5
  4593. sed 's/^/| /' conftest.$ac_ext >&5
  4594. gt_cv_func_gnugettext1_libintl=no
  4595. fi
  4596. rm -f conftest.err conftest.$ac_objext \
  4597. conftest$ac_exeext conftest.$ac_ext
  4598. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  4599. LIBS="$LIBS $LIBICONV"
  4600. cat >conftest.$ac_ext <<_ACEOF
  4601. /* confdefs.h. */
  4602. _ACEOF
  4603. cat confdefs.h >>conftest.$ac_ext
  4604. cat >>conftest.$ac_ext <<_ACEOF
  4605. /* end confdefs.h. */
  4606. #include <libintl.h>
  4607. extern int _nl_msg_cat_cntr;
  4608. extern
  4609. #ifdef __cplusplus
  4610. "C"
  4611. #endif
  4612. const char *_nl_expand_alias ();
  4613. int
  4614. main ()
  4615. {
  4616. bindtextdomain ("", "");
  4617. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  4618. ;
  4619. return 0;
  4620. }
  4621. _ACEOF
  4622. rm -f conftest.$ac_objext conftest$ac_exeext
  4623. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4624. (eval $ac_link) 2>conftest.er1
  4625. ac_status=$?
  4626. grep -v '^ *+' conftest.er1 >conftest.err
  4627. rm -f conftest.er1
  4628. cat conftest.err >&5
  4629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4630. (exit $ac_status); } &&
  4631. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4632. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4633. (eval $ac_try) 2>&5
  4634. ac_status=$?
  4635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4636. (exit $ac_status); }; } &&
  4637. { ac_try='test -s conftest$ac_exeext'
  4638. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4639. (eval $ac_try) 2>&5
  4640. ac_status=$?
  4641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4642. (exit $ac_status); }; }; then
  4643. LIBINTL="$LIBINTL $LIBICONV"
  4644. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  4645. gt_cv_func_gnugettext1_libintl=yes
  4646. else
  4647. echo "$as_me: failed program was:" >&5
  4648. sed 's/^/| /' conftest.$ac_ext >&5
  4649. fi
  4650. rm -f conftest.err conftest.$ac_objext \
  4651. conftest$ac_exeext conftest.$ac_ext
  4652. fi
  4653. CPPFLAGS="$gt_save_CPPFLAGS"
  4654. LIBS="$gt_save_LIBS"
  4655. fi
  4656. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  4657. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
  4658. fi
  4659. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  4660. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  4661. && test "$PACKAGE" != gettext-runtime \
  4662. && test "$PACKAGE" != gettext-tools; }; then
  4663. gt_use_preinstalled_gnugettext=yes
  4664. else
  4665. LIBINTL=
  4666. LTLIBINTL=
  4667. INCINTL=
  4668. fi
  4669. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  4670. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  4671. cat >>confdefs.h <<\_ACEOF
  4672. #define ENABLE_NLS 1
  4673. _ACEOF
  4674. else
  4675. USE_NLS=no
  4676. fi
  4677. fi
  4678. echo "$as_me:$LINENO: checking whether to use NLS" >&5
  4679. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
  4680. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  4681. echo "${ECHO_T}$USE_NLS" >&6
  4682. if test "$USE_NLS" = "yes"; then
  4683. echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  4684. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
  4685. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  4686. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  4687. gt_source="external libintl"
  4688. else
  4689. gt_source="libc"
  4690. fi
  4691. else
  4692. gt_source="included intl directory"
  4693. fi
  4694. echo "$as_me:$LINENO: result: $gt_source" >&5
  4695. echo "${ECHO_T}$gt_source" >&6
  4696. fi
  4697. if test "$USE_NLS" = "yes"; then
  4698. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  4699. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  4700. echo "$as_me:$LINENO: checking how to link with libintl" >&5
  4701. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
  4702. echo "$as_me:$LINENO: result: $LIBINTL" >&5
  4703. echo "${ECHO_T}$LIBINTL" >&6
  4704. for element in $INCINTL; do
  4705. haveit=
  4706. for x in $CPPFLAGS; do
  4707. acl_save_prefix="$prefix"
  4708. prefix="$acl_final_prefix"
  4709. acl_save_exec_prefix="$exec_prefix"
  4710. exec_prefix="$acl_final_exec_prefix"
  4711. eval x=\"$x\"
  4712. exec_prefix="$acl_save_exec_prefix"
  4713. prefix="$acl_save_prefix"
  4714. if test "X$x" = "X$element"; then
  4715. haveit=yes
  4716. break
  4717. fi
  4718. done
  4719. if test -z "$haveit"; then
  4720. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  4721. fi
  4722. done
  4723. fi
  4724. cat >>confdefs.h <<\_ACEOF
  4725. #define HAVE_GETTEXT 1
  4726. _ACEOF
  4727. cat >>confdefs.h <<\_ACEOF
  4728. #define HAVE_DCGETTEXT 1
  4729. _ACEOF
  4730. fi
  4731. POSUB=po
  4732. fi
  4733. INTLLIBS="$LIBINTL"
  4734. # Prepare PATH_SEPARATOR.
  4735. # The user is always right.
  4736. if test "${PATH_SEPARATOR+set}" != set; then
  4737. echo "#! /bin/sh" >conf$$.sh
  4738. echo "exit 0" >>conf$$.sh
  4739. chmod +x conf$$.sh
  4740. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4741. PATH_SEPARATOR=';'
  4742. else
  4743. PATH_SEPARATOR=:
  4744. fi
  4745. rm -f conf$$.sh
  4746. fi
  4747. # Find out how to test for executable files. Don't use a zero-byte file,
  4748. # as systems may use methods other than mode bits to determine executability.
  4749. cat >conf$$.file <<_ASEOF
  4750. #! /bin/sh
  4751. exit 0
  4752. _ASEOF
  4753. chmod +x conf$$.file
  4754. if test -x conf$$.file >/dev/null 2>&1; then
  4755. ac_executable_p="test -x"
  4756. else
  4757. ac_executable_p="test -f"
  4758. fi
  4759. rm -f conf$$.file
  4760. # Extract the first word of "msgfmt", so it can be a program name with args.
  4761. set dummy msgfmt; ac_word=$2
  4762. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4763. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4764. if test "${ac_cv_path_MSGFMT+set}" = set; then
  4765. echo $ECHO_N "(cached) $ECHO_C" >&6
  4766. else
  4767. case "$MSGFMT" in
  4768. [\\/]* | ?:[\\/]*)
  4769. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  4770. ;;
  4771. *)
  4772. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  4773. for ac_dir in $PATH; do
  4774. IFS="$ac_save_IFS"
  4775. test -z "$ac_dir" && ac_dir=.
  4776. for ac_exec_ext in '' $ac_executable_extensions; do
  4777. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  4778. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  4779. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  4780. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  4781. break 2
  4782. fi
  4783. fi
  4784. done
  4785. done
  4786. IFS="$ac_save_IFS"
  4787. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  4788. ;;
  4789. esac
  4790. fi
  4791. MSGFMT="$ac_cv_path_MSGFMT"
  4792. if test "$MSGFMT" != ":"; then
  4793. echo "$as_me:$LINENO: result: $MSGFMT" >&5
  4794. echo "${ECHO_T}$MSGFMT" >&6
  4795. else
  4796. echo "$as_me:$LINENO: result: no" >&5
  4797. echo "${ECHO_T}no" >&6
  4798. fi
  4799. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  4800. set dummy gmsgfmt; ac_word=$2
  4801. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4802. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4803. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  4804. echo $ECHO_N "(cached) $ECHO_C" >&6
  4805. else
  4806. case $GMSGFMT in
  4807. [\\/]* | ?:[\\/]*)
  4808. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  4809. ;;
  4810. *)
  4811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4812. for as_dir in $PATH
  4813. do
  4814. IFS=$as_save_IFS
  4815. test -z "$as_dir" && as_dir=.
  4816. for ac_exec_ext in '' $ac_executable_extensions; do
  4817. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4818. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  4819. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4820. break 2
  4821. fi
  4822. done
  4823. done
  4824. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  4825. ;;
  4826. esac
  4827. fi
  4828. GMSGFMT=$ac_cv_path_GMSGFMT
  4829. if test -n "$GMSGFMT"; then
  4830. echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  4831. echo "${ECHO_T}$GMSGFMT" >&6
  4832. else
  4833. echo "$as_me:$LINENO: result: no" >&5
  4834. echo "${ECHO_T}no" >&6
  4835. fi
  4836. # Prepare PATH_SEPARATOR.
  4837. # The user is always right.
  4838. if test "${PATH_SEPARATOR+set}" != set; then
  4839. echo "#! /bin/sh" >conf$$.sh
  4840. echo "exit 0" >>conf$$.sh
  4841. chmod +x conf$$.sh
  4842. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4843. PATH_SEPARATOR=';'
  4844. else
  4845. PATH_SEPARATOR=:
  4846. fi
  4847. rm -f conf$$.sh
  4848. fi
  4849. # Find out how to test for executable files. Don't use a zero-byte file,
  4850. # as systems may use methods other than mode bits to determine executability.
  4851. cat >conf$$.file <<_ASEOF
  4852. #! /bin/sh
  4853. exit 0
  4854. _ASEOF
  4855. chmod +x conf$$.file
  4856. if test -x conf$$.file >/dev/null 2>&1; then
  4857. ac_executable_p="test -x"
  4858. else
  4859. ac_executable_p="test -f"
  4860. fi
  4861. rm -f conf$$.file
  4862. # Extract the first word of "xgettext", so it can be a program name with args.
  4863. set dummy xgettext; ac_word=$2
  4864. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4865. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4866. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  4867. echo $ECHO_N "(cached) $ECHO_C" >&6
  4868. else
  4869. case "$XGETTEXT" in
  4870. [\\/]* | ?:[\\/]*)
  4871. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  4872. ;;
  4873. *)
  4874. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  4875. for ac_dir in $PATH; do
  4876. IFS="$ac_save_IFS"
  4877. test -z "$ac_dir" && ac_dir=.
  4878. for ac_exec_ext in '' $ac_executable_extensions; do
  4879. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  4880. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  4881. (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
  4882. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  4883. break 2
  4884. fi
  4885. fi
  4886. done
  4887. done
  4888. IFS="$ac_save_IFS"
  4889. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  4890. ;;
  4891. esac
  4892. fi
  4893. XGETTEXT="$ac_cv_path_XGETTEXT"
  4894. if test "$XGETTEXT" != ":"; then
  4895. echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  4896. echo "${ECHO_T}$XGETTEXT" >&6
  4897. else
  4898. echo "$as_me:$LINENO: result: no" >&5
  4899. echo "${ECHO_T}no" >&6
  4900. fi
  4901. rm -f messages.po
  4902. # Prepare PATH_SEPARATOR.
  4903. # The user is always right.
  4904. if test "${PATH_SEPARATOR+set}" != set; then
  4905. echo "#! /bin/sh" >conf$$.sh
  4906. echo "exit 0" >>conf$$.sh
  4907. chmod +x conf$$.sh
  4908. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4909. PATH_SEPARATOR=';'
  4910. else
  4911. PATH_SEPARATOR=:
  4912. fi
  4913. rm -f conf$$.sh
  4914. fi
  4915. # Find out how to test for executable files. Don't use a zero-byte file,
  4916. # as systems may use methods other than mode bits to determine executability.
  4917. cat >conf$$.file <<_ASEOF
  4918. #! /bin/sh
  4919. exit 0
  4920. _ASEOF
  4921. chmod +x conf$$.file
  4922. if test -x conf$$.file >/dev/null 2>&1; then
  4923. ac_executable_p="test -x"
  4924. else
  4925. ac_executable_p="test -f"
  4926. fi
  4927. rm -f conf$$.file
  4928. # Extract the first word of "msgmerge", so it can be a program name with args.
  4929. set dummy msgmerge; ac_word=$2
  4930. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4931. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4932. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  4933. echo $ECHO_N "(cached) $ECHO_C" >&6
  4934. else
  4935. case "$MSGMERGE" in
  4936. [\\/]* | ?:[\\/]*)
  4937. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  4938. ;;
  4939. *)
  4940. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  4941. for ac_dir in $PATH; do
  4942. IFS="$ac_save_IFS"
  4943. test -z "$ac_dir" && ac_dir=.
  4944. for ac_exec_ext in '' $ac_executable_extensions; do
  4945. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  4946. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  4947. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  4948. break 2
  4949. fi
  4950. fi
  4951. done
  4952. done
  4953. IFS="$ac_save_IFS"
  4954. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  4955. ;;
  4956. esac
  4957. fi
  4958. MSGMERGE="$ac_cv_path_MSGMERGE"
  4959. if test "$MSGMERGE" != ":"; then
  4960. echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  4961. echo "${ECHO_T}$MSGMERGE" >&6
  4962. else
  4963. echo "$as_me:$LINENO: result: no" >&5
  4964. echo "${ECHO_T}no" >&6
  4965. fi
  4966. if test "$GMSGFMT" != ":"; then
  4967. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  4968. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  4969. : ;
  4970. else
  4971. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  4972. echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  4973. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
  4974. GMSGFMT=":"
  4975. fi
  4976. fi
  4977. if test "$XGETTEXT" != ":"; then
  4978. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  4979. (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
  4980. : ;
  4981. else
  4982. echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  4983. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
  4984. XGETTEXT=":"
  4985. fi
  4986. rm -f messages.po
  4987. fi
  4988. ac_config_commands="$ac_config_commands default-2"
  4989. if test "x$HAVE_LOCALE_H" = "x"; then
  4990. echo "$as_me:$LINENO: checking whether setlocale() is available" >&5
  4991. echo $ECHO_N "checking whether setlocale() is available... $ECHO_C" >&6
  4992. HAVE_SETLOCALE=''
  4993. cat >conftest.$ac_ext <<_ACEOF
  4994. /* confdefs.h. */
  4995. _ACEOF
  4996. cat confdefs.h >>conftest.$ac_ext
  4997. cat >>conftest.$ac_ext <<_ACEOF
  4998. /* end confdefs.h. */
  4999. #include <locale.h>
  5000. int
  5001. main ()
  5002. {
  5003. setlocale(0, "bar");
  5004. ;
  5005. return 0;
  5006. }
  5007. _ACEOF
  5008. rm -f conftest.$ac_objext
  5009. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5010. (eval $ac_compile) 2>conftest.er1
  5011. ac_status=$?
  5012. grep -v '^ *+' conftest.er1 >conftest.err
  5013. rm -f conftest.er1
  5014. cat conftest.err >&5
  5015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5016. (exit $ac_status); } &&
  5017. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5018. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5019. (eval $ac_try) 2>&5
  5020. ac_status=$?
  5021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5022. (exit $ac_status); }; } &&
  5023. { ac_try='test -s conftest.$ac_objext'
  5024. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5025. (eval $ac_try) 2>&5
  5026. ac_status=$?
  5027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5028. (exit $ac_status); }; }; then
  5029. HAVE_SETLOCALE=1;
  5030. cat >>confdefs.h <<\_ACEOF
  5031. #define HAVE_SETLOCALE 1
  5032. _ACEOF
  5033. else
  5034. echo "$as_me: failed program was:" >&5
  5035. sed 's/^/| /' conftest.$ac_ext >&5
  5036. fi
  5037. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5038. if test "x$HAVE_SETLOCALE" = x; then
  5039. echo "$as_me:$LINENO: result: no" >&5
  5040. echo "${ECHO_T}no" >&6
  5041. else
  5042. echo "$as_me:$LINENO: result: yes" >&5
  5043. echo "${ECHO_T}yes" >&6
  5044. fi
  5045. fi
  5046. ac_ext=c
  5047. ac_cpp='$CPP $CPPFLAGS'
  5048. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5049. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5050. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5051. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5052. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  5053. # On Suns, sometimes $CPP names a directory.
  5054. if test -n "$CPP" && test -d "$CPP"; then
  5055. CPP=
  5056. fi
  5057. if test -z "$CPP"; then
  5058. if test "${ac_cv_prog_CPP+set}" = set; then
  5059. echo $ECHO_N "(cached) $ECHO_C" >&6
  5060. else
  5061. # Double quotes because CPP needs to be expanded
  5062. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5063. do
  5064. ac_preproc_ok=false
  5065. for ac_c_preproc_warn_flag in '' yes
  5066. do
  5067. # Use a header file that comes with gcc, so configuring glibc
  5068. # with a fresh cross-compiler works.
  5069. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5070. # <limits.h> exists even on freestanding compilers.
  5071. # On the NeXT, cc -E runs the code through the compiler's parser,
  5072. # not just through cpp. "Syntax error" is here to catch this case.
  5073. cat >conftest.$ac_ext <<_ACEOF
  5074. /* confdefs.h. */
  5075. _ACEOF
  5076. cat confdefs.h >>conftest.$ac_ext
  5077. cat >>conftest.$ac_ext <<_ACEOF
  5078. /* end confdefs.h. */
  5079. #ifdef __STDC__
  5080. # include <limits.h>
  5081. #else
  5082. # include <assert.h>
  5083. #endif
  5084. Syntax error
  5085. _ACEOF
  5086. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5087. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5088. ac_status=$?
  5089. grep -v '^ *+' conftest.er1 >conftest.err
  5090. rm -f conftest.er1
  5091. cat conftest.err >&5
  5092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5093. (exit $ac_status); } >/dev/null; then
  5094. if test -s conftest.err; then
  5095. ac_cpp_err=$ac_c_preproc_warn_flag
  5096. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5097. else
  5098. ac_cpp_err=
  5099. fi
  5100. else
  5101. ac_cpp_err=yes
  5102. fi
  5103. if test -z "$ac_cpp_err"; then
  5104. :
  5105. else
  5106. echo "$as_me: failed program was:" >&5
  5107. sed 's/^/| /' conftest.$ac_ext >&5
  5108. # Broken: fails on valid input.
  5109. continue
  5110. fi
  5111. rm -f conftest.err conftest.$ac_ext
  5112. # OK, works on sane cases. Now check whether non-existent headers
  5113. # can be detected and how.
  5114. cat >conftest.$ac_ext <<_ACEOF
  5115. /* confdefs.h. */
  5116. _ACEOF
  5117. cat confdefs.h >>conftest.$ac_ext
  5118. cat >>conftest.$ac_ext <<_ACEOF
  5119. /* end confdefs.h. */
  5120. #include <ac_nonexistent.h>
  5121. _ACEOF
  5122. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5123. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5124. ac_status=$?
  5125. grep -v '^ *+' conftest.er1 >conftest.err
  5126. rm -f conftest.er1
  5127. cat conftest.err >&5
  5128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5129. (exit $ac_status); } >/dev/null; then
  5130. if test -s conftest.err; then
  5131. ac_cpp_err=$ac_c_preproc_warn_flag
  5132. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5133. else
  5134. ac_cpp_err=
  5135. fi
  5136. else
  5137. ac_cpp_err=yes
  5138. fi
  5139. if test -z "$ac_cpp_err"; then
  5140. # Broken: success on invalid input.
  5141. continue
  5142. else
  5143. echo "$as_me: failed program was:" >&5
  5144. sed 's/^/| /' conftest.$ac_ext >&5
  5145. # Passes both tests.
  5146. ac_preproc_ok=:
  5147. break
  5148. fi
  5149. rm -f conftest.err conftest.$ac_ext
  5150. done
  5151. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5152. rm -f conftest.err conftest.$ac_ext
  5153. if $ac_preproc_ok; then
  5154. break
  5155. fi
  5156. done
  5157. ac_cv_prog_CPP=$CPP
  5158. fi
  5159. CPP=$ac_cv_prog_CPP
  5160. else
  5161. ac_cv_prog_CPP=$CPP
  5162. fi
  5163. echo "$as_me:$LINENO: result: $CPP" >&5
  5164. echo "${ECHO_T}$CPP" >&6
  5165. ac_preproc_ok=false
  5166. for ac_c_preproc_warn_flag in '' yes
  5167. do
  5168. # Use a header file that comes with gcc, so configuring glibc
  5169. # with a fresh cross-compiler works.
  5170. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5171. # <limits.h> exists even on freestanding compilers.
  5172. # On the NeXT, cc -E runs the code through the compiler's parser,
  5173. # not just through cpp. "Syntax error" is here to catch this case.
  5174. cat >conftest.$ac_ext <<_ACEOF
  5175. /* confdefs.h. */
  5176. _ACEOF
  5177. cat confdefs.h >>conftest.$ac_ext
  5178. cat >>conftest.$ac_ext <<_ACEOF
  5179. /* end confdefs.h. */
  5180. #ifdef __STDC__
  5181. # include <limits.h>
  5182. #else
  5183. # include <assert.h>
  5184. #endif
  5185. Syntax error
  5186. _ACEOF
  5187. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5188. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5189. ac_status=$?
  5190. grep -v '^ *+' conftest.er1 >conftest.err
  5191. rm -f conftest.er1
  5192. cat conftest.err >&5
  5193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5194. (exit $ac_status); } >/dev/null; then
  5195. if test -s conftest.err; then
  5196. ac_cpp_err=$ac_c_preproc_warn_flag
  5197. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5198. else
  5199. ac_cpp_err=
  5200. fi
  5201. else
  5202. ac_cpp_err=yes
  5203. fi
  5204. if test -z "$ac_cpp_err"; then
  5205. :
  5206. else
  5207. echo "$as_me: failed program was:" >&5
  5208. sed 's/^/| /' conftest.$ac_ext >&5
  5209. # Broken: fails on valid input.
  5210. continue
  5211. fi
  5212. rm -f conftest.err conftest.$ac_ext
  5213. # OK, works on sane cases. Now check whether non-existent headers
  5214. # can be detected and how.
  5215. cat >conftest.$ac_ext <<_ACEOF
  5216. /* confdefs.h. */
  5217. _ACEOF
  5218. cat confdefs.h >>conftest.$ac_ext
  5219. cat >>conftest.$ac_ext <<_ACEOF
  5220. /* end confdefs.h. */
  5221. #include <ac_nonexistent.h>
  5222. _ACEOF
  5223. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5224. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5225. ac_status=$?
  5226. grep -v '^ *+' conftest.er1 >conftest.err
  5227. rm -f conftest.er1
  5228. cat conftest.err >&5
  5229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5230. (exit $ac_status); } >/dev/null; then
  5231. if test -s conftest.err; then
  5232. ac_cpp_err=$ac_c_preproc_warn_flag
  5233. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5234. else
  5235. ac_cpp_err=
  5236. fi
  5237. else
  5238. ac_cpp_err=yes
  5239. fi
  5240. if test -z "$ac_cpp_err"; then
  5241. # Broken: success on invalid input.
  5242. continue
  5243. else
  5244. echo "$as_me: failed program was:" >&5
  5245. sed 's/^/| /' conftest.$ac_ext >&5
  5246. # Passes both tests.
  5247. ac_preproc_ok=:
  5248. break
  5249. fi
  5250. rm -f conftest.err conftest.$ac_ext
  5251. done
  5252. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5253. rm -f conftest.err conftest.$ac_ext
  5254. if $ac_preproc_ok; then
  5255. :
  5256. else
  5257. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5258. See \`config.log' for more details." >&5
  5259. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5260. See \`config.log' for more details." >&2;}
  5261. { (exit 1); exit 1; }; }
  5262. fi
  5263. ac_ext=c
  5264. ac_cpp='$CPP $CPPFLAGS'
  5265. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5266. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5267. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5268. echo "$as_me:$LINENO: checking for egrep" >&5
  5269. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  5270. if test "${ac_cv_prog_egrep+set}" = set; then
  5271. echo $ECHO_N "(cached) $ECHO_C" >&6
  5272. else
  5273. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  5274. then ac_cv_prog_egrep='grep -E'
  5275. else ac_cv_prog_egrep='egrep'
  5276. fi
  5277. fi
  5278. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  5279. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  5280. EGREP=$ac_cv_prog_egrep
  5281. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5282. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  5283. if test "${ac_cv_header_stdc+set}" = set; then
  5284. echo $ECHO_N "(cached) $ECHO_C" >&6
  5285. else
  5286. cat >conftest.$ac_ext <<_ACEOF
  5287. /* confdefs.h. */
  5288. _ACEOF
  5289. cat confdefs.h >>conftest.$ac_ext
  5290. cat >>conftest.$ac_ext <<_ACEOF
  5291. /* end confdefs.h. */
  5292. #include <stdlib.h>
  5293. #include <stdarg.h>
  5294. #include <string.h>
  5295. #include <float.h>
  5296. int
  5297. main ()
  5298. {
  5299. ;
  5300. return 0;
  5301. }
  5302. _ACEOF
  5303. rm -f conftest.$ac_objext
  5304. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5305. (eval $ac_compile) 2>conftest.er1
  5306. ac_status=$?
  5307. grep -v '^ *+' conftest.er1 >conftest.err
  5308. rm -f conftest.er1
  5309. cat conftest.err >&5
  5310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5311. (exit $ac_status); } &&
  5312. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5313. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5314. (eval $ac_try) 2>&5
  5315. ac_status=$?
  5316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5317. (exit $ac_status); }; } &&
  5318. { ac_try='test -s conftest.$ac_objext'
  5319. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5320. (eval $ac_try) 2>&5
  5321. ac_status=$?
  5322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5323. (exit $ac_status); }; }; then
  5324. ac_cv_header_stdc=yes
  5325. else
  5326. echo "$as_me: failed program was:" >&5
  5327. sed 's/^/| /' conftest.$ac_ext >&5
  5328. ac_cv_header_stdc=no
  5329. fi
  5330. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5331. if test $ac_cv_header_stdc = yes; then
  5332. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5333. cat >conftest.$ac_ext <<_ACEOF
  5334. /* confdefs.h. */
  5335. _ACEOF
  5336. cat confdefs.h >>conftest.$ac_ext
  5337. cat >>conftest.$ac_ext <<_ACEOF
  5338. /* end confdefs.h. */
  5339. #include <string.h>
  5340. _ACEOF
  5341. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5342. $EGREP "memchr" >/dev/null 2>&1; then
  5343. :
  5344. else
  5345. ac_cv_header_stdc=no
  5346. fi
  5347. rm -f conftest*
  5348. fi
  5349. if test $ac_cv_header_stdc = yes; then
  5350. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5351. cat >conftest.$ac_ext <<_ACEOF
  5352. /* confdefs.h. */
  5353. _ACEOF
  5354. cat confdefs.h >>conftest.$ac_ext
  5355. cat >>conftest.$ac_ext <<_ACEOF
  5356. /* end confdefs.h. */
  5357. #include <stdlib.h>
  5358. _ACEOF
  5359. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5360. $EGREP "free" >/dev/null 2>&1; then
  5361. :
  5362. else
  5363. ac_cv_header_stdc=no
  5364. fi
  5365. rm -f conftest*
  5366. fi
  5367. if test $ac_cv_header_stdc = yes; then
  5368. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5369. if test "$cross_compiling" = yes; then
  5370. :
  5371. else
  5372. cat >conftest.$ac_ext <<_ACEOF
  5373. /* confdefs.h. */
  5374. _ACEOF
  5375. cat confdefs.h >>conftest.$ac_ext
  5376. cat >>conftest.$ac_ext <<_ACEOF
  5377. /* end confdefs.h. */
  5378. #include <ctype.h>
  5379. #if ((' ' & 0x0FF) == 0x020)
  5380. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5381. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5382. #else
  5383. # define ISLOWER(c) \
  5384. (('a' <= (c) && (c) <= 'i') \
  5385. || ('j' <= (c) && (c) <= 'r') \
  5386. || ('s' <= (c) && (c) <= 'z'))
  5387. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5388. #endif
  5389. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5390. int
  5391. main ()
  5392. {
  5393. int i;
  5394. for (i = 0; i < 256; i++)
  5395. if (XOR (islower (i), ISLOWER (i))
  5396. || toupper (i) != TOUPPER (i))
  5397. exit(2);
  5398. exit (0);
  5399. }
  5400. _ACEOF
  5401. rm -f conftest$ac_exeext
  5402. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5403. (eval $ac_link) 2>&5
  5404. ac_status=$?
  5405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5406. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5407. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5408. (eval $ac_try) 2>&5
  5409. ac_status=$?
  5410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5411. (exit $ac_status); }; }; then
  5412. :
  5413. else
  5414. echo "$as_me: program exited with status $ac_status" >&5
  5415. echo "$as_me: failed program was:" >&5
  5416. sed 's/^/| /' conftest.$ac_ext >&5
  5417. ( exit $ac_status )
  5418. ac_cv_header_stdc=no
  5419. fi
  5420. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5421. fi
  5422. fi
  5423. fi
  5424. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5425. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  5426. if test $ac_cv_header_stdc = yes; then
  5427. cat >>confdefs.h <<\_ACEOF
  5428. #define STDC_HEADERS 1
  5429. _ACEOF
  5430. fi
  5431. if test -n "$ac_tool_prefix"; then
  5432. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5433. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5434. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5435. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5436. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5437. echo $ECHO_N "(cached) $ECHO_C" >&6
  5438. else
  5439. if test -n "$RANLIB"; then
  5440. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5441. else
  5442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5443. for as_dir in $PATH
  5444. do
  5445. IFS=$as_save_IFS
  5446. test -z "$as_dir" && as_dir=.
  5447. for ac_exec_ext in '' $ac_executable_extensions; do
  5448. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5449. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5450. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5451. break 2
  5452. fi
  5453. done
  5454. done
  5455. fi
  5456. fi
  5457. RANLIB=$ac_cv_prog_RANLIB
  5458. if test -n "$RANLIB"; then
  5459. echo "$as_me:$LINENO: result: $RANLIB" >&5
  5460. echo "${ECHO_T}$RANLIB" >&6
  5461. else
  5462. echo "$as_me:$LINENO: result: no" >&5
  5463. echo "${ECHO_T}no" >&6
  5464. fi
  5465. fi
  5466. if test -z "$ac_cv_prog_RANLIB"; then
  5467. ac_ct_RANLIB=$RANLIB
  5468. # Extract the first word of "ranlib", so it can be a program name with args.
  5469. set dummy ranlib; ac_word=$2
  5470. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5471. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5472. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5473. echo $ECHO_N "(cached) $ECHO_C" >&6
  5474. else
  5475. if test -n "$ac_ct_RANLIB"; then
  5476. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5477. else
  5478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5479. for as_dir in $PATH
  5480. do
  5481. IFS=$as_save_IFS
  5482. test -z "$as_dir" && as_dir=.
  5483. for ac_exec_ext in '' $ac_executable_extensions; do
  5484. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5485. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5486. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5487. break 2
  5488. fi
  5489. done
  5490. done
  5491. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  5492. fi
  5493. fi
  5494. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5495. if test -n "$ac_ct_RANLIB"; then
  5496. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5497. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  5498. else
  5499. echo "$as_me:$LINENO: result: no" >&5
  5500. echo "${ECHO_T}no" >&6
  5501. fi
  5502. RANLIB=$ac_ct_RANLIB
  5503. else
  5504. RANLIB="$ac_cv_prog_RANLIB"
  5505. fi
  5506. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  5507. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  5508. LN_S=$as_ln_s
  5509. if test "$LN_S" = "ln -s"; then
  5510. echo "$as_me:$LINENO: result: yes" >&5
  5511. echo "${ECHO_T}yes" >&6
  5512. else
  5513. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  5514. echo "${ECHO_T}no, using $LN_S" >&6
  5515. fi
  5516. # Extract the first word of "rm", so it can be a program name with args.
  5517. set dummy rm; ac_word=$2
  5518. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5519. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5520. if test "${ac_cv_prog_RM+set}" = set; then
  5521. echo $ECHO_N "(cached) $ECHO_C" >&6
  5522. else
  5523. if test -n "$RM"; then
  5524. ac_cv_prog_RM="$RM" # Let the user override the test.
  5525. else
  5526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5527. for as_dir in $PATH
  5528. do
  5529. IFS=$as_save_IFS
  5530. test -z "$as_dir" && as_dir=.
  5531. for ac_exec_ext in '' $ac_executable_extensions; do
  5532. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5533. ac_cv_prog_RM="rm -f"
  5534. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5535. break 2
  5536. fi
  5537. done
  5538. done
  5539. fi
  5540. fi
  5541. RM=$ac_cv_prog_RM
  5542. if test -n "$RM"; then
  5543. echo "$as_me:$LINENO: result: $RM" >&5
  5544. echo "${ECHO_T}$RM" >&6
  5545. else
  5546. echo "$as_me:$LINENO: result: no" >&5
  5547. echo "${ECHO_T}no" >&6
  5548. fi
  5549. # Extract the first word of "sed", so it can be a program name with args.
  5550. set dummy sed; ac_word=$2
  5551. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5552. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5553. if test "${ac_cv_prog_SED+set}" = set; then
  5554. echo $ECHO_N "(cached) $ECHO_C" >&6
  5555. else
  5556. if test -n "$SED"; then
  5557. ac_cv_prog_SED="$SED" # Let the user override the test.
  5558. else
  5559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5560. for as_dir in $PATH
  5561. do
  5562. IFS=$as_save_IFS
  5563. test -z "$as_dir" && as_dir=.
  5564. for ac_exec_ext in '' $ac_executable_extensions; do
  5565. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5566. ac_cv_prog_SED="sed"
  5567. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5568. break 2
  5569. fi
  5570. done
  5571. done
  5572. fi
  5573. fi
  5574. SED=$ac_cv_prog_SED
  5575. if test -n "$SED"; then
  5576. echo "$as_me:$LINENO: result: $SED" >&5
  5577. echo "${ECHO_T}$SED" >&6
  5578. else
  5579. echo "$as_me:$LINENO: result: no" >&5
  5580. echo "${ECHO_T}no" >&6
  5581. fi
  5582. # Find a good install program. We prefer a C program (faster),
  5583. # so one script is as good as another. But avoid the broken or
  5584. # incompatible versions:
  5585. # SysV /etc/install, /usr/sbin/install
  5586. # SunOS /usr/etc/install
  5587. # IRIX /sbin/install
  5588. # AIX /bin/install
  5589. # AmigaOS /C/install, which installs bootblocks on floppy discs
  5590. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  5591. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  5592. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  5593. # OS/2's system install, which has a completely different semantic
  5594. # ./install, which can be erroneously created by make from ./install.sh.
  5595. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  5596. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  5597. if test -z "$INSTALL"; then
  5598. if test "${ac_cv_path_install+set}" = set; then
  5599. echo $ECHO_N "(cached) $ECHO_C" >&6
  5600. else
  5601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5602. for as_dir in $PATH
  5603. do
  5604. IFS=$as_save_IFS
  5605. test -z "$as_dir" && as_dir=.
  5606. # Account for people who put trailing slashes in PATH elements.
  5607. case $as_dir/ in
  5608. ./ | .// | /cC/* | \
  5609. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  5610. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  5611. /usr/ucb/* ) ;;
  5612. *)
  5613. # OSF1 and SCO ODT 3.0 have their own names for install.
  5614. # Don't use installbsd from OSF since it installs stuff as root
  5615. # by default.
  5616. for ac_prog in ginstall scoinst install; do
  5617. for ac_exec_ext in '' $ac_executable_extensions; do
  5618. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  5619. if test $ac_prog = install &&
  5620. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5621. # AIX install. It has an incompatible calling convention.
  5622. :
  5623. elif test $ac_prog = install &&
  5624. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5625. # program-specific install script used by HP pwplus--don't use.
  5626. :
  5627. else
  5628. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  5629. break 3
  5630. fi
  5631. fi
  5632. done
  5633. done
  5634. ;;
  5635. esac
  5636. done
  5637. fi
  5638. if test "${ac_cv_path_install+set}" = set; then
  5639. INSTALL=$ac_cv_path_install
  5640. else
  5641. # As a last resort, use the slow shell script. We don't cache a
  5642. # path for INSTALL within a source directory, because that will
  5643. # break other packages using the cache if that directory is
  5644. # removed, or if the path is relative.
  5645. INSTALL=$ac_install_sh
  5646. fi
  5647. fi
  5648. echo "$as_me:$LINENO: result: $INSTALL" >&5
  5649. echo "${ECHO_T}$INSTALL" >&6
  5650. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  5651. # It thinks the first close brace ends the variable substitution.
  5652. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  5653. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  5654. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  5655. # Extract the first word of "perl", so it can be a program name with args.
  5656. set dummy perl; ac_word=$2
  5657. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5658. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5659. if test "${ac_cv_path_PERL+set}" = set; then
  5660. echo $ECHO_N "(cached) $ECHO_C" >&6
  5661. else
  5662. case $PERL in
  5663. [\\/]* | ?:[\\/]*)
  5664. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  5665. ;;
  5666. *)
  5667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5668. for as_dir in $PATH
  5669. do
  5670. IFS=$as_save_IFS
  5671. test -z "$as_dir" && as_dir=.
  5672. for ac_exec_ext in '' $ac_executable_extensions; do
  5673. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5674. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  5675. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5676. break 2
  5677. fi
  5678. done
  5679. done
  5680. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/perl"
  5681. ;;
  5682. esac
  5683. fi
  5684. PERL=$ac_cv_path_PERL
  5685. if test -n "$PERL"; then
  5686. echo "$as_me:$LINENO: result: $PERL" >&5
  5687. echo "${ECHO_T}$PERL" >&6
  5688. else
  5689. echo "$as_me:$LINENO: result: no" >&5
  5690. echo "${ECHO_T}no" >&6
  5691. fi
  5692. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5693. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5694. inttypes.h stdint.h unistd.h
  5695. do
  5696. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5697. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5698. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5699. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5700. echo $ECHO_N "(cached) $ECHO_C" >&6
  5701. else
  5702. cat >conftest.$ac_ext <<_ACEOF
  5703. /* confdefs.h. */
  5704. _ACEOF
  5705. cat confdefs.h >>conftest.$ac_ext
  5706. cat >>conftest.$ac_ext <<_ACEOF
  5707. /* end confdefs.h. */
  5708. $ac_includes_default
  5709. #include <$ac_header>
  5710. _ACEOF
  5711. rm -f conftest.$ac_objext
  5712. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5713. (eval $ac_compile) 2>conftest.er1
  5714. ac_status=$?
  5715. grep -v '^ *+' conftest.er1 >conftest.err
  5716. rm -f conftest.er1
  5717. cat conftest.err >&5
  5718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5719. (exit $ac_status); } &&
  5720. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5721. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5722. (eval $ac_try) 2>&5
  5723. ac_status=$?
  5724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5725. (exit $ac_status); }; } &&
  5726. { ac_try='test -s conftest.$ac_objext'
  5727. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5728. (eval $ac_try) 2>&5
  5729. ac_status=$?
  5730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5731. (exit $ac_status); }; }; then
  5732. eval "$as_ac_Header=yes"
  5733. else
  5734. echo "$as_me: failed program was:" >&5
  5735. sed 's/^/| /' conftest.$ac_ext >&5
  5736. eval "$as_ac_Header=no"
  5737. fi
  5738. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5739. fi
  5740. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5741. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5742. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5743. cat >>confdefs.h <<_ACEOF
  5744. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5745. _ACEOF
  5746. fi
  5747. done
  5748. echo "$as_me:$LINENO: checking for mode_t" >&5
  5749. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
  5750. if test "${ac_cv_type_mode_t+set}" = set; then
  5751. echo $ECHO_N "(cached) $ECHO_C" >&6
  5752. else
  5753. cat >conftest.$ac_ext <<_ACEOF
  5754. /* confdefs.h. */
  5755. _ACEOF
  5756. cat confdefs.h >>conftest.$ac_ext
  5757. cat >>conftest.$ac_ext <<_ACEOF
  5758. /* end confdefs.h. */
  5759. $ac_includes_default
  5760. int
  5761. main ()
  5762. {
  5763. if ((mode_t *) 0)
  5764. return 0;
  5765. if (sizeof (mode_t))
  5766. return 0;
  5767. ;
  5768. return 0;
  5769. }
  5770. _ACEOF
  5771. rm -f conftest.$ac_objext
  5772. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5773. (eval $ac_compile) 2>conftest.er1
  5774. ac_status=$?
  5775. grep -v '^ *+' conftest.er1 >conftest.err
  5776. rm -f conftest.er1
  5777. cat conftest.err >&5
  5778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5779. (exit $ac_status); } &&
  5780. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5781. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5782. (eval $ac_try) 2>&5
  5783. ac_status=$?
  5784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5785. (exit $ac_status); }; } &&
  5786. { ac_try='test -s conftest.$ac_objext'
  5787. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5788. (eval $ac_try) 2>&5
  5789. ac_status=$?
  5790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5791. (exit $ac_status); }; }; then
  5792. ac_cv_type_mode_t=yes
  5793. else
  5794. echo "$as_me: failed program was:" >&5
  5795. sed 's/^/| /' conftest.$ac_ext >&5
  5796. ac_cv_type_mode_t=no
  5797. fi
  5798. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5799. fi
  5800. echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  5801. echo "${ECHO_T}$ac_cv_type_mode_t" >&6
  5802. if test $ac_cv_type_mode_t = yes; then
  5803. :
  5804. else
  5805. cat >>confdefs.h <<_ACEOF
  5806. #define mode_t int
  5807. _ACEOF
  5808. fi
  5809. echo "$as_me:$LINENO: checking for pid_t" >&5
  5810. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5811. if test "${ac_cv_type_pid_t+set}" = set; then
  5812. echo $ECHO_N "(cached) $ECHO_C" >&6
  5813. else
  5814. cat >conftest.$ac_ext <<_ACEOF
  5815. /* confdefs.h. */
  5816. _ACEOF
  5817. cat confdefs.h >>conftest.$ac_ext
  5818. cat >>conftest.$ac_ext <<_ACEOF
  5819. /* end confdefs.h. */
  5820. $ac_includes_default
  5821. int
  5822. main ()
  5823. {
  5824. if ((pid_t *) 0)
  5825. return 0;
  5826. if (sizeof (pid_t))
  5827. return 0;
  5828. ;
  5829. return 0;
  5830. }
  5831. _ACEOF
  5832. rm -f conftest.$ac_objext
  5833. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5834. (eval $ac_compile) 2>conftest.er1
  5835. ac_status=$?
  5836. grep -v '^ *+' conftest.er1 >conftest.err
  5837. rm -f conftest.er1
  5838. cat conftest.err >&5
  5839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5840. (exit $ac_status); } &&
  5841. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5842. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5843. (eval $ac_try) 2>&5
  5844. ac_status=$?
  5845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5846. (exit $ac_status); }; } &&
  5847. { ac_try='test -s conftest.$ac_objext'
  5848. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5849. (eval $ac_try) 2>&5
  5850. ac_status=$?
  5851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5852. (exit $ac_status); }; }; then
  5853. ac_cv_type_pid_t=yes
  5854. else
  5855. echo "$as_me: failed program was:" >&5
  5856. sed 's/^/| /' conftest.$ac_ext >&5
  5857. ac_cv_type_pid_t=no
  5858. fi
  5859. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5860. fi
  5861. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5862. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5863. if test $ac_cv_type_pid_t = yes; then
  5864. :
  5865. else
  5866. cat >>confdefs.h <<_ACEOF
  5867. #define pid_t int
  5868. _ACEOF
  5869. fi
  5870. echo "$as_me:$LINENO: checking for size_t" >&5
  5871. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5872. if test "${ac_cv_type_size_t+set}" = set; then
  5873. echo $ECHO_N "(cached) $ECHO_C" >&6
  5874. else
  5875. cat >conftest.$ac_ext <<_ACEOF
  5876. /* confdefs.h. */
  5877. _ACEOF
  5878. cat confdefs.h >>conftest.$ac_ext
  5879. cat >>conftest.$ac_ext <<_ACEOF
  5880. /* end confdefs.h. */
  5881. $ac_includes_default
  5882. int
  5883. main ()
  5884. {
  5885. if ((size_t *) 0)
  5886. return 0;
  5887. if (sizeof (size_t))
  5888. return 0;
  5889. ;
  5890. return 0;
  5891. }
  5892. _ACEOF
  5893. rm -f conftest.$ac_objext
  5894. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5895. (eval $ac_compile) 2>conftest.er1
  5896. ac_status=$?
  5897. grep -v '^ *+' conftest.er1 >conftest.err
  5898. rm -f conftest.er1
  5899. cat conftest.err >&5
  5900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5901. (exit $ac_status); } &&
  5902. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5903. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5904. (eval $ac_try) 2>&5
  5905. ac_status=$?
  5906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5907. (exit $ac_status); }; } &&
  5908. { ac_try='test -s conftest.$ac_objext'
  5909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5910. (eval $ac_try) 2>&5
  5911. ac_status=$?
  5912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5913. (exit $ac_status); }; }; then
  5914. ac_cv_type_size_t=yes
  5915. else
  5916. echo "$as_me: failed program was:" >&5
  5917. sed 's/^/| /' conftest.$ac_ext >&5
  5918. ac_cv_type_size_t=no
  5919. fi
  5920. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5921. fi
  5922. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5923. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5924. if test $ac_cv_type_size_t = yes; then
  5925. :
  5926. else
  5927. cat >>confdefs.h <<_ACEOF
  5928. #define size_t unsigned
  5929. _ACEOF
  5930. fi
  5931. for ac_func in vprintf
  5932. do
  5933. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5934. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5935. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5936. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5937. echo $ECHO_N "(cached) $ECHO_C" >&6
  5938. else
  5939. cat >conftest.$ac_ext <<_ACEOF
  5940. /* confdefs.h. */
  5941. _ACEOF
  5942. cat confdefs.h >>conftest.$ac_ext
  5943. cat >>conftest.$ac_ext <<_ACEOF
  5944. /* end confdefs.h. */
  5945. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5946. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5947. #define $ac_func innocuous_$ac_func
  5948. /* System header to define __stub macros and hopefully few prototypes,
  5949. which can conflict with char $ac_func (); below.
  5950. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5951. <limits.h> exists even on freestanding compilers. */
  5952. #ifdef __STDC__
  5953. # include <limits.h>
  5954. #else
  5955. # include <assert.h>
  5956. #endif
  5957. #undef $ac_func
  5958. /* Override any gcc2 internal prototype to avoid an error. */
  5959. #ifdef __cplusplus
  5960. extern "C"
  5961. {
  5962. #endif
  5963. /* We use char because int might match the return type of a gcc2
  5964. builtin and then its argument prototype would still apply. */
  5965. char $ac_func ();
  5966. /* The GNU C library defines this for functions which it implements
  5967. to always fail with ENOSYS. Some functions are actually named
  5968. something starting with __ and the normal name is an alias. */
  5969. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5970. choke me
  5971. #else
  5972. char (*f) () = $ac_func;
  5973. #endif
  5974. #ifdef __cplusplus
  5975. }
  5976. #endif
  5977. int
  5978. main ()
  5979. {
  5980. return f != $ac_func;
  5981. ;
  5982. return 0;
  5983. }
  5984. _ACEOF
  5985. rm -f conftest.$ac_objext conftest$ac_exeext
  5986. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5987. (eval $ac_link) 2>conftest.er1
  5988. ac_status=$?
  5989. grep -v '^ *+' conftest.er1 >conftest.err
  5990. rm -f conftest.er1
  5991. cat conftest.err >&5
  5992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5993. (exit $ac_status); } &&
  5994. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5995. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5996. (eval $ac_try) 2>&5
  5997. ac_status=$?
  5998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5999. (exit $ac_status); }; } &&
  6000. { ac_try='test -s conftest$ac_exeext'
  6001. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6002. (eval $ac_try) 2>&5
  6003. ac_status=$?
  6004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6005. (exit $ac_status); }; }; then
  6006. eval "$as_ac_var=yes"
  6007. else
  6008. echo "$as_me: failed program was:" >&5
  6009. sed 's/^/| /' conftest.$ac_ext >&5
  6010. eval "$as_ac_var=no"
  6011. fi
  6012. rm -f conftest.err conftest.$ac_objext \
  6013. conftest$ac_exeext conftest.$ac_ext
  6014. fi
  6015. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6016. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6017. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6018. cat >>confdefs.h <<_ACEOF
  6019. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6020. _ACEOF
  6021. echo "$as_me:$LINENO: checking for _doprnt" >&5
  6022. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  6023. if test "${ac_cv_func__doprnt+set}" = set; then
  6024. echo $ECHO_N "(cached) $ECHO_C" >&6
  6025. else
  6026. cat >conftest.$ac_ext <<_ACEOF
  6027. /* confdefs.h. */
  6028. _ACEOF
  6029. cat confdefs.h >>conftest.$ac_ext
  6030. cat >>conftest.$ac_ext <<_ACEOF
  6031. /* end confdefs.h. */
  6032. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  6033. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6034. #define _doprnt innocuous__doprnt
  6035. /* System header to define __stub macros and hopefully few prototypes,
  6036. which can conflict with char _doprnt (); below.
  6037. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6038. <limits.h> exists even on freestanding compilers. */
  6039. #ifdef __STDC__
  6040. # include <limits.h>
  6041. #else
  6042. # include <assert.h>
  6043. #endif
  6044. #undef _doprnt
  6045. /* Override any gcc2 internal prototype to avoid an error. */
  6046. #ifdef __cplusplus
  6047. extern "C"
  6048. {
  6049. #endif
  6050. /* We use char because int might match the return type of a gcc2
  6051. builtin and then its argument prototype would still apply. */
  6052. char _doprnt ();
  6053. /* The GNU C library defines this for functions which it implements
  6054. to always fail with ENOSYS. Some functions are actually named
  6055. something starting with __ and the normal name is an alias. */
  6056. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  6057. choke me
  6058. #else
  6059. char (*f) () = _doprnt;
  6060. #endif
  6061. #ifdef __cplusplus
  6062. }
  6063. #endif
  6064. int
  6065. main ()
  6066. {
  6067. return f != _doprnt;
  6068. ;
  6069. return 0;
  6070. }
  6071. _ACEOF
  6072. rm -f conftest.$ac_objext conftest$ac_exeext
  6073. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6074. (eval $ac_link) 2>conftest.er1
  6075. ac_status=$?
  6076. grep -v '^ *+' conftest.er1 >conftest.err
  6077. rm -f conftest.er1
  6078. cat conftest.err >&5
  6079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6080. (exit $ac_status); } &&
  6081. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6082. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6083. (eval $ac_try) 2>&5
  6084. ac_status=$?
  6085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6086. (exit $ac_status); }; } &&
  6087. { ac_try='test -s conftest$ac_exeext'
  6088. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6089. (eval $ac_try) 2>&5
  6090. ac_status=$?
  6091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6092. (exit $ac_status); }; }; then
  6093. ac_cv_func__doprnt=yes
  6094. else
  6095. echo "$as_me: failed program was:" >&5
  6096. sed 's/^/| /' conftest.$ac_ext >&5
  6097. ac_cv_func__doprnt=no
  6098. fi
  6099. rm -f conftest.err conftest.$ac_objext \
  6100. conftest$ac_exeext conftest.$ac_ext
  6101. fi
  6102. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  6103. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  6104. if test $ac_cv_func__doprnt = yes; then
  6105. cat >>confdefs.h <<\_ACEOF
  6106. #define HAVE_DOPRNT 1
  6107. _ACEOF
  6108. fi
  6109. fi
  6110. done
  6111. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6112. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  6113. if test "${ac_cv_c_const+set}" = set; then
  6114. echo $ECHO_N "(cached) $ECHO_C" >&6
  6115. else
  6116. cat >conftest.$ac_ext <<_ACEOF
  6117. /* confdefs.h. */
  6118. _ACEOF
  6119. cat confdefs.h >>conftest.$ac_ext
  6120. cat >>conftest.$ac_ext <<_ACEOF
  6121. /* end confdefs.h. */
  6122. int
  6123. main ()
  6124. {
  6125. /* FIXME: Include the comments suggested by Paul. */
  6126. #ifndef __cplusplus
  6127. /* Ultrix mips cc rejects this. */
  6128. typedef int charset[2];
  6129. const charset x;
  6130. /* SunOS 4.1.1 cc rejects this. */
  6131. char const *const *ccp;
  6132. char **p;
  6133. /* NEC SVR4.0.2 mips cc rejects this. */
  6134. struct point {int x, y;};
  6135. static struct point const zero = {0,0};
  6136. /* AIX XL C 1.02.0.0 rejects this.
  6137. It does not let you subtract one const X* pointer from another in
  6138. an arm of an if-expression whose if-part is not a constant
  6139. expression */
  6140. const char *g = "string";
  6141. ccp = &g + (g ? g-g : 0);
  6142. /* HPUX 7.0 cc rejects these. */
  6143. ++ccp;
  6144. p = (char**) ccp;
  6145. ccp = (char const *const *) p;
  6146. { /* SCO 3.2v4 cc rejects this. */
  6147. char *t;
  6148. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6149. *t++ = 0;
  6150. }
  6151. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6152. int x[] = {25, 17};
  6153. const int *foo = &x[0];
  6154. ++foo;
  6155. }
  6156. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6157. typedef const int *iptr;
  6158. iptr p = 0;
  6159. ++p;
  6160. }
  6161. { /* AIX XL C 1.02.0.0 rejects this saying
  6162. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6163. struct s { int j; const int *ap[3]; };
  6164. struct s *b; b->j = 5;
  6165. }
  6166. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6167. const int foo = 10;
  6168. }
  6169. #endif
  6170. ;
  6171. return 0;
  6172. }
  6173. _ACEOF
  6174. rm -f conftest.$ac_objext
  6175. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6176. (eval $ac_compile) 2>conftest.er1
  6177. ac_status=$?
  6178. grep -v '^ *+' conftest.er1 >conftest.err
  6179. rm -f conftest.er1
  6180. cat conftest.err >&5
  6181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6182. (exit $ac_status); } &&
  6183. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6184. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6185. (eval $ac_try) 2>&5
  6186. ac_status=$?
  6187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6188. (exit $ac_status); }; } &&
  6189. { ac_try='test -s conftest.$ac_objext'
  6190. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6191. (eval $ac_try) 2>&5
  6192. ac_status=$?
  6193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6194. (exit $ac_status); }; }; then
  6195. ac_cv_c_const=yes
  6196. else
  6197. echo "$as_me: failed program was:" >&5
  6198. sed 's/^/| /' conftest.$ac_ext >&5
  6199. ac_cv_c_const=no
  6200. fi
  6201. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6202. fi
  6203. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6204. echo "${ECHO_T}$ac_cv_c_const" >&6
  6205. if test $ac_cv_c_const = no; then
  6206. cat >>confdefs.h <<\_ACEOF
  6207. #define const
  6208. _ACEOF
  6209. fi
  6210. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  6211. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  6212. if test "${ac_cv_c_bigendian+set}" = set; then
  6213. echo $ECHO_N "(cached) $ECHO_C" >&6
  6214. else
  6215. # See if sys/param.h defines the BYTE_ORDER macro.
  6216. cat >conftest.$ac_ext <<_ACEOF
  6217. /* confdefs.h. */
  6218. _ACEOF
  6219. cat confdefs.h >>conftest.$ac_ext
  6220. cat >>conftest.$ac_ext <<_ACEOF
  6221. /* end confdefs.h. */
  6222. #include <sys/types.h>
  6223. #include <sys/param.h>
  6224. int
  6225. main ()
  6226. {
  6227. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  6228. bogus endian macros
  6229. #endif
  6230. ;
  6231. return 0;
  6232. }
  6233. _ACEOF
  6234. rm -f conftest.$ac_objext
  6235. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6236. (eval $ac_compile) 2>conftest.er1
  6237. ac_status=$?
  6238. grep -v '^ *+' conftest.er1 >conftest.err
  6239. rm -f conftest.er1
  6240. cat conftest.err >&5
  6241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6242. (exit $ac_status); } &&
  6243. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6244. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6245. (eval $ac_try) 2>&5
  6246. ac_status=$?
  6247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6248. (exit $ac_status); }; } &&
  6249. { ac_try='test -s conftest.$ac_objext'
  6250. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6251. (eval $ac_try) 2>&5
  6252. ac_status=$?
  6253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6254. (exit $ac_status); }; }; then
  6255. # It does; now see whether it defined to BIG_ENDIAN or not.
  6256. cat >conftest.$ac_ext <<_ACEOF
  6257. /* confdefs.h. */
  6258. _ACEOF
  6259. cat confdefs.h >>conftest.$ac_ext
  6260. cat >>conftest.$ac_ext <<_ACEOF
  6261. /* end confdefs.h. */
  6262. #include <sys/types.h>
  6263. #include <sys/param.h>
  6264. int
  6265. main ()
  6266. {
  6267. #if BYTE_ORDER != BIG_ENDIAN
  6268. not big endian
  6269. #endif
  6270. ;
  6271. return 0;
  6272. }
  6273. _ACEOF
  6274. rm -f conftest.$ac_objext
  6275. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6276. (eval $ac_compile) 2>conftest.er1
  6277. ac_status=$?
  6278. grep -v '^ *+' conftest.er1 >conftest.err
  6279. rm -f conftest.er1
  6280. cat conftest.err >&5
  6281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6282. (exit $ac_status); } &&
  6283. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6284. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6285. (eval $ac_try) 2>&5
  6286. ac_status=$?
  6287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6288. (exit $ac_status); }; } &&
  6289. { ac_try='test -s conftest.$ac_objext'
  6290. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6291. (eval $ac_try) 2>&5
  6292. ac_status=$?
  6293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6294. (exit $ac_status); }; }; then
  6295. ac_cv_c_bigendian=yes
  6296. else
  6297. echo "$as_me: failed program was:" >&5
  6298. sed 's/^/| /' conftest.$ac_ext >&5
  6299. ac_cv_c_bigendian=no
  6300. fi
  6301. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6302. else
  6303. echo "$as_me: failed program was:" >&5
  6304. sed 's/^/| /' conftest.$ac_ext >&5
  6305. # It does not; compile a test program.
  6306. if test "$cross_compiling" = yes; then
  6307. # try to guess the endianness by grepping values into an object file
  6308. ac_cv_c_bigendian=unknown
  6309. cat >conftest.$ac_ext <<_ACEOF
  6310. /* confdefs.h. */
  6311. _ACEOF
  6312. cat confdefs.h >>conftest.$ac_ext
  6313. cat >>conftest.$ac_ext <<_ACEOF
  6314. /* end confdefs.h. */
  6315. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6316. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6317. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  6318. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6319. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6320. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  6321. int
  6322. main ()
  6323. {
  6324. _ascii (); _ebcdic ();
  6325. ;
  6326. return 0;
  6327. }
  6328. _ACEOF
  6329. rm -f conftest.$ac_objext
  6330. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6331. (eval $ac_compile) 2>conftest.er1
  6332. ac_status=$?
  6333. grep -v '^ *+' conftest.er1 >conftest.err
  6334. rm -f conftest.er1
  6335. cat conftest.err >&5
  6336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6337. (exit $ac_status); } &&
  6338. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6340. (eval $ac_try) 2>&5
  6341. ac_status=$?
  6342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6343. (exit $ac_status); }; } &&
  6344. { ac_try='test -s conftest.$ac_objext'
  6345. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6346. (eval $ac_try) 2>&5
  6347. ac_status=$?
  6348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6349. (exit $ac_status); }; }; then
  6350. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  6351. ac_cv_c_bigendian=yes
  6352. fi
  6353. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6354. if test "$ac_cv_c_bigendian" = unknown; then
  6355. ac_cv_c_bigendian=no
  6356. else
  6357. # finding both strings is unlikely to happen, but who knows?
  6358. ac_cv_c_bigendian=unknown
  6359. fi
  6360. fi
  6361. else
  6362. echo "$as_me: failed program was:" >&5
  6363. sed 's/^/| /' conftest.$ac_ext >&5
  6364. fi
  6365. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6366. else
  6367. cat >conftest.$ac_ext <<_ACEOF
  6368. /* confdefs.h. */
  6369. _ACEOF
  6370. cat confdefs.h >>conftest.$ac_ext
  6371. cat >>conftest.$ac_ext <<_ACEOF
  6372. /* end confdefs.h. */
  6373. int
  6374. main ()
  6375. {
  6376. /* Are we little or big endian? From Harbison&Steele. */
  6377. union
  6378. {
  6379. long l;
  6380. char c[sizeof (long)];
  6381. } u;
  6382. u.l = 1;
  6383. exit (u.c[sizeof (long) - 1] == 1);
  6384. }
  6385. _ACEOF
  6386. rm -f conftest$ac_exeext
  6387. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6388. (eval $ac_link) 2>&5
  6389. ac_status=$?
  6390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6391. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6392. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6393. (eval $ac_try) 2>&5
  6394. ac_status=$?
  6395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6396. (exit $ac_status); }; }; then
  6397. ac_cv_c_bigendian=no
  6398. else
  6399. echo "$as_me: program exited with status $ac_status" >&5
  6400. echo "$as_me: failed program was:" >&5
  6401. sed 's/^/| /' conftest.$ac_ext >&5
  6402. ( exit $ac_status )
  6403. ac_cv_c_bigendian=yes
  6404. fi
  6405. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6406. fi
  6407. fi
  6408. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6409. fi
  6410. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6411. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6412. case $ac_cv_c_bigendian in
  6413. yes)
  6414. cat >>confdefs.h <<\_ACEOF
  6415. #define WORDS_BIGENDIAN 1
  6416. _ACEOF
  6417. ;;
  6418. no)
  6419. ;;
  6420. *)
  6421. { { echo "$as_me:$LINENO: error: unknown endianness
  6422. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6423. echo "$as_me: error: unknown endianness
  6424. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6425. { (exit 1); exit 1; }; } ;;
  6426. esac
  6427. echo "$as_me:$LINENO: checking for inline" >&5
  6428. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6429. if test "${ac_cv_c_inline+set}" = set; then
  6430. echo $ECHO_N "(cached) $ECHO_C" >&6
  6431. else
  6432. ac_cv_c_inline=no
  6433. for ac_kw in inline __inline__ __inline; do
  6434. cat >conftest.$ac_ext <<_ACEOF
  6435. /* confdefs.h. */
  6436. _ACEOF
  6437. cat confdefs.h >>conftest.$ac_ext
  6438. cat >>conftest.$ac_ext <<_ACEOF
  6439. /* end confdefs.h. */
  6440. #ifndef __cplusplus
  6441. typedef int foo_t;
  6442. static $ac_kw foo_t static_foo () {return 0; }
  6443. $ac_kw foo_t foo () {return 0; }
  6444. #endif
  6445. _ACEOF
  6446. rm -f conftest.$ac_objext
  6447. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6448. (eval $ac_compile) 2>conftest.er1
  6449. ac_status=$?
  6450. grep -v '^ *+' conftest.er1 >conftest.err
  6451. rm -f conftest.er1
  6452. cat conftest.err >&5
  6453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6454. (exit $ac_status); } &&
  6455. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6456. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6457. (eval $ac_try) 2>&5
  6458. ac_status=$?
  6459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6460. (exit $ac_status); }; } &&
  6461. { ac_try='test -s conftest.$ac_objext'
  6462. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6463. (eval $ac_try) 2>&5
  6464. ac_status=$?
  6465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6466. (exit $ac_status); }; }; then
  6467. ac_cv_c_inline=$ac_kw; break
  6468. else
  6469. echo "$as_me: failed program was:" >&5
  6470. sed 's/^/| /' conftest.$ac_ext >&5
  6471. fi
  6472. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6473. done
  6474. fi
  6475. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6476. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6477. case $ac_cv_c_inline in
  6478. inline | yes) ;;
  6479. *)
  6480. case $ac_cv_c_inline in
  6481. no) ac_val=;;
  6482. *) ac_val=$ac_cv_c_inline;;
  6483. esac
  6484. cat >>confdefs.h <<_ACEOF
  6485. #ifndef __cplusplus
  6486. #define inline $ac_val
  6487. #endif
  6488. _ACEOF
  6489. ;;
  6490. esac
  6491. echo "$as_me:$LINENO: checking for unsigned long" >&5
  6492. echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
  6493. if test "${ac_cv_type_unsigned_long+set}" = set; then
  6494. echo $ECHO_N "(cached) $ECHO_C" >&6
  6495. else
  6496. cat >conftest.$ac_ext <<_ACEOF
  6497. /* confdefs.h. */
  6498. _ACEOF
  6499. cat confdefs.h >>conftest.$ac_ext
  6500. cat >>conftest.$ac_ext <<_ACEOF
  6501. /* end confdefs.h. */
  6502. $ac_includes_default
  6503. int
  6504. main ()
  6505. {
  6506. if ((unsigned long *) 0)
  6507. return 0;
  6508. if (sizeof (unsigned long))
  6509. return 0;
  6510. ;
  6511. return 0;
  6512. }
  6513. _ACEOF
  6514. rm -f conftest.$ac_objext
  6515. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6516. (eval $ac_compile) 2>conftest.er1
  6517. ac_status=$?
  6518. grep -v '^ *+' conftest.er1 >conftest.err
  6519. rm -f conftest.er1
  6520. cat conftest.err >&5
  6521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6522. (exit $ac_status); } &&
  6523. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6524. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6525. (eval $ac_try) 2>&5
  6526. ac_status=$?
  6527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6528. (exit $ac_status); }; } &&
  6529. { ac_try='test -s conftest.$ac_objext'
  6530. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6531. (eval $ac_try) 2>&5
  6532. ac_status=$?
  6533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6534. (exit $ac_status); }; }; then
  6535. ac_cv_type_unsigned_long=yes
  6536. else
  6537. echo "$as_me: failed program was:" >&5
  6538. sed 's/^/| /' conftest.$ac_ext >&5
  6539. ac_cv_type_unsigned_long=no
  6540. fi
  6541. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6542. fi
  6543. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
  6544. echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
  6545. echo "$as_me:$LINENO: checking size of unsigned long" >&5
  6546. echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
  6547. if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
  6548. echo $ECHO_N "(cached) $ECHO_C" >&6
  6549. else
  6550. if test "$ac_cv_type_unsigned_long" = yes; then
  6551. # The cast to unsigned long works around a bug in the HP C Compiler
  6552. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6553. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6554. # This bug is HP SR number 8606223364.
  6555. if test "$cross_compiling" = yes; then
  6556. # Depending upon the size, compute the lo and hi bounds.
  6557. cat >conftest.$ac_ext <<_ACEOF
  6558. /* confdefs.h. */
  6559. _ACEOF
  6560. cat confdefs.h >>conftest.$ac_ext
  6561. cat >>conftest.$ac_ext <<_ACEOF
  6562. /* end confdefs.h. */
  6563. $ac_includes_default
  6564. int
  6565. main ()
  6566. {
  6567. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
  6568. test_array [0] = 0
  6569. ;
  6570. return 0;
  6571. }
  6572. _ACEOF
  6573. rm -f conftest.$ac_objext
  6574. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6575. (eval $ac_compile) 2>conftest.er1
  6576. ac_status=$?
  6577. grep -v '^ *+' conftest.er1 >conftest.err
  6578. rm -f conftest.er1
  6579. cat conftest.err >&5
  6580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6581. (exit $ac_status); } &&
  6582. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6583. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6584. (eval $ac_try) 2>&5
  6585. ac_status=$?
  6586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6587. (exit $ac_status); }; } &&
  6588. { ac_try='test -s conftest.$ac_objext'
  6589. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6590. (eval $ac_try) 2>&5
  6591. ac_status=$?
  6592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6593. (exit $ac_status); }; }; then
  6594. ac_lo=0 ac_mid=0
  6595. while :; do
  6596. cat >conftest.$ac_ext <<_ACEOF
  6597. /* confdefs.h. */
  6598. _ACEOF
  6599. cat confdefs.h >>conftest.$ac_ext
  6600. cat >>conftest.$ac_ext <<_ACEOF
  6601. /* end confdefs.h. */
  6602. $ac_includes_default
  6603. int
  6604. main ()
  6605. {
  6606. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
  6607. test_array [0] = 0
  6608. ;
  6609. return 0;
  6610. }
  6611. _ACEOF
  6612. rm -f conftest.$ac_objext
  6613. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6614. (eval $ac_compile) 2>conftest.er1
  6615. ac_status=$?
  6616. grep -v '^ *+' conftest.er1 >conftest.err
  6617. rm -f conftest.er1
  6618. cat conftest.err >&5
  6619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6620. (exit $ac_status); } &&
  6621. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6622. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6623. (eval $ac_try) 2>&5
  6624. ac_status=$?
  6625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6626. (exit $ac_status); }; } &&
  6627. { ac_try='test -s conftest.$ac_objext'
  6628. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6629. (eval $ac_try) 2>&5
  6630. ac_status=$?
  6631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6632. (exit $ac_status); }; }; then
  6633. ac_hi=$ac_mid; break
  6634. else
  6635. echo "$as_me: failed program was:" >&5
  6636. sed 's/^/| /' conftest.$ac_ext >&5
  6637. ac_lo=`expr $ac_mid + 1`
  6638. if test $ac_lo -le $ac_mid; then
  6639. ac_lo= ac_hi=
  6640. break
  6641. fi
  6642. ac_mid=`expr 2 '*' $ac_mid + 1`
  6643. fi
  6644. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6645. done
  6646. else
  6647. echo "$as_me: failed program was:" >&5
  6648. sed 's/^/| /' conftest.$ac_ext >&5
  6649. cat >conftest.$ac_ext <<_ACEOF
  6650. /* confdefs.h. */
  6651. _ACEOF
  6652. cat confdefs.h >>conftest.$ac_ext
  6653. cat >>conftest.$ac_ext <<_ACEOF
  6654. /* end confdefs.h. */
  6655. $ac_includes_default
  6656. int
  6657. main ()
  6658. {
  6659. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
  6660. test_array [0] = 0
  6661. ;
  6662. return 0;
  6663. }
  6664. _ACEOF
  6665. rm -f conftest.$ac_objext
  6666. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6667. (eval $ac_compile) 2>conftest.er1
  6668. ac_status=$?
  6669. grep -v '^ *+' conftest.er1 >conftest.err
  6670. rm -f conftest.er1
  6671. cat conftest.err >&5
  6672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6673. (exit $ac_status); } &&
  6674. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6675. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6676. (eval $ac_try) 2>&5
  6677. ac_status=$?
  6678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6679. (exit $ac_status); }; } &&
  6680. { ac_try='test -s conftest.$ac_objext'
  6681. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6682. (eval $ac_try) 2>&5
  6683. ac_status=$?
  6684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6685. (exit $ac_status); }; }; then
  6686. ac_hi=-1 ac_mid=-1
  6687. while :; do
  6688. cat >conftest.$ac_ext <<_ACEOF
  6689. /* confdefs.h. */
  6690. _ACEOF
  6691. cat confdefs.h >>conftest.$ac_ext
  6692. cat >>conftest.$ac_ext <<_ACEOF
  6693. /* end confdefs.h. */
  6694. $ac_includes_default
  6695. int
  6696. main ()
  6697. {
  6698. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
  6699. test_array [0] = 0
  6700. ;
  6701. return 0;
  6702. }
  6703. _ACEOF
  6704. rm -f conftest.$ac_objext
  6705. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6706. (eval $ac_compile) 2>conftest.er1
  6707. ac_status=$?
  6708. grep -v '^ *+' conftest.er1 >conftest.err
  6709. rm -f conftest.er1
  6710. cat conftest.err >&5
  6711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6712. (exit $ac_status); } &&
  6713. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6714. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6715. (eval $ac_try) 2>&5
  6716. ac_status=$?
  6717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6718. (exit $ac_status); }; } &&
  6719. { ac_try='test -s conftest.$ac_objext'
  6720. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6721. (eval $ac_try) 2>&5
  6722. ac_status=$?
  6723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6724. (exit $ac_status); }; }; then
  6725. ac_lo=$ac_mid; break
  6726. else
  6727. echo "$as_me: failed program was:" >&5
  6728. sed 's/^/| /' conftest.$ac_ext >&5
  6729. ac_hi=`expr '(' $ac_mid ')' - 1`
  6730. if test $ac_mid -le $ac_hi; then
  6731. ac_lo= ac_hi=
  6732. break
  6733. fi
  6734. ac_mid=`expr 2 '*' $ac_mid`
  6735. fi
  6736. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6737. done
  6738. else
  6739. echo "$as_me: failed program was:" >&5
  6740. sed 's/^/| /' conftest.$ac_ext >&5
  6741. ac_lo= ac_hi=
  6742. fi
  6743. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6744. fi
  6745. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6746. # Binary search between lo and hi bounds.
  6747. while test "x$ac_lo" != "x$ac_hi"; do
  6748. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6749. cat >conftest.$ac_ext <<_ACEOF
  6750. /* confdefs.h. */
  6751. _ACEOF
  6752. cat confdefs.h >>conftest.$ac_ext
  6753. cat >>conftest.$ac_ext <<_ACEOF
  6754. /* end confdefs.h. */
  6755. $ac_includes_default
  6756. int
  6757. main ()
  6758. {
  6759. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
  6760. test_array [0] = 0
  6761. ;
  6762. return 0;
  6763. }
  6764. _ACEOF
  6765. rm -f conftest.$ac_objext
  6766. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6767. (eval $ac_compile) 2>conftest.er1
  6768. ac_status=$?
  6769. grep -v '^ *+' conftest.er1 >conftest.err
  6770. rm -f conftest.er1
  6771. cat conftest.err >&5
  6772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6773. (exit $ac_status); } &&
  6774. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6775. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6776. (eval $ac_try) 2>&5
  6777. ac_status=$?
  6778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6779. (exit $ac_status); }; } &&
  6780. { ac_try='test -s conftest.$ac_objext'
  6781. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6782. (eval $ac_try) 2>&5
  6783. ac_status=$?
  6784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6785. (exit $ac_status); }; }; then
  6786. ac_hi=$ac_mid
  6787. else
  6788. echo "$as_me: failed program was:" >&5
  6789. sed 's/^/| /' conftest.$ac_ext >&5
  6790. ac_lo=`expr '(' $ac_mid ')' + 1`
  6791. fi
  6792. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6793. done
  6794. case $ac_lo in
  6795. ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
  6796. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
  6797. See \`config.log' for more details." >&5
  6798. echo "$as_me: error: cannot compute sizeof (unsigned long), 77
  6799. See \`config.log' for more details." >&2;}
  6800. { (exit 1); exit 1; }; } ;;
  6801. esac
  6802. else
  6803. if test "$cross_compiling" = yes; then
  6804. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6805. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6806. { (exit 1); exit 1; }; }
  6807. else
  6808. cat >conftest.$ac_ext <<_ACEOF
  6809. /* confdefs.h. */
  6810. _ACEOF
  6811. cat confdefs.h >>conftest.$ac_ext
  6812. cat >>conftest.$ac_ext <<_ACEOF
  6813. /* end confdefs.h. */
  6814. $ac_includes_default
  6815. long longval () { return (long) (sizeof (unsigned long)); }
  6816. unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
  6817. #include <stdio.h>
  6818. #include <stdlib.h>
  6819. int
  6820. main ()
  6821. {
  6822. FILE *f = fopen ("conftest.val", "w");
  6823. if (! f)
  6824. exit (1);
  6825. if (((long) (sizeof (unsigned long))) < 0)
  6826. {
  6827. long i = longval ();
  6828. if (i != ((long) (sizeof (unsigned long))))
  6829. exit (1);
  6830. fprintf (f, "%ld\n", i);
  6831. }
  6832. else
  6833. {
  6834. unsigned long i = ulongval ();
  6835. if (i != ((long) (sizeof (unsigned long))))
  6836. exit (1);
  6837. fprintf (f, "%lu\n", i);
  6838. }
  6839. exit (ferror (f) || fclose (f) != 0);
  6840. ;
  6841. return 0;
  6842. }
  6843. _ACEOF
  6844. rm -f conftest$ac_exeext
  6845. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6846. (eval $ac_link) 2>&5
  6847. ac_status=$?
  6848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6849. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6850. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6851. (eval $ac_try) 2>&5
  6852. ac_status=$?
  6853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6854. (exit $ac_status); }; }; then
  6855. ac_cv_sizeof_unsigned_long=`cat conftest.val`
  6856. else
  6857. echo "$as_me: program exited with status $ac_status" >&5
  6858. echo "$as_me: failed program was:" >&5
  6859. sed 's/^/| /' conftest.$ac_ext >&5
  6860. ( exit $ac_status )
  6861. { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
  6862. See \`config.log' for more details." >&5
  6863. echo "$as_me: error: cannot compute sizeof (unsigned long), 77
  6864. See \`config.log' for more details." >&2;}
  6865. { (exit 1); exit 1; }; }
  6866. fi
  6867. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6868. fi
  6869. fi
  6870. rm -f conftest.val
  6871. else
  6872. ac_cv_sizeof_unsigned_long=0
  6873. fi
  6874. fi
  6875. echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
  6876. echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
  6877. cat >>confdefs.h <<_ACEOF
  6878. #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  6879. _ACEOF
  6880. echo "$as_me:$LINENO: checking for unsigned int" >&5
  6881. echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
  6882. if test "${ac_cv_type_unsigned_int+set}" = set; then
  6883. echo $ECHO_N "(cached) $ECHO_C" >&6
  6884. else
  6885. cat >conftest.$ac_ext <<_ACEOF
  6886. /* confdefs.h. */
  6887. _ACEOF
  6888. cat confdefs.h >>conftest.$ac_ext
  6889. cat >>conftest.$ac_ext <<_ACEOF
  6890. /* end confdefs.h. */
  6891. $ac_includes_default
  6892. int
  6893. main ()
  6894. {
  6895. if ((unsigned int *) 0)
  6896. return 0;
  6897. if (sizeof (unsigned int))
  6898. return 0;
  6899. ;
  6900. return 0;
  6901. }
  6902. _ACEOF
  6903. rm -f conftest.$ac_objext
  6904. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6905. (eval $ac_compile) 2>conftest.er1
  6906. ac_status=$?
  6907. grep -v '^ *+' conftest.er1 >conftest.err
  6908. rm -f conftest.er1
  6909. cat conftest.err >&5
  6910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6911. (exit $ac_status); } &&
  6912. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6913. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6914. (eval $ac_try) 2>&5
  6915. ac_status=$?
  6916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6917. (exit $ac_status); }; } &&
  6918. { ac_try='test -s conftest.$ac_objext'
  6919. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6920. (eval $ac_try) 2>&5
  6921. ac_status=$?
  6922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6923. (exit $ac_status); }; }; then
  6924. ac_cv_type_unsigned_int=yes
  6925. else
  6926. echo "$as_me: failed program was:" >&5
  6927. sed 's/^/| /' conftest.$ac_ext >&5
  6928. ac_cv_type_unsigned_int=no
  6929. fi
  6930. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6931. fi
  6932. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
  6933. echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
  6934. echo "$as_me:$LINENO: checking size of unsigned int" >&5
  6935. echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
  6936. if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
  6937. echo $ECHO_N "(cached) $ECHO_C" >&6
  6938. else
  6939. if test "$ac_cv_type_unsigned_int" = yes; then
  6940. # The cast to unsigned long works around a bug in the HP C Compiler
  6941. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6942. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6943. # This bug is HP SR number 8606223364.
  6944. if test "$cross_compiling" = yes; then
  6945. # Depending upon the size, compute the lo and hi bounds.
  6946. cat >conftest.$ac_ext <<_ACEOF
  6947. /* confdefs.h. */
  6948. _ACEOF
  6949. cat confdefs.h >>conftest.$ac_ext
  6950. cat >>conftest.$ac_ext <<_ACEOF
  6951. /* end confdefs.h. */
  6952. $ac_includes_default
  6953. int
  6954. main ()
  6955. {
  6956. static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
  6957. test_array [0] = 0
  6958. ;
  6959. return 0;
  6960. }
  6961. _ACEOF
  6962. rm -f conftest.$ac_objext
  6963. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6964. (eval $ac_compile) 2>conftest.er1
  6965. ac_status=$?
  6966. grep -v '^ *+' conftest.er1 >conftest.err
  6967. rm -f conftest.er1
  6968. cat conftest.err >&5
  6969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6970. (exit $ac_status); } &&
  6971. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6972. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6973. (eval $ac_try) 2>&5
  6974. ac_status=$?
  6975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6976. (exit $ac_status); }; } &&
  6977. { ac_try='test -s conftest.$ac_objext'
  6978. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6979. (eval $ac_try) 2>&5
  6980. ac_status=$?
  6981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6982. (exit $ac_status); }; }; then
  6983. ac_lo=0 ac_mid=0
  6984. while :; do
  6985. cat >conftest.$ac_ext <<_ACEOF
  6986. /* confdefs.h. */
  6987. _ACEOF
  6988. cat confdefs.h >>conftest.$ac_ext
  6989. cat >>conftest.$ac_ext <<_ACEOF
  6990. /* end confdefs.h. */
  6991. $ac_includes_default
  6992. int
  6993. main ()
  6994. {
  6995. static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
  6996. test_array [0] = 0
  6997. ;
  6998. return 0;
  6999. }
  7000. _ACEOF
  7001. rm -f conftest.$ac_objext
  7002. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7003. (eval $ac_compile) 2>conftest.er1
  7004. ac_status=$?
  7005. grep -v '^ *+' conftest.er1 >conftest.err
  7006. rm -f conftest.er1
  7007. cat conftest.err >&5
  7008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7009. (exit $ac_status); } &&
  7010. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7011. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7012. (eval $ac_try) 2>&5
  7013. ac_status=$?
  7014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7015. (exit $ac_status); }; } &&
  7016. { ac_try='test -s conftest.$ac_objext'
  7017. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7018. (eval $ac_try) 2>&5
  7019. ac_status=$?
  7020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7021. (exit $ac_status); }; }; then
  7022. ac_hi=$ac_mid; break
  7023. else
  7024. echo "$as_me: failed program was:" >&5
  7025. sed 's/^/| /' conftest.$ac_ext >&5
  7026. ac_lo=`expr $ac_mid + 1`
  7027. if test $ac_lo -le $ac_mid; then
  7028. ac_lo= ac_hi=
  7029. break
  7030. fi
  7031. ac_mid=`expr 2 '*' $ac_mid + 1`
  7032. fi
  7033. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7034. done
  7035. else
  7036. echo "$as_me: failed program was:" >&5
  7037. sed 's/^/| /' conftest.$ac_ext >&5
  7038. cat >conftest.$ac_ext <<_ACEOF
  7039. /* confdefs.h. */
  7040. _ACEOF
  7041. cat confdefs.h >>conftest.$ac_ext
  7042. cat >>conftest.$ac_ext <<_ACEOF
  7043. /* end confdefs.h. */
  7044. $ac_includes_default
  7045. int
  7046. main ()
  7047. {
  7048. static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
  7049. test_array [0] = 0
  7050. ;
  7051. return 0;
  7052. }
  7053. _ACEOF
  7054. rm -f conftest.$ac_objext
  7055. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7056. (eval $ac_compile) 2>conftest.er1
  7057. ac_status=$?
  7058. grep -v '^ *+' conftest.er1 >conftest.err
  7059. rm -f conftest.er1
  7060. cat conftest.err >&5
  7061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7062. (exit $ac_status); } &&
  7063. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7064. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7065. (eval $ac_try) 2>&5
  7066. ac_status=$?
  7067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7068. (exit $ac_status); }; } &&
  7069. { ac_try='test -s conftest.$ac_objext'
  7070. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7071. (eval $ac_try) 2>&5
  7072. ac_status=$?
  7073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7074. (exit $ac_status); }; }; then
  7075. ac_hi=-1 ac_mid=-1
  7076. while :; do
  7077. cat >conftest.$ac_ext <<_ACEOF
  7078. /* confdefs.h. */
  7079. _ACEOF
  7080. cat confdefs.h >>conftest.$ac_ext
  7081. cat >>conftest.$ac_ext <<_ACEOF
  7082. /* end confdefs.h. */
  7083. $ac_includes_default
  7084. int
  7085. main ()
  7086. {
  7087. static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
  7088. test_array [0] = 0
  7089. ;
  7090. return 0;
  7091. }
  7092. _ACEOF
  7093. rm -f conftest.$ac_objext
  7094. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7095. (eval $ac_compile) 2>conftest.er1
  7096. ac_status=$?
  7097. grep -v '^ *+' conftest.er1 >conftest.err
  7098. rm -f conftest.er1
  7099. cat conftest.err >&5
  7100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7101. (exit $ac_status); } &&
  7102. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7103. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7104. (eval $ac_try) 2>&5
  7105. ac_status=$?
  7106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7107. (exit $ac_status); }; } &&
  7108. { ac_try='test -s conftest.$ac_objext'
  7109. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7110. (eval $ac_try) 2>&5
  7111. ac_status=$?
  7112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7113. (exit $ac_status); }; }; then
  7114. ac_lo=$ac_mid; break
  7115. else
  7116. echo "$as_me: failed program was:" >&5
  7117. sed 's/^/| /' conftest.$ac_ext >&5
  7118. ac_hi=`expr '(' $ac_mid ')' - 1`
  7119. if test $ac_mid -le $ac_hi; then
  7120. ac_lo= ac_hi=
  7121. break
  7122. fi
  7123. ac_mid=`expr 2 '*' $ac_mid`
  7124. fi
  7125. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7126. done
  7127. else
  7128. echo "$as_me: failed program was:" >&5
  7129. sed 's/^/| /' conftest.$ac_ext >&5
  7130. ac_lo= ac_hi=
  7131. fi
  7132. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7133. fi
  7134. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7135. # Binary search between lo and hi bounds.
  7136. while test "x$ac_lo" != "x$ac_hi"; do
  7137. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7138. cat >conftest.$ac_ext <<_ACEOF
  7139. /* confdefs.h. */
  7140. _ACEOF
  7141. cat confdefs.h >>conftest.$ac_ext
  7142. cat >>conftest.$ac_ext <<_ACEOF
  7143. /* end confdefs.h. */
  7144. $ac_includes_default
  7145. int
  7146. main ()
  7147. {
  7148. static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
  7149. test_array [0] = 0
  7150. ;
  7151. return 0;
  7152. }
  7153. _ACEOF
  7154. rm -f conftest.$ac_objext
  7155. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7156. (eval $ac_compile) 2>conftest.er1
  7157. ac_status=$?
  7158. grep -v '^ *+' conftest.er1 >conftest.err
  7159. rm -f conftest.er1
  7160. cat conftest.err >&5
  7161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7162. (exit $ac_status); } &&
  7163. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7164. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7165. (eval $ac_try) 2>&5
  7166. ac_status=$?
  7167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7168. (exit $ac_status); }; } &&
  7169. { ac_try='test -s conftest.$ac_objext'
  7170. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7171. (eval $ac_try) 2>&5
  7172. ac_status=$?
  7173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7174. (exit $ac_status); }; }; then
  7175. ac_hi=$ac_mid
  7176. else
  7177. echo "$as_me: failed program was:" >&5
  7178. sed 's/^/| /' conftest.$ac_ext >&5
  7179. ac_lo=`expr '(' $ac_mid ')' + 1`
  7180. fi
  7181. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7182. done
  7183. case $ac_lo in
  7184. ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
  7185. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
  7186. See \`config.log' for more details." >&5
  7187. echo "$as_me: error: cannot compute sizeof (unsigned int), 77
  7188. See \`config.log' for more details." >&2;}
  7189. { (exit 1); exit 1; }; } ;;
  7190. esac
  7191. else
  7192. if test "$cross_compiling" = yes; then
  7193. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7194. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7195. { (exit 1); exit 1; }; }
  7196. else
  7197. cat >conftest.$ac_ext <<_ACEOF
  7198. /* confdefs.h. */
  7199. _ACEOF
  7200. cat confdefs.h >>conftest.$ac_ext
  7201. cat >>conftest.$ac_ext <<_ACEOF
  7202. /* end confdefs.h. */
  7203. $ac_includes_default
  7204. long longval () { return (long) (sizeof (unsigned int)); }
  7205. unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
  7206. #include <stdio.h>
  7207. #include <stdlib.h>
  7208. int
  7209. main ()
  7210. {
  7211. FILE *f = fopen ("conftest.val", "w");
  7212. if (! f)
  7213. exit (1);
  7214. if (((long) (sizeof (unsigned int))) < 0)
  7215. {
  7216. long i = longval ();
  7217. if (i != ((long) (sizeof (unsigned int))))
  7218. exit (1);
  7219. fprintf (f, "%ld\n", i);
  7220. }
  7221. else
  7222. {
  7223. unsigned long i = ulongval ();
  7224. if (i != ((long) (sizeof (unsigned int))))
  7225. exit (1);
  7226. fprintf (f, "%lu\n", i);
  7227. }
  7228. exit (ferror (f) || fclose (f) != 0);
  7229. ;
  7230. return 0;
  7231. }
  7232. _ACEOF
  7233. rm -f conftest$ac_exeext
  7234. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7235. (eval $ac_link) 2>&5
  7236. ac_status=$?
  7237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7238. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7239. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7240. (eval $ac_try) 2>&5
  7241. ac_status=$?
  7242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7243. (exit $ac_status); }; }; then
  7244. ac_cv_sizeof_unsigned_int=`cat conftest.val`
  7245. else
  7246. echo "$as_me: program exited with status $ac_status" >&5
  7247. echo "$as_me: failed program was:" >&5
  7248. sed 's/^/| /' conftest.$ac_ext >&5
  7249. ( exit $ac_status )
  7250. { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
  7251. See \`config.log' for more details." >&5
  7252. echo "$as_me: error: cannot compute sizeof (unsigned int), 77
  7253. See \`config.log' for more details." >&2;}
  7254. { (exit 1); exit 1; }; }
  7255. fi
  7256. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7257. fi
  7258. fi
  7259. rm -f conftest.val
  7260. else
  7261. ac_cv_sizeof_unsigned_int=0
  7262. fi
  7263. fi
  7264. echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
  7265. echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
  7266. cat >>confdefs.h <<_ACEOF
  7267. #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
  7268. _ACEOF
  7269. echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  7270. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
  7271. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  7272. echo $ECHO_N "(cached) $ECHO_C" >&6
  7273. else
  7274. cat >conftest.$ac_ext <<_ACEOF
  7275. /* confdefs.h. */
  7276. _ACEOF
  7277. cat confdefs.h >>conftest.$ac_ext
  7278. cat >>conftest.$ac_ext <<_ACEOF
  7279. /* end confdefs.h. */
  7280. $ac_includes_default
  7281. int
  7282. main ()
  7283. {
  7284. if ((ptrdiff_t *) 0)
  7285. return 0;
  7286. if (sizeof (ptrdiff_t))
  7287. return 0;
  7288. ;
  7289. return 0;
  7290. }
  7291. _ACEOF
  7292. rm -f conftest.$ac_objext
  7293. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7294. (eval $ac_compile) 2>conftest.er1
  7295. ac_status=$?
  7296. grep -v '^ *+' conftest.er1 >conftest.err
  7297. rm -f conftest.er1
  7298. cat conftest.err >&5
  7299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7300. (exit $ac_status); } &&
  7301. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7302. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7303. (eval $ac_try) 2>&5
  7304. ac_status=$?
  7305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7306. (exit $ac_status); }; } &&
  7307. { ac_try='test -s conftest.$ac_objext'
  7308. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7309. (eval $ac_try) 2>&5
  7310. ac_status=$?
  7311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7312. (exit $ac_status); }; }; then
  7313. ac_cv_type_ptrdiff_t=yes
  7314. else
  7315. echo "$as_me: failed program was:" >&5
  7316. sed 's/^/| /' conftest.$ac_ext >&5
  7317. ac_cv_type_ptrdiff_t=no
  7318. fi
  7319. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7320. fi
  7321. echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  7322. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
  7323. if test $ac_cv_type_ptrdiff_t = yes; then
  7324. :
  7325. else
  7326. cat >>confdefs.h <<_ACEOF
  7327. #define ptrdiff_t int
  7328. _ACEOF
  7329. fi
  7330. for ac_func in unsetenv alphasort scandir strerror strsignal strtoul setsid
  7331. do
  7332. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7333. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7334. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7335. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7336. echo $ECHO_N "(cached) $ECHO_C" >&6
  7337. else
  7338. cat >conftest.$ac_ext <<_ACEOF
  7339. /* confdefs.h. */
  7340. _ACEOF
  7341. cat confdefs.h >>conftest.$ac_ext
  7342. cat >>conftest.$ac_ext <<_ACEOF
  7343. /* end confdefs.h. */
  7344. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7345. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7346. #define $ac_func innocuous_$ac_func
  7347. /* System header to define __stub macros and hopefully few prototypes,
  7348. which can conflict with char $ac_func (); below.
  7349. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7350. <limits.h> exists even on freestanding compilers. */
  7351. #ifdef __STDC__
  7352. # include <limits.h>
  7353. #else
  7354. # include <assert.h>
  7355. #endif
  7356. #undef $ac_func
  7357. /* Override any gcc2 internal prototype to avoid an error. */
  7358. #ifdef __cplusplus
  7359. extern "C"
  7360. {
  7361. #endif
  7362. /* We use char because int might match the return type of a gcc2
  7363. builtin and then its argument prototype would still apply. */
  7364. char $ac_func ();
  7365. /* The GNU C library defines this for functions which it implements
  7366. to always fail with ENOSYS. Some functions are actually named
  7367. something starting with __ and the normal name is an alias. */
  7368. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7369. choke me
  7370. #else
  7371. char (*f) () = $ac_func;
  7372. #endif
  7373. #ifdef __cplusplus
  7374. }
  7375. #endif
  7376. int
  7377. main ()
  7378. {
  7379. return f != $ac_func;
  7380. ;
  7381. return 0;
  7382. }
  7383. _ACEOF
  7384. rm -f conftest.$ac_objext conftest$ac_exeext
  7385. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7386. (eval $ac_link) 2>conftest.er1
  7387. ac_status=$?
  7388. grep -v '^ *+' conftest.er1 >conftest.err
  7389. rm -f conftest.er1
  7390. cat conftest.err >&5
  7391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7392. (exit $ac_status); } &&
  7393. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7394. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7395. (eval $ac_try) 2>&5
  7396. ac_status=$?
  7397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7398. (exit $ac_status); }; } &&
  7399. { ac_try='test -s conftest$ac_exeext'
  7400. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7401. (eval $ac_try) 2>&5
  7402. ac_status=$?
  7403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7404. (exit $ac_status); }; }; then
  7405. eval "$as_ac_var=yes"
  7406. else
  7407. echo "$as_me: failed program was:" >&5
  7408. sed 's/^/| /' conftest.$ac_ext >&5
  7409. eval "$as_ac_var=no"
  7410. fi
  7411. rm -f conftest.err conftest.$ac_objext \
  7412. conftest$ac_exeext conftest.$ac_ext
  7413. fi
  7414. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7415. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7416. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7417. cat >>confdefs.h <<_ACEOF
  7418. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7419. _ACEOF
  7420. fi
  7421. done
  7422. for ac_func in vsnprintf lchown snprintf
  7423. do
  7424. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7425. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7426. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7427. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7428. echo $ECHO_N "(cached) $ECHO_C" >&6
  7429. else
  7430. cat >conftest.$ac_ext <<_ACEOF
  7431. /* confdefs.h. */
  7432. _ACEOF
  7433. cat confdefs.h >>conftest.$ac_ext
  7434. cat >>conftest.$ac_ext <<_ACEOF
  7435. /* end confdefs.h. */
  7436. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7437. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7438. #define $ac_func innocuous_$ac_func
  7439. /* System header to define __stub macros and hopefully few prototypes,
  7440. which can conflict with char $ac_func (); below.
  7441. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7442. <limits.h> exists even on freestanding compilers. */
  7443. #ifdef __STDC__
  7444. # include <limits.h>
  7445. #else
  7446. # include <assert.h>
  7447. #endif
  7448. #undef $ac_func
  7449. /* Override any gcc2 internal prototype to avoid an error. */
  7450. #ifdef __cplusplus
  7451. extern "C"
  7452. {
  7453. #endif
  7454. /* We use char because int might match the return type of a gcc2
  7455. builtin and then its argument prototype would still apply. */
  7456. char $ac_func ();
  7457. /* The GNU C library defines this for functions which it implements
  7458. to always fail with ENOSYS. Some functions are actually named
  7459. something starting with __ and the normal name is an alias. */
  7460. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7461. choke me
  7462. #else
  7463. char (*f) () = $ac_func;
  7464. #endif
  7465. #ifdef __cplusplus
  7466. }
  7467. #endif
  7468. int
  7469. main ()
  7470. {
  7471. return f != $ac_func;
  7472. ;
  7473. return 0;
  7474. }
  7475. _ACEOF
  7476. rm -f conftest.$ac_objext conftest$ac_exeext
  7477. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7478. (eval $ac_link) 2>conftest.er1
  7479. ac_status=$?
  7480. grep -v '^ *+' conftest.er1 >conftest.err
  7481. rm -f conftest.er1
  7482. cat conftest.err >&5
  7483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7484. (exit $ac_status); } &&
  7485. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7486. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7487. (eval $ac_try) 2>&5
  7488. ac_status=$?
  7489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7490. (exit $ac_status); }; } &&
  7491. { ac_try='test -s conftest$ac_exeext'
  7492. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7493. (eval $ac_try) 2>&5
  7494. ac_status=$?
  7495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7496. (exit $ac_status); }; }; then
  7497. eval "$as_ac_var=yes"
  7498. else
  7499. echo "$as_me: failed program was:" >&5
  7500. sed 's/^/| /' conftest.$ac_ext >&5
  7501. eval "$as_ac_var=no"
  7502. fi
  7503. rm -f conftest.err conftest.$ac_objext \
  7504. conftest$ac_exeext conftest.$ac_ext
  7505. fi
  7506. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7507. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7508. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7509. cat >>confdefs.h <<_ACEOF
  7510. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7511. _ACEOF
  7512. fi
  7513. done
  7514. for ac_header in sys/cdefs.h syslog.h stddef.h
  7515. do
  7516. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7517. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7518. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7519. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7520. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7521. echo $ECHO_N "(cached) $ECHO_C" >&6
  7522. fi
  7523. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7524. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7525. else
  7526. # Is the header compilable?
  7527. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7528. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7529. cat >conftest.$ac_ext <<_ACEOF
  7530. /* confdefs.h. */
  7531. _ACEOF
  7532. cat confdefs.h >>conftest.$ac_ext
  7533. cat >>conftest.$ac_ext <<_ACEOF
  7534. /* end confdefs.h. */
  7535. $ac_includes_default
  7536. #include <$ac_header>
  7537. _ACEOF
  7538. rm -f conftest.$ac_objext
  7539. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7540. (eval $ac_compile) 2>conftest.er1
  7541. ac_status=$?
  7542. grep -v '^ *+' conftest.er1 >conftest.err
  7543. rm -f conftest.er1
  7544. cat conftest.err >&5
  7545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7546. (exit $ac_status); } &&
  7547. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7548. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7549. (eval $ac_try) 2>&5
  7550. ac_status=$?
  7551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7552. (exit $ac_status); }; } &&
  7553. { ac_try='test -s conftest.$ac_objext'
  7554. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7555. (eval $ac_try) 2>&5
  7556. ac_status=$?
  7557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7558. (exit $ac_status); }; }; then
  7559. ac_header_compiler=yes
  7560. else
  7561. echo "$as_me: failed program was:" >&5
  7562. sed 's/^/| /' conftest.$ac_ext >&5
  7563. ac_header_compiler=no
  7564. fi
  7565. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7566. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7567. echo "${ECHO_T}$ac_header_compiler" >&6
  7568. # Is the header present?
  7569. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7570. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7571. cat >conftest.$ac_ext <<_ACEOF
  7572. /* confdefs.h. */
  7573. _ACEOF
  7574. cat confdefs.h >>conftest.$ac_ext
  7575. cat >>conftest.$ac_ext <<_ACEOF
  7576. /* end confdefs.h. */
  7577. #include <$ac_header>
  7578. _ACEOF
  7579. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7580. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7581. ac_status=$?
  7582. grep -v '^ *+' conftest.er1 >conftest.err
  7583. rm -f conftest.er1
  7584. cat conftest.err >&5
  7585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7586. (exit $ac_status); } >/dev/null; then
  7587. if test -s conftest.err; then
  7588. ac_cpp_err=$ac_c_preproc_warn_flag
  7589. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7590. else
  7591. ac_cpp_err=
  7592. fi
  7593. else
  7594. ac_cpp_err=yes
  7595. fi
  7596. if test -z "$ac_cpp_err"; then
  7597. ac_header_preproc=yes
  7598. else
  7599. echo "$as_me: failed program was:" >&5
  7600. sed 's/^/| /' conftest.$ac_ext >&5
  7601. ac_header_preproc=no
  7602. fi
  7603. rm -f conftest.err conftest.$ac_ext
  7604. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7605. echo "${ECHO_T}$ac_header_preproc" >&6
  7606. # So? What about this header?
  7607. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7608. yes:no: )
  7609. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7610. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7611. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7612. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7613. ac_header_preproc=yes
  7614. ;;
  7615. no:yes:* )
  7616. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7617. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7618. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7619. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7620. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7621. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7622. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7623. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7624. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7625. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7626. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7627. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7628. (
  7629. cat <<\_ASBOX
  7630. ## ------------------------------------------ ##
  7631. ## Report this to the AC_PACKAGE_NAME lists. ##
  7632. ## ------------------------------------------ ##
  7633. _ASBOX
  7634. ) |
  7635. sed "s/^/$as_me: WARNING: /" >&2
  7636. ;;
  7637. esac
  7638. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7639. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7640. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7641. echo $ECHO_N "(cached) $ECHO_C" >&6
  7642. else
  7643. eval "$as_ac_Header=\$ac_header_preproc"
  7644. fi
  7645. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7646. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7647. fi
  7648. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7649. cat >>confdefs.h <<_ACEOF
  7650. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7651. _ACEOF
  7652. fi
  7653. done
  7654. for ac_header in error.h locale.h
  7655. do
  7656. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7657. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7658. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7659. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7660. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7661. echo $ECHO_N "(cached) $ECHO_C" >&6
  7662. fi
  7663. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7664. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7665. else
  7666. # Is the header compilable?
  7667. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7668. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7669. cat >conftest.$ac_ext <<_ACEOF
  7670. /* confdefs.h. */
  7671. _ACEOF
  7672. cat confdefs.h >>conftest.$ac_ext
  7673. cat >>conftest.$ac_ext <<_ACEOF
  7674. /* end confdefs.h. */
  7675. $ac_includes_default
  7676. #include <$ac_header>
  7677. _ACEOF
  7678. rm -f conftest.$ac_objext
  7679. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7680. (eval $ac_compile) 2>conftest.er1
  7681. ac_status=$?
  7682. grep -v '^ *+' conftest.er1 >conftest.err
  7683. rm -f conftest.er1
  7684. cat conftest.err >&5
  7685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7686. (exit $ac_status); } &&
  7687. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7689. (eval $ac_try) 2>&5
  7690. ac_status=$?
  7691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7692. (exit $ac_status); }; } &&
  7693. { ac_try='test -s conftest.$ac_objext'
  7694. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7695. (eval $ac_try) 2>&5
  7696. ac_status=$?
  7697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7698. (exit $ac_status); }; }; then
  7699. ac_header_compiler=yes
  7700. else
  7701. echo "$as_me: failed program was:" >&5
  7702. sed 's/^/| /' conftest.$ac_ext >&5
  7703. ac_header_compiler=no
  7704. fi
  7705. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7706. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7707. echo "${ECHO_T}$ac_header_compiler" >&6
  7708. # Is the header present?
  7709. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7710. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7711. cat >conftest.$ac_ext <<_ACEOF
  7712. /* confdefs.h. */
  7713. _ACEOF
  7714. cat confdefs.h >>conftest.$ac_ext
  7715. cat >>conftest.$ac_ext <<_ACEOF
  7716. /* end confdefs.h. */
  7717. #include <$ac_header>
  7718. _ACEOF
  7719. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7720. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7721. ac_status=$?
  7722. grep -v '^ *+' conftest.er1 >conftest.err
  7723. rm -f conftest.er1
  7724. cat conftest.err >&5
  7725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7726. (exit $ac_status); } >/dev/null; then
  7727. if test -s conftest.err; then
  7728. ac_cpp_err=$ac_c_preproc_warn_flag
  7729. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7730. else
  7731. ac_cpp_err=
  7732. fi
  7733. else
  7734. ac_cpp_err=yes
  7735. fi
  7736. if test -z "$ac_cpp_err"; then
  7737. ac_header_preproc=yes
  7738. else
  7739. echo "$as_me: failed program was:" >&5
  7740. sed 's/^/| /' conftest.$ac_ext >&5
  7741. ac_header_preproc=no
  7742. fi
  7743. rm -f conftest.err conftest.$ac_ext
  7744. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7745. echo "${ECHO_T}$ac_header_preproc" >&6
  7746. # So? What about this header?
  7747. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7748. yes:no: )
  7749. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7750. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7751. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7752. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7753. ac_header_preproc=yes
  7754. ;;
  7755. no:yes:* )
  7756. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7757. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7758. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7759. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7760. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7761. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7762. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7763. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7764. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7765. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7766. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7767. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7768. (
  7769. cat <<\_ASBOX
  7770. ## ------------------------------------------ ##
  7771. ## Report this to the AC_PACKAGE_NAME lists. ##
  7772. ## ------------------------------------------ ##
  7773. _ASBOX
  7774. ) |
  7775. sed "s/^/$as_me: WARNING: /" >&2
  7776. ;;
  7777. esac
  7778. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7779. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7780. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7781. echo $ECHO_N "(cached) $ECHO_C" >&6
  7782. else
  7783. eval "$as_ac_Header=\$ac_header_preproc"
  7784. fi
  7785. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7786. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7787. fi
  7788. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7789. cat >>confdefs.h <<_ACEOF
  7790. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7791. _ACEOF
  7792. fi
  7793. done
  7794. echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
  7795. echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
  7796. if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
  7797. echo $ECHO_N "(cached) $ECHO_C" >&6
  7798. else
  7799. cat >conftest.$ac_ext <<_ACEOF
  7800. /* confdefs.h. */
  7801. _ACEOF
  7802. cat confdefs.h >>conftest.$ac_ext
  7803. cat >>conftest.$ac_ext <<_ACEOF
  7804. /* end confdefs.h. */
  7805. #include <signal.h>
  7806. /* NetBSD declares sys_siglist in unistd.h. */
  7807. #if HAVE_UNISTD_H
  7808. # include <unistd.h>
  7809. #endif
  7810. int
  7811. main ()
  7812. {
  7813. #ifndef sys_siglist
  7814. char *p = (char *) sys_siglist;
  7815. #endif
  7816. ;
  7817. return 0;
  7818. }
  7819. _ACEOF
  7820. rm -f conftest.$ac_objext
  7821. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7822. (eval $ac_compile) 2>conftest.er1
  7823. ac_status=$?
  7824. grep -v '^ *+' conftest.er1 >conftest.err
  7825. rm -f conftest.er1
  7826. cat conftest.err >&5
  7827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7828. (exit $ac_status); } &&
  7829. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7830. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7831. (eval $ac_try) 2>&5
  7832. ac_status=$?
  7833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7834. (exit $ac_status); }; } &&
  7835. { ac_try='test -s conftest.$ac_objext'
  7836. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7837. (eval $ac_try) 2>&5
  7838. ac_status=$?
  7839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7840. (exit $ac_status); }; }; then
  7841. ac_cv_have_decl_sys_siglist=yes
  7842. else
  7843. echo "$as_me: failed program was:" >&5
  7844. sed 's/^/| /' conftest.$ac_ext >&5
  7845. ac_cv_have_decl_sys_siglist=no
  7846. fi
  7847. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7848. fi
  7849. echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
  7850. echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
  7851. if test $ac_cv_have_decl_sys_siglist = yes; then
  7852. cat >>confdefs.h <<_ACEOF
  7853. #define HAVE_DECL_SYS_SIGLIST 1
  7854. _ACEOF
  7855. else
  7856. cat >>confdefs.h <<_ACEOF
  7857. #define HAVE_DECL_SYS_SIGLIST 0
  7858. _ACEOF
  7859. fi
  7860. echo "$as_me:$LINENO: checking for ihash_create in -lihash" >&5
  7861. echo $ECHO_N "checking for ihash_create in -lihash... $ECHO_C" >&6
  7862. if test "${ac_cv_lib_ihash_ihash_create+set}" = set; then
  7863. echo $ECHO_N "(cached) $ECHO_C" >&6
  7864. else
  7865. ac_check_lib_save_LIBS=$LIBS
  7866. LIBS="-lihash $LIBS"
  7867. cat >conftest.$ac_ext <<_ACEOF
  7868. /* confdefs.h. */
  7869. _ACEOF
  7870. cat confdefs.h >>conftest.$ac_ext
  7871. cat >>conftest.$ac_ext <<_ACEOF
  7872. /* end confdefs.h. */
  7873. /* Override any gcc2 internal prototype to avoid an error. */
  7874. #ifdef __cplusplus
  7875. extern "C"
  7876. #endif
  7877. /* We use char because int might match the return type of a gcc2
  7878. builtin and then its argument prototype would still apply. */
  7879. char ihash_create ();
  7880. int
  7881. main ()
  7882. {
  7883. ihash_create ();
  7884. ;
  7885. return 0;
  7886. }
  7887. _ACEOF
  7888. rm -f conftest.$ac_objext conftest$ac_exeext
  7889. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7890. (eval $ac_link) 2>conftest.er1
  7891. ac_status=$?
  7892. grep -v '^ *+' conftest.er1 >conftest.err
  7893. rm -f conftest.er1
  7894. cat conftest.err >&5
  7895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7896. (exit $ac_status); } &&
  7897. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7898. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7899. (eval $ac_try) 2>&5
  7900. ac_status=$?
  7901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7902. (exit $ac_status); }; } &&
  7903. { ac_try='test -s conftest$ac_exeext'
  7904. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7905. (eval $ac_try) 2>&5
  7906. ac_status=$?
  7907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7908. (exit $ac_status); }; }; then
  7909. ac_cv_lib_ihash_ihash_create=yes
  7910. else
  7911. echo "$as_me: failed program was:" >&5
  7912. sed 's/^/| /' conftest.$ac_ext >&5
  7913. ac_cv_lib_ihash_ihash_create=no
  7914. fi
  7915. rm -f conftest.err conftest.$ac_objext \
  7916. conftest$ac_exeext conftest.$ac_ext
  7917. LIBS=$ac_check_lib_save_LIBS
  7918. fi
  7919. echo "$as_me:$LINENO: result: $ac_cv_lib_ihash_ihash_create" >&5
  7920. echo "${ECHO_T}$ac_cv_lib_ihash_ihash_create" >&6
  7921. if test $ac_cv_lib_ihash_ihash_create = yes; then
  7922. SSD_LIBS="-lihash $SSD_LIBS"
  7923. fi
  7924. echo "$as_me:$LINENO: checking for proc_stat_list_create in -lps" >&5
  7925. echo $ECHO_N "checking for proc_stat_list_create in -lps... $ECHO_C" >&6
  7926. if test "${ac_cv_lib_ps_proc_stat_list_create+set}" = set; then
  7927. echo $ECHO_N "(cached) $ECHO_C" >&6
  7928. else
  7929. ac_check_lib_save_LIBS=$LIBS
  7930. LIBS="-lps $LIBS"
  7931. cat >conftest.$ac_ext <<_ACEOF
  7932. /* confdefs.h. */
  7933. _ACEOF
  7934. cat confdefs.h >>conftest.$ac_ext
  7935. cat >>conftest.$ac_ext <<_ACEOF
  7936. /* end confdefs.h. */
  7937. /* Override any gcc2 internal prototype to avoid an error. */
  7938. #ifdef __cplusplus
  7939. extern "C"
  7940. #endif
  7941. /* We use char because int might match the return type of a gcc2
  7942. builtin and then its argument prototype would still apply. */
  7943. char proc_stat_list_create ();
  7944. int
  7945. main ()
  7946. {
  7947. proc_stat_list_create ();
  7948. ;
  7949. return 0;
  7950. }
  7951. _ACEOF
  7952. rm -f conftest.$ac_objext conftest$ac_exeext
  7953. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7954. (eval $ac_link) 2>conftest.er1
  7955. ac_status=$?
  7956. grep -v '^ *+' conftest.er1 >conftest.err
  7957. rm -f conftest.er1
  7958. cat conftest.err >&5
  7959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7960. (exit $ac_status); } &&
  7961. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7962. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7963. (eval $ac_try) 2>&5
  7964. ac_status=$?
  7965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7966. (exit $ac_status); }; } &&
  7967. { ac_try='test -s conftest$ac_exeext'
  7968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7969. (eval $ac_try) 2>&5
  7970. ac_status=$?
  7971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7972. (exit $ac_status); }; }; then
  7973. ac_cv_lib_ps_proc_stat_list_create=yes
  7974. else
  7975. echo "$as_me: failed program was:" >&5
  7976. sed 's/^/| /' conftest.$ac_ext >&5
  7977. ac_cv_lib_ps_proc_stat_list_create=no
  7978. fi
  7979. rm -f conftest.err conftest.$ac_objext \
  7980. conftest$ac_exeext conftest.$ac_ext
  7981. LIBS=$ac_check_lib_save_LIBS
  7982. fi
  7983. echo "$as_me:$LINENO: result: $ac_cv_lib_ps_proc_stat_list_create" >&5
  7984. echo "${ECHO_T}$ac_cv_lib_ps_proc_stat_list_create" >&6
  7985. if test $ac_cv_lib_ps_proc_stat_list_create = yes; then
  7986. SSD_LIBS="-lps $SSD_LIBS"
  7987. fi
  7988. echo "$as_me:$LINENO: checking for fmt_past_time in -lshouldbeinlibc" >&5
  7989. echo $ECHO_N "checking for fmt_past_time in -lshouldbeinlibc... $ECHO_C" >&6
  7990. if test "${ac_cv_lib_shouldbeinlibc_fmt_past_time+set}" = set; then
  7991. echo $ECHO_N "(cached) $ECHO_C" >&6
  7992. else
  7993. ac_check_lib_save_LIBS=$LIBS
  7994. LIBS="-lshouldbeinlibc $LIBS"
  7995. cat >conftest.$ac_ext <<_ACEOF
  7996. /* confdefs.h. */
  7997. _ACEOF
  7998. cat confdefs.h >>conftest.$ac_ext
  7999. cat >>conftest.$ac_ext <<_ACEOF
  8000. /* end confdefs.h. */
  8001. /* Override any gcc2 internal prototype to avoid an error. */
  8002. #ifdef __cplusplus
  8003. extern "C"
  8004. #endif
  8005. /* We use char because int might match the return type of a gcc2
  8006. builtin and then its argument prototype would still apply. */
  8007. char fmt_past_time ();
  8008. int
  8009. main ()
  8010. {
  8011. fmt_past_time ();
  8012. ;
  8013. return 0;
  8014. }
  8015. _ACEOF
  8016. rm -f conftest.$ac_objext conftest$ac_exeext
  8017. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8018. (eval $ac_link) 2>conftest.er1
  8019. ac_status=$?
  8020. grep -v '^ *+' conftest.er1 >conftest.err
  8021. rm -f conftest.er1
  8022. cat conftest.err >&5
  8023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8024. (exit $ac_status); } &&
  8025. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8026. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8027. (eval $ac_try) 2>&5
  8028. ac_status=$?
  8029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8030. (exit $ac_status); }; } &&
  8031. { ac_try='test -s conftest$ac_exeext'
  8032. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8033. (eval $ac_try) 2>&5
  8034. ac_status=$?
  8035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8036. (exit $ac_status); }; }; then
  8037. ac_cv_lib_shouldbeinlibc_fmt_past_time=yes
  8038. else
  8039. echo "$as_me: failed program was:" >&5
  8040. sed 's/^/| /' conftest.$ac_ext >&5
  8041. ac_cv_lib_shouldbeinlibc_fmt_past_time=no
  8042. fi
  8043. rm -f conftest.err conftest.$ac_objext \
  8044. conftest$ac_exeext conftest.$ac_ext
  8045. LIBS=$ac_check_lib_save_LIBS
  8046. fi
  8047. echo "$as_me:$LINENO: result: $ac_cv_lib_shouldbeinlibc_fmt_past_time" >&5
  8048. echo "${ECHO_T}$ac_cv_lib_shouldbeinlibc_fmt_past_time" >&6
  8049. if test $ac_cv_lib_shouldbeinlibc_fmt_past_time = yes; then
  8050. SSD_LIBS="-lshouldbeinlibc $SSD_LIBS"
  8051. fi
  8052. echo "$as_me:$LINENO: checking for kvm_openfiles in -lkvm" >&5
  8053. echo $ECHO_N "checking for kvm_openfiles in -lkvm... $ECHO_C" >&6
  8054. if test "${ac_cv_lib_kvm_kvm_openfiles+set}" = set; then
  8055. echo $ECHO_N "(cached) $ECHO_C" >&6
  8056. else
  8057. ac_check_lib_save_LIBS=$LIBS
  8058. LIBS="-lkvm $LIBS"
  8059. cat >conftest.$ac_ext <<_ACEOF
  8060. /* confdefs.h. */
  8061. _ACEOF
  8062. cat confdefs.h >>conftest.$ac_ext
  8063. cat >>conftest.$ac_ext <<_ACEOF
  8064. /* end confdefs.h. */
  8065. /* Override any gcc2 internal prototype to avoid an error. */
  8066. #ifdef __cplusplus
  8067. extern "C"
  8068. #endif
  8069. /* We use char because int might match the return type of a gcc2
  8070. builtin and then its argument prototype would still apply. */
  8071. char kvm_openfiles ();
  8072. int
  8073. main ()
  8074. {
  8075. kvm_openfiles ();
  8076. ;
  8077. return 0;
  8078. }
  8079. _ACEOF
  8080. rm -f conftest.$ac_objext conftest$ac_exeext
  8081. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8082. (eval $ac_link) 2>conftest.er1
  8083. ac_status=$?
  8084. grep -v '^ *+' conftest.er1 >conftest.err
  8085. rm -f conftest.er1
  8086. cat conftest.err >&5
  8087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8088. (exit $ac_status); } &&
  8089. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8090. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8091. (eval $ac_try) 2>&5
  8092. ac_status=$?
  8093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8094. (exit $ac_status); }; } &&
  8095. { ac_try='test -s conftest$ac_exeext'
  8096. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8097. (eval $ac_try) 2>&5
  8098. ac_status=$?
  8099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8100. (exit $ac_status); }; }; then
  8101. ac_cv_lib_kvm_kvm_openfiles=yes
  8102. else
  8103. echo "$as_me: failed program was:" >&5
  8104. sed 's/^/| /' conftest.$ac_ext >&5
  8105. ac_cv_lib_kvm_kvm_openfiles=no
  8106. fi
  8107. rm -f conftest.err conftest.$ac_objext \
  8108. conftest$ac_exeext conftest.$ac_ext
  8109. LIBS=$ac_check_lib_save_LIBS
  8110. fi
  8111. echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_openfiles" >&5
  8112. echo "${ECHO_T}$ac_cv_lib_kvm_kvm_openfiles" >&6
  8113. if test $ac_cv_lib_kvm_kvm_openfiles = yes; then
  8114. SSD_LIBS="-lkvm $SSD_LIBS"
  8115. fi
  8116. # check for the proper curses library. This can be either
  8117. # -lcurses or -lncurses, we need to check for either one.
  8118. echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
  8119. echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
  8120. if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
  8121. echo $ECHO_N "(cached) $ECHO_C" >&6
  8122. else
  8123. ac_check_lib_save_LIBS=$LIBS
  8124. LIBS="-lncurses $LIBS"
  8125. cat >conftest.$ac_ext <<_ACEOF
  8126. /* confdefs.h. */
  8127. _ACEOF
  8128. cat confdefs.h >>conftest.$ac_ext
  8129. cat >>conftest.$ac_ext <<_ACEOF
  8130. /* end confdefs.h. */
  8131. /* Override any gcc2 internal prototype to avoid an error. */
  8132. #ifdef __cplusplus
  8133. extern "C"
  8134. #endif
  8135. /* We use char because int might match the return type of a gcc2
  8136. builtin and then its argument prototype would still apply. */
  8137. char initscr ();
  8138. int
  8139. main ()
  8140. {
  8141. initscr ();
  8142. ;
  8143. return 0;
  8144. }
  8145. _ACEOF
  8146. rm -f conftest.$ac_objext conftest$ac_exeext
  8147. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8148. (eval $ac_link) 2>conftest.er1
  8149. ac_status=$?
  8150. grep -v '^ *+' conftest.er1 >conftest.err
  8151. rm -f conftest.er1
  8152. cat conftest.err >&5
  8153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8154. (exit $ac_status); } &&
  8155. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8156. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8157. (eval $ac_try) 2>&5
  8158. ac_status=$?
  8159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8160. (exit $ac_status); }; } &&
  8161. { ac_try='test -s conftest$ac_exeext'
  8162. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8163. (eval $ac_try) 2>&5
  8164. ac_status=$?
  8165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8166. (exit $ac_status); }; }; then
  8167. ac_cv_lib_ncurses_initscr=yes
  8168. else
  8169. echo "$as_me: failed program was:" >&5
  8170. sed 's/^/| /' conftest.$ac_ext >&5
  8171. ac_cv_lib_ncurses_initscr=no
  8172. fi
  8173. rm -f conftest.err conftest.$ac_objext \
  8174. conftest$ac_exeext conftest.$ac_ext
  8175. LIBS=$ac_check_lib_save_LIBS
  8176. fi
  8177. echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
  8178. echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
  8179. if test $ac_cv_lib_ncurses_initscr = yes; then
  8180. CURSES_LIBS="-lncurses $CURSES_LIBS"
  8181. else
  8182. echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
  8183. echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
  8184. if test "${ac_cv_lib_curses_initscr+set}" = set; then
  8185. echo $ECHO_N "(cached) $ECHO_C" >&6
  8186. else
  8187. ac_check_lib_save_LIBS=$LIBS
  8188. LIBS="-lcurses $LIBS"
  8189. cat >conftest.$ac_ext <<_ACEOF
  8190. /* confdefs.h. */
  8191. _ACEOF
  8192. cat confdefs.h >>conftest.$ac_ext
  8193. cat >>conftest.$ac_ext <<_ACEOF
  8194. /* end confdefs.h. */
  8195. /* Override any gcc2 internal prototype to avoid an error. */
  8196. #ifdef __cplusplus
  8197. extern "C"
  8198. #endif
  8199. /* We use char because int might match the return type of a gcc2
  8200. builtin and then its argument prototype would still apply. */
  8201. char initscr ();
  8202. int
  8203. main ()
  8204. {
  8205. initscr ();
  8206. ;
  8207. return 0;
  8208. }
  8209. _ACEOF
  8210. rm -f conftest.$ac_objext conftest$ac_exeext
  8211. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8212. (eval $ac_link) 2>conftest.er1
  8213. ac_status=$?
  8214. grep -v '^ *+' conftest.er1 >conftest.err
  8215. rm -f conftest.er1
  8216. cat conftest.err >&5
  8217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8218. (exit $ac_status); } &&
  8219. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8220. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8221. (eval $ac_try) 2>&5
  8222. ac_status=$?
  8223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8224. (exit $ac_status); }; } &&
  8225. { ac_try='test -s conftest$ac_exeext'
  8226. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8227. (eval $ac_try) 2>&5
  8228. ac_status=$?
  8229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8230. (exit $ac_status); }; }; then
  8231. ac_cv_lib_curses_initscr=yes
  8232. else
  8233. echo "$as_me: failed program was:" >&5
  8234. sed 's/^/| /' conftest.$ac_ext >&5
  8235. ac_cv_lib_curses_initscr=no
  8236. fi
  8237. rm -f conftest.err conftest.$ac_objext \
  8238. conftest$ac_exeext conftest.$ac_ext
  8239. LIBS=$ac_check_lib_save_LIBS
  8240. fi
  8241. echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
  8242. echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
  8243. if test $ac_cv_lib_curses_initscr = yes; then
  8244. CURSES_LIBS="-lcurses $CURSES_LIBS"
  8245. fi
  8246. fi
  8247. if test "x$CURSES_LIBS" = "x"; then
  8248. { echo "$as_me:$LINENO: WARNING: no curses library found" >&5
  8249. echo "$as_me: WARNING: no curses library found" >&2;}
  8250. fi
  8251. echo "$as_me:$LINENO: checking if TIOCNOTTY is defined in sys/ioctl.h" >&5
  8252. echo $ECHO_N "checking if TIOCNOTTY is defined in sys/ioctl.h... $ECHO_C" >&6
  8253. if test "${ac_cv_define_TIOCNOTTY+set}" = set; then
  8254. echo $ECHO_N "(cached) $ECHO_C" >&6
  8255. else
  8256. cat >conftest.$ac_ext <<_ACEOF
  8257. /* confdefs.h. */
  8258. _ACEOF
  8259. cat confdefs.h >>conftest.$ac_ext
  8260. cat >>conftest.$ac_ext <<_ACEOF
  8261. /* end confdefs.h. */
  8262. #include <sys/ioctl.h>
  8263. int
  8264. main ()
  8265. {
  8266. int i = TIOCNOTTY;
  8267. ;
  8268. return 0;
  8269. }
  8270. _ACEOF
  8271. rm -f conftest.$ac_objext
  8272. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8273. (eval $ac_compile) 2>conftest.er1
  8274. ac_status=$?
  8275. grep -v '^ *+' conftest.er1 >conftest.err
  8276. rm -f conftest.er1
  8277. cat conftest.err >&5
  8278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8279. (exit $ac_status); } &&
  8280. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8281. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8282. (eval $ac_try) 2>&5
  8283. ac_status=$?
  8284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8285. (exit $ac_status); }; } &&
  8286. { ac_try='test -s conftest.$ac_objext'
  8287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8288. (eval $ac_try) 2>&5
  8289. ac_status=$?
  8290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8291. (exit $ac_status); }; }; then
  8292. ac_cv_define_TIOCNOTTY=yes
  8293. else
  8294. echo "$as_me: failed program was:" >&5
  8295. sed 's/^/| /' conftest.$ac_ext >&5
  8296. ac_cv_define_TIOCNOTTY=no
  8297. fi
  8298. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8299. fi
  8300. echo "$as_me:$LINENO: result: $ac_cv_define_TIOCNOTTY" >&5
  8301. echo "${ECHO_T}$ac_cv_define_TIOCNOTTY" >&6
  8302. if test "$ac_cv_define_TIOCNOTTY" = yes ; then
  8303. cat >>confdefs.h <<\_ACEOF
  8304. #define HAVE_TIOCNOTTY
  8305. _ACEOF
  8306. fi
  8307. ZLIB_CFLAGS=
  8308. ZLIB_LIBS=
  8309. ZLIB_LIBS_ALSO_STATIC=
  8310. # Check whether --with-zlib or --without-zlib was given.
  8311. if test "${with_zlib+set}" = set; then
  8312. withval="$with_zlib"
  8313. use_zlib=$withval
  8314. else
  8315. uze_zlib=no
  8316. fi;
  8317. if test "$use_zlib" != "no" ; then
  8318. ZLIB_CFLAGS=-DUSE_ZLIB
  8319. if test "$use_zlib" = "static" ; then
  8320. ZLIB_LIBS="-Wl,-Bstatic -lz -Wl,-Bdynamic"
  8321. if test "$ALSO_STATIC"; then
  8322. ZLIB_LIBS_ALSO_STATIC="-lz"
  8323. fi
  8324. else
  8325. ZLIB_LIBS=-lz
  8326. ZLIB_LIBS_ALSO_STATIC="-lz"
  8327. fi
  8328. fi
  8329. BZ2LIB_CFLAGS=
  8330. BZ2LIB_LIBS=
  8331. BZ2LIB_LIBS_ALSO_STATIC=
  8332. # Check whether --with-bz2lib or --without-bz2lib was given.
  8333. if test "${with_bz2lib+set}" = set; then
  8334. withval="$with_bz2lib"
  8335. use_bz2lib=$withval
  8336. else
  8337. uze_bz2lib=no
  8338. fi;
  8339. if test "$use_bz2lib" != "no" ; then
  8340. BZ2LIB_CFLAGS=-DUSE_BZ2LIB
  8341. if test "$use_bz2lib" = "static" ; then
  8342. BZ2LIB_LIBS="-Wl,-Bstatic -lbz2 -Wl,-Bdynamic"
  8343. if test "$ALSO_STATIC"; then
  8344. BZ2LIB_LIBS_ALSO_STATIC="-lbz2"
  8345. fi
  8346. else
  8347. BZ2LIB_LIBS=-lbz2
  8348. BZ2LIB_LIBS_ALSO_STATIC="-lbz2"
  8349. fi
  8350. fi
  8351. cat >conftest.$ac_ext <<_ACEOF
  8352. /* confdefs.h. */
  8353. _ACEOF
  8354. cat confdefs.h >>conftest.$ac_ext
  8355. cat >>conftest.$ac_ext <<_ACEOF
  8356. /* end confdefs.h. */
  8357. #include <sys/types.h>
  8358. #include <dirent.h>
  8359. int
  8360. main ()
  8361. {
  8362. alphasort
  8363. ;
  8364. return 0;
  8365. }
  8366. _ACEOF
  8367. rm -f conftest.$ac_objext
  8368. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8369. (eval $ac_compile) 2>conftest.er1
  8370. ac_status=$?
  8371. grep -v '^ *+' conftest.er1 >conftest.err
  8372. rm -f conftest.er1
  8373. cat conftest.err >&5
  8374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8375. (exit $ac_status); } &&
  8376. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8377. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8378. (eval $ac_try) 2>&5
  8379. ac_status=$?
  8380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8381. (exit $ac_status); }; } &&
  8382. { ac_try='test -s conftest.$ac_objext'
  8383. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8384. (eval $ac_try) 2>&5
  8385. ac_status=$?
  8386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8387. (exit $ac_status); }; }; then
  8388. cat >>confdefs.h <<\_ACEOF
  8389. #define HAVE_ALPHASORT_DECLARATION
  8390. _ACEOF
  8391. else
  8392. echo "$as_me: failed program was:" >&5
  8393. sed 's/^/| /' conftest.$ac_ext >&5
  8394. fi
  8395. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8396. cat >conftest.$ac_ext <<_ACEOF
  8397. /* confdefs.h. */
  8398. _ACEOF
  8399. cat confdefs.h >>conftest.$ac_ext
  8400. cat >>conftest.$ac_ext <<_ACEOF
  8401. /* end confdefs.h. */
  8402. int
  8403. main ()
  8404. {
  8405. } inline int foo (int x) {
  8406. ;
  8407. return 0;
  8408. }
  8409. _ACEOF
  8410. rm -f conftest.$ac_objext
  8411. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8412. (eval $ac_compile) 2>conftest.er1
  8413. ac_status=$?
  8414. grep -v '^ *+' conftest.er1 >conftest.err
  8415. rm -f conftest.er1
  8416. cat conftest.err >&5
  8417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8418. (exit $ac_status); } &&
  8419. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8420. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8421. (eval $ac_try) 2>&5
  8422. ac_status=$?
  8423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8424. (exit $ac_status); }; } &&
  8425. { ac_try='test -s conftest.$ac_objext'
  8426. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8427. (eval $ac_try) 2>&5
  8428. ac_status=$?
  8429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8430. (exit $ac_status); }; }; then
  8431. cat >>confdefs.h <<\_ACEOF
  8432. #define HAVE_INLINE
  8433. _ACEOF
  8434. else
  8435. echo "$as_me: failed program was:" >&5
  8436. sed 's/^/| /' conftest.$ac_ext >&5
  8437. fi
  8438. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8439. echo "$as_me:$LINENO: checking for va_copy" >&5
  8440. echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
  8441. # OpenBSD passes AC_TRY_COMPILE for va_copy even though
  8442. # it doesn't seem to exist, which is odd. We need to use
  8443. # AC_TRY_RUN.
  8444. if test "$cross_compiling" = yes; then
  8445. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  8446. See \`config.log' for more details." >&5
  8447. echo "$as_me: error: cannot run test program while cross compiling
  8448. See \`config.log' for more details." >&2;}
  8449. { (exit 1); exit 1; }; }
  8450. else
  8451. cat >conftest.$ac_ext <<_ACEOF
  8452. /* confdefs.h. */
  8453. _ACEOF
  8454. cat confdefs.h >>conftest.$ac_ext
  8455. cat >>conftest.$ac_ext <<_ACEOF
  8456. /* end confdefs.h. */
  8457. #include <stdarg.h>
  8458. main(){
  8459. va_list v1,v2;
  8460. va_copy(v1, v2);
  8461. exit(0);}
  8462. _ACEOF
  8463. rm -f conftest$ac_exeext
  8464. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8465. (eval $ac_link) 2>&5
  8466. ac_status=$?
  8467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8468. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8469. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8470. (eval $ac_try) 2>&5
  8471. ac_status=$?
  8472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8473. (exit $ac_status); }; }; then
  8474. echo "$as_me:$LINENO: result: yes" >&5
  8475. echo "${ECHO_T}yes" >&6
  8476. cat >>confdefs.h <<\_ACEOF
  8477. #define HAVE_VA_COPY
  8478. _ACEOF
  8479. else
  8480. echo "$as_me: program exited with status $ac_status" >&5
  8481. echo "$as_me: failed program was:" >&5
  8482. sed 's/^/| /' conftest.$ac_ext >&5
  8483. ( exit $ac_status )
  8484. echo "$as_me:$LINENO: result: no" >&5
  8485. echo "${ECHO_T}no" >&6
  8486. echo "$as_me:$LINENO: checking for va_list assignment copy" >&5
  8487. echo $ECHO_N "checking for va_list assignment copy... $ECHO_C" >&6
  8488. cat >conftest.$ac_ext <<_ACEOF
  8489. /* confdefs.h. */
  8490. _ACEOF
  8491. cat confdefs.h >>conftest.$ac_ext
  8492. cat >>conftest.$ac_ext <<_ACEOF
  8493. /* end confdefs.h. */
  8494. #include <stdarg.h>
  8495. int
  8496. main ()
  8497. {
  8498. va_list v1,v2;
  8499. v1 = v2;
  8500. ;
  8501. return 0;
  8502. }
  8503. _ACEOF
  8504. rm -f conftest.$ac_objext
  8505. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8506. (eval $ac_compile) 2>conftest.er1
  8507. ac_status=$?
  8508. grep -v '^ *+' conftest.er1 >conftest.err
  8509. rm -f conftest.er1
  8510. cat conftest.err >&5
  8511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8512. (exit $ac_status); } &&
  8513. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8514. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8515. (eval $ac_try) 2>&5
  8516. ac_status=$?
  8517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8518. (exit $ac_status); }; } &&
  8519. { ac_try='test -s conftest.$ac_objext'
  8520. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8521. (eval $ac_try) 2>&5
  8522. ac_status=$?
  8523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8524. (exit $ac_status); }; }; then
  8525. echo "$as_me:$LINENO: result: yes" >&5
  8526. echo "${ECHO_T}yes" >&6
  8527. else
  8528. echo "$as_me: failed program was:" >&5
  8529. sed 's/^/| /' conftest.$ac_ext >&5
  8530. { { echo "$as_me:$LINENO: error: no" >&5
  8531. echo "$as_me: error: no" >&2;}
  8532. { (exit 1); exit 1; }; }
  8533. fi
  8534. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8535. fi
  8536. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8537. fi
  8538. echo "$as_me:$LINENO: checking __attribute__((,,))" >&5
  8539. echo $ECHO_N "checking __attribute__((,,))... $ECHO_C" >&6
  8540. if test "${dpkg_cv_c_attribute_supported+set}" = set; then
  8541. echo $ECHO_N "(cached) $ECHO_C" >&6
  8542. else
  8543. cat >conftest.$ac_ext <<_ACEOF
  8544. /* confdefs.h. */
  8545. _ACEOF
  8546. cat confdefs.h >>conftest.$ac_ext
  8547. cat >>conftest.$ac_ext <<_ACEOF
  8548. /* end confdefs.h. */
  8549. int
  8550. main ()
  8551. {
  8552. extern int testfunction(int x) __attribute__((,,))
  8553. ;
  8554. return 0;
  8555. }
  8556. _ACEOF
  8557. rm -f conftest.$ac_objext
  8558. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8559. (eval $ac_compile) 2>conftest.er1
  8560. ac_status=$?
  8561. grep -v '^ *+' conftest.er1 >conftest.err
  8562. rm -f conftest.er1
  8563. cat conftest.err >&5
  8564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8565. (exit $ac_status); } &&
  8566. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8567. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8568. (eval $ac_try) 2>&5
  8569. ac_status=$?
  8570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8571. (exit $ac_status); }; } &&
  8572. { ac_try='test -s conftest.$ac_objext'
  8573. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8574. (eval $ac_try) 2>&5
  8575. ac_status=$?
  8576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8577. (exit $ac_status); }; }; then
  8578. dpkg_cv_c_attribute_supported=yes
  8579. else
  8580. echo "$as_me: failed program was:" >&5
  8581. sed 's/^/| /' conftest.$ac_ext >&5
  8582. dpkg_cv_c_attribute_supported=no
  8583. fi
  8584. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8585. fi
  8586. if test "x$dpkg_cv_c_attribute_supported" = xyes; then
  8587. true
  8588. echo "$as_me:$LINENO: result: yes" >&5
  8589. echo "${ECHO_T}yes" >&6
  8590. cat >>confdefs.h <<\_ACEOF
  8591. #define HAVE_GNUC25_ATTRIB
  8592. _ACEOF
  8593. echo "$as_me:$LINENO: checking __attribute__((noreturn))" >&5
  8594. echo $ECHO_N "checking __attribute__((noreturn))... $ECHO_C" >&6
  8595. if test "${dpkg_cv_c_attribute_noreturn+set}" = set; then
  8596. echo $ECHO_N "(cached) $ECHO_C" >&6
  8597. else
  8598. cat >conftest.$ac_ext <<_ACEOF
  8599. /* confdefs.h. */
  8600. _ACEOF
  8601. cat confdefs.h >>conftest.$ac_ext
  8602. cat >>conftest.$ac_ext <<_ACEOF
  8603. /* end confdefs.h. */
  8604. int
  8605. main ()
  8606. {
  8607. extern int testfunction(int x) __attribute__((noreturn))
  8608. ;
  8609. return 0;
  8610. }
  8611. _ACEOF
  8612. rm -f conftest.$ac_objext
  8613. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8614. (eval $ac_compile) 2>conftest.er1
  8615. ac_status=$?
  8616. grep -v '^ *+' conftest.er1 >conftest.err
  8617. rm -f conftest.er1
  8618. cat conftest.err >&5
  8619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8620. (exit $ac_status); } &&
  8621. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8622. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8623. (eval $ac_try) 2>&5
  8624. ac_status=$?
  8625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8626. (exit $ac_status); }; } &&
  8627. { ac_try='test -s conftest.$ac_objext'
  8628. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8629. (eval $ac_try) 2>&5
  8630. ac_status=$?
  8631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8632. (exit $ac_status); }; }; then
  8633. dpkg_cv_c_attribute_noreturn=yes
  8634. else
  8635. echo "$as_me: failed program was:" >&5
  8636. sed 's/^/| /' conftest.$ac_ext >&5
  8637. dpkg_cv_c_attribute_noreturn=no
  8638. fi
  8639. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8640. fi
  8641. if test "x$dpkg_cv_c_attribute_noreturn" = xyes; then
  8642. true
  8643. echo "$as_me:$LINENO: result: yes" >&5
  8644. echo "${ECHO_T}yes" >&6
  8645. cat >>confdefs.h <<\_ACEOF
  8646. #define HAVE_GNUC25_NORETURN
  8647. _ACEOF
  8648. else
  8649. true
  8650. echo "$as_me:$LINENO: result: no" >&5
  8651. echo "${ECHO_T}no" >&6
  8652. fi
  8653. echo "$as_me:$LINENO: checking __attribute__((const))" >&5
  8654. echo $ECHO_N "checking __attribute__((const))... $ECHO_C" >&6
  8655. if test "${dpkg_cv_c_attribute_const+set}" = set; then
  8656. echo $ECHO_N "(cached) $ECHO_C" >&6
  8657. else
  8658. cat >conftest.$ac_ext <<_ACEOF
  8659. /* confdefs.h. */
  8660. _ACEOF
  8661. cat confdefs.h >>conftest.$ac_ext
  8662. cat >>conftest.$ac_ext <<_ACEOF
  8663. /* end confdefs.h. */
  8664. int
  8665. main ()
  8666. {
  8667. extern int testfunction(int x) __attribute__((const))
  8668. ;
  8669. return 0;
  8670. }
  8671. _ACEOF
  8672. rm -f conftest.$ac_objext
  8673. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8674. (eval $ac_compile) 2>conftest.er1
  8675. ac_status=$?
  8676. grep -v '^ *+' conftest.er1 >conftest.err
  8677. rm -f conftest.er1
  8678. cat conftest.err >&5
  8679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8680. (exit $ac_status); } &&
  8681. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8682. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8683. (eval $ac_try) 2>&5
  8684. ac_status=$?
  8685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8686. (exit $ac_status); }; } &&
  8687. { ac_try='test -s conftest.$ac_objext'
  8688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8689. (eval $ac_try) 2>&5
  8690. ac_status=$?
  8691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8692. (exit $ac_status); }; }; then
  8693. dpkg_cv_c_attribute_const=yes
  8694. else
  8695. echo "$as_me: failed program was:" >&5
  8696. sed 's/^/| /' conftest.$ac_ext >&5
  8697. dpkg_cv_c_attribute_const=no
  8698. fi
  8699. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8700. fi
  8701. if test "x$dpkg_cv_c_attribute_const" = xyes; then
  8702. true
  8703. echo "$as_me:$LINENO: result: yes" >&5
  8704. echo "${ECHO_T}yes" >&6
  8705. cat >>confdefs.h <<\_ACEOF
  8706. #define HAVE_GNUC25_CONST
  8707. _ACEOF
  8708. else
  8709. true
  8710. echo "$as_me:$LINENO: result: no" >&5
  8711. echo "${ECHO_T}no" >&6
  8712. fi
  8713. echo "$as_me:$LINENO: checking __attribute__((unused))" >&5
  8714. echo $ECHO_N "checking __attribute__((unused))... $ECHO_C" >&6
  8715. if test "${dpkg_cv_c_attribute_unused+set}" = set; then
  8716. echo $ECHO_N "(cached) $ECHO_C" >&6
  8717. else
  8718. cat >conftest.$ac_ext <<_ACEOF
  8719. /* confdefs.h. */
  8720. _ACEOF
  8721. cat confdefs.h >>conftest.$ac_ext
  8722. cat >>conftest.$ac_ext <<_ACEOF
  8723. /* end confdefs.h. */
  8724. int
  8725. main ()
  8726. {
  8727. extern int testfunction(int x) __attribute__((unused))
  8728. ;
  8729. return 0;
  8730. }
  8731. _ACEOF
  8732. rm -f conftest.$ac_objext
  8733. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8734. (eval $ac_compile) 2>conftest.er1
  8735. ac_status=$?
  8736. grep -v '^ *+' conftest.er1 >conftest.err
  8737. rm -f conftest.er1
  8738. cat conftest.err >&5
  8739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8740. (exit $ac_status); } &&
  8741. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8742. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8743. (eval $ac_try) 2>&5
  8744. ac_status=$?
  8745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8746. (exit $ac_status); }; } &&
  8747. { ac_try='test -s conftest.$ac_objext'
  8748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8749. (eval $ac_try) 2>&5
  8750. ac_status=$?
  8751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8752. (exit $ac_status); }; }; then
  8753. dpkg_cv_c_attribute_unused=yes
  8754. else
  8755. echo "$as_me: failed program was:" >&5
  8756. sed 's/^/| /' conftest.$ac_ext >&5
  8757. dpkg_cv_c_attribute_unused=no
  8758. fi
  8759. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8760. fi
  8761. if test "x$dpkg_cv_c_attribute_unused" = xyes; then
  8762. true
  8763. echo "$as_me:$LINENO: result: yes" >&5
  8764. echo "${ECHO_T}yes" >&6
  8765. cat >>confdefs.h <<\_ACEOF
  8766. #define HAVE_GNUC25_UNUSED
  8767. _ACEOF
  8768. else
  8769. true
  8770. echo "$as_me:$LINENO: result: no" >&5
  8771. echo "${ECHO_T}no" >&6
  8772. fi
  8773. echo "$as_me:$LINENO: checking __attribute__((format...))" >&5
  8774. echo $ECHO_N "checking __attribute__((format...))... $ECHO_C" >&6
  8775. if test "${dpkg_cv_c_attribute_format+set}" = set; then
  8776. echo $ECHO_N "(cached) $ECHO_C" >&6
  8777. else
  8778. cat >conftest.$ac_ext <<_ACEOF
  8779. /* confdefs.h. */
  8780. _ACEOF
  8781. cat confdefs.h >>conftest.$ac_ext
  8782. cat >>conftest.$ac_ext <<_ACEOF
  8783. /* end confdefs.h. */
  8784. int
  8785. main ()
  8786. {
  8787. extern int testfunction(char *y, ...) __attribute__((format(printf,1,2)))
  8788. ;
  8789. return 0;
  8790. }
  8791. _ACEOF
  8792. rm -f conftest.$ac_objext
  8793. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8794. (eval $ac_compile) 2>conftest.er1
  8795. ac_status=$?
  8796. grep -v '^ *+' conftest.er1 >conftest.err
  8797. rm -f conftest.er1
  8798. cat conftest.err >&5
  8799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8800. (exit $ac_status); } &&
  8801. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8802. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8803. (eval $ac_try) 2>&5
  8804. ac_status=$?
  8805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8806. (exit $ac_status); }; } &&
  8807. { ac_try='test -s conftest.$ac_objext'
  8808. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8809. (eval $ac_try) 2>&5
  8810. ac_status=$?
  8811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8812. (exit $ac_status); }; }; then
  8813. dpkg_cv_c_attribute_format=yes
  8814. else
  8815. echo "$as_me: failed program was:" >&5
  8816. sed 's/^/| /' conftest.$ac_ext >&5
  8817. dpkg_cv_c_attribute_format=no
  8818. fi
  8819. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8820. fi
  8821. if test "x$dpkg_cv_c_attribute_format" = xyes; then
  8822. true
  8823. echo "$as_me:$LINENO: result: yes" >&5
  8824. echo "${ECHO_T}yes" >&6
  8825. cat >>confdefs.h <<\_ACEOF
  8826. #define HAVE_GNUC25_PRINTFFORMAT
  8827. _ACEOF
  8828. else
  8829. true
  8830. echo "$as_me:$LINENO: result: no" >&5
  8831. echo "${ECHO_T}no" >&6
  8832. fi
  8833. else
  8834. true
  8835. echo "$as_me:$LINENO: result: no" >&5
  8836. echo "${ECHO_T}no" >&6
  8837. fi
  8838. echo "$as_me:$LINENO: checking whether to use -Werror" >&5
  8839. echo $ECHO_N "checking whether to use -Werror... $ECHO_C" >&6
  8840. # Check whether --with-Werror or --without-Werror was given.
  8841. if test "${with_Werror+set}" = set; then
  8842. withval="$with_Werror"
  8843. warn=-Werror
  8844. echo "$as_me:$LINENO: result: yes" >&5
  8845. echo "${ECHO_T}yes" >&6
  8846. echo "$as_me:$LINENO: checking GCC warning flag(s) -Werror" >&5
  8847. echo $ECHO_N "checking GCC warning flag(s) -Werror... $ECHO_C" >&6
  8848. if test "${GCC-no}" = yes
  8849. then
  8850. if test "${dpkg_cv_c_gcc_warn_error+set}" = set; then
  8851. echo $ECHO_N "(cached) $ECHO_C" >&6
  8852. else
  8853. if $CC -Werror -c /dev/null 2>/dev/null; then
  8854. dpkg_cv_c_gcc_warn_error=yes
  8855. else
  8856. dpkg_cv_c_gcc_warn_error=
  8857. fi
  8858. fi
  8859. if test "x$dpkg_cv_c_gcc_warn_error" = xyes; then
  8860. CWARNS="${CWARNS} -Werror"
  8861. echo "$as_me:$LINENO: result: ok" >&5
  8862. echo "${ECHO_T}ok" >&6
  8863. else
  8864. echo "$as_me:$LINENO: result: no" >&5
  8865. echo "${ECHO_T}no" >&6
  8866. fi
  8867. else
  8868. echo "$as_me:$LINENO: result: no" >&5
  8869. echo "${ECHO_T}no" >&6
  8870. fi
  8871. else
  8872. warn=all
  8873. echo "$as_me:$LINENO: result: no" >&5
  8874. echo "${ECHO_T}no" >&6
  8875. fi;
  8876. echo "$as_me:$LINENO: checking GCC warning flag(s) -Wall " >&5
  8877. echo $ECHO_N "checking GCC warning flag(s) -Wall ... $ECHO_C" >&6
  8878. if test "${GCC-no}" = yes
  8879. then
  8880. if test "${dpkg_cv_c_gcc_warn_all+set}" = set; then
  8881. echo $ECHO_N "(cached) $ECHO_C" >&6
  8882. else
  8883. if $CC -Wall -c /dev/null 2>/dev/null; then
  8884. dpkg_cv_c_gcc_warn_all=yes
  8885. else
  8886. dpkg_cv_c_gcc_warn_all=
  8887. fi
  8888. fi
  8889. if test "x$dpkg_cv_c_gcc_warn_all" = xyes; then
  8890. CWARNS="${CWARNS} -Wall "
  8891. echo "$as_me:$LINENO: result: ok" >&5
  8892. echo "${ECHO_T}ok" >&6
  8893. else
  8894. echo "$as_me:$LINENO: result: no" >&5
  8895. echo "${ECHO_T}no" >&6
  8896. fi
  8897. else
  8898. echo "$as_me:$LINENO: result: no" >&5
  8899. echo "${ECHO_T}no" >&6
  8900. fi
  8901. echo "$as_me:$LINENO: checking GCC warning flag(s) -Wwrite-strings" >&5
  8902. echo $ECHO_N "checking GCC warning flag(s) -Wwrite-strings... $ECHO_C" >&6
  8903. if test "${GCC-no}" = yes
  8904. then
  8905. if test "${dpkg_cv_c_gcc_warn_writestrings+set}" = set; then
  8906. echo $ECHO_N "(cached) $ECHO_C" >&6
  8907. else
  8908. if $CC -Wwrite-strings -c /dev/null 2>/dev/null; then
  8909. dpkg_cv_c_gcc_warn_writestrings=yes
  8910. else
  8911. dpkg_cv_c_gcc_warn_writestrings=
  8912. fi
  8913. fi
  8914. if test "x$dpkg_cv_c_gcc_warn_writestrings" = xyes; then
  8915. CWARNS="${CWARNS} -Wwrite-strings"
  8916. echo "$as_me:$LINENO: result: ok" >&5
  8917. echo "${ECHO_T}ok" >&6
  8918. else
  8919. echo "$as_me:$LINENO: result: no" >&5
  8920. echo "${ECHO_T}no" >&6
  8921. fi
  8922. else
  8923. echo "$as_me:$LINENO: result: no" >&5
  8924. echo "${ECHO_T}no" >&6
  8925. fi
  8926. echo "$as_me:$LINENO: checking GCC warning flag(s) -Wpointer-arith" >&5
  8927. echo $ECHO_N "checking GCC warning flag(s) -Wpointer-arith... $ECHO_C" >&6
  8928. if test "${GCC-no}" = yes
  8929. then
  8930. if test "${dpkg_cv_c_gcc_warn_pointerarith+set}" = set; then
  8931. echo $ECHO_N "(cached) $ECHO_C" >&6
  8932. else
  8933. if $CC -Wpointer-arith -c /dev/null 2>/dev/null; then
  8934. dpkg_cv_c_gcc_warn_pointerarith=yes
  8935. else
  8936. dpkg_cv_c_gcc_warn_pointerarith=
  8937. fi
  8938. fi
  8939. if test "x$dpkg_cv_c_gcc_warn_pointerarith" = xyes; then
  8940. CWARNS="${CWARNS} -Wpointer-arith"
  8941. echo "$as_me:$LINENO: result: ok" >&5
  8942. echo "${ECHO_T}ok" >&6
  8943. else
  8944. echo "$as_me:$LINENO: result: no" >&5
  8945. echo "${ECHO_T}no" >&6
  8946. fi
  8947. else
  8948. echo "$as_me:$LINENO: result: no" >&5
  8949. echo "${ECHO_T}no" >&6
  8950. fi
  8951. echo "$as_me:$LINENO: checking GCC warning flag(s) -Wimplicit -Wnested-externs" >&5
  8952. echo $ECHO_N "checking GCC warning flag(s) -Wimplicit -Wnested-externs... $ECHO_C" >&6
  8953. if test "${GCC-no}" = yes
  8954. then
  8955. if test "${dpkg_cv_c_gcc_warn_implicit+set}" = set; then
  8956. echo $ECHO_N "(cached) $ECHO_C" >&6
  8957. else
  8958. if $CC -Wimplicit -Wnested-externs -c /dev/null 2>/dev/null; then
  8959. dpkg_cv_c_gcc_warn_implicit=yes
  8960. else
  8961. dpkg_cv_c_gcc_warn_implicit=
  8962. fi
  8963. fi
  8964. if test "x$dpkg_cv_c_gcc_warn_implicit" = xyes; then
  8965. CWARNS="${CWARNS} -Wimplicit -Wnested-externs"
  8966. echo "$as_me:$LINENO: result: ok" >&5
  8967. echo "${ECHO_T}ok" >&6
  8968. else
  8969. echo "$as_me:$LINENO: result: no" >&5
  8970. echo "${ECHO_T}no" >&6
  8971. fi
  8972. else
  8973. echo "$as_me:$LINENO: result: no" >&5
  8974. echo "${ECHO_T}no" >&6
  8975. fi
  8976. echo "$as_me:$LINENO: checking GCC warning flag(s) -Wstrict-prototypes" >&5
  8977. echo $ECHO_N "checking GCC warning flag(s) -Wstrict-prototypes... $ECHO_C" >&6
  8978. if test "${GCC-no}" = yes
  8979. then
  8980. if test "${dpkg_cv_c_gcc_strict_prototypes+set}" = set; then
  8981. echo $ECHO_N "(cached) $ECHO_C" >&6
  8982. else
  8983. if $CC -Wstrict-prototypes -c /dev/null 2>/dev/null; then
  8984. dpkg_cv_c_gcc_strict_prototypes=yes
  8985. else
  8986. dpkg_cv_c_gcc_strict_prototypes=
  8987. fi
  8988. fi
  8989. if test "x$dpkg_cv_c_gcc_strict_prototypes" = xyes; then
  8990. CWARNS="${CWARNS} -Wstrict-prototypes"
  8991. echo "$as_me:$LINENO: result: ok" >&5
  8992. echo "${ECHO_T}ok" >&6
  8993. else
  8994. echo "$as_me:$LINENO: result: no" >&5
  8995. echo "${ECHO_T}no" >&6
  8996. fi
  8997. else
  8998. echo "$as_me:$LINENO: result: no" >&5
  8999. echo "${ECHO_T}no" >&6
  9000. fi
  9001. echo "$as_me:$LINENO: checking GCC warning flag(s) -Wmissing-prototypes" >&5
  9002. echo $ECHO_N "checking GCC warning flag(s) -Wmissing-prototypes... $ECHO_C" >&6
  9003. if test "${GCC-no}" = yes
  9004. then
  9005. if test "${dpkg_cv_c_gcc_missing_prototypes+set}" = set; then
  9006. echo $ECHO_N "(cached) $ECHO_C" >&6
  9007. else
  9008. if $CC -Wmissing-prototypes -c /dev/null 2>/dev/null; then
  9009. dpkg_cv_c_gcc_missing_prototypes=yes
  9010. else
  9011. dpkg_cv_c_gcc_missing_prototypes=
  9012. fi
  9013. fi
  9014. if test "x$dpkg_cv_c_gcc_missing_prototypes" = xyes; then
  9015. CWARNS="${CWARNS} -Wmissing-prototypes"
  9016. echo "$as_me:$LINENO: result: ok" >&5
  9017. echo "${ECHO_T}ok" >&6
  9018. else
  9019. echo "$as_me:$LINENO: result: no" >&5
  9020. echo "${ECHO_T}no" >&6
  9021. fi
  9022. else
  9023. echo "$as_me:$LINENO: result: no" >&5
  9024. echo "${ECHO_T}no" >&6
  9025. fi
  9026. echo "$as_me:$LINENO: checking GCC warning flag(s) -Wmissing-declarations" >&5
  9027. echo $ECHO_N "checking GCC warning flag(s) -Wmissing-declarations... $ECHO_C" >&6
  9028. if test "${GCC-no}" = yes
  9029. then
  9030. if test "${dpkg_cv_c_gcc_missing_declarations+set}" = set; then
  9031. echo $ECHO_N "(cached) $ECHO_C" >&6
  9032. else
  9033. if $CC -Wmissing-declarations -c /dev/null 2>/dev/null; then
  9034. dpkg_cv_c_gcc_missing_declarations=yes
  9035. else
  9036. dpkg_cv_c_gcc_missing_declarations=
  9037. fi
  9038. fi
  9039. if test "x$dpkg_cv_c_gcc_missing_declarations" = xyes; then
  9040. CWARNS="${CWARNS} -Wmissing-declarations"
  9041. echo "$as_me:$LINENO: result: ok" >&5
  9042. echo "${ECHO_T}ok" >&6
  9043. else
  9044. echo "$as_me:$LINENO: result: no" >&5
  9045. echo "${ECHO_T}no" >&6
  9046. fi
  9047. else
  9048. echo "$as_me:$LINENO: result: no" >&5
  9049. echo "${ECHO_T}no" >&6
  9050. fi
  9051. echo "$as_me:$LINENO: checking GCC warning flag(s) -Wbad-function-cast" >&5
  9052. echo $ECHO_N "checking GCC warning flag(s) -Wbad-function-cast... $ECHO_C" >&6
  9053. if test "${GCC-no}" = yes
  9054. then
  9055. if test "${dpkg_cv_c_gcc_func_cast+set}" = set; then
  9056. echo $ECHO_N "(cached) $ECHO_C" >&6
  9057. else
  9058. if $CC -Wbad-function-cast -c /dev/null 2>/dev/null; then
  9059. dpkg_cv_c_gcc_func_cast=yes
  9060. else
  9061. dpkg_cv_c_gcc_func_cast=
  9062. fi
  9063. fi
  9064. if test "x$dpkg_cv_c_gcc_func_cast" = xyes; then
  9065. CWARNS="${CWARNS} -Wbad-function-cast"
  9066. echo "$as_me:$LINENO: result: ok" >&5
  9067. echo "${ECHO_T}ok" >&6
  9068. else
  9069. echo "$as_me:$LINENO: result: no" >&5
  9070. echo "${ECHO_T}no" >&6
  9071. fi
  9072. else
  9073. echo "$as_me:$LINENO: result: no" >&5
  9074. echo "${ECHO_T}no" >&6
  9075. fi
  9076. echo "$as_me:$LINENO: checking GCC warning flag(s) -Wcast-qual -Wcast-align" >&5
  9077. echo $ECHO_N "checking GCC warning flag(s) -Wcast-qual -Wcast-align... $ECHO_C" >&6
  9078. if test "${GCC-no}" = yes
  9079. then
  9080. if test "${dpkg_cv_c_gcc_cast_qual+set}" = set; then
  9081. echo $ECHO_N "(cached) $ECHO_C" >&6
  9082. else
  9083. if $CC -Wcast-qual -Wcast-align -c /dev/null 2>/dev/null; then
  9084. dpkg_cv_c_gcc_cast_qual=yes
  9085. else
  9086. dpkg_cv_c_gcc_cast_qual=
  9087. fi
  9088. fi
  9089. if test "x$dpkg_cv_c_gcc_cast_qual" = xyes; then
  9090. CWARNS="${CWARNS} -Wcast-qual -Wcast-align"
  9091. echo "$as_me:$LINENO: result: ok" >&5
  9092. echo "${ECHO_T}ok" >&6
  9093. else
  9094. echo "$as_me:$LINENO: result: no" >&5
  9095. echo "${ECHO_T}no" >&6
  9096. fi
  9097. else
  9098. echo "$as_me:$LINENO: result: no" >&5
  9099. echo "${ECHO_T}no" >&6
  9100. fi
  9101. echo "$as_me:$LINENO: checking GCC warning flag(s) -Winline" >&5
  9102. echo $ECHO_N "checking GCC warning flag(s) -Winline... $ECHO_C" >&6
  9103. if test "${GCC-no}" = yes
  9104. then
  9105. if test "${dpkg_cv_c_gcc_inline+set}" = set; then
  9106. echo $ECHO_N "(cached) $ECHO_C" >&6
  9107. else
  9108. if $CC -Winline -c /dev/null 2>/dev/null; then
  9109. dpkg_cv_c_gcc_inline=yes
  9110. else
  9111. dpkg_cv_c_gcc_inline=
  9112. fi
  9113. fi
  9114. if test "x$dpkg_cv_c_gcc_inline" = xyes; then
  9115. CWARNS="${CWARNS} -Winline"
  9116. echo "$as_me:$LINENO: result: ok" >&5
  9117. echo "${ECHO_T}ok" >&6
  9118. else
  9119. echo "$as_me:$LINENO: result: no" >&5
  9120. echo "${ECHO_T}no" >&6
  9121. fi
  9122. else
  9123. echo "$as_me:$LINENO: result: no" >&5
  9124. echo "${ECHO_T}no" >&6
  9125. fi
  9126. echo "$as_me:$LINENO: checking GCC warning flag(s) -Wmissing-noreturn" >&5
  9127. echo $ECHO_N "checking GCC warning flag(s) -Wmissing-noreturn... $ECHO_C" >&6
  9128. if test "${GCC-no}" = yes
  9129. then
  9130. if test "${dpkg_cv_c_gcc_noreturn+set}" = set; then
  9131. echo $ECHO_N "(cached) $ECHO_C" >&6
  9132. else
  9133. if $CC -Wmissing-noreturn -c /dev/null 2>/dev/null; then
  9134. dpkg_cv_c_gcc_noreturn=yes
  9135. else
  9136. dpkg_cv_c_gcc_noreturn=
  9137. fi
  9138. fi
  9139. if test "x$dpkg_cv_c_gcc_noreturn" = xyes; then
  9140. CWARNS="${CWARNS} -Wmissing-noreturn"
  9141. echo "$as_me:$LINENO: result: ok" >&5
  9142. echo "${ECHO_T}ok" >&6
  9143. else
  9144. echo "$as_me:$LINENO: result: no" >&5
  9145. echo "${ECHO_T}no" >&6
  9146. fi
  9147. else
  9148. echo "$as_me:$LINENO: result: no" >&5
  9149. echo "${ECHO_T}no" >&6
  9150. fi
  9151. echo "$as_me:$LINENO: checking GCC warning flag(s) -Wsign-compare" >&5
  9152. echo $ECHO_N "checking GCC warning flag(s) -Wsign-compare... $ECHO_C" >&6
  9153. if test "${GCC-no}" = yes
  9154. then
  9155. if test "${dpkg_cv_c_gcc_comp_conv+set}" = set; then
  9156. echo $ECHO_N "(cached) $ECHO_C" >&6
  9157. else
  9158. if $CC -Wsign-compare -c /dev/null 2>/dev/null; then
  9159. dpkg_cv_c_gcc_comp_conv=yes
  9160. else
  9161. dpkg_cv_c_gcc_comp_conv=
  9162. fi
  9163. fi
  9164. if test "x$dpkg_cv_c_gcc_comp_conv" = xyes; then
  9165. CWARNS="${CWARNS} -Wsign-compare"
  9166. echo "$as_me:$LINENO: result: ok" >&5
  9167. echo "${ECHO_T}ok" >&6
  9168. else
  9169. echo "$as_me:$LINENO: result: no" >&5
  9170. echo "${ECHO_T}no" >&6
  9171. fi
  9172. else
  9173. echo "$as_me:$LINENO: result: no" >&5
  9174. echo "${ECHO_T}no" >&6
  9175. fi
  9176. expandvar() { echo $(eval echo $1) ; }
  9177. test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  9178. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  9179. LLIBDIR=`eval echo $libdir`
  9180. LLIBDIR=`eval echo $LLIBDIR`
  9181. LOCALSTATEDIR="$(expandvar $localstatedir)"
  9182. cat >>confdefs.h <<_ACEOF
  9183. #define LLIBDIR "$LLIBDIR"
  9184. _ACEOF
  9185. cat >>confdefs.h <<_ACEOF
  9186. #define LOCALSTATEDIR "$LOCALSTATEDIR"
  9187. _ACEOF
  9188. admindir=$(expandvar "$admindir")
  9189. bindir=$(expandvar "$bindir")
  9190. datadir=$(expandvar "$datadir")
  9191. includedirdir=$(expandvar "$includedirdir")
  9192. libdir=$(expandvar "$libdir")
  9193. libexecdir=$(expandvar "$libexecdir")
  9194. localstatedir=$(expandvar "$localstatedir")
  9195. mandir=$(expandvar "$mandir")
  9196. sbindir=$(expandvar "$sbindir")
  9197. sharedstatedir=$(expandvar "$sharedstatedir")
  9198. sysconfdir=$(expandvar "$sysconfdir")
  9199. infodir=$(expandvar "$infodir")
  9200. ac_config_files="$ac_config_files po/Makefile.in Makefile.conf Makefile include/Makefile dpkg-deb/Makefile split/Makefile lib/Makefile optlib/Makefile doc/Makefile man/Makefile man/paths.ent man/de/Makefile man/en/Makefile man/es/Makefile man/fr/Makefile man/ja/Makefile man/pt_BR/Makefile man/ru/Makefile man/sv/Makefile scripts/Makefile main/Makefile dselect/Makefile methods/Makefile utils/Makefile"
  9201. cat >confcache <<\_ACEOF
  9202. # This file is a shell script that caches the results of configure
  9203. # tests run on this system so they can be shared between configure
  9204. # scripts and configure runs, see configure's option --config-cache.
  9205. # It is not useful on other systems. If it contains results you don't
  9206. # want to keep, you may remove or edit it.
  9207. #
  9208. # config.status only pays attention to the cache file if you give it
  9209. # the --recheck option to rerun configure.
  9210. #
  9211. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9212. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9213. # following values.
  9214. _ACEOF
  9215. # The following way of writing the cache mishandles newlines in values,
  9216. # but we know of no workaround that is simple, portable, and efficient.
  9217. # So, don't put newlines in cache variables' values.
  9218. # Ultrix sh set writes to stderr and can't be redirected directly,
  9219. # and sets the high bit in the cache file unless we assign to the vars.
  9220. {
  9221. (set) 2>&1 |
  9222. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9223. *ac_space=\ *)
  9224. # `set' does not quote correctly, so add quotes (double-quote
  9225. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9226. sed -n \
  9227. "s/'/'\\\\''/g;
  9228. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9229. ;;
  9230. *)
  9231. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9232. sed -n \
  9233. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9234. ;;
  9235. esac;
  9236. } |
  9237. sed '
  9238. t clear
  9239. : clear
  9240. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9241. t end
  9242. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9243. : end' >>confcache
  9244. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9245. if test -w $cache_file; then
  9246. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  9247. cat confcache >$cache_file
  9248. else
  9249. echo "not updating unwritable cache $cache_file"
  9250. fi
  9251. fi
  9252. rm -f confcache
  9253. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9254. # Let make expand exec_prefix.
  9255. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9256. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  9257. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  9258. # trailing colons and then remove the whole line if VPATH becomes empty
  9259. # (actually we leave an empty line to preserve line numbers).
  9260. if test "x$srcdir" = x.; then
  9261. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  9262. s/:*\$(srcdir):*/:/;
  9263. s/:*\${srcdir}:*/:/;
  9264. s/:*@srcdir@:*/:/;
  9265. s/^\([^=]*=[ ]*\):*/\1/;
  9266. s/:*$//;
  9267. s/^[^=]*=[ ]*$//;
  9268. }'
  9269. fi
  9270. DEFS=-DHAVE_CONFIG_H
  9271. ac_libobjs=
  9272. ac_ltlibobjs=
  9273. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9274. # 1. Remove the extension, and $U if already installed.
  9275. ac_i=`echo "$ac_i" |
  9276. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  9277. # 2. Add them.
  9278. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  9279. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  9280. done
  9281. LIBOBJS=$ac_libobjs
  9282. LTLIBOBJS=$ac_ltlibobjs
  9283. if test -z "${HAVE_CPLUSPLUS_TRUE}" && test -z "${HAVE_CPLUSPLUS_FALSE}"; then
  9284. { { echo "$as_me:$LINENO: error: conditional \"HAVE_CPLUSPLUS\" was never defined.
  9285. Usually this means the macro was only invoked conditionally." >&5
  9286. echo "$as_me: error: conditional \"HAVE_CPLUSPLUS\" was never defined.
  9287. Usually this means the macro was only invoked conditionally." >&2;}
  9288. { (exit 1); exit 1; }; }
  9289. fi
  9290. : ${CONFIG_STATUS=./config.status}
  9291. ac_clean_files_save=$ac_clean_files
  9292. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9293. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  9294. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9295. cat >$CONFIG_STATUS <<_ACEOF
  9296. #! $SHELL
  9297. # Generated by $as_me.
  9298. # Run this file to recreate the current configuration.
  9299. # Compiler output produced by configure, useful for debugging
  9300. # configure, is in config.log if it exists.
  9301. debug=false
  9302. ac_cs_recheck=false
  9303. ac_cs_silent=false
  9304. SHELL=\${CONFIG_SHELL-$SHELL}
  9305. _ACEOF
  9306. cat >>$CONFIG_STATUS <<\_ACEOF
  9307. ## --------------------- ##
  9308. ## M4sh Initialization. ##
  9309. ## --------------------- ##
  9310. # Be Bourne compatible
  9311. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  9312. emulate sh
  9313. NULLCMD=:
  9314. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  9315. # is contrary to our usage. Disable this feature.
  9316. alias -g '${1+"$@"}'='"$@"'
  9317. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  9318. set -o posix
  9319. fi
  9320. DUALCASE=1; export DUALCASE # for MKS sh
  9321. # Support unset when possible.
  9322. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9323. as_unset=unset
  9324. else
  9325. as_unset=false
  9326. fi
  9327. # Work around bugs in pre-3.0 UWIN ksh.
  9328. $as_unset ENV MAIL MAILPATH
  9329. PS1='$ '
  9330. PS2='> '
  9331. PS4='+ '
  9332. # NLS nuisances.
  9333. for as_var in \
  9334. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  9335. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  9336. LC_TELEPHONE LC_TIME
  9337. do
  9338. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  9339. eval $as_var=C; export $as_var
  9340. else
  9341. $as_unset $as_var
  9342. fi
  9343. done
  9344. # Required to use basename.
  9345. if expr a : '\(a\)' >/dev/null 2>&1; then
  9346. as_expr=expr
  9347. else
  9348. as_expr=false
  9349. fi
  9350. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  9351. as_basename=basename
  9352. else
  9353. as_basename=false
  9354. fi
  9355. # Name of the executable.
  9356. as_me=`$as_basename "$0" ||
  9357. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9358. X"$0" : 'X\(//\)$' \| \
  9359. X"$0" : 'X\(/\)$' \| \
  9360. . : '\(.\)' 2>/dev/null ||
  9361. echo X/"$0" |
  9362. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  9363. /^X\/\(\/\/\)$/{ s//\1/; q; }
  9364. /^X\/\(\/\).*/{ s//\1/; q; }
  9365. s/.*/./; q'`
  9366. # PATH needs CR, and LINENO needs CR and PATH.
  9367. # Avoid depending upon Character Ranges.
  9368. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9369. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9370. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9371. as_cr_digits='0123456789'
  9372. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9373. # The user is always right.
  9374. if test "${PATH_SEPARATOR+set}" != set; then
  9375. echo "#! /bin/sh" >conf$$.sh
  9376. echo "exit 0" >>conf$$.sh
  9377. chmod +x conf$$.sh
  9378. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9379. PATH_SEPARATOR=';'
  9380. else
  9381. PATH_SEPARATOR=:
  9382. fi
  9383. rm -f conf$$.sh
  9384. fi
  9385. as_lineno_1=$LINENO
  9386. as_lineno_2=$LINENO
  9387. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9388. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9389. test "x$as_lineno_3" = "x$as_lineno_2" || {
  9390. # Find who we are. Look in the path if we contain no path at all
  9391. # relative or not.
  9392. case $0 in
  9393. *[\\/]* ) as_myself=$0 ;;
  9394. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9395. for as_dir in $PATH
  9396. do
  9397. IFS=$as_save_IFS
  9398. test -z "$as_dir" && as_dir=.
  9399. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9400. done
  9401. ;;
  9402. esac
  9403. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9404. # in which case we are not to be found in the path.
  9405. if test "x$as_myself" = x; then
  9406. as_myself=$0
  9407. fi
  9408. if test ! -f "$as_myself"; then
  9409. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  9410. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  9411. { (exit 1); exit 1; }; }
  9412. fi
  9413. case $CONFIG_SHELL in
  9414. '')
  9415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9416. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  9417. do
  9418. IFS=$as_save_IFS
  9419. test -z "$as_dir" && as_dir=.
  9420. for as_base in sh bash ksh sh5; do
  9421. case $as_dir in
  9422. /*)
  9423. if ("$as_dir/$as_base" -c '
  9424. as_lineno_1=$LINENO
  9425. as_lineno_2=$LINENO
  9426. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9427. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9428. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  9429. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  9430. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  9431. CONFIG_SHELL=$as_dir/$as_base
  9432. export CONFIG_SHELL
  9433. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  9434. fi;;
  9435. esac
  9436. done
  9437. done
  9438. ;;
  9439. esac
  9440. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  9441. # uniformly replaced by the line number. The first 'sed' inserts a
  9442. # line-number line before each line; the second 'sed' does the real
  9443. # work. The second script uses 'N' to pair each line-number line
  9444. # with the numbered line, and appends trailing '-' during
  9445. # substitution so that $LINENO is not a special case at line end.
  9446. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  9447. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  9448. sed '=' <$as_myself |
  9449. sed '
  9450. N
  9451. s,$,-,
  9452. : loop
  9453. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  9454. t loop
  9455. s,-$,,
  9456. s,^['$as_cr_digits']*\n,,
  9457. ' >$as_me.lineno &&
  9458. chmod +x $as_me.lineno ||
  9459. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  9460. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  9461. { (exit 1); exit 1; }; }
  9462. # Don't try to exec as it changes $[0], causing all sort of problems
  9463. # (the dirname of $[0] is not the place where we might find the
  9464. # original and so on. Autoconf is especially sensible to this).
  9465. . ./$as_me.lineno
  9466. # Exit status is that of the last command.
  9467. exit
  9468. }
  9469. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  9470. *c*,-n*) ECHO_N= ECHO_C='
  9471. ' ECHO_T=' ' ;;
  9472. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  9473. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  9474. esac
  9475. if expr a : '\(a\)' >/dev/null 2>&1; then
  9476. as_expr=expr
  9477. else
  9478. as_expr=false
  9479. fi
  9480. rm -f conf$$ conf$$.exe conf$$.file
  9481. echo >conf$$.file
  9482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9483. # We could just check for DJGPP; but this test a) works b) is more generic
  9484. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  9485. if test -f conf$$.exe; then
  9486. # Don't use ln at all; we don't have any links
  9487. as_ln_s='cp -p'
  9488. else
  9489. as_ln_s='ln -s'
  9490. fi
  9491. elif ln conf$$.file conf$$ 2>/dev/null; then
  9492. as_ln_s=ln
  9493. else
  9494. as_ln_s='cp -p'
  9495. fi
  9496. rm -f conf$$ conf$$.exe conf$$.file
  9497. if mkdir -p . 2>/dev/null; then
  9498. as_mkdir_p=:
  9499. else
  9500. test -d ./-p && rmdir ./-p
  9501. as_mkdir_p=false
  9502. fi
  9503. as_executable_p="test -f"
  9504. # Sed expression to map a string onto a valid CPP name.
  9505. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9506. # Sed expression to map a string onto a valid variable name.
  9507. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9508. # IFS
  9509. # We need space, tab and new line, in precisely that order.
  9510. as_nl='
  9511. '
  9512. IFS=" $as_nl"
  9513. # CDPATH.
  9514. $as_unset CDPATH
  9515. exec 6>&1
  9516. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  9517. # report actual input values of CONFIG_FILES etc. instead of their
  9518. # values after options handling. Logging --version etc. is OK.
  9519. exec 5>>config.log
  9520. {
  9521. echo
  9522. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9523. ## Running $as_me. ##
  9524. _ASBOX
  9525. } >&5
  9526. cat >&5 <<_CSEOF
  9527. This file was extended by $as_me, which was
  9528. generated by GNU Autoconf 2.59. Invocation command line was
  9529. CONFIG_FILES = $CONFIG_FILES
  9530. CONFIG_HEADERS = $CONFIG_HEADERS
  9531. CONFIG_LINKS = $CONFIG_LINKS
  9532. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9533. $ $0 $@
  9534. _CSEOF
  9535. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  9536. echo >&5
  9537. _ACEOF
  9538. # Files that config.status was made for.
  9539. if test -n "$ac_config_files"; then
  9540. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  9541. fi
  9542. if test -n "$ac_config_headers"; then
  9543. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  9544. fi
  9545. if test -n "$ac_config_links"; then
  9546. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  9547. fi
  9548. if test -n "$ac_config_commands"; then
  9549. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  9550. fi
  9551. cat >>$CONFIG_STATUS <<\_ACEOF
  9552. ac_cs_usage="\
  9553. \`$as_me' instantiates files from templates according to the
  9554. current configuration.
  9555. Usage: $0 [OPTIONS] [FILE]...
  9556. -h, --help print this help, then exit
  9557. -V, --version print version number, then exit
  9558. -q, --quiet do not print progress messages
  9559. -d, --debug don't remove temporary files
  9560. --recheck update $as_me by reconfiguring in the same conditions
  9561. --file=FILE[:TEMPLATE]
  9562. instantiate the configuration file FILE
  9563. --header=FILE[:TEMPLATE]
  9564. instantiate the configuration header FILE
  9565. Configuration files:
  9566. $config_files
  9567. Configuration headers:
  9568. $config_headers
  9569. Configuration commands:
  9570. $config_commands
  9571. Report bugs to <bug-autoconf@gnu.org>."
  9572. _ACEOF
  9573. cat >>$CONFIG_STATUS <<_ACEOF
  9574. ac_cs_version="\\
  9575. config.status
  9576. configured by $0, generated by GNU Autoconf 2.59,
  9577. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  9578. Copyright (C) 2003 Free Software Foundation, Inc.
  9579. This config.status script is free software; the Free Software Foundation
  9580. gives unlimited permission to copy, distribute and modify it."
  9581. srcdir=$srcdir
  9582. INSTALL="$INSTALL"
  9583. _ACEOF
  9584. cat >>$CONFIG_STATUS <<\_ACEOF
  9585. # If no file are specified by the user, then we need to provide default
  9586. # value. By we need to know if files were specified by the user.
  9587. ac_need_defaults=:
  9588. while test $# != 0
  9589. do
  9590. case $1 in
  9591. --*=*)
  9592. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  9593. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  9594. ac_shift=:
  9595. ;;
  9596. -*)
  9597. ac_option=$1
  9598. ac_optarg=$2
  9599. ac_shift=shift
  9600. ;;
  9601. *) # This is not an option, so the user has probably given explicit
  9602. # arguments.
  9603. ac_option=$1
  9604. ac_need_defaults=false;;
  9605. esac
  9606. case $ac_option in
  9607. # Handling of the options.
  9608. _ACEOF
  9609. cat >>$CONFIG_STATUS <<\_ACEOF
  9610. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9611. ac_cs_recheck=: ;;
  9612. --version | --vers* | -V )
  9613. echo "$ac_cs_version"; exit 0 ;;
  9614. --he | --h)
  9615. # Conflict between --help and --header
  9616. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  9617. Try \`$0 --help' for more information." >&5
  9618. echo "$as_me: error: ambiguous option: $1
  9619. Try \`$0 --help' for more information." >&2;}
  9620. { (exit 1); exit 1; }; };;
  9621. --help | --hel | -h )
  9622. echo "$ac_cs_usage"; exit 0 ;;
  9623. --debug | --d* | -d )
  9624. debug=: ;;
  9625. --file | --fil | --fi | --f )
  9626. $ac_shift
  9627. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  9628. ac_need_defaults=false;;
  9629. --header | --heade | --head | --hea )
  9630. $ac_shift
  9631. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  9632. ac_need_defaults=false;;
  9633. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9634. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9635. ac_cs_silent=: ;;
  9636. # This is an error.
  9637. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  9638. Try \`$0 --help' for more information." >&5
  9639. echo "$as_me: error: unrecognized option: $1
  9640. Try \`$0 --help' for more information." >&2;}
  9641. { (exit 1); exit 1; }; } ;;
  9642. *) ac_config_targets="$ac_config_targets $1" ;;
  9643. esac
  9644. shift
  9645. done
  9646. ac_configure_extra_args=
  9647. if $ac_cs_silent; then
  9648. exec 6>/dev/null
  9649. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9650. fi
  9651. _ACEOF
  9652. cat >>$CONFIG_STATUS <<_ACEOF
  9653. if \$ac_cs_recheck; then
  9654. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  9655. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9656. fi
  9657. _ACEOF
  9658. cat >>$CONFIG_STATUS <<_ACEOF
  9659. #
  9660. # INIT-COMMANDS section.
  9661. #
  9662. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  9663. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  9664. # from automake.
  9665. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  9666. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  9667. LINGUAS="${LINGUAS-%UNSET%}"
  9668. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  9669. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  9670. # from automake.
  9671. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  9672. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  9673. LINGUAS="${LINGUAS-%UNSET%}"
  9674. _ACEOF
  9675. cat >>$CONFIG_STATUS <<\_ACEOF
  9676. for ac_config_target in $ac_config_targets
  9677. do
  9678. case "$ac_config_target" in
  9679. # Handling of arguments.
  9680. "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  9681. "Makefile.conf" ) CONFIG_FILES="$CONFIG_FILES Makefile.conf" ;;
  9682. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9683. "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  9684. "dpkg-deb/Makefile" ) CONFIG_FILES="$CONFIG_FILES dpkg-deb/Makefile" ;;
  9685. "split/Makefile" ) CONFIG_FILES="$CONFIG_FILES split/Makefile" ;;
  9686. "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  9687. "optlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES optlib/Makefile" ;;
  9688. "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  9689. "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  9690. "man/paths.ent" ) CONFIG_FILES="$CONFIG_FILES man/paths.ent" ;;
  9691. "man/de/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/de/Makefile" ;;
  9692. "man/en/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/en/Makefile" ;;
  9693. "man/es/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/es/Makefile" ;;
  9694. "man/fr/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/fr/Makefile" ;;
  9695. "man/ja/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/ja/Makefile" ;;
  9696. "man/pt_BR/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/pt_BR/Makefile" ;;
  9697. "man/ru/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/ru/Makefile" ;;
  9698. "man/sv/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/sv/Makefile" ;;
  9699. "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  9700. "main/Makefile" ) CONFIG_FILES="$CONFIG_FILES main/Makefile" ;;
  9701. "dselect/Makefile" ) CONFIG_FILES="$CONFIG_FILES dselect/Makefile" ;;
  9702. "methods/Makefile" ) CONFIG_FILES="$CONFIG_FILES methods/Makefile" ;;
  9703. "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
  9704. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  9705. "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
  9706. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  9707. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  9708. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  9709. { (exit 1); exit 1; }; };;
  9710. esac
  9711. done
  9712. # If the user did not use the arguments to specify the items to instantiate,
  9713. # then the envvar interface is used. Set only those that are not.
  9714. # We use the long form for the default assignment because of an extremely
  9715. # bizarre bug on SunOS 4.1.3.
  9716. if $ac_need_defaults; then
  9717. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9718. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9719. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9720. fi
  9721. # Have a temporary directory for convenience. Make it in the build tree
  9722. # simply because there is no reason to put it here, and in addition,
  9723. # creating and moving files from /tmp can sometimes cause problems.
  9724. # Create a temporary directory, and hook for its removal unless debugging.
  9725. $debug ||
  9726. {
  9727. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  9728. trap '{ (exit 1); exit 1; }' 1 2 13 15
  9729. }
  9730. # Create a (secure) tmp directory for tmp files.
  9731. {
  9732. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  9733. test -n "$tmp" && test -d "$tmp"
  9734. } ||
  9735. {
  9736. tmp=./confstat$$-$RANDOM
  9737. (umask 077 && mkdir $tmp)
  9738. } ||
  9739. {
  9740. echo "$me: cannot create a temporary directory in ." >&2
  9741. { (exit 1); exit 1; }
  9742. }
  9743. _ACEOF
  9744. cat >>$CONFIG_STATUS <<_ACEOF
  9745. #
  9746. # CONFIG_FILES section.
  9747. #
  9748. # No need to generate the scripts if there are no CONFIG_FILES.
  9749. # This happens for instance when ./config.status config.h
  9750. if test -n "\$CONFIG_FILES"; then
  9751. # Protect against being on the right side of a sed subst in config.status.
  9752. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  9753. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  9754. s,@SHELL@,$SHELL,;t t
  9755. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  9756. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  9757. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  9758. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  9759. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  9760. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  9761. s,@exec_prefix@,$exec_prefix,;t t
  9762. s,@prefix@,$prefix,;t t
  9763. s,@program_transform_name@,$program_transform_name,;t t
  9764. s,@bindir@,$bindir,;t t
  9765. s,@sbindir@,$sbindir,;t t
  9766. s,@libexecdir@,$libexecdir,;t t
  9767. s,@datadir@,$datadir,;t t
  9768. s,@sysconfdir@,$sysconfdir,;t t
  9769. s,@sharedstatedir@,$sharedstatedir,;t t
  9770. s,@localstatedir@,$localstatedir,;t t
  9771. s,@libdir@,$libdir,;t t
  9772. s,@includedir@,$includedir,;t t
  9773. s,@oldincludedir@,$oldincludedir,;t t
  9774. s,@infodir@,$infodir,;t t
  9775. s,@mandir@,$mandir,;t t
  9776. s,@build_alias@,$build_alias,;t t
  9777. s,@host_alias@,$host_alias,;t t
  9778. s,@target_alias@,$target_alias,;t t
  9779. s,@DEFS@,$DEFS,;t t
  9780. s,@ECHO_C@,$ECHO_C,;t t
  9781. s,@ECHO_N@,$ECHO_N,;t t
  9782. s,@ECHO_T@,$ECHO_T,;t t
  9783. s,@LIBS@,$LIBS,;t t
  9784. s,@ALSO_STATIC@,$ALSO_STATIC,;t t
  9785. s,@DSELECTDIR@,$DSELECTDIR,;t t
  9786. s,@USE_START_STOP_DAEMON@,$USE_START_STOP_DAEMON,;t t
  9787. s,@USE_SGML_DOC@,$USE_SGML_DOC,;t t
  9788. s,@build@,$build,;t t
  9789. s,@build_cpu@,$build_cpu,;t t
  9790. s,@build_vendor@,$build_vendor,;t t
  9791. s,@build_os@,$build_os,;t t
  9792. s,@host@,$host,;t t
  9793. s,@host_cpu@,$host_cpu,;t t
  9794. s,@host_vendor@,$host_vendor,;t t
  9795. s,@host_os@,$host_os,;t t
  9796. s,@target@,$target,;t t
  9797. s,@target_cpu@,$target_cpu,;t t
  9798. s,@target_vendor@,$target_vendor,;t t
  9799. s,@target_os@,$target_os,;t t
  9800. s,@CC@,$CC,;t t
  9801. s,@ac_ct_CC@,$ac_ct_CC,;t t
  9802. s,@CFLAGS@,$CFLAGS,;t t
  9803. s,@LDFLAGS@,$LDFLAGS,;t t
  9804. s,@CPPFLAGS@,$CPPFLAGS,;t t
  9805. s,@EXEEXT@,$EXEEXT,;t t
  9806. s,@OBJEXT@,$OBJEXT,;t t
  9807. s,@CXX@,$CXX,;t t
  9808. s,@CXXFLAGS@,$CXXFLAGS,;t t
  9809. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  9810. s,@HAVE_CPLUSPLUS_TRUE@,$HAVE_CPLUSPLUS_TRUE,;t t
  9811. s,@HAVE_CPLUSPLUS_FALSE@,$HAVE_CPLUSPLUS_FALSE,;t t
  9812. s,@LD@,$LD,;t t
  9813. s,@ac_ct_LD@,$ac_ct_LD,;t t
  9814. s,@PACKAGE@,$PACKAGE,;t t
  9815. s,@VERSION@,$VERSION,;t t
  9816. s,@SET_MAKE@,$SET_MAKE,;t t
  9817. s,@os_type@,$os_type,;t t
  9818. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  9819. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  9820. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  9821. s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
  9822. s,@USE_NLS@,$USE_NLS,;t t
  9823. s,@MSGFMT@,$MSGFMT,;t t
  9824. s,@GMSGFMT@,$GMSGFMT,;t t
  9825. s,@XGETTEXT@,$XGETTEXT,;t t
  9826. s,@MSGMERGE@,$MSGMERGE,;t t
  9827. s,@LIBICONV@,$LIBICONV,;t t
  9828. s,@LTLIBICONV@,$LTLIBICONV,;t t
  9829. s,@INTLLIBS@,$INTLLIBS,;t t
  9830. s,@LIBINTL@,$LIBINTL,;t t
  9831. s,@LTLIBINTL@,$LTLIBINTL,;t t
  9832. s,@POSUB@,$POSUB,;t t
  9833. s,@CPP@,$CPP,;t t
  9834. s,@EGREP@,$EGREP,;t t
  9835. s,@RANLIB@,$RANLIB,;t t
  9836. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  9837. s,@LN_S@,$LN_S,;t t
  9838. s,@RM@,$RM,;t t
  9839. s,@SED@,$SED,;t t
  9840. s,@PERL@,$PERL,;t t
  9841. s,@SSD_LIBS@,$SSD_LIBS,;t t
  9842. s,@CURSES_LIBS@,$CURSES_LIBS,;t t
  9843. s,@ZLIB_CFLAGS@,$ZLIB_CFLAGS,;t t
  9844. s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
  9845. s,@ZLIB_LIBS_ALSO_STATIC@,$ZLIB_LIBS_ALSO_STATIC,;t t
  9846. s,@BZ2LIB_CFLAGS@,$BZ2LIB_CFLAGS,;t t
  9847. s,@BZ2LIB_LIBS@,$BZ2LIB_LIBS,;t t
  9848. s,@BZ2LIB_LIBS_ALSO_STATIC@,$BZ2LIB_LIBS_ALSO_STATIC,;t t
  9849. s,@CWARNS@,$CWARNS,;t t
  9850. s,@admindir@,$admindir,;t t
  9851. s,@LIBOBJS@,$LIBOBJS,;t t
  9852. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  9853. CEOF
  9854. _ACEOF
  9855. cat >>$CONFIG_STATUS <<\_ACEOF
  9856. # Split the substitutions into bite-sized pieces for seds with
  9857. # small command number limits, like on Digital OSF/1 and HP-UX.
  9858. ac_max_sed_lines=48
  9859. ac_sed_frag=1 # Number of current file.
  9860. ac_beg=1 # First line for current file.
  9861. ac_end=$ac_max_sed_lines # Line after last line for current file.
  9862. ac_more_lines=:
  9863. ac_sed_cmds=
  9864. while $ac_more_lines; do
  9865. if test $ac_beg -gt 1; then
  9866. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9867. else
  9868. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9869. fi
  9870. if test ! -s $tmp/subs.frag; then
  9871. ac_more_lines=false
  9872. else
  9873. # The purpose of the label and of the branching condition is to
  9874. # speed up the sed processing (if there are no `@' at all, there
  9875. # is no need to browse any of the substitutions).
  9876. # These are the two extra sed commands mentioned above.
  9877. (echo ':t
  9878. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  9879. if test -z "$ac_sed_cmds"; then
  9880. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  9881. else
  9882. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  9883. fi
  9884. ac_sed_frag=`expr $ac_sed_frag + 1`
  9885. ac_beg=$ac_end
  9886. ac_end=`expr $ac_end + $ac_max_sed_lines`
  9887. fi
  9888. done
  9889. if test -z "$ac_sed_cmds"; then
  9890. ac_sed_cmds=cat
  9891. fi
  9892. fi # test -n "$CONFIG_FILES"
  9893. _ACEOF
  9894. cat >>$CONFIG_STATUS <<\_ACEOF
  9895. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  9896. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9897. case $ac_file in
  9898. - | *:- | *:-:* ) # input from stdin
  9899. cat >$tmp/stdin
  9900. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9901. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9902. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9903. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9904. * ) ac_file_in=$ac_file.in ;;
  9905. esac
  9906. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  9907. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9908. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9909. X"$ac_file" : 'X\(//\)[^/]' \| \
  9910. X"$ac_file" : 'X\(//\)$' \| \
  9911. X"$ac_file" : 'X\(/\)' \| \
  9912. . : '\(.\)' 2>/dev/null ||
  9913. echo X"$ac_file" |
  9914. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9915. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9916. /^X\(\/\/\)$/{ s//\1/; q; }
  9917. /^X\(\/\).*/{ s//\1/; q; }
  9918. s/.*/./; q'`
  9919. { if $as_mkdir_p; then
  9920. mkdir -p "$ac_dir"
  9921. else
  9922. as_dir="$ac_dir"
  9923. as_dirs=
  9924. while test ! -d "$as_dir"; do
  9925. as_dirs="$as_dir $as_dirs"
  9926. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9927. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9928. X"$as_dir" : 'X\(//\)[^/]' \| \
  9929. X"$as_dir" : 'X\(//\)$' \| \
  9930. X"$as_dir" : 'X\(/\)' \| \
  9931. . : '\(.\)' 2>/dev/null ||
  9932. echo X"$as_dir" |
  9933. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9934. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9935. /^X\(\/\/\)$/{ s//\1/; q; }
  9936. /^X\(\/\).*/{ s//\1/; q; }
  9937. s/.*/./; q'`
  9938. done
  9939. test ! -n "$as_dirs" || mkdir $as_dirs
  9940. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9941. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9942. { (exit 1); exit 1; }; }; }
  9943. ac_builddir=.
  9944. if test "$ac_dir" != .; then
  9945. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9946. # A "../" for each directory in $ac_dir_suffix.
  9947. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9948. else
  9949. ac_dir_suffix= ac_top_builddir=
  9950. fi
  9951. case $srcdir in
  9952. .) # No --srcdir option. We are building in place.
  9953. ac_srcdir=.
  9954. if test -z "$ac_top_builddir"; then
  9955. ac_top_srcdir=.
  9956. else
  9957. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9958. fi ;;
  9959. [\\/]* | ?:[\\/]* ) # Absolute path.
  9960. ac_srcdir=$srcdir$ac_dir_suffix;
  9961. ac_top_srcdir=$srcdir ;;
  9962. *) # Relative path.
  9963. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9964. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9965. esac
  9966. # Do not use `cd foo && pwd` to compute absolute paths, because
  9967. # the directories may not exist.
  9968. case `pwd` in
  9969. .) ac_abs_builddir="$ac_dir";;
  9970. *)
  9971. case "$ac_dir" in
  9972. .) ac_abs_builddir=`pwd`;;
  9973. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  9974. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  9975. esac;;
  9976. esac
  9977. case $ac_abs_builddir in
  9978. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  9979. *)
  9980. case ${ac_top_builddir}. in
  9981. .) ac_abs_top_builddir=$ac_abs_builddir;;
  9982. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  9983. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  9984. esac;;
  9985. esac
  9986. case $ac_abs_builddir in
  9987. .) ac_abs_srcdir=$ac_srcdir;;
  9988. *)
  9989. case $ac_srcdir in
  9990. .) ac_abs_srcdir=$ac_abs_builddir;;
  9991. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  9992. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  9993. esac;;
  9994. esac
  9995. case $ac_abs_builddir in
  9996. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  9997. *)
  9998. case $ac_top_srcdir in
  9999. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  10000. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  10001. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  10002. esac;;
  10003. esac
  10004. case $INSTALL in
  10005. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10006. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  10007. esac
  10008. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10009. # use $as_me), people would be surprised to read:
  10010. # /* config.h. Generated by config.status. */
  10011. if test x"$ac_file" = x-; then
  10012. configure_input=
  10013. else
  10014. configure_input="$ac_file. "
  10015. fi
  10016. configure_input=$configure_input"Generated from `echo $ac_file_in |
  10017. sed 's,.*/,,'` by configure."
  10018. # First look for the input files in the build tree, otherwise in the
  10019. # src tree.
  10020. ac_file_inputs=`IFS=:
  10021. for f in $ac_file_in; do
  10022. case $f in
  10023. -) echo $tmp/stdin ;;
  10024. [\\/$]*)
  10025. # Absolute (can't be DOS-style, as IFS=:)
  10026. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10027. echo "$as_me: error: cannot find input file: $f" >&2;}
  10028. { (exit 1); exit 1; }; }
  10029. echo "$f";;
  10030. *) # Relative
  10031. if test -f "$f"; then
  10032. # Build tree
  10033. echo "$f"
  10034. elif test -f "$srcdir/$f"; then
  10035. # Source tree
  10036. echo "$srcdir/$f"
  10037. else
  10038. # /dev/null tree
  10039. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10040. echo "$as_me: error: cannot find input file: $f" >&2;}
  10041. { (exit 1); exit 1; }; }
  10042. fi;;
  10043. esac
  10044. done` || { (exit 1); exit 1; }
  10045. if test x"$ac_file" != x-; then
  10046. { echo "$as_me:$LINENO: creating $ac_file" >&5
  10047. echo "$as_me: creating $ac_file" >&6;}
  10048. rm -f "$ac_file"
  10049. fi
  10050. _ACEOF
  10051. cat >>$CONFIG_STATUS <<_ACEOF
  10052. sed "$ac_vpsub
  10053. $extrasub
  10054. _ACEOF
  10055. cat >>$CONFIG_STATUS <<\_ACEOF
  10056. :t
  10057. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10058. s,@configure_input@,$configure_input,;t t
  10059. s,@srcdir@,$ac_srcdir,;t t
  10060. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  10061. s,@top_srcdir@,$ac_top_srcdir,;t t
  10062. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  10063. s,@builddir@,$ac_builddir,;t t
  10064. s,@abs_builddir@,$ac_abs_builddir,;t t
  10065. s,@top_builddir@,$ac_top_builddir,;t t
  10066. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  10067. s,@INSTALL@,$ac_INSTALL,;t t
  10068. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  10069. rm -f $tmp/stdin
  10070. if test x"$ac_file" != x-; then
  10071. mv $tmp/out $ac_file
  10072. else
  10073. cat $tmp/out
  10074. rm -f $tmp/out
  10075. fi
  10076. done
  10077. _ACEOF
  10078. cat >>$CONFIG_STATUS <<\_ACEOF
  10079. #
  10080. # CONFIG_HEADER section.
  10081. #
  10082. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  10083. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  10084. #
  10085. # ac_d sets the value in "#define NAME VALUE" lines.
  10086. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  10087. ac_dB='[ ].*$,\1#\2'
  10088. ac_dC=' '
  10089. ac_dD=',;t'
  10090. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  10091. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  10092. ac_uB='$,\1#\2define\3'
  10093. ac_uC=' '
  10094. ac_uD=',;t'
  10095. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  10096. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10097. case $ac_file in
  10098. - | *:- | *:-:* ) # input from stdin
  10099. cat >$tmp/stdin
  10100. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10101. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10102. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10103. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10104. * ) ac_file_in=$ac_file.in ;;
  10105. esac
  10106. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  10107. echo "$as_me: creating $ac_file" >&6;}
  10108. # First look for the input files in the build tree, otherwise in the
  10109. # src tree.
  10110. ac_file_inputs=`IFS=:
  10111. for f in $ac_file_in; do
  10112. case $f in
  10113. -) echo $tmp/stdin ;;
  10114. [\\/$]*)
  10115. # Absolute (can't be DOS-style, as IFS=:)
  10116. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10117. echo "$as_me: error: cannot find input file: $f" >&2;}
  10118. { (exit 1); exit 1; }; }
  10119. # Do quote $f, to prevent DOS paths from being IFS'd.
  10120. echo "$f";;
  10121. *) # Relative
  10122. if test -f "$f"; then
  10123. # Build tree
  10124. echo "$f"
  10125. elif test -f "$srcdir/$f"; then
  10126. # Source tree
  10127. echo "$srcdir/$f"
  10128. else
  10129. # /dev/null tree
  10130. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10131. echo "$as_me: error: cannot find input file: $f" >&2;}
  10132. { (exit 1); exit 1; }; }
  10133. fi;;
  10134. esac
  10135. done` || { (exit 1); exit 1; }
  10136. # Remove the trailing spaces.
  10137. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  10138. _ACEOF
  10139. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  10140. # `conftest.undefs', that substitutes the proper values into
  10141. # config.h.in to produce config.h. The first handles `#define'
  10142. # templates, and the second `#undef' templates.
  10143. # And first: Protect against being on the right side of a sed subst in
  10144. # config.status. Protect against being in an unquoted here document
  10145. # in config.status.
  10146. rm -f conftest.defines conftest.undefs
  10147. # Using a here document instead of a string reduces the quoting nightmare.
  10148. # Putting comments in sed scripts is not portable.
  10149. #
  10150. # `end' is used to avoid that the second main sed command (meant for
  10151. # 0-ary CPP macros) applies to n-ary macro definitions.
  10152. # See the Autoconf documentation for `clear'.
  10153. cat >confdef2sed.sed <<\_ACEOF
  10154. s/[\\&,]/\\&/g
  10155. s,[\\$`],\\&,g
  10156. t clear
  10157. : clear
  10158. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  10159. t end
  10160. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  10161. : end
  10162. _ACEOF
  10163. # If some macros were called several times there might be several times
  10164. # the same #defines, which is useless. Nevertheless, we may not want to
  10165. # sort them, since we want the *last* AC-DEFINE to be honored.
  10166. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  10167. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  10168. rm -f confdef2sed.sed
  10169. # This sed command replaces #undef with comments. This is necessary, for
  10170. # example, in the case of _POSIX_SOURCE, which is predefined and required
  10171. # on some systems where configure will not decide to define it.
  10172. cat >>conftest.undefs <<\_ACEOF
  10173. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  10174. _ACEOF
  10175. # Break up conftest.defines because some shells have a limit on the size
  10176. # of here documents, and old seds have small limits too (100 cmds).
  10177. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  10178. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  10179. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  10180. echo ' :' >>$CONFIG_STATUS
  10181. rm -f conftest.tail
  10182. while grep . conftest.defines >/dev/null
  10183. do
  10184. # Write a limited-size here document to $tmp/defines.sed.
  10185. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  10186. # Speed up: don't consider the non `#define' lines.
  10187. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  10188. # Work around the forget-to-reset-the-flag bug.
  10189. echo 't clr' >>$CONFIG_STATUS
  10190. echo ': clr' >>$CONFIG_STATUS
  10191. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  10192. echo 'CEOF
  10193. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  10194. rm -f $tmp/in
  10195. mv $tmp/out $tmp/in
  10196. ' >>$CONFIG_STATUS
  10197. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  10198. rm -f conftest.defines
  10199. mv conftest.tail conftest.defines
  10200. done
  10201. rm -f conftest.defines
  10202. echo ' fi # grep' >>$CONFIG_STATUS
  10203. echo >>$CONFIG_STATUS
  10204. # Break up conftest.undefs because some shells have a limit on the size
  10205. # of here documents, and old seds have small limits too (100 cmds).
  10206. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  10207. rm -f conftest.tail
  10208. while grep . conftest.undefs >/dev/null
  10209. do
  10210. # Write a limited-size here document to $tmp/undefs.sed.
  10211. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  10212. # Speed up: don't consider the non `#undef'
  10213. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  10214. # Work around the forget-to-reset-the-flag bug.
  10215. echo 't clr' >>$CONFIG_STATUS
  10216. echo ': clr' >>$CONFIG_STATUS
  10217. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  10218. echo 'CEOF
  10219. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  10220. rm -f $tmp/in
  10221. mv $tmp/out $tmp/in
  10222. ' >>$CONFIG_STATUS
  10223. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  10224. rm -f conftest.undefs
  10225. mv conftest.tail conftest.undefs
  10226. done
  10227. rm -f conftest.undefs
  10228. cat >>$CONFIG_STATUS <<\_ACEOF
  10229. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10230. # use $as_me), people would be surprised to read:
  10231. # /* config.h. Generated by config.status. */
  10232. if test x"$ac_file" = x-; then
  10233. echo "/* Generated by configure. */" >$tmp/config.h
  10234. else
  10235. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  10236. fi
  10237. cat $tmp/in >>$tmp/config.h
  10238. rm -f $tmp/in
  10239. if test x"$ac_file" != x-; then
  10240. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  10241. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  10242. echo "$as_me: $ac_file is unchanged" >&6;}
  10243. else
  10244. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10245. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10246. X"$ac_file" : 'X\(//\)[^/]' \| \
  10247. X"$ac_file" : 'X\(//\)$' \| \
  10248. X"$ac_file" : 'X\(/\)' \| \
  10249. . : '\(.\)' 2>/dev/null ||
  10250. echo X"$ac_file" |
  10251. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10252. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10253. /^X\(\/\/\)$/{ s//\1/; q; }
  10254. /^X\(\/\).*/{ s//\1/; q; }
  10255. s/.*/./; q'`
  10256. { if $as_mkdir_p; then
  10257. mkdir -p "$ac_dir"
  10258. else
  10259. as_dir="$ac_dir"
  10260. as_dirs=
  10261. while test ! -d "$as_dir"; do
  10262. as_dirs="$as_dir $as_dirs"
  10263. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10264. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10265. X"$as_dir" : 'X\(//\)[^/]' \| \
  10266. X"$as_dir" : 'X\(//\)$' \| \
  10267. X"$as_dir" : 'X\(/\)' \| \
  10268. . : '\(.\)' 2>/dev/null ||
  10269. echo X"$as_dir" |
  10270. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10271. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10272. /^X\(\/\/\)$/{ s//\1/; q; }
  10273. /^X\(\/\).*/{ s//\1/; q; }
  10274. s/.*/./; q'`
  10275. done
  10276. test ! -n "$as_dirs" || mkdir $as_dirs
  10277. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  10278. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  10279. { (exit 1); exit 1; }; }; }
  10280. rm -f $ac_file
  10281. mv $tmp/config.h $ac_file
  10282. fi
  10283. else
  10284. cat $tmp/config.h
  10285. rm -f $tmp/config.h
  10286. fi
  10287. done
  10288. _ACEOF
  10289. cat >>$CONFIG_STATUS <<\_ACEOF
  10290. #
  10291. # CONFIG_COMMANDS section.
  10292. #
  10293. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  10294. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  10295. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10296. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  10297. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10298. X"$ac_dest" : 'X\(//\)[^/]' \| \
  10299. X"$ac_dest" : 'X\(//\)$' \| \
  10300. X"$ac_dest" : 'X\(/\)' \| \
  10301. . : '\(.\)' 2>/dev/null ||
  10302. echo X"$ac_dest" |
  10303. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10304. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10305. /^X\(\/\/\)$/{ s//\1/; q; }
  10306. /^X\(\/\).*/{ s//\1/; q; }
  10307. s/.*/./; q'`
  10308. { if $as_mkdir_p; then
  10309. mkdir -p "$ac_dir"
  10310. else
  10311. as_dir="$ac_dir"
  10312. as_dirs=
  10313. while test ! -d "$as_dir"; do
  10314. as_dirs="$as_dir $as_dirs"
  10315. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10316. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10317. X"$as_dir" : 'X\(//\)[^/]' \| \
  10318. X"$as_dir" : 'X\(//\)$' \| \
  10319. X"$as_dir" : 'X\(/\)' \| \
  10320. . : '\(.\)' 2>/dev/null ||
  10321. echo X"$as_dir" |
  10322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10323. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10324. /^X\(\/\/\)$/{ s//\1/; q; }
  10325. /^X\(\/\).*/{ s//\1/; q; }
  10326. s/.*/./; q'`
  10327. done
  10328. test ! -n "$as_dirs" || mkdir $as_dirs
  10329. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  10330. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  10331. { (exit 1); exit 1; }; }; }
  10332. ac_builddir=.
  10333. if test "$ac_dir" != .; then
  10334. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  10335. # A "../" for each directory in $ac_dir_suffix.
  10336. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  10337. else
  10338. ac_dir_suffix= ac_top_builddir=
  10339. fi
  10340. case $srcdir in
  10341. .) # No --srcdir option. We are building in place.
  10342. ac_srcdir=.
  10343. if test -z "$ac_top_builddir"; then
  10344. ac_top_srcdir=.
  10345. else
  10346. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  10347. fi ;;
  10348. [\\/]* | ?:[\\/]* ) # Absolute path.
  10349. ac_srcdir=$srcdir$ac_dir_suffix;
  10350. ac_top_srcdir=$srcdir ;;
  10351. *) # Relative path.
  10352. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  10353. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  10354. esac
  10355. # Do not use `cd foo && pwd` to compute absolute paths, because
  10356. # the directories may not exist.
  10357. case `pwd` in
  10358. .) ac_abs_builddir="$ac_dir";;
  10359. *)
  10360. case "$ac_dir" in
  10361. .) ac_abs_builddir=`pwd`;;
  10362. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  10363. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  10364. esac;;
  10365. esac
  10366. case $ac_abs_builddir in
  10367. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  10368. *)
  10369. case ${ac_top_builddir}. in
  10370. .) ac_abs_top_builddir=$ac_abs_builddir;;
  10371. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  10372. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  10373. esac;;
  10374. esac
  10375. case $ac_abs_builddir in
  10376. .) ac_abs_srcdir=$ac_srcdir;;
  10377. *)
  10378. case $ac_srcdir in
  10379. .) ac_abs_srcdir=$ac_abs_builddir;;
  10380. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  10381. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  10382. esac;;
  10383. esac
  10384. case $ac_abs_builddir in
  10385. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  10386. *)
  10387. case $ac_top_srcdir in
  10388. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  10389. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  10390. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  10391. esac;;
  10392. esac
  10393. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  10394. echo "$as_me: executing $ac_dest commands" >&6;}
  10395. case $ac_dest in
  10396. default-1 )
  10397. for ac_file in $CONFIG_FILES; do
  10398. # Support "outfile[:infile[:infile...]]"
  10399. case "$ac_file" in
  10400. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  10401. esac
  10402. # PO directories have a Makefile.in generated from Makefile.in.in.
  10403. case "$ac_file" in */Makefile.in)
  10404. # Adjust a relative srcdir.
  10405. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  10406. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  10407. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  10408. # In autoconf-2.13 it is called $ac_given_srcdir.
  10409. # In autoconf-2.50 it is called $srcdir.
  10410. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  10411. case "$ac_given_srcdir" in
  10412. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  10413. /*) top_srcdir="$ac_given_srcdir" ;;
  10414. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  10415. esac
  10416. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  10417. rm -f "$ac_dir/POTFILES"
  10418. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  10419. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  10420. POMAKEFILEDEPS="POTFILES.in"
  10421. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  10422. # on $ac_dir but don't depend on user-specified configuration
  10423. # parameters.
  10424. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  10425. # The LINGUAS file contains the set of available languages.
  10426. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  10427. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  10428. fi
  10429. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  10430. # Hide the ALL_LINGUAS assigment from automake.
  10431. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  10432. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  10433. else
  10434. # The set of available languages was given in configure.in.
  10435. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  10436. fi
  10437. # Compute POFILES
  10438. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  10439. # Compute UPDATEPOFILES
  10440. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  10441. # Compute DUMMYPOFILES
  10442. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  10443. # Compute GMOFILES
  10444. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  10445. case "$ac_given_srcdir" in
  10446. .) srcdirpre= ;;
  10447. *) srcdirpre='$(srcdir)/' ;;
  10448. esac
  10449. POFILES=
  10450. UPDATEPOFILES=
  10451. DUMMYPOFILES=
  10452. GMOFILES=
  10453. for lang in $ALL_LINGUAS; do
  10454. POFILES="$POFILES $srcdirpre$lang.po"
  10455. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  10456. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  10457. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  10458. done
  10459. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  10460. # environment variable.
  10461. INST_LINGUAS=
  10462. if test -n "$ALL_LINGUAS"; then
  10463. for presentlang in $ALL_LINGUAS; do
  10464. useit=no
  10465. if test "%UNSET%" != "$LINGUAS"; then
  10466. desiredlanguages="$LINGUAS"
  10467. else
  10468. desiredlanguages="$ALL_LINGUAS"
  10469. fi
  10470. for desiredlang in $desiredlanguages; do
  10471. # Use the presentlang catalog if desiredlang is
  10472. # a. equal to presentlang, or
  10473. # b. a variant of presentlang (because in this case,
  10474. # presentlang can be used as a fallback for messages
  10475. # which are not translated in the desiredlang catalog).
  10476. case "$desiredlang" in
  10477. "$presentlang"*) useit=yes;;
  10478. esac
  10479. done
  10480. if test $useit = yes; then
  10481. INST_LINGUAS="$INST_LINGUAS $presentlang"
  10482. fi
  10483. done
  10484. fi
  10485. CATALOGS=
  10486. if test -n "$INST_LINGUAS"; then
  10487. for lang in $INST_LINGUAS; do
  10488. CATALOGS="$CATALOGS $lang.gmo"
  10489. done
  10490. fi
  10491. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  10492. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  10493. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  10494. if test -f "$f"; then
  10495. case "$f" in
  10496. *.orig | *.bak | *~) ;;
  10497. *) cat "$f" >> "$ac_dir/Makefile" ;;
  10498. esac
  10499. fi
  10500. done
  10501. fi
  10502. ;;
  10503. esac
  10504. done ;;
  10505. default-2 )
  10506. for ac_file in $CONFIG_FILES; do
  10507. # Support "outfile[:infile[:infile...]]"
  10508. case "$ac_file" in
  10509. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  10510. esac
  10511. # PO directories have a Makefile.in generated from Makefile.in.in.
  10512. case "$ac_file" in */Makefile.in)
  10513. # Adjust a relative srcdir.
  10514. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  10515. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  10516. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  10517. # In autoconf-2.13 it is called $ac_given_srcdir.
  10518. # In autoconf-2.50 it is called $srcdir.
  10519. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  10520. case "$ac_given_srcdir" in
  10521. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  10522. /*) top_srcdir="$ac_given_srcdir" ;;
  10523. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  10524. esac
  10525. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  10526. rm -f "$ac_dir/POTFILES"
  10527. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  10528. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  10529. POMAKEFILEDEPS="POTFILES.in"
  10530. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  10531. # on $ac_dir but don't depend on user-specified configuration
  10532. # parameters.
  10533. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  10534. # The LINGUAS file contains the set of available languages.
  10535. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  10536. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  10537. fi
  10538. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  10539. # Hide the ALL_LINGUAS assigment from automake.
  10540. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  10541. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  10542. else
  10543. # The set of available languages was given in configure.in.
  10544. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  10545. fi
  10546. # Compute POFILES
  10547. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  10548. # Compute UPDATEPOFILES
  10549. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  10550. # Compute DUMMYPOFILES
  10551. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  10552. # Compute GMOFILES
  10553. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  10554. case "$ac_given_srcdir" in
  10555. .) srcdirpre= ;;
  10556. *) srcdirpre='$(srcdir)/' ;;
  10557. esac
  10558. POFILES=
  10559. UPDATEPOFILES=
  10560. DUMMYPOFILES=
  10561. GMOFILES=
  10562. for lang in $ALL_LINGUAS; do
  10563. POFILES="$POFILES $srcdirpre$lang.po"
  10564. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  10565. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  10566. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  10567. done
  10568. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  10569. # environment variable.
  10570. INST_LINGUAS=
  10571. if test -n "$ALL_LINGUAS"; then
  10572. for presentlang in $ALL_LINGUAS; do
  10573. useit=no
  10574. if test "%UNSET%" != "$LINGUAS"; then
  10575. desiredlanguages="$LINGUAS"
  10576. else
  10577. desiredlanguages="$ALL_LINGUAS"
  10578. fi
  10579. for desiredlang in $desiredlanguages; do
  10580. # Use the presentlang catalog if desiredlang is
  10581. # a. equal to presentlang, or
  10582. # b. a variant of presentlang (because in this case,
  10583. # presentlang can be used as a fallback for messages
  10584. # which are not translated in the desiredlang catalog).
  10585. case "$desiredlang" in
  10586. "$presentlang"*) useit=yes;;
  10587. esac
  10588. done
  10589. if test $useit = yes; then
  10590. INST_LINGUAS="$INST_LINGUAS $presentlang"
  10591. fi
  10592. done
  10593. fi
  10594. CATALOGS=
  10595. if test -n "$INST_LINGUAS"; then
  10596. for lang in $INST_LINGUAS; do
  10597. CATALOGS="$CATALOGS $lang.gmo"
  10598. done
  10599. fi
  10600. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  10601. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  10602. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  10603. if test -f "$f"; then
  10604. case "$f" in
  10605. *.orig | *.bak | *~) ;;
  10606. *) cat "$f" >> "$ac_dir/Makefile" ;;
  10607. esac
  10608. fi
  10609. done
  10610. fi
  10611. ;;
  10612. esac
  10613. done ;;
  10614. esac
  10615. done
  10616. _ACEOF
  10617. cat >>$CONFIG_STATUS <<\_ACEOF
  10618. { (exit 0); exit 0; }
  10619. _ACEOF
  10620. chmod +x $CONFIG_STATUS
  10621. ac_clean_files=$ac_clean_files_save
  10622. # configure is writing to config.log, and then calls config.status.
  10623. # config.status does its own redirection, appending to config.log.
  10624. # Unfortunately, on DOS this fails, as config.log is still kept open
  10625. # by configure, so config.status won't be able to write to it; its
  10626. # output is simply discarded. So we exec the FD to /dev/null,
  10627. # effectively closing config.log, so it can be properly (re)opened and
  10628. # appended to by config.status. When coming back to configure, we
  10629. # need to make the FD available again.
  10630. if test "$no_create" != yes; then
  10631. ac_cs_success=:
  10632. ac_config_status_args=
  10633. test "$silent" = yes &&
  10634. ac_config_status_args="$ac_config_status_args --quiet"
  10635. exec 5>/dev/null
  10636. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10637. exec 5>>config.log
  10638. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10639. # would make configure fail if this is the last instruction.
  10640. $ac_cs_success || { (exit 1); exit 1; }
  10641. fi