You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure 355KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549
  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="rdr/InStream.h"
  240. # Factoring default headers for most tests.
  241. ac_includes_default="\
  242. #include <stdio.h>
  243. #if HAVE_SYS_TYPES_H
  244. # include <sys/types.h>
  245. #endif
  246. #if HAVE_SYS_STAT_H
  247. # include <sys/stat.h>
  248. #endif
  249. #if STDC_HEADERS
  250. # include <stdlib.h>
  251. # include <stddef.h>
  252. #else
  253. # if HAVE_STDLIB_H
  254. # include <stdlib.h>
  255. # endif
  256. #endif
  257. #if HAVE_STRING_H
  258. # if !STDC_HEADERS && HAVE_MEMORY_H
  259. # include <memory.h>
  260. # endif
  261. # include <string.h>
  262. #endif
  263. #if HAVE_STRINGS_H
  264. # include <strings.h>
  265. #endif
  266. #if HAVE_INTTYPES_H
  267. # include <inttypes.h>
  268. #else
  269. # if HAVE_STDINT_H
  270. # include <stdint.h>
  271. # endif
  272. #endif
  273. #if HAVE_UNISTD_H
  274. # include <unistd.h>
  275. #endif"
  276. 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 PACKAGE VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB SET_MAKE MITSHM_CPPFLAGS CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS ZLIB_DIR ZLIB_INCLUDE ZLIB_LIB JPEG_DIR JPEG_INCLUDE JPEG_LIB VSNPRINTF_DEFINE SOCKLEN_T_DEFINE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS LTLIBOBJS'
  277. ac_subst_files=''
  278. # Initialize some variables set by options.
  279. ac_init_help=
  280. ac_init_version=false
  281. # The variables have the same names as the options, with
  282. # dashes changed to underlines.
  283. cache_file=/dev/null
  284. exec_prefix=NONE
  285. no_create=
  286. no_recursion=
  287. prefix=NONE
  288. program_prefix=NONE
  289. program_suffix=NONE
  290. program_transform_name=s,x,x,
  291. silent=
  292. site=
  293. srcdir=
  294. verbose=
  295. x_includes=NONE
  296. x_libraries=NONE
  297. # Installation directory options.
  298. # These are left unexpanded so users can "make install exec_prefix=/foo"
  299. # and all the variables that are supposed to be based on exec_prefix
  300. # by default will actually change.
  301. # Use braces instead of parens because sh, perl, etc. also accept them.
  302. bindir='${exec_prefix}/bin'
  303. sbindir='${exec_prefix}/sbin'
  304. libexecdir='${exec_prefix}/libexec'
  305. datadir='${prefix}/share'
  306. sysconfdir='${prefix}/etc'
  307. sharedstatedir='${prefix}/com'
  308. localstatedir='${prefix}/var'
  309. libdir='${exec_prefix}/lib'
  310. includedir='${prefix}/include'
  311. oldincludedir='/usr/include'
  312. infodir='${prefix}/info'
  313. mandir='${prefix}/man'
  314. ac_prev=
  315. for ac_option
  316. do
  317. # If the previous option needs an argument, assign it.
  318. if test -n "$ac_prev"; then
  319. eval "$ac_prev=\$ac_option"
  320. ac_prev=
  321. continue
  322. fi
  323. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  324. # Accept the important Cygnus configure options, so we can diagnose typos.
  325. case $ac_option in
  326. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  327. ac_prev=bindir ;;
  328. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  329. bindir=$ac_optarg ;;
  330. -build | --build | --buil | --bui | --bu)
  331. ac_prev=build_alias ;;
  332. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  333. build_alias=$ac_optarg ;;
  334. -cache-file | --cache-file | --cache-fil | --cache-fi \
  335. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  336. ac_prev=cache_file ;;
  337. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  338. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  339. cache_file=$ac_optarg ;;
  340. --config-cache | -C)
  341. cache_file=config.cache ;;
  342. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  343. ac_prev=datadir ;;
  344. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  345. | --da=*)
  346. datadir=$ac_optarg ;;
  347. -disable-* | --disable-*)
  348. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  349. # Reject names that are not valid shell variable names.
  350. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  351. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  352. { (exit 1); exit 1; }; }
  353. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  354. eval "enable_$ac_feature=no" ;;
  355. -enable-* | --enable-*)
  356. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  357. # Reject names that are not valid shell variable names.
  358. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  359. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  360. { (exit 1); exit 1; }; }
  361. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  362. case $ac_option in
  363. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  364. *) ac_optarg=yes ;;
  365. esac
  366. eval "enable_$ac_feature='$ac_optarg'" ;;
  367. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  368. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  369. | --exec | --exe | --ex)
  370. ac_prev=exec_prefix ;;
  371. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  372. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  373. | --exec=* | --exe=* | --ex=*)
  374. exec_prefix=$ac_optarg ;;
  375. -gas | --gas | --ga | --g)
  376. # Obsolete; use --with-gas.
  377. with_gas=yes ;;
  378. -help | --help | --hel | --he | -h)
  379. ac_init_help=long ;;
  380. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  381. ac_init_help=recursive ;;
  382. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  383. ac_init_help=short ;;
  384. -host | --host | --hos | --ho)
  385. ac_prev=host_alias ;;
  386. -host=* | --host=* | --hos=* | --ho=*)
  387. host_alias=$ac_optarg ;;
  388. -includedir | --includedir | --includedi | --included | --include \
  389. | --includ | --inclu | --incl | --inc)
  390. ac_prev=includedir ;;
  391. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  392. | --includ=* | --inclu=* | --incl=* | --inc=*)
  393. includedir=$ac_optarg ;;
  394. -infodir | --infodir | --infodi | --infod | --info | --inf)
  395. ac_prev=infodir ;;
  396. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  397. infodir=$ac_optarg ;;
  398. -libdir | --libdir | --libdi | --libd)
  399. ac_prev=libdir ;;
  400. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  401. libdir=$ac_optarg ;;
  402. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  403. | --libexe | --libex | --libe)
  404. ac_prev=libexecdir ;;
  405. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  406. | --libexe=* | --libex=* | --libe=*)
  407. libexecdir=$ac_optarg ;;
  408. -localstatedir | --localstatedir | --localstatedi | --localstated \
  409. | --localstate | --localstat | --localsta | --localst \
  410. | --locals | --local | --loca | --loc | --lo)
  411. ac_prev=localstatedir ;;
  412. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  413. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  414. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  415. localstatedir=$ac_optarg ;;
  416. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  417. ac_prev=mandir ;;
  418. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  419. mandir=$ac_optarg ;;
  420. -nfp | --nfp | --nf)
  421. # Obsolete; use --without-fp.
  422. with_fp=no ;;
  423. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  424. | --no-cr | --no-c | -n)
  425. no_create=yes ;;
  426. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  427. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  428. no_recursion=yes ;;
  429. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  430. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  431. | --oldin | --oldi | --old | --ol | --o)
  432. ac_prev=oldincludedir ;;
  433. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  434. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  435. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  436. oldincludedir=$ac_optarg ;;
  437. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  438. ac_prev=prefix ;;
  439. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  440. prefix=$ac_optarg ;;
  441. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  442. | --program-pre | --program-pr | --program-p)
  443. ac_prev=program_prefix ;;
  444. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  445. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  446. program_prefix=$ac_optarg ;;
  447. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  448. | --program-suf | --program-su | --program-s)
  449. ac_prev=program_suffix ;;
  450. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  451. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  452. program_suffix=$ac_optarg ;;
  453. -program-transform-name | --program-transform-name \
  454. | --program-transform-nam | --program-transform-na \
  455. | --program-transform-n | --program-transform- \
  456. | --program-transform | --program-transfor \
  457. | --program-transfo | --program-transf \
  458. | --program-trans | --program-tran \
  459. | --progr-tra | --program-tr | --program-t)
  460. ac_prev=program_transform_name ;;
  461. -program-transform-name=* | --program-transform-name=* \
  462. | --program-transform-nam=* | --program-transform-na=* \
  463. | --program-transform-n=* | --program-transform-=* \
  464. | --program-transform=* | --program-transfor=* \
  465. | --program-transfo=* | --program-transf=* \
  466. | --program-trans=* | --program-tran=* \
  467. | --progr-tra=* | --program-tr=* | --program-t=*)
  468. program_transform_name=$ac_optarg ;;
  469. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  470. | -silent | --silent | --silen | --sile | --sil)
  471. silent=yes ;;
  472. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  473. ac_prev=sbindir ;;
  474. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  475. | --sbi=* | --sb=*)
  476. sbindir=$ac_optarg ;;
  477. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  478. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  479. | --sharedst | --shareds | --shared | --share | --shar \
  480. | --sha | --sh)
  481. ac_prev=sharedstatedir ;;
  482. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  483. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  484. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  485. | --sha=* | --sh=*)
  486. sharedstatedir=$ac_optarg ;;
  487. -site | --site | --sit)
  488. ac_prev=site ;;
  489. -site=* | --site=* | --sit=*)
  490. site=$ac_optarg ;;
  491. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  492. ac_prev=srcdir ;;
  493. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  494. srcdir=$ac_optarg ;;
  495. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  496. | --syscon | --sysco | --sysc | --sys | --sy)
  497. ac_prev=sysconfdir ;;
  498. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  499. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  500. sysconfdir=$ac_optarg ;;
  501. -target | --target | --targe | --targ | --tar | --ta | --t)
  502. ac_prev=target_alias ;;
  503. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  504. target_alias=$ac_optarg ;;
  505. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  506. verbose=yes ;;
  507. -version | --version | --versio | --versi | --vers | -V)
  508. ac_init_version=: ;;
  509. -with-* | --with-*)
  510. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  511. # Reject names that are not valid shell variable names.
  512. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  513. { echo "$as_me: error: invalid package name: $ac_package" >&2
  514. { (exit 1); exit 1; }; }
  515. ac_package=`echo $ac_package| sed 's/-/_/g'`
  516. case $ac_option in
  517. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  518. *) ac_optarg=yes ;;
  519. esac
  520. eval "with_$ac_package='$ac_optarg'" ;;
  521. -without-* | --without-*)
  522. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  523. # Reject names that are not valid shell variable names.
  524. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  525. { echo "$as_me: error: invalid package name: $ac_package" >&2
  526. { (exit 1); exit 1; }; }
  527. ac_package=`echo $ac_package | sed 's/-/_/g'`
  528. eval "with_$ac_package=no" ;;
  529. --x)
  530. # Obsolete; use --with-x.
  531. with_x=yes ;;
  532. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  533. | --x-incl | --x-inc | --x-in | --x-i)
  534. ac_prev=x_includes ;;
  535. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  536. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  537. x_includes=$ac_optarg ;;
  538. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  539. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  540. ac_prev=x_libraries ;;
  541. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  542. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  543. x_libraries=$ac_optarg ;;
  544. -*) { echo "$as_me: error: unrecognized option: $ac_option
  545. Try \`$0 --help' for more information." >&2
  546. { (exit 1); exit 1; }; }
  547. ;;
  548. *=*)
  549. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  550. # Reject names that are not valid shell variable names.
  551. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  552. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  553. { (exit 1); exit 1; }; }
  554. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  555. eval "$ac_envvar='$ac_optarg'"
  556. export $ac_envvar ;;
  557. *)
  558. # FIXME: should be removed in autoconf 3.0.
  559. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  560. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  561. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  562. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  563. ;;
  564. esac
  565. done
  566. if test -n "$ac_prev"; then
  567. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  568. { echo "$as_me: error: missing argument to $ac_option" >&2
  569. { (exit 1); exit 1; }; }
  570. fi
  571. # Be sure to have absolute paths.
  572. for ac_var in exec_prefix prefix
  573. do
  574. eval ac_val=$`echo $ac_var`
  575. case $ac_val in
  576. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  577. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  578. { (exit 1); exit 1; }; };;
  579. esac
  580. done
  581. # Be sure to have absolute paths.
  582. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  583. localstatedir libdir includedir oldincludedir infodir mandir
  584. do
  585. eval ac_val=$`echo $ac_var`
  586. case $ac_val in
  587. [\\/$]* | ?:[\\/]* ) ;;
  588. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  589. { (exit 1); exit 1; }; };;
  590. esac
  591. done
  592. # There might be people who depend on the old broken behavior: `$host'
  593. # used to hold the argument of --host etc.
  594. # FIXME: To remove some day.
  595. build=$build_alias
  596. host=$host_alias
  597. target=$target_alias
  598. # FIXME: To remove some day.
  599. if test "x$host_alias" != x; then
  600. if test "x$build_alias" = x; then
  601. cross_compiling=maybe
  602. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  603. If a cross compiler is detected then cross compile mode will be used." >&2
  604. elif test "x$build_alias" != "x$host_alias"; then
  605. cross_compiling=yes
  606. fi
  607. fi
  608. ac_tool_prefix=
  609. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  610. test "$silent" = yes && exec 6>/dev/null
  611. # Find the source files, if location was not specified.
  612. if test -z "$srcdir"; then
  613. ac_srcdir_defaulted=yes
  614. # Try the directory containing this script, then its parent.
  615. ac_confdir=`(dirname "$0") 2>/dev/null ||
  616. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  617. X"$0" : 'X\(//\)[^/]' \| \
  618. X"$0" : 'X\(//\)$' \| \
  619. X"$0" : 'X\(/\)' \| \
  620. . : '\(.\)' 2>/dev/null ||
  621. echo X"$0" |
  622. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  623. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  624. /^X\(\/\/\)$/{ s//\1/; q; }
  625. /^X\(\/\).*/{ s//\1/; q; }
  626. s/.*/./; q'`
  627. srcdir=$ac_confdir
  628. if test ! -r $srcdir/$ac_unique_file; then
  629. srcdir=..
  630. fi
  631. else
  632. ac_srcdir_defaulted=no
  633. fi
  634. if test ! -r $srcdir/$ac_unique_file; then
  635. if test "$ac_srcdir_defaulted" = yes; then
  636. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  637. { (exit 1); exit 1; }; }
  638. else
  639. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  640. { (exit 1); exit 1; }; }
  641. fi
  642. fi
  643. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  644. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  645. { (exit 1); exit 1; }; }
  646. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  647. ac_env_build_alias_set=${build_alias+set}
  648. ac_env_build_alias_value=$build_alias
  649. ac_cv_env_build_alias_set=${build_alias+set}
  650. ac_cv_env_build_alias_value=$build_alias
  651. ac_env_host_alias_set=${host_alias+set}
  652. ac_env_host_alias_value=$host_alias
  653. ac_cv_env_host_alias_set=${host_alias+set}
  654. ac_cv_env_host_alias_value=$host_alias
  655. ac_env_target_alias_set=${target_alias+set}
  656. ac_env_target_alias_value=$target_alias
  657. ac_cv_env_target_alias_set=${target_alias+set}
  658. ac_cv_env_target_alias_value=$target_alias
  659. ac_env_CC_set=${CC+set}
  660. ac_env_CC_value=$CC
  661. ac_cv_env_CC_set=${CC+set}
  662. ac_cv_env_CC_value=$CC
  663. ac_env_CFLAGS_set=${CFLAGS+set}
  664. ac_env_CFLAGS_value=$CFLAGS
  665. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  666. ac_cv_env_CFLAGS_value=$CFLAGS
  667. ac_env_LDFLAGS_set=${LDFLAGS+set}
  668. ac_env_LDFLAGS_value=$LDFLAGS
  669. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  670. ac_cv_env_LDFLAGS_value=$LDFLAGS
  671. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  672. ac_env_CPPFLAGS_value=$CPPFLAGS
  673. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  674. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  675. ac_env_CXX_set=${CXX+set}
  676. ac_env_CXX_value=$CXX
  677. ac_cv_env_CXX_set=${CXX+set}
  678. ac_cv_env_CXX_value=$CXX
  679. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  680. ac_env_CXXFLAGS_value=$CXXFLAGS
  681. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  682. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  683. ac_env_CXXCPP_set=${CXXCPP+set}
  684. ac_env_CXXCPP_value=$CXXCPP
  685. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  686. ac_cv_env_CXXCPP_value=$CXXCPP
  687. #
  688. # Report the --help message.
  689. #
  690. if test "$ac_init_help" = "long"; then
  691. # Omit some internal or obsolete options to make the list less imposing.
  692. # This message is too long to be a string in the A/UX 3.1 sh.
  693. cat <<_ACEOF
  694. \`configure' configures this package to adapt to many kinds of systems.
  695. Usage: $0 [OPTION]... [VAR=VALUE]...
  696. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  697. VAR=VALUE. See below for descriptions of some of the useful variables.
  698. Defaults for the options are specified in brackets.
  699. Configuration:
  700. -h, --help display this help and exit
  701. --help=short display options specific to this package
  702. --help=recursive display the short help of all the included packages
  703. -V, --version display version information and exit
  704. -q, --quiet, --silent do not print \`checking...' messages
  705. --cache-file=FILE cache test results in FILE [disabled]
  706. -C, --config-cache alias for \`--cache-file=config.cache'
  707. -n, --no-create do not create output files
  708. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  709. _ACEOF
  710. cat <<_ACEOF
  711. Installation directories:
  712. --prefix=PREFIX install architecture-independent files in PREFIX
  713. [$ac_default_prefix]
  714. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  715. [PREFIX]
  716. By default, \`make install' will install all the files in
  717. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  718. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  719. for instance \`--prefix=\$HOME'.
  720. For better control, use the options below.
  721. Fine tuning of the installation directories:
  722. --bindir=DIR user executables [EPREFIX/bin]
  723. --sbindir=DIR system admin executables [EPREFIX/sbin]
  724. --libexecdir=DIR program executables [EPREFIX/libexec]
  725. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  726. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  727. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  728. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  729. --libdir=DIR object code libraries [EPREFIX/lib]
  730. --includedir=DIR C header files [PREFIX/include]
  731. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  732. --infodir=DIR info documentation [PREFIX/info]
  733. --mandir=DIR man documentation [PREFIX/man]
  734. _ACEOF
  735. cat <<\_ACEOF
  736. X features:
  737. --x-includes=DIR X include files are in DIR
  738. --x-libraries=DIR X library files are in DIR
  739. System types:
  740. --build=BUILD configure for building on BUILD [guessed]
  741. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  742. _ACEOF
  743. fi
  744. if test -n "$ac_init_help"; then
  745. cat <<\_ACEOF
  746. Optional Features:
  747. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  748. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  749. --disable-nls do not use Native Language Support
  750. --disable-rpath do not hardcode runtime library paths
  751. Optional Packages:
  752. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  753. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  754. --with-x use the X Window System
  755. --with-installed-zlib use the version of zlib which is installed on the
  756. system instead of the one distributed with VNC
  757. --with-installed-jpeg use the version of jpeg which is installed on the
  758. system instead of the one distributed with VNC
  759. --with-gnu-ld assume the C compiler uses GNU ld default=no
  760. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  761. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  762. --with-included-gettext use the GNU gettext library included here
  763. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  764. --without-libintl-prefix don't search for libintl in includedir and libdir
  765. Some influential environment variables:
  766. CC C compiler command
  767. CFLAGS C compiler flags
  768. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  769. nonstandard directory <lib dir>
  770. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  771. headers in a nonstandard directory <include dir>
  772. CXX C++ compiler command
  773. CXXFLAGS C++ compiler flags
  774. CXXCPP C++ preprocessor
  775. Use these variables to override the choices made by `configure' or to help
  776. it to find libraries and programs with nonstandard names/locations.
  777. _ACEOF
  778. fi
  779. if test "$ac_init_help" = "recursive"; then
  780. # If there are subdirs, report their specific --help.
  781. ac_popdir=`pwd`
  782. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  783. test -d $ac_dir || continue
  784. ac_builddir=.
  785. if test "$ac_dir" != .; then
  786. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  787. # A "../" for each directory in $ac_dir_suffix.
  788. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  789. else
  790. ac_dir_suffix= ac_top_builddir=
  791. fi
  792. case $srcdir in
  793. .) # No --srcdir option. We are building in place.
  794. ac_srcdir=.
  795. if test -z "$ac_top_builddir"; then
  796. ac_top_srcdir=.
  797. else
  798. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  799. fi ;;
  800. [\\/]* | ?:[\\/]* ) # Absolute path.
  801. ac_srcdir=$srcdir$ac_dir_suffix;
  802. ac_top_srcdir=$srcdir ;;
  803. *) # Relative path.
  804. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  805. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  806. esac
  807. # Do not use `cd foo && pwd` to compute absolute paths, because
  808. # the directories may not exist.
  809. case `pwd` in
  810. .) ac_abs_builddir="$ac_dir";;
  811. *)
  812. case "$ac_dir" in
  813. .) ac_abs_builddir=`pwd`;;
  814. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  815. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  816. esac;;
  817. esac
  818. case $ac_abs_builddir in
  819. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  820. *)
  821. case ${ac_top_builddir}. in
  822. .) ac_abs_top_builddir=$ac_abs_builddir;;
  823. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  824. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  825. esac;;
  826. esac
  827. case $ac_abs_builddir in
  828. .) ac_abs_srcdir=$ac_srcdir;;
  829. *)
  830. case $ac_srcdir in
  831. .) ac_abs_srcdir=$ac_abs_builddir;;
  832. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  833. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  834. esac;;
  835. esac
  836. case $ac_abs_builddir in
  837. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  838. *)
  839. case $ac_top_srcdir in
  840. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  841. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  842. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  843. esac;;
  844. esac
  845. cd $ac_dir
  846. # Check for guested configure; otherwise get Cygnus style configure.
  847. if test -f $ac_srcdir/configure.gnu; then
  848. echo
  849. $SHELL $ac_srcdir/configure.gnu --help=recursive
  850. elif test -f $ac_srcdir/configure; then
  851. echo
  852. $SHELL $ac_srcdir/configure --help=recursive
  853. elif test -f $ac_srcdir/configure.ac ||
  854. test -f $ac_srcdir/configure.in; then
  855. echo
  856. $ac_configure --help
  857. else
  858. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  859. fi
  860. cd $ac_popdir
  861. done
  862. fi
  863. test -n "$ac_init_help" && exit 0
  864. if $ac_init_version; then
  865. cat <<\_ACEOF
  866. Copyright (C) 2003 Free Software Foundation, Inc.
  867. This configure script is free software; the Free Software Foundation
  868. gives unlimited permission to copy, distribute and modify it.
  869. _ACEOF
  870. exit 0
  871. fi
  872. exec 5>config.log
  873. cat >&5 <<_ACEOF
  874. This file contains any messages produced by compilers while
  875. running configure, to aid debugging if configure makes a mistake.
  876. It was created by $as_me, which was
  877. generated by GNU Autoconf 2.59. Invocation command line was
  878. $ $0 $@
  879. _ACEOF
  880. {
  881. cat <<_ASUNAME
  882. ## --------- ##
  883. ## Platform. ##
  884. ## --------- ##
  885. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  886. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  887. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  888. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  889. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  890. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  891. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  892. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  893. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  894. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  895. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  896. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  897. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  898. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  899. _ASUNAME
  900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  901. for as_dir in $PATH
  902. do
  903. IFS=$as_save_IFS
  904. test -z "$as_dir" && as_dir=.
  905. echo "PATH: $as_dir"
  906. done
  907. } >&5
  908. cat >&5 <<_ACEOF
  909. ## ----------- ##
  910. ## Core tests. ##
  911. ## ----------- ##
  912. _ACEOF
  913. # Keep a trace of the command line.
  914. # Strip out --no-create and --no-recursion so they do not pile up.
  915. # Strip out --silent because we don't want to record it for future runs.
  916. # Also quote any args containing shell meta-characters.
  917. # Make two passes to allow for proper duplicate-argument suppression.
  918. ac_configure_args=
  919. ac_configure_args0=
  920. ac_configure_args1=
  921. ac_sep=
  922. ac_must_keep_next=false
  923. for ac_pass in 1 2
  924. do
  925. for ac_arg
  926. do
  927. case $ac_arg in
  928. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  929. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  930. | -silent | --silent | --silen | --sile | --sil)
  931. continue ;;
  932. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  933. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  934. esac
  935. case $ac_pass in
  936. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  937. 2)
  938. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  939. if test $ac_must_keep_next = true; then
  940. ac_must_keep_next=false # Got value, back to normal.
  941. else
  942. case $ac_arg in
  943. *=* | --config-cache | -C | -disable-* | --disable-* \
  944. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  945. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  946. | -with-* | --with-* | -without-* | --without-* | --x)
  947. case "$ac_configure_args0 " in
  948. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  949. esac
  950. ;;
  951. -* ) ac_must_keep_next=true ;;
  952. esac
  953. fi
  954. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  955. # Get rid of the leading space.
  956. ac_sep=" "
  957. ;;
  958. esac
  959. done
  960. done
  961. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  962. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  963. # When interrupted or exit'd, cleanup temporary files, and complete
  964. # config.log. We remove comments because anyway the quotes in there
  965. # would cause problems or look ugly.
  966. # WARNING: Be sure not to use single quotes in there, as some shells,
  967. # such as our DU 5.0 friend, will then `close' the trap.
  968. trap 'exit_status=$?
  969. # Save into config.log some information that might help in debugging.
  970. {
  971. echo
  972. cat <<\_ASBOX
  973. ## ---------------- ##
  974. ## Cache variables. ##
  975. ## ---------------- ##
  976. _ASBOX
  977. echo
  978. # The following way of writing the cache mishandles newlines in values,
  979. {
  980. (set) 2>&1 |
  981. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  982. *ac_space=\ *)
  983. sed -n \
  984. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  985. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  986. ;;
  987. *)
  988. sed -n \
  989. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  990. ;;
  991. esac;
  992. }
  993. echo
  994. cat <<\_ASBOX
  995. ## ----------------- ##
  996. ## Output variables. ##
  997. ## ----------------- ##
  998. _ASBOX
  999. echo
  1000. for ac_var in $ac_subst_vars
  1001. do
  1002. eval ac_val=$`echo $ac_var`
  1003. echo "$ac_var='"'"'$ac_val'"'"'"
  1004. done | sort
  1005. echo
  1006. if test -n "$ac_subst_files"; then
  1007. cat <<\_ASBOX
  1008. ## ------------- ##
  1009. ## Output files. ##
  1010. ## ------------- ##
  1011. _ASBOX
  1012. echo
  1013. for ac_var in $ac_subst_files
  1014. do
  1015. eval ac_val=$`echo $ac_var`
  1016. echo "$ac_var='"'"'$ac_val'"'"'"
  1017. done | sort
  1018. echo
  1019. fi
  1020. if test -s confdefs.h; then
  1021. cat <<\_ASBOX
  1022. ## ----------- ##
  1023. ## confdefs.h. ##
  1024. ## ----------- ##
  1025. _ASBOX
  1026. echo
  1027. sed "/^$/d" confdefs.h | sort
  1028. echo
  1029. fi
  1030. test "$ac_signal" != 0 &&
  1031. echo "$as_me: caught signal $ac_signal"
  1032. echo "$as_me: exit $exit_status"
  1033. } >&5
  1034. rm -f core *.core &&
  1035. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1036. exit $exit_status
  1037. ' 0
  1038. for ac_signal in 1 2 13 15; do
  1039. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1040. done
  1041. ac_signal=0
  1042. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1043. rm -rf conftest* confdefs.h
  1044. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1045. echo >confdefs.h
  1046. # Predefined preprocessor variables.
  1047. cat >>confdefs.h <<_ACEOF
  1048. #define PACKAGE_NAME "$PACKAGE_NAME"
  1049. _ACEOF
  1050. cat >>confdefs.h <<_ACEOF
  1051. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1052. _ACEOF
  1053. cat >>confdefs.h <<_ACEOF
  1054. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1055. _ACEOF
  1056. cat >>confdefs.h <<_ACEOF
  1057. #define PACKAGE_STRING "$PACKAGE_STRING"
  1058. _ACEOF
  1059. cat >>confdefs.h <<_ACEOF
  1060. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1061. _ACEOF
  1062. # Let the site file select an alternate cache file if it wants to.
  1063. # Prefer explicitly selected file to automatically selected ones.
  1064. if test -z "$CONFIG_SITE"; then
  1065. if test "x$prefix" != xNONE; then
  1066. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1067. else
  1068. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1069. fi
  1070. fi
  1071. for ac_site_file in $CONFIG_SITE; do
  1072. if test -r "$ac_site_file"; then
  1073. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1074. echo "$as_me: loading site script $ac_site_file" >&6;}
  1075. sed 's/^/| /' "$ac_site_file" >&5
  1076. . "$ac_site_file"
  1077. fi
  1078. done
  1079. if test -r "$cache_file"; then
  1080. # Some versions of bash will fail to source /dev/null (special
  1081. # files actually), so we avoid doing that.
  1082. if test -f "$cache_file"; then
  1083. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1084. echo "$as_me: loading cache $cache_file" >&6;}
  1085. case $cache_file in
  1086. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1087. *) . ./$cache_file;;
  1088. esac
  1089. fi
  1090. else
  1091. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1092. echo "$as_me: creating cache $cache_file" >&6;}
  1093. >$cache_file
  1094. fi
  1095. # Check that the precious variables saved in the cache have kept the same
  1096. # value.
  1097. ac_cache_corrupted=false
  1098. for ac_var in `(set) 2>&1 |
  1099. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1100. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1101. eval ac_new_set=\$ac_env_${ac_var}_set
  1102. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1103. eval ac_new_val="\$ac_env_${ac_var}_value"
  1104. case $ac_old_set,$ac_new_set in
  1105. set,)
  1106. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1107. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1108. ac_cache_corrupted=: ;;
  1109. ,set)
  1110. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1111. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1112. ac_cache_corrupted=: ;;
  1113. ,);;
  1114. *)
  1115. if test "x$ac_old_val" != "x$ac_new_val"; then
  1116. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1117. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1118. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1119. echo "$as_me: former value: $ac_old_val" >&2;}
  1120. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1121. echo "$as_me: current value: $ac_new_val" >&2;}
  1122. ac_cache_corrupted=:
  1123. fi;;
  1124. esac
  1125. # Pass precious variables to config.status.
  1126. if test "$ac_new_set" = set; then
  1127. case $ac_new_val in
  1128. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1129. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1130. *) ac_arg=$ac_var=$ac_new_val ;;
  1131. esac
  1132. case " $ac_configure_args " in
  1133. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1134. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1135. esac
  1136. fi
  1137. done
  1138. if $ac_cache_corrupted; then
  1139. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1140. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1141. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1142. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1143. { (exit 1); exit 1; }; }
  1144. fi
  1145. ac_ext=c
  1146. ac_cpp='$CPP $CPPFLAGS'
  1147. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1148. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1149. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1150. PACKAGE=tightvnc
  1151. VERSION=1.5.0
  1152. cat >>confdefs.h <<_ACEOF
  1153. #define PACKAGE "$PACKAGE"
  1154. _ACEOF
  1155. cat >>confdefs.h <<_ACEOF
  1156. #define VERSION "$VERSION"
  1157. _ACEOF
  1158. ac_cv_prog_cc_g=no
  1159. ac_cv_prog_cxx_g=no
  1160. ac_ext=c
  1161. ac_cpp='$CPP $CPPFLAGS'
  1162. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1163. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1164. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1165. if test -n "$ac_tool_prefix"; then
  1166. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1167. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1168. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1169. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1170. if test "${ac_cv_prog_CC+set}" = set; then
  1171. echo $ECHO_N "(cached) $ECHO_C" >&6
  1172. else
  1173. if test -n "$CC"; then
  1174. ac_cv_prog_CC="$CC" # Let the user override the test.
  1175. else
  1176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1177. for as_dir in $PATH
  1178. do
  1179. IFS=$as_save_IFS
  1180. test -z "$as_dir" && as_dir=.
  1181. for ac_exec_ext in '' $ac_executable_extensions; do
  1182. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1183. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1184. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1185. break 2
  1186. fi
  1187. done
  1188. done
  1189. fi
  1190. fi
  1191. CC=$ac_cv_prog_CC
  1192. if test -n "$CC"; then
  1193. echo "$as_me:$LINENO: result: $CC" >&5
  1194. echo "${ECHO_T}$CC" >&6
  1195. else
  1196. echo "$as_me:$LINENO: result: no" >&5
  1197. echo "${ECHO_T}no" >&6
  1198. fi
  1199. fi
  1200. if test -z "$ac_cv_prog_CC"; then
  1201. ac_ct_CC=$CC
  1202. # Extract the first word of "gcc", so it can be a program name with args.
  1203. set dummy gcc; ac_word=$2
  1204. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1205. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1206. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1207. echo $ECHO_N "(cached) $ECHO_C" >&6
  1208. else
  1209. if test -n "$ac_ct_CC"; then
  1210. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1211. else
  1212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1213. for as_dir in $PATH
  1214. do
  1215. IFS=$as_save_IFS
  1216. test -z "$as_dir" && as_dir=.
  1217. for ac_exec_ext in '' $ac_executable_extensions; do
  1218. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1219. ac_cv_prog_ac_ct_CC="gcc"
  1220. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1221. break 2
  1222. fi
  1223. done
  1224. done
  1225. fi
  1226. fi
  1227. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1228. if test -n "$ac_ct_CC"; then
  1229. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1230. echo "${ECHO_T}$ac_ct_CC" >&6
  1231. else
  1232. echo "$as_me:$LINENO: result: no" >&5
  1233. echo "${ECHO_T}no" >&6
  1234. fi
  1235. CC=$ac_ct_CC
  1236. else
  1237. CC="$ac_cv_prog_CC"
  1238. fi
  1239. if test -z "$CC"; then
  1240. if test -n "$ac_tool_prefix"; then
  1241. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1242. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1243. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1244. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1245. if test "${ac_cv_prog_CC+set}" = set; then
  1246. echo $ECHO_N "(cached) $ECHO_C" >&6
  1247. else
  1248. if test -n "$CC"; then
  1249. ac_cv_prog_CC="$CC" # Let the user override the test.
  1250. else
  1251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1252. for as_dir in $PATH
  1253. do
  1254. IFS=$as_save_IFS
  1255. test -z "$as_dir" && as_dir=.
  1256. for ac_exec_ext in '' $ac_executable_extensions; do
  1257. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1258. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1259. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1260. break 2
  1261. fi
  1262. done
  1263. done
  1264. fi
  1265. fi
  1266. CC=$ac_cv_prog_CC
  1267. if test -n "$CC"; then
  1268. echo "$as_me:$LINENO: result: $CC" >&5
  1269. echo "${ECHO_T}$CC" >&6
  1270. else
  1271. echo "$as_me:$LINENO: result: no" >&5
  1272. echo "${ECHO_T}no" >&6
  1273. fi
  1274. fi
  1275. if test -z "$ac_cv_prog_CC"; then
  1276. ac_ct_CC=$CC
  1277. # Extract the first word of "cc", so it can be a program name with args.
  1278. set dummy cc; ac_word=$2
  1279. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1280. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1281. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1282. echo $ECHO_N "(cached) $ECHO_C" >&6
  1283. else
  1284. if test -n "$ac_ct_CC"; then
  1285. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1286. else
  1287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1288. for as_dir in $PATH
  1289. do
  1290. IFS=$as_save_IFS
  1291. test -z "$as_dir" && as_dir=.
  1292. for ac_exec_ext in '' $ac_executable_extensions; do
  1293. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1294. ac_cv_prog_ac_ct_CC="cc"
  1295. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1296. break 2
  1297. fi
  1298. done
  1299. done
  1300. fi
  1301. fi
  1302. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1303. if test -n "$ac_ct_CC"; then
  1304. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1305. echo "${ECHO_T}$ac_ct_CC" >&6
  1306. else
  1307. echo "$as_me:$LINENO: result: no" >&5
  1308. echo "${ECHO_T}no" >&6
  1309. fi
  1310. CC=$ac_ct_CC
  1311. else
  1312. CC="$ac_cv_prog_CC"
  1313. fi
  1314. fi
  1315. if test -z "$CC"; then
  1316. # Extract the first word of "cc", so it can be a program name with args.
  1317. set dummy cc; ac_word=$2
  1318. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1319. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1320. if test "${ac_cv_prog_CC+set}" = set; then
  1321. echo $ECHO_N "(cached) $ECHO_C" >&6
  1322. else
  1323. if test -n "$CC"; then
  1324. ac_cv_prog_CC="$CC" # Let the user override the test.
  1325. else
  1326. ac_prog_rejected=no
  1327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1328. for as_dir in $PATH
  1329. do
  1330. IFS=$as_save_IFS
  1331. test -z "$as_dir" && as_dir=.
  1332. for ac_exec_ext in '' $ac_executable_extensions; do
  1333. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1334. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1335. ac_prog_rejected=yes
  1336. continue
  1337. fi
  1338. ac_cv_prog_CC="cc"
  1339. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1340. break 2
  1341. fi
  1342. done
  1343. done
  1344. if test $ac_prog_rejected = yes; then
  1345. # We found a bogon in the path, so make sure we never use it.
  1346. set dummy $ac_cv_prog_CC
  1347. shift
  1348. if test $# != 0; then
  1349. # We chose a different compiler from the bogus one.
  1350. # However, it has the same basename, so the bogon will be chosen
  1351. # first if we set CC to just the basename; use the full file name.
  1352. shift
  1353. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1354. fi
  1355. fi
  1356. fi
  1357. fi
  1358. CC=$ac_cv_prog_CC
  1359. if test -n "$CC"; then
  1360. echo "$as_me:$LINENO: result: $CC" >&5
  1361. echo "${ECHO_T}$CC" >&6
  1362. else
  1363. echo "$as_me:$LINENO: result: no" >&5
  1364. echo "${ECHO_T}no" >&6
  1365. fi
  1366. fi
  1367. if test -z "$CC"; then
  1368. if test -n "$ac_tool_prefix"; then
  1369. for ac_prog in cl
  1370. do
  1371. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1372. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1373. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1374. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1375. if test "${ac_cv_prog_CC+set}" = set; then
  1376. echo $ECHO_N "(cached) $ECHO_C" >&6
  1377. else
  1378. if test -n "$CC"; then
  1379. ac_cv_prog_CC="$CC" # Let the user override the test.
  1380. else
  1381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1382. for as_dir in $PATH
  1383. do
  1384. IFS=$as_save_IFS
  1385. test -z "$as_dir" && as_dir=.
  1386. for ac_exec_ext in '' $ac_executable_extensions; do
  1387. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1388. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1389. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1390. break 2
  1391. fi
  1392. done
  1393. done
  1394. fi
  1395. fi
  1396. CC=$ac_cv_prog_CC
  1397. if test -n "$CC"; then
  1398. echo "$as_me:$LINENO: result: $CC" >&5
  1399. echo "${ECHO_T}$CC" >&6
  1400. else
  1401. echo "$as_me:$LINENO: result: no" >&5
  1402. echo "${ECHO_T}no" >&6
  1403. fi
  1404. test -n "$CC" && break
  1405. done
  1406. fi
  1407. if test -z "$CC"; then
  1408. ac_ct_CC=$CC
  1409. for ac_prog in cl
  1410. do
  1411. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1412. set dummy $ac_prog; ac_word=$2
  1413. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1414. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1415. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1416. echo $ECHO_N "(cached) $ECHO_C" >&6
  1417. else
  1418. if test -n "$ac_ct_CC"; then
  1419. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1420. else
  1421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1422. for as_dir in $PATH
  1423. do
  1424. IFS=$as_save_IFS
  1425. test -z "$as_dir" && as_dir=.
  1426. for ac_exec_ext in '' $ac_executable_extensions; do
  1427. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1428. ac_cv_prog_ac_ct_CC="$ac_prog"
  1429. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1430. break 2
  1431. fi
  1432. done
  1433. done
  1434. fi
  1435. fi
  1436. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1437. if test -n "$ac_ct_CC"; then
  1438. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1439. echo "${ECHO_T}$ac_ct_CC" >&6
  1440. else
  1441. echo "$as_me:$LINENO: result: no" >&5
  1442. echo "${ECHO_T}no" >&6
  1443. fi
  1444. test -n "$ac_ct_CC" && break
  1445. done
  1446. CC=$ac_ct_CC
  1447. fi
  1448. fi
  1449. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1450. See \`config.log' for more details." >&5
  1451. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1452. See \`config.log' for more details." >&2;}
  1453. { (exit 1); exit 1; }; }
  1454. # Provide some information about the compiler.
  1455. echo "$as_me:$LINENO:" \
  1456. "checking for C compiler version" >&5
  1457. ac_compiler=`set X $ac_compile; echo $2`
  1458. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1459. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1460. ac_status=$?
  1461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1462. (exit $ac_status); }
  1463. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1464. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1465. ac_status=$?
  1466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1467. (exit $ac_status); }
  1468. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1469. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1470. ac_status=$?
  1471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1472. (exit $ac_status); }
  1473. cat >conftest.$ac_ext <<_ACEOF
  1474. /* confdefs.h. */
  1475. _ACEOF
  1476. cat confdefs.h >>conftest.$ac_ext
  1477. cat >>conftest.$ac_ext <<_ACEOF
  1478. /* end confdefs.h. */
  1479. int
  1480. main ()
  1481. {
  1482. ;
  1483. return 0;
  1484. }
  1485. _ACEOF
  1486. ac_clean_files_save=$ac_clean_files
  1487. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1488. # Try to create an executable without -o first, disregard a.out.
  1489. # It will help us diagnose broken compilers, and finding out an intuition
  1490. # of exeext.
  1491. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1492. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1493. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1494. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1495. (eval $ac_link_default) 2>&5
  1496. ac_status=$?
  1497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1498. (exit $ac_status); }; then
  1499. # Find the output, starting from the most likely. This scheme is
  1500. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1501. # resort.
  1502. # Be careful to initialize this variable, since it used to be cached.
  1503. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1504. ac_cv_exeext=
  1505. # b.out is created by i960 compilers.
  1506. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1507. do
  1508. test -f "$ac_file" || continue
  1509. case $ac_file in
  1510. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1511. ;;
  1512. conftest.$ac_ext )
  1513. # This is the source file.
  1514. ;;
  1515. [ab].out )
  1516. # We found the default executable, but exeext='' is most
  1517. # certainly right.
  1518. break;;
  1519. *.* )
  1520. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1521. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1522. # but it would be cool to find out if it's true. Does anybody
  1523. # maintain Libtool? --akim.
  1524. export ac_cv_exeext
  1525. break;;
  1526. * )
  1527. break;;
  1528. esac
  1529. done
  1530. else
  1531. echo "$as_me: failed program was:" >&5
  1532. sed 's/^/| /' conftest.$ac_ext >&5
  1533. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1534. See \`config.log' for more details." >&5
  1535. echo "$as_me: error: C compiler cannot create executables
  1536. See \`config.log' for more details." >&2;}
  1537. { (exit 77); exit 77; }; }
  1538. fi
  1539. ac_exeext=$ac_cv_exeext
  1540. echo "$as_me:$LINENO: result: $ac_file" >&5
  1541. echo "${ECHO_T}$ac_file" >&6
  1542. # Check the compiler produces executables we can run. If not, either
  1543. # the compiler is broken, or we cross compile.
  1544. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1545. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1546. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1547. # If not cross compiling, check that we can run a simple program.
  1548. if test "$cross_compiling" != yes; then
  1549. if { ac_try='./$ac_file'
  1550. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1551. (eval $ac_try) 2>&5
  1552. ac_status=$?
  1553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1554. (exit $ac_status); }; }; then
  1555. cross_compiling=no
  1556. else
  1557. if test "$cross_compiling" = maybe; then
  1558. cross_compiling=yes
  1559. else
  1560. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1561. If you meant to cross compile, use \`--host'.
  1562. See \`config.log' for more details." >&5
  1563. echo "$as_me: error: cannot run C compiled programs.
  1564. If you meant to cross compile, use \`--host'.
  1565. See \`config.log' for more details." >&2;}
  1566. { (exit 1); exit 1; }; }
  1567. fi
  1568. fi
  1569. fi
  1570. echo "$as_me:$LINENO: result: yes" >&5
  1571. echo "${ECHO_T}yes" >&6
  1572. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1573. ac_clean_files=$ac_clean_files_save
  1574. # Check the compiler produces executables we can run. If not, either
  1575. # the compiler is broken, or we cross compile.
  1576. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1577. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1578. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1579. echo "${ECHO_T}$cross_compiling" >&6
  1580. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1581. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1582. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1583. (eval $ac_link) 2>&5
  1584. ac_status=$?
  1585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1586. (exit $ac_status); }; then
  1587. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1588. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1589. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1590. # `rm'.
  1591. for ac_file in conftest.exe conftest conftest.*; do
  1592. test -f "$ac_file" || continue
  1593. case $ac_file in
  1594. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1595. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1596. export ac_cv_exeext
  1597. break;;
  1598. * ) break;;
  1599. esac
  1600. done
  1601. else
  1602. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1603. See \`config.log' for more details." >&5
  1604. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1605. See \`config.log' for more details." >&2;}
  1606. { (exit 1); exit 1; }; }
  1607. fi
  1608. rm -f conftest$ac_cv_exeext
  1609. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1610. echo "${ECHO_T}$ac_cv_exeext" >&6
  1611. rm -f conftest.$ac_ext
  1612. EXEEXT=$ac_cv_exeext
  1613. ac_exeext=$EXEEXT
  1614. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1615. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1616. if test "${ac_cv_objext+set}" = set; then
  1617. echo $ECHO_N "(cached) $ECHO_C" >&6
  1618. else
  1619. cat >conftest.$ac_ext <<_ACEOF
  1620. /* confdefs.h. */
  1621. _ACEOF
  1622. cat confdefs.h >>conftest.$ac_ext
  1623. cat >>conftest.$ac_ext <<_ACEOF
  1624. /* end confdefs.h. */
  1625. int
  1626. main ()
  1627. {
  1628. ;
  1629. return 0;
  1630. }
  1631. _ACEOF
  1632. rm -f conftest.o conftest.obj
  1633. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1634. (eval $ac_compile) 2>&5
  1635. ac_status=$?
  1636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1637. (exit $ac_status); }; then
  1638. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1639. case $ac_file in
  1640. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1641. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1642. break;;
  1643. esac
  1644. done
  1645. else
  1646. echo "$as_me: failed program was:" >&5
  1647. sed 's/^/| /' conftest.$ac_ext >&5
  1648. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1649. See \`config.log' for more details." >&5
  1650. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1651. See \`config.log' for more details." >&2;}
  1652. { (exit 1); exit 1; }; }
  1653. fi
  1654. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1655. fi
  1656. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1657. echo "${ECHO_T}$ac_cv_objext" >&6
  1658. OBJEXT=$ac_cv_objext
  1659. ac_objext=$OBJEXT
  1660. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1661. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1662. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1663. echo $ECHO_N "(cached) $ECHO_C" >&6
  1664. else
  1665. cat >conftest.$ac_ext <<_ACEOF
  1666. /* confdefs.h. */
  1667. _ACEOF
  1668. cat confdefs.h >>conftest.$ac_ext
  1669. cat >>conftest.$ac_ext <<_ACEOF
  1670. /* end confdefs.h. */
  1671. int
  1672. main ()
  1673. {
  1674. #ifndef __GNUC__
  1675. choke me
  1676. #endif
  1677. ;
  1678. return 0;
  1679. }
  1680. _ACEOF
  1681. rm -f conftest.$ac_objext
  1682. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1683. (eval $ac_compile) 2>conftest.er1
  1684. ac_status=$?
  1685. grep -v '^ *+' conftest.er1 >conftest.err
  1686. rm -f conftest.er1
  1687. cat conftest.err >&5
  1688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1689. (exit $ac_status); } &&
  1690. { ac_try='test -z "$ac_c_werror_flag"
  1691. || test ! -s conftest.err'
  1692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1693. (eval $ac_try) 2>&5
  1694. ac_status=$?
  1695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1696. (exit $ac_status); }; } &&
  1697. { ac_try='test -s conftest.$ac_objext'
  1698. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1699. (eval $ac_try) 2>&5
  1700. ac_status=$?
  1701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1702. (exit $ac_status); }; }; then
  1703. ac_compiler_gnu=yes
  1704. else
  1705. echo "$as_me: failed program was:" >&5
  1706. sed 's/^/| /' conftest.$ac_ext >&5
  1707. ac_compiler_gnu=no
  1708. fi
  1709. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1710. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1711. fi
  1712. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1713. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1714. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1715. ac_test_CFLAGS=${CFLAGS+set}
  1716. ac_save_CFLAGS=$CFLAGS
  1717. CFLAGS="-g"
  1718. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1719. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1720. if test "${ac_cv_prog_cc_g+set}" = set; then
  1721. echo $ECHO_N "(cached) $ECHO_C" >&6
  1722. else
  1723. cat >conftest.$ac_ext <<_ACEOF
  1724. /* confdefs.h. */
  1725. _ACEOF
  1726. cat confdefs.h >>conftest.$ac_ext
  1727. cat >>conftest.$ac_ext <<_ACEOF
  1728. /* end confdefs.h. */
  1729. int
  1730. main ()
  1731. {
  1732. ;
  1733. return 0;
  1734. }
  1735. _ACEOF
  1736. rm -f conftest.$ac_objext
  1737. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1738. (eval $ac_compile) 2>conftest.er1
  1739. ac_status=$?
  1740. grep -v '^ *+' conftest.er1 >conftest.err
  1741. rm -f conftest.er1
  1742. cat conftest.err >&5
  1743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1744. (exit $ac_status); } &&
  1745. { ac_try='test -z "$ac_c_werror_flag"
  1746. || test ! -s conftest.err'
  1747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1748. (eval $ac_try) 2>&5
  1749. ac_status=$?
  1750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1751. (exit $ac_status); }; } &&
  1752. { ac_try='test -s conftest.$ac_objext'
  1753. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1754. (eval $ac_try) 2>&5
  1755. ac_status=$?
  1756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1757. (exit $ac_status); }; }; then
  1758. ac_cv_prog_cc_g=yes
  1759. else
  1760. echo "$as_me: failed program was:" >&5
  1761. sed 's/^/| /' conftest.$ac_ext >&5
  1762. ac_cv_prog_cc_g=no
  1763. fi
  1764. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1765. fi
  1766. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1767. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1768. if test "$ac_test_CFLAGS" = set; then
  1769. CFLAGS=$ac_save_CFLAGS
  1770. elif test $ac_cv_prog_cc_g = yes; then
  1771. if test "$GCC" = yes; then
  1772. CFLAGS="-g -O2"
  1773. else
  1774. CFLAGS="-g"
  1775. fi
  1776. else
  1777. if test "$GCC" = yes; then
  1778. CFLAGS="-O2"
  1779. else
  1780. CFLAGS=
  1781. fi
  1782. fi
  1783. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1784. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1785. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1786. echo $ECHO_N "(cached) $ECHO_C" >&6
  1787. else
  1788. ac_cv_prog_cc_stdc=no
  1789. ac_save_CC=$CC
  1790. cat >conftest.$ac_ext <<_ACEOF
  1791. /* confdefs.h. */
  1792. _ACEOF
  1793. cat confdefs.h >>conftest.$ac_ext
  1794. cat >>conftest.$ac_ext <<_ACEOF
  1795. /* end confdefs.h. */
  1796. #include <stdarg.h>
  1797. #include <stdio.h>
  1798. #include <sys/types.h>
  1799. #include <sys/stat.h>
  1800. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1801. struct buf { int x; };
  1802. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1803. static char *e (p, i)
  1804. char **p;
  1805. int i;
  1806. {
  1807. return p[i];
  1808. }
  1809. static char *f (char * (*g) (char **, int), char **p, ...)
  1810. {
  1811. char *s;
  1812. va_list v;
  1813. va_start (v,p);
  1814. s = g (p, va_arg (v,int));
  1815. va_end (v);
  1816. return s;
  1817. }
  1818. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1819. function prototypes and stuff, but not '\xHH' hex character constants.
  1820. These don't provoke an error unfortunately, instead are silently treated
  1821. as 'x'. The following induces an error, until -std1 is added to get
  1822. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1823. array size at least. It's necessary to write '\x00'==0 to get something
  1824. that's true only with -std1. */
  1825. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1826. int test (int i, double x);
  1827. struct s1 {int (*f) (int a);};
  1828. struct s2 {int (*f) (double a);};
  1829. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1830. int argc;
  1831. char **argv;
  1832. int
  1833. main ()
  1834. {
  1835. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1836. ;
  1837. return 0;
  1838. }
  1839. _ACEOF
  1840. # Don't try gcc -ansi; that turns off useful extensions and
  1841. # breaks some systems' header files.
  1842. # AIX -qlanglvl=ansi
  1843. # Ultrix and OSF/1 -std1
  1844. # HP-UX 10.20 and later -Ae
  1845. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1846. # SVR4 -Xc -D__EXTENSIONS__
  1847. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1848. do
  1849. CC="$ac_save_CC $ac_arg"
  1850. rm -f conftest.$ac_objext
  1851. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1852. (eval $ac_compile) 2>conftest.er1
  1853. ac_status=$?
  1854. grep -v '^ *+' conftest.er1 >conftest.err
  1855. rm -f conftest.er1
  1856. cat conftest.err >&5
  1857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1858. (exit $ac_status); } &&
  1859. { ac_try='test -z "$ac_c_werror_flag"
  1860. || test ! -s conftest.err'
  1861. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1862. (eval $ac_try) 2>&5
  1863. ac_status=$?
  1864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1865. (exit $ac_status); }; } &&
  1866. { ac_try='test -s conftest.$ac_objext'
  1867. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1868. (eval $ac_try) 2>&5
  1869. ac_status=$?
  1870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1871. (exit $ac_status); }; }; then
  1872. ac_cv_prog_cc_stdc=$ac_arg
  1873. break
  1874. else
  1875. echo "$as_me: failed program was:" >&5
  1876. sed 's/^/| /' conftest.$ac_ext >&5
  1877. fi
  1878. rm -f conftest.err conftest.$ac_objext
  1879. done
  1880. rm -f conftest.$ac_ext conftest.$ac_objext
  1881. CC=$ac_save_CC
  1882. fi
  1883. case "x$ac_cv_prog_cc_stdc" in
  1884. x|xno)
  1885. echo "$as_me:$LINENO: result: none needed" >&5
  1886. echo "${ECHO_T}none needed" >&6 ;;
  1887. *)
  1888. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1889. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1890. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1891. esac
  1892. # Some people use a C++ compiler to compile C. Since we use `exit',
  1893. # in C++ we need to declare it. In case someone uses the same compiler
  1894. # for both compiling C and C++ we need to have the C++ compiler decide
  1895. # the declaration of exit, since it's the most demanding environment.
  1896. cat >conftest.$ac_ext <<_ACEOF
  1897. #ifndef __cplusplus
  1898. choke me
  1899. #endif
  1900. _ACEOF
  1901. rm -f conftest.$ac_objext
  1902. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1903. (eval $ac_compile) 2>conftest.er1
  1904. ac_status=$?
  1905. grep -v '^ *+' conftest.er1 >conftest.err
  1906. rm -f conftest.er1
  1907. cat conftest.err >&5
  1908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1909. (exit $ac_status); } &&
  1910. { ac_try='test -z "$ac_c_werror_flag"
  1911. || test ! -s conftest.err'
  1912. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1913. (eval $ac_try) 2>&5
  1914. ac_status=$?
  1915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1916. (exit $ac_status); }; } &&
  1917. { ac_try='test -s conftest.$ac_objext'
  1918. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1919. (eval $ac_try) 2>&5
  1920. ac_status=$?
  1921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1922. (exit $ac_status); }; }; then
  1923. for ac_declaration in \
  1924. '' \
  1925. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1926. 'extern "C" void std::exit (int); using std::exit;' \
  1927. 'extern "C" void exit (int) throw ();' \
  1928. 'extern "C" void exit (int);' \
  1929. 'void exit (int);'
  1930. do
  1931. cat >conftest.$ac_ext <<_ACEOF
  1932. /* confdefs.h. */
  1933. _ACEOF
  1934. cat confdefs.h >>conftest.$ac_ext
  1935. cat >>conftest.$ac_ext <<_ACEOF
  1936. /* end confdefs.h. */
  1937. $ac_declaration
  1938. #include <stdlib.h>
  1939. int
  1940. main ()
  1941. {
  1942. exit (42);
  1943. ;
  1944. return 0;
  1945. }
  1946. _ACEOF
  1947. rm -f conftest.$ac_objext
  1948. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1949. (eval $ac_compile) 2>conftest.er1
  1950. ac_status=$?
  1951. grep -v '^ *+' conftest.er1 >conftest.err
  1952. rm -f conftest.er1
  1953. cat conftest.err >&5
  1954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1955. (exit $ac_status); } &&
  1956. { ac_try='test -z "$ac_c_werror_flag"
  1957. || test ! -s conftest.err'
  1958. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1959. (eval $ac_try) 2>&5
  1960. ac_status=$?
  1961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1962. (exit $ac_status); }; } &&
  1963. { ac_try='test -s conftest.$ac_objext'
  1964. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1965. (eval $ac_try) 2>&5
  1966. ac_status=$?
  1967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1968. (exit $ac_status); }; }; then
  1969. :
  1970. else
  1971. echo "$as_me: failed program was:" >&5
  1972. sed 's/^/| /' conftest.$ac_ext >&5
  1973. continue
  1974. fi
  1975. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1976. cat >conftest.$ac_ext <<_ACEOF
  1977. /* confdefs.h. */
  1978. _ACEOF
  1979. cat confdefs.h >>conftest.$ac_ext
  1980. cat >>conftest.$ac_ext <<_ACEOF
  1981. /* end confdefs.h. */
  1982. $ac_declaration
  1983. int
  1984. main ()
  1985. {
  1986. exit (42);
  1987. ;
  1988. return 0;
  1989. }
  1990. _ACEOF
  1991. rm -f conftest.$ac_objext
  1992. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1993. (eval $ac_compile) 2>conftest.er1
  1994. ac_status=$?
  1995. grep -v '^ *+' conftest.er1 >conftest.err
  1996. rm -f conftest.er1
  1997. cat conftest.err >&5
  1998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1999. (exit $ac_status); } &&
  2000. { ac_try='test -z "$ac_c_werror_flag"
  2001. || test ! -s conftest.err'
  2002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2003. (eval $ac_try) 2>&5
  2004. ac_status=$?
  2005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2006. (exit $ac_status); }; } &&
  2007. { ac_try='test -s conftest.$ac_objext'
  2008. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2009. (eval $ac_try) 2>&5
  2010. ac_status=$?
  2011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2012. (exit $ac_status); }; }; then
  2013. break
  2014. else
  2015. echo "$as_me: failed program was:" >&5
  2016. sed 's/^/| /' conftest.$ac_ext >&5
  2017. fi
  2018. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2019. done
  2020. rm -f conftest*
  2021. if test -n "$ac_declaration"; then
  2022. echo '#ifdef __cplusplus' >>confdefs.h
  2023. echo $ac_declaration >>confdefs.h
  2024. echo '#endif' >>confdefs.h
  2025. fi
  2026. else
  2027. echo "$as_me: failed program was:" >&5
  2028. sed 's/^/| /' conftest.$ac_ext >&5
  2029. fi
  2030. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2031. ac_ext=c
  2032. ac_cpp='$CPP $CPPFLAGS'
  2033. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2034. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2035. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2036. ac_ext=cc
  2037. ac_cpp='$CXXCPP $CPPFLAGS'
  2038. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2039. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2040. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2041. if test -n "$ac_tool_prefix"; then
  2042. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2043. do
  2044. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2045. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2046. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2047. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2048. if test "${ac_cv_prog_CXX+set}" = set; then
  2049. echo $ECHO_N "(cached) $ECHO_C" >&6
  2050. else
  2051. if test -n "$CXX"; then
  2052. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2053. else
  2054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2055. for as_dir in $PATH
  2056. do
  2057. IFS=$as_save_IFS
  2058. test -z "$as_dir" && as_dir=.
  2059. for ac_exec_ext in '' $ac_executable_extensions; do
  2060. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2061. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2062. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2063. break 2
  2064. fi
  2065. done
  2066. done
  2067. fi
  2068. fi
  2069. CXX=$ac_cv_prog_CXX
  2070. if test -n "$CXX"; then
  2071. echo "$as_me:$LINENO: result: $CXX" >&5
  2072. echo "${ECHO_T}$CXX" >&6
  2073. else
  2074. echo "$as_me:$LINENO: result: no" >&5
  2075. echo "${ECHO_T}no" >&6
  2076. fi
  2077. test -n "$CXX" && break
  2078. done
  2079. fi
  2080. if test -z "$CXX"; then
  2081. ac_ct_CXX=$CXX
  2082. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2083. do
  2084. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2085. set dummy $ac_prog; ac_word=$2
  2086. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2087. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2088. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2089. echo $ECHO_N "(cached) $ECHO_C" >&6
  2090. else
  2091. if test -n "$ac_ct_CXX"; then
  2092. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2093. else
  2094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2095. for as_dir in $PATH
  2096. do
  2097. IFS=$as_save_IFS
  2098. test -z "$as_dir" && as_dir=.
  2099. for ac_exec_ext in '' $ac_executable_extensions; do
  2100. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2101. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2102. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2103. break 2
  2104. fi
  2105. done
  2106. done
  2107. fi
  2108. fi
  2109. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2110. if test -n "$ac_ct_CXX"; then
  2111. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2112. echo "${ECHO_T}$ac_ct_CXX" >&6
  2113. else
  2114. echo "$as_me:$LINENO: result: no" >&5
  2115. echo "${ECHO_T}no" >&6
  2116. fi
  2117. test -n "$ac_ct_CXX" && break
  2118. done
  2119. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  2120. CXX=$ac_ct_CXX
  2121. fi
  2122. # Provide some information about the compiler.
  2123. echo "$as_me:$LINENO:" \
  2124. "checking for C++ compiler version" >&5
  2125. ac_compiler=`set X $ac_compile; echo $2`
  2126. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2127. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2128. ac_status=$?
  2129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2130. (exit $ac_status); }
  2131. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2132. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2133. ac_status=$?
  2134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2135. (exit $ac_status); }
  2136. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2137. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2138. ac_status=$?
  2139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2140. (exit $ac_status); }
  2141. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2142. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2143. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2144. echo $ECHO_N "(cached) $ECHO_C" >&6
  2145. else
  2146. cat >conftest.$ac_ext <<_ACEOF
  2147. /* confdefs.h. */
  2148. _ACEOF
  2149. cat confdefs.h >>conftest.$ac_ext
  2150. cat >>conftest.$ac_ext <<_ACEOF
  2151. /* end confdefs.h. */
  2152. int
  2153. main ()
  2154. {
  2155. #ifndef __GNUC__
  2156. choke me
  2157. #endif
  2158. ;
  2159. return 0;
  2160. }
  2161. _ACEOF
  2162. rm -f conftest.$ac_objext
  2163. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2164. (eval $ac_compile) 2>conftest.er1
  2165. ac_status=$?
  2166. grep -v '^ *+' conftest.er1 >conftest.err
  2167. rm -f conftest.er1
  2168. cat conftest.err >&5
  2169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2170. (exit $ac_status); } &&
  2171. { ac_try='test -z "$ac_cxx_werror_flag"
  2172. || test ! -s conftest.err'
  2173. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2174. (eval $ac_try) 2>&5
  2175. ac_status=$?
  2176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2177. (exit $ac_status); }; } &&
  2178. { ac_try='test -s conftest.$ac_objext'
  2179. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2180. (eval $ac_try) 2>&5
  2181. ac_status=$?
  2182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2183. (exit $ac_status); }; }; then
  2184. ac_compiler_gnu=yes
  2185. else
  2186. echo "$as_me: failed program was:" >&5
  2187. sed 's/^/| /' conftest.$ac_ext >&5
  2188. ac_compiler_gnu=no
  2189. fi
  2190. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2191. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2192. fi
  2193. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2194. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2195. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2196. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2197. ac_save_CXXFLAGS=$CXXFLAGS
  2198. CXXFLAGS="-g"
  2199. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2200. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2201. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2202. echo $ECHO_N "(cached) $ECHO_C" >&6
  2203. else
  2204. cat >conftest.$ac_ext <<_ACEOF
  2205. /* confdefs.h. */
  2206. _ACEOF
  2207. cat confdefs.h >>conftest.$ac_ext
  2208. cat >>conftest.$ac_ext <<_ACEOF
  2209. /* end confdefs.h. */
  2210. int
  2211. main ()
  2212. {
  2213. ;
  2214. return 0;
  2215. }
  2216. _ACEOF
  2217. rm -f conftest.$ac_objext
  2218. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2219. (eval $ac_compile) 2>conftest.er1
  2220. ac_status=$?
  2221. grep -v '^ *+' conftest.er1 >conftest.err
  2222. rm -f conftest.er1
  2223. cat conftest.err >&5
  2224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2225. (exit $ac_status); } &&
  2226. { ac_try='test -z "$ac_cxx_werror_flag"
  2227. || test ! -s conftest.err'
  2228. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2229. (eval $ac_try) 2>&5
  2230. ac_status=$?
  2231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2232. (exit $ac_status); }; } &&
  2233. { ac_try='test -s conftest.$ac_objext'
  2234. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2235. (eval $ac_try) 2>&5
  2236. ac_status=$?
  2237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2238. (exit $ac_status); }; }; then
  2239. ac_cv_prog_cxx_g=yes
  2240. else
  2241. echo "$as_me: failed program was:" >&5
  2242. sed 's/^/| /' conftest.$ac_ext >&5
  2243. ac_cv_prog_cxx_g=no
  2244. fi
  2245. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2246. fi
  2247. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2248. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2249. if test "$ac_test_CXXFLAGS" = set; then
  2250. CXXFLAGS=$ac_save_CXXFLAGS
  2251. elif test $ac_cv_prog_cxx_g = yes; then
  2252. if test "$GXX" = yes; then
  2253. CXXFLAGS="-g -O2"
  2254. else
  2255. CXXFLAGS="-g"
  2256. fi
  2257. else
  2258. if test "$GXX" = yes; then
  2259. CXXFLAGS="-O2"
  2260. else
  2261. CXXFLAGS=
  2262. fi
  2263. fi
  2264. for ac_declaration in \
  2265. '' \
  2266. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2267. 'extern "C" void std::exit (int); using std::exit;' \
  2268. 'extern "C" void exit (int) throw ();' \
  2269. 'extern "C" void exit (int);' \
  2270. 'void exit (int);'
  2271. do
  2272. cat >conftest.$ac_ext <<_ACEOF
  2273. /* confdefs.h. */
  2274. _ACEOF
  2275. cat confdefs.h >>conftest.$ac_ext
  2276. cat >>conftest.$ac_ext <<_ACEOF
  2277. /* end confdefs.h. */
  2278. $ac_declaration
  2279. #include <stdlib.h>
  2280. int
  2281. main ()
  2282. {
  2283. exit (42);
  2284. ;
  2285. return 0;
  2286. }
  2287. _ACEOF
  2288. rm -f conftest.$ac_objext
  2289. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2290. (eval $ac_compile) 2>conftest.er1
  2291. ac_status=$?
  2292. grep -v '^ *+' conftest.er1 >conftest.err
  2293. rm -f conftest.er1
  2294. cat conftest.err >&5
  2295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2296. (exit $ac_status); } &&
  2297. { ac_try='test -z "$ac_cxx_werror_flag"
  2298. || test ! -s conftest.err'
  2299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2300. (eval $ac_try) 2>&5
  2301. ac_status=$?
  2302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2303. (exit $ac_status); }; } &&
  2304. { ac_try='test -s conftest.$ac_objext'
  2305. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2306. (eval $ac_try) 2>&5
  2307. ac_status=$?
  2308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2309. (exit $ac_status); }; }; then
  2310. :
  2311. else
  2312. echo "$as_me: failed program was:" >&5
  2313. sed 's/^/| /' conftest.$ac_ext >&5
  2314. continue
  2315. fi
  2316. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2317. cat >conftest.$ac_ext <<_ACEOF
  2318. /* confdefs.h. */
  2319. _ACEOF
  2320. cat confdefs.h >>conftest.$ac_ext
  2321. cat >>conftest.$ac_ext <<_ACEOF
  2322. /* end confdefs.h. */
  2323. $ac_declaration
  2324. int
  2325. main ()
  2326. {
  2327. exit (42);
  2328. ;
  2329. return 0;
  2330. }
  2331. _ACEOF
  2332. rm -f conftest.$ac_objext
  2333. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2334. (eval $ac_compile) 2>conftest.er1
  2335. ac_status=$?
  2336. grep -v '^ *+' conftest.er1 >conftest.err
  2337. rm -f conftest.er1
  2338. cat conftest.err >&5
  2339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2340. (exit $ac_status); } &&
  2341. { ac_try='test -z "$ac_cxx_werror_flag"
  2342. || test ! -s conftest.err'
  2343. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2344. (eval $ac_try) 2>&5
  2345. ac_status=$?
  2346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2347. (exit $ac_status); }; } &&
  2348. { ac_try='test -s conftest.$ac_objext'
  2349. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2350. (eval $ac_try) 2>&5
  2351. ac_status=$?
  2352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2353. (exit $ac_status); }; }; then
  2354. break
  2355. else
  2356. echo "$as_me: failed program was:" >&5
  2357. sed 's/^/| /' conftest.$ac_ext >&5
  2358. fi
  2359. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2360. done
  2361. rm -f conftest*
  2362. if test -n "$ac_declaration"; then
  2363. echo '#ifdef __cplusplus' >>confdefs.h
  2364. echo $ac_declaration >>confdefs.h
  2365. echo '#endif' >>confdefs.h
  2366. fi
  2367. ac_ext=c
  2368. ac_cpp='$CPP $CPPFLAGS'
  2369. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2370. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2371. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2372. if test -n "$ac_tool_prefix"; then
  2373. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2374. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2375. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2376. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2377. if test "${ac_cv_prog_RANLIB+set}" = set; then
  2378. echo $ECHO_N "(cached) $ECHO_C" >&6
  2379. else
  2380. if test -n "$RANLIB"; then
  2381. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2382. else
  2383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2384. for as_dir in $PATH
  2385. do
  2386. IFS=$as_save_IFS
  2387. test -z "$as_dir" && as_dir=.
  2388. for ac_exec_ext in '' $ac_executable_extensions; do
  2389. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2390. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2391. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2392. break 2
  2393. fi
  2394. done
  2395. done
  2396. fi
  2397. fi
  2398. RANLIB=$ac_cv_prog_RANLIB
  2399. if test -n "$RANLIB"; then
  2400. echo "$as_me:$LINENO: result: $RANLIB" >&5
  2401. echo "${ECHO_T}$RANLIB" >&6
  2402. else
  2403. echo "$as_me:$LINENO: result: no" >&5
  2404. echo "${ECHO_T}no" >&6
  2405. fi
  2406. fi
  2407. if test -z "$ac_cv_prog_RANLIB"; then
  2408. ac_ct_RANLIB=$RANLIB
  2409. # Extract the first word of "ranlib", so it can be a program name with args.
  2410. set dummy ranlib; ac_word=$2
  2411. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2412. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2413. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  2414. echo $ECHO_N "(cached) $ECHO_C" >&6
  2415. else
  2416. if test -n "$ac_ct_RANLIB"; then
  2417. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  2418. else
  2419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2420. for as_dir in $PATH
  2421. do
  2422. IFS=$as_save_IFS
  2423. test -z "$as_dir" && as_dir=.
  2424. for ac_exec_ext in '' $ac_executable_extensions; do
  2425. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2426. ac_cv_prog_ac_ct_RANLIB="ranlib"
  2427. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2428. break 2
  2429. fi
  2430. done
  2431. done
  2432. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  2433. fi
  2434. fi
  2435. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  2436. if test -n "$ac_ct_RANLIB"; then
  2437. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  2438. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  2439. else
  2440. echo "$as_me:$LINENO: result: no" >&5
  2441. echo "${ECHO_T}no" >&6
  2442. fi
  2443. RANLIB=$ac_ct_RANLIB
  2444. else
  2445. RANLIB="$ac_cv_prog_RANLIB"
  2446. fi
  2447. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2448. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2449. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2450. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2451. echo $ECHO_N "(cached) $ECHO_C" >&6
  2452. else
  2453. cat >conftest.make <<\_ACEOF
  2454. all:
  2455. @echo 'ac_maketemp="$(MAKE)"'
  2456. _ACEOF
  2457. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2458. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2459. if test -n "$ac_maketemp"; then
  2460. eval ac_cv_prog_make_${ac_make}_set=yes
  2461. else
  2462. eval ac_cv_prog_make_${ac_make}_set=no
  2463. fi
  2464. rm -f conftest.make
  2465. fi
  2466. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2467. echo "$as_me:$LINENO: result: yes" >&5
  2468. echo "${ECHO_T}yes" >&6
  2469. SET_MAKE=
  2470. else
  2471. echo "$as_me:$LINENO: result: no" >&5
  2472. echo "${ECHO_T}no" >&6
  2473. SET_MAKE="MAKE=${MAKE-make}"
  2474. fi
  2475. ac_ext=cc
  2476. ac_cpp='$CXXCPP $CPPFLAGS'
  2477. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2478. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2479. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2480. case "`(uname -sr) 2>/dev/null`" in
  2481. "SunOS 5"*)
  2482. SOLARIS=yes
  2483. USE_MITSHM=yes
  2484. ;;
  2485. "Linux"*)
  2486. LINUX=yes
  2487. USE_MITSHM=yes
  2488. ;;
  2489. esac
  2490. if test "$USE_MITSHM" = yes; then
  2491. MITSHM_CPPFLAGS="-DMITSHM"
  2492. fi
  2493. if test "$GCC" = yes; then
  2494. CFLAGS="$CFLAGS -Wall"
  2495. if test "$SOLARIS" = yes; then
  2496. CFLAGS="$CFLAGS -Wno-unknown-pragmas -Wno-implicit-int"
  2497. fi
  2498. fi
  2499. if test "$GXX" = yes; then
  2500. CXXFLAGS="$CXXFLAGS -Wall"
  2501. if test "$SOLARIS" = yes; then
  2502. CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -Wno-implicit-int -fpermissive"
  2503. fi
  2504. fi
  2505. ac_ext=cc
  2506. ac_cpp='$CXXCPP $CPPFLAGS'
  2507. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2508. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2509. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2510. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  2511. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  2512. if test -z "$CXXCPP"; then
  2513. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  2514. echo $ECHO_N "(cached) $ECHO_C" >&6
  2515. else
  2516. # Double quotes because CXXCPP needs to be expanded
  2517. for CXXCPP in "$CXX -E" "/lib/cpp"
  2518. do
  2519. ac_preproc_ok=false
  2520. for ac_cxx_preproc_warn_flag in '' yes
  2521. do
  2522. # Use a header file that comes with gcc, so configuring glibc
  2523. # with a fresh cross-compiler works.
  2524. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2525. # <limits.h> exists even on freestanding compilers.
  2526. # On the NeXT, cc -E runs the code through the compiler's parser,
  2527. # not just through cpp. "Syntax error" is here to catch this case.
  2528. cat >conftest.$ac_ext <<_ACEOF
  2529. /* confdefs.h. */
  2530. _ACEOF
  2531. cat confdefs.h >>conftest.$ac_ext
  2532. cat >>conftest.$ac_ext <<_ACEOF
  2533. /* end confdefs.h. */
  2534. #ifdef __STDC__
  2535. # include <limits.h>
  2536. #else
  2537. # include <assert.h>
  2538. #endif
  2539. Syntax error
  2540. _ACEOF
  2541. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2542. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2543. ac_status=$?
  2544. grep -v '^ *+' conftest.er1 >conftest.err
  2545. rm -f conftest.er1
  2546. cat conftest.err >&5
  2547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2548. (exit $ac_status); } >/dev/null; then
  2549. if test -s conftest.err; then
  2550. ac_cpp_err=$ac_cxx_preproc_warn_flag
  2551. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  2552. else
  2553. ac_cpp_err=
  2554. fi
  2555. else
  2556. ac_cpp_err=yes
  2557. fi
  2558. if test -z "$ac_cpp_err"; then
  2559. :
  2560. else
  2561. echo "$as_me: failed program was:" >&5
  2562. sed 's/^/| /' conftest.$ac_ext >&5
  2563. # Broken: fails on valid input.
  2564. continue
  2565. fi
  2566. rm -f conftest.err conftest.$ac_ext
  2567. # OK, works on sane cases. Now check whether non-existent headers
  2568. # can be detected and how.
  2569. cat >conftest.$ac_ext <<_ACEOF
  2570. /* confdefs.h. */
  2571. _ACEOF
  2572. cat confdefs.h >>conftest.$ac_ext
  2573. cat >>conftest.$ac_ext <<_ACEOF
  2574. /* end confdefs.h. */
  2575. #include <ac_nonexistent.h>
  2576. _ACEOF
  2577. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2578. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2579. ac_status=$?
  2580. grep -v '^ *+' conftest.er1 >conftest.err
  2581. rm -f conftest.er1
  2582. cat conftest.err >&5
  2583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2584. (exit $ac_status); } >/dev/null; then
  2585. if test -s conftest.err; then
  2586. ac_cpp_err=$ac_cxx_preproc_warn_flag
  2587. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  2588. else
  2589. ac_cpp_err=
  2590. fi
  2591. else
  2592. ac_cpp_err=yes
  2593. fi
  2594. if test -z "$ac_cpp_err"; then
  2595. # Broken: success on invalid input.
  2596. continue
  2597. else
  2598. echo "$as_me: failed program was:" >&5
  2599. sed 's/^/| /' conftest.$ac_ext >&5
  2600. # Passes both tests.
  2601. ac_preproc_ok=:
  2602. break
  2603. fi
  2604. rm -f conftest.err conftest.$ac_ext
  2605. done
  2606. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2607. rm -f conftest.err conftest.$ac_ext
  2608. if $ac_preproc_ok; then
  2609. break
  2610. fi
  2611. done
  2612. ac_cv_prog_CXXCPP=$CXXCPP
  2613. fi
  2614. CXXCPP=$ac_cv_prog_CXXCPP
  2615. else
  2616. ac_cv_prog_CXXCPP=$CXXCPP
  2617. fi
  2618. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  2619. echo "${ECHO_T}$CXXCPP" >&6
  2620. ac_preproc_ok=false
  2621. for ac_cxx_preproc_warn_flag in '' yes
  2622. do
  2623. # Use a header file that comes with gcc, so configuring glibc
  2624. # with a fresh cross-compiler works.
  2625. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2626. # <limits.h> exists even on freestanding compilers.
  2627. # On the NeXT, cc -E runs the code through the compiler's parser,
  2628. # not just through cpp. "Syntax error" is here to catch this case.
  2629. cat >conftest.$ac_ext <<_ACEOF
  2630. /* confdefs.h. */
  2631. _ACEOF
  2632. cat confdefs.h >>conftest.$ac_ext
  2633. cat >>conftest.$ac_ext <<_ACEOF
  2634. /* end confdefs.h. */
  2635. #ifdef __STDC__
  2636. # include <limits.h>
  2637. #else
  2638. # include <assert.h>
  2639. #endif
  2640. Syntax error
  2641. _ACEOF
  2642. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2643. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2644. ac_status=$?
  2645. grep -v '^ *+' conftest.er1 >conftest.err
  2646. rm -f conftest.er1
  2647. cat conftest.err >&5
  2648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2649. (exit $ac_status); } >/dev/null; then
  2650. if test -s conftest.err; then
  2651. ac_cpp_err=$ac_cxx_preproc_warn_flag
  2652. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  2653. else
  2654. ac_cpp_err=
  2655. fi
  2656. else
  2657. ac_cpp_err=yes
  2658. fi
  2659. if test -z "$ac_cpp_err"; then
  2660. :
  2661. else
  2662. echo "$as_me: failed program was:" >&5
  2663. sed 's/^/| /' conftest.$ac_ext >&5
  2664. # Broken: fails on valid input.
  2665. continue
  2666. fi
  2667. rm -f conftest.err conftest.$ac_ext
  2668. # OK, works on sane cases. Now check whether non-existent headers
  2669. # can be detected and how.
  2670. cat >conftest.$ac_ext <<_ACEOF
  2671. /* confdefs.h. */
  2672. _ACEOF
  2673. cat confdefs.h >>conftest.$ac_ext
  2674. cat >>conftest.$ac_ext <<_ACEOF
  2675. /* end confdefs.h. */
  2676. #include <ac_nonexistent.h>
  2677. _ACEOF
  2678. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2679. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2680. ac_status=$?
  2681. grep -v '^ *+' conftest.er1 >conftest.err
  2682. rm -f conftest.er1
  2683. cat conftest.err >&5
  2684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2685. (exit $ac_status); } >/dev/null; then
  2686. if test -s conftest.err; then
  2687. ac_cpp_err=$ac_cxx_preproc_warn_flag
  2688. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  2689. else
  2690. ac_cpp_err=
  2691. fi
  2692. else
  2693. ac_cpp_err=yes
  2694. fi
  2695. if test -z "$ac_cpp_err"; then
  2696. # Broken: success on invalid input.
  2697. continue
  2698. else
  2699. echo "$as_me: failed program was:" >&5
  2700. sed 's/^/| /' conftest.$ac_ext >&5
  2701. # Passes both tests.
  2702. ac_preproc_ok=:
  2703. break
  2704. fi
  2705. rm -f conftest.err conftest.$ac_ext
  2706. done
  2707. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2708. rm -f conftest.err conftest.$ac_ext
  2709. if $ac_preproc_ok; then
  2710. :
  2711. else
  2712. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2713. See \`config.log' for more details." >&5
  2714. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2715. See \`config.log' for more details." >&2;}
  2716. { (exit 1); exit 1; }; }
  2717. fi
  2718. ac_ext=cc
  2719. ac_cpp='$CXXCPP $CPPFLAGS'
  2720. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2721. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2722. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2723. echo "$as_me:$LINENO: checking for X" >&5
  2724. echo $ECHO_N "checking for X... $ECHO_C" >&6
  2725. # Check whether --with-x or --without-x was given.
  2726. if test "${with_x+set}" = set; then
  2727. withval="$with_x"
  2728. fi;
  2729. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  2730. if test "x$with_x" = xno; then
  2731. # The user explicitly disabled X.
  2732. have_x=disabled
  2733. else
  2734. if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  2735. # Both variables are already set.
  2736. have_x=yes
  2737. else
  2738. if test "${ac_cv_have_x+set}" = set; then
  2739. echo $ECHO_N "(cached) $ECHO_C" >&6
  2740. else
  2741. # One or both of the vars are not set, and there is no cached value.
  2742. ac_x_includes=no ac_x_libraries=no
  2743. rm -fr conftest.dir
  2744. if mkdir conftest.dir; then
  2745. cd conftest.dir
  2746. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  2747. cat >Imakefile <<'_ACEOF'
  2748. acfindx:
  2749. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  2750. _ACEOF
  2751. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  2752. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2753. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  2754. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  2755. for ac_extension in a so sl; do
  2756. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  2757. test -f $ac_im_libdir/libX11.$ac_extension; then
  2758. ac_im_usrlibdir=$ac_im_libdir; break
  2759. fi
  2760. done
  2761. # Screen out bogus values from the imake configuration. They are
  2762. # bogus both because they are the default anyway, and because
  2763. # using them would break gcc on systems where it needs fixed includes.
  2764. case $ac_im_incroot in
  2765. /usr/include) ;;
  2766. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  2767. esac
  2768. case $ac_im_usrlibdir in
  2769. /usr/lib | /lib) ;;
  2770. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  2771. esac
  2772. fi
  2773. cd ..
  2774. rm -fr conftest.dir
  2775. fi
  2776. # Standard set of common directories for X headers.
  2777. # Check X11 before X11Rn because it is often a symlink to the current release.
  2778. ac_x_header_dirs='
  2779. /usr/X11/include
  2780. /usr/X11R6/include
  2781. /usr/X11R5/include
  2782. /usr/X11R4/include
  2783. /usr/include/X11
  2784. /usr/include/X11R6
  2785. /usr/include/X11R5
  2786. /usr/include/X11R4
  2787. /usr/local/X11/include
  2788. /usr/local/X11R6/include
  2789. /usr/local/X11R5/include
  2790. /usr/local/X11R4/include
  2791. /usr/local/include/X11
  2792. /usr/local/include/X11R6
  2793. /usr/local/include/X11R5
  2794. /usr/local/include/X11R4
  2795. /usr/X386/include
  2796. /usr/x386/include
  2797. /usr/XFree86/include/X11
  2798. /usr/include
  2799. /usr/local/include
  2800. /usr/unsupported/include
  2801. /usr/athena/include
  2802. /usr/local/x11r5/include
  2803. /usr/lpp/Xamples/include
  2804. /usr/openwin/include
  2805. /usr/openwin/share/include'
  2806. if test "$ac_x_includes" = no; then
  2807. # Guess where to find include files, by looking for Intrinsic.h.
  2808. # First, try using that file with no special directory specified.
  2809. cat >conftest.$ac_ext <<_ACEOF
  2810. /* confdefs.h. */
  2811. _ACEOF
  2812. cat confdefs.h >>conftest.$ac_ext
  2813. cat >>conftest.$ac_ext <<_ACEOF
  2814. /* end confdefs.h. */
  2815. #include <X11/Intrinsic.h>
  2816. _ACEOF
  2817. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2818. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2819. ac_status=$?
  2820. grep -v '^ *+' conftest.er1 >conftest.err
  2821. rm -f conftest.er1
  2822. cat conftest.err >&5
  2823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2824. (exit $ac_status); } >/dev/null; then
  2825. if test -s conftest.err; then
  2826. ac_cpp_err=$ac_cxx_preproc_warn_flag
  2827. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  2828. else
  2829. ac_cpp_err=
  2830. fi
  2831. else
  2832. ac_cpp_err=yes
  2833. fi
  2834. if test -z "$ac_cpp_err"; then
  2835. # We can compile using X headers with no special include directory.
  2836. ac_x_includes=
  2837. else
  2838. echo "$as_me: failed program was:" >&5
  2839. sed 's/^/| /' conftest.$ac_ext >&5
  2840. for ac_dir in $ac_x_header_dirs; do
  2841. if test -r "$ac_dir/X11/Intrinsic.h"; then
  2842. ac_x_includes=$ac_dir
  2843. break
  2844. fi
  2845. done
  2846. fi
  2847. rm -f conftest.err conftest.$ac_ext
  2848. fi # $ac_x_includes = no
  2849. if test "$ac_x_libraries" = no; then
  2850. # Check for the libraries.
  2851. # See if we find them without any special options.
  2852. # Don't add to $LIBS permanently.
  2853. ac_save_LIBS=$LIBS
  2854. LIBS="-lXt $LIBS"
  2855. cat >conftest.$ac_ext <<_ACEOF
  2856. /* confdefs.h. */
  2857. _ACEOF
  2858. cat confdefs.h >>conftest.$ac_ext
  2859. cat >>conftest.$ac_ext <<_ACEOF
  2860. /* end confdefs.h. */
  2861. #include <X11/Intrinsic.h>
  2862. int
  2863. main ()
  2864. {
  2865. XtMalloc (0)
  2866. ;
  2867. return 0;
  2868. }
  2869. _ACEOF
  2870. rm -f conftest.$ac_objext conftest$ac_exeext
  2871. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2872. (eval $ac_link) 2>conftest.er1
  2873. ac_status=$?
  2874. grep -v '^ *+' conftest.er1 >conftest.err
  2875. rm -f conftest.er1
  2876. cat conftest.err >&5
  2877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2878. (exit $ac_status); } &&
  2879. { ac_try='test -z "$ac_cxx_werror_flag"
  2880. || test ! -s conftest.err'
  2881. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2882. (eval $ac_try) 2>&5
  2883. ac_status=$?
  2884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2885. (exit $ac_status); }; } &&
  2886. { ac_try='test -s conftest$ac_exeext'
  2887. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2888. (eval $ac_try) 2>&5
  2889. ac_status=$?
  2890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2891. (exit $ac_status); }; }; then
  2892. LIBS=$ac_save_LIBS
  2893. # We can link X programs with no special library path.
  2894. ac_x_libraries=
  2895. else
  2896. echo "$as_me: failed program was:" >&5
  2897. sed 's/^/| /' conftest.$ac_ext >&5
  2898. LIBS=$ac_save_LIBS
  2899. for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  2900. do
  2901. # Don't even attempt the hair of trying to link an X program!
  2902. for ac_extension in a so sl; do
  2903. if test -r $ac_dir/libXt.$ac_extension; then
  2904. ac_x_libraries=$ac_dir
  2905. break 2
  2906. fi
  2907. done
  2908. done
  2909. fi
  2910. rm -f conftest.err conftest.$ac_objext \
  2911. conftest$ac_exeext conftest.$ac_ext
  2912. fi # $ac_x_libraries = no
  2913. if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
  2914. # Didn't find X anywhere. Cache the known absence of X.
  2915. ac_cv_have_x="have_x=no"
  2916. else
  2917. # Record where we found X for the cache.
  2918. ac_cv_have_x="have_x=yes \
  2919. ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  2920. fi
  2921. fi
  2922. fi
  2923. eval "$ac_cv_have_x"
  2924. fi # $with_x != no
  2925. if test "$have_x" != yes; then
  2926. echo "$as_me:$LINENO: result: $have_x" >&5
  2927. echo "${ECHO_T}$have_x" >&6
  2928. no_x=yes
  2929. else
  2930. # If each of the values was on the command line, it overrides each guess.
  2931. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  2932. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  2933. # Update the cache value to reflect the command line values.
  2934. ac_cv_have_x="have_x=yes \
  2935. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  2936. echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
  2937. echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
  2938. fi
  2939. if test "$no_x" = yes; then
  2940. # Not all programs may use this symbol, but it does not hurt to define it.
  2941. cat >>confdefs.h <<\_ACEOF
  2942. #define X_DISPLAY_MISSING 1
  2943. _ACEOF
  2944. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  2945. else
  2946. if test -n "$x_includes"; then
  2947. X_CFLAGS="$X_CFLAGS -I$x_includes"
  2948. fi
  2949. # It would also be nice to do this for all -L options, not just this one.
  2950. if test -n "$x_libraries"; then
  2951. X_LIBS="$X_LIBS -L$x_libraries"
  2952. # For Solaris; some versions of Sun CC require a space after -R and
  2953. # others require no space. Words are not sufficient . . . .
  2954. case `(uname -sr) 2>/dev/null` in
  2955. "SunOS 5"*)
  2956. echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
  2957. echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
  2958. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  2959. cat >conftest.$ac_ext <<_ACEOF
  2960. /* confdefs.h. */
  2961. _ACEOF
  2962. cat confdefs.h >>conftest.$ac_ext
  2963. cat >>conftest.$ac_ext <<_ACEOF
  2964. /* end confdefs.h. */
  2965. int
  2966. main ()
  2967. {
  2968. ;
  2969. return 0;
  2970. }
  2971. _ACEOF
  2972. rm -f conftest.$ac_objext conftest$ac_exeext
  2973. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2974. (eval $ac_link) 2>conftest.er1
  2975. ac_status=$?
  2976. grep -v '^ *+' conftest.er1 >conftest.err
  2977. rm -f conftest.er1
  2978. cat conftest.err >&5
  2979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2980. (exit $ac_status); } &&
  2981. { ac_try='test -z "$ac_cxx_werror_flag"
  2982. || test ! -s conftest.err'
  2983. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2984. (eval $ac_try) 2>&5
  2985. ac_status=$?
  2986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2987. (exit $ac_status); }; } &&
  2988. { ac_try='test -s conftest$ac_exeext'
  2989. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2990. (eval $ac_try) 2>&5
  2991. ac_status=$?
  2992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2993. (exit $ac_status); }; }; then
  2994. ac_R_nospace=yes
  2995. else
  2996. echo "$as_me: failed program was:" >&5
  2997. sed 's/^/| /' conftest.$ac_ext >&5
  2998. ac_R_nospace=no
  2999. fi
  3000. rm -f conftest.err conftest.$ac_objext \
  3001. conftest$ac_exeext conftest.$ac_ext
  3002. if test $ac_R_nospace = yes; then
  3003. echo "$as_me:$LINENO: result: no" >&5
  3004. echo "${ECHO_T}no" >&6
  3005. X_LIBS="$X_LIBS -R$x_libraries"
  3006. else
  3007. LIBS="$ac_xsave_LIBS -R $x_libraries"
  3008. cat >conftest.$ac_ext <<_ACEOF
  3009. /* confdefs.h. */
  3010. _ACEOF
  3011. cat confdefs.h >>conftest.$ac_ext
  3012. cat >>conftest.$ac_ext <<_ACEOF
  3013. /* end confdefs.h. */
  3014. int
  3015. main ()
  3016. {
  3017. ;
  3018. return 0;
  3019. }
  3020. _ACEOF
  3021. rm -f conftest.$ac_objext conftest$ac_exeext
  3022. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3023. (eval $ac_link) 2>conftest.er1
  3024. ac_status=$?
  3025. grep -v '^ *+' conftest.er1 >conftest.err
  3026. rm -f conftest.er1
  3027. cat conftest.err >&5
  3028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3029. (exit $ac_status); } &&
  3030. { ac_try='test -z "$ac_cxx_werror_flag"
  3031. || test ! -s conftest.err'
  3032. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3033. (eval $ac_try) 2>&5
  3034. ac_status=$?
  3035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3036. (exit $ac_status); }; } &&
  3037. { ac_try='test -s conftest$ac_exeext'
  3038. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3039. (eval $ac_try) 2>&5
  3040. ac_status=$?
  3041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3042. (exit $ac_status); }; }; then
  3043. ac_R_space=yes
  3044. else
  3045. echo "$as_me: failed program was:" >&5
  3046. sed 's/^/| /' conftest.$ac_ext >&5
  3047. ac_R_space=no
  3048. fi
  3049. rm -f conftest.err conftest.$ac_objext \
  3050. conftest$ac_exeext conftest.$ac_ext
  3051. if test $ac_R_space = yes; then
  3052. echo "$as_me:$LINENO: result: yes" >&5
  3053. echo "${ECHO_T}yes" >&6
  3054. X_LIBS="$X_LIBS -R $x_libraries"
  3055. else
  3056. echo "$as_me:$LINENO: result: neither works" >&5
  3057. echo "${ECHO_T}neither works" >&6
  3058. fi
  3059. fi
  3060. LIBS=$ac_xsave_LIBS
  3061. esac
  3062. fi
  3063. # Check for system-dependent libraries X programs must link with.
  3064. # Do this before checking for the system-independent R6 libraries
  3065. # (-lICE), since we may need -lsocket or whatever for X linking.
  3066. if test "$ISC" = yes; then
  3067. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  3068. else
  3069. # Martyn Johnson says this is needed for Ultrix, if the X
  3070. # libraries were built with DECnet support. And Karl Berry says
  3071. # the Alpha needs dnet_stub (dnet does not exist).
  3072. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  3073. cat >conftest.$ac_ext <<_ACEOF
  3074. /* confdefs.h. */
  3075. _ACEOF
  3076. cat confdefs.h >>conftest.$ac_ext
  3077. cat >>conftest.$ac_ext <<_ACEOF
  3078. /* end confdefs.h. */
  3079. /* Override any gcc2 internal prototype to avoid an error. */
  3080. #ifdef __cplusplus
  3081. extern "C"
  3082. #endif
  3083. /* We use char because int might match the return type of a gcc2
  3084. builtin and then its argument prototype would still apply. */
  3085. char XOpenDisplay ();
  3086. int
  3087. main ()
  3088. {
  3089. XOpenDisplay ();
  3090. ;
  3091. return 0;
  3092. }
  3093. _ACEOF
  3094. rm -f conftest.$ac_objext conftest$ac_exeext
  3095. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3096. (eval $ac_link) 2>conftest.er1
  3097. ac_status=$?
  3098. grep -v '^ *+' conftest.er1 >conftest.err
  3099. rm -f conftest.er1
  3100. cat conftest.err >&5
  3101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3102. (exit $ac_status); } &&
  3103. { ac_try='test -z "$ac_cxx_werror_flag"
  3104. || test ! -s conftest.err'
  3105. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3106. (eval $ac_try) 2>&5
  3107. ac_status=$?
  3108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3109. (exit $ac_status); }; } &&
  3110. { ac_try='test -s conftest$ac_exeext'
  3111. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3112. (eval $ac_try) 2>&5
  3113. ac_status=$?
  3114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3115. (exit $ac_status); }; }; then
  3116. :
  3117. else
  3118. echo "$as_me: failed program was:" >&5
  3119. sed 's/^/| /' conftest.$ac_ext >&5
  3120. echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
  3121. echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
  3122. if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
  3123. echo $ECHO_N "(cached) $ECHO_C" >&6
  3124. else
  3125. ac_check_lib_save_LIBS=$LIBS
  3126. LIBS="-ldnet $LIBS"
  3127. cat >conftest.$ac_ext <<_ACEOF
  3128. /* confdefs.h. */
  3129. _ACEOF
  3130. cat confdefs.h >>conftest.$ac_ext
  3131. cat >>conftest.$ac_ext <<_ACEOF
  3132. /* end confdefs.h. */
  3133. /* Override any gcc2 internal prototype to avoid an error. */
  3134. #ifdef __cplusplus
  3135. extern "C"
  3136. #endif
  3137. /* We use char because int might match the return type of a gcc2
  3138. builtin and then its argument prototype would still apply. */
  3139. char dnet_ntoa ();
  3140. int
  3141. main ()
  3142. {
  3143. dnet_ntoa ();
  3144. ;
  3145. return 0;
  3146. }
  3147. _ACEOF
  3148. rm -f conftest.$ac_objext conftest$ac_exeext
  3149. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3150. (eval $ac_link) 2>conftest.er1
  3151. ac_status=$?
  3152. grep -v '^ *+' conftest.er1 >conftest.err
  3153. rm -f conftest.er1
  3154. cat conftest.err >&5
  3155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3156. (exit $ac_status); } &&
  3157. { ac_try='test -z "$ac_cxx_werror_flag"
  3158. || test ! -s conftest.err'
  3159. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3160. (eval $ac_try) 2>&5
  3161. ac_status=$?
  3162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3163. (exit $ac_status); }; } &&
  3164. { ac_try='test -s conftest$ac_exeext'
  3165. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3166. (eval $ac_try) 2>&5
  3167. ac_status=$?
  3168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3169. (exit $ac_status); }; }; then
  3170. ac_cv_lib_dnet_dnet_ntoa=yes
  3171. else
  3172. echo "$as_me: failed program was:" >&5
  3173. sed 's/^/| /' conftest.$ac_ext >&5
  3174. ac_cv_lib_dnet_dnet_ntoa=no
  3175. fi
  3176. rm -f conftest.err conftest.$ac_objext \
  3177. conftest$ac_exeext conftest.$ac_ext
  3178. LIBS=$ac_check_lib_save_LIBS
  3179. fi
  3180. echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  3181. echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
  3182. if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  3183. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  3184. fi
  3185. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  3186. echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
  3187. echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
  3188. if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
  3189. echo $ECHO_N "(cached) $ECHO_C" >&6
  3190. else
  3191. ac_check_lib_save_LIBS=$LIBS
  3192. LIBS="-ldnet_stub $LIBS"
  3193. cat >conftest.$ac_ext <<_ACEOF
  3194. /* confdefs.h. */
  3195. _ACEOF
  3196. cat confdefs.h >>conftest.$ac_ext
  3197. cat >>conftest.$ac_ext <<_ACEOF
  3198. /* end confdefs.h. */
  3199. /* Override any gcc2 internal prototype to avoid an error. */
  3200. #ifdef __cplusplus
  3201. extern "C"
  3202. #endif
  3203. /* We use char because int might match the return type of a gcc2
  3204. builtin and then its argument prototype would still apply. */
  3205. char dnet_ntoa ();
  3206. int
  3207. main ()
  3208. {
  3209. dnet_ntoa ();
  3210. ;
  3211. return 0;
  3212. }
  3213. _ACEOF
  3214. rm -f conftest.$ac_objext conftest$ac_exeext
  3215. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3216. (eval $ac_link) 2>conftest.er1
  3217. ac_status=$?
  3218. grep -v '^ *+' conftest.er1 >conftest.err
  3219. rm -f conftest.er1
  3220. cat conftest.err >&5
  3221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3222. (exit $ac_status); } &&
  3223. { ac_try='test -z "$ac_cxx_werror_flag"
  3224. || test ! -s conftest.err'
  3225. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3226. (eval $ac_try) 2>&5
  3227. ac_status=$?
  3228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3229. (exit $ac_status); }; } &&
  3230. { ac_try='test -s conftest$ac_exeext'
  3231. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3232. (eval $ac_try) 2>&5
  3233. ac_status=$?
  3234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3235. (exit $ac_status); }; }; then
  3236. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  3237. else
  3238. echo "$as_me: failed program was:" >&5
  3239. sed 's/^/| /' conftest.$ac_ext >&5
  3240. ac_cv_lib_dnet_stub_dnet_ntoa=no
  3241. fi
  3242. rm -f conftest.err conftest.$ac_objext \
  3243. conftest$ac_exeext conftest.$ac_ext
  3244. LIBS=$ac_check_lib_save_LIBS
  3245. fi
  3246. echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  3247. echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
  3248. if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
  3249. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3250. fi
  3251. fi
  3252. fi
  3253. rm -f conftest.err conftest.$ac_objext \
  3254. conftest$ac_exeext conftest.$ac_ext
  3255. LIBS="$ac_xsave_LIBS"
  3256. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  3257. # to get the SysV transport functions.
  3258. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  3259. # needs -lnsl.
  3260. # The nsl library prevents programs from opening the X display
  3261. # on Irix 5.2, according to T.E. Dickey.
  3262. # The functions gethostbyname, getservbyname, and inet_addr are
  3263. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  3264. echo "$as_me:$LINENO: checking for gethostbyname" >&5
  3265. echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
  3266. if test "${ac_cv_func_gethostbyname+set}" = set; then
  3267. echo $ECHO_N "(cached) $ECHO_C" >&6
  3268. else
  3269. cat >conftest.$ac_ext <<_ACEOF
  3270. /* confdefs.h. */
  3271. _ACEOF
  3272. cat confdefs.h >>conftest.$ac_ext
  3273. cat >>conftest.$ac_ext <<_ACEOF
  3274. /* end confdefs.h. */
  3275. /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
  3276. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3277. #define gethostbyname innocuous_gethostbyname
  3278. /* System header to define __stub macros and hopefully few prototypes,
  3279. which can conflict with char gethostbyname (); below.
  3280. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3281. <limits.h> exists even on freestanding compilers. */
  3282. #ifdef __STDC__
  3283. # include <limits.h>
  3284. #else
  3285. # include <assert.h>
  3286. #endif
  3287. #undef gethostbyname
  3288. /* Override any gcc2 internal prototype to avoid an error. */
  3289. #ifdef __cplusplus
  3290. extern "C"
  3291. {
  3292. #endif
  3293. /* We use char because int might match the return type of a gcc2
  3294. builtin and then its argument prototype would still apply. */
  3295. char gethostbyname ();
  3296. /* The GNU C library defines this for functions which it implements
  3297. to always fail with ENOSYS. Some functions are actually named
  3298. something starting with __ and the normal name is an alias. */
  3299. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3300. choke me
  3301. #else
  3302. char (*f) () = gethostbyname;
  3303. #endif
  3304. #ifdef __cplusplus
  3305. }
  3306. #endif
  3307. int
  3308. main ()
  3309. {
  3310. return f != gethostbyname;
  3311. ;
  3312. return 0;
  3313. }
  3314. _ACEOF
  3315. rm -f conftest.$ac_objext conftest$ac_exeext
  3316. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3317. (eval $ac_link) 2>conftest.er1
  3318. ac_status=$?
  3319. grep -v '^ *+' conftest.er1 >conftest.err
  3320. rm -f conftest.er1
  3321. cat conftest.err >&5
  3322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3323. (exit $ac_status); } &&
  3324. { ac_try='test -z "$ac_cxx_werror_flag"
  3325. || test ! -s conftest.err'
  3326. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3327. (eval $ac_try) 2>&5
  3328. ac_status=$?
  3329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3330. (exit $ac_status); }; } &&
  3331. { ac_try='test -s conftest$ac_exeext'
  3332. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3333. (eval $ac_try) 2>&5
  3334. ac_status=$?
  3335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3336. (exit $ac_status); }; }; then
  3337. ac_cv_func_gethostbyname=yes
  3338. else
  3339. echo "$as_me: failed program was:" >&5
  3340. sed 's/^/| /' conftest.$ac_ext >&5
  3341. ac_cv_func_gethostbyname=no
  3342. fi
  3343. rm -f conftest.err conftest.$ac_objext \
  3344. conftest$ac_exeext conftest.$ac_ext
  3345. fi
  3346. echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
  3347. echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
  3348. if test $ac_cv_func_gethostbyname = no; then
  3349. echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  3350. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  3351. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  3352. echo $ECHO_N "(cached) $ECHO_C" >&6
  3353. else
  3354. ac_check_lib_save_LIBS=$LIBS
  3355. LIBS="-lnsl $LIBS"
  3356. cat >conftest.$ac_ext <<_ACEOF
  3357. /* confdefs.h. */
  3358. _ACEOF
  3359. cat confdefs.h >>conftest.$ac_ext
  3360. cat >>conftest.$ac_ext <<_ACEOF
  3361. /* end confdefs.h. */
  3362. /* Override any gcc2 internal prototype to avoid an error. */
  3363. #ifdef __cplusplus
  3364. extern "C"
  3365. #endif
  3366. /* We use char because int might match the return type of a gcc2
  3367. builtin and then its argument prototype would still apply. */
  3368. char gethostbyname ();
  3369. int
  3370. main ()
  3371. {
  3372. gethostbyname ();
  3373. ;
  3374. return 0;
  3375. }
  3376. _ACEOF
  3377. rm -f conftest.$ac_objext conftest$ac_exeext
  3378. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3379. (eval $ac_link) 2>conftest.er1
  3380. ac_status=$?
  3381. grep -v '^ *+' conftest.er1 >conftest.err
  3382. rm -f conftest.er1
  3383. cat conftest.err >&5
  3384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3385. (exit $ac_status); } &&
  3386. { ac_try='test -z "$ac_cxx_werror_flag"
  3387. || test ! -s conftest.err'
  3388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3389. (eval $ac_try) 2>&5
  3390. ac_status=$?
  3391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3392. (exit $ac_status); }; } &&
  3393. { ac_try='test -s conftest$ac_exeext'
  3394. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3395. (eval $ac_try) 2>&5
  3396. ac_status=$?
  3397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3398. (exit $ac_status); }; }; then
  3399. ac_cv_lib_nsl_gethostbyname=yes
  3400. else
  3401. echo "$as_me: failed program was:" >&5
  3402. sed 's/^/| /' conftest.$ac_ext >&5
  3403. ac_cv_lib_nsl_gethostbyname=no
  3404. fi
  3405. rm -f conftest.err conftest.$ac_objext \
  3406. conftest$ac_exeext conftest.$ac_ext
  3407. LIBS=$ac_check_lib_save_LIBS
  3408. fi
  3409. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  3410. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  3411. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  3412. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  3413. fi
  3414. if test $ac_cv_lib_nsl_gethostbyname = no; then
  3415. echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
  3416. echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
  3417. if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  3418. echo $ECHO_N "(cached) $ECHO_C" >&6
  3419. else
  3420. ac_check_lib_save_LIBS=$LIBS
  3421. LIBS="-lbsd $LIBS"
  3422. cat >conftest.$ac_ext <<_ACEOF
  3423. /* confdefs.h. */
  3424. _ACEOF
  3425. cat confdefs.h >>conftest.$ac_ext
  3426. cat >>conftest.$ac_ext <<_ACEOF
  3427. /* end confdefs.h. */
  3428. /* Override any gcc2 internal prototype to avoid an error. */
  3429. #ifdef __cplusplus
  3430. extern "C"
  3431. #endif
  3432. /* We use char because int might match the return type of a gcc2
  3433. builtin and then its argument prototype would still apply. */
  3434. char gethostbyname ();
  3435. int
  3436. main ()
  3437. {
  3438. gethostbyname ();
  3439. ;
  3440. return 0;
  3441. }
  3442. _ACEOF
  3443. rm -f conftest.$ac_objext conftest$ac_exeext
  3444. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3445. (eval $ac_link) 2>conftest.er1
  3446. ac_status=$?
  3447. grep -v '^ *+' conftest.er1 >conftest.err
  3448. rm -f conftest.er1
  3449. cat conftest.err >&5
  3450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3451. (exit $ac_status); } &&
  3452. { ac_try='test -z "$ac_cxx_werror_flag"
  3453. || test ! -s conftest.err'
  3454. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3455. (eval $ac_try) 2>&5
  3456. ac_status=$?
  3457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3458. (exit $ac_status); }; } &&
  3459. { ac_try='test -s conftest$ac_exeext'
  3460. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3461. (eval $ac_try) 2>&5
  3462. ac_status=$?
  3463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3464. (exit $ac_status); }; }; then
  3465. ac_cv_lib_bsd_gethostbyname=yes
  3466. else
  3467. echo "$as_me: failed program was:" >&5
  3468. sed 's/^/| /' conftest.$ac_ext >&5
  3469. ac_cv_lib_bsd_gethostbyname=no
  3470. fi
  3471. rm -f conftest.err conftest.$ac_objext \
  3472. conftest$ac_exeext conftest.$ac_ext
  3473. LIBS=$ac_check_lib_save_LIBS
  3474. fi
  3475. echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
  3476. echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
  3477. if test $ac_cv_lib_bsd_gethostbyname = yes; then
  3478. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  3479. fi
  3480. fi
  3481. fi
  3482. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  3483. # socket/setsockopt and other routines are undefined under SCO ODT
  3484. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  3485. # on later versions), says Simon Leinen: it contains gethostby*
  3486. # variants that don't use the name server (or something). -lsocket
  3487. # must be given before -lnsl if both are needed. We assume that
  3488. # if connect needs -lnsl, so does gethostbyname.
  3489. echo "$as_me:$LINENO: checking for connect" >&5
  3490. echo $ECHO_N "checking for connect... $ECHO_C" >&6
  3491. if test "${ac_cv_func_connect+set}" = set; then
  3492. echo $ECHO_N "(cached) $ECHO_C" >&6
  3493. else
  3494. cat >conftest.$ac_ext <<_ACEOF
  3495. /* confdefs.h. */
  3496. _ACEOF
  3497. cat confdefs.h >>conftest.$ac_ext
  3498. cat >>conftest.$ac_ext <<_ACEOF
  3499. /* end confdefs.h. */
  3500. /* Define connect to an innocuous variant, in case <limits.h> declares connect.
  3501. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3502. #define connect innocuous_connect
  3503. /* System header to define __stub macros and hopefully few prototypes,
  3504. which can conflict with char connect (); below.
  3505. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3506. <limits.h> exists even on freestanding compilers. */
  3507. #ifdef __STDC__
  3508. # include <limits.h>
  3509. #else
  3510. # include <assert.h>
  3511. #endif
  3512. #undef connect
  3513. /* Override any gcc2 internal prototype to avoid an error. */
  3514. #ifdef __cplusplus
  3515. extern "C"
  3516. {
  3517. #endif
  3518. /* We use char because int might match the return type of a gcc2
  3519. builtin and then its argument prototype would still apply. */
  3520. char connect ();
  3521. /* The GNU C library defines this for functions which it implements
  3522. to always fail with ENOSYS. Some functions are actually named
  3523. something starting with __ and the normal name is an alias. */
  3524. #if defined (__stub_connect) || defined (__stub___connect)
  3525. choke me
  3526. #else
  3527. char (*f) () = connect;
  3528. #endif
  3529. #ifdef __cplusplus
  3530. }
  3531. #endif
  3532. int
  3533. main ()
  3534. {
  3535. return f != connect;
  3536. ;
  3537. return 0;
  3538. }
  3539. _ACEOF
  3540. rm -f conftest.$ac_objext conftest$ac_exeext
  3541. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3542. (eval $ac_link) 2>conftest.er1
  3543. ac_status=$?
  3544. grep -v '^ *+' conftest.er1 >conftest.err
  3545. rm -f conftest.er1
  3546. cat conftest.err >&5
  3547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3548. (exit $ac_status); } &&
  3549. { ac_try='test -z "$ac_cxx_werror_flag"
  3550. || test ! -s conftest.err'
  3551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3552. (eval $ac_try) 2>&5
  3553. ac_status=$?
  3554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3555. (exit $ac_status); }; } &&
  3556. { ac_try='test -s conftest$ac_exeext'
  3557. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3558. (eval $ac_try) 2>&5
  3559. ac_status=$?
  3560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3561. (exit $ac_status); }; }; then
  3562. ac_cv_func_connect=yes
  3563. else
  3564. echo "$as_me: failed program was:" >&5
  3565. sed 's/^/| /' conftest.$ac_ext >&5
  3566. ac_cv_func_connect=no
  3567. fi
  3568. rm -f conftest.err conftest.$ac_objext \
  3569. conftest$ac_exeext conftest.$ac_ext
  3570. fi
  3571. echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
  3572. echo "${ECHO_T}$ac_cv_func_connect" >&6
  3573. if test $ac_cv_func_connect = no; then
  3574. echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  3575. echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
  3576. if test "${ac_cv_lib_socket_connect+set}" = set; then
  3577. echo $ECHO_N "(cached) $ECHO_C" >&6
  3578. else
  3579. ac_check_lib_save_LIBS=$LIBS
  3580. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  3581. cat >conftest.$ac_ext <<_ACEOF
  3582. /* confdefs.h. */
  3583. _ACEOF
  3584. cat confdefs.h >>conftest.$ac_ext
  3585. cat >>conftest.$ac_ext <<_ACEOF
  3586. /* end confdefs.h. */
  3587. /* Override any gcc2 internal prototype to avoid an error. */
  3588. #ifdef __cplusplus
  3589. extern "C"
  3590. #endif
  3591. /* We use char because int might match the return type of a gcc2
  3592. builtin and then its argument prototype would still apply. */
  3593. char connect ();
  3594. int
  3595. main ()
  3596. {
  3597. connect ();
  3598. ;
  3599. return 0;
  3600. }
  3601. _ACEOF
  3602. rm -f conftest.$ac_objext conftest$ac_exeext
  3603. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3604. (eval $ac_link) 2>conftest.er1
  3605. ac_status=$?
  3606. grep -v '^ *+' conftest.er1 >conftest.err
  3607. rm -f conftest.er1
  3608. cat conftest.err >&5
  3609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3610. (exit $ac_status); } &&
  3611. { ac_try='test -z "$ac_cxx_werror_flag"
  3612. || test ! -s conftest.err'
  3613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3614. (eval $ac_try) 2>&5
  3615. ac_status=$?
  3616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3617. (exit $ac_status); }; } &&
  3618. { ac_try='test -s conftest$ac_exeext'
  3619. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3620. (eval $ac_try) 2>&5
  3621. ac_status=$?
  3622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3623. (exit $ac_status); }; }; then
  3624. ac_cv_lib_socket_connect=yes
  3625. else
  3626. echo "$as_me: failed program was:" >&5
  3627. sed 's/^/| /' conftest.$ac_ext >&5
  3628. ac_cv_lib_socket_connect=no
  3629. fi
  3630. rm -f conftest.err conftest.$ac_objext \
  3631. conftest$ac_exeext conftest.$ac_ext
  3632. LIBS=$ac_check_lib_save_LIBS
  3633. fi
  3634. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  3635. echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
  3636. if test $ac_cv_lib_socket_connect = yes; then
  3637. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  3638. fi
  3639. fi
  3640. # Guillermo Gomez says -lposix is necessary on A/UX.
  3641. echo "$as_me:$LINENO: checking for remove" >&5
  3642. echo $ECHO_N "checking for remove... $ECHO_C" >&6
  3643. if test "${ac_cv_func_remove+set}" = set; then
  3644. echo $ECHO_N "(cached) $ECHO_C" >&6
  3645. else
  3646. cat >conftest.$ac_ext <<_ACEOF
  3647. /* confdefs.h. */
  3648. _ACEOF
  3649. cat confdefs.h >>conftest.$ac_ext
  3650. cat >>conftest.$ac_ext <<_ACEOF
  3651. /* end confdefs.h. */
  3652. /* Define remove to an innocuous variant, in case <limits.h> declares remove.
  3653. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3654. #define remove innocuous_remove
  3655. /* System header to define __stub macros and hopefully few prototypes,
  3656. which can conflict with char remove (); below.
  3657. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3658. <limits.h> exists even on freestanding compilers. */
  3659. #ifdef __STDC__
  3660. # include <limits.h>
  3661. #else
  3662. # include <assert.h>
  3663. #endif
  3664. #undef remove
  3665. /* Override any gcc2 internal prototype to avoid an error. */
  3666. #ifdef __cplusplus
  3667. extern "C"
  3668. {
  3669. #endif
  3670. /* We use char because int might match the return type of a gcc2
  3671. builtin and then its argument prototype would still apply. */
  3672. char remove ();
  3673. /* The GNU C library defines this for functions which it implements
  3674. to always fail with ENOSYS. Some functions are actually named
  3675. something starting with __ and the normal name is an alias. */
  3676. #if defined (__stub_remove) || defined (__stub___remove)
  3677. choke me
  3678. #else
  3679. char (*f) () = remove;
  3680. #endif
  3681. #ifdef __cplusplus
  3682. }
  3683. #endif
  3684. int
  3685. main ()
  3686. {
  3687. return f != remove;
  3688. ;
  3689. return 0;
  3690. }
  3691. _ACEOF
  3692. rm -f conftest.$ac_objext conftest$ac_exeext
  3693. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3694. (eval $ac_link) 2>conftest.er1
  3695. ac_status=$?
  3696. grep -v '^ *+' conftest.er1 >conftest.err
  3697. rm -f conftest.er1
  3698. cat conftest.err >&5
  3699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3700. (exit $ac_status); } &&
  3701. { ac_try='test -z "$ac_cxx_werror_flag"
  3702. || test ! -s conftest.err'
  3703. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3704. (eval $ac_try) 2>&5
  3705. ac_status=$?
  3706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3707. (exit $ac_status); }; } &&
  3708. { ac_try='test -s conftest$ac_exeext'
  3709. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3710. (eval $ac_try) 2>&5
  3711. ac_status=$?
  3712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3713. (exit $ac_status); }; }; then
  3714. ac_cv_func_remove=yes
  3715. else
  3716. echo "$as_me: failed program was:" >&5
  3717. sed 's/^/| /' conftest.$ac_ext >&5
  3718. ac_cv_func_remove=no
  3719. fi
  3720. rm -f conftest.err conftest.$ac_objext \
  3721. conftest$ac_exeext conftest.$ac_ext
  3722. fi
  3723. echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
  3724. echo "${ECHO_T}$ac_cv_func_remove" >&6
  3725. if test $ac_cv_func_remove = no; then
  3726. echo "$as_me:$LINENO: checking for remove in -lposix" >&5
  3727. echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
  3728. if test "${ac_cv_lib_posix_remove+set}" = set; then
  3729. echo $ECHO_N "(cached) $ECHO_C" >&6
  3730. else
  3731. ac_check_lib_save_LIBS=$LIBS
  3732. LIBS="-lposix $LIBS"
  3733. cat >conftest.$ac_ext <<_ACEOF
  3734. /* confdefs.h. */
  3735. _ACEOF
  3736. cat confdefs.h >>conftest.$ac_ext
  3737. cat >>conftest.$ac_ext <<_ACEOF
  3738. /* end confdefs.h. */
  3739. /* Override any gcc2 internal prototype to avoid an error. */
  3740. #ifdef __cplusplus
  3741. extern "C"
  3742. #endif
  3743. /* We use char because int might match the return type of a gcc2
  3744. builtin and then its argument prototype would still apply. */
  3745. char remove ();
  3746. int
  3747. main ()
  3748. {
  3749. remove ();
  3750. ;
  3751. return 0;
  3752. }
  3753. _ACEOF
  3754. rm -f conftest.$ac_objext conftest$ac_exeext
  3755. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3756. (eval $ac_link) 2>conftest.er1
  3757. ac_status=$?
  3758. grep -v '^ *+' conftest.er1 >conftest.err
  3759. rm -f conftest.er1
  3760. cat conftest.err >&5
  3761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3762. (exit $ac_status); } &&
  3763. { ac_try='test -z "$ac_cxx_werror_flag"
  3764. || test ! -s conftest.err'
  3765. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3766. (eval $ac_try) 2>&5
  3767. ac_status=$?
  3768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3769. (exit $ac_status); }; } &&
  3770. { ac_try='test -s conftest$ac_exeext'
  3771. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3772. (eval $ac_try) 2>&5
  3773. ac_status=$?
  3774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3775. (exit $ac_status); }; }; then
  3776. ac_cv_lib_posix_remove=yes
  3777. else
  3778. echo "$as_me: failed program was:" >&5
  3779. sed 's/^/| /' conftest.$ac_ext >&5
  3780. ac_cv_lib_posix_remove=no
  3781. fi
  3782. rm -f conftest.err conftest.$ac_objext \
  3783. conftest$ac_exeext conftest.$ac_ext
  3784. LIBS=$ac_check_lib_save_LIBS
  3785. fi
  3786. echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
  3787. echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
  3788. if test $ac_cv_lib_posix_remove = yes; then
  3789. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  3790. fi
  3791. fi
  3792. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  3793. echo "$as_me:$LINENO: checking for shmat" >&5
  3794. echo $ECHO_N "checking for shmat... $ECHO_C" >&6
  3795. if test "${ac_cv_func_shmat+set}" = set; then
  3796. echo $ECHO_N "(cached) $ECHO_C" >&6
  3797. else
  3798. cat >conftest.$ac_ext <<_ACEOF
  3799. /* confdefs.h. */
  3800. _ACEOF
  3801. cat confdefs.h >>conftest.$ac_ext
  3802. cat >>conftest.$ac_ext <<_ACEOF
  3803. /* end confdefs.h. */
  3804. /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
  3805. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3806. #define shmat innocuous_shmat
  3807. /* System header to define __stub macros and hopefully few prototypes,
  3808. which can conflict with char shmat (); below.
  3809. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3810. <limits.h> exists even on freestanding compilers. */
  3811. #ifdef __STDC__
  3812. # include <limits.h>
  3813. #else
  3814. # include <assert.h>
  3815. #endif
  3816. #undef shmat
  3817. /* Override any gcc2 internal prototype to avoid an error. */
  3818. #ifdef __cplusplus
  3819. extern "C"
  3820. {
  3821. #endif
  3822. /* We use char because int might match the return type of a gcc2
  3823. builtin and then its argument prototype would still apply. */
  3824. char shmat ();
  3825. /* The GNU C library defines this for functions which it implements
  3826. to always fail with ENOSYS. Some functions are actually named
  3827. something starting with __ and the normal name is an alias. */
  3828. #if defined (__stub_shmat) || defined (__stub___shmat)
  3829. choke me
  3830. #else
  3831. char (*f) () = shmat;
  3832. #endif
  3833. #ifdef __cplusplus
  3834. }
  3835. #endif
  3836. int
  3837. main ()
  3838. {
  3839. return f != shmat;
  3840. ;
  3841. return 0;
  3842. }
  3843. _ACEOF
  3844. rm -f conftest.$ac_objext conftest$ac_exeext
  3845. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3846. (eval $ac_link) 2>conftest.er1
  3847. ac_status=$?
  3848. grep -v '^ *+' conftest.er1 >conftest.err
  3849. rm -f conftest.er1
  3850. cat conftest.err >&5
  3851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3852. (exit $ac_status); } &&
  3853. { ac_try='test -z "$ac_cxx_werror_flag"
  3854. || test ! -s conftest.err'
  3855. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3856. (eval $ac_try) 2>&5
  3857. ac_status=$?
  3858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3859. (exit $ac_status); }; } &&
  3860. { ac_try='test -s conftest$ac_exeext'
  3861. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3862. (eval $ac_try) 2>&5
  3863. ac_status=$?
  3864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3865. (exit $ac_status); }; }; then
  3866. ac_cv_func_shmat=yes
  3867. else
  3868. echo "$as_me: failed program was:" >&5
  3869. sed 's/^/| /' conftest.$ac_ext >&5
  3870. ac_cv_func_shmat=no
  3871. fi
  3872. rm -f conftest.err conftest.$ac_objext \
  3873. conftest$ac_exeext conftest.$ac_ext
  3874. fi
  3875. echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
  3876. echo "${ECHO_T}$ac_cv_func_shmat" >&6
  3877. if test $ac_cv_func_shmat = no; then
  3878. echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
  3879. echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
  3880. if test "${ac_cv_lib_ipc_shmat+set}" = set; then
  3881. echo $ECHO_N "(cached) $ECHO_C" >&6
  3882. else
  3883. ac_check_lib_save_LIBS=$LIBS
  3884. LIBS="-lipc $LIBS"
  3885. cat >conftest.$ac_ext <<_ACEOF
  3886. /* confdefs.h. */
  3887. _ACEOF
  3888. cat confdefs.h >>conftest.$ac_ext
  3889. cat >>conftest.$ac_ext <<_ACEOF
  3890. /* end confdefs.h. */
  3891. /* Override any gcc2 internal prototype to avoid an error. */
  3892. #ifdef __cplusplus
  3893. extern "C"
  3894. #endif
  3895. /* We use char because int might match the return type of a gcc2
  3896. builtin and then its argument prototype would still apply. */
  3897. char shmat ();
  3898. int
  3899. main ()
  3900. {
  3901. shmat ();
  3902. ;
  3903. return 0;
  3904. }
  3905. _ACEOF
  3906. rm -f conftest.$ac_objext conftest$ac_exeext
  3907. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3908. (eval $ac_link) 2>conftest.er1
  3909. ac_status=$?
  3910. grep -v '^ *+' conftest.er1 >conftest.err
  3911. rm -f conftest.er1
  3912. cat conftest.err >&5
  3913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3914. (exit $ac_status); } &&
  3915. { ac_try='test -z "$ac_cxx_werror_flag"
  3916. || test ! -s conftest.err'
  3917. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3918. (eval $ac_try) 2>&5
  3919. ac_status=$?
  3920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3921. (exit $ac_status); }; } &&
  3922. { ac_try='test -s conftest$ac_exeext'
  3923. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3924. (eval $ac_try) 2>&5
  3925. ac_status=$?
  3926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3927. (exit $ac_status); }; }; then
  3928. ac_cv_lib_ipc_shmat=yes
  3929. else
  3930. echo "$as_me: failed program was:" >&5
  3931. sed 's/^/| /' conftest.$ac_ext >&5
  3932. ac_cv_lib_ipc_shmat=no
  3933. fi
  3934. rm -f conftest.err conftest.$ac_objext \
  3935. conftest$ac_exeext conftest.$ac_ext
  3936. LIBS=$ac_check_lib_save_LIBS
  3937. fi
  3938. echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
  3939. echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
  3940. if test $ac_cv_lib_ipc_shmat = yes; then
  3941. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  3942. fi
  3943. fi
  3944. fi
  3945. # Check for libraries that X11R6 Xt/Xaw programs need.
  3946. ac_save_LDFLAGS=$LDFLAGS
  3947. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  3948. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  3949. # check for ICE first), but we must link in the order -lSM -lICE or
  3950. # we get undefined symbols. So assume we have SM if we have ICE.
  3951. # These have to be linked with before -lX11, unlike the other
  3952. # libraries we check for below, so use a different variable.
  3953. # John Interrante, Karl Berry
  3954. echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
  3955. echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
  3956. if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
  3957. echo $ECHO_N "(cached) $ECHO_C" >&6
  3958. else
  3959. ac_check_lib_save_LIBS=$LIBS
  3960. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  3961. cat >conftest.$ac_ext <<_ACEOF
  3962. /* confdefs.h. */
  3963. _ACEOF
  3964. cat confdefs.h >>conftest.$ac_ext
  3965. cat >>conftest.$ac_ext <<_ACEOF
  3966. /* end confdefs.h. */
  3967. /* Override any gcc2 internal prototype to avoid an error. */
  3968. #ifdef __cplusplus
  3969. extern "C"
  3970. #endif
  3971. /* We use char because int might match the return type of a gcc2
  3972. builtin and then its argument prototype would still apply. */
  3973. char IceConnectionNumber ();
  3974. int
  3975. main ()
  3976. {
  3977. IceConnectionNumber ();
  3978. ;
  3979. return 0;
  3980. }
  3981. _ACEOF
  3982. rm -f conftest.$ac_objext conftest$ac_exeext
  3983. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3984. (eval $ac_link) 2>conftest.er1
  3985. ac_status=$?
  3986. grep -v '^ *+' conftest.er1 >conftest.err
  3987. rm -f conftest.er1
  3988. cat conftest.err >&5
  3989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3990. (exit $ac_status); } &&
  3991. { ac_try='test -z "$ac_cxx_werror_flag"
  3992. || test ! -s conftest.err'
  3993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3994. (eval $ac_try) 2>&5
  3995. ac_status=$?
  3996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3997. (exit $ac_status); }; } &&
  3998. { ac_try='test -s conftest$ac_exeext'
  3999. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4000. (eval $ac_try) 2>&5
  4001. ac_status=$?
  4002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4003. (exit $ac_status); }; }; then
  4004. ac_cv_lib_ICE_IceConnectionNumber=yes
  4005. else
  4006. echo "$as_me: failed program was:" >&5
  4007. sed 's/^/| /' conftest.$ac_ext >&5
  4008. ac_cv_lib_ICE_IceConnectionNumber=no
  4009. fi
  4010. rm -f conftest.err conftest.$ac_objext \
  4011. conftest$ac_exeext conftest.$ac_ext
  4012. LIBS=$ac_check_lib_save_LIBS
  4013. fi
  4014. echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  4015. echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
  4016. if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
  4017. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  4018. fi
  4019. LDFLAGS=$ac_save_LDFLAGS
  4020. fi
  4021. # Check whether --with-installed-zlib or --without-installed-zlib was given.
  4022. if test "${with_installed_zlib+set}" = set; then
  4023. withval="$with_installed_zlib"
  4024. fi;
  4025. if test "$with_installed_zlib" = yes; then
  4026. echo "using installed zlib"
  4027. ZLIB_LIB=-lz
  4028. else
  4029. ZLIB_DIR=zlib
  4030. ZLIB_INCLUDE='-I$(top_srcdir)/zlib'
  4031. ZLIB_LIB='$(top_srcdir)/zlib/libz.a'
  4032. echo "configuring zlib..."
  4033. (cd zlib; ./configure)
  4034. echo "...done configuring zlib"
  4035. fi
  4036. # Check whether --with-installed-jpeg or --without-installed-jpeg was given.
  4037. if test "${with_installed_jpeg+set}" = set; then
  4038. withval="$with_installed_jpeg"
  4039. fi;
  4040. if test "$with_installed_jpeg" = yes; then
  4041. echo "using installed jpeg"
  4042. JPEG_LIB=-ljpeg
  4043. else
  4044. JPEG_DIR=jpeg
  4045. JPEG_INCLUDE='-I$(top_srcdir)/jpeg'
  4046. JPEG_LIB='$(top_srcdir)/jpeg/libjpeg.a'
  4047. echo "configuring jpeg..."
  4048. (cd jpeg; ./configure)
  4049. echo "...done configuring jpeg"
  4050. fi
  4051. echo "$as_me:$LINENO: checking for vsnprintf" >&5
  4052. echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
  4053. if test "${ac_cv_func_vsnprintf+set}" = set; then
  4054. echo $ECHO_N "(cached) $ECHO_C" >&6
  4055. else
  4056. cat >conftest.$ac_ext <<_ACEOF
  4057. /* confdefs.h. */
  4058. _ACEOF
  4059. cat confdefs.h >>conftest.$ac_ext
  4060. cat >>conftest.$ac_ext <<_ACEOF
  4061. /* end confdefs.h. */
  4062. /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
  4063. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4064. #define vsnprintf innocuous_vsnprintf
  4065. /* System header to define __stub macros and hopefully few prototypes,
  4066. which can conflict with char vsnprintf (); below.
  4067. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4068. <limits.h> exists even on freestanding compilers. */
  4069. #ifdef __STDC__
  4070. # include <limits.h>
  4071. #else
  4072. # include <assert.h>
  4073. #endif
  4074. #undef vsnprintf
  4075. /* Override any gcc2 internal prototype to avoid an error. */
  4076. #ifdef __cplusplus
  4077. extern "C"
  4078. {
  4079. #endif
  4080. /* We use char because int might match the return type of a gcc2
  4081. builtin and then its argument prototype would still apply. */
  4082. char vsnprintf ();
  4083. /* The GNU C library defines this for functions which it implements
  4084. to always fail with ENOSYS. Some functions are actually named
  4085. something starting with __ and the normal name is an alias. */
  4086. #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
  4087. choke me
  4088. #else
  4089. char (*f) () = vsnprintf;
  4090. #endif
  4091. #ifdef __cplusplus
  4092. }
  4093. #endif
  4094. int
  4095. main ()
  4096. {
  4097. return f != vsnprintf;
  4098. ;
  4099. return 0;
  4100. }
  4101. _ACEOF
  4102. rm -f conftest.$ac_objext conftest$ac_exeext
  4103. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4104. (eval $ac_link) 2>conftest.er1
  4105. ac_status=$?
  4106. grep -v '^ *+' conftest.er1 >conftest.err
  4107. rm -f conftest.er1
  4108. cat conftest.err >&5
  4109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4110. (exit $ac_status); } &&
  4111. { ac_try='test -z "$ac_cxx_werror_flag"
  4112. || test ! -s conftest.err'
  4113. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4114. (eval $ac_try) 2>&5
  4115. ac_status=$?
  4116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4117. (exit $ac_status); }; } &&
  4118. { ac_try='test -s conftest$ac_exeext'
  4119. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4120. (eval $ac_try) 2>&5
  4121. ac_status=$?
  4122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4123. (exit $ac_status); }; }; then
  4124. ac_cv_func_vsnprintf=yes
  4125. else
  4126. echo "$as_me: failed program was:" >&5
  4127. sed 's/^/| /' conftest.$ac_ext >&5
  4128. ac_cv_func_vsnprintf=no
  4129. fi
  4130. rm -f conftest.err conftest.$ac_objext \
  4131. conftest$ac_exeext conftest.$ac_ext
  4132. fi
  4133. echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
  4134. echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
  4135. if test $ac_cv_func_vsnprintf = yes; then
  4136. VSNPRINTF_DEFINE='-DHAVE_VSNPRINTF'
  4137. else
  4138. VSNPRINTF_DEFINE=
  4139. fi
  4140. echo "$as_me:$LINENO: checking for socklen_t" >&5
  4141. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  4142. cat >conftest.$ac_ext <<_ACEOF
  4143. /* confdefs.h. */
  4144. _ACEOF
  4145. cat confdefs.h >>conftest.$ac_ext
  4146. cat >>conftest.$ac_ext <<_ACEOF
  4147. /* end confdefs.h. */
  4148. #include <sys/types.h>
  4149. #include <sys/socket.h>
  4150. int
  4151. main ()
  4152. {
  4153. socklen_t x;
  4154. accept(0, 0, &x);
  4155. ;
  4156. return 0;
  4157. }
  4158. _ACEOF
  4159. rm -f conftest.$ac_objext
  4160. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4161. (eval $ac_compile) 2>conftest.er1
  4162. ac_status=$?
  4163. grep -v '^ *+' conftest.er1 >conftest.err
  4164. rm -f conftest.er1
  4165. cat conftest.err >&5
  4166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4167. (exit $ac_status); } &&
  4168. { ac_try='test -z "$ac_cxx_werror_flag"
  4169. || test ! -s conftest.err'
  4170. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4171. (eval $ac_try) 2>&5
  4172. ac_status=$?
  4173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4174. (exit $ac_status); }; } &&
  4175. { ac_try='test -s conftest.$ac_objext'
  4176. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4177. (eval $ac_try) 2>&5
  4178. ac_status=$?
  4179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4180. (exit $ac_status); }; }; then
  4181. echo "$as_me:$LINENO: result: yes" >&5
  4182. echo "${ECHO_T}yes" >&6
  4183. SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=socklen_t'
  4184. else
  4185. echo "$as_me: failed program was:" >&5
  4186. sed 's/^/| /' conftest.$ac_ext >&5
  4187. echo "$as_me:$LINENO: result: using int" >&5
  4188. echo "${ECHO_T}using int" >&6
  4189. SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=int'
  4190. fi
  4191. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4192. ac_aux_dir=
  4193. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  4194. if test -f $ac_dir/install-sh; then
  4195. ac_aux_dir=$ac_dir
  4196. ac_install_sh="$ac_aux_dir/install-sh -c"
  4197. break
  4198. elif test -f $ac_dir/install.sh; then
  4199. ac_aux_dir=$ac_dir
  4200. ac_install_sh="$ac_aux_dir/install.sh -c"
  4201. break
  4202. elif test -f $ac_dir/shtool; then
  4203. ac_aux_dir=$ac_dir
  4204. ac_install_sh="$ac_aux_dir/shtool install -c"
  4205. break
  4206. fi
  4207. done
  4208. if test -z "$ac_aux_dir"; then
  4209. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  4210. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  4211. { (exit 1); exit 1; }; }
  4212. fi
  4213. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  4214. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  4215. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  4216. # Find a good install program. We prefer a C program (faster),
  4217. # so one script is as good as another. But avoid the broken or
  4218. # incompatible versions:
  4219. # SysV /etc/install, /usr/sbin/install
  4220. # SunOS /usr/etc/install
  4221. # IRIX /sbin/install
  4222. # AIX /bin/install
  4223. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4224. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4225. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4226. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4227. # OS/2's system install, which has a completely different semantic
  4228. # ./install, which can be erroneously created by make from ./install.sh.
  4229. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  4230. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  4231. if test -z "$INSTALL"; then
  4232. if test "${ac_cv_path_install+set}" = set; then
  4233. echo $ECHO_N "(cached) $ECHO_C" >&6
  4234. else
  4235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4236. for as_dir in $PATH
  4237. do
  4238. IFS=$as_save_IFS
  4239. test -z "$as_dir" && as_dir=.
  4240. # Account for people who put trailing slashes in PATH elements.
  4241. case $as_dir/ in
  4242. ./ | .// | /cC/* | \
  4243. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4244. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  4245. /usr/ucb/* ) ;;
  4246. *)
  4247. # OSF1 and SCO ODT 3.0 have their own names for install.
  4248. # Don't use installbsd from OSF since it installs stuff as root
  4249. # by default.
  4250. for ac_prog in ginstall scoinst install; do
  4251. for ac_exec_ext in '' $ac_executable_extensions; do
  4252. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  4253. if test $ac_prog = install &&
  4254. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4255. # AIX install. It has an incompatible calling convention.
  4256. :
  4257. elif test $ac_prog = install &&
  4258. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4259. # program-specific install script used by HP pwplus--don't use.
  4260. :
  4261. else
  4262. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4263. break 3
  4264. fi
  4265. fi
  4266. done
  4267. done
  4268. ;;
  4269. esac
  4270. done
  4271. fi
  4272. if test "${ac_cv_path_install+set}" = set; then
  4273. INSTALL=$ac_cv_path_install
  4274. else
  4275. # As a last resort, use the slow shell script. We don't cache a
  4276. # path for INSTALL within a source directory, because that will
  4277. # break other packages using the cache if that directory is
  4278. # removed, or if the path is relative.
  4279. INSTALL=$ac_install_sh
  4280. fi
  4281. fi
  4282. echo "$as_me:$LINENO: result: $INSTALL" >&5
  4283. echo "${ECHO_T}$INSTALL" >&6
  4284. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4285. # It thinks the first close brace ends the variable substitution.
  4286. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4287. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4288. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4289. MKINSTALLDIRS=
  4290. if test -n "$ac_aux_dir"; then
  4291. case "$ac_aux_dir" in
  4292. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  4293. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  4294. esac
  4295. fi
  4296. if test -z "$MKINSTALLDIRS"; then
  4297. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  4298. fi
  4299. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  4300. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  4301. # Check whether --enable-nls or --disable-nls was given.
  4302. if test "${enable_nls+set}" = set; then
  4303. enableval="$enable_nls"
  4304. USE_NLS=$enableval
  4305. else
  4306. USE_NLS=yes
  4307. fi;
  4308. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  4309. echo "${ECHO_T}$USE_NLS" >&6
  4310. # Prepare PATH_SEPARATOR.
  4311. # The user is always right.
  4312. if test "${PATH_SEPARATOR+set}" != set; then
  4313. echo "#! /bin/sh" >conf$$.sh
  4314. echo "exit 0" >>conf$$.sh
  4315. chmod +x conf$$.sh
  4316. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4317. PATH_SEPARATOR=';'
  4318. else
  4319. PATH_SEPARATOR=:
  4320. fi
  4321. rm -f conf$$.sh
  4322. fi
  4323. # Find out how to test for executable files. Don't use a zero-byte file,
  4324. # as systems may use methods other than mode bits to determine executability.
  4325. cat >conf$$.file <<_ASEOF
  4326. #! /bin/sh
  4327. exit 0
  4328. _ASEOF
  4329. chmod +x conf$$.file
  4330. if test -x conf$$.file >/dev/null 2>&1; then
  4331. ac_executable_p="test -x"
  4332. else
  4333. ac_executable_p="test -f"
  4334. fi
  4335. rm -f conf$$.file
  4336. # Extract the first word of "msgfmt", so it can be a program name with args.
  4337. set dummy msgfmt; ac_word=$2
  4338. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4339. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4340. if test "${ac_cv_path_MSGFMT+set}" = set; then
  4341. echo $ECHO_N "(cached) $ECHO_C" >&6
  4342. else
  4343. case "$MSGFMT" in
  4344. [\\/]* | ?:[\\/]*)
  4345. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  4346. ;;
  4347. *)
  4348. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  4349. for ac_dir in $PATH; do
  4350. IFS="$ac_save_IFS"
  4351. test -z "$ac_dir" && ac_dir=.
  4352. for ac_exec_ext in '' $ac_executable_extensions; do
  4353. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  4354. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  4355. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  4356. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  4357. break 2
  4358. fi
  4359. fi
  4360. done
  4361. done
  4362. IFS="$ac_save_IFS"
  4363. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  4364. ;;
  4365. esac
  4366. fi
  4367. MSGFMT="$ac_cv_path_MSGFMT"
  4368. if test "$MSGFMT" != ":"; then
  4369. echo "$as_me:$LINENO: result: $MSGFMT" >&5
  4370. echo "${ECHO_T}$MSGFMT" >&6
  4371. else
  4372. echo "$as_me:$LINENO: result: no" >&5
  4373. echo "${ECHO_T}no" >&6
  4374. fi
  4375. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  4376. set dummy gmsgfmt; ac_word=$2
  4377. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4378. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4379. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  4380. echo $ECHO_N "(cached) $ECHO_C" >&6
  4381. else
  4382. case $GMSGFMT in
  4383. [\\/]* | ?:[\\/]*)
  4384. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  4385. ;;
  4386. *)
  4387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4388. for as_dir in $PATH
  4389. do
  4390. IFS=$as_save_IFS
  4391. test -z "$as_dir" && as_dir=.
  4392. for ac_exec_ext in '' $ac_executable_extensions; do
  4393. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4394. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  4395. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4396. break 2
  4397. fi
  4398. done
  4399. done
  4400. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  4401. ;;
  4402. esac
  4403. fi
  4404. GMSGFMT=$ac_cv_path_GMSGFMT
  4405. if test -n "$GMSGFMT"; then
  4406. echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  4407. echo "${ECHO_T}$GMSGFMT" >&6
  4408. else
  4409. echo "$as_me:$LINENO: result: no" >&5
  4410. echo "${ECHO_T}no" >&6
  4411. fi
  4412. # Prepare PATH_SEPARATOR.
  4413. # The user is always right.
  4414. if test "${PATH_SEPARATOR+set}" != set; then
  4415. echo "#! /bin/sh" >conf$$.sh
  4416. echo "exit 0" >>conf$$.sh
  4417. chmod +x conf$$.sh
  4418. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4419. PATH_SEPARATOR=';'
  4420. else
  4421. PATH_SEPARATOR=:
  4422. fi
  4423. rm -f conf$$.sh
  4424. fi
  4425. # Find out how to test for executable files. Don't use a zero-byte file,
  4426. # as systems may use methods other than mode bits to determine executability.
  4427. cat >conf$$.file <<_ASEOF
  4428. #! /bin/sh
  4429. exit 0
  4430. _ASEOF
  4431. chmod +x conf$$.file
  4432. if test -x conf$$.file >/dev/null 2>&1; then
  4433. ac_executable_p="test -x"
  4434. else
  4435. ac_executable_p="test -f"
  4436. fi
  4437. rm -f conf$$.file
  4438. # Extract the first word of "xgettext", so it can be a program name with args.
  4439. set dummy xgettext; ac_word=$2
  4440. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4441. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4442. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  4443. echo $ECHO_N "(cached) $ECHO_C" >&6
  4444. else
  4445. case "$XGETTEXT" in
  4446. [\\/]* | ?:[\\/]*)
  4447. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  4448. ;;
  4449. *)
  4450. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  4451. for ac_dir in $PATH; do
  4452. IFS="$ac_save_IFS"
  4453. test -z "$ac_dir" && ac_dir=.
  4454. for ac_exec_ext in '' $ac_executable_extensions; do
  4455. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  4456. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  4457. (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
  4458. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  4459. break 2
  4460. fi
  4461. fi
  4462. done
  4463. done
  4464. IFS="$ac_save_IFS"
  4465. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  4466. ;;
  4467. esac
  4468. fi
  4469. XGETTEXT="$ac_cv_path_XGETTEXT"
  4470. if test "$XGETTEXT" != ":"; then
  4471. echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  4472. echo "${ECHO_T}$XGETTEXT" >&6
  4473. else
  4474. echo "$as_me:$LINENO: result: no" >&5
  4475. echo "${ECHO_T}no" >&6
  4476. fi
  4477. rm -f messages.po
  4478. # Prepare PATH_SEPARATOR.
  4479. # The user is always right.
  4480. if test "${PATH_SEPARATOR+set}" != set; then
  4481. echo "#! /bin/sh" >conf$$.sh
  4482. echo "exit 0" >>conf$$.sh
  4483. chmod +x conf$$.sh
  4484. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4485. PATH_SEPARATOR=';'
  4486. else
  4487. PATH_SEPARATOR=:
  4488. fi
  4489. rm -f conf$$.sh
  4490. fi
  4491. # Find out how to test for executable files. Don't use a zero-byte file,
  4492. # as systems may use methods other than mode bits to determine executability.
  4493. cat >conf$$.file <<_ASEOF
  4494. #! /bin/sh
  4495. exit 0
  4496. _ASEOF
  4497. chmod +x conf$$.file
  4498. if test -x conf$$.file >/dev/null 2>&1; then
  4499. ac_executable_p="test -x"
  4500. else
  4501. ac_executable_p="test -f"
  4502. fi
  4503. rm -f conf$$.file
  4504. # Extract the first word of "msgmerge", so it can be a program name with args.
  4505. set dummy msgmerge; ac_word=$2
  4506. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4507. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4508. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  4509. echo $ECHO_N "(cached) $ECHO_C" >&6
  4510. else
  4511. case "$MSGMERGE" in
  4512. [\\/]* | ?:[\\/]*)
  4513. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  4514. ;;
  4515. *)
  4516. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  4517. for ac_dir in $PATH; do
  4518. IFS="$ac_save_IFS"
  4519. test -z "$ac_dir" && ac_dir=.
  4520. for ac_exec_ext in '' $ac_executable_extensions; do
  4521. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  4522. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  4523. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  4524. break 2
  4525. fi
  4526. fi
  4527. done
  4528. done
  4529. IFS="$ac_save_IFS"
  4530. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  4531. ;;
  4532. esac
  4533. fi
  4534. MSGMERGE="$ac_cv_path_MSGMERGE"
  4535. if test "$MSGMERGE" != ":"; then
  4536. echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  4537. echo "${ECHO_T}$MSGMERGE" >&6
  4538. else
  4539. echo "$as_me:$LINENO: result: no" >&5
  4540. echo "${ECHO_T}no" >&6
  4541. fi
  4542. if test "$GMSGFMT" != ":"; then
  4543. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  4544. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  4545. : ;
  4546. else
  4547. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  4548. echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  4549. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
  4550. GMSGFMT=":"
  4551. fi
  4552. fi
  4553. if test "$XGETTEXT" != ":"; then
  4554. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  4555. (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
  4556. : ;
  4557. else
  4558. echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  4559. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
  4560. XGETTEXT=":"
  4561. fi
  4562. rm -f messages.po
  4563. fi
  4564. ac_config_commands="$ac_config_commands default-1"
  4565. # Make sure we can run config.sub.
  4566. $ac_config_sub sun4 >/dev/null 2>&1 ||
  4567. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  4568. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  4569. { (exit 1); exit 1; }; }
  4570. echo "$as_me:$LINENO: checking build system type" >&5
  4571. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  4572. if test "${ac_cv_build+set}" = set; then
  4573. echo $ECHO_N "(cached) $ECHO_C" >&6
  4574. else
  4575. ac_cv_build_alias=$build_alias
  4576. test -z "$ac_cv_build_alias" &&
  4577. ac_cv_build_alias=`$ac_config_guess`
  4578. test -z "$ac_cv_build_alias" &&
  4579. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  4580. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  4581. { (exit 1); exit 1; }; }
  4582. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  4583. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  4584. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  4585. { (exit 1); exit 1; }; }
  4586. fi
  4587. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  4588. echo "${ECHO_T}$ac_cv_build" >&6
  4589. build=$ac_cv_build
  4590. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  4591. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  4592. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  4593. echo "$as_me:$LINENO: checking host system type" >&5
  4594. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  4595. if test "${ac_cv_host+set}" = set; then
  4596. echo $ECHO_N "(cached) $ECHO_C" >&6
  4597. else
  4598. ac_cv_host_alias=$host_alias
  4599. test -z "$ac_cv_host_alias" &&
  4600. ac_cv_host_alias=$ac_cv_build_alias
  4601. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  4602. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  4603. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  4604. { (exit 1); exit 1; }; }
  4605. fi
  4606. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  4607. echo "${ECHO_T}$ac_cv_host" >&6
  4608. host=$ac_cv_host
  4609. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  4610. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  4611. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  4612. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  4613. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  4614. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  4615. echo $ECHO_N "(cached) $ECHO_C" >&6
  4616. else
  4617. ac_check_lib_save_LIBS=$LIBS
  4618. LIBS="-lcposix $LIBS"
  4619. cat >conftest.$ac_ext <<_ACEOF
  4620. /* confdefs.h. */
  4621. _ACEOF
  4622. cat confdefs.h >>conftest.$ac_ext
  4623. cat >>conftest.$ac_ext <<_ACEOF
  4624. /* end confdefs.h. */
  4625. /* Override any gcc2 internal prototype to avoid an error. */
  4626. #ifdef __cplusplus
  4627. extern "C"
  4628. #endif
  4629. /* We use char because int might match the return type of a gcc2
  4630. builtin and then its argument prototype would still apply. */
  4631. char strerror ();
  4632. int
  4633. main ()
  4634. {
  4635. strerror ();
  4636. ;
  4637. return 0;
  4638. }
  4639. _ACEOF
  4640. rm -f conftest.$ac_objext conftest$ac_exeext
  4641. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4642. (eval $ac_link) 2>conftest.er1
  4643. ac_status=$?
  4644. grep -v '^ *+' conftest.er1 >conftest.err
  4645. rm -f conftest.er1
  4646. cat conftest.err >&5
  4647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4648. (exit $ac_status); } &&
  4649. { ac_try='test -z "$ac_cxx_werror_flag"
  4650. || test ! -s conftest.err'
  4651. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4652. (eval $ac_try) 2>&5
  4653. ac_status=$?
  4654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4655. (exit $ac_status); }; } &&
  4656. { ac_try='test -s conftest$ac_exeext'
  4657. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4658. (eval $ac_try) 2>&5
  4659. ac_status=$?
  4660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4661. (exit $ac_status); }; }; then
  4662. ac_cv_lib_cposix_strerror=yes
  4663. else
  4664. echo "$as_me: failed program was:" >&5
  4665. sed 's/^/| /' conftest.$ac_ext >&5
  4666. ac_cv_lib_cposix_strerror=no
  4667. fi
  4668. rm -f conftest.err conftest.$ac_objext \
  4669. conftest$ac_exeext conftest.$ac_ext
  4670. LIBS=$ac_check_lib_save_LIBS
  4671. fi
  4672. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  4673. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  4674. if test $ac_cv_lib_cposix_strerror = yes; then
  4675. LIBS="$LIBS -lcposix"
  4676. fi
  4677. echo "$as_me:$LINENO: checking for egrep" >&5
  4678. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  4679. if test "${ac_cv_prog_egrep+set}" = set; then
  4680. echo $ECHO_N "(cached) $ECHO_C" >&6
  4681. else
  4682. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  4683. then ac_cv_prog_egrep='grep -E'
  4684. else ac_cv_prog_egrep='egrep'
  4685. fi
  4686. fi
  4687. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  4688. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  4689. EGREP=$ac_cv_prog_egrep
  4690. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4691. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4692. if test "${ac_cv_header_stdc+set}" = set; then
  4693. echo $ECHO_N "(cached) $ECHO_C" >&6
  4694. else
  4695. cat >conftest.$ac_ext <<_ACEOF
  4696. /* confdefs.h. */
  4697. _ACEOF
  4698. cat confdefs.h >>conftest.$ac_ext
  4699. cat >>conftest.$ac_ext <<_ACEOF
  4700. /* end confdefs.h. */
  4701. #include <stdlib.h>
  4702. #include <stdarg.h>
  4703. #include <string.h>
  4704. #include <float.h>
  4705. int
  4706. main ()
  4707. {
  4708. ;
  4709. return 0;
  4710. }
  4711. _ACEOF
  4712. rm -f conftest.$ac_objext
  4713. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4714. (eval $ac_compile) 2>conftest.er1
  4715. ac_status=$?
  4716. grep -v '^ *+' conftest.er1 >conftest.err
  4717. rm -f conftest.er1
  4718. cat conftest.err >&5
  4719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4720. (exit $ac_status); } &&
  4721. { ac_try='test -z "$ac_cxx_werror_flag"
  4722. || test ! -s conftest.err'
  4723. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4724. (eval $ac_try) 2>&5
  4725. ac_status=$?
  4726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4727. (exit $ac_status); }; } &&
  4728. { ac_try='test -s conftest.$ac_objext'
  4729. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4730. (eval $ac_try) 2>&5
  4731. ac_status=$?
  4732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4733. (exit $ac_status); }; }; then
  4734. ac_cv_header_stdc=yes
  4735. else
  4736. echo "$as_me: failed program was:" >&5
  4737. sed 's/^/| /' conftest.$ac_ext >&5
  4738. ac_cv_header_stdc=no
  4739. fi
  4740. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4741. if test $ac_cv_header_stdc = yes; then
  4742. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4743. cat >conftest.$ac_ext <<_ACEOF
  4744. /* confdefs.h. */
  4745. _ACEOF
  4746. cat confdefs.h >>conftest.$ac_ext
  4747. cat >>conftest.$ac_ext <<_ACEOF
  4748. /* end confdefs.h. */
  4749. #include <string.h>
  4750. _ACEOF
  4751. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4752. $EGREP "memchr" >/dev/null 2>&1; then
  4753. :
  4754. else
  4755. ac_cv_header_stdc=no
  4756. fi
  4757. rm -f conftest*
  4758. fi
  4759. if test $ac_cv_header_stdc = yes; then
  4760. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4761. cat >conftest.$ac_ext <<_ACEOF
  4762. /* confdefs.h. */
  4763. _ACEOF
  4764. cat confdefs.h >>conftest.$ac_ext
  4765. cat >>conftest.$ac_ext <<_ACEOF
  4766. /* end confdefs.h. */
  4767. #include <stdlib.h>
  4768. _ACEOF
  4769. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4770. $EGREP "free" >/dev/null 2>&1; then
  4771. :
  4772. else
  4773. ac_cv_header_stdc=no
  4774. fi
  4775. rm -f conftest*
  4776. fi
  4777. if test $ac_cv_header_stdc = yes; then
  4778. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4779. if test "$cross_compiling" = yes; then
  4780. :
  4781. else
  4782. cat >conftest.$ac_ext <<_ACEOF
  4783. /* confdefs.h. */
  4784. _ACEOF
  4785. cat confdefs.h >>conftest.$ac_ext
  4786. cat >>conftest.$ac_ext <<_ACEOF
  4787. /* end confdefs.h. */
  4788. #include <ctype.h>
  4789. #if ((' ' & 0x0FF) == 0x020)
  4790. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4791. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4792. #else
  4793. # define ISLOWER(c) \
  4794. (('a' <= (c) && (c) <= 'i') \
  4795. || ('j' <= (c) && (c) <= 'r') \
  4796. || ('s' <= (c) && (c) <= 'z'))
  4797. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4798. #endif
  4799. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4800. int
  4801. main ()
  4802. {
  4803. int i;
  4804. for (i = 0; i < 256; i++)
  4805. if (XOR (islower (i), ISLOWER (i))
  4806. || toupper (i) != TOUPPER (i))
  4807. exit(2);
  4808. exit (0);
  4809. }
  4810. _ACEOF
  4811. rm -f conftest$ac_exeext
  4812. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4813. (eval $ac_link) 2>&5
  4814. ac_status=$?
  4815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4816. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4817. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4818. (eval $ac_try) 2>&5
  4819. ac_status=$?
  4820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4821. (exit $ac_status); }; }; then
  4822. :
  4823. else
  4824. echo "$as_me: program exited with status $ac_status" >&5
  4825. echo "$as_me: failed program was:" >&5
  4826. sed 's/^/| /' conftest.$ac_ext >&5
  4827. ( exit $ac_status )
  4828. ac_cv_header_stdc=no
  4829. fi
  4830. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4831. fi
  4832. fi
  4833. fi
  4834. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4835. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4836. if test $ac_cv_header_stdc = yes; then
  4837. cat >>confdefs.h <<\_ACEOF
  4838. #define STDC_HEADERS 1
  4839. _ACEOF
  4840. fi
  4841. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  4842. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  4843. if test "${ac_cv_c_const+set}" = set; then
  4844. echo $ECHO_N "(cached) $ECHO_C" >&6
  4845. else
  4846. cat >conftest.$ac_ext <<_ACEOF
  4847. /* confdefs.h. */
  4848. _ACEOF
  4849. cat confdefs.h >>conftest.$ac_ext
  4850. cat >>conftest.$ac_ext <<_ACEOF
  4851. /* end confdefs.h. */
  4852. int
  4853. main ()
  4854. {
  4855. /* FIXME: Include the comments suggested by Paul. */
  4856. #ifndef __cplusplus
  4857. /* Ultrix mips cc rejects this. */
  4858. typedef int charset[2];
  4859. const charset x;
  4860. /* SunOS 4.1.1 cc rejects this. */
  4861. char const *const *ccp;
  4862. char **p;
  4863. /* NEC SVR4.0.2 mips cc rejects this. */
  4864. struct point {int x, y;};
  4865. static struct point const zero = {0,0};
  4866. /* AIX XL C 1.02.0.0 rejects this.
  4867. It does not let you subtract one const X* pointer from another in
  4868. an arm of an if-expression whose if-part is not a constant
  4869. expression */
  4870. const char *g = "string";
  4871. ccp = &g + (g ? g-g : 0);
  4872. /* HPUX 7.0 cc rejects these. */
  4873. ++ccp;
  4874. p = (char**) ccp;
  4875. ccp = (char const *const *) p;
  4876. { /* SCO 3.2v4 cc rejects this. */
  4877. char *t;
  4878. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4879. *t++ = 0;
  4880. }
  4881. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4882. int x[] = {25, 17};
  4883. const int *foo = &x[0];
  4884. ++foo;
  4885. }
  4886. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4887. typedef const int *iptr;
  4888. iptr p = 0;
  4889. ++p;
  4890. }
  4891. { /* AIX XL C 1.02.0.0 rejects this saying
  4892. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4893. struct s { int j; const int *ap[3]; };
  4894. struct s *b; b->j = 5;
  4895. }
  4896. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4897. const int foo = 10;
  4898. }
  4899. #endif
  4900. ;
  4901. return 0;
  4902. }
  4903. _ACEOF
  4904. rm -f conftest.$ac_objext
  4905. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4906. (eval $ac_compile) 2>conftest.er1
  4907. ac_status=$?
  4908. grep -v '^ *+' conftest.er1 >conftest.err
  4909. rm -f conftest.er1
  4910. cat conftest.err >&5
  4911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4912. (exit $ac_status); } &&
  4913. { ac_try='test -z "$ac_cxx_werror_flag"
  4914. || test ! -s conftest.err'
  4915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4916. (eval $ac_try) 2>&5
  4917. ac_status=$?
  4918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4919. (exit $ac_status); }; } &&
  4920. { ac_try='test -s conftest.$ac_objext'
  4921. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4922. (eval $ac_try) 2>&5
  4923. ac_status=$?
  4924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4925. (exit $ac_status); }; }; then
  4926. ac_cv_c_const=yes
  4927. else
  4928. echo "$as_me: failed program was:" >&5
  4929. sed 's/^/| /' conftest.$ac_ext >&5
  4930. ac_cv_c_const=no
  4931. fi
  4932. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4933. fi
  4934. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  4935. echo "${ECHO_T}$ac_cv_c_const" >&6
  4936. if test $ac_cv_c_const = no; then
  4937. cat >>confdefs.h <<\_ACEOF
  4938. #define const
  4939. _ACEOF
  4940. fi
  4941. echo "$as_me:$LINENO: checking for signed" >&5
  4942. echo $ECHO_N "checking for signed... $ECHO_C" >&6
  4943. if test "${bh_cv_c_signed+set}" = set; then
  4944. echo $ECHO_N "(cached) $ECHO_C" >&6
  4945. else
  4946. cat >conftest.$ac_ext <<_ACEOF
  4947. /* confdefs.h. */
  4948. _ACEOF
  4949. cat confdefs.h >>conftest.$ac_ext
  4950. cat >>conftest.$ac_ext <<_ACEOF
  4951. /* end confdefs.h. */
  4952. int
  4953. main ()
  4954. {
  4955. signed char x;
  4956. ;
  4957. return 0;
  4958. }
  4959. _ACEOF
  4960. rm -f conftest.$ac_objext
  4961. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4962. (eval $ac_compile) 2>conftest.er1
  4963. ac_status=$?
  4964. grep -v '^ *+' conftest.er1 >conftest.err
  4965. rm -f conftest.er1
  4966. cat conftest.err >&5
  4967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4968. (exit $ac_status); } &&
  4969. { ac_try='test -z "$ac_cxx_werror_flag"
  4970. || test ! -s conftest.err'
  4971. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4972. (eval $ac_try) 2>&5
  4973. ac_status=$?
  4974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4975. (exit $ac_status); }; } &&
  4976. { ac_try='test -s conftest.$ac_objext'
  4977. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4978. (eval $ac_try) 2>&5
  4979. ac_status=$?
  4980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4981. (exit $ac_status); }; }; then
  4982. bh_cv_c_signed=yes
  4983. else
  4984. echo "$as_me: failed program was:" >&5
  4985. sed 's/^/| /' conftest.$ac_ext >&5
  4986. bh_cv_c_signed=no
  4987. fi
  4988. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4989. fi
  4990. echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
  4991. echo "${ECHO_T}$bh_cv_c_signed" >&6
  4992. if test $bh_cv_c_signed = no; then
  4993. cat >>confdefs.h <<\_ACEOF
  4994. #define signed
  4995. _ACEOF
  4996. fi
  4997. echo "$as_me:$LINENO: checking for inline" >&5
  4998. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  4999. if test "${ac_cv_c_inline+set}" = set; then
  5000. echo $ECHO_N "(cached) $ECHO_C" >&6
  5001. else
  5002. ac_cv_c_inline=no
  5003. for ac_kw in inline __inline__ __inline; do
  5004. cat >conftest.$ac_ext <<_ACEOF
  5005. /* confdefs.h. */
  5006. _ACEOF
  5007. cat confdefs.h >>conftest.$ac_ext
  5008. cat >>conftest.$ac_ext <<_ACEOF
  5009. /* end confdefs.h. */
  5010. #ifndef __cplusplus
  5011. typedef int foo_t;
  5012. static $ac_kw foo_t static_foo () {return 0; }
  5013. $ac_kw foo_t foo () {return 0; }
  5014. #endif
  5015. _ACEOF
  5016. rm -f conftest.$ac_objext
  5017. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5018. (eval $ac_compile) 2>conftest.er1
  5019. ac_status=$?
  5020. grep -v '^ *+' conftest.er1 >conftest.err
  5021. rm -f conftest.er1
  5022. cat conftest.err >&5
  5023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5024. (exit $ac_status); } &&
  5025. { ac_try='test -z "$ac_cxx_werror_flag"
  5026. || test ! -s conftest.err'
  5027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5028. (eval $ac_try) 2>&5
  5029. ac_status=$?
  5030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5031. (exit $ac_status); }; } &&
  5032. { ac_try='test -s conftest.$ac_objext'
  5033. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5034. (eval $ac_try) 2>&5
  5035. ac_status=$?
  5036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5037. (exit $ac_status); }; }; then
  5038. ac_cv_c_inline=$ac_kw; break
  5039. else
  5040. echo "$as_me: failed program was:" >&5
  5041. sed 's/^/| /' conftest.$ac_ext >&5
  5042. fi
  5043. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5044. done
  5045. fi
  5046. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  5047. echo "${ECHO_T}$ac_cv_c_inline" >&6
  5048. case $ac_cv_c_inline in
  5049. inline | yes) ;;
  5050. *)
  5051. case $ac_cv_c_inline in
  5052. no) ac_val=;;
  5053. *) ac_val=$ac_cv_c_inline;;
  5054. esac
  5055. cat >>confdefs.h <<_ACEOF
  5056. #ifndef __cplusplus
  5057. #define inline $ac_val
  5058. #endif
  5059. _ACEOF
  5060. ;;
  5061. esac
  5062. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5063. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5064. inttypes.h stdint.h unistd.h
  5065. do
  5066. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5067. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5068. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5069. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5070. echo $ECHO_N "(cached) $ECHO_C" >&6
  5071. else
  5072. cat >conftest.$ac_ext <<_ACEOF
  5073. /* confdefs.h. */
  5074. _ACEOF
  5075. cat confdefs.h >>conftest.$ac_ext
  5076. cat >>conftest.$ac_ext <<_ACEOF
  5077. /* end confdefs.h. */
  5078. $ac_includes_default
  5079. #include <$ac_header>
  5080. _ACEOF
  5081. rm -f conftest.$ac_objext
  5082. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5083. (eval $ac_compile) 2>conftest.er1
  5084. ac_status=$?
  5085. grep -v '^ *+' conftest.er1 >conftest.err
  5086. rm -f conftest.er1
  5087. cat conftest.err >&5
  5088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5089. (exit $ac_status); } &&
  5090. { ac_try='test -z "$ac_cxx_werror_flag"
  5091. || test ! -s conftest.err'
  5092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5093. (eval $ac_try) 2>&5
  5094. ac_status=$?
  5095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5096. (exit $ac_status); }; } &&
  5097. { ac_try='test -s conftest.$ac_objext'
  5098. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5099. (eval $ac_try) 2>&5
  5100. ac_status=$?
  5101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5102. (exit $ac_status); }; }; then
  5103. eval "$as_ac_Header=yes"
  5104. else
  5105. echo "$as_me: failed program was:" >&5
  5106. sed 's/^/| /' conftest.$ac_ext >&5
  5107. eval "$as_ac_Header=no"
  5108. fi
  5109. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5110. fi
  5111. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5112. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5113. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5114. cat >>confdefs.h <<_ACEOF
  5115. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5116. _ACEOF
  5117. fi
  5118. done
  5119. echo "$as_me:$LINENO: checking for off_t" >&5
  5120. echo $ECHO_N "checking for off_t... $ECHO_C" >&6
  5121. if test "${ac_cv_type_off_t+set}" = set; then
  5122. echo $ECHO_N "(cached) $ECHO_C" >&6
  5123. else
  5124. cat >conftest.$ac_ext <<_ACEOF
  5125. /* confdefs.h. */
  5126. _ACEOF
  5127. cat confdefs.h >>conftest.$ac_ext
  5128. cat >>conftest.$ac_ext <<_ACEOF
  5129. /* end confdefs.h. */
  5130. $ac_includes_default
  5131. int
  5132. main ()
  5133. {
  5134. if ((off_t *) 0)
  5135. return 0;
  5136. if (sizeof (off_t))
  5137. return 0;
  5138. ;
  5139. return 0;
  5140. }
  5141. _ACEOF
  5142. rm -f conftest.$ac_objext
  5143. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5144. (eval $ac_compile) 2>conftest.er1
  5145. ac_status=$?
  5146. grep -v '^ *+' conftest.er1 >conftest.err
  5147. rm -f conftest.er1
  5148. cat conftest.err >&5
  5149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5150. (exit $ac_status); } &&
  5151. { ac_try='test -z "$ac_cxx_werror_flag"
  5152. || test ! -s conftest.err'
  5153. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5154. (eval $ac_try) 2>&5
  5155. ac_status=$?
  5156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5157. (exit $ac_status); }; } &&
  5158. { ac_try='test -s conftest.$ac_objext'
  5159. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5160. (eval $ac_try) 2>&5
  5161. ac_status=$?
  5162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5163. (exit $ac_status); }; }; then
  5164. ac_cv_type_off_t=yes
  5165. else
  5166. echo "$as_me: failed program was:" >&5
  5167. sed 's/^/| /' conftest.$ac_ext >&5
  5168. ac_cv_type_off_t=no
  5169. fi
  5170. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5171. fi
  5172. echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  5173. echo "${ECHO_T}$ac_cv_type_off_t" >&6
  5174. if test $ac_cv_type_off_t = yes; then
  5175. :
  5176. else
  5177. cat >>confdefs.h <<_ACEOF
  5178. #define off_t long
  5179. _ACEOF
  5180. fi
  5181. echo "$as_me:$LINENO: checking for size_t" >&5
  5182. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5183. if test "${ac_cv_type_size_t+set}" = set; then
  5184. echo $ECHO_N "(cached) $ECHO_C" >&6
  5185. else
  5186. cat >conftest.$ac_ext <<_ACEOF
  5187. /* confdefs.h. */
  5188. _ACEOF
  5189. cat confdefs.h >>conftest.$ac_ext
  5190. cat >>conftest.$ac_ext <<_ACEOF
  5191. /* end confdefs.h. */
  5192. $ac_includes_default
  5193. int
  5194. main ()
  5195. {
  5196. if ((size_t *) 0)
  5197. return 0;
  5198. if (sizeof (size_t))
  5199. return 0;
  5200. ;
  5201. return 0;
  5202. }
  5203. _ACEOF
  5204. rm -f conftest.$ac_objext
  5205. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5206. (eval $ac_compile) 2>conftest.er1
  5207. ac_status=$?
  5208. grep -v '^ *+' conftest.er1 >conftest.err
  5209. rm -f conftest.er1
  5210. cat conftest.err >&5
  5211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5212. (exit $ac_status); } &&
  5213. { ac_try='test -z "$ac_cxx_werror_flag"
  5214. || test ! -s conftest.err'
  5215. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5216. (eval $ac_try) 2>&5
  5217. ac_status=$?
  5218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5219. (exit $ac_status); }; } &&
  5220. { ac_try='test -s conftest.$ac_objext'
  5221. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5222. (eval $ac_try) 2>&5
  5223. ac_status=$?
  5224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5225. (exit $ac_status); }; }; then
  5226. ac_cv_type_size_t=yes
  5227. else
  5228. echo "$as_me: failed program was:" >&5
  5229. sed 's/^/| /' conftest.$ac_ext >&5
  5230. ac_cv_type_size_t=no
  5231. fi
  5232. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5233. fi
  5234. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5235. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5236. if test $ac_cv_type_size_t = yes; then
  5237. :
  5238. else
  5239. cat >>confdefs.h <<_ACEOF
  5240. #define size_t unsigned
  5241. _ACEOF
  5242. fi
  5243. echo "$as_me:$LINENO: checking for long long" >&5
  5244. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  5245. if test "${ac_cv_type_long_long+set}" = set; then
  5246. echo $ECHO_N "(cached) $ECHO_C" >&6
  5247. else
  5248. cat >conftest.$ac_ext <<_ACEOF
  5249. /* confdefs.h. */
  5250. _ACEOF
  5251. cat confdefs.h >>conftest.$ac_ext
  5252. cat >>conftest.$ac_ext <<_ACEOF
  5253. /* end confdefs.h. */
  5254. long long ll = 1LL; int i = 63;
  5255. int
  5256. main ()
  5257. {
  5258. long long llmax = (long long) -1;
  5259. return ll << i | ll >> i | llmax / ll | llmax % ll;
  5260. ;
  5261. return 0;
  5262. }
  5263. _ACEOF
  5264. rm -f conftest.$ac_objext conftest$ac_exeext
  5265. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5266. (eval $ac_link) 2>conftest.er1
  5267. ac_status=$?
  5268. grep -v '^ *+' conftest.er1 >conftest.err
  5269. rm -f conftest.er1
  5270. cat conftest.err >&5
  5271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5272. (exit $ac_status); } &&
  5273. { ac_try='test -z "$ac_cxx_werror_flag"
  5274. || test ! -s conftest.err'
  5275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5276. (eval $ac_try) 2>&5
  5277. ac_status=$?
  5278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5279. (exit $ac_status); }; } &&
  5280. { ac_try='test -s conftest$ac_exeext'
  5281. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5282. (eval $ac_try) 2>&5
  5283. ac_status=$?
  5284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5285. (exit $ac_status); }; }; then
  5286. ac_cv_type_long_long=yes
  5287. else
  5288. echo "$as_me: failed program was:" >&5
  5289. sed 's/^/| /' conftest.$ac_ext >&5
  5290. ac_cv_type_long_long=no
  5291. fi
  5292. rm -f conftest.err conftest.$ac_objext \
  5293. conftest$ac_exeext conftest.$ac_ext
  5294. fi
  5295. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  5296. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  5297. if test $ac_cv_type_long_long = yes; then
  5298. cat >>confdefs.h <<\_ACEOF
  5299. #define HAVE_LONG_LONG 1
  5300. _ACEOF
  5301. fi
  5302. echo "$as_me:$LINENO: checking for long double" >&5
  5303. echo $ECHO_N "checking for long double... $ECHO_C" >&6
  5304. if test "${gt_cv_c_long_double+set}" = set; then
  5305. echo $ECHO_N "(cached) $ECHO_C" >&6
  5306. else
  5307. if test "$GCC" = yes; then
  5308. gt_cv_c_long_double=yes
  5309. else
  5310. cat >conftest.$ac_ext <<_ACEOF
  5311. /* confdefs.h. */
  5312. _ACEOF
  5313. cat confdefs.h >>conftest.$ac_ext
  5314. cat >>conftest.$ac_ext <<_ACEOF
  5315. /* end confdefs.h. */
  5316. /* The Stardent Vistra knows sizeof(long double), but does not support it. */
  5317. long double foo = 0.0;
  5318. /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
  5319. int array [2*(sizeof(long double) >= sizeof(double)) - 1];
  5320. int
  5321. main ()
  5322. {
  5323. ;
  5324. return 0;
  5325. }
  5326. _ACEOF
  5327. rm -f conftest.$ac_objext
  5328. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5329. (eval $ac_compile) 2>conftest.er1
  5330. ac_status=$?
  5331. grep -v '^ *+' conftest.er1 >conftest.err
  5332. rm -f conftest.er1
  5333. cat conftest.err >&5
  5334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5335. (exit $ac_status); } &&
  5336. { ac_try='test -z "$ac_cxx_werror_flag"
  5337. || test ! -s conftest.err'
  5338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5339. (eval $ac_try) 2>&5
  5340. ac_status=$?
  5341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5342. (exit $ac_status); }; } &&
  5343. { ac_try='test -s conftest.$ac_objext'
  5344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5345. (eval $ac_try) 2>&5
  5346. ac_status=$?
  5347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5348. (exit $ac_status); }; }; then
  5349. gt_cv_c_long_double=yes
  5350. else
  5351. echo "$as_me: failed program was:" >&5
  5352. sed 's/^/| /' conftest.$ac_ext >&5
  5353. gt_cv_c_long_double=no
  5354. fi
  5355. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5356. fi
  5357. fi
  5358. echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
  5359. echo "${ECHO_T}$gt_cv_c_long_double" >&6
  5360. if test $gt_cv_c_long_double = yes; then
  5361. cat >>confdefs.h <<\_ACEOF
  5362. #define HAVE_LONG_DOUBLE 1
  5363. _ACEOF
  5364. fi
  5365. echo "$as_me:$LINENO: checking for wchar_t" >&5
  5366. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
  5367. if test "${gt_cv_c_wchar_t+set}" = set; then
  5368. echo $ECHO_N "(cached) $ECHO_C" >&6
  5369. else
  5370. cat >conftest.$ac_ext <<_ACEOF
  5371. /* confdefs.h. */
  5372. _ACEOF
  5373. cat confdefs.h >>conftest.$ac_ext
  5374. cat >>conftest.$ac_ext <<_ACEOF
  5375. /* end confdefs.h. */
  5376. #include <stddef.h>
  5377. wchar_t foo = (wchar_t)'\0';
  5378. int
  5379. main ()
  5380. {
  5381. ;
  5382. return 0;
  5383. }
  5384. _ACEOF
  5385. rm -f conftest.$ac_objext
  5386. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5387. (eval $ac_compile) 2>conftest.er1
  5388. ac_status=$?
  5389. grep -v '^ *+' conftest.er1 >conftest.err
  5390. rm -f conftest.er1
  5391. cat conftest.err >&5
  5392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5393. (exit $ac_status); } &&
  5394. { ac_try='test -z "$ac_cxx_werror_flag"
  5395. || test ! -s conftest.err'
  5396. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5397. (eval $ac_try) 2>&5
  5398. ac_status=$?
  5399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5400. (exit $ac_status); }; } &&
  5401. { ac_try='test -s conftest.$ac_objext'
  5402. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5403. (eval $ac_try) 2>&5
  5404. ac_status=$?
  5405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5406. (exit $ac_status); }; }; then
  5407. gt_cv_c_wchar_t=yes
  5408. else
  5409. echo "$as_me: failed program was:" >&5
  5410. sed 's/^/| /' conftest.$ac_ext >&5
  5411. gt_cv_c_wchar_t=no
  5412. fi
  5413. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5414. fi
  5415. echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  5416. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
  5417. if test $gt_cv_c_wchar_t = yes; then
  5418. cat >>confdefs.h <<\_ACEOF
  5419. #define HAVE_WCHAR_T 1
  5420. _ACEOF
  5421. fi
  5422. echo "$as_me:$LINENO: checking for wint_t" >&5
  5423. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
  5424. if test "${gt_cv_c_wint_t+set}" = set; then
  5425. echo $ECHO_N "(cached) $ECHO_C" >&6
  5426. else
  5427. cat >conftest.$ac_ext <<_ACEOF
  5428. /* confdefs.h. */
  5429. _ACEOF
  5430. cat confdefs.h >>conftest.$ac_ext
  5431. cat >>conftest.$ac_ext <<_ACEOF
  5432. /* end confdefs.h. */
  5433. #include <wchar.h>
  5434. wint_t foo = (wchar_t)'\0';
  5435. int
  5436. main ()
  5437. {
  5438. ;
  5439. return 0;
  5440. }
  5441. _ACEOF
  5442. rm -f conftest.$ac_objext
  5443. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5444. (eval $ac_compile) 2>conftest.er1
  5445. ac_status=$?
  5446. grep -v '^ *+' conftest.er1 >conftest.err
  5447. rm -f conftest.er1
  5448. cat conftest.err >&5
  5449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5450. (exit $ac_status); } &&
  5451. { ac_try='test -z "$ac_cxx_werror_flag"
  5452. || test ! -s conftest.err'
  5453. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5454. (eval $ac_try) 2>&5
  5455. ac_status=$?
  5456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5457. (exit $ac_status); }; } &&
  5458. { ac_try='test -s conftest.$ac_objext'
  5459. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5460. (eval $ac_try) 2>&5
  5461. ac_status=$?
  5462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5463. (exit $ac_status); }; }; then
  5464. gt_cv_c_wint_t=yes
  5465. else
  5466. echo "$as_me: failed program was:" >&5
  5467. sed 's/^/| /' conftest.$ac_ext >&5
  5468. gt_cv_c_wint_t=no
  5469. fi
  5470. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5471. fi
  5472. echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  5473. echo "${ECHO_T}$gt_cv_c_wint_t" >&6
  5474. if test $gt_cv_c_wint_t = yes; then
  5475. cat >>confdefs.h <<\_ACEOF
  5476. #define HAVE_WINT_T 1
  5477. _ACEOF
  5478. fi
  5479. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  5480. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  5481. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  5482. echo $ECHO_N "(cached) $ECHO_C" >&6
  5483. else
  5484. cat >conftest.$ac_ext <<_ACEOF
  5485. /* confdefs.h. */
  5486. _ACEOF
  5487. cat confdefs.h >>conftest.$ac_ext
  5488. cat >>conftest.$ac_ext <<_ACEOF
  5489. /* end confdefs.h. */
  5490. #include <sys/types.h>
  5491. #include <inttypes.h>
  5492. int
  5493. main ()
  5494. {
  5495. uintmax_t i = (uintmax_t) -1;
  5496. ;
  5497. return 0;
  5498. }
  5499. _ACEOF
  5500. rm -f conftest.$ac_objext
  5501. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5502. (eval $ac_compile) 2>conftest.er1
  5503. ac_status=$?
  5504. grep -v '^ *+' conftest.er1 >conftest.err
  5505. rm -f conftest.er1
  5506. cat conftest.err >&5
  5507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5508. (exit $ac_status); } &&
  5509. { ac_try='test -z "$ac_cxx_werror_flag"
  5510. || test ! -s conftest.err'
  5511. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5512. (eval $ac_try) 2>&5
  5513. ac_status=$?
  5514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5515. (exit $ac_status); }; } &&
  5516. { ac_try='test -s conftest.$ac_objext'
  5517. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5518. (eval $ac_try) 2>&5
  5519. ac_status=$?
  5520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5521. (exit $ac_status); }; }; then
  5522. jm_ac_cv_header_inttypes_h=yes
  5523. else
  5524. echo "$as_me: failed program was:" >&5
  5525. sed 's/^/| /' conftest.$ac_ext >&5
  5526. jm_ac_cv_header_inttypes_h=no
  5527. fi
  5528. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5529. fi
  5530. echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  5531. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
  5532. if test $jm_ac_cv_header_inttypes_h = yes; then
  5533. cat >>confdefs.h <<_ACEOF
  5534. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  5535. _ACEOF
  5536. fi
  5537. echo "$as_me:$LINENO: checking for stdint.h" >&5
  5538. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
  5539. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  5540. echo $ECHO_N "(cached) $ECHO_C" >&6
  5541. else
  5542. cat >conftest.$ac_ext <<_ACEOF
  5543. /* confdefs.h. */
  5544. _ACEOF
  5545. cat confdefs.h >>conftest.$ac_ext
  5546. cat >>conftest.$ac_ext <<_ACEOF
  5547. /* end confdefs.h. */
  5548. #include <sys/types.h>
  5549. #include <stdint.h>
  5550. int
  5551. main ()
  5552. {
  5553. uintmax_t i = (uintmax_t) -1;
  5554. ;
  5555. return 0;
  5556. }
  5557. _ACEOF
  5558. rm -f conftest.$ac_objext
  5559. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5560. (eval $ac_compile) 2>conftest.er1
  5561. ac_status=$?
  5562. grep -v '^ *+' conftest.er1 >conftest.err
  5563. rm -f conftest.er1
  5564. cat conftest.err >&5
  5565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5566. (exit $ac_status); } &&
  5567. { ac_try='test -z "$ac_cxx_werror_flag"
  5568. || test ! -s conftest.err'
  5569. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5570. (eval $ac_try) 2>&5
  5571. ac_status=$?
  5572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5573. (exit $ac_status); }; } &&
  5574. { ac_try='test -s conftest.$ac_objext'
  5575. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5576. (eval $ac_try) 2>&5
  5577. ac_status=$?
  5578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5579. (exit $ac_status); }; }; then
  5580. jm_ac_cv_header_stdint_h=yes
  5581. else
  5582. echo "$as_me: failed program was:" >&5
  5583. sed 's/^/| /' conftest.$ac_ext >&5
  5584. jm_ac_cv_header_stdint_h=no
  5585. fi
  5586. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5587. fi
  5588. echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  5589. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
  5590. if test $jm_ac_cv_header_stdint_h = yes; then
  5591. cat >>confdefs.h <<_ACEOF
  5592. #define HAVE_STDINT_H_WITH_UINTMAX 1
  5593. _ACEOF
  5594. fi
  5595. echo "$as_me:$LINENO: checking for intmax_t" >&5
  5596. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
  5597. if test "${gt_cv_c_intmax_t+set}" = set; then
  5598. echo $ECHO_N "(cached) $ECHO_C" >&6
  5599. else
  5600. cat >conftest.$ac_ext <<_ACEOF
  5601. /* confdefs.h. */
  5602. _ACEOF
  5603. cat confdefs.h >>conftest.$ac_ext
  5604. cat >>conftest.$ac_ext <<_ACEOF
  5605. /* end confdefs.h. */
  5606. #include <stddef.h>
  5607. #include <stdlib.h>
  5608. #if HAVE_STDINT_H_WITH_UINTMAX
  5609. #include <stdint.h>
  5610. #endif
  5611. #if HAVE_INTTYPES_H_WITH_UINTMAX
  5612. #include <inttypes.h>
  5613. #endif
  5614. int
  5615. main ()
  5616. {
  5617. intmax_t x = -1;
  5618. ;
  5619. return 0;
  5620. }
  5621. _ACEOF
  5622. rm -f conftest.$ac_objext
  5623. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5624. (eval $ac_compile) 2>conftest.er1
  5625. ac_status=$?
  5626. grep -v '^ *+' conftest.er1 >conftest.err
  5627. rm -f conftest.er1
  5628. cat conftest.err >&5
  5629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5630. (exit $ac_status); } &&
  5631. { ac_try='test -z "$ac_cxx_werror_flag"
  5632. || test ! -s conftest.err'
  5633. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5634. (eval $ac_try) 2>&5
  5635. ac_status=$?
  5636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5637. (exit $ac_status); }; } &&
  5638. { ac_try='test -s conftest.$ac_objext'
  5639. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5640. (eval $ac_try) 2>&5
  5641. ac_status=$?
  5642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5643. (exit $ac_status); }; }; then
  5644. gt_cv_c_intmax_t=yes
  5645. else
  5646. echo "$as_me: failed program was:" >&5
  5647. sed 's/^/| /' conftest.$ac_ext >&5
  5648. gt_cv_c_intmax_t=no
  5649. fi
  5650. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5651. fi
  5652. echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  5653. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
  5654. if test $gt_cv_c_intmax_t = yes; then
  5655. cat >>confdefs.h <<\_ACEOF
  5656. #define HAVE_INTMAX_T 1
  5657. _ACEOF
  5658. fi
  5659. echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  5660. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
  5661. if test "${gt_cv_func_printf_posix+set}" = set; then
  5662. echo $ECHO_N "(cached) $ECHO_C" >&6
  5663. else
  5664. if test "$cross_compiling" = yes; then
  5665. cat >conftest.$ac_ext <<_ACEOF
  5666. /* confdefs.h. */
  5667. _ACEOF
  5668. cat confdefs.h >>conftest.$ac_ext
  5669. cat >>conftest.$ac_ext <<_ACEOF
  5670. /* end confdefs.h. */
  5671. #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  5672. notposix
  5673. #endif
  5674. _ACEOF
  5675. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5676. $EGREP "notposix" >/dev/null 2>&1; then
  5677. gt_cv_func_printf_posix="guessing no"
  5678. else
  5679. gt_cv_func_printf_posix="guessing yes"
  5680. fi
  5681. rm -f conftest*
  5682. else
  5683. cat >conftest.$ac_ext <<_ACEOF
  5684. /* confdefs.h. */
  5685. _ACEOF
  5686. cat confdefs.h >>conftest.$ac_ext
  5687. cat >>conftest.$ac_ext <<_ACEOF
  5688. /* end confdefs.h. */
  5689. #include <stdio.h>
  5690. #include <string.h>
  5691. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  5692. dollar expansion (possibly an autoconf bug). */
  5693. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  5694. static char buf[100];
  5695. int main ()
  5696. {
  5697. sprintf (buf, format, 33, 55);
  5698. return (strcmp (buf, "55 33") != 0);
  5699. }
  5700. _ACEOF
  5701. rm -f conftest$ac_exeext
  5702. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5703. (eval $ac_link) 2>&5
  5704. ac_status=$?
  5705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5706. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5707. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5708. (eval $ac_try) 2>&5
  5709. ac_status=$?
  5710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5711. (exit $ac_status); }; }; then
  5712. gt_cv_func_printf_posix=yes
  5713. else
  5714. echo "$as_me: program exited with status $ac_status" >&5
  5715. echo "$as_me: failed program was:" >&5
  5716. sed 's/^/| /' conftest.$ac_ext >&5
  5717. ( exit $ac_status )
  5718. gt_cv_func_printf_posix=no
  5719. fi
  5720. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5721. fi
  5722. fi
  5723. echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  5724. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
  5725. case $gt_cv_func_printf_posix in
  5726. *yes)
  5727. cat >>confdefs.h <<\_ACEOF
  5728. #define HAVE_POSIX_PRINTF 1
  5729. _ACEOF
  5730. ;;
  5731. esac
  5732. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  5733. # for constant arguments. Useless!
  5734. echo "$as_me:$LINENO: checking for working alloca.h" >&5
  5735. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
  5736. if test "${ac_cv_working_alloca_h+set}" = set; then
  5737. echo $ECHO_N "(cached) $ECHO_C" >&6
  5738. else
  5739. cat >conftest.$ac_ext <<_ACEOF
  5740. /* confdefs.h. */
  5741. _ACEOF
  5742. cat confdefs.h >>conftest.$ac_ext
  5743. cat >>conftest.$ac_ext <<_ACEOF
  5744. /* end confdefs.h. */
  5745. #include <alloca.h>
  5746. int
  5747. main ()
  5748. {
  5749. char *p = (char *) alloca (2 * sizeof (int));
  5750. ;
  5751. return 0;
  5752. }
  5753. _ACEOF
  5754. rm -f conftest.$ac_objext conftest$ac_exeext
  5755. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5756. (eval $ac_link) 2>conftest.er1
  5757. ac_status=$?
  5758. grep -v '^ *+' conftest.er1 >conftest.err
  5759. rm -f conftest.er1
  5760. cat conftest.err >&5
  5761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5762. (exit $ac_status); } &&
  5763. { ac_try='test -z "$ac_cxx_werror_flag"
  5764. || test ! -s conftest.err'
  5765. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5766. (eval $ac_try) 2>&5
  5767. ac_status=$?
  5768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5769. (exit $ac_status); }; } &&
  5770. { ac_try='test -s conftest$ac_exeext'
  5771. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5772. (eval $ac_try) 2>&5
  5773. ac_status=$?
  5774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5775. (exit $ac_status); }; }; then
  5776. ac_cv_working_alloca_h=yes
  5777. else
  5778. echo "$as_me: failed program was:" >&5
  5779. sed 's/^/| /' conftest.$ac_ext >&5
  5780. ac_cv_working_alloca_h=no
  5781. fi
  5782. rm -f conftest.err conftest.$ac_objext \
  5783. conftest$ac_exeext conftest.$ac_ext
  5784. fi
  5785. echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  5786. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
  5787. if test $ac_cv_working_alloca_h = yes; then
  5788. cat >>confdefs.h <<\_ACEOF
  5789. #define HAVE_ALLOCA_H 1
  5790. _ACEOF
  5791. fi
  5792. echo "$as_me:$LINENO: checking for alloca" >&5
  5793. echo $ECHO_N "checking for alloca... $ECHO_C" >&6
  5794. if test "${ac_cv_func_alloca_works+set}" = set; then
  5795. echo $ECHO_N "(cached) $ECHO_C" >&6
  5796. else
  5797. cat >conftest.$ac_ext <<_ACEOF
  5798. /* confdefs.h. */
  5799. _ACEOF
  5800. cat confdefs.h >>conftest.$ac_ext
  5801. cat >>conftest.$ac_ext <<_ACEOF
  5802. /* end confdefs.h. */
  5803. #ifdef __GNUC__
  5804. # define alloca __builtin_alloca
  5805. #else
  5806. # ifdef _MSC_VER
  5807. # include <malloc.h>
  5808. # define alloca _alloca
  5809. # else
  5810. # if HAVE_ALLOCA_H
  5811. # include <alloca.h>
  5812. # else
  5813. # ifdef _AIX
  5814. #pragma alloca
  5815. # else
  5816. # ifndef alloca /* predefined by HP cc +Olibcalls */
  5817. char *alloca ();
  5818. # endif
  5819. # endif
  5820. # endif
  5821. # endif
  5822. #endif
  5823. int
  5824. main ()
  5825. {
  5826. char *p = (char *) alloca (1);
  5827. ;
  5828. return 0;
  5829. }
  5830. _ACEOF
  5831. rm -f conftest.$ac_objext conftest$ac_exeext
  5832. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5833. (eval $ac_link) 2>conftest.er1
  5834. ac_status=$?
  5835. grep -v '^ *+' conftest.er1 >conftest.err
  5836. rm -f conftest.er1
  5837. cat conftest.err >&5
  5838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5839. (exit $ac_status); } &&
  5840. { ac_try='test -z "$ac_cxx_werror_flag"
  5841. || 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_exeext'
  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_func_alloca_works=yes
  5854. else
  5855. echo "$as_me: failed program was:" >&5
  5856. sed 's/^/| /' conftest.$ac_ext >&5
  5857. ac_cv_func_alloca_works=no
  5858. fi
  5859. rm -f conftest.err conftest.$ac_objext \
  5860. conftest$ac_exeext conftest.$ac_ext
  5861. fi
  5862. echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  5863. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
  5864. if test $ac_cv_func_alloca_works = yes; then
  5865. cat >>confdefs.h <<\_ACEOF
  5866. #define HAVE_ALLOCA 1
  5867. _ACEOF
  5868. else
  5869. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  5870. # that cause trouble. Some versions do not even contain alloca or
  5871. # contain a buggy version. If you still want to use their alloca,
  5872. # use ar to extract alloca.o from them instead of compiling alloca.c.
  5873. ALLOCA=alloca.$ac_objext
  5874. cat >>confdefs.h <<\_ACEOF
  5875. #define C_ALLOCA 1
  5876. _ACEOF
  5877. echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  5878. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
  5879. if test "${ac_cv_os_cray+set}" = set; then
  5880. echo $ECHO_N "(cached) $ECHO_C" >&6
  5881. else
  5882. cat >conftest.$ac_ext <<_ACEOF
  5883. /* confdefs.h. */
  5884. _ACEOF
  5885. cat confdefs.h >>conftest.$ac_ext
  5886. cat >>conftest.$ac_ext <<_ACEOF
  5887. /* end confdefs.h. */
  5888. #if defined(CRAY) && ! defined(CRAY2)
  5889. webecray
  5890. #else
  5891. wenotbecray
  5892. #endif
  5893. _ACEOF
  5894. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5895. $EGREP "webecray" >/dev/null 2>&1; then
  5896. ac_cv_os_cray=yes
  5897. else
  5898. ac_cv_os_cray=no
  5899. fi
  5900. rm -f conftest*
  5901. fi
  5902. echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  5903. echo "${ECHO_T}$ac_cv_os_cray" >&6
  5904. if test $ac_cv_os_cray = yes; then
  5905. for ac_func in _getb67 GETB67 getb67; do
  5906. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5907. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5908. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5909. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5910. echo $ECHO_N "(cached) $ECHO_C" >&6
  5911. else
  5912. cat >conftest.$ac_ext <<_ACEOF
  5913. /* confdefs.h. */
  5914. _ACEOF
  5915. cat confdefs.h >>conftest.$ac_ext
  5916. cat >>conftest.$ac_ext <<_ACEOF
  5917. /* end confdefs.h. */
  5918. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5919. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5920. #define $ac_func innocuous_$ac_func
  5921. /* System header to define __stub macros and hopefully few prototypes,
  5922. which can conflict with char $ac_func (); below.
  5923. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5924. <limits.h> exists even on freestanding compilers. */
  5925. #ifdef __STDC__
  5926. # include <limits.h>
  5927. #else
  5928. # include <assert.h>
  5929. #endif
  5930. #undef $ac_func
  5931. /* Override any gcc2 internal prototype to avoid an error. */
  5932. #ifdef __cplusplus
  5933. extern "C"
  5934. {
  5935. #endif
  5936. /* We use char because int might match the return type of a gcc2
  5937. builtin and then its argument prototype would still apply. */
  5938. char $ac_func ();
  5939. /* The GNU C library defines this for functions which it implements
  5940. to always fail with ENOSYS. Some functions are actually named
  5941. something starting with __ and the normal name is an alias. */
  5942. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5943. choke me
  5944. #else
  5945. char (*f) () = $ac_func;
  5946. #endif
  5947. #ifdef __cplusplus
  5948. }
  5949. #endif
  5950. int
  5951. main ()
  5952. {
  5953. return f != $ac_func;
  5954. ;
  5955. return 0;
  5956. }
  5957. _ACEOF
  5958. rm -f conftest.$ac_objext conftest$ac_exeext
  5959. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5960. (eval $ac_link) 2>conftest.er1
  5961. ac_status=$?
  5962. grep -v '^ *+' conftest.er1 >conftest.err
  5963. rm -f conftest.er1
  5964. cat conftest.err >&5
  5965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5966. (exit $ac_status); } &&
  5967. { ac_try='test -z "$ac_cxx_werror_flag"
  5968. || test ! -s conftest.err'
  5969. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5970. (eval $ac_try) 2>&5
  5971. ac_status=$?
  5972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5973. (exit $ac_status); }; } &&
  5974. { ac_try='test -s conftest$ac_exeext'
  5975. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5976. (eval $ac_try) 2>&5
  5977. ac_status=$?
  5978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5979. (exit $ac_status); }; }; then
  5980. eval "$as_ac_var=yes"
  5981. else
  5982. echo "$as_me: failed program was:" >&5
  5983. sed 's/^/| /' conftest.$ac_ext >&5
  5984. eval "$as_ac_var=no"
  5985. fi
  5986. rm -f conftest.err conftest.$ac_objext \
  5987. conftest$ac_exeext conftest.$ac_ext
  5988. fi
  5989. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5990. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5991. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5992. cat >>confdefs.h <<_ACEOF
  5993. #define CRAY_STACKSEG_END $ac_func
  5994. _ACEOF
  5995. break
  5996. fi
  5997. done
  5998. fi
  5999. echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6000. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
  6001. if test "${ac_cv_c_stack_direction+set}" = set; then
  6002. echo $ECHO_N "(cached) $ECHO_C" >&6
  6003. else
  6004. if test "$cross_compiling" = yes; then
  6005. ac_cv_c_stack_direction=0
  6006. else
  6007. cat >conftest.$ac_ext <<_ACEOF
  6008. /* confdefs.h. */
  6009. _ACEOF
  6010. cat confdefs.h >>conftest.$ac_ext
  6011. cat >>conftest.$ac_ext <<_ACEOF
  6012. /* end confdefs.h. */
  6013. int
  6014. find_stack_direction ()
  6015. {
  6016. static char *addr = 0;
  6017. auto char dummy;
  6018. if (addr == 0)
  6019. {
  6020. addr = &dummy;
  6021. return find_stack_direction ();
  6022. }
  6023. else
  6024. return (&dummy > addr) ? 1 : -1;
  6025. }
  6026. int
  6027. main ()
  6028. {
  6029. exit (find_stack_direction () < 0);
  6030. }
  6031. _ACEOF
  6032. rm -f conftest$ac_exeext
  6033. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6034. (eval $ac_link) 2>&5
  6035. ac_status=$?
  6036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6037. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6038. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6039. (eval $ac_try) 2>&5
  6040. ac_status=$?
  6041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6042. (exit $ac_status); }; }; then
  6043. ac_cv_c_stack_direction=1
  6044. else
  6045. echo "$as_me: program exited with status $ac_status" >&5
  6046. echo "$as_me: failed program was:" >&5
  6047. sed 's/^/| /' conftest.$ac_ext >&5
  6048. ( exit $ac_status )
  6049. ac_cv_c_stack_direction=-1
  6050. fi
  6051. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6052. fi
  6053. fi
  6054. echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6055. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
  6056. cat >>confdefs.h <<_ACEOF
  6057. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6058. _ACEOF
  6059. fi
  6060. for ac_header in stdlib.h unistd.h
  6061. do
  6062. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6063. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6064. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6065. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6066. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6067. echo $ECHO_N "(cached) $ECHO_C" >&6
  6068. fi
  6069. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6070. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6071. else
  6072. # Is the header compilable?
  6073. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6074. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6075. cat >conftest.$ac_ext <<_ACEOF
  6076. /* confdefs.h. */
  6077. _ACEOF
  6078. cat confdefs.h >>conftest.$ac_ext
  6079. cat >>conftest.$ac_ext <<_ACEOF
  6080. /* end confdefs.h. */
  6081. $ac_includes_default
  6082. #include <$ac_header>
  6083. _ACEOF
  6084. rm -f conftest.$ac_objext
  6085. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6086. (eval $ac_compile) 2>conftest.er1
  6087. ac_status=$?
  6088. grep -v '^ *+' conftest.er1 >conftest.err
  6089. rm -f conftest.er1
  6090. cat conftest.err >&5
  6091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6092. (exit $ac_status); } &&
  6093. { ac_try='test -z "$ac_cxx_werror_flag"
  6094. || test ! -s conftest.err'
  6095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6096. (eval $ac_try) 2>&5
  6097. ac_status=$?
  6098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6099. (exit $ac_status); }; } &&
  6100. { ac_try='test -s conftest.$ac_objext'
  6101. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6102. (eval $ac_try) 2>&5
  6103. ac_status=$?
  6104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6105. (exit $ac_status); }; }; then
  6106. ac_header_compiler=yes
  6107. else
  6108. echo "$as_me: failed program was:" >&5
  6109. sed 's/^/| /' conftest.$ac_ext >&5
  6110. ac_header_compiler=no
  6111. fi
  6112. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6113. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6114. echo "${ECHO_T}$ac_header_compiler" >&6
  6115. # Is the header present?
  6116. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6117. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6118. cat >conftest.$ac_ext <<_ACEOF
  6119. /* confdefs.h. */
  6120. _ACEOF
  6121. cat confdefs.h >>conftest.$ac_ext
  6122. cat >>conftest.$ac_ext <<_ACEOF
  6123. /* end confdefs.h. */
  6124. #include <$ac_header>
  6125. _ACEOF
  6126. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6127. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6128. ac_status=$?
  6129. grep -v '^ *+' conftest.er1 >conftest.err
  6130. rm -f conftest.er1
  6131. cat conftest.err >&5
  6132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6133. (exit $ac_status); } >/dev/null; then
  6134. if test -s conftest.err; then
  6135. ac_cpp_err=$ac_cxx_preproc_warn_flag
  6136. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  6137. else
  6138. ac_cpp_err=
  6139. fi
  6140. else
  6141. ac_cpp_err=yes
  6142. fi
  6143. if test -z "$ac_cpp_err"; then
  6144. ac_header_preproc=yes
  6145. else
  6146. echo "$as_me: failed program was:" >&5
  6147. sed 's/^/| /' conftest.$ac_ext >&5
  6148. ac_header_preproc=no
  6149. fi
  6150. rm -f conftest.err conftest.$ac_ext
  6151. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6152. echo "${ECHO_T}$ac_header_preproc" >&6
  6153. # So? What about this header?
  6154. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  6155. yes:no: )
  6156. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6157. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6158. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6159. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6160. ac_header_preproc=yes
  6161. ;;
  6162. no:yes:* )
  6163. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6164. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6165. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6166. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6167. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6168. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6169. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6170. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6171. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6172. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6173. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6174. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6175. (
  6176. cat <<\_ASBOX
  6177. ## ------------------------------------------ ##
  6178. ## Report this to the AC_PACKAGE_NAME lists. ##
  6179. ## ------------------------------------------ ##
  6180. _ASBOX
  6181. ) |
  6182. sed "s/^/$as_me: WARNING: /" >&2
  6183. ;;
  6184. esac
  6185. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6186. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6187. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6188. echo $ECHO_N "(cached) $ECHO_C" >&6
  6189. else
  6190. eval "$as_ac_Header=\$ac_header_preproc"
  6191. fi
  6192. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6193. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6194. fi
  6195. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6196. cat >>confdefs.h <<_ACEOF
  6197. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6198. _ACEOF
  6199. fi
  6200. done
  6201. for ac_func in getpagesize
  6202. do
  6203. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6204. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6205. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6206. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6207. echo $ECHO_N "(cached) $ECHO_C" >&6
  6208. else
  6209. cat >conftest.$ac_ext <<_ACEOF
  6210. /* confdefs.h. */
  6211. _ACEOF
  6212. cat confdefs.h >>conftest.$ac_ext
  6213. cat >>conftest.$ac_ext <<_ACEOF
  6214. /* end confdefs.h. */
  6215. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6216. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6217. #define $ac_func innocuous_$ac_func
  6218. /* System header to define __stub macros and hopefully few prototypes,
  6219. which can conflict with char $ac_func (); below.
  6220. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6221. <limits.h> exists even on freestanding compilers. */
  6222. #ifdef __STDC__
  6223. # include <limits.h>
  6224. #else
  6225. # include <assert.h>
  6226. #endif
  6227. #undef $ac_func
  6228. /* Override any gcc2 internal prototype to avoid an error. */
  6229. #ifdef __cplusplus
  6230. extern "C"
  6231. {
  6232. #endif
  6233. /* We use char because int might match the return type of a gcc2
  6234. builtin and then its argument prototype would still apply. */
  6235. char $ac_func ();
  6236. /* The GNU C library defines this for functions which it implements
  6237. to always fail with ENOSYS. Some functions are actually named
  6238. something starting with __ and the normal name is an alias. */
  6239. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6240. choke me
  6241. #else
  6242. char (*f) () = $ac_func;
  6243. #endif
  6244. #ifdef __cplusplus
  6245. }
  6246. #endif
  6247. int
  6248. main ()
  6249. {
  6250. return f != $ac_func;
  6251. ;
  6252. return 0;
  6253. }
  6254. _ACEOF
  6255. rm -f conftest.$ac_objext conftest$ac_exeext
  6256. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6257. (eval $ac_link) 2>conftest.er1
  6258. ac_status=$?
  6259. grep -v '^ *+' conftest.er1 >conftest.err
  6260. rm -f conftest.er1
  6261. cat conftest.err >&5
  6262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6263. (exit $ac_status); } &&
  6264. { ac_try='test -z "$ac_cxx_werror_flag"
  6265. || test ! -s conftest.err'
  6266. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6267. (eval $ac_try) 2>&5
  6268. ac_status=$?
  6269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6270. (exit $ac_status); }; } &&
  6271. { ac_try='test -s conftest$ac_exeext'
  6272. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6273. (eval $ac_try) 2>&5
  6274. ac_status=$?
  6275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6276. (exit $ac_status); }; }; then
  6277. eval "$as_ac_var=yes"
  6278. else
  6279. echo "$as_me: failed program was:" >&5
  6280. sed 's/^/| /' conftest.$ac_ext >&5
  6281. eval "$as_ac_var=no"
  6282. fi
  6283. rm -f conftest.err conftest.$ac_objext \
  6284. conftest$ac_exeext conftest.$ac_ext
  6285. fi
  6286. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6287. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6288. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6289. cat >>confdefs.h <<_ACEOF
  6290. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6291. _ACEOF
  6292. fi
  6293. done
  6294. echo "$as_me:$LINENO: checking for working mmap" >&5
  6295. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  6296. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  6297. echo $ECHO_N "(cached) $ECHO_C" >&6
  6298. else
  6299. if test "$cross_compiling" = yes; then
  6300. ac_cv_func_mmap_fixed_mapped=no
  6301. else
  6302. cat >conftest.$ac_ext <<_ACEOF
  6303. /* confdefs.h. */
  6304. _ACEOF
  6305. cat confdefs.h >>conftest.$ac_ext
  6306. cat >>conftest.$ac_ext <<_ACEOF
  6307. /* end confdefs.h. */
  6308. $ac_includes_default
  6309. /* malloc might have been renamed as rpl_malloc. */
  6310. #undef malloc
  6311. /* Thanks to Mike Haertel and Jim Avera for this test.
  6312. Here is a matrix of mmap possibilities:
  6313. mmap private not fixed
  6314. mmap private fixed at somewhere currently unmapped
  6315. mmap private fixed at somewhere already mapped
  6316. mmap shared not fixed
  6317. mmap shared fixed at somewhere currently unmapped
  6318. mmap shared fixed at somewhere already mapped
  6319. For private mappings, we should verify that changes cannot be read()
  6320. back from the file, nor mmap's back from the file at a different
  6321. address. (There have been systems where private was not correctly
  6322. implemented like the infamous i386 svr4.0, and systems where the
  6323. VM page cache was not coherent with the file system buffer cache
  6324. like early versions of FreeBSD and possibly contemporary NetBSD.)
  6325. For shared mappings, we should conversely verify that changes get
  6326. propagated back to all the places they're supposed to be.
  6327. Grep wants private fixed already mapped.
  6328. The main things grep needs to know about mmap are:
  6329. * does it exist and is it safe to write into the mmap'd area
  6330. * how to use it (BSD variants) */
  6331. #include <fcntl.h>
  6332. #include <sys/mman.h>
  6333. #if !STDC_HEADERS && !HAVE_STDLIB_H
  6334. char *malloc ();
  6335. #endif
  6336. /* This mess was copied from the GNU getpagesize.h. */
  6337. #if !HAVE_GETPAGESIZE
  6338. /* Assume that all systems that can run configure have sys/param.h. */
  6339. # if !HAVE_SYS_PARAM_H
  6340. # define HAVE_SYS_PARAM_H 1
  6341. # endif
  6342. # ifdef _SC_PAGESIZE
  6343. # define getpagesize() sysconf(_SC_PAGESIZE)
  6344. # else /* no _SC_PAGESIZE */
  6345. # if HAVE_SYS_PARAM_H
  6346. # include <sys/param.h>
  6347. # ifdef EXEC_PAGESIZE
  6348. # define getpagesize() EXEC_PAGESIZE
  6349. # else /* no EXEC_PAGESIZE */
  6350. # ifdef NBPG
  6351. # define getpagesize() NBPG * CLSIZE
  6352. # ifndef CLSIZE
  6353. # define CLSIZE 1
  6354. # endif /* no CLSIZE */
  6355. # else /* no NBPG */
  6356. # ifdef NBPC
  6357. # define getpagesize() NBPC
  6358. # else /* no NBPC */
  6359. # ifdef PAGESIZE
  6360. # define getpagesize() PAGESIZE
  6361. # endif /* PAGESIZE */
  6362. # endif /* no NBPC */
  6363. # endif /* no NBPG */
  6364. # endif /* no EXEC_PAGESIZE */
  6365. # else /* no HAVE_SYS_PARAM_H */
  6366. # define getpagesize() 8192 /* punt totally */
  6367. # endif /* no HAVE_SYS_PARAM_H */
  6368. # endif /* no _SC_PAGESIZE */
  6369. #endif /* no HAVE_GETPAGESIZE */
  6370. int
  6371. main ()
  6372. {
  6373. char *data, *data2, *data3;
  6374. int i, pagesize;
  6375. int fd;
  6376. pagesize = getpagesize ();
  6377. /* First, make a file with some known garbage in it. */
  6378. data = (char *) malloc (pagesize);
  6379. if (!data)
  6380. exit (1);
  6381. for (i = 0; i < pagesize; ++i)
  6382. *(data + i) = rand ();
  6383. umask (0);
  6384. fd = creat ("conftest.mmap", 0600);
  6385. if (fd < 0)
  6386. exit (1);
  6387. if (write (fd, data, pagesize) != pagesize)
  6388. exit (1);
  6389. close (fd);
  6390. /* Next, try to mmap the file at a fixed address which already has
  6391. something else allocated at it. If we can, also make sure that
  6392. we see the same garbage. */
  6393. fd = open ("conftest.mmap", O_RDWR);
  6394. if (fd < 0)
  6395. exit (1);
  6396. data2 = (char *) malloc (2 * pagesize);
  6397. if (!data2)
  6398. exit (1);
  6399. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  6400. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  6401. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  6402. exit (1);
  6403. for (i = 0; i < pagesize; ++i)
  6404. if (*(data + i) != *(data2 + i))
  6405. exit (1);
  6406. /* Finally, make sure that changes to the mapped area do not
  6407. percolate back to the file as seen by read(). (This is a bug on
  6408. some variants of i386 svr4.0.) */
  6409. for (i = 0; i < pagesize; ++i)
  6410. *(data2 + i) = *(data2 + i) + 1;
  6411. data3 = (char *) malloc (pagesize);
  6412. if (!data3)
  6413. exit (1);
  6414. if (read (fd, data3, pagesize) != pagesize)
  6415. exit (1);
  6416. for (i = 0; i < pagesize; ++i)
  6417. if (*(data + i) != *(data3 + i))
  6418. exit (1);
  6419. close (fd);
  6420. exit (0);
  6421. }
  6422. _ACEOF
  6423. rm -f conftest$ac_exeext
  6424. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6425. (eval $ac_link) 2>&5
  6426. ac_status=$?
  6427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6428. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6429. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6430. (eval $ac_try) 2>&5
  6431. ac_status=$?
  6432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6433. (exit $ac_status); }; }; then
  6434. ac_cv_func_mmap_fixed_mapped=yes
  6435. else
  6436. echo "$as_me: program exited with status $ac_status" >&5
  6437. echo "$as_me: failed program was:" >&5
  6438. sed 's/^/| /' conftest.$ac_ext >&5
  6439. ( exit $ac_status )
  6440. ac_cv_func_mmap_fixed_mapped=no
  6441. fi
  6442. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6443. fi
  6444. fi
  6445. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  6446. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  6447. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  6448. cat >>confdefs.h <<\_ACEOF
  6449. #define HAVE_MMAP 1
  6450. _ACEOF
  6451. fi
  6452. rm -f conftest.mmap
  6453. echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  6454. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
  6455. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  6456. echo $ECHO_N "(cached) $ECHO_C" >&6
  6457. else
  6458. cat >conftest.$ac_ext <<_ACEOF
  6459. /* confdefs.h. */
  6460. _ACEOF
  6461. cat confdefs.h >>conftest.$ac_ext
  6462. cat >>conftest.$ac_ext <<_ACEOF
  6463. /* end confdefs.h. */
  6464. #include <features.h>
  6465. #ifdef __GNU_LIBRARY__
  6466. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  6467. Lucky GNU user
  6468. #endif
  6469. #endif
  6470. _ACEOF
  6471. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6472. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  6473. ac_cv_gnu_library_2_1=yes
  6474. else
  6475. ac_cv_gnu_library_2_1=no
  6476. fi
  6477. rm -f conftest*
  6478. fi
  6479. echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  6480. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
  6481. GLIBC21="$ac_cv_gnu_library_2_1"
  6482. echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  6483. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
  6484. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  6485. echo $ECHO_N "(cached) $ECHO_C" >&6
  6486. else
  6487. if test "$cross_compiling" = yes; then
  6488. # Guess based on the CPU.
  6489. case "$host_cpu" in
  6490. alpha* | i3456786 | m68k | s390*)
  6491. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  6492. *)
  6493. gt_cv_int_divbyzero_sigfpe="guessing no";;
  6494. esac
  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. #include <stdlib.h>
  6503. #include <signal.h>
  6504. static void
  6505. #ifdef __cplusplus
  6506. sigfpe_handler (int sig)
  6507. #else
  6508. sigfpe_handler (sig) int sig;
  6509. #endif
  6510. {
  6511. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  6512. exit (sig != SIGFPE);
  6513. }
  6514. int x = 1;
  6515. int y = 0;
  6516. int z;
  6517. int nan;
  6518. int main ()
  6519. {
  6520. signal (SIGFPE, sigfpe_handler);
  6521. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  6522. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  6523. signal (SIGTRAP, sigfpe_handler);
  6524. #endif
  6525. /* Linux/SPARC yields signal SIGILL. */
  6526. #if defined (__sparc__) && defined (__linux__)
  6527. signal (SIGILL, sigfpe_handler);
  6528. #endif
  6529. z = x / y;
  6530. nan = y / y;
  6531. exit (1);
  6532. }
  6533. _ACEOF
  6534. rm -f conftest$ac_exeext
  6535. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6536. (eval $ac_link) 2>&5
  6537. ac_status=$?
  6538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6539. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6541. (eval $ac_try) 2>&5
  6542. ac_status=$?
  6543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6544. (exit $ac_status); }; }; then
  6545. gt_cv_int_divbyzero_sigfpe=yes
  6546. else
  6547. echo "$as_me: program exited with status $ac_status" >&5
  6548. echo "$as_me: failed program was:" >&5
  6549. sed 's/^/| /' conftest.$ac_ext >&5
  6550. ( exit $ac_status )
  6551. gt_cv_int_divbyzero_sigfpe=no
  6552. fi
  6553. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6554. fi
  6555. fi
  6556. echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  6557. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
  6558. case "$gt_cv_int_divbyzero_sigfpe" in
  6559. *yes) value=1;;
  6560. *) value=0;;
  6561. esac
  6562. cat >>confdefs.h <<_ACEOF
  6563. #define INTDIV0_RAISES_SIGFPE $value
  6564. _ACEOF
  6565. echo "$as_me:$LINENO: checking for unsigned long long" >&5
  6566. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
  6567. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  6568. echo $ECHO_N "(cached) $ECHO_C" >&6
  6569. else
  6570. cat >conftest.$ac_ext <<_ACEOF
  6571. /* confdefs.h. */
  6572. _ACEOF
  6573. cat confdefs.h >>conftest.$ac_ext
  6574. cat >>conftest.$ac_ext <<_ACEOF
  6575. /* end confdefs.h. */
  6576. unsigned long long ull = 1ULL; int i = 63;
  6577. int
  6578. main ()
  6579. {
  6580. unsigned long long ullmax = (unsigned long long) -1;
  6581. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  6582. ;
  6583. return 0;
  6584. }
  6585. _ACEOF
  6586. rm -f conftest.$ac_objext conftest$ac_exeext
  6587. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6588. (eval $ac_link) 2>conftest.er1
  6589. ac_status=$?
  6590. grep -v '^ *+' conftest.er1 >conftest.err
  6591. rm -f conftest.er1
  6592. cat conftest.err >&5
  6593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6594. (exit $ac_status); } &&
  6595. { ac_try='test -z "$ac_cxx_werror_flag"
  6596. || test ! -s conftest.err'
  6597. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6598. (eval $ac_try) 2>&5
  6599. ac_status=$?
  6600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6601. (exit $ac_status); }; } &&
  6602. { ac_try='test -s conftest$ac_exeext'
  6603. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6604. (eval $ac_try) 2>&5
  6605. ac_status=$?
  6606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6607. (exit $ac_status); }; }; then
  6608. ac_cv_type_unsigned_long_long=yes
  6609. else
  6610. echo "$as_me: failed program was:" >&5
  6611. sed 's/^/| /' conftest.$ac_ext >&5
  6612. ac_cv_type_unsigned_long_long=no
  6613. fi
  6614. rm -f conftest.err conftest.$ac_objext \
  6615. conftest$ac_exeext conftest.$ac_ext
  6616. fi
  6617. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  6618. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
  6619. if test $ac_cv_type_unsigned_long_long = yes; then
  6620. cat >>confdefs.h <<\_ACEOF
  6621. #define HAVE_UNSIGNED_LONG_LONG 1
  6622. _ACEOF
  6623. fi
  6624. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  6625. test $ac_cv_type_unsigned_long_long = yes \
  6626. && ac_type='unsigned long long' \
  6627. || ac_type='unsigned long'
  6628. cat >>confdefs.h <<_ACEOF
  6629. #define uintmax_t $ac_type
  6630. _ACEOF
  6631. else
  6632. cat >>confdefs.h <<\_ACEOF
  6633. #define HAVE_UINTMAX_T 1
  6634. _ACEOF
  6635. fi
  6636. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  6637. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  6638. if test "${gt_cv_header_inttypes_h+set}" = set; then
  6639. echo $ECHO_N "(cached) $ECHO_C" >&6
  6640. else
  6641. cat >conftest.$ac_ext <<_ACEOF
  6642. /* confdefs.h. */
  6643. _ACEOF
  6644. cat confdefs.h >>conftest.$ac_ext
  6645. cat >>conftest.$ac_ext <<_ACEOF
  6646. /* end confdefs.h. */
  6647. #include <sys/types.h>
  6648. #include <inttypes.h>
  6649. int
  6650. main ()
  6651. {
  6652. ;
  6653. return 0;
  6654. }
  6655. _ACEOF
  6656. rm -f conftest.$ac_objext
  6657. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6658. (eval $ac_compile) 2>conftest.er1
  6659. ac_status=$?
  6660. grep -v '^ *+' conftest.er1 >conftest.err
  6661. rm -f conftest.er1
  6662. cat conftest.err >&5
  6663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6664. (exit $ac_status); } &&
  6665. { ac_try='test -z "$ac_cxx_werror_flag"
  6666. || test ! -s conftest.err'
  6667. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6668. (eval $ac_try) 2>&5
  6669. ac_status=$?
  6670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6671. (exit $ac_status); }; } &&
  6672. { ac_try='test -s conftest.$ac_objext'
  6673. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6674. (eval $ac_try) 2>&5
  6675. ac_status=$?
  6676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6677. (exit $ac_status); }; }; then
  6678. gt_cv_header_inttypes_h=yes
  6679. else
  6680. echo "$as_me: failed program was:" >&5
  6681. sed 's/^/| /' conftest.$ac_ext >&5
  6682. gt_cv_header_inttypes_h=no
  6683. fi
  6684. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6685. fi
  6686. echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  6687. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
  6688. if test $gt_cv_header_inttypes_h = yes; then
  6689. cat >>confdefs.h <<_ACEOF
  6690. #define HAVE_INTTYPES_H 1
  6691. _ACEOF
  6692. fi
  6693. if test $gt_cv_header_inttypes_h = yes; then
  6694. echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  6695. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
  6696. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  6697. echo $ECHO_N "(cached) $ECHO_C" >&6
  6698. else
  6699. cat >conftest.$ac_ext <<_ACEOF
  6700. /* confdefs.h. */
  6701. _ACEOF
  6702. cat confdefs.h >>conftest.$ac_ext
  6703. cat >>conftest.$ac_ext <<_ACEOF
  6704. /* end confdefs.h. */
  6705. #include <inttypes.h>
  6706. #ifdef PRId32
  6707. char *p = PRId32;
  6708. #endif
  6709. int
  6710. main ()
  6711. {
  6712. ;
  6713. return 0;
  6714. }
  6715. _ACEOF
  6716. rm -f conftest.$ac_objext
  6717. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6718. (eval $ac_compile) 2>conftest.er1
  6719. ac_status=$?
  6720. grep -v '^ *+' conftest.er1 >conftest.err
  6721. rm -f conftest.er1
  6722. cat conftest.err >&5
  6723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6724. (exit $ac_status); } &&
  6725. { ac_try='test -z "$ac_cxx_werror_flag"
  6726. || test ! -s conftest.err'
  6727. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6728. (eval $ac_try) 2>&5
  6729. ac_status=$?
  6730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6731. (exit $ac_status); }; } &&
  6732. { ac_try='test -s conftest.$ac_objext'
  6733. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6734. (eval $ac_try) 2>&5
  6735. ac_status=$?
  6736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6737. (exit $ac_status); }; }; then
  6738. gt_cv_inttypes_pri_broken=no
  6739. else
  6740. echo "$as_me: failed program was:" >&5
  6741. sed 's/^/| /' conftest.$ac_ext >&5
  6742. gt_cv_inttypes_pri_broken=yes
  6743. fi
  6744. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6745. fi
  6746. echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  6747. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
  6748. fi
  6749. if test "$gt_cv_inttypes_pri_broken" = yes; then
  6750. cat >>confdefs.h <<_ACEOF
  6751. #define PRI_MACROS_BROKEN 1
  6752. _ACEOF
  6753. fi
  6754. for ac_header in stdint.h
  6755. do
  6756. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6757. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6758. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6759. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6760. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6761. echo $ECHO_N "(cached) $ECHO_C" >&6
  6762. fi
  6763. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6764. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6765. else
  6766. # Is the header compilable?
  6767. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6768. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6769. cat >conftest.$ac_ext <<_ACEOF
  6770. /* confdefs.h. */
  6771. _ACEOF
  6772. cat confdefs.h >>conftest.$ac_ext
  6773. cat >>conftest.$ac_ext <<_ACEOF
  6774. /* end confdefs.h. */
  6775. $ac_includes_default
  6776. #include <$ac_header>
  6777. _ACEOF
  6778. rm -f conftest.$ac_objext
  6779. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6780. (eval $ac_compile) 2>conftest.er1
  6781. ac_status=$?
  6782. grep -v '^ *+' conftest.er1 >conftest.err
  6783. rm -f conftest.er1
  6784. cat conftest.err >&5
  6785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6786. (exit $ac_status); } &&
  6787. { ac_try='test -z "$ac_cxx_werror_flag"
  6788. || test ! -s conftest.err'
  6789. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6790. (eval $ac_try) 2>&5
  6791. ac_status=$?
  6792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6793. (exit $ac_status); }; } &&
  6794. { ac_try='test -s conftest.$ac_objext'
  6795. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6796. (eval $ac_try) 2>&5
  6797. ac_status=$?
  6798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6799. (exit $ac_status); }; }; then
  6800. ac_header_compiler=yes
  6801. else
  6802. echo "$as_me: failed program was:" >&5
  6803. sed 's/^/| /' conftest.$ac_ext >&5
  6804. ac_header_compiler=no
  6805. fi
  6806. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6807. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6808. echo "${ECHO_T}$ac_header_compiler" >&6
  6809. # Is the header present?
  6810. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6811. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6812. cat >conftest.$ac_ext <<_ACEOF
  6813. /* confdefs.h. */
  6814. _ACEOF
  6815. cat confdefs.h >>conftest.$ac_ext
  6816. cat >>conftest.$ac_ext <<_ACEOF
  6817. /* end confdefs.h. */
  6818. #include <$ac_header>
  6819. _ACEOF
  6820. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6821. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6822. ac_status=$?
  6823. grep -v '^ *+' conftest.er1 >conftest.err
  6824. rm -f conftest.er1
  6825. cat conftest.err >&5
  6826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6827. (exit $ac_status); } >/dev/null; then
  6828. if test -s conftest.err; then
  6829. ac_cpp_err=$ac_cxx_preproc_warn_flag
  6830. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  6831. else
  6832. ac_cpp_err=
  6833. fi
  6834. else
  6835. ac_cpp_err=yes
  6836. fi
  6837. if test -z "$ac_cpp_err"; then
  6838. ac_header_preproc=yes
  6839. else
  6840. echo "$as_me: failed program was:" >&5
  6841. sed 's/^/| /' conftest.$ac_ext >&5
  6842. ac_header_preproc=no
  6843. fi
  6844. rm -f conftest.err conftest.$ac_ext
  6845. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6846. echo "${ECHO_T}$ac_header_preproc" >&6
  6847. # So? What about this header?
  6848. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  6849. yes:no: )
  6850. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6851. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6852. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6853. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6854. ac_header_preproc=yes
  6855. ;;
  6856. no:yes:* )
  6857. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6858. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6859. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6860. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6861. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6862. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6863. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6864. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6865. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6866. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6867. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6868. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6869. (
  6870. cat <<\_ASBOX
  6871. ## ------------------------------------------ ##
  6872. ## Report this to the AC_PACKAGE_NAME lists. ##
  6873. ## ------------------------------------------ ##
  6874. _ASBOX
  6875. ) |
  6876. sed "s/^/$as_me: WARNING: /" >&2
  6877. ;;
  6878. esac
  6879. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6880. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6881. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6882. echo $ECHO_N "(cached) $ECHO_C" >&6
  6883. else
  6884. eval "$as_ac_Header=\$ac_header_preproc"
  6885. fi
  6886. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6887. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6888. fi
  6889. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6890. cat >>confdefs.h <<_ACEOF
  6891. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6892. _ACEOF
  6893. fi
  6894. done
  6895. echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  6896. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
  6897. result=
  6898. cat >conftest.$ac_ext <<_ACEOF
  6899. /* confdefs.h. */
  6900. _ACEOF
  6901. cat confdefs.h >>conftest.$ac_ext
  6902. cat >>conftest.$ac_ext <<_ACEOF
  6903. /* end confdefs.h. */
  6904. #include <limits.h>
  6905. #if HAVE_STDINT_H
  6906. #include <stdint.h>
  6907. #endif
  6908. #ifdef SIZE_MAX
  6909. Found it
  6910. #endif
  6911. _ACEOF
  6912. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6913. $EGREP "Found it" >/dev/null 2>&1; then
  6914. result=yes
  6915. fi
  6916. rm -f conftest*
  6917. if test -z "$result"; then
  6918. if test "$cross_compiling" = yes; then
  6919. # Depending upon the size, compute the lo and hi bounds.
  6920. cat >conftest.$ac_ext <<_ACEOF
  6921. /* confdefs.h. */
  6922. _ACEOF
  6923. cat confdefs.h >>conftest.$ac_ext
  6924. cat >>conftest.$ac_ext <<_ACEOF
  6925. /* end confdefs.h. */
  6926. #include <stddef.h>
  6927. int
  6928. main ()
  6929. {
  6930. static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
  6931. test_array [0] = 0
  6932. ;
  6933. return 0;
  6934. }
  6935. _ACEOF
  6936. rm -f conftest.$ac_objext
  6937. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6938. (eval $ac_compile) 2>conftest.er1
  6939. ac_status=$?
  6940. grep -v '^ *+' conftest.er1 >conftest.err
  6941. rm -f conftest.er1
  6942. cat conftest.err >&5
  6943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6944. (exit $ac_status); } &&
  6945. { ac_try='test -z "$ac_cxx_werror_flag"
  6946. || test ! -s conftest.err'
  6947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6948. (eval $ac_try) 2>&5
  6949. ac_status=$?
  6950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6951. (exit $ac_status); }; } &&
  6952. { ac_try='test -s conftest.$ac_objext'
  6953. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6954. (eval $ac_try) 2>&5
  6955. ac_status=$?
  6956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6957. (exit $ac_status); }; }; then
  6958. ac_lo=0 ac_mid=0
  6959. while :; do
  6960. cat >conftest.$ac_ext <<_ACEOF
  6961. /* confdefs.h. */
  6962. _ACEOF
  6963. cat confdefs.h >>conftest.$ac_ext
  6964. cat >>conftest.$ac_ext <<_ACEOF
  6965. /* end confdefs.h. */
  6966. #include <stddef.h>
  6967. int
  6968. main ()
  6969. {
  6970. static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
  6971. test_array [0] = 0
  6972. ;
  6973. return 0;
  6974. }
  6975. _ACEOF
  6976. rm -f conftest.$ac_objext
  6977. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6978. (eval $ac_compile) 2>conftest.er1
  6979. ac_status=$?
  6980. grep -v '^ *+' conftest.er1 >conftest.err
  6981. rm -f conftest.er1
  6982. cat conftest.err >&5
  6983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6984. (exit $ac_status); } &&
  6985. { ac_try='test -z "$ac_cxx_werror_flag"
  6986. || test ! -s conftest.err'
  6987. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6988. (eval $ac_try) 2>&5
  6989. ac_status=$?
  6990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6991. (exit $ac_status); }; } &&
  6992. { ac_try='test -s conftest.$ac_objext'
  6993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6994. (eval $ac_try) 2>&5
  6995. ac_status=$?
  6996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6997. (exit $ac_status); }; }; then
  6998. ac_hi=$ac_mid; break
  6999. else
  7000. echo "$as_me: failed program was:" >&5
  7001. sed 's/^/| /' conftest.$ac_ext >&5
  7002. ac_lo=`expr $ac_mid + 1`
  7003. if test $ac_lo -le $ac_mid; then
  7004. ac_lo= ac_hi=
  7005. break
  7006. fi
  7007. ac_mid=`expr 2 '*' $ac_mid + 1`
  7008. fi
  7009. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7010. done
  7011. else
  7012. echo "$as_me: failed program was:" >&5
  7013. sed 's/^/| /' conftest.$ac_ext >&5
  7014. cat >conftest.$ac_ext <<_ACEOF
  7015. /* confdefs.h. */
  7016. _ACEOF
  7017. cat confdefs.h >>conftest.$ac_ext
  7018. cat >>conftest.$ac_ext <<_ACEOF
  7019. /* end confdefs.h. */
  7020. #include <stddef.h>
  7021. int
  7022. main ()
  7023. {
  7024. static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
  7025. test_array [0] = 0
  7026. ;
  7027. return 0;
  7028. }
  7029. _ACEOF
  7030. rm -f conftest.$ac_objext
  7031. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7032. (eval $ac_compile) 2>conftest.er1
  7033. ac_status=$?
  7034. grep -v '^ *+' conftest.er1 >conftest.err
  7035. rm -f conftest.er1
  7036. cat conftest.err >&5
  7037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7038. (exit $ac_status); } &&
  7039. { ac_try='test -z "$ac_cxx_werror_flag"
  7040. || test ! -s conftest.err'
  7041. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7042. (eval $ac_try) 2>&5
  7043. ac_status=$?
  7044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7045. (exit $ac_status); }; } &&
  7046. { ac_try='test -s conftest.$ac_objext'
  7047. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7048. (eval $ac_try) 2>&5
  7049. ac_status=$?
  7050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7051. (exit $ac_status); }; }; then
  7052. ac_hi=-1 ac_mid=-1
  7053. while :; do
  7054. cat >conftest.$ac_ext <<_ACEOF
  7055. /* confdefs.h. */
  7056. _ACEOF
  7057. cat confdefs.h >>conftest.$ac_ext
  7058. cat >>conftest.$ac_ext <<_ACEOF
  7059. /* end confdefs.h. */
  7060. #include <stddef.h>
  7061. int
  7062. main ()
  7063. {
  7064. static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
  7065. test_array [0] = 0
  7066. ;
  7067. return 0;
  7068. }
  7069. _ACEOF
  7070. rm -f conftest.$ac_objext
  7071. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7072. (eval $ac_compile) 2>conftest.er1
  7073. ac_status=$?
  7074. grep -v '^ *+' conftest.er1 >conftest.err
  7075. rm -f conftest.er1
  7076. cat conftest.err >&5
  7077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7078. (exit $ac_status); } &&
  7079. { ac_try='test -z "$ac_cxx_werror_flag"
  7080. || test ! -s conftest.err'
  7081. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7082. (eval $ac_try) 2>&5
  7083. ac_status=$?
  7084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7085. (exit $ac_status); }; } &&
  7086. { ac_try='test -s conftest.$ac_objext'
  7087. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7088. (eval $ac_try) 2>&5
  7089. ac_status=$?
  7090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7091. (exit $ac_status); }; }; then
  7092. ac_lo=$ac_mid; break
  7093. else
  7094. echo "$as_me: failed program was:" >&5
  7095. sed 's/^/| /' conftest.$ac_ext >&5
  7096. ac_hi=`expr '(' $ac_mid ')' - 1`
  7097. if test $ac_mid -le $ac_hi; then
  7098. ac_lo= ac_hi=
  7099. break
  7100. fi
  7101. ac_mid=`expr 2 '*' $ac_mid`
  7102. fi
  7103. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7104. done
  7105. else
  7106. echo "$as_me: failed program was:" >&5
  7107. sed 's/^/| /' conftest.$ac_ext >&5
  7108. ac_lo= ac_hi=
  7109. fi
  7110. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7111. fi
  7112. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7113. # Binary search between lo and hi bounds.
  7114. while test "x$ac_lo" != "x$ac_hi"; do
  7115. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7116. cat >conftest.$ac_ext <<_ACEOF
  7117. /* confdefs.h. */
  7118. _ACEOF
  7119. cat confdefs.h >>conftest.$ac_ext
  7120. cat >>conftest.$ac_ext <<_ACEOF
  7121. /* end confdefs.h. */
  7122. #include <stddef.h>
  7123. int
  7124. main ()
  7125. {
  7126. static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
  7127. test_array [0] = 0
  7128. ;
  7129. return 0;
  7130. }
  7131. _ACEOF
  7132. rm -f conftest.$ac_objext
  7133. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7134. (eval $ac_compile) 2>conftest.er1
  7135. ac_status=$?
  7136. grep -v '^ *+' conftest.er1 >conftest.err
  7137. rm -f conftest.er1
  7138. cat conftest.err >&5
  7139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7140. (exit $ac_status); } &&
  7141. { ac_try='test -z "$ac_cxx_werror_flag"
  7142. || test ! -s conftest.err'
  7143. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7144. (eval $ac_try) 2>&5
  7145. ac_status=$?
  7146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7147. (exit $ac_status); }; } &&
  7148. { ac_try='test -s conftest.$ac_objext'
  7149. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7150. (eval $ac_try) 2>&5
  7151. ac_status=$?
  7152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7153. (exit $ac_status); }; }; then
  7154. ac_hi=$ac_mid
  7155. else
  7156. echo "$as_me: failed program was:" >&5
  7157. sed 's/^/| /' conftest.$ac_ext >&5
  7158. ac_lo=`expr '(' $ac_mid ')' + 1`
  7159. fi
  7160. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7161. done
  7162. case $ac_lo in
  7163. ?*) res_hi=$ac_lo;;
  7164. '') result=? ;;
  7165. esac
  7166. else
  7167. if test "$cross_compiling" = yes; then
  7168. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  7169. See \`config.log' for more details." >&5
  7170. echo "$as_me: error: cannot run test program while cross compiling
  7171. See \`config.log' for more details." >&2;}
  7172. { (exit 1); exit 1; }; }
  7173. else
  7174. cat >conftest.$ac_ext <<_ACEOF
  7175. /* confdefs.h. */
  7176. _ACEOF
  7177. cat confdefs.h >>conftest.$ac_ext
  7178. cat >>conftest.$ac_ext <<_ACEOF
  7179. /* end confdefs.h. */
  7180. #include <stddef.h>
  7181. long longval () { return ~(size_t)0 / 10; }
  7182. unsigned long ulongval () { return ~(size_t)0 / 10; }
  7183. #include <stdio.h>
  7184. #include <stdlib.h>
  7185. int
  7186. main ()
  7187. {
  7188. FILE *f = fopen ("conftest.val", "w");
  7189. if (! f)
  7190. exit (1);
  7191. if ((~(size_t)0 / 10) < 0)
  7192. {
  7193. long i = longval ();
  7194. if (i != (~(size_t)0 / 10))
  7195. exit (1);
  7196. fprintf (f, "%ld\n", i);
  7197. }
  7198. else
  7199. {
  7200. unsigned long i = ulongval ();
  7201. if (i != (~(size_t)0 / 10))
  7202. exit (1);
  7203. fprintf (f, "%lu\n", i);
  7204. }
  7205. exit (ferror (f) || fclose (f) != 0);
  7206. ;
  7207. return 0;
  7208. }
  7209. _ACEOF
  7210. rm -f conftest$ac_exeext
  7211. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7212. (eval $ac_link) 2>&5
  7213. ac_status=$?
  7214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7215. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7216. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7217. (eval $ac_try) 2>&5
  7218. ac_status=$?
  7219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7220. (exit $ac_status); }; }; then
  7221. res_hi=`cat conftest.val`
  7222. else
  7223. echo "$as_me: program exited with status $ac_status" >&5
  7224. echo "$as_me: failed program was:" >&5
  7225. sed 's/^/| /' conftest.$ac_ext >&5
  7226. ( exit $ac_status )
  7227. result=?
  7228. fi
  7229. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7230. fi
  7231. fi
  7232. rm -f conftest.val
  7233. if test "$cross_compiling" = yes; then
  7234. # Depending upon the size, compute the lo and hi bounds.
  7235. cat >conftest.$ac_ext <<_ACEOF
  7236. /* confdefs.h. */
  7237. _ACEOF
  7238. cat confdefs.h >>conftest.$ac_ext
  7239. cat >>conftest.$ac_ext <<_ACEOF
  7240. /* end confdefs.h. */
  7241. #include <stddef.h>
  7242. int
  7243. main ()
  7244. {
  7245. static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
  7246. test_array [0] = 0
  7247. ;
  7248. return 0;
  7249. }
  7250. _ACEOF
  7251. rm -f conftest.$ac_objext
  7252. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7253. (eval $ac_compile) 2>conftest.er1
  7254. ac_status=$?
  7255. grep -v '^ *+' conftest.er1 >conftest.err
  7256. rm -f conftest.er1
  7257. cat conftest.err >&5
  7258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7259. (exit $ac_status); } &&
  7260. { ac_try='test -z "$ac_cxx_werror_flag"
  7261. || test ! -s conftest.err'
  7262. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7263. (eval $ac_try) 2>&5
  7264. ac_status=$?
  7265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7266. (exit $ac_status); }; } &&
  7267. { ac_try='test -s conftest.$ac_objext'
  7268. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7269. (eval $ac_try) 2>&5
  7270. ac_status=$?
  7271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7272. (exit $ac_status); }; }; then
  7273. ac_lo=0 ac_mid=0
  7274. while :; do
  7275. cat >conftest.$ac_ext <<_ACEOF
  7276. /* confdefs.h. */
  7277. _ACEOF
  7278. cat confdefs.h >>conftest.$ac_ext
  7279. cat >>conftest.$ac_ext <<_ACEOF
  7280. /* end confdefs.h. */
  7281. #include <stddef.h>
  7282. int
  7283. main ()
  7284. {
  7285. static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
  7286. test_array [0] = 0
  7287. ;
  7288. return 0;
  7289. }
  7290. _ACEOF
  7291. rm -f conftest.$ac_objext
  7292. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7293. (eval $ac_compile) 2>conftest.er1
  7294. ac_status=$?
  7295. grep -v '^ *+' conftest.er1 >conftest.err
  7296. rm -f conftest.er1
  7297. cat conftest.err >&5
  7298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7299. (exit $ac_status); } &&
  7300. { ac_try='test -z "$ac_cxx_werror_flag"
  7301. || 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_hi=$ac_mid; break
  7314. else
  7315. echo "$as_me: failed program was:" >&5
  7316. sed 's/^/| /' conftest.$ac_ext >&5
  7317. ac_lo=`expr $ac_mid + 1`
  7318. if test $ac_lo -le $ac_mid; then
  7319. ac_lo= ac_hi=
  7320. break
  7321. fi
  7322. ac_mid=`expr 2 '*' $ac_mid + 1`
  7323. fi
  7324. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7325. done
  7326. else
  7327. echo "$as_me: failed program was:" >&5
  7328. sed 's/^/| /' conftest.$ac_ext >&5
  7329. cat >conftest.$ac_ext <<_ACEOF
  7330. /* confdefs.h. */
  7331. _ACEOF
  7332. cat confdefs.h >>conftest.$ac_ext
  7333. cat >>conftest.$ac_ext <<_ACEOF
  7334. /* end confdefs.h. */
  7335. #include <stddef.h>
  7336. int
  7337. main ()
  7338. {
  7339. static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
  7340. test_array [0] = 0
  7341. ;
  7342. return 0;
  7343. }
  7344. _ACEOF
  7345. rm -f conftest.$ac_objext
  7346. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7347. (eval $ac_compile) 2>conftest.er1
  7348. ac_status=$?
  7349. grep -v '^ *+' conftest.er1 >conftest.err
  7350. rm -f conftest.er1
  7351. cat conftest.err >&5
  7352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7353. (exit $ac_status); } &&
  7354. { ac_try='test -z "$ac_cxx_werror_flag"
  7355. || test ! -s conftest.err'
  7356. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7357. (eval $ac_try) 2>&5
  7358. ac_status=$?
  7359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7360. (exit $ac_status); }; } &&
  7361. { ac_try='test -s conftest.$ac_objext'
  7362. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7363. (eval $ac_try) 2>&5
  7364. ac_status=$?
  7365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7366. (exit $ac_status); }; }; then
  7367. ac_hi=-1 ac_mid=-1
  7368. while :; do
  7369. cat >conftest.$ac_ext <<_ACEOF
  7370. /* confdefs.h. */
  7371. _ACEOF
  7372. cat confdefs.h >>conftest.$ac_ext
  7373. cat >>conftest.$ac_ext <<_ACEOF
  7374. /* end confdefs.h. */
  7375. #include <stddef.h>
  7376. int
  7377. main ()
  7378. {
  7379. static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
  7380. test_array [0] = 0
  7381. ;
  7382. return 0;
  7383. }
  7384. _ACEOF
  7385. rm -f conftest.$ac_objext
  7386. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7387. (eval $ac_compile) 2>conftest.er1
  7388. ac_status=$?
  7389. grep -v '^ *+' conftest.er1 >conftest.err
  7390. rm -f conftest.er1
  7391. cat conftest.err >&5
  7392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7393. (exit $ac_status); } &&
  7394. { ac_try='test -z "$ac_cxx_werror_flag"
  7395. || test ! -s conftest.err'
  7396. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7397. (eval $ac_try) 2>&5
  7398. ac_status=$?
  7399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7400. (exit $ac_status); }; } &&
  7401. { ac_try='test -s conftest.$ac_objext'
  7402. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7403. (eval $ac_try) 2>&5
  7404. ac_status=$?
  7405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7406. (exit $ac_status); }; }; then
  7407. ac_lo=$ac_mid; break
  7408. else
  7409. echo "$as_me: failed program was:" >&5
  7410. sed 's/^/| /' conftest.$ac_ext >&5
  7411. ac_hi=`expr '(' $ac_mid ')' - 1`
  7412. if test $ac_mid -le $ac_hi; then
  7413. ac_lo= ac_hi=
  7414. break
  7415. fi
  7416. ac_mid=`expr 2 '*' $ac_mid`
  7417. fi
  7418. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7419. done
  7420. else
  7421. echo "$as_me: failed program was:" >&5
  7422. sed 's/^/| /' conftest.$ac_ext >&5
  7423. ac_lo= ac_hi=
  7424. fi
  7425. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7426. fi
  7427. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7428. # Binary search between lo and hi bounds.
  7429. while test "x$ac_lo" != "x$ac_hi"; do
  7430. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7431. cat >conftest.$ac_ext <<_ACEOF
  7432. /* confdefs.h. */
  7433. _ACEOF
  7434. cat confdefs.h >>conftest.$ac_ext
  7435. cat >>conftest.$ac_ext <<_ACEOF
  7436. /* end confdefs.h. */
  7437. #include <stddef.h>
  7438. int
  7439. main ()
  7440. {
  7441. static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
  7442. test_array [0] = 0
  7443. ;
  7444. return 0;
  7445. }
  7446. _ACEOF
  7447. rm -f conftest.$ac_objext
  7448. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7449. (eval $ac_compile) 2>conftest.er1
  7450. ac_status=$?
  7451. grep -v '^ *+' conftest.er1 >conftest.err
  7452. rm -f conftest.er1
  7453. cat conftest.err >&5
  7454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7455. (exit $ac_status); } &&
  7456. { ac_try='test -z "$ac_cxx_werror_flag"
  7457. || test ! -s conftest.err'
  7458. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7459. (eval $ac_try) 2>&5
  7460. ac_status=$?
  7461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7462. (exit $ac_status); }; } &&
  7463. { ac_try='test -s conftest.$ac_objext'
  7464. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7465. (eval $ac_try) 2>&5
  7466. ac_status=$?
  7467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7468. (exit $ac_status); }; }; then
  7469. ac_hi=$ac_mid
  7470. else
  7471. echo "$as_me: failed program was:" >&5
  7472. sed 's/^/| /' conftest.$ac_ext >&5
  7473. ac_lo=`expr '(' $ac_mid ')' + 1`
  7474. fi
  7475. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7476. done
  7477. case $ac_lo in
  7478. ?*) res_lo=$ac_lo;;
  7479. '') result=? ;;
  7480. esac
  7481. else
  7482. if test "$cross_compiling" = yes; then
  7483. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  7484. See \`config.log' for more details." >&5
  7485. echo "$as_me: error: cannot run test program while cross compiling
  7486. See \`config.log' for more details." >&2;}
  7487. { (exit 1); exit 1; }; }
  7488. else
  7489. cat >conftest.$ac_ext <<_ACEOF
  7490. /* confdefs.h. */
  7491. _ACEOF
  7492. cat confdefs.h >>conftest.$ac_ext
  7493. cat >>conftest.$ac_ext <<_ACEOF
  7494. /* end confdefs.h. */
  7495. #include <stddef.h>
  7496. long longval () { return ~(size_t)0 % 10; }
  7497. unsigned long ulongval () { return ~(size_t)0 % 10; }
  7498. #include <stdio.h>
  7499. #include <stdlib.h>
  7500. int
  7501. main ()
  7502. {
  7503. FILE *f = fopen ("conftest.val", "w");
  7504. if (! f)
  7505. exit (1);
  7506. if ((~(size_t)0 % 10) < 0)
  7507. {
  7508. long i = longval ();
  7509. if (i != (~(size_t)0 % 10))
  7510. exit (1);
  7511. fprintf (f, "%ld\n", i);
  7512. }
  7513. else
  7514. {
  7515. unsigned long i = ulongval ();
  7516. if (i != (~(size_t)0 % 10))
  7517. exit (1);
  7518. fprintf (f, "%lu\n", i);
  7519. }
  7520. exit (ferror (f) || fclose (f) != 0);
  7521. ;
  7522. return 0;
  7523. }
  7524. _ACEOF
  7525. rm -f conftest$ac_exeext
  7526. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7527. (eval $ac_link) 2>&5
  7528. ac_status=$?
  7529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7530. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7532. (eval $ac_try) 2>&5
  7533. ac_status=$?
  7534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7535. (exit $ac_status); }; }; then
  7536. res_lo=`cat conftest.val`
  7537. else
  7538. echo "$as_me: program exited with status $ac_status" >&5
  7539. echo "$as_me: failed program was:" >&5
  7540. sed 's/^/| /' conftest.$ac_ext >&5
  7541. ( exit $ac_status )
  7542. result=?
  7543. fi
  7544. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7545. fi
  7546. fi
  7547. rm -f conftest.val
  7548. if test "$cross_compiling" = yes; then
  7549. # Depending upon the size, compute the lo and hi bounds.
  7550. cat >conftest.$ac_ext <<_ACEOF
  7551. /* confdefs.h. */
  7552. _ACEOF
  7553. cat confdefs.h >>conftest.$ac_ext
  7554. cat >>conftest.$ac_ext <<_ACEOF
  7555. /* end confdefs.h. */
  7556. #include <stddef.h>
  7557. int
  7558. main ()
  7559. {
  7560. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  7561. test_array [0] = 0
  7562. ;
  7563. return 0;
  7564. }
  7565. _ACEOF
  7566. rm -f conftest.$ac_objext
  7567. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7568. (eval $ac_compile) 2>conftest.er1
  7569. ac_status=$?
  7570. grep -v '^ *+' conftest.er1 >conftest.err
  7571. rm -f conftest.er1
  7572. cat conftest.err >&5
  7573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7574. (exit $ac_status); } &&
  7575. { ac_try='test -z "$ac_cxx_werror_flag"
  7576. || test ! -s conftest.err'
  7577. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7578. (eval $ac_try) 2>&5
  7579. ac_status=$?
  7580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7581. (exit $ac_status); }; } &&
  7582. { ac_try='test -s conftest.$ac_objext'
  7583. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7584. (eval $ac_try) 2>&5
  7585. ac_status=$?
  7586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7587. (exit $ac_status); }; }; then
  7588. ac_lo=0 ac_mid=0
  7589. while :; do
  7590. cat >conftest.$ac_ext <<_ACEOF
  7591. /* confdefs.h. */
  7592. _ACEOF
  7593. cat confdefs.h >>conftest.$ac_ext
  7594. cat >>conftest.$ac_ext <<_ACEOF
  7595. /* end confdefs.h. */
  7596. #include <stddef.h>
  7597. int
  7598. main ()
  7599. {
  7600. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  7601. test_array [0] = 0
  7602. ;
  7603. return 0;
  7604. }
  7605. _ACEOF
  7606. rm -f conftest.$ac_objext
  7607. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7608. (eval $ac_compile) 2>conftest.er1
  7609. ac_status=$?
  7610. grep -v '^ *+' conftest.er1 >conftest.err
  7611. rm -f conftest.er1
  7612. cat conftest.err >&5
  7613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7614. (exit $ac_status); } &&
  7615. { ac_try='test -z "$ac_cxx_werror_flag"
  7616. || test ! -s conftest.err'
  7617. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7618. (eval $ac_try) 2>&5
  7619. ac_status=$?
  7620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7621. (exit $ac_status); }; } &&
  7622. { ac_try='test -s conftest.$ac_objext'
  7623. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7624. (eval $ac_try) 2>&5
  7625. ac_status=$?
  7626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7627. (exit $ac_status); }; }; then
  7628. ac_hi=$ac_mid; break
  7629. else
  7630. echo "$as_me: failed program was:" >&5
  7631. sed 's/^/| /' conftest.$ac_ext >&5
  7632. ac_lo=`expr $ac_mid + 1`
  7633. if test $ac_lo -le $ac_mid; then
  7634. ac_lo= ac_hi=
  7635. break
  7636. fi
  7637. ac_mid=`expr 2 '*' $ac_mid + 1`
  7638. fi
  7639. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7640. done
  7641. else
  7642. echo "$as_me: failed program was:" >&5
  7643. sed 's/^/| /' conftest.$ac_ext >&5
  7644. cat >conftest.$ac_ext <<_ACEOF
  7645. /* confdefs.h. */
  7646. _ACEOF
  7647. cat confdefs.h >>conftest.$ac_ext
  7648. cat >>conftest.$ac_ext <<_ACEOF
  7649. /* end confdefs.h. */
  7650. #include <stddef.h>
  7651. int
  7652. main ()
  7653. {
  7654. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  7655. test_array [0] = 0
  7656. ;
  7657. return 0;
  7658. }
  7659. _ACEOF
  7660. rm -f conftest.$ac_objext
  7661. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7662. (eval $ac_compile) 2>conftest.er1
  7663. ac_status=$?
  7664. grep -v '^ *+' conftest.er1 >conftest.err
  7665. rm -f conftest.er1
  7666. cat conftest.err >&5
  7667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7668. (exit $ac_status); } &&
  7669. { ac_try='test -z "$ac_cxx_werror_flag"
  7670. || test ! -s conftest.err'
  7671. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7672. (eval $ac_try) 2>&5
  7673. ac_status=$?
  7674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7675. (exit $ac_status); }; } &&
  7676. { ac_try='test -s conftest.$ac_objext'
  7677. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7678. (eval $ac_try) 2>&5
  7679. ac_status=$?
  7680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7681. (exit $ac_status); }; }; then
  7682. ac_hi=-1 ac_mid=-1
  7683. while :; do
  7684. cat >conftest.$ac_ext <<_ACEOF
  7685. /* confdefs.h. */
  7686. _ACEOF
  7687. cat confdefs.h >>conftest.$ac_ext
  7688. cat >>conftest.$ac_ext <<_ACEOF
  7689. /* end confdefs.h. */
  7690. #include <stddef.h>
  7691. int
  7692. main ()
  7693. {
  7694. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  7695. test_array [0] = 0
  7696. ;
  7697. return 0;
  7698. }
  7699. _ACEOF
  7700. rm -f conftest.$ac_objext
  7701. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7702. (eval $ac_compile) 2>conftest.er1
  7703. ac_status=$?
  7704. grep -v '^ *+' conftest.er1 >conftest.err
  7705. rm -f conftest.er1
  7706. cat conftest.err >&5
  7707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7708. (exit $ac_status); } &&
  7709. { ac_try='test -z "$ac_cxx_werror_flag"
  7710. || test ! -s conftest.err'
  7711. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7712. (eval $ac_try) 2>&5
  7713. ac_status=$?
  7714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7715. (exit $ac_status); }; } &&
  7716. { ac_try='test -s conftest.$ac_objext'
  7717. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7718. (eval $ac_try) 2>&5
  7719. ac_status=$?
  7720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7721. (exit $ac_status); }; }; then
  7722. ac_lo=$ac_mid; break
  7723. else
  7724. echo "$as_me: failed program was:" >&5
  7725. sed 's/^/| /' conftest.$ac_ext >&5
  7726. ac_hi=`expr '(' $ac_mid ')' - 1`
  7727. if test $ac_mid -le $ac_hi; then
  7728. ac_lo= ac_hi=
  7729. break
  7730. fi
  7731. ac_mid=`expr 2 '*' $ac_mid`
  7732. fi
  7733. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7734. done
  7735. else
  7736. echo "$as_me: failed program was:" >&5
  7737. sed 's/^/| /' conftest.$ac_ext >&5
  7738. ac_lo= ac_hi=
  7739. fi
  7740. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7741. fi
  7742. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7743. # Binary search between lo and hi bounds.
  7744. while test "x$ac_lo" != "x$ac_hi"; do
  7745. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7746. cat >conftest.$ac_ext <<_ACEOF
  7747. /* confdefs.h. */
  7748. _ACEOF
  7749. cat confdefs.h >>conftest.$ac_ext
  7750. cat >>conftest.$ac_ext <<_ACEOF
  7751. /* end confdefs.h. */
  7752. #include <stddef.h>
  7753. int
  7754. main ()
  7755. {
  7756. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  7757. test_array [0] = 0
  7758. ;
  7759. return 0;
  7760. }
  7761. _ACEOF
  7762. rm -f conftest.$ac_objext
  7763. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7764. (eval $ac_compile) 2>conftest.er1
  7765. ac_status=$?
  7766. grep -v '^ *+' conftest.er1 >conftest.err
  7767. rm -f conftest.er1
  7768. cat conftest.err >&5
  7769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7770. (exit $ac_status); } &&
  7771. { ac_try='test -z "$ac_cxx_werror_flag"
  7772. || test ! -s conftest.err'
  7773. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7774. (eval $ac_try) 2>&5
  7775. ac_status=$?
  7776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7777. (exit $ac_status); }; } &&
  7778. { ac_try='test -s conftest.$ac_objext'
  7779. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7780. (eval $ac_try) 2>&5
  7781. ac_status=$?
  7782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7783. (exit $ac_status); }; }; then
  7784. ac_hi=$ac_mid
  7785. else
  7786. echo "$as_me: failed program was:" >&5
  7787. sed 's/^/| /' conftest.$ac_ext >&5
  7788. ac_lo=`expr '(' $ac_mid ')' + 1`
  7789. fi
  7790. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7791. done
  7792. case $ac_lo in
  7793. ?*) fits_in_uint=$ac_lo;;
  7794. '') result=? ;;
  7795. esac
  7796. else
  7797. if test "$cross_compiling" = yes; then
  7798. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  7799. See \`config.log' for more details." >&5
  7800. echo "$as_me: error: cannot run test program while cross compiling
  7801. See \`config.log' for more details." >&2;}
  7802. { (exit 1); exit 1; }; }
  7803. else
  7804. cat >conftest.$ac_ext <<_ACEOF
  7805. /* confdefs.h. */
  7806. _ACEOF
  7807. cat confdefs.h >>conftest.$ac_ext
  7808. cat >>conftest.$ac_ext <<_ACEOF
  7809. /* end confdefs.h. */
  7810. #include <stddef.h>
  7811. long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  7812. unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  7813. #include <stdio.h>
  7814. #include <stdlib.h>
  7815. int
  7816. main ()
  7817. {
  7818. FILE *f = fopen ("conftest.val", "w");
  7819. if (! f)
  7820. exit (1);
  7821. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  7822. {
  7823. long i = longval ();
  7824. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  7825. exit (1);
  7826. fprintf (f, "%ld\n", i);
  7827. }
  7828. else
  7829. {
  7830. unsigned long i = ulongval ();
  7831. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  7832. exit (1);
  7833. fprintf (f, "%lu\n", i);
  7834. }
  7835. exit (ferror (f) || fclose (f) != 0);
  7836. ;
  7837. return 0;
  7838. }
  7839. _ACEOF
  7840. rm -f conftest$ac_exeext
  7841. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7842. (eval $ac_link) 2>&5
  7843. ac_status=$?
  7844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7845. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7846. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7847. (eval $ac_try) 2>&5
  7848. ac_status=$?
  7849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7850. (exit $ac_status); }; }; then
  7851. fits_in_uint=`cat conftest.val`
  7852. else
  7853. echo "$as_me: program exited with status $ac_status" >&5
  7854. echo "$as_me: failed program was:" >&5
  7855. sed 's/^/| /' conftest.$ac_ext >&5
  7856. ( exit $ac_status )
  7857. result=?
  7858. fi
  7859. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7860. fi
  7861. fi
  7862. rm -f conftest.val
  7863. if test "$fits_in_uint" = 1; then
  7864. cat >conftest.$ac_ext <<_ACEOF
  7865. /* confdefs.h. */
  7866. _ACEOF
  7867. cat confdefs.h >>conftest.$ac_ext
  7868. cat >>conftest.$ac_ext <<_ACEOF
  7869. /* end confdefs.h. */
  7870. #include <stddef.h>
  7871. extern size_t foo;
  7872. extern unsigned long foo;
  7873. int
  7874. main ()
  7875. {
  7876. ;
  7877. return 0;
  7878. }
  7879. _ACEOF
  7880. rm -f conftest.$ac_objext
  7881. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7882. (eval $ac_compile) 2>conftest.er1
  7883. ac_status=$?
  7884. grep -v '^ *+' conftest.er1 >conftest.err
  7885. rm -f conftest.er1
  7886. cat conftest.err >&5
  7887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7888. (exit $ac_status); } &&
  7889. { ac_try='test -z "$ac_cxx_werror_flag"
  7890. || test ! -s conftest.err'
  7891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7892. (eval $ac_try) 2>&5
  7893. ac_status=$?
  7894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7895. (exit $ac_status); }; } &&
  7896. { ac_try='test -s conftest.$ac_objext'
  7897. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7898. (eval $ac_try) 2>&5
  7899. ac_status=$?
  7900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7901. (exit $ac_status); }; }; then
  7902. fits_in_uint=0
  7903. else
  7904. echo "$as_me: failed program was:" >&5
  7905. sed 's/^/| /' conftest.$ac_ext >&5
  7906. fi
  7907. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7908. fi
  7909. if test -z "$result"; then
  7910. if test "$fits_in_uint" = 1; then
  7911. result="$res_hi$res_lo"U
  7912. else
  7913. result="$res_hi$res_lo"UL
  7914. fi
  7915. else
  7916. result='~(size_t)0'
  7917. fi
  7918. fi
  7919. echo "$as_me:$LINENO: result: $result" >&5
  7920. echo "${ECHO_T}$result" >&6
  7921. if test "$result" != yes; then
  7922. cat >>confdefs.h <<_ACEOF
  7923. #define SIZE_MAX $result
  7924. _ACEOF
  7925. fi
  7926. for ac_header in stdint.h
  7927. do
  7928. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7929. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7930. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7931. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7932. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7933. echo $ECHO_N "(cached) $ECHO_C" >&6
  7934. fi
  7935. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7936. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7937. else
  7938. # Is the header compilable?
  7939. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7940. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7941. cat >conftest.$ac_ext <<_ACEOF
  7942. /* confdefs.h. */
  7943. _ACEOF
  7944. cat confdefs.h >>conftest.$ac_ext
  7945. cat >>conftest.$ac_ext <<_ACEOF
  7946. /* end confdefs.h. */
  7947. $ac_includes_default
  7948. #include <$ac_header>
  7949. _ACEOF
  7950. rm -f conftest.$ac_objext
  7951. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7952. (eval $ac_compile) 2>conftest.er1
  7953. ac_status=$?
  7954. grep -v '^ *+' conftest.er1 >conftest.err
  7955. rm -f conftest.er1
  7956. cat conftest.err >&5
  7957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7958. (exit $ac_status); } &&
  7959. { ac_try='test -z "$ac_cxx_werror_flag"
  7960. || test ! -s conftest.err'
  7961. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7962. (eval $ac_try) 2>&5
  7963. ac_status=$?
  7964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7965. (exit $ac_status); }; } &&
  7966. { ac_try='test -s conftest.$ac_objext'
  7967. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7968. (eval $ac_try) 2>&5
  7969. ac_status=$?
  7970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7971. (exit $ac_status); }; }; then
  7972. ac_header_compiler=yes
  7973. else
  7974. echo "$as_me: failed program was:" >&5
  7975. sed 's/^/| /' conftest.$ac_ext >&5
  7976. ac_header_compiler=no
  7977. fi
  7978. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7979. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7980. echo "${ECHO_T}$ac_header_compiler" >&6
  7981. # Is the header present?
  7982. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7983. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7984. cat >conftest.$ac_ext <<_ACEOF
  7985. /* confdefs.h. */
  7986. _ACEOF
  7987. cat confdefs.h >>conftest.$ac_ext
  7988. cat >>conftest.$ac_ext <<_ACEOF
  7989. /* end confdefs.h. */
  7990. #include <$ac_header>
  7991. _ACEOF
  7992. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7993. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7994. ac_status=$?
  7995. grep -v '^ *+' conftest.er1 >conftest.err
  7996. rm -f conftest.er1
  7997. cat conftest.err >&5
  7998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7999. (exit $ac_status); } >/dev/null; then
  8000. if test -s conftest.err; then
  8001. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8002. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8003. else
  8004. ac_cpp_err=
  8005. fi
  8006. else
  8007. ac_cpp_err=yes
  8008. fi
  8009. if test -z "$ac_cpp_err"; then
  8010. ac_header_preproc=yes
  8011. else
  8012. echo "$as_me: failed program was:" >&5
  8013. sed 's/^/| /' conftest.$ac_ext >&5
  8014. ac_header_preproc=no
  8015. fi
  8016. rm -f conftest.err conftest.$ac_ext
  8017. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8018. echo "${ECHO_T}$ac_header_preproc" >&6
  8019. # So? What about this header?
  8020. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8021. yes:no: )
  8022. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8023. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8024. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8025. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8026. ac_header_preproc=yes
  8027. ;;
  8028. no:yes:* )
  8029. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8030. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8031. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8032. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8033. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8034. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8035. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8036. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8037. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8038. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8039. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8040. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8041. (
  8042. cat <<\_ASBOX
  8043. ## ------------------------------------------ ##
  8044. ## Report this to the AC_PACKAGE_NAME lists. ##
  8045. ## ------------------------------------------ ##
  8046. _ASBOX
  8047. ) |
  8048. sed "s/^/$as_me: WARNING: /" >&2
  8049. ;;
  8050. esac
  8051. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8052. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8053. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8054. echo $ECHO_N "(cached) $ECHO_C" >&6
  8055. else
  8056. eval "$as_ac_Header=\$ac_header_preproc"
  8057. fi
  8058. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8059. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8060. fi
  8061. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8062. cat >>confdefs.h <<_ACEOF
  8063. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8064. _ACEOF
  8065. fi
  8066. done
  8067. if test "X$prefix" = "XNONE"; then
  8068. acl_final_prefix="$ac_default_prefix"
  8069. else
  8070. acl_final_prefix="$prefix"
  8071. fi
  8072. if test "X$exec_prefix" = "XNONE"; then
  8073. acl_final_exec_prefix='${prefix}'
  8074. else
  8075. acl_final_exec_prefix="$exec_prefix"
  8076. fi
  8077. acl_save_prefix="$prefix"
  8078. prefix="$acl_final_prefix"
  8079. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8080. prefix="$acl_save_prefix"
  8081. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  8082. if test "${with_gnu_ld+set}" = set; then
  8083. withval="$with_gnu_ld"
  8084. test "$withval" = no || with_gnu_ld=yes
  8085. else
  8086. with_gnu_ld=no
  8087. fi;
  8088. # Prepare PATH_SEPARATOR.
  8089. # The user is always right.
  8090. if test "${PATH_SEPARATOR+set}" != set; then
  8091. echo "#! /bin/sh" >conf$$.sh
  8092. echo "exit 0" >>conf$$.sh
  8093. chmod +x conf$$.sh
  8094. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8095. PATH_SEPARATOR=';'
  8096. else
  8097. PATH_SEPARATOR=:
  8098. fi
  8099. rm -f conf$$.sh
  8100. fi
  8101. ac_prog=ld
  8102. if test "$GCC" = yes; then
  8103. # Check if gcc -print-prog-name=ld gives a path.
  8104. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  8105. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  8106. case $host in
  8107. *-*-mingw*)
  8108. # gcc leaves a trailing carriage return which upsets mingw
  8109. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8110. *)
  8111. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8112. esac
  8113. case $ac_prog in
  8114. # Accept absolute paths.
  8115. [\\/]* | [A-Za-z]:[\\/]*)
  8116. re_direlt='/[^/][^/]*/\.\./'
  8117. # Canonicalize the path of ld
  8118. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8119. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8120. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8121. done
  8122. test -z "$LD" && LD="$ac_prog"
  8123. ;;
  8124. "")
  8125. # If it fails, then pretend we aren't using GCC.
  8126. ac_prog=ld
  8127. ;;
  8128. *)
  8129. # If it is relative, then search for the first ld in PATH.
  8130. with_gnu_ld=unknown
  8131. ;;
  8132. esac
  8133. elif test "$with_gnu_ld" = yes; then
  8134. echo "$as_me:$LINENO: checking for GNU ld" >&5
  8135. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  8136. else
  8137. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8138. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  8139. fi
  8140. if test "${acl_cv_path_LD+set}" = set; then
  8141. echo $ECHO_N "(cached) $ECHO_C" >&6
  8142. else
  8143. if test -z "$LD"; then
  8144. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8145. for ac_dir in $PATH; do
  8146. test -z "$ac_dir" && ac_dir=.
  8147. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8148. acl_cv_path_LD="$ac_dir/$ac_prog"
  8149. # Check to see if the program is GNU ld. I'd rather use --version,
  8150. # but apparently some GNU ld's only accept -v.
  8151. # Break only if it was the GNU/non-GNU ld that we prefer.
  8152. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8153. *GNU* | *'with BFD'*)
  8154. test "$with_gnu_ld" != no && break ;;
  8155. *)
  8156. test "$with_gnu_ld" != yes && break ;;
  8157. esac
  8158. fi
  8159. done
  8160. IFS="$ac_save_ifs"
  8161. else
  8162. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8163. fi
  8164. fi
  8165. LD="$acl_cv_path_LD"
  8166. if test -n "$LD"; then
  8167. echo "$as_me:$LINENO: result: $LD" >&5
  8168. echo "${ECHO_T}$LD" >&6
  8169. else
  8170. echo "$as_me:$LINENO: result: no" >&5
  8171. echo "${ECHO_T}no" >&6
  8172. fi
  8173. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  8174. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  8175. { (exit 1); exit 1; }; }
  8176. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8177. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  8178. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  8179. echo $ECHO_N "(cached) $ECHO_C" >&6
  8180. else
  8181. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8182. case `$LD -v 2>&1 </dev/null` in
  8183. *GNU* | *'with BFD'*)
  8184. acl_cv_prog_gnu_ld=yes ;;
  8185. *)
  8186. acl_cv_prog_gnu_ld=no ;;
  8187. esac
  8188. fi
  8189. echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  8190. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
  8191. with_gnu_ld=$acl_cv_prog_gnu_ld
  8192. echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  8193. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
  8194. if test "${acl_cv_rpath+set}" = set; then
  8195. echo $ECHO_N "(cached) $ECHO_C" >&6
  8196. else
  8197. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8198. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8199. . ./conftest.sh
  8200. rm -f ./conftest.sh
  8201. acl_cv_rpath=done
  8202. fi
  8203. echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  8204. echo "${ECHO_T}$acl_cv_rpath" >&6
  8205. wl="$acl_cv_wl"
  8206. libext="$acl_cv_libext"
  8207. shlibext="$acl_cv_shlibext"
  8208. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8209. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8210. hardcode_direct="$acl_cv_hardcode_direct"
  8211. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8212. # Check whether --enable-rpath or --disable-rpath was given.
  8213. if test "${enable_rpath+set}" = set; then
  8214. enableval="$enable_rpath"
  8215. :
  8216. else
  8217. enable_rpath=yes
  8218. fi;
  8219. use_additional=yes
  8220. acl_save_prefix="$prefix"
  8221. prefix="$acl_final_prefix"
  8222. acl_save_exec_prefix="$exec_prefix"
  8223. exec_prefix="$acl_final_exec_prefix"
  8224. eval additional_includedir=\"$includedir\"
  8225. eval additional_libdir=\"$libdir\"
  8226. exec_prefix="$acl_save_exec_prefix"
  8227. prefix="$acl_save_prefix"
  8228. # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
  8229. if test "${with_libiconv_prefix+set}" = set; then
  8230. withval="$with_libiconv_prefix"
  8231. if test "X$withval" = "Xno"; then
  8232. use_additional=no
  8233. else
  8234. if test "X$withval" = "X"; then
  8235. acl_save_prefix="$prefix"
  8236. prefix="$acl_final_prefix"
  8237. acl_save_exec_prefix="$exec_prefix"
  8238. exec_prefix="$acl_final_exec_prefix"
  8239. eval additional_includedir=\"$includedir\"
  8240. eval additional_libdir=\"$libdir\"
  8241. exec_prefix="$acl_save_exec_prefix"
  8242. prefix="$acl_save_prefix"
  8243. else
  8244. additional_includedir="$withval/include"
  8245. additional_libdir="$withval/lib"
  8246. fi
  8247. fi
  8248. fi;
  8249. LIBICONV=
  8250. LTLIBICONV=
  8251. INCICONV=
  8252. rpathdirs=
  8253. ltrpathdirs=
  8254. names_already_handled=
  8255. names_next_round='iconv '
  8256. while test -n "$names_next_round"; do
  8257. names_this_round="$names_next_round"
  8258. names_next_round=
  8259. for name in $names_this_round; do
  8260. already_handled=
  8261. for n in $names_already_handled; do
  8262. if test "$n" = "$name"; then
  8263. already_handled=yes
  8264. break
  8265. fi
  8266. done
  8267. if test -z "$already_handled"; then
  8268. names_already_handled="$names_already_handled $name"
  8269. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8270. eval value=\"\$HAVE_LIB$uppername\"
  8271. if test -n "$value"; then
  8272. if test "$value" = yes; then
  8273. eval value=\"\$LIB$uppername\"
  8274. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  8275. eval value=\"\$LTLIB$uppername\"
  8276. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  8277. else
  8278. :
  8279. fi
  8280. else
  8281. found_dir=
  8282. found_la=
  8283. found_so=
  8284. found_a=
  8285. if test $use_additional = yes; then
  8286. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  8287. found_dir="$additional_libdir"
  8288. found_so="$additional_libdir/lib$name.$shlibext"
  8289. if test -f "$additional_libdir/lib$name.la"; then
  8290. found_la="$additional_libdir/lib$name.la"
  8291. fi
  8292. else
  8293. if test -f "$additional_libdir/lib$name.$libext"; then
  8294. found_dir="$additional_libdir"
  8295. found_a="$additional_libdir/lib$name.$libext"
  8296. if test -f "$additional_libdir/lib$name.la"; then
  8297. found_la="$additional_libdir/lib$name.la"
  8298. fi
  8299. fi
  8300. fi
  8301. fi
  8302. if test "X$found_dir" = "X"; then
  8303. for x in $LDFLAGS $LTLIBICONV; do
  8304. acl_save_prefix="$prefix"
  8305. prefix="$acl_final_prefix"
  8306. acl_save_exec_prefix="$exec_prefix"
  8307. exec_prefix="$acl_final_exec_prefix"
  8308. eval x=\"$x\"
  8309. exec_prefix="$acl_save_exec_prefix"
  8310. prefix="$acl_save_prefix"
  8311. case "$x" in
  8312. -L*)
  8313. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8314. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  8315. found_dir="$dir"
  8316. found_so="$dir/lib$name.$shlibext"
  8317. if test -f "$dir/lib$name.la"; then
  8318. found_la="$dir/lib$name.la"
  8319. fi
  8320. else
  8321. if test -f "$dir/lib$name.$libext"; then
  8322. found_dir="$dir"
  8323. found_a="$dir/lib$name.$libext"
  8324. if test -f "$dir/lib$name.la"; then
  8325. found_la="$dir/lib$name.la"
  8326. fi
  8327. fi
  8328. fi
  8329. ;;
  8330. esac
  8331. if test "X$found_dir" != "X"; then
  8332. break
  8333. fi
  8334. done
  8335. fi
  8336. if test "X$found_dir" != "X"; then
  8337. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  8338. if test "X$found_so" != "X"; then
  8339. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8340. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8341. else
  8342. haveit=
  8343. for x in $ltrpathdirs; do
  8344. if test "X$x" = "X$found_dir"; then
  8345. haveit=yes
  8346. break
  8347. fi
  8348. done
  8349. if test -z "$haveit"; then
  8350. ltrpathdirs="$ltrpathdirs $found_dir"
  8351. fi
  8352. if test "$hardcode_direct" = yes; then
  8353. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8354. else
  8355. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8356. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8357. haveit=
  8358. for x in $rpathdirs; do
  8359. if test "X$x" = "X$found_dir"; then
  8360. haveit=yes
  8361. break
  8362. fi
  8363. done
  8364. if test -z "$haveit"; then
  8365. rpathdirs="$rpathdirs $found_dir"
  8366. fi
  8367. else
  8368. haveit=
  8369. for x in $LDFLAGS $LIBICONV; do
  8370. acl_save_prefix="$prefix"
  8371. prefix="$acl_final_prefix"
  8372. acl_save_exec_prefix="$exec_prefix"
  8373. exec_prefix="$acl_final_exec_prefix"
  8374. eval x=\"$x\"
  8375. exec_prefix="$acl_save_exec_prefix"
  8376. prefix="$acl_save_prefix"
  8377. if test "X$x" = "X-L$found_dir"; then
  8378. haveit=yes
  8379. break
  8380. fi
  8381. done
  8382. if test -z "$haveit"; then
  8383. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  8384. fi
  8385. if test "$hardcode_minus_L" != no; then
  8386. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8387. else
  8388. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8389. fi
  8390. fi
  8391. fi
  8392. fi
  8393. else
  8394. if test "X$found_a" != "X"; then
  8395. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  8396. else
  8397. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  8398. fi
  8399. fi
  8400. additional_includedir=
  8401. case "$found_dir" in
  8402. */lib | */lib/)
  8403. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8404. additional_includedir="$basedir/include"
  8405. ;;
  8406. esac
  8407. if test "X$additional_includedir" != "X"; then
  8408. if test "X$additional_includedir" != "X/usr/include"; then
  8409. haveit=
  8410. if test "X$additional_includedir" = "X/usr/local/include"; then
  8411. if test -n "$GCC"; then
  8412. case $host_os in
  8413. linux*) haveit=yes;;
  8414. esac
  8415. fi
  8416. fi
  8417. if test -z "$haveit"; then
  8418. for x in $CPPFLAGS $INCICONV; do
  8419. acl_save_prefix="$prefix"
  8420. prefix="$acl_final_prefix"
  8421. acl_save_exec_prefix="$exec_prefix"
  8422. exec_prefix="$acl_final_exec_prefix"
  8423. eval x=\"$x\"
  8424. exec_prefix="$acl_save_exec_prefix"
  8425. prefix="$acl_save_prefix"
  8426. if test "X$x" = "X-I$additional_includedir"; then
  8427. haveit=yes
  8428. break
  8429. fi
  8430. done
  8431. if test -z "$haveit"; then
  8432. if test -d "$additional_includedir"; then
  8433. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  8434. fi
  8435. fi
  8436. fi
  8437. fi
  8438. fi
  8439. if test -n "$found_la"; then
  8440. save_libdir="$libdir"
  8441. case "$found_la" in
  8442. */* | *\\*) . "$found_la" ;;
  8443. *) . "./$found_la" ;;
  8444. esac
  8445. libdir="$save_libdir"
  8446. for dep in $dependency_libs; do
  8447. case "$dep" in
  8448. -L*)
  8449. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8450. if test "X$additional_libdir" != "X/usr/lib"; then
  8451. haveit=
  8452. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8453. if test -n "$GCC"; then
  8454. case $host_os in
  8455. linux*) haveit=yes;;
  8456. esac
  8457. fi
  8458. fi
  8459. if test -z "$haveit"; then
  8460. haveit=
  8461. for x in $LDFLAGS $LIBICONV; do
  8462. acl_save_prefix="$prefix"
  8463. prefix="$acl_final_prefix"
  8464. acl_save_exec_prefix="$exec_prefix"
  8465. exec_prefix="$acl_final_exec_prefix"
  8466. eval x=\"$x\"
  8467. exec_prefix="$acl_save_exec_prefix"
  8468. prefix="$acl_save_prefix"
  8469. if test "X$x" = "X-L$additional_libdir"; then
  8470. haveit=yes
  8471. break
  8472. fi
  8473. done
  8474. if test -z "$haveit"; then
  8475. if test -d "$additional_libdir"; then
  8476. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  8477. fi
  8478. fi
  8479. haveit=
  8480. for x in $LDFLAGS $LTLIBICONV; do
  8481. acl_save_prefix="$prefix"
  8482. prefix="$acl_final_prefix"
  8483. acl_save_exec_prefix="$exec_prefix"
  8484. exec_prefix="$acl_final_exec_prefix"
  8485. eval x=\"$x\"
  8486. exec_prefix="$acl_save_exec_prefix"
  8487. prefix="$acl_save_prefix"
  8488. if test "X$x" = "X-L$additional_libdir"; then
  8489. haveit=yes
  8490. break
  8491. fi
  8492. done
  8493. if test -z "$haveit"; then
  8494. if test -d "$additional_libdir"; then
  8495. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  8496. fi
  8497. fi
  8498. fi
  8499. fi
  8500. ;;
  8501. -R*)
  8502. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8503. if test "$enable_rpath" != no; then
  8504. haveit=
  8505. for x in $rpathdirs; do
  8506. if test "X$x" = "X$dir"; then
  8507. haveit=yes
  8508. break
  8509. fi
  8510. done
  8511. if test -z "$haveit"; then
  8512. rpathdirs="$rpathdirs $dir"
  8513. fi
  8514. haveit=
  8515. for x in $ltrpathdirs; do
  8516. if test "X$x" = "X$dir"; then
  8517. haveit=yes
  8518. break
  8519. fi
  8520. done
  8521. if test -z "$haveit"; then
  8522. ltrpathdirs="$ltrpathdirs $dir"
  8523. fi
  8524. fi
  8525. ;;
  8526. -l*)
  8527. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8528. ;;
  8529. *.la)
  8530. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8531. ;;
  8532. *)
  8533. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  8534. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  8535. ;;
  8536. esac
  8537. done
  8538. fi
  8539. else
  8540. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8541. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  8542. fi
  8543. fi
  8544. fi
  8545. done
  8546. done
  8547. if test "X$rpathdirs" != "X"; then
  8548. if test -n "$hardcode_libdir_separator"; then
  8549. alldirs=
  8550. for found_dir in $rpathdirs; do
  8551. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8552. done
  8553. acl_save_libdir="$libdir"
  8554. libdir="$alldirs"
  8555. eval flag=\"$hardcode_libdir_flag_spec\"
  8556. libdir="$acl_save_libdir"
  8557. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8558. else
  8559. for found_dir in $rpathdirs; do
  8560. acl_save_libdir="$libdir"
  8561. libdir="$found_dir"
  8562. eval flag=\"$hardcode_libdir_flag_spec\"
  8563. libdir="$acl_save_libdir"
  8564. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8565. done
  8566. fi
  8567. fi
  8568. if test "X$ltrpathdirs" != "X"; then
  8569. for found_dir in $ltrpathdirs; do
  8570. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  8571. done
  8572. fi
  8573. echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  8574. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
  8575. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  8576. echo $ECHO_N "(cached) $ECHO_C" >&6
  8577. else
  8578. cat >conftest.$ac_ext <<_ACEOF
  8579. /* confdefs.h. */
  8580. _ACEOF
  8581. cat confdefs.h >>conftest.$ac_ext
  8582. cat >>conftest.$ac_ext <<_ACEOF
  8583. /* end confdefs.h. */
  8584. $ac_includes_default
  8585. int
  8586. main ()
  8587. {
  8588. if ((ptrdiff_t *) 0)
  8589. return 0;
  8590. if (sizeof (ptrdiff_t))
  8591. return 0;
  8592. ;
  8593. return 0;
  8594. }
  8595. _ACEOF
  8596. rm -f conftest.$ac_objext
  8597. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8598. (eval $ac_compile) 2>conftest.er1
  8599. ac_status=$?
  8600. grep -v '^ *+' conftest.er1 >conftest.err
  8601. rm -f conftest.er1
  8602. cat conftest.err >&5
  8603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8604. (exit $ac_status); } &&
  8605. { ac_try='test -z "$ac_cxx_werror_flag"
  8606. || test ! -s conftest.err'
  8607. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8608. (eval $ac_try) 2>&5
  8609. ac_status=$?
  8610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8611. (exit $ac_status); }; } &&
  8612. { ac_try='test -s conftest.$ac_objext'
  8613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8614. (eval $ac_try) 2>&5
  8615. ac_status=$?
  8616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8617. (exit $ac_status); }; }; then
  8618. ac_cv_type_ptrdiff_t=yes
  8619. else
  8620. echo "$as_me: failed program was:" >&5
  8621. sed 's/^/| /' conftest.$ac_ext >&5
  8622. ac_cv_type_ptrdiff_t=no
  8623. fi
  8624. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8625. fi
  8626. echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  8627. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
  8628. if test $ac_cv_type_ptrdiff_t = yes; then
  8629. :
  8630. else
  8631. cat >>confdefs.h <<\_ACEOF
  8632. #define ptrdiff_t long
  8633. _ACEOF
  8634. fi
  8635. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  8636. stdlib.h string.h unistd.h sys/param.h
  8637. do
  8638. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8639. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8640. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8641. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8642. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8643. echo $ECHO_N "(cached) $ECHO_C" >&6
  8644. fi
  8645. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8646. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8647. else
  8648. # Is the header compilable?
  8649. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8650. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8651. cat >conftest.$ac_ext <<_ACEOF
  8652. /* confdefs.h. */
  8653. _ACEOF
  8654. cat confdefs.h >>conftest.$ac_ext
  8655. cat >>conftest.$ac_ext <<_ACEOF
  8656. /* end confdefs.h. */
  8657. $ac_includes_default
  8658. #include <$ac_header>
  8659. _ACEOF
  8660. rm -f conftest.$ac_objext
  8661. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8662. (eval $ac_compile) 2>conftest.er1
  8663. ac_status=$?
  8664. grep -v '^ *+' conftest.er1 >conftest.err
  8665. rm -f conftest.er1
  8666. cat conftest.err >&5
  8667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8668. (exit $ac_status); } &&
  8669. { ac_try='test -z "$ac_cxx_werror_flag"
  8670. || test ! -s conftest.err'
  8671. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8672. (eval $ac_try) 2>&5
  8673. ac_status=$?
  8674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8675. (exit $ac_status); }; } &&
  8676. { ac_try='test -s conftest.$ac_objext'
  8677. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8678. (eval $ac_try) 2>&5
  8679. ac_status=$?
  8680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8681. (exit $ac_status); }; }; then
  8682. ac_header_compiler=yes
  8683. else
  8684. echo "$as_me: failed program was:" >&5
  8685. sed 's/^/| /' conftest.$ac_ext >&5
  8686. ac_header_compiler=no
  8687. fi
  8688. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8689. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8690. echo "${ECHO_T}$ac_header_compiler" >&6
  8691. # Is the header present?
  8692. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8693. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8694. cat >conftest.$ac_ext <<_ACEOF
  8695. /* confdefs.h. */
  8696. _ACEOF
  8697. cat confdefs.h >>conftest.$ac_ext
  8698. cat >>conftest.$ac_ext <<_ACEOF
  8699. /* end confdefs.h. */
  8700. #include <$ac_header>
  8701. _ACEOF
  8702. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8703. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8704. ac_status=$?
  8705. grep -v '^ *+' conftest.er1 >conftest.err
  8706. rm -f conftest.er1
  8707. cat conftest.err >&5
  8708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8709. (exit $ac_status); } >/dev/null; then
  8710. if test -s conftest.err; then
  8711. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8712. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8713. else
  8714. ac_cpp_err=
  8715. fi
  8716. else
  8717. ac_cpp_err=yes
  8718. fi
  8719. if test -z "$ac_cpp_err"; then
  8720. ac_header_preproc=yes
  8721. else
  8722. echo "$as_me: failed program was:" >&5
  8723. sed 's/^/| /' conftest.$ac_ext >&5
  8724. ac_header_preproc=no
  8725. fi
  8726. rm -f conftest.err conftest.$ac_ext
  8727. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8728. echo "${ECHO_T}$ac_header_preproc" >&6
  8729. # So? What about this header?
  8730. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8731. yes:no: )
  8732. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8733. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8734. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8735. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8736. ac_header_preproc=yes
  8737. ;;
  8738. no:yes:* )
  8739. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8740. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8741. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8742. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8743. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8744. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8745. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8746. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8747. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8748. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8749. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8750. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8751. (
  8752. cat <<\_ASBOX
  8753. ## ------------------------------------------ ##
  8754. ## Report this to the AC_PACKAGE_NAME lists. ##
  8755. ## ------------------------------------------ ##
  8756. _ASBOX
  8757. ) |
  8758. sed "s/^/$as_me: WARNING: /" >&2
  8759. ;;
  8760. esac
  8761. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8762. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8763. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8764. echo $ECHO_N "(cached) $ECHO_C" >&6
  8765. else
  8766. eval "$as_ac_Header=\$ac_header_preproc"
  8767. fi
  8768. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8769. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8770. fi
  8771. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8772. cat >>confdefs.h <<_ACEOF
  8773. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8774. _ACEOF
  8775. fi
  8776. done
  8777. for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
  8778. mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
  8779. strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
  8780. __fsetlocking
  8781. do
  8782. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8783. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8784. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8785. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8786. echo $ECHO_N "(cached) $ECHO_C" >&6
  8787. else
  8788. cat >conftest.$ac_ext <<_ACEOF
  8789. /* confdefs.h. */
  8790. _ACEOF
  8791. cat confdefs.h >>conftest.$ac_ext
  8792. cat >>conftest.$ac_ext <<_ACEOF
  8793. /* end confdefs.h. */
  8794. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8795. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8796. #define $ac_func innocuous_$ac_func
  8797. /* System header to define __stub macros and hopefully few prototypes,
  8798. which can conflict with char $ac_func (); below.
  8799. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8800. <limits.h> exists even on freestanding compilers. */
  8801. #ifdef __STDC__
  8802. # include <limits.h>
  8803. #else
  8804. # include <assert.h>
  8805. #endif
  8806. #undef $ac_func
  8807. /* Override any gcc2 internal prototype to avoid an error. */
  8808. #ifdef __cplusplus
  8809. extern "C"
  8810. {
  8811. #endif
  8812. /* We use char because int might match the return type of a gcc2
  8813. builtin and then its argument prototype would still apply. */
  8814. char $ac_func ();
  8815. /* The GNU C library defines this for functions which it implements
  8816. to always fail with ENOSYS. Some functions are actually named
  8817. something starting with __ and the normal name is an alias. */
  8818. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8819. choke me
  8820. #else
  8821. char (*f) () = $ac_func;
  8822. #endif
  8823. #ifdef __cplusplus
  8824. }
  8825. #endif
  8826. int
  8827. main ()
  8828. {
  8829. return f != $ac_func;
  8830. ;
  8831. return 0;
  8832. }
  8833. _ACEOF
  8834. rm -f conftest.$ac_objext conftest$ac_exeext
  8835. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8836. (eval $ac_link) 2>conftest.er1
  8837. ac_status=$?
  8838. grep -v '^ *+' conftest.er1 >conftest.err
  8839. rm -f conftest.er1
  8840. cat conftest.err >&5
  8841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8842. (exit $ac_status); } &&
  8843. { ac_try='test -z "$ac_cxx_werror_flag"
  8844. || test ! -s conftest.err'
  8845. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8846. (eval $ac_try) 2>&5
  8847. ac_status=$?
  8848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8849. (exit $ac_status); }; } &&
  8850. { ac_try='test -s conftest$ac_exeext'
  8851. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8852. (eval $ac_try) 2>&5
  8853. ac_status=$?
  8854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8855. (exit $ac_status); }; }; then
  8856. eval "$as_ac_var=yes"
  8857. else
  8858. echo "$as_me: failed program was:" >&5
  8859. sed 's/^/| /' conftest.$ac_ext >&5
  8860. eval "$as_ac_var=no"
  8861. fi
  8862. rm -f conftest.err conftest.$ac_objext \
  8863. conftest$ac_exeext conftest.$ac_ext
  8864. fi
  8865. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8866. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8867. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8868. cat >>confdefs.h <<_ACEOF
  8869. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8870. _ACEOF
  8871. fi
  8872. done
  8873. echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  8874. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
  8875. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  8876. echo $ECHO_N "(cached) $ECHO_C" >&6
  8877. else
  8878. cat >conftest.$ac_ext <<_ACEOF
  8879. /* confdefs.h. */
  8880. _ACEOF
  8881. cat confdefs.h >>conftest.$ac_ext
  8882. cat >>conftest.$ac_ext <<_ACEOF
  8883. /* end confdefs.h. */
  8884. #include <stdio.h>
  8885. int
  8886. main ()
  8887. {
  8888. #ifndef _snprintf
  8889. char *p = (char *) _snprintf;
  8890. #endif
  8891. ;
  8892. return 0;
  8893. }
  8894. _ACEOF
  8895. rm -f conftest.$ac_objext
  8896. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8897. (eval $ac_compile) 2>conftest.er1
  8898. ac_status=$?
  8899. grep -v '^ *+' conftest.er1 >conftest.err
  8900. rm -f conftest.er1
  8901. cat conftest.err >&5
  8902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8903. (exit $ac_status); } &&
  8904. { ac_try='test -z "$ac_cxx_werror_flag"
  8905. || test ! -s conftest.err'
  8906. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8907. (eval $ac_try) 2>&5
  8908. ac_status=$?
  8909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8910. (exit $ac_status); }; } &&
  8911. { ac_try='test -s conftest.$ac_objext'
  8912. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8913. (eval $ac_try) 2>&5
  8914. ac_status=$?
  8915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8916. (exit $ac_status); }; }; then
  8917. ac_cv_have_decl__snprintf=yes
  8918. else
  8919. echo "$as_me: failed program was:" >&5
  8920. sed 's/^/| /' conftest.$ac_ext >&5
  8921. ac_cv_have_decl__snprintf=no
  8922. fi
  8923. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8924. fi
  8925. echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  8926. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
  8927. if test $ac_cv_have_decl__snprintf = yes; then
  8928. gt_value=1
  8929. else
  8930. gt_value=0
  8931. fi
  8932. cat >>confdefs.h <<_ACEOF
  8933. #define HAVE_DECL__SNPRINTF $gt_value
  8934. _ACEOF
  8935. echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  8936. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
  8937. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  8938. echo $ECHO_N "(cached) $ECHO_C" >&6
  8939. else
  8940. cat >conftest.$ac_ext <<_ACEOF
  8941. /* confdefs.h. */
  8942. _ACEOF
  8943. cat confdefs.h >>conftest.$ac_ext
  8944. cat >>conftest.$ac_ext <<_ACEOF
  8945. /* end confdefs.h. */
  8946. #include <stdio.h>
  8947. int
  8948. main ()
  8949. {
  8950. #ifndef _snwprintf
  8951. char *p = (char *) _snwprintf;
  8952. #endif
  8953. ;
  8954. return 0;
  8955. }
  8956. _ACEOF
  8957. rm -f conftest.$ac_objext
  8958. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8959. (eval $ac_compile) 2>conftest.er1
  8960. ac_status=$?
  8961. grep -v '^ *+' conftest.er1 >conftest.err
  8962. rm -f conftest.er1
  8963. cat conftest.err >&5
  8964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8965. (exit $ac_status); } &&
  8966. { ac_try='test -z "$ac_cxx_werror_flag"
  8967. || test ! -s conftest.err'
  8968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8969. (eval $ac_try) 2>&5
  8970. ac_status=$?
  8971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8972. (exit $ac_status); }; } &&
  8973. { ac_try='test -s conftest.$ac_objext'
  8974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8975. (eval $ac_try) 2>&5
  8976. ac_status=$?
  8977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8978. (exit $ac_status); }; }; then
  8979. ac_cv_have_decl__snwprintf=yes
  8980. else
  8981. echo "$as_me: failed program was:" >&5
  8982. sed 's/^/| /' conftest.$ac_ext >&5
  8983. ac_cv_have_decl__snwprintf=no
  8984. fi
  8985. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8986. fi
  8987. echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  8988. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
  8989. if test $ac_cv_have_decl__snwprintf = yes; then
  8990. gt_value=1
  8991. else
  8992. gt_value=0
  8993. fi
  8994. cat >>confdefs.h <<_ACEOF
  8995. #define HAVE_DECL__SNWPRINTF $gt_value
  8996. _ACEOF
  8997. echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  8998. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
  8999. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  9000. echo $ECHO_N "(cached) $ECHO_C" >&6
  9001. else
  9002. cat >conftest.$ac_ext <<_ACEOF
  9003. /* confdefs.h. */
  9004. _ACEOF
  9005. cat confdefs.h >>conftest.$ac_ext
  9006. cat >>conftest.$ac_ext <<_ACEOF
  9007. /* end confdefs.h. */
  9008. #include <stdio.h>
  9009. int
  9010. main ()
  9011. {
  9012. #ifndef feof_unlocked
  9013. char *p = (char *) feof_unlocked;
  9014. #endif
  9015. ;
  9016. return 0;
  9017. }
  9018. _ACEOF
  9019. rm -f conftest.$ac_objext
  9020. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9021. (eval $ac_compile) 2>conftest.er1
  9022. ac_status=$?
  9023. grep -v '^ *+' conftest.er1 >conftest.err
  9024. rm -f conftest.er1
  9025. cat conftest.err >&5
  9026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9027. (exit $ac_status); } &&
  9028. { ac_try='test -z "$ac_cxx_werror_flag"
  9029. || test ! -s conftest.err'
  9030. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9031. (eval $ac_try) 2>&5
  9032. ac_status=$?
  9033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9034. (exit $ac_status); }; } &&
  9035. { ac_try='test -s conftest.$ac_objext'
  9036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9037. (eval $ac_try) 2>&5
  9038. ac_status=$?
  9039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9040. (exit $ac_status); }; }; then
  9041. ac_cv_have_decl_feof_unlocked=yes
  9042. else
  9043. echo "$as_me: failed program was:" >&5
  9044. sed 's/^/| /' conftest.$ac_ext >&5
  9045. ac_cv_have_decl_feof_unlocked=no
  9046. fi
  9047. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9048. fi
  9049. echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  9050. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
  9051. if test $ac_cv_have_decl_feof_unlocked = yes; then
  9052. gt_value=1
  9053. else
  9054. gt_value=0
  9055. fi
  9056. cat >>confdefs.h <<_ACEOF
  9057. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  9058. _ACEOF
  9059. echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  9060. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
  9061. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  9062. echo $ECHO_N "(cached) $ECHO_C" >&6
  9063. else
  9064. cat >conftest.$ac_ext <<_ACEOF
  9065. /* confdefs.h. */
  9066. _ACEOF
  9067. cat confdefs.h >>conftest.$ac_ext
  9068. cat >>conftest.$ac_ext <<_ACEOF
  9069. /* end confdefs.h. */
  9070. #include <stdio.h>
  9071. int
  9072. main ()
  9073. {
  9074. #ifndef fgets_unlocked
  9075. char *p = (char *) fgets_unlocked;
  9076. #endif
  9077. ;
  9078. return 0;
  9079. }
  9080. _ACEOF
  9081. rm -f conftest.$ac_objext
  9082. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9083. (eval $ac_compile) 2>conftest.er1
  9084. ac_status=$?
  9085. grep -v '^ *+' conftest.er1 >conftest.err
  9086. rm -f conftest.er1
  9087. cat conftest.err >&5
  9088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9089. (exit $ac_status); } &&
  9090. { ac_try='test -z "$ac_cxx_werror_flag"
  9091. || test ! -s conftest.err'
  9092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9093. (eval $ac_try) 2>&5
  9094. ac_status=$?
  9095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9096. (exit $ac_status); }; } &&
  9097. { ac_try='test -s conftest.$ac_objext'
  9098. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9099. (eval $ac_try) 2>&5
  9100. ac_status=$?
  9101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9102. (exit $ac_status); }; }; then
  9103. ac_cv_have_decl_fgets_unlocked=yes
  9104. else
  9105. echo "$as_me: failed program was:" >&5
  9106. sed 's/^/| /' conftest.$ac_ext >&5
  9107. ac_cv_have_decl_fgets_unlocked=no
  9108. fi
  9109. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9110. fi
  9111. echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  9112. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
  9113. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  9114. gt_value=1
  9115. else
  9116. gt_value=0
  9117. fi
  9118. cat >>confdefs.h <<_ACEOF
  9119. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  9120. _ACEOF
  9121. echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  9122. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
  9123. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  9124. echo $ECHO_N "(cached) $ECHO_C" >&6
  9125. else
  9126. cat >conftest.$ac_ext <<_ACEOF
  9127. /* confdefs.h. */
  9128. _ACEOF
  9129. cat confdefs.h >>conftest.$ac_ext
  9130. cat >>conftest.$ac_ext <<_ACEOF
  9131. /* end confdefs.h. */
  9132. #include <stdio.h>
  9133. int
  9134. main ()
  9135. {
  9136. #ifndef getc_unlocked
  9137. char *p = (char *) getc_unlocked;
  9138. #endif
  9139. ;
  9140. return 0;
  9141. }
  9142. _ACEOF
  9143. rm -f conftest.$ac_objext
  9144. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9145. (eval $ac_compile) 2>conftest.er1
  9146. ac_status=$?
  9147. grep -v '^ *+' conftest.er1 >conftest.err
  9148. rm -f conftest.er1
  9149. cat conftest.err >&5
  9150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9151. (exit $ac_status); } &&
  9152. { ac_try='test -z "$ac_cxx_werror_flag"
  9153. || test ! -s conftest.err'
  9154. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9155. (eval $ac_try) 2>&5
  9156. ac_status=$?
  9157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9158. (exit $ac_status); }; } &&
  9159. { ac_try='test -s conftest.$ac_objext'
  9160. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9161. (eval $ac_try) 2>&5
  9162. ac_status=$?
  9163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9164. (exit $ac_status); }; }; then
  9165. ac_cv_have_decl_getc_unlocked=yes
  9166. else
  9167. echo "$as_me: failed program was:" >&5
  9168. sed 's/^/| /' conftest.$ac_ext >&5
  9169. ac_cv_have_decl_getc_unlocked=no
  9170. fi
  9171. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9172. fi
  9173. echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  9174. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
  9175. if test $ac_cv_have_decl_getc_unlocked = yes; then
  9176. gt_value=1
  9177. else
  9178. gt_value=0
  9179. fi
  9180. cat >>confdefs.h <<_ACEOF
  9181. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  9182. _ACEOF
  9183. case $gt_cv_func_printf_posix in
  9184. *yes) HAVE_POSIX_PRINTF=1 ;;
  9185. *) HAVE_POSIX_PRINTF=0 ;;
  9186. esac
  9187. if test "$ac_cv_func_asprintf" = yes; then
  9188. HAVE_ASPRINTF=1
  9189. else
  9190. HAVE_ASPRINTF=0
  9191. fi
  9192. if test "$ac_cv_func_snprintf" = yes; then
  9193. HAVE_SNPRINTF=1
  9194. else
  9195. HAVE_SNPRINTF=0
  9196. fi
  9197. if test "$ac_cv_func_wprintf" = yes; then
  9198. HAVE_WPRINTF=1
  9199. else
  9200. HAVE_WPRINTF=0
  9201. fi
  9202. am_save_CPPFLAGS="$CPPFLAGS"
  9203. for element in $INCICONV; do
  9204. haveit=
  9205. for x in $CPPFLAGS; do
  9206. acl_save_prefix="$prefix"
  9207. prefix="$acl_final_prefix"
  9208. acl_save_exec_prefix="$exec_prefix"
  9209. exec_prefix="$acl_final_exec_prefix"
  9210. eval x=\"$x\"
  9211. exec_prefix="$acl_save_exec_prefix"
  9212. prefix="$acl_save_prefix"
  9213. if test "X$x" = "X$element"; then
  9214. haveit=yes
  9215. break
  9216. fi
  9217. done
  9218. if test -z "$haveit"; then
  9219. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9220. fi
  9221. done
  9222. echo "$as_me:$LINENO: checking for iconv" >&5
  9223. echo $ECHO_N "checking for iconv... $ECHO_C" >&6
  9224. if test "${am_cv_func_iconv+set}" = set; then
  9225. echo $ECHO_N "(cached) $ECHO_C" >&6
  9226. else
  9227. am_cv_func_iconv="no, consider installing GNU libiconv"
  9228. am_cv_lib_iconv=no
  9229. cat >conftest.$ac_ext <<_ACEOF
  9230. /* confdefs.h. */
  9231. _ACEOF
  9232. cat confdefs.h >>conftest.$ac_ext
  9233. cat >>conftest.$ac_ext <<_ACEOF
  9234. /* end confdefs.h. */
  9235. #include <stdlib.h>
  9236. #include <iconv.h>
  9237. int
  9238. main ()
  9239. {
  9240. iconv_t cd = iconv_open("","");
  9241. iconv(cd,NULL,NULL,NULL,NULL);
  9242. iconv_close(cd);
  9243. ;
  9244. return 0;
  9245. }
  9246. _ACEOF
  9247. rm -f conftest.$ac_objext conftest$ac_exeext
  9248. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9249. (eval $ac_link) 2>conftest.er1
  9250. ac_status=$?
  9251. grep -v '^ *+' conftest.er1 >conftest.err
  9252. rm -f conftest.er1
  9253. cat conftest.err >&5
  9254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9255. (exit $ac_status); } &&
  9256. { ac_try='test -z "$ac_cxx_werror_flag"
  9257. || test ! -s conftest.err'
  9258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9259. (eval $ac_try) 2>&5
  9260. ac_status=$?
  9261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9262. (exit $ac_status); }; } &&
  9263. { ac_try='test -s conftest$ac_exeext'
  9264. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9265. (eval $ac_try) 2>&5
  9266. ac_status=$?
  9267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9268. (exit $ac_status); }; }; then
  9269. am_cv_func_iconv=yes
  9270. else
  9271. echo "$as_me: failed program was:" >&5
  9272. sed 's/^/| /' conftest.$ac_ext >&5
  9273. fi
  9274. rm -f conftest.err conftest.$ac_objext \
  9275. conftest$ac_exeext conftest.$ac_ext
  9276. if test "$am_cv_func_iconv" != yes; then
  9277. am_save_LIBS="$LIBS"
  9278. LIBS="$LIBS $LIBICONV"
  9279. cat >conftest.$ac_ext <<_ACEOF
  9280. /* confdefs.h. */
  9281. _ACEOF
  9282. cat confdefs.h >>conftest.$ac_ext
  9283. cat >>conftest.$ac_ext <<_ACEOF
  9284. /* end confdefs.h. */
  9285. #include <stdlib.h>
  9286. #include <iconv.h>
  9287. int
  9288. main ()
  9289. {
  9290. iconv_t cd = iconv_open("","");
  9291. iconv(cd,NULL,NULL,NULL,NULL);
  9292. iconv_close(cd);
  9293. ;
  9294. return 0;
  9295. }
  9296. _ACEOF
  9297. rm -f conftest.$ac_objext conftest$ac_exeext
  9298. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9299. (eval $ac_link) 2>conftest.er1
  9300. ac_status=$?
  9301. grep -v '^ *+' conftest.er1 >conftest.err
  9302. rm -f conftest.er1
  9303. cat conftest.err >&5
  9304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9305. (exit $ac_status); } &&
  9306. { ac_try='test -z "$ac_cxx_werror_flag"
  9307. || test ! -s conftest.err'
  9308. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9309. (eval $ac_try) 2>&5
  9310. ac_status=$?
  9311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9312. (exit $ac_status); }; } &&
  9313. { ac_try='test -s conftest$ac_exeext'
  9314. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9315. (eval $ac_try) 2>&5
  9316. ac_status=$?
  9317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9318. (exit $ac_status); }; }; then
  9319. am_cv_lib_iconv=yes
  9320. am_cv_func_iconv=yes
  9321. else
  9322. echo "$as_me: failed program was:" >&5
  9323. sed 's/^/| /' conftest.$ac_ext >&5
  9324. fi
  9325. rm -f conftest.err conftest.$ac_objext \
  9326. conftest$ac_exeext conftest.$ac_ext
  9327. LIBS="$am_save_LIBS"
  9328. fi
  9329. fi
  9330. echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  9331. echo "${ECHO_T}$am_cv_func_iconv" >&6
  9332. if test "$am_cv_func_iconv" = yes; then
  9333. cat >>confdefs.h <<\_ACEOF
  9334. #define HAVE_ICONV 1
  9335. _ACEOF
  9336. fi
  9337. if test "$am_cv_lib_iconv" = yes; then
  9338. echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  9339. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
  9340. echo "$as_me:$LINENO: result: $LIBICONV" >&5
  9341. echo "${ECHO_T}$LIBICONV" >&6
  9342. else
  9343. CPPFLAGS="$am_save_CPPFLAGS"
  9344. LIBICONV=
  9345. LTLIBICONV=
  9346. fi
  9347. if test "$am_cv_func_iconv" = yes; then
  9348. echo "$as_me:$LINENO: checking for iconv declaration" >&5
  9349. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
  9350. if test "${am_cv_proto_iconv+set}" = set; then
  9351. echo $ECHO_N "(cached) $ECHO_C" >&6
  9352. else
  9353. cat >conftest.$ac_ext <<_ACEOF
  9354. /* confdefs.h. */
  9355. _ACEOF
  9356. cat confdefs.h >>conftest.$ac_ext
  9357. cat >>conftest.$ac_ext <<_ACEOF
  9358. /* end confdefs.h. */
  9359. #include <stdlib.h>
  9360. #include <iconv.h>
  9361. extern
  9362. #ifdef __cplusplus
  9363. "C"
  9364. #endif
  9365. #if defined(__STDC__) || defined(__cplusplus)
  9366. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  9367. #else
  9368. size_t iconv();
  9369. #endif
  9370. int
  9371. main ()
  9372. {
  9373. ;
  9374. return 0;
  9375. }
  9376. _ACEOF
  9377. rm -f conftest.$ac_objext
  9378. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9379. (eval $ac_compile) 2>conftest.er1
  9380. ac_status=$?
  9381. grep -v '^ *+' conftest.er1 >conftest.err
  9382. rm -f conftest.er1
  9383. cat conftest.err >&5
  9384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9385. (exit $ac_status); } &&
  9386. { ac_try='test -z "$ac_cxx_werror_flag"
  9387. || test ! -s conftest.err'
  9388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9389. (eval $ac_try) 2>&5
  9390. ac_status=$?
  9391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9392. (exit $ac_status); }; } &&
  9393. { ac_try='test -s conftest.$ac_objext'
  9394. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9395. (eval $ac_try) 2>&5
  9396. ac_status=$?
  9397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9398. (exit $ac_status); }; }; then
  9399. am_cv_proto_iconv_arg1=""
  9400. else
  9401. echo "$as_me: failed program was:" >&5
  9402. sed 's/^/| /' conftest.$ac_ext >&5
  9403. am_cv_proto_iconv_arg1="const"
  9404. fi
  9405. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9406. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  9407. fi
  9408. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  9409. echo "$as_me:$LINENO: result: ${ac_t:-
  9410. }$am_cv_proto_iconv" >&5
  9411. echo "${ECHO_T}${ac_t:-
  9412. }$am_cv_proto_iconv" >&6
  9413. cat >>confdefs.h <<_ACEOF
  9414. #define ICONV_CONST $am_cv_proto_iconv_arg1
  9415. _ACEOF
  9416. fi
  9417. echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  9418. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
  9419. if test "${am_cv_langinfo_codeset+set}" = set; then
  9420. echo $ECHO_N "(cached) $ECHO_C" >&6
  9421. else
  9422. cat >conftest.$ac_ext <<_ACEOF
  9423. /* confdefs.h. */
  9424. _ACEOF
  9425. cat confdefs.h >>conftest.$ac_ext
  9426. cat >>conftest.$ac_ext <<_ACEOF
  9427. /* end confdefs.h. */
  9428. #include <langinfo.h>
  9429. int
  9430. main ()
  9431. {
  9432. char* cs = nl_langinfo(CODESET);
  9433. ;
  9434. return 0;
  9435. }
  9436. _ACEOF
  9437. rm -f conftest.$ac_objext conftest$ac_exeext
  9438. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9439. (eval $ac_link) 2>conftest.er1
  9440. ac_status=$?
  9441. grep -v '^ *+' conftest.er1 >conftest.err
  9442. rm -f conftest.er1
  9443. cat conftest.err >&5
  9444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9445. (exit $ac_status); } &&
  9446. { ac_try='test -z "$ac_cxx_werror_flag"
  9447. || test ! -s conftest.err'
  9448. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9449. (eval $ac_try) 2>&5
  9450. ac_status=$?
  9451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9452. (exit $ac_status); }; } &&
  9453. { ac_try='test -s conftest$ac_exeext'
  9454. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9455. (eval $ac_try) 2>&5
  9456. ac_status=$?
  9457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9458. (exit $ac_status); }; }; then
  9459. am_cv_langinfo_codeset=yes
  9460. else
  9461. echo "$as_me: failed program was:" >&5
  9462. sed 's/^/| /' conftest.$ac_ext >&5
  9463. am_cv_langinfo_codeset=no
  9464. fi
  9465. rm -f conftest.err conftest.$ac_objext \
  9466. conftest$ac_exeext conftest.$ac_ext
  9467. fi
  9468. echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  9469. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
  9470. if test $am_cv_langinfo_codeset = yes; then
  9471. cat >>confdefs.h <<\_ACEOF
  9472. #define HAVE_LANGINFO_CODESET 1
  9473. _ACEOF
  9474. fi
  9475. if test $ac_cv_header_locale_h = yes; then
  9476. echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  9477. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
  9478. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  9479. echo $ECHO_N "(cached) $ECHO_C" >&6
  9480. else
  9481. cat >conftest.$ac_ext <<_ACEOF
  9482. /* confdefs.h. */
  9483. _ACEOF
  9484. cat confdefs.h >>conftest.$ac_ext
  9485. cat >>conftest.$ac_ext <<_ACEOF
  9486. /* end confdefs.h. */
  9487. #include <locale.h>
  9488. int
  9489. main ()
  9490. {
  9491. return LC_MESSAGES
  9492. ;
  9493. return 0;
  9494. }
  9495. _ACEOF
  9496. rm -f conftest.$ac_objext conftest$ac_exeext
  9497. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9498. (eval $ac_link) 2>conftest.er1
  9499. ac_status=$?
  9500. grep -v '^ *+' conftest.er1 >conftest.err
  9501. rm -f conftest.er1
  9502. cat conftest.err >&5
  9503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9504. (exit $ac_status); } &&
  9505. { ac_try='test -z "$ac_cxx_werror_flag"
  9506. || test ! -s conftest.err'
  9507. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9508. (eval $ac_try) 2>&5
  9509. ac_status=$?
  9510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9511. (exit $ac_status); }; } &&
  9512. { ac_try='test -s conftest$ac_exeext'
  9513. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9514. (eval $ac_try) 2>&5
  9515. ac_status=$?
  9516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9517. (exit $ac_status); }; }; then
  9518. am_cv_val_LC_MESSAGES=yes
  9519. else
  9520. echo "$as_me: failed program was:" >&5
  9521. sed 's/^/| /' conftest.$ac_ext >&5
  9522. am_cv_val_LC_MESSAGES=no
  9523. fi
  9524. rm -f conftest.err conftest.$ac_objext \
  9525. conftest$ac_exeext conftest.$ac_ext
  9526. fi
  9527. echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  9528. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
  9529. if test $am_cv_val_LC_MESSAGES = yes; then
  9530. cat >>confdefs.h <<\_ACEOF
  9531. #define HAVE_LC_MESSAGES 1
  9532. _ACEOF
  9533. fi
  9534. fi
  9535. for ac_prog in bison
  9536. do
  9537. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9538. set dummy $ac_prog; ac_word=$2
  9539. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9540. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9541. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  9542. echo $ECHO_N "(cached) $ECHO_C" >&6
  9543. else
  9544. if test -n "$INTLBISON"; then
  9545. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  9546. else
  9547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9548. for as_dir in $PATH
  9549. do
  9550. IFS=$as_save_IFS
  9551. test -z "$as_dir" && as_dir=.
  9552. for ac_exec_ext in '' $ac_executable_extensions; do
  9553. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9554. ac_cv_prog_INTLBISON="$ac_prog"
  9555. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9556. break 2
  9557. fi
  9558. done
  9559. done
  9560. fi
  9561. fi
  9562. INTLBISON=$ac_cv_prog_INTLBISON
  9563. if test -n "$INTLBISON"; then
  9564. echo "$as_me:$LINENO: result: $INTLBISON" >&5
  9565. echo "${ECHO_T}$INTLBISON" >&6
  9566. else
  9567. echo "$as_me:$LINENO: result: no" >&5
  9568. echo "${ECHO_T}no" >&6
  9569. fi
  9570. test -n "$INTLBISON" && break
  9571. done
  9572. if test -z "$INTLBISON"; then
  9573. ac_verc_fail=yes
  9574. else
  9575. echo "$as_me:$LINENO: checking version of bison" >&5
  9576. echo $ECHO_N "checking version of bison... $ECHO_C" >&6
  9577. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  9578. case $ac_prog_version in
  9579. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  9580. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  9581. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  9582. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  9583. esac
  9584. echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  9585. echo "${ECHO_T}$ac_prog_version" >&6
  9586. fi
  9587. if test $ac_verc_fail = yes; then
  9588. INTLBISON=:
  9589. fi
  9590. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9591. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  9592. # Check whether --enable-nls or --disable-nls was given.
  9593. if test "${enable_nls+set}" = set; then
  9594. enableval="$enable_nls"
  9595. USE_NLS=$enableval
  9596. else
  9597. USE_NLS=yes
  9598. fi;
  9599. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9600. echo "${ECHO_T}$USE_NLS" >&6
  9601. BUILD_INCLUDED_LIBINTL=no
  9602. USE_INCLUDED_LIBINTL=no
  9603. LIBINTL=
  9604. LTLIBINTL=
  9605. POSUB=
  9606. if test "$USE_NLS" = "yes"; then
  9607. gt_use_preinstalled_gnugettext=no
  9608. echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  9609. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
  9610. # Check whether --with-included-gettext or --without-included-gettext was given.
  9611. if test "${with_included_gettext+set}" = set; then
  9612. withval="$with_included_gettext"
  9613. nls_cv_force_use_gnu_gettext=$withval
  9614. else
  9615. nls_cv_force_use_gnu_gettext=no
  9616. fi;
  9617. echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  9618. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
  9619. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  9620. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  9621. echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  9622. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
  9623. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  9624. echo $ECHO_N "(cached) $ECHO_C" >&6
  9625. else
  9626. cat >conftest.$ac_ext <<_ACEOF
  9627. /* confdefs.h. */
  9628. _ACEOF
  9629. cat confdefs.h >>conftest.$ac_ext
  9630. cat >>conftest.$ac_ext <<_ACEOF
  9631. /* end confdefs.h. */
  9632. #include <libintl.h>
  9633. extern int _nl_msg_cat_cntr;
  9634. extern int *_nl_domain_bindings;
  9635. int
  9636. main ()
  9637. {
  9638. bindtextdomain ("", "");
  9639. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  9640. ;
  9641. return 0;
  9642. }
  9643. _ACEOF
  9644. rm -f conftest.$ac_objext conftest$ac_exeext
  9645. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9646. (eval $ac_link) 2>conftest.er1
  9647. ac_status=$?
  9648. grep -v '^ *+' conftest.er1 >conftest.err
  9649. rm -f conftest.er1
  9650. cat conftest.err >&5
  9651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9652. (exit $ac_status); } &&
  9653. { ac_try='test -z "$ac_cxx_werror_flag"
  9654. || test ! -s conftest.err'
  9655. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9656. (eval $ac_try) 2>&5
  9657. ac_status=$?
  9658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9659. (exit $ac_status); }; } &&
  9660. { ac_try='test -s conftest$ac_exeext'
  9661. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9662. (eval $ac_try) 2>&5
  9663. ac_status=$?
  9664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9665. (exit $ac_status); }; }; then
  9666. gt_cv_func_gnugettext1_libc=yes
  9667. else
  9668. echo "$as_me: failed program was:" >&5
  9669. sed 's/^/| /' conftest.$ac_ext >&5
  9670. gt_cv_func_gnugettext1_libc=no
  9671. fi
  9672. rm -f conftest.err conftest.$ac_objext \
  9673. conftest$ac_exeext conftest.$ac_ext
  9674. fi
  9675. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  9676. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
  9677. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  9678. use_additional=yes
  9679. acl_save_prefix="$prefix"
  9680. prefix="$acl_final_prefix"
  9681. acl_save_exec_prefix="$exec_prefix"
  9682. exec_prefix="$acl_final_exec_prefix"
  9683. eval additional_includedir=\"$includedir\"
  9684. eval additional_libdir=\"$libdir\"
  9685. exec_prefix="$acl_save_exec_prefix"
  9686. prefix="$acl_save_prefix"
  9687. # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
  9688. if test "${with_libintl_prefix+set}" = set; then
  9689. withval="$with_libintl_prefix"
  9690. if test "X$withval" = "Xno"; then
  9691. use_additional=no
  9692. else
  9693. if test "X$withval" = "X"; then
  9694. acl_save_prefix="$prefix"
  9695. prefix="$acl_final_prefix"
  9696. acl_save_exec_prefix="$exec_prefix"
  9697. exec_prefix="$acl_final_exec_prefix"
  9698. eval additional_includedir=\"$includedir\"
  9699. eval additional_libdir=\"$libdir\"
  9700. exec_prefix="$acl_save_exec_prefix"
  9701. prefix="$acl_save_prefix"
  9702. else
  9703. additional_includedir="$withval/include"
  9704. additional_libdir="$withval/lib"
  9705. fi
  9706. fi
  9707. fi;
  9708. LIBINTL=
  9709. LTLIBINTL=
  9710. INCINTL=
  9711. rpathdirs=
  9712. ltrpathdirs=
  9713. names_already_handled=
  9714. names_next_round='intl '
  9715. while test -n "$names_next_round"; do
  9716. names_this_round="$names_next_round"
  9717. names_next_round=
  9718. for name in $names_this_round; do
  9719. already_handled=
  9720. for n in $names_already_handled; do
  9721. if test "$n" = "$name"; then
  9722. already_handled=yes
  9723. break
  9724. fi
  9725. done
  9726. if test -z "$already_handled"; then
  9727. names_already_handled="$names_already_handled $name"
  9728. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9729. eval value=\"\$HAVE_LIB$uppername\"
  9730. if test -n "$value"; then
  9731. if test "$value" = yes; then
  9732. eval value=\"\$LIB$uppername\"
  9733. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  9734. eval value=\"\$LTLIB$uppername\"
  9735. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  9736. else
  9737. :
  9738. fi
  9739. else
  9740. found_dir=
  9741. found_la=
  9742. found_so=
  9743. found_a=
  9744. if test $use_additional = yes; then
  9745. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  9746. found_dir="$additional_libdir"
  9747. found_so="$additional_libdir/lib$name.$shlibext"
  9748. if test -f "$additional_libdir/lib$name.la"; then
  9749. found_la="$additional_libdir/lib$name.la"
  9750. fi
  9751. else
  9752. if test -f "$additional_libdir/lib$name.$libext"; then
  9753. found_dir="$additional_libdir"
  9754. found_a="$additional_libdir/lib$name.$libext"
  9755. if test -f "$additional_libdir/lib$name.la"; then
  9756. found_la="$additional_libdir/lib$name.la"
  9757. fi
  9758. fi
  9759. fi
  9760. fi
  9761. if test "X$found_dir" = "X"; then
  9762. for x in $LDFLAGS $LTLIBINTL; do
  9763. acl_save_prefix="$prefix"
  9764. prefix="$acl_final_prefix"
  9765. acl_save_exec_prefix="$exec_prefix"
  9766. exec_prefix="$acl_final_exec_prefix"
  9767. eval x=\"$x\"
  9768. exec_prefix="$acl_save_exec_prefix"
  9769. prefix="$acl_save_prefix"
  9770. case "$x" in
  9771. -L*)
  9772. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9773. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  9774. found_dir="$dir"
  9775. found_so="$dir/lib$name.$shlibext"
  9776. if test -f "$dir/lib$name.la"; then
  9777. found_la="$dir/lib$name.la"
  9778. fi
  9779. else
  9780. if test -f "$dir/lib$name.$libext"; then
  9781. found_dir="$dir"
  9782. found_a="$dir/lib$name.$libext"
  9783. if test -f "$dir/lib$name.la"; then
  9784. found_la="$dir/lib$name.la"
  9785. fi
  9786. fi
  9787. fi
  9788. ;;
  9789. esac
  9790. if test "X$found_dir" != "X"; then
  9791. break
  9792. fi
  9793. done
  9794. fi
  9795. if test "X$found_dir" != "X"; then
  9796. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  9797. if test "X$found_so" != "X"; then
  9798. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  9799. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9800. else
  9801. haveit=
  9802. for x in $ltrpathdirs; do
  9803. if test "X$x" = "X$found_dir"; then
  9804. haveit=yes
  9805. break
  9806. fi
  9807. done
  9808. if test -z "$haveit"; then
  9809. ltrpathdirs="$ltrpathdirs $found_dir"
  9810. fi
  9811. if test "$hardcode_direct" = yes; then
  9812. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9813. else
  9814. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  9815. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9816. haveit=
  9817. for x in $rpathdirs; do
  9818. if test "X$x" = "X$found_dir"; then
  9819. haveit=yes
  9820. break
  9821. fi
  9822. done
  9823. if test -z "$haveit"; then
  9824. rpathdirs="$rpathdirs $found_dir"
  9825. fi
  9826. else
  9827. haveit=
  9828. for x in $LDFLAGS $LIBINTL; do
  9829. acl_save_prefix="$prefix"
  9830. prefix="$acl_final_prefix"
  9831. acl_save_exec_prefix="$exec_prefix"
  9832. exec_prefix="$acl_final_exec_prefix"
  9833. eval x=\"$x\"
  9834. exec_prefix="$acl_save_exec_prefix"
  9835. prefix="$acl_save_prefix"
  9836. if test "X$x" = "X-L$found_dir"; then
  9837. haveit=yes
  9838. break
  9839. fi
  9840. done
  9841. if test -z "$haveit"; then
  9842. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  9843. fi
  9844. if test "$hardcode_minus_L" != no; then
  9845. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9846. else
  9847. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  9848. fi
  9849. fi
  9850. fi
  9851. fi
  9852. else
  9853. if test "X$found_a" != "X"; then
  9854. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  9855. else
  9856. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  9857. fi
  9858. fi
  9859. additional_includedir=
  9860. case "$found_dir" in
  9861. */lib | */lib/)
  9862. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  9863. additional_includedir="$basedir/include"
  9864. ;;
  9865. esac
  9866. if test "X$additional_includedir" != "X"; then
  9867. if test "X$additional_includedir" != "X/usr/include"; then
  9868. haveit=
  9869. if test "X$additional_includedir" = "X/usr/local/include"; then
  9870. if test -n "$GCC"; then
  9871. case $host_os in
  9872. linux*) haveit=yes;;
  9873. esac
  9874. fi
  9875. fi
  9876. if test -z "$haveit"; then
  9877. for x in $CPPFLAGS $INCINTL; do
  9878. acl_save_prefix="$prefix"
  9879. prefix="$acl_final_prefix"
  9880. acl_save_exec_prefix="$exec_prefix"
  9881. exec_prefix="$acl_final_exec_prefix"
  9882. eval x=\"$x\"
  9883. exec_prefix="$acl_save_exec_prefix"
  9884. prefix="$acl_save_prefix"
  9885. if test "X$x" = "X-I$additional_includedir"; then
  9886. haveit=yes
  9887. break
  9888. fi
  9889. done
  9890. if test -z "$haveit"; then
  9891. if test -d "$additional_includedir"; then
  9892. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  9893. fi
  9894. fi
  9895. fi
  9896. fi
  9897. fi
  9898. if test -n "$found_la"; then
  9899. save_libdir="$libdir"
  9900. case "$found_la" in
  9901. */* | *\\*) . "$found_la" ;;
  9902. *) . "./$found_la" ;;
  9903. esac
  9904. libdir="$save_libdir"
  9905. for dep in $dependency_libs; do
  9906. case "$dep" in
  9907. -L*)
  9908. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9909. if test "X$additional_libdir" != "X/usr/lib"; then
  9910. haveit=
  9911. if test "X$additional_libdir" = "X/usr/local/lib"; then
  9912. if test -n "$GCC"; then
  9913. case $host_os in
  9914. linux*) haveit=yes;;
  9915. esac
  9916. fi
  9917. fi
  9918. if test -z "$haveit"; then
  9919. haveit=
  9920. for x in $LDFLAGS $LIBINTL; do
  9921. acl_save_prefix="$prefix"
  9922. prefix="$acl_final_prefix"
  9923. acl_save_exec_prefix="$exec_prefix"
  9924. exec_prefix="$acl_final_exec_prefix"
  9925. eval x=\"$x\"
  9926. exec_prefix="$acl_save_exec_prefix"
  9927. prefix="$acl_save_prefix"
  9928. if test "X$x" = "X-L$additional_libdir"; then
  9929. haveit=yes
  9930. break
  9931. fi
  9932. done
  9933. if test -z "$haveit"; then
  9934. if test -d "$additional_libdir"; then
  9935. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  9936. fi
  9937. fi
  9938. haveit=
  9939. for x in $LDFLAGS $LTLIBINTL; do
  9940. acl_save_prefix="$prefix"
  9941. prefix="$acl_final_prefix"
  9942. acl_save_exec_prefix="$exec_prefix"
  9943. exec_prefix="$acl_final_exec_prefix"
  9944. eval x=\"$x\"
  9945. exec_prefix="$acl_save_exec_prefix"
  9946. prefix="$acl_save_prefix"
  9947. if test "X$x" = "X-L$additional_libdir"; then
  9948. haveit=yes
  9949. break
  9950. fi
  9951. done
  9952. if test -z "$haveit"; then
  9953. if test -d "$additional_libdir"; then
  9954. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  9955. fi
  9956. fi
  9957. fi
  9958. fi
  9959. ;;
  9960. -R*)
  9961. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9962. if test "$enable_rpath" != no; then
  9963. haveit=
  9964. for x in $rpathdirs; do
  9965. if test "X$x" = "X$dir"; then
  9966. haveit=yes
  9967. break
  9968. fi
  9969. done
  9970. if test -z "$haveit"; then
  9971. rpathdirs="$rpathdirs $dir"
  9972. fi
  9973. haveit=
  9974. for x in $ltrpathdirs; do
  9975. if test "X$x" = "X$dir"; then
  9976. haveit=yes
  9977. break
  9978. fi
  9979. done
  9980. if test -z "$haveit"; then
  9981. ltrpathdirs="$ltrpathdirs $dir"
  9982. fi
  9983. fi
  9984. ;;
  9985. -l*)
  9986. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9987. ;;
  9988. *.la)
  9989. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9990. ;;
  9991. *)
  9992. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  9993. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  9994. ;;
  9995. esac
  9996. done
  9997. fi
  9998. else
  9999. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  10000. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  10001. fi
  10002. fi
  10003. fi
  10004. done
  10005. done
  10006. if test "X$rpathdirs" != "X"; then
  10007. if test -n "$hardcode_libdir_separator"; then
  10008. alldirs=
  10009. for found_dir in $rpathdirs; do
  10010. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  10011. done
  10012. acl_save_libdir="$libdir"
  10013. libdir="$alldirs"
  10014. eval flag=\"$hardcode_libdir_flag_spec\"
  10015. libdir="$acl_save_libdir"
  10016. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  10017. else
  10018. for found_dir in $rpathdirs; do
  10019. acl_save_libdir="$libdir"
  10020. libdir="$found_dir"
  10021. eval flag=\"$hardcode_libdir_flag_spec\"
  10022. libdir="$acl_save_libdir"
  10023. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  10024. done
  10025. fi
  10026. fi
  10027. if test "X$ltrpathdirs" != "X"; then
  10028. for found_dir in $ltrpathdirs; do
  10029. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  10030. done
  10031. fi
  10032. echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  10033. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
  10034. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  10035. echo $ECHO_N "(cached) $ECHO_C" >&6
  10036. else
  10037. gt_save_CPPFLAGS="$CPPFLAGS"
  10038. CPPFLAGS="$CPPFLAGS $INCINTL"
  10039. gt_save_LIBS="$LIBS"
  10040. LIBS="$LIBS $LIBINTL"
  10041. cat >conftest.$ac_ext <<_ACEOF
  10042. /* confdefs.h. */
  10043. _ACEOF
  10044. cat confdefs.h >>conftest.$ac_ext
  10045. cat >>conftest.$ac_ext <<_ACEOF
  10046. /* end confdefs.h. */
  10047. #include <libintl.h>
  10048. extern int _nl_msg_cat_cntr;
  10049. extern
  10050. #ifdef __cplusplus
  10051. "C"
  10052. #endif
  10053. const char *_nl_expand_alias ();
  10054. int
  10055. main ()
  10056. {
  10057. bindtextdomain ("", "");
  10058. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  10059. ;
  10060. return 0;
  10061. }
  10062. _ACEOF
  10063. rm -f conftest.$ac_objext conftest$ac_exeext
  10064. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10065. (eval $ac_link) 2>conftest.er1
  10066. ac_status=$?
  10067. grep -v '^ *+' conftest.er1 >conftest.err
  10068. rm -f conftest.er1
  10069. cat conftest.err >&5
  10070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10071. (exit $ac_status); } &&
  10072. { ac_try='test -z "$ac_cxx_werror_flag"
  10073. || test ! -s conftest.err'
  10074. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10075. (eval $ac_try) 2>&5
  10076. ac_status=$?
  10077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10078. (exit $ac_status); }; } &&
  10079. { ac_try='test -s conftest$ac_exeext'
  10080. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10081. (eval $ac_try) 2>&5
  10082. ac_status=$?
  10083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10084. (exit $ac_status); }; }; then
  10085. gt_cv_func_gnugettext1_libintl=yes
  10086. else
  10087. echo "$as_me: failed program was:" >&5
  10088. sed 's/^/| /' conftest.$ac_ext >&5
  10089. gt_cv_func_gnugettext1_libintl=no
  10090. fi
  10091. rm -f conftest.err conftest.$ac_objext \
  10092. conftest$ac_exeext conftest.$ac_ext
  10093. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  10094. LIBS="$LIBS $LIBICONV"
  10095. cat >conftest.$ac_ext <<_ACEOF
  10096. /* confdefs.h. */
  10097. _ACEOF
  10098. cat confdefs.h >>conftest.$ac_ext
  10099. cat >>conftest.$ac_ext <<_ACEOF
  10100. /* end confdefs.h. */
  10101. #include <libintl.h>
  10102. extern int _nl_msg_cat_cntr;
  10103. extern
  10104. #ifdef __cplusplus
  10105. "C"
  10106. #endif
  10107. const char *_nl_expand_alias ();
  10108. int
  10109. main ()
  10110. {
  10111. bindtextdomain ("", "");
  10112. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  10113. ;
  10114. return 0;
  10115. }
  10116. _ACEOF
  10117. rm -f conftest.$ac_objext conftest$ac_exeext
  10118. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10119. (eval $ac_link) 2>conftest.er1
  10120. ac_status=$?
  10121. grep -v '^ *+' conftest.er1 >conftest.err
  10122. rm -f conftest.er1
  10123. cat conftest.err >&5
  10124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10125. (exit $ac_status); } &&
  10126. { ac_try='test -z "$ac_cxx_werror_flag"
  10127. || test ! -s conftest.err'
  10128. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10129. (eval $ac_try) 2>&5
  10130. ac_status=$?
  10131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10132. (exit $ac_status); }; } &&
  10133. { ac_try='test -s conftest$ac_exeext'
  10134. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10135. (eval $ac_try) 2>&5
  10136. ac_status=$?
  10137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10138. (exit $ac_status); }; }; then
  10139. LIBINTL="$LIBINTL $LIBICONV"
  10140. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  10141. gt_cv_func_gnugettext1_libintl=yes
  10142. else
  10143. echo "$as_me: failed program was:" >&5
  10144. sed 's/^/| /' conftest.$ac_ext >&5
  10145. fi
  10146. rm -f conftest.err conftest.$ac_objext \
  10147. conftest$ac_exeext conftest.$ac_ext
  10148. fi
  10149. CPPFLAGS="$gt_save_CPPFLAGS"
  10150. LIBS="$gt_save_LIBS"
  10151. fi
  10152. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  10153. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
  10154. fi
  10155. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  10156. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  10157. && test "$PACKAGE" != gettext-runtime \
  10158. && test "$PACKAGE" != gettext-tools; }; then
  10159. gt_use_preinstalled_gnugettext=yes
  10160. else
  10161. LIBINTL=
  10162. LTLIBINTL=
  10163. INCINTL=
  10164. fi
  10165. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  10166. nls_cv_use_gnu_gettext=yes
  10167. fi
  10168. fi
  10169. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  10170. BUILD_INCLUDED_LIBINTL=yes
  10171. USE_INCLUDED_LIBINTL=yes
  10172. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  10173. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  10174. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  10175. fi
  10176. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  10177. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  10178. CATOBJEXT=.gmo
  10179. fi
  10180. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  10181. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  10182. cat >>confdefs.h <<\_ACEOF
  10183. #define ENABLE_NLS 1
  10184. _ACEOF
  10185. else
  10186. USE_NLS=no
  10187. fi
  10188. fi
  10189. echo "$as_me:$LINENO: checking whether to use NLS" >&5
  10190. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
  10191. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  10192. echo "${ECHO_T}$USE_NLS" >&6
  10193. if test "$USE_NLS" = "yes"; then
  10194. echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  10195. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
  10196. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  10197. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  10198. gt_source="external libintl"
  10199. else
  10200. gt_source="libc"
  10201. fi
  10202. else
  10203. gt_source="included intl directory"
  10204. fi
  10205. echo "$as_me:$LINENO: result: $gt_source" >&5
  10206. echo "${ECHO_T}$gt_source" >&6
  10207. fi
  10208. if test "$USE_NLS" = "yes"; then
  10209. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  10210. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  10211. echo "$as_me:$LINENO: checking how to link with libintl" >&5
  10212. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
  10213. echo "$as_me:$LINENO: result: $LIBINTL" >&5
  10214. echo "${ECHO_T}$LIBINTL" >&6
  10215. for element in $INCINTL; do
  10216. haveit=
  10217. for x in $CPPFLAGS; do
  10218. acl_save_prefix="$prefix"
  10219. prefix="$acl_final_prefix"
  10220. acl_save_exec_prefix="$exec_prefix"
  10221. exec_prefix="$acl_final_exec_prefix"
  10222. eval x=\"$x\"
  10223. exec_prefix="$acl_save_exec_prefix"
  10224. prefix="$acl_save_prefix"
  10225. if test "X$x" = "X$element"; then
  10226. haveit=yes
  10227. break
  10228. fi
  10229. done
  10230. if test -z "$haveit"; then
  10231. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  10232. fi
  10233. done
  10234. fi
  10235. cat >>confdefs.h <<\_ACEOF
  10236. #define HAVE_GETTEXT 1
  10237. _ACEOF
  10238. cat >>confdefs.h <<\_ACEOF
  10239. #define HAVE_DCGETTEXT 1
  10240. _ACEOF
  10241. fi
  10242. POSUB=po
  10243. fi
  10244. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  10245. BUILD_INCLUDED_LIBINTL=yes
  10246. fi
  10247. nls_cv_header_intl=
  10248. nls_cv_header_libgt=
  10249. DATADIRNAME=share
  10250. INSTOBJEXT=.mo
  10251. GENCAT=gencat
  10252. if test "$USE_INCLUDED_LIBINTL" = yes; then
  10253. INTLOBJS="\$(GETTOBJS)"
  10254. fi
  10255. INTL_LIBTOOL_SUFFIX_PREFIX=
  10256. INTLLIBS="$LIBINTL"
  10257. BOILERPLATE=boilerplate.mk
  10258. if (sh -c "make --version" 2>/dev/null | grep GNU 2>&1 >/dev/null); then
  10259. if sh -c "vncmkdepend" >/dev/null 2>&1; then
  10260. BOILERPLATE="$BOILERPLATE:depend.mk"
  10261. fi
  10262. fi
  10263. ac_config_files="$ac_config_files Makefile:Makefile.in:$BOILERPLATE intl/Makefile po/Makefile.in rdr/Makefile:rdr/Makefile.in:$BOILERPLATE network/Makefile:network/Makefile.in:$BOILERPLATE Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE rfb/Makefile:rfb/Makefile.in:$BOILERPLATE tx/Makefile:tx/Makefile.in:$BOILERPLATE x0vncserver/Makefile:x0vncserver/Makefile.in:$BOILERPLATE vncviewer_unix/Makefile:vncviewer_unix/Makefile.in:$BOILERPLATE vncconfig_unix/Makefile:vncconfig_unix/Makefile.in:$BOILERPLATE vncpasswd/Makefile:vncpasswd/Makefile.in:$BOILERPLATE"
  10264. cat >confcache <<\_ACEOF
  10265. # This file is a shell script that caches the results of configure
  10266. # tests run on this system so they can be shared between configure
  10267. # scripts and configure runs, see configure's option --config-cache.
  10268. # It is not useful on other systems. If it contains results you don't
  10269. # want to keep, you may remove or edit it.
  10270. #
  10271. # config.status only pays attention to the cache file if you give it
  10272. # the --recheck option to rerun configure.
  10273. #
  10274. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10275. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10276. # following values.
  10277. _ACEOF
  10278. # The following way of writing the cache mishandles newlines in values,
  10279. # but we know of no workaround that is simple, portable, and efficient.
  10280. # So, don't put newlines in cache variables' values.
  10281. # Ultrix sh set writes to stderr and can't be redirected directly,
  10282. # and sets the high bit in the cache file unless we assign to the vars.
  10283. {
  10284. (set) 2>&1 |
  10285. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10286. *ac_space=\ *)
  10287. # `set' does not quote correctly, so add quotes (double-quote
  10288. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10289. sed -n \
  10290. "s/'/'\\\\''/g;
  10291. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10292. ;;
  10293. *)
  10294. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10295. sed -n \
  10296. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10297. ;;
  10298. esac;
  10299. } |
  10300. sed '
  10301. t clear
  10302. : clear
  10303. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10304. t end
  10305. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10306. : end' >>confcache
  10307. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10308. if test -w $cache_file; then
  10309. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  10310. cat confcache >$cache_file
  10311. else
  10312. echo "not updating unwritable cache $cache_file"
  10313. fi
  10314. fi
  10315. rm -f confcache
  10316. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10317. # Let make expand exec_prefix.
  10318. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10319. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10320. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10321. # trailing colons and then remove the whole line if VPATH becomes empty
  10322. # (actually we leave an empty line to preserve line numbers).
  10323. if test "x$srcdir" = x.; then
  10324. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10325. s/:*\$(srcdir):*/:/;
  10326. s/:*\${srcdir}:*/:/;
  10327. s/:*@srcdir@:*/:/;
  10328. s/^\([^=]*=[ ]*\):*/\1/;
  10329. s/:*$//;
  10330. s/^[^=]*=[ ]*$//;
  10331. }'
  10332. fi
  10333. # Transform confdefs.h into DEFS.
  10334. # Protect against shell expansion while executing Makefile rules.
  10335. # Protect against Makefile macro expansion.
  10336. #
  10337. # If the first sed substitution is executed (which looks for macros that
  10338. # take arguments), then we branch to the quote section. Otherwise,
  10339. # look for a macro that doesn't take arguments.
  10340. cat >confdef2opt.sed <<\_ACEOF
  10341. t clear
  10342. : clear
  10343. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
  10344. t quote
  10345. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
  10346. t quote
  10347. d
  10348. : quote
  10349. s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
  10350. s,\[,\\&,g
  10351. s,\],\\&,g
  10352. s,\$,$$,g
  10353. p
  10354. _ACEOF
  10355. # We use echo to avoid assuming a particular line-breaking character.
  10356. # The extra dot is to prevent the shell from consuming trailing
  10357. # line-breaks from the sub-command output. A line-break within
  10358. # single-quotes doesn't work because, if this script is created in a
  10359. # platform that uses two characters for line-breaks (e.g., DOS), tr
  10360. # would break.
  10361. ac_LF_and_DOT=`echo; echo .`
  10362. DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
  10363. rm -f confdef2opt.sed
  10364. ac_libobjs=
  10365. ac_ltlibobjs=
  10366. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10367. # 1. Remove the extension, and $U if already installed.
  10368. ac_i=`echo "$ac_i" |
  10369. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10370. # 2. Add them.
  10371. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10372. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10373. done
  10374. LIBOBJS=$ac_libobjs
  10375. LTLIBOBJS=$ac_ltlibobjs
  10376. : ${CONFIG_STATUS=./config.status}
  10377. ac_clean_files_save=$ac_clean_files
  10378. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10379. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10380. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10381. cat >$CONFIG_STATUS <<_ACEOF
  10382. #! $SHELL
  10383. # Generated by $as_me.
  10384. # Run this file to recreate the current configuration.
  10385. # Compiler output produced by configure, useful for debugging
  10386. # configure, is in config.log if it exists.
  10387. debug=false
  10388. ac_cs_recheck=false
  10389. ac_cs_silent=false
  10390. SHELL=\${CONFIG_SHELL-$SHELL}
  10391. _ACEOF
  10392. cat >>$CONFIG_STATUS <<\_ACEOF
  10393. ## --------------------- ##
  10394. ## M4sh Initialization. ##
  10395. ## --------------------- ##
  10396. # Be Bourne compatible
  10397. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10398. emulate sh
  10399. NULLCMD=:
  10400. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10401. # is contrary to our usage. Disable this feature.
  10402. alias -g '${1+"$@"}'='"$@"'
  10403. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10404. set -o posix
  10405. fi
  10406. DUALCASE=1; export DUALCASE # for MKS sh
  10407. # Support unset when possible.
  10408. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10409. as_unset=unset
  10410. else
  10411. as_unset=false
  10412. fi
  10413. # Work around bugs in pre-3.0 UWIN ksh.
  10414. $as_unset ENV MAIL MAILPATH
  10415. PS1='$ '
  10416. PS2='> '
  10417. PS4='+ '
  10418. # NLS nuisances.
  10419. for as_var in \
  10420. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10421. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10422. LC_TELEPHONE LC_TIME
  10423. do
  10424. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10425. eval $as_var=C; export $as_var
  10426. else
  10427. $as_unset $as_var
  10428. fi
  10429. done
  10430. # Required to use basename.
  10431. if expr a : '\(a\)' >/dev/null 2>&1; then
  10432. as_expr=expr
  10433. else
  10434. as_expr=false
  10435. fi
  10436. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  10437. as_basename=basename
  10438. else
  10439. as_basename=false
  10440. fi
  10441. # Name of the executable.
  10442. as_me=`$as_basename "$0" ||
  10443. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10444. X"$0" : 'X\(//\)$' \| \
  10445. X"$0" : 'X\(/\)$' \| \
  10446. . : '\(.\)' 2>/dev/null ||
  10447. echo X/"$0" |
  10448. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  10449. /^X\/\(\/\/\)$/{ s//\1/; q; }
  10450. /^X\/\(\/\).*/{ s//\1/; q; }
  10451. s/.*/./; q'`
  10452. # PATH needs CR, and LINENO needs CR and PATH.
  10453. # Avoid depending upon Character Ranges.
  10454. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10455. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10456. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10457. as_cr_digits='0123456789'
  10458. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10459. # The user is always right.
  10460. if test "${PATH_SEPARATOR+set}" != set; then
  10461. echo "#! /bin/sh" >conf$$.sh
  10462. echo "exit 0" >>conf$$.sh
  10463. chmod +x conf$$.sh
  10464. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10465. PATH_SEPARATOR=';'
  10466. else
  10467. PATH_SEPARATOR=:
  10468. fi
  10469. rm -f conf$$.sh
  10470. fi
  10471. as_lineno_1=$LINENO
  10472. as_lineno_2=$LINENO
  10473. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10474. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10475. test "x$as_lineno_3" = "x$as_lineno_2" || {
  10476. # Find who we are. Look in the path if we contain no path at all
  10477. # relative or not.
  10478. case $0 in
  10479. *[\\/]* ) as_myself=$0 ;;
  10480. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10481. for as_dir in $PATH
  10482. do
  10483. IFS=$as_save_IFS
  10484. test -z "$as_dir" && as_dir=.
  10485. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10486. done
  10487. ;;
  10488. esac
  10489. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10490. # in which case we are not to be found in the path.
  10491. if test "x$as_myself" = x; then
  10492. as_myself=$0
  10493. fi
  10494. if test ! -f "$as_myself"; then
  10495. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  10496. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  10497. { (exit 1); exit 1; }; }
  10498. fi
  10499. case $CONFIG_SHELL in
  10500. '')
  10501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10502. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  10503. do
  10504. IFS=$as_save_IFS
  10505. test -z "$as_dir" && as_dir=.
  10506. for as_base in sh bash ksh sh5; do
  10507. case $as_dir in
  10508. /*)
  10509. if ("$as_dir/$as_base" -c '
  10510. as_lineno_1=$LINENO
  10511. as_lineno_2=$LINENO
  10512. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10513. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10514. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  10515. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  10516. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  10517. CONFIG_SHELL=$as_dir/$as_base
  10518. export CONFIG_SHELL
  10519. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  10520. fi;;
  10521. esac
  10522. done
  10523. done
  10524. ;;
  10525. esac
  10526. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10527. # uniformly replaced by the line number. The first 'sed' inserts a
  10528. # line-number line before each line; the second 'sed' does the real
  10529. # work. The second script uses 'N' to pair each line-number line
  10530. # with the numbered line, and appends trailing '-' during
  10531. # substitution so that $LINENO is not a special case at line end.
  10532. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10533. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  10534. sed '=' <$as_myself |
  10535. sed '
  10536. N
  10537. s,$,-,
  10538. : loop
  10539. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  10540. t loop
  10541. s,-$,,
  10542. s,^['$as_cr_digits']*\n,,
  10543. ' >$as_me.lineno &&
  10544. chmod +x $as_me.lineno ||
  10545. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  10546. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  10547. { (exit 1); exit 1; }; }
  10548. # Don't try to exec as it changes $[0], causing all sort of problems
  10549. # (the dirname of $[0] is not the place where we might find the
  10550. # original and so on. Autoconf is especially sensible to this).
  10551. . ./$as_me.lineno
  10552. # Exit status is that of the last command.
  10553. exit
  10554. }
  10555. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  10556. *c*,-n*) ECHO_N= ECHO_C='
  10557. ' ECHO_T=' ' ;;
  10558. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  10559. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  10560. esac
  10561. if expr a : '\(a\)' >/dev/null 2>&1; then
  10562. as_expr=expr
  10563. else
  10564. as_expr=false
  10565. fi
  10566. rm -f conf$$ conf$$.exe conf$$.file
  10567. echo >conf$$.file
  10568. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10569. # We could just check for DJGPP; but this test a) works b) is more generic
  10570. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  10571. if test -f conf$$.exe; then
  10572. # Don't use ln at all; we don't have any links
  10573. as_ln_s='cp -p'
  10574. else
  10575. as_ln_s='ln -s'
  10576. fi
  10577. elif ln conf$$.file conf$$ 2>/dev/null; then
  10578. as_ln_s=ln
  10579. else
  10580. as_ln_s='cp -p'
  10581. fi
  10582. rm -f conf$$ conf$$.exe conf$$.file
  10583. if mkdir -p . 2>/dev/null; then
  10584. as_mkdir_p=:
  10585. else
  10586. test -d ./-p && rmdir ./-p
  10587. as_mkdir_p=false
  10588. fi
  10589. as_executable_p="test -f"
  10590. # Sed expression to map a string onto a valid CPP name.
  10591. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10592. # Sed expression to map a string onto a valid variable name.
  10593. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10594. # IFS
  10595. # We need space, tab and new line, in precisely that order.
  10596. as_nl='
  10597. '
  10598. IFS=" $as_nl"
  10599. # CDPATH.
  10600. $as_unset CDPATH
  10601. exec 6>&1
  10602. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  10603. # report actual input values of CONFIG_FILES etc. instead of their
  10604. # values after options handling. Logging --version etc. is OK.
  10605. exec 5>>config.log
  10606. {
  10607. echo
  10608. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10609. ## Running $as_me. ##
  10610. _ASBOX
  10611. } >&5
  10612. cat >&5 <<_CSEOF
  10613. This file was extended by $as_me, which was
  10614. generated by GNU Autoconf 2.59. Invocation command line was
  10615. CONFIG_FILES = $CONFIG_FILES
  10616. CONFIG_HEADERS = $CONFIG_HEADERS
  10617. CONFIG_LINKS = $CONFIG_LINKS
  10618. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10619. $ $0 $@
  10620. _CSEOF
  10621. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  10622. echo >&5
  10623. _ACEOF
  10624. # Files that config.status was made for.
  10625. if test -n "$ac_config_files"; then
  10626. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  10627. fi
  10628. if test -n "$ac_config_headers"; then
  10629. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  10630. fi
  10631. if test -n "$ac_config_links"; then
  10632. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  10633. fi
  10634. if test -n "$ac_config_commands"; then
  10635. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  10636. fi
  10637. cat >>$CONFIG_STATUS <<\_ACEOF
  10638. ac_cs_usage="\
  10639. \`$as_me' instantiates files from templates according to the
  10640. current configuration.
  10641. Usage: $0 [OPTIONS] [FILE]...
  10642. -h, --help print this help, then exit
  10643. -V, --version print version number, then exit
  10644. -q, --quiet do not print progress messages
  10645. -d, --debug don't remove temporary files
  10646. --recheck update $as_me by reconfiguring in the same conditions
  10647. --file=FILE[:TEMPLATE]
  10648. instantiate the configuration file FILE
  10649. Configuration files:
  10650. $config_files
  10651. Configuration commands:
  10652. $config_commands
  10653. Report bugs to <bug-autoconf@gnu.org>."
  10654. _ACEOF
  10655. cat >>$CONFIG_STATUS <<_ACEOF
  10656. ac_cs_version="\\
  10657. config.status
  10658. configured by $0, generated by GNU Autoconf 2.59,
  10659. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  10660. Copyright (C) 2003 Free Software Foundation, Inc.
  10661. This config.status script is free software; the Free Software Foundation
  10662. gives unlimited permission to copy, distribute and modify it."
  10663. srcdir=$srcdir
  10664. INSTALL="$INSTALL"
  10665. _ACEOF
  10666. cat >>$CONFIG_STATUS <<\_ACEOF
  10667. # If no file are specified by the user, then we need to provide default
  10668. # value. By we need to know if files were specified by the user.
  10669. ac_need_defaults=:
  10670. while test $# != 0
  10671. do
  10672. case $1 in
  10673. --*=*)
  10674. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  10675. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  10676. ac_shift=:
  10677. ;;
  10678. -*)
  10679. ac_option=$1
  10680. ac_optarg=$2
  10681. ac_shift=shift
  10682. ;;
  10683. *) # This is not an option, so the user has probably given explicit
  10684. # arguments.
  10685. ac_option=$1
  10686. ac_need_defaults=false;;
  10687. esac
  10688. case $ac_option in
  10689. # Handling of the options.
  10690. _ACEOF
  10691. cat >>$CONFIG_STATUS <<\_ACEOF
  10692. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10693. ac_cs_recheck=: ;;
  10694. --version | --vers* | -V )
  10695. echo "$ac_cs_version"; exit 0 ;;
  10696. --he | --h)
  10697. # Conflict between --help and --header
  10698. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  10699. Try \`$0 --help' for more information." >&5
  10700. echo "$as_me: error: ambiguous option: $1
  10701. Try \`$0 --help' for more information." >&2;}
  10702. { (exit 1); exit 1; }; };;
  10703. --help | --hel | -h )
  10704. echo "$ac_cs_usage"; exit 0 ;;
  10705. --debug | --d* | -d )
  10706. debug=: ;;
  10707. --file | --fil | --fi | --f )
  10708. $ac_shift
  10709. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  10710. ac_need_defaults=false;;
  10711. --header | --heade | --head | --hea )
  10712. $ac_shift
  10713. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  10714. ac_need_defaults=false;;
  10715. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10716. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10717. ac_cs_silent=: ;;
  10718. # This is an error.
  10719. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  10720. Try \`$0 --help' for more information." >&5
  10721. echo "$as_me: error: unrecognized option: $1
  10722. Try \`$0 --help' for more information." >&2;}
  10723. { (exit 1); exit 1; }; } ;;
  10724. *) ac_config_targets="$ac_config_targets $1" ;;
  10725. esac
  10726. shift
  10727. done
  10728. ac_configure_extra_args=
  10729. if $ac_cs_silent; then
  10730. exec 6>/dev/null
  10731. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10732. fi
  10733. _ACEOF
  10734. cat >>$CONFIG_STATUS <<_ACEOF
  10735. if \$ac_cs_recheck; then
  10736. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  10737. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10738. fi
  10739. _ACEOF
  10740. cat >>$CONFIG_STATUS <<_ACEOF
  10741. #
  10742. # INIT-COMMANDS section.
  10743. #
  10744. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  10745. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  10746. # from automake.
  10747. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  10748. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  10749. LINGUAS="${LINGUAS-%UNSET%}"
  10750. _ACEOF
  10751. cat >>$CONFIG_STATUS <<\_ACEOF
  10752. for ac_config_target in $ac_config_targets
  10753. do
  10754. case "$ac_config_target" in
  10755. # Handling of arguments.
  10756. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:$BOILERPLATE" ;;
  10757. "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  10758. "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  10759. "rdr/Makefile" ) CONFIG_FILES="$CONFIG_FILES rdr/Makefile:rdr/Makefile.in:$BOILERPLATE" ;;
  10760. "network/Makefile" ) CONFIG_FILES="$CONFIG_FILES network/Makefile:network/Makefile.in:$BOILERPLATE" ;;
  10761. "Xregion/Makefile" ) CONFIG_FILES="$CONFIG_FILES Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE" ;;
  10762. "rfb/Makefile" ) CONFIG_FILES="$CONFIG_FILES rfb/Makefile:rfb/Makefile.in:$BOILERPLATE" ;;
  10763. "tx/Makefile" ) CONFIG_FILES="$CONFIG_FILES tx/Makefile:tx/Makefile.in:$BOILERPLATE" ;;
  10764. "x0vncserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES x0vncserver/Makefile:x0vncserver/Makefile.in:$BOILERPLATE" ;;
  10765. "vncviewer_unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncviewer_unix/Makefile:vncviewer_unix/Makefile.in:$BOILERPLATE" ;;
  10766. "vncconfig_unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncconfig_unix/Makefile:vncconfig_unix/Makefile.in:$BOILERPLATE" ;;
  10767. "vncpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncpasswd/Makefile:vncpasswd/Makefile.in:$BOILERPLATE" ;;
  10768. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  10769. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10770. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10771. { (exit 1); exit 1; }; };;
  10772. esac
  10773. done
  10774. # If the user did not use the arguments to specify the items to instantiate,
  10775. # then the envvar interface is used. Set only those that are not.
  10776. # We use the long form for the default assignment because of an extremely
  10777. # bizarre bug on SunOS 4.1.3.
  10778. if $ac_need_defaults; then
  10779. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10780. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10781. fi
  10782. # Have a temporary directory for convenience. Make it in the build tree
  10783. # simply because there is no reason to put it here, and in addition,
  10784. # creating and moving files from /tmp can sometimes cause problems.
  10785. # Create a temporary directory, and hook for its removal unless debugging.
  10786. $debug ||
  10787. {
  10788. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  10789. trap '{ (exit 1); exit 1; }' 1 2 13 15
  10790. }
  10791. # Create a (secure) tmp directory for tmp files.
  10792. {
  10793. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  10794. test -n "$tmp" && test -d "$tmp"
  10795. } ||
  10796. {
  10797. tmp=./confstat$$-$RANDOM
  10798. (umask 077 && mkdir $tmp)
  10799. } ||
  10800. {
  10801. echo "$me: cannot create a temporary directory in ." >&2
  10802. { (exit 1); exit 1; }
  10803. }
  10804. _ACEOF
  10805. cat >>$CONFIG_STATUS <<_ACEOF
  10806. #
  10807. # CONFIG_FILES section.
  10808. #
  10809. # No need to generate the scripts if there are no CONFIG_FILES.
  10810. # This happens for instance when ./config.status config.h
  10811. if test -n "\$CONFIG_FILES"; then
  10812. # Protect against being on the right side of a sed subst in config.status.
  10813. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  10814. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  10815. s,@SHELL@,$SHELL,;t t
  10816. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  10817. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  10818. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  10819. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  10820. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  10821. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  10822. s,@exec_prefix@,$exec_prefix,;t t
  10823. s,@prefix@,$prefix,;t t
  10824. s,@program_transform_name@,$program_transform_name,;t t
  10825. s,@bindir@,$bindir,;t t
  10826. s,@sbindir@,$sbindir,;t t
  10827. s,@libexecdir@,$libexecdir,;t t
  10828. s,@datadir@,$datadir,;t t
  10829. s,@sysconfdir@,$sysconfdir,;t t
  10830. s,@sharedstatedir@,$sharedstatedir,;t t
  10831. s,@localstatedir@,$localstatedir,;t t
  10832. s,@libdir@,$libdir,;t t
  10833. s,@includedir@,$includedir,;t t
  10834. s,@oldincludedir@,$oldincludedir,;t t
  10835. s,@infodir@,$infodir,;t t
  10836. s,@mandir@,$mandir,;t t
  10837. s,@build_alias@,$build_alias,;t t
  10838. s,@host_alias@,$host_alias,;t t
  10839. s,@target_alias@,$target_alias,;t t
  10840. s,@DEFS@,$DEFS,;t t
  10841. s,@ECHO_C@,$ECHO_C,;t t
  10842. s,@ECHO_N@,$ECHO_N,;t t
  10843. s,@ECHO_T@,$ECHO_T,;t t
  10844. s,@LIBS@,$LIBS,;t t
  10845. s,@PACKAGE@,$PACKAGE,;t t
  10846. s,@VERSION@,$VERSION,;t t
  10847. s,@CC@,$CC,;t t
  10848. s,@CFLAGS@,$CFLAGS,;t t
  10849. s,@LDFLAGS@,$LDFLAGS,;t t
  10850. s,@CPPFLAGS@,$CPPFLAGS,;t t
  10851. s,@ac_ct_CC@,$ac_ct_CC,;t t
  10852. s,@EXEEXT@,$EXEEXT,;t t
  10853. s,@OBJEXT@,$OBJEXT,;t t
  10854. s,@CXX@,$CXX,;t t
  10855. s,@CXXFLAGS@,$CXXFLAGS,;t t
  10856. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  10857. s,@RANLIB@,$RANLIB,;t t
  10858. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  10859. s,@SET_MAKE@,$SET_MAKE,;t t
  10860. s,@MITSHM_CPPFLAGS@,$MITSHM_CPPFLAGS,;t t
  10861. s,@CXXCPP@,$CXXCPP,;t t
  10862. s,@X_CFLAGS@,$X_CFLAGS,;t t
  10863. s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
  10864. s,@X_LIBS@,$X_LIBS,;t t
  10865. s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
  10866. s,@ZLIB_DIR@,$ZLIB_DIR,;t t
  10867. s,@ZLIB_INCLUDE@,$ZLIB_INCLUDE,;t t
  10868. s,@ZLIB_LIB@,$ZLIB_LIB,;t t
  10869. s,@JPEG_DIR@,$JPEG_DIR,;t t
  10870. s,@JPEG_INCLUDE@,$JPEG_INCLUDE,;t t
  10871. s,@JPEG_LIB@,$JPEG_LIB,;t t
  10872. s,@VSNPRINTF_DEFINE@,$VSNPRINTF_DEFINE,;t t
  10873. s,@SOCKLEN_T_DEFINE@,$SOCKLEN_T_DEFINE,;t t
  10874. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  10875. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  10876. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  10877. s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
  10878. s,@USE_NLS@,$USE_NLS,;t t
  10879. s,@MSGFMT@,$MSGFMT,;t t
  10880. s,@GMSGFMT@,$GMSGFMT,;t t
  10881. s,@XGETTEXT@,$XGETTEXT,;t t
  10882. s,@MSGMERGE@,$MSGMERGE,;t t
  10883. s,@build@,$build,;t t
  10884. s,@build_cpu@,$build_cpu,;t t
  10885. s,@build_vendor@,$build_vendor,;t t
  10886. s,@build_os@,$build_os,;t t
  10887. s,@host@,$host,;t t
  10888. s,@host_cpu@,$host_cpu,;t t
  10889. s,@host_vendor@,$host_vendor,;t t
  10890. s,@host_os@,$host_os,;t t
  10891. s,@EGREP@,$EGREP,;t t
  10892. s,@ALLOCA@,$ALLOCA,;t t
  10893. s,@GLIBC21@,$GLIBC21,;t t
  10894. s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
  10895. s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
  10896. s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
  10897. s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
  10898. s,@LIBICONV@,$LIBICONV,;t t
  10899. s,@LTLIBICONV@,$LTLIBICONV,;t t
  10900. s,@INTLBISON@,$INTLBISON,;t t
  10901. s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
  10902. s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
  10903. s,@CATOBJEXT@,$CATOBJEXT,;t t
  10904. s,@DATADIRNAME@,$DATADIRNAME,;t t
  10905. s,@INSTOBJEXT@,$INSTOBJEXT,;t t
  10906. s,@GENCAT@,$GENCAT,;t t
  10907. s,@INTLOBJS@,$INTLOBJS,;t t
  10908. s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
  10909. s,@INTLLIBS@,$INTLLIBS,;t t
  10910. s,@LIBINTL@,$LIBINTL,;t t
  10911. s,@LTLIBINTL@,$LTLIBINTL,;t t
  10912. s,@POSUB@,$POSUB,;t t
  10913. s,@LIBOBJS@,$LIBOBJS,;t t
  10914. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  10915. CEOF
  10916. _ACEOF
  10917. cat >>$CONFIG_STATUS <<\_ACEOF
  10918. # Split the substitutions into bite-sized pieces for seds with
  10919. # small command number limits, like on Digital OSF/1 and HP-UX.
  10920. ac_max_sed_lines=48
  10921. ac_sed_frag=1 # Number of current file.
  10922. ac_beg=1 # First line for current file.
  10923. ac_end=$ac_max_sed_lines # Line after last line for current file.
  10924. ac_more_lines=:
  10925. ac_sed_cmds=
  10926. while $ac_more_lines; do
  10927. if test $ac_beg -gt 1; then
  10928. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10929. else
  10930. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10931. fi
  10932. if test ! -s $tmp/subs.frag; then
  10933. ac_more_lines=false
  10934. else
  10935. # The purpose of the label and of the branching condition is to
  10936. # speed up the sed processing (if there are no `@' at all, there
  10937. # is no need to browse any of the substitutions).
  10938. # These are the two extra sed commands mentioned above.
  10939. (echo ':t
  10940. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  10941. if test -z "$ac_sed_cmds"; then
  10942. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  10943. else
  10944. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  10945. fi
  10946. ac_sed_frag=`expr $ac_sed_frag + 1`
  10947. ac_beg=$ac_end
  10948. ac_end=`expr $ac_end + $ac_max_sed_lines`
  10949. fi
  10950. done
  10951. if test -z "$ac_sed_cmds"; then
  10952. ac_sed_cmds=cat
  10953. fi
  10954. fi # test -n "$CONFIG_FILES"
  10955. _ACEOF
  10956. cat >>$CONFIG_STATUS <<\_ACEOF
  10957. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  10958. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10959. case $ac_file in
  10960. - | *:- | *:-:* ) # input from stdin
  10961. cat >$tmp/stdin
  10962. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10963. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10964. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10965. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10966. * ) ac_file_in=$ac_file.in ;;
  10967. esac
  10968. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  10969. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10970. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10971. X"$ac_file" : 'X\(//\)[^/]' \| \
  10972. X"$ac_file" : 'X\(//\)$' \| \
  10973. X"$ac_file" : 'X\(/\)' \| \
  10974. . : '\(.\)' 2>/dev/null ||
  10975. echo X"$ac_file" |
  10976. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10977. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10978. /^X\(\/\/\)$/{ s//\1/; q; }
  10979. /^X\(\/\).*/{ s//\1/; q; }
  10980. s/.*/./; q'`
  10981. { if $as_mkdir_p; then
  10982. mkdir -p "$ac_dir"
  10983. else
  10984. as_dir="$ac_dir"
  10985. as_dirs=
  10986. while test ! -d "$as_dir"; do
  10987. as_dirs="$as_dir $as_dirs"
  10988. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10989. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10990. X"$as_dir" : 'X\(//\)[^/]' \| \
  10991. X"$as_dir" : 'X\(//\)$' \| \
  10992. X"$as_dir" : 'X\(/\)' \| \
  10993. . : '\(.\)' 2>/dev/null ||
  10994. echo X"$as_dir" |
  10995. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10996. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10997. /^X\(\/\/\)$/{ s//\1/; q; }
  10998. /^X\(\/\).*/{ s//\1/; q; }
  10999. s/.*/./; q'`
  11000. done
  11001. test ! -n "$as_dirs" || mkdir $as_dirs
  11002. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11003. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11004. { (exit 1); exit 1; }; }; }
  11005. ac_builddir=.
  11006. if test "$ac_dir" != .; then
  11007. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11008. # A "../" for each directory in $ac_dir_suffix.
  11009. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11010. else
  11011. ac_dir_suffix= ac_top_builddir=
  11012. fi
  11013. case $srcdir in
  11014. .) # No --srcdir option. We are building in place.
  11015. ac_srcdir=.
  11016. if test -z "$ac_top_builddir"; then
  11017. ac_top_srcdir=.
  11018. else
  11019. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11020. fi ;;
  11021. [\\/]* | ?:[\\/]* ) # Absolute path.
  11022. ac_srcdir=$srcdir$ac_dir_suffix;
  11023. ac_top_srcdir=$srcdir ;;
  11024. *) # Relative path.
  11025. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11026. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11027. esac
  11028. # Do not use `cd foo && pwd` to compute absolute paths, because
  11029. # the directories may not exist.
  11030. case `pwd` in
  11031. .) ac_abs_builddir="$ac_dir";;
  11032. *)
  11033. case "$ac_dir" in
  11034. .) ac_abs_builddir=`pwd`;;
  11035. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11036. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11037. esac;;
  11038. esac
  11039. case $ac_abs_builddir in
  11040. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11041. *)
  11042. case ${ac_top_builddir}. in
  11043. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11044. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11045. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11046. esac;;
  11047. esac
  11048. case $ac_abs_builddir in
  11049. .) ac_abs_srcdir=$ac_srcdir;;
  11050. *)
  11051. case $ac_srcdir in
  11052. .) ac_abs_srcdir=$ac_abs_builddir;;
  11053. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11054. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11055. esac;;
  11056. esac
  11057. case $ac_abs_builddir in
  11058. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11059. *)
  11060. case $ac_top_srcdir in
  11061. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11062. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11063. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11064. esac;;
  11065. esac
  11066. case $INSTALL in
  11067. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11068. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  11069. esac
  11070. if test x"$ac_file" != x-; then
  11071. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11072. echo "$as_me: creating $ac_file" >&6;}
  11073. rm -f "$ac_file"
  11074. fi
  11075. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11076. # use $as_me), people would be surprised to read:
  11077. # /* config.h. Generated by config.status. */
  11078. if test x"$ac_file" = x-; then
  11079. configure_input=
  11080. else
  11081. configure_input="$ac_file. "
  11082. fi
  11083. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11084. sed 's,.*/,,'` by configure."
  11085. # First look for the input files in the build tree, otherwise in the
  11086. # src tree.
  11087. ac_file_inputs=`IFS=:
  11088. for f in $ac_file_in; do
  11089. case $f in
  11090. -) echo $tmp/stdin ;;
  11091. [\\/$]*)
  11092. # Absolute (can't be DOS-style, as IFS=:)
  11093. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11094. echo "$as_me: error: cannot find input file: $f" >&2;}
  11095. { (exit 1); exit 1; }; }
  11096. echo "$f";;
  11097. *) # Relative
  11098. if test -f "$f"; then
  11099. # Build tree
  11100. echo "$f"
  11101. elif test -f "$srcdir/$f"; then
  11102. # Source tree
  11103. echo "$srcdir/$f"
  11104. else
  11105. # /dev/null tree
  11106. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11107. echo "$as_me: error: cannot find input file: $f" >&2;}
  11108. { (exit 1); exit 1; }; }
  11109. fi;;
  11110. esac
  11111. done` || { (exit 1); exit 1; }
  11112. _ACEOF
  11113. cat >>$CONFIG_STATUS <<_ACEOF
  11114. sed "$ac_vpsub
  11115. $extrasub
  11116. _ACEOF
  11117. cat >>$CONFIG_STATUS <<\_ACEOF
  11118. :t
  11119. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11120. s,@configure_input@,$configure_input,;t t
  11121. s,@srcdir@,$ac_srcdir,;t t
  11122. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11123. s,@top_srcdir@,$ac_top_srcdir,;t t
  11124. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11125. s,@builddir@,$ac_builddir,;t t
  11126. s,@abs_builddir@,$ac_abs_builddir,;t t
  11127. s,@top_builddir@,$ac_top_builddir,;t t
  11128. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11129. s,@INSTALL@,$ac_INSTALL,;t t
  11130. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11131. rm -f $tmp/stdin
  11132. if test x"$ac_file" != x-; then
  11133. mv $tmp/out $ac_file
  11134. else
  11135. cat $tmp/out
  11136. rm -f $tmp/out
  11137. fi
  11138. done
  11139. _ACEOF
  11140. cat >>$CONFIG_STATUS <<\_ACEOF
  11141. #
  11142. # CONFIG_COMMANDS section.
  11143. #
  11144. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  11145. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  11146. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11147. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  11148. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11149. X"$ac_dest" : 'X\(//\)[^/]' \| \
  11150. X"$ac_dest" : 'X\(//\)$' \| \
  11151. X"$ac_dest" : 'X\(/\)' \| \
  11152. . : '\(.\)' 2>/dev/null ||
  11153. echo X"$ac_dest" |
  11154. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11155. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11156. /^X\(\/\/\)$/{ s//\1/; q; }
  11157. /^X\(\/\).*/{ s//\1/; q; }
  11158. s/.*/./; q'`
  11159. { if $as_mkdir_p; then
  11160. mkdir -p "$ac_dir"
  11161. else
  11162. as_dir="$ac_dir"
  11163. as_dirs=
  11164. while test ! -d "$as_dir"; do
  11165. as_dirs="$as_dir $as_dirs"
  11166. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11167. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11168. X"$as_dir" : 'X\(//\)[^/]' \| \
  11169. X"$as_dir" : 'X\(//\)$' \| \
  11170. X"$as_dir" : 'X\(/\)' \| \
  11171. . : '\(.\)' 2>/dev/null ||
  11172. echo X"$as_dir" |
  11173. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11174. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11175. /^X\(\/\/\)$/{ s//\1/; q; }
  11176. /^X\(\/\).*/{ s//\1/; q; }
  11177. s/.*/./; q'`
  11178. done
  11179. test ! -n "$as_dirs" || mkdir $as_dirs
  11180. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11181. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11182. { (exit 1); exit 1; }; }; }
  11183. ac_builddir=.
  11184. if test "$ac_dir" != .; then
  11185. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11186. # A "../" for each directory in $ac_dir_suffix.
  11187. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11188. else
  11189. ac_dir_suffix= ac_top_builddir=
  11190. fi
  11191. case $srcdir in
  11192. .) # No --srcdir option. We are building in place.
  11193. ac_srcdir=.
  11194. if test -z "$ac_top_builddir"; then
  11195. ac_top_srcdir=.
  11196. else
  11197. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11198. fi ;;
  11199. [\\/]* | ?:[\\/]* ) # Absolute path.
  11200. ac_srcdir=$srcdir$ac_dir_suffix;
  11201. ac_top_srcdir=$srcdir ;;
  11202. *) # Relative path.
  11203. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11204. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11205. esac
  11206. # Do not use `cd foo && pwd` to compute absolute paths, because
  11207. # the directories may not exist.
  11208. case `pwd` in
  11209. .) ac_abs_builddir="$ac_dir";;
  11210. *)
  11211. case "$ac_dir" in
  11212. .) ac_abs_builddir=`pwd`;;
  11213. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11214. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11215. esac;;
  11216. esac
  11217. case $ac_abs_builddir in
  11218. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11219. *)
  11220. case ${ac_top_builddir}. in
  11221. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11222. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11223. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11224. esac;;
  11225. esac
  11226. case $ac_abs_builddir in
  11227. .) ac_abs_srcdir=$ac_srcdir;;
  11228. *)
  11229. case $ac_srcdir in
  11230. .) ac_abs_srcdir=$ac_abs_builddir;;
  11231. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11232. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11233. esac;;
  11234. esac
  11235. case $ac_abs_builddir in
  11236. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11237. *)
  11238. case $ac_top_srcdir in
  11239. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11240. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11241. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11242. esac;;
  11243. esac
  11244. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  11245. echo "$as_me: executing $ac_dest commands" >&6;}
  11246. case $ac_dest in
  11247. default-1 )
  11248. for ac_file in $CONFIG_FILES; do
  11249. # Support "outfile[:infile[:infile...]]"
  11250. case "$ac_file" in
  11251. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11252. esac
  11253. # PO directories have a Makefile.in generated from Makefile.in.in.
  11254. case "$ac_file" in */Makefile.in)
  11255. # Adjust a relative srcdir.
  11256. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  11257. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  11258. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  11259. # In autoconf-2.13 it is called $ac_given_srcdir.
  11260. # In autoconf-2.50 it is called $srcdir.
  11261. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  11262. case "$ac_given_srcdir" in
  11263. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  11264. /*) top_srcdir="$ac_given_srcdir" ;;
  11265. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11266. esac
  11267. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  11268. rm -f "$ac_dir/POTFILES"
  11269. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  11270. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  11271. POMAKEFILEDEPS="POTFILES.in"
  11272. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  11273. # on $ac_dir but don't depend on user-specified configuration
  11274. # parameters.
  11275. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  11276. # The LINGUAS file contains the set of available languages.
  11277. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  11278. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  11279. fi
  11280. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  11281. # Hide the ALL_LINGUAS assigment from automake.
  11282. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  11283. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  11284. else
  11285. # The set of available languages was given in configure.in.
  11286. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  11287. fi
  11288. # Compute POFILES
  11289. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  11290. # Compute UPDATEPOFILES
  11291. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  11292. # Compute DUMMYPOFILES
  11293. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  11294. # Compute GMOFILES
  11295. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  11296. case "$ac_given_srcdir" in
  11297. .) srcdirpre= ;;
  11298. *) srcdirpre='$(srcdir)/' ;;
  11299. esac
  11300. POFILES=
  11301. UPDATEPOFILES=
  11302. DUMMYPOFILES=
  11303. GMOFILES=
  11304. for lang in $ALL_LINGUAS; do
  11305. POFILES="$POFILES $srcdirpre$lang.po"
  11306. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  11307. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  11308. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  11309. done
  11310. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  11311. # environment variable.
  11312. INST_LINGUAS=
  11313. if test -n "$ALL_LINGUAS"; then
  11314. for presentlang in $ALL_LINGUAS; do
  11315. useit=no
  11316. if test "%UNSET%" != "$LINGUAS"; then
  11317. desiredlanguages="$LINGUAS"
  11318. else
  11319. desiredlanguages="$ALL_LINGUAS"
  11320. fi
  11321. for desiredlang in $desiredlanguages; do
  11322. # Use the presentlang catalog if desiredlang is
  11323. # a. equal to presentlang, or
  11324. # b. a variant of presentlang (because in this case,
  11325. # presentlang can be used as a fallback for messages
  11326. # which are not translated in the desiredlang catalog).
  11327. case "$desiredlang" in
  11328. "$presentlang"*) useit=yes;;
  11329. esac
  11330. done
  11331. if test $useit = yes; then
  11332. INST_LINGUAS="$INST_LINGUAS $presentlang"
  11333. fi
  11334. done
  11335. fi
  11336. CATALOGS=
  11337. if test -n "$INST_LINGUAS"; then
  11338. for lang in $INST_LINGUAS; do
  11339. CATALOGS="$CATALOGS $lang.gmo"
  11340. done
  11341. fi
  11342. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  11343. 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"
  11344. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  11345. if test -f "$f"; then
  11346. case "$f" in
  11347. *.orig | *.bak | *~) ;;
  11348. *) cat "$f" >> "$ac_dir/Makefile" ;;
  11349. esac
  11350. fi
  11351. done
  11352. fi
  11353. ;;
  11354. esac
  11355. done ;;
  11356. esac
  11357. done
  11358. _ACEOF
  11359. cat >>$CONFIG_STATUS <<\_ACEOF
  11360. { (exit 0); exit 0; }
  11361. _ACEOF
  11362. chmod +x $CONFIG_STATUS
  11363. ac_clean_files=$ac_clean_files_save
  11364. # configure is writing to config.log, and then calls config.status.
  11365. # config.status does its own redirection, appending to config.log.
  11366. # Unfortunately, on DOS this fails, as config.log is still kept open
  11367. # by configure, so config.status won't be able to write to it; its
  11368. # output is simply discarded. So we exec the FD to /dev/null,
  11369. # effectively closing config.log, so it can be properly (re)opened and
  11370. # appended to by config.status. When coming back to configure, we
  11371. # need to make the FD available again.
  11372. if test "$no_create" != yes; then
  11373. ac_cs_success=:
  11374. ac_config_status_args=
  11375. test "$silent" = yes &&
  11376. ac_config_status_args="$ac_config_status_args --quiet"
  11377. exec 5>/dev/null
  11378. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11379. exec 5>>config.log
  11380. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11381. # would make configure fail if this is the last instruction.
  11382. $ac_cs_success || { (exit 1); exit 1; }
  11383. fi