configure 352 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for aria2c 0.2.1.
  4. #
  5. # Report bugs to <tujikawa@rednoah.com>.
  6. #
  7. # Copyright (C) 2003 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13. # Be Bourne compatible
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. DUALCASE=1; export DUALCASE # for MKS sh
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30. # Work around bugs in pre-3.0 UWIN ksh.
  31. $as_unset ENV MAIL MAILPATH
  32. PS1='$ '
  33. PS2='> '
  34. PS4='+ '
  35. # NLS nuisances.
  36. for as_var in \
  37. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  38. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  39. LC_TELEPHONE LC_TIME
  40. do
  41. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42. eval $as_var=C; export $as_var
  43. else
  44. $as_unset $as_var
  45. fi
  46. done
  47. # Required to use basename.
  48. if expr a : '\(a\)' >/dev/null 2>&1; then
  49. as_expr=expr
  50. else
  51. as_expr=false
  52. fi
  53. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  54. as_basename=basename
  55. else
  56. as_basename=false
  57. fi
  58. # Name of the executable.
  59. as_me=`$as_basename "$0" ||
  60. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  61. X"$0" : 'X\(//\)$' \| \
  62. X"$0" : 'X\(/\)$' \| \
  63. . : '\(.\)' 2>/dev/null ||
  64. echo X/"$0" |
  65. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  66. /^X\/\(\/\/\)$/{ s//\1/; q; }
  67. /^X\/\(\/\).*/{ s//\1/; q; }
  68. s/.*/./; q'`
  69. # PATH needs CR, and LINENO needs CR and PATH.
  70. # Avoid depending upon Character Ranges.
  71. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  72. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  73. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  74. as_cr_digits='0123456789'
  75. as_cr_alnum=$as_cr_Letters$as_cr_digits
  76. # The user is always right.
  77. if test "${PATH_SEPARATOR+set}" != set; then
  78. echo "#! /bin/sh" >conf$$.sh
  79. echo "exit 0" >>conf$$.sh
  80. chmod +x conf$$.sh
  81. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  82. PATH_SEPARATOR=';'
  83. else
  84. PATH_SEPARATOR=:
  85. fi
  86. rm -f conf$$.sh
  87. fi
  88. as_lineno_1=$LINENO
  89. as_lineno_2=$LINENO
  90. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  91. test "x$as_lineno_1" != "x$as_lineno_2" &&
  92. test "x$as_lineno_3" = "x$as_lineno_2" || {
  93. # Find who we are. Look in the path if we contain no path at all
  94. # relative or not.
  95. case $0 in
  96. *[\\/]* ) as_myself=$0 ;;
  97. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98. for as_dir in $PATH
  99. do
  100. IFS=$as_save_IFS
  101. test -z "$as_dir" && as_dir=.
  102. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  103. done
  104. ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109. as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  113. { (exit 1); exit 1; }; }
  114. fi
  115. case $CONFIG_SHELL in
  116. '')
  117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  118. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  119. do
  120. IFS=$as_save_IFS
  121. test -z "$as_dir" && as_dir=.
  122. for as_base in sh bash ksh sh5; do
  123. case $as_dir in
  124. /*)
  125. if ("$as_dir/$as_base" -c '
  126. as_lineno_1=$LINENO
  127. as_lineno_2=$LINENO
  128. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  129. test "x$as_lineno_1" != "x$as_lineno_2" &&
  130. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  131. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  132. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  133. CONFIG_SHELL=$as_dir/$as_base
  134. export CONFIG_SHELL
  135. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  136. fi;;
  137. esac
  138. done
  139. done
  140. ;;
  141. esac
  142. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  143. # uniformly replaced by the line number. The first 'sed' inserts a
  144. # line-number line before each line; the second 'sed' does the real
  145. # work. The second script uses 'N' to pair each line-number line
  146. # with the numbered line, and appends trailing '-' during
  147. # substitution so that $LINENO is not a special case at line end.
  148. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  149. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  150. sed '=' <$as_myself |
  151. sed '
  152. N
  153. s,$,-,
  154. : loop
  155. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  156. t loop
  157. s,-$,,
  158. s,^['$as_cr_digits']*\n,,
  159. ' >$as_me.lineno &&
  160. chmod +x $as_me.lineno ||
  161. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  162. { (exit 1); exit 1; }; }
  163. # Don't try to exec as it changes $[0], causing all sort of problems
  164. # (the dirname of $[0] is not the place where we might find the
  165. # original and so on. Autoconf is especially sensible to this).
  166. . ./$as_me.lineno
  167. # Exit status is that of the last command.
  168. exit
  169. }
  170. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  171. *c*,-n*) ECHO_N= ECHO_C='
  172. ' ECHO_T=' ' ;;
  173. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  174. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  175. esac
  176. if expr a : '\(a\)' >/dev/null 2>&1; then
  177. as_expr=expr
  178. else
  179. as_expr=false
  180. fi
  181. rm -f conf$$ conf$$.exe conf$$.file
  182. echo >conf$$.file
  183. if ln -s conf$$.file conf$$ 2>/dev/null; then
  184. # We could just check for DJGPP; but this test a) works b) is more generic
  185. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  186. if test -f conf$$.exe; then
  187. # Don't use ln at all; we don't have any links
  188. as_ln_s='cp -p'
  189. else
  190. as_ln_s='ln -s'
  191. fi
  192. elif ln conf$$.file conf$$ 2>/dev/null; then
  193. as_ln_s=ln
  194. else
  195. as_ln_s='cp -p'
  196. fi
  197. rm -f conf$$ conf$$.exe conf$$.file
  198. if mkdir -p . 2>/dev/null; then
  199. as_mkdir_p=:
  200. else
  201. test -d ./-p && rmdir ./-p
  202. as_mkdir_p=false
  203. fi
  204. as_executable_p="test -f"
  205. # Sed expression to map a string onto a valid CPP name.
  206. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  207. # Sed expression to map a string onto a valid variable name.
  208. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  209. # IFS
  210. # We need space, tab and new line, in precisely that order.
  211. as_nl='
  212. '
  213. IFS=" $as_nl"
  214. # CDPATH.
  215. $as_unset CDPATH
  216. # Name of the host.
  217. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  218. # so uname gets run too.
  219. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  220. exec 6>&1
  221. #
  222. # Initializations.
  223. #
  224. ac_default_prefix=/usr/local
  225. ac_config_libobj_dir=.
  226. cross_compiling=no
  227. subdirs=
  228. MFLAGS=
  229. MAKEFLAGS=
  230. SHELL=${CONFIG_SHELL-/bin/sh}
  231. # Maximum number of lines to put in a shell here document.
  232. # This variable seems obsolete. It should probably be removed, and
  233. # only ac_max_sed_lines should be used.
  234. : ${ac_max_here_lines=38}
  235. # Identity of this package.
  236. PACKAGE_NAME='aria2c'
  237. PACKAGE_TARNAME='aria2c'
  238. PACKAGE_VERSION='0.2.1'
  239. PACKAGE_STRING='aria2c 0.2.1'
  240. PACKAGE_BUGREPORT='tujikawa@rednoah.com'
  241. ac_unique_file="src/Socket.h"
  242. # Factoring default headers for most tests.
  243. ac_includes_default="\
  244. #include <stdio.h>
  245. #if HAVE_SYS_TYPES_H
  246. # include <sys/types.h>
  247. #endif
  248. #if HAVE_SYS_STAT_H
  249. # include <sys/stat.h>
  250. #endif
  251. #if STDC_HEADERS
  252. # include <stdlib.h>
  253. # include <stddef.h>
  254. #else
  255. # if HAVE_STDLIB_H
  256. # include <stdlib.h>
  257. # endif
  258. #endif
  259. #if HAVE_STRING_H
  260. # if !STDC_HEADERS && HAVE_MEMORY_H
  261. # include <memory.h>
  262. # endif
  263. # include <string.h>
  264. #endif
  265. #if HAVE_STRINGS_H
  266. # include <strings.h>
  267. #endif
  268. #if HAVE_INTTYPES_H
  269. # include <inttypes.h>
  270. #else
  271. # if HAVE_STDINT_H
  272. # include <stdint.h>
  273. # endif
  274. #endif
  275. #if HAVE_UNISTD_H
  276. # include <unistd.h>
  277. #endif"
  278. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CPPUNIT_CONFIG CPPUNIT_CFLAGS CPPUNIT_LIBS RANLIB ac_ct_RANLIB MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPP EGREP ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB localedir CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LIBOBJS LTLIBOBJS'
  279. ac_subst_files=''
  280. # Initialize some variables set by options.
  281. ac_init_help=
  282. ac_init_version=false
  283. # The variables have the same names as the options, with
  284. # dashes changed to underlines.
  285. cache_file=/dev/null
  286. exec_prefix=NONE
  287. no_create=
  288. no_recursion=
  289. prefix=NONE
  290. program_prefix=NONE
  291. program_suffix=NONE
  292. program_transform_name=s,x,x,
  293. silent=
  294. site=
  295. srcdir=
  296. verbose=
  297. x_includes=NONE
  298. x_libraries=NONE
  299. # Installation directory options.
  300. # These are left unexpanded so users can "make install exec_prefix=/foo"
  301. # and all the variables that are supposed to be based on exec_prefix
  302. # by default will actually change.
  303. # Use braces instead of parens because sh, perl, etc. also accept them.
  304. bindir='${exec_prefix}/bin'
  305. sbindir='${exec_prefix}/sbin'
  306. libexecdir='${exec_prefix}/libexec'
  307. datadir='${prefix}/share'
  308. sysconfdir='${prefix}/etc'
  309. sharedstatedir='${prefix}/com'
  310. localstatedir='${prefix}/var'
  311. libdir='${exec_prefix}/lib'
  312. includedir='${prefix}/include'
  313. oldincludedir='/usr/include'
  314. infodir='${prefix}/info'
  315. mandir='${prefix}/man'
  316. ac_prev=
  317. for ac_option
  318. do
  319. # If the previous option needs an argument, assign it.
  320. if test -n "$ac_prev"; then
  321. eval "$ac_prev=\$ac_option"
  322. ac_prev=
  323. continue
  324. fi
  325. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  326. # Accept the important Cygnus configure options, so we can diagnose typos.
  327. case $ac_option in
  328. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  329. ac_prev=bindir ;;
  330. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  331. bindir=$ac_optarg ;;
  332. -build | --build | --buil | --bui | --bu)
  333. ac_prev=build_alias ;;
  334. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  335. build_alias=$ac_optarg ;;
  336. -cache-file | --cache-file | --cache-fil | --cache-fi \
  337. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  338. ac_prev=cache_file ;;
  339. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  340. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  341. cache_file=$ac_optarg ;;
  342. --config-cache | -C)
  343. cache_file=config.cache ;;
  344. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  345. ac_prev=datadir ;;
  346. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  347. | --da=*)
  348. datadir=$ac_optarg ;;
  349. -disable-* | --disable-*)
  350. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  351. # Reject names that are not valid shell variable names.
  352. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  353. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  354. { (exit 1); exit 1; }; }
  355. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  356. eval "enable_$ac_feature=no" ;;
  357. -enable-* | --enable-*)
  358. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  359. # Reject names that are not valid shell variable names.
  360. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  361. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  362. { (exit 1); exit 1; }; }
  363. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  364. case $ac_option in
  365. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  366. *) ac_optarg=yes ;;
  367. esac
  368. eval "enable_$ac_feature='$ac_optarg'" ;;
  369. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  370. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  371. | --exec | --exe | --ex)
  372. ac_prev=exec_prefix ;;
  373. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  374. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  375. | --exec=* | --exe=* | --ex=*)
  376. exec_prefix=$ac_optarg ;;
  377. -gas | --gas | --ga | --g)
  378. # Obsolete; use --with-gas.
  379. with_gas=yes ;;
  380. -help | --help | --hel | --he | -h)
  381. ac_init_help=long ;;
  382. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  383. ac_init_help=recursive ;;
  384. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  385. ac_init_help=short ;;
  386. -host | --host | --hos | --ho)
  387. ac_prev=host_alias ;;
  388. -host=* | --host=* | --hos=* | --ho=*)
  389. host_alias=$ac_optarg ;;
  390. -includedir | --includedir | --includedi | --included | --include \
  391. | --includ | --inclu | --incl | --inc)
  392. ac_prev=includedir ;;
  393. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  394. | --includ=* | --inclu=* | --incl=* | --inc=*)
  395. includedir=$ac_optarg ;;
  396. -infodir | --infodir | --infodi | --infod | --info | --inf)
  397. ac_prev=infodir ;;
  398. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  399. infodir=$ac_optarg ;;
  400. -libdir | --libdir | --libdi | --libd)
  401. ac_prev=libdir ;;
  402. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  403. libdir=$ac_optarg ;;
  404. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  405. | --libexe | --libex | --libe)
  406. ac_prev=libexecdir ;;
  407. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  408. | --libexe=* | --libex=* | --libe=*)
  409. libexecdir=$ac_optarg ;;
  410. -localstatedir | --localstatedir | --localstatedi | --localstated \
  411. | --localstate | --localstat | --localsta | --localst \
  412. | --locals | --local | --loca | --loc | --lo)
  413. ac_prev=localstatedir ;;
  414. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  415. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  416. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  417. localstatedir=$ac_optarg ;;
  418. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  419. ac_prev=mandir ;;
  420. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  421. mandir=$ac_optarg ;;
  422. -nfp | --nfp | --nf)
  423. # Obsolete; use --without-fp.
  424. with_fp=no ;;
  425. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  426. | --no-cr | --no-c | -n)
  427. no_create=yes ;;
  428. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  429. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  430. no_recursion=yes ;;
  431. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  432. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  433. | --oldin | --oldi | --old | --ol | --o)
  434. ac_prev=oldincludedir ;;
  435. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  436. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  437. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  438. oldincludedir=$ac_optarg ;;
  439. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  440. ac_prev=prefix ;;
  441. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  442. prefix=$ac_optarg ;;
  443. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  444. | --program-pre | --program-pr | --program-p)
  445. ac_prev=program_prefix ;;
  446. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  447. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  448. program_prefix=$ac_optarg ;;
  449. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  450. | --program-suf | --program-su | --program-s)
  451. ac_prev=program_suffix ;;
  452. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  453. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  454. program_suffix=$ac_optarg ;;
  455. -program-transform-name | --program-transform-name \
  456. | --program-transform-nam | --program-transform-na \
  457. | --program-transform-n | --program-transform- \
  458. | --program-transform | --program-transfor \
  459. | --program-transfo | --program-transf \
  460. | --program-trans | --program-tran \
  461. | --progr-tra | --program-tr | --program-t)
  462. ac_prev=program_transform_name ;;
  463. -program-transform-name=* | --program-transform-name=* \
  464. | --program-transform-nam=* | --program-transform-na=* \
  465. | --program-transform-n=* | --program-transform-=* \
  466. | --program-transform=* | --program-transfor=* \
  467. | --program-transfo=* | --program-transf=* \
  468. | --program-trans=* | --program-tran=* \
  469. | --progr-tra=* | --program-tr=* | --program-t=*)
  470. program_transform_name=$ac_optarg ;;
  471. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  472. | -silent | --silent | --silen | --sile | --sil)
  473. silent=yes ;;
  474. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  475. ac_prev=sbindir ;;
  476. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  477. | --sbi=* | --sb=*)
  478. sbindir=$ac_optarg ;;
  479. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  480. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  481. | --sharedst | --shareds | --shared | --share | --shar \
  482. | --sha | --sh)
  483. ac_prev=sharedstatedir ;;
  484. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  485. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  486. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  487. | --sha=* | --sh=*)
  488. sharedstatedir=$ac_optarg ;;
  489. -site | --site | --sit)
  490. ac_prev=site ;;
  491. -site=* | --site=* | --sit=*)
  492. site=$ac_optarg ;;
  493. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  494. ac_prev=srcdir ;;
  495. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  496. srcdir=$ac_optarg ;;
  497. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  498. | --syscon | --sysco | --sysc | --sys | --sy)
  499. ac_prev=sysconfdir ;;
  500. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  501. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  502. sysconfdir=$ac_optarg ;;
  503. -target | --target | --targe | --targ | --tar | --ta | --t)
  504. ac_prev=target_alias ;;
  505. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  506. target_alias=$ac_optarg ;;
  507. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  508. verbose=yes ;;
  509. -version | --version | --versio | --versi | --vers | -V)
  510. ac_init_version=: ;;
  511. -with-* | --with-*)
  512. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  513. # Reject names that are not valid shell variable names.
  514. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  515. { echo "$as_me: error: invalid package name: $ac_package" >&2
  516. { (exit 1); exit 1; }; }
  517. ac_package=`echo $ac_package| sed 's/-/_/g'`
  518. case $ac_option in
  519. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  520. *) ac_optarg=yes ;;
  521. esac
  522. eval "with_$ac_package='$ac_optarg'" ;;
  523. -without-* | --without-*)
  524. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  525. # Reject names that are not valid shell variable names.
  526. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  527. { echo "$as_me: error: invalid package name: $ac_package" >&2
  528. { (exit 1); exit 1; }; }
  529. ac_package=`echo $ac_package | sed 's/-/_/g'`
  530. eval "with_$ac_package=no" ;;
  531. --x)
  532. # Obsolete; use --with-x.
  533. with_x=yes ;;
  534. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  535. | --x-incl | --x-inc | --x-in | --x-i)
  536. ac_prev=x_includes ;;
  537. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  538. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  539. x_includes=$ac_optarg ;;
  540. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  541. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  542. ac_prev=x_libraries ;;
  543. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  544. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  545. x_libraries=$ac_optarg ;;
  546. -*) { echo "$as_me: error: unrecognized option: $ac_option
  547. Try \`$0 --help' for more information." >&2
  548. { (exit 1); exit 1; }; }
  549. ;;
  550. *=*)
  551. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  552. # Reject names that are not valid shell variable names.
  553. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  554. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  555. { (exit 1); exit 1; }; }
  556. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  557. eval "$ac_envvar='$ac_optarg'"
  558. export $ac_envvar ;;
  559. *)
  560. # FIXME: should be removed in autoconf 3.0.
  561. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  562. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  563. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  564. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  565. ;;
  566. esac
  567. done
  568. if test -n "$ac_prev"; then
  569. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  570. { echo "$as_me: error: missing argument to $ac_option" >&2
  571. { (exit 1); exit 1; }; }
  572. fi
  573. # Be sure to have absolute paths.
  574. for ac_var in exec_prefix prefix
  575. do
  576. eval ac_val=$`echo $ac_var`
  577. case $ac_val in
  578. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  579. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  580. { (exit 1); exit 1; }; };;
  581. esac
  582. done
  583. # Be sure to have absolute paths.
  584. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  585. localstatedir libdir includedir oldincludedir infodir mandir
  586. do
  587. eval ac_val=$`echo $ac_var`
  588. case $ac_val in
  589. [\\/$]* | ?:[\\/]* ) ;;
  590. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  591. { (exit 1); exit 1; }; };;
  592. esac
  593. done
  594. # There might be people who depend on the old broken behavior: `$host'
  595. # used to hold the argument of --host etc.
  596. # FIXME: To remove some day.
  597. build=$build_alias
  598. host=$host_alias
  599. target=$target_alias
  600. # FIXME: To remove some day.
  601. if test "x$host_alias" != x; then
  602. if test "x$build_alias" = x; then
  603. cross_compiling=maybe
  604. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  605. If a cross compiler is detected then cross compile mode will be used." >&2
  606. elif test "x$build_alias" != "x$host_alias"; then
  607. cross_compiling=yes
  608. fi
  609. fi
  610. ac_tool_prefix=
  611. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  612. test "$silent" = yes && exec 6>/dev/null
  613. # Find the source files, if location was not specified.
  614. if test -z "$srcdir"; then
  615. ac_srcdir_defaulted=yes
  616. # Try the directory containing this script, then its parent.
  617. ac_confdir=`(dirname "$0") 2>/dev/null ||
  618. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  619. X"$0" : 'X\(//\)[^/]' \| \
  620. X"$0" : 'X\(//\)$' \| \
  621. X"$0" : 'X\(/\)' \| \
  622. . : '\(.\)' 2>/dev/null ||
  623. echo X"$0" |
  624. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  625. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  626. /^X\(\/\/\)$/{ s//\1/; q; }
  627. /^X\(\/\).*/{ s//\1/; q; }
  628. s/.*/./; q'`
  629. srcdir=$ac_confdir
  630. if test ! -r $srcdir/$ac_unique_file; then
  631. srcdir=..
  632. fi
  633. else
  634. ac_srcdir_defaulted=no
  635. fi
  636. if test ! -r $srcdir/$ac_unique_file; then
  637. if test "$ac_srcdir_defaulted" = yes; then
  638. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  639. { (exit 1); exit 1; }; }
  640. else
  641. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  642. { (exit 1); exit 1; }; }
  643. fi
  644. fi
  645. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  646. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  647. { (exit 1); exit 1; }; }
  648. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  649. ac_env_build_alias_set=${build_alias+set}
  650. ac_env_build_alias_value=$build_alias
  651. ac_cv_env_build_alias_set=${build_alias+set}
  652. ac_cv_env_build_alias_value=$build_alias
  653. ac_env_host_alias_set=${host_alias+set}
  654. ac_env_host_alias_value=$host_alias
  655. ac_cv_env_host_alias_set=${host_alias+set}
  656. ac_cv_env_host_alias_value=$host_alias
  657. ac_env_target_alias_set=${target_alias+set}
  658. ac_env_target_alias_value=$target_alias
  659. ac_cv_env_target_alias_set=${target_alias+set}
  660. ac_cv_env_target_alias_value=$target_alias
  661. ac_env_CC_set=${CC+set}
  662. ac_env_CC_value=$CC
  663. ac_cv_env_CC_set=${CC+set}
  664. ac_cv_env_CC_value=$CC
  665. ac_env_CFLAGS_set=${CFLAGS+set}
  666. ac_env_CFLAGS_value=$CFLAGS
  667. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  668. ac_cv_env_CFLAGS_value=$CFLAGS
  669. ac_env_LDFLAGS_set=${LDFLAGS+set}
  670. ac_env_LDFLAGS_value=$LDFLAGS
  671. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_cv_env_LDFLAGS_value=$LDFLAGS
  673. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  674. ac_env_CPPFLAGS_value=$CPPFLAGS
  675. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_env_CPP_set=${CPP+set}
  678. ac_env_CPP_value=$CPP
  679. ac_cv_env_CPP_set=${CPP+set}
  680. ac_cv_env_CPP_value=$CPP
  681. ac_env_CXX_set=${CXX+set}
  682. ac_env_CXX_value=$CXX
  683. ac_cv_env_CXX_set=${CXX+set}
  684. ac_cv_env_CXX_value=$CXX
  685. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  686. ac_env_CXXFLAGS_value=$CXXFLAGS
  687. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  688. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  689. #
  690. # Report the --help message.
  691. #
  692. if test "$ac_init_help" = "long"; then
  693. # Omit some internal or obsolete options to make the list less imposing.
  694. # This message is too long to be a string in the A/UX 3.1 sh.
  695. cat <<_ACEOF
  696. \`configure' configures aria2c 0.2.1 to adapt to many kinds of systems.
  697. Usage: $0 [OPTION]... [VAR=VALUE]...
  698. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  699. VAR=VALUE. See below for descriptions of some of the useful variables.
  700. Defaults for the options are specified in brackets.
  701. Configuration:
  702. -h, --help display this help and exit
  703. --help=short display options specific to this package
  704. --help=recursive display the short help of all the included packages
  705. -V, --version display version information and exit
  706. -q, --quiet, --silent do not print \`checking...' messages
  707. --cache-file=FILE cache test results in FILE [disabled]
  708. -C, --config-cache alias for \`--cache-file=config.cache'
  709. -n, --no-create do not create output files
  710. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  711. _ACEOF
  712. cat <<_ACEOF
  713. Installation directories:
  714. --prefix=PREFIX install architecture-independent files in PREFIX
  715. [$ac_default_prefix]
  716. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  717. [PREFIX]
  718. By default, \`make install' will install all the files in
  719. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  720. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  721. for instance \`--prefix=\$HOME'.
  722. For better control, use the options below.
  723. Fine tuning of the installation directories:
  724. --bindir=DIR user executables [EPREFIX/bin]
  725. --sbindir=DIR system admin executables [EPREFIX/sbin]
  726. --libexecdir=DIR program executables [EPREFIX/libexec]
  727. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  728. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  729. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  730. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  731. --libdir=DIR object code libraries [EPREFIX/lib]
  732. --includedir=DIR C header files [PREFIX/include]
  733. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  734. --infodir=DIR info documentation [PREFIX/info]
  735. --mandir=DIR man documentation [PREFIX/man]
  736. _ACEOF
  737. cat <<\_ACEOF
  738. Program names:
  739. --program-prefix=PREFIX prepend PREFIX to installed program names
  740. --program-suffix=SUFFIX append SUFFIX to installed program names
  741. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  742. System types:
  743. --build=BUILD configure for building on BUILD [guessed]
  744. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  745. _ACEOF
  746. fi
  747. if test -n "$ac_init_help"; then
  748. case $ac_init_help in
  749. short | recursive ) echo "Configuration of aria2c 0.2.1:";;
  750. esac
  751. cat <<\_ACEOF
  752. Optional Features:
  753. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  754. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  755. --disable-nls do not use Native Language Support
  756. --disable-dependency-tracking speeds up one-time build
  757. --enable-dependency-tracking do not reject slow dependency extractors
  758. --disable-rpath do not hardcode runtime library paths
  759. --enable-ssl enalbe SSL support if libssl is installed. Default: yes
  760. Optional Packages:
  761. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  762. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  763. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  764. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  765. --with-gnu-ld assume the C compiler uses GNU ld default=no
  766. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  767. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  768. --with-included-gettext use the GNU gettext library included here
  769. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  770. --without-libintl-prefix don't search for libintl in includedir and libdir
  771. Some influential environment variables:
  772. CC C compiler command
  773. CFLAGS C compiler flags
  774. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  775. nonstandard directory <lib dir>
  776. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  777. headers in a nonstandard directory <include dir>
  778. CPP C preprocessor
  779. CXX C++ compiler command
  780. CXXFLAGS C++ compiler flags
  781. Use these variables to override the choices made by `configure' or to help
  782. it to find libraries and programs with nonstandard names/locations.
  783. Report bugs to <tujikawa@rednoah.com>.
  784. _ACEOF
  785. fi
  786. if test "$ac_init_help" = "recursive"; then
  787. # If there are subdirs, report their specific --help.
  788. ac_popdir=`pwd`
  789. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  790. test -d $ac_dir || continue
  791. ac_builddir=.
  792. if test "$ac_dir" != .; then
  793. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  794. # A "../" for each directory in $ac_dir_suffix.
  795. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  796. else
  797. ac_dir_suffix= ac_top_builddir=
  798. fi
  799. case $srcdir in
  800. .) # No --srcdir option. We are building in place.
  801. ac_srcdir=.
  802. if test -z "$ac_top_builddir"; then
  803. ac_top_srcdir=.
  804. else
  805. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  806. fi ;;
  807. [\\/]* | ?:[\\/]* ) # Absolute path.
  808. ac_srcdir=$srcdir$ac_dir_suffix;
  809. ac_top_srcdir=$srcdir ;;
  810. *) # Relative path.
  811. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  812. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  813. esac
  814. # Do not use `cd foo && pwd` to compute absolute paths, because
  815. # the directories may not exist.
  816. case `pwd` in
  817. .) ac_abs_builddir="$ac_dir";;
  818. *)
  819. case "$ac_dir" in
  820. .) ac_abs_builddir=`pwd`;;
  821. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  822. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  823. esac;;
  824. esac
  825. case $ac_abs_builddir in
  826. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  827. *)
  828. case ${ac_top_builddir}. in
  829. .) ac_abs_top_builddir=$ac_abs_builddir;;
  830. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  831. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  832. esac;;
  833. esac
  834. case $ac_abs_builddir in
  835. .) ac_abs_srcdir=$ac_srcdir;;
  836. *)
  837. case $ac_srcdir in
  838. .) ac_abs_srcdir=$ac_abs_builddir;;
  839. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  840. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  841. esac;;
  842. esac
  843. case $ac_abs_builddir in
  844. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  845. *)
  846. case $ac_top_srcdir in
  847. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  848. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  849. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  850. esac;;
  851. esac
  852. cd $ac_dir
  853. # Check for guested configure; otherwise get Cygnus style configure.
  854. if test -f $ac_srcdir/configure.gnu; then
  855. echo
  856. $SHELL $ac_srcdir/configure.gnu --help=recursive
  857. elif test -f $ac_srcdir/configure; then
  858. echo
  859. $SHELL $ac_srcdir/configure --help=recursive
  860. elif test -f $ac_srcdir/configure.ac ||
  861. test -f $ac_srcdir/configure.in; then
  862. echo
  863. $ac_configure --help
  864. else
  865. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  866. fi
  867. cd "$ac_popdir"
  868. done
  869. fi
  870. test -n "$ac_init_help" && exit 0
  871. if $ac_init_version; then
  872. cat <<\_ACEOF
  873. aria2c configure 0.2.1
  874. generated by GNU Autoconf 2.59
  875. Copyright (C) 2003 Free Software Foundation, Inc.
  876. This configure script is free software; the Free Software Foundation
  877. gives unlimited permission to copy, distribute and modify it.
  878. _ACEOF
  879. exit 0
  880. fi
  881. exec 5>config.log
  882. cat >&5 <<_ACEOF
  883. This file contains any messages produced by compilers while
  884. running configure, to aid debugging if configure makes a mistake.
  885. It was created by aria2c $as_me 0.2.1, which was
  886. generated by GNU Autoconf 2.59. Invocation command line was
  887. $ $0 $@
  888. _ACEOF
  889. {
  890. cat <<_ASUNAME
  891. ## --------- ##
  892. ## Platform. ##
  893. ## --------- ##
  894. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  895. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  896. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  897. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  898. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  899. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  900. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  901. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  902. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  903. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  904. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  905. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  906. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  907. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  908. _ASUNAME
  909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  910. for as_dir in $PATH
  911. do
  912. IFS=$as_save_IFS
  913. test -z "$as_dir" && as_dir=.
  914. echo "PATH: $as_dir"
  915. done
  916. } >&5
  917. cat >&5 <<_ACEOF
  918. ## ----------- ##
  919. ## Core tests. ##
  920. ## ----------- ##
  921. _ACEOF
  922. # Keep a trace of the command line.
  923. # Strip out --no-create and --no-recursion so they do not pile up.
  924. # Strip out --silent because we don't want to record it for future runs.
  925. # Also quote any args containing shell meta-characters.
  926. # Make two passes to allow for proper duplicate-argument suppression.
  927. ac_configure_args=
  928. ac_configure_args0=
  929. ac_configure_args1=
  930. ac_sep=
  931. ac_must_keep_next=false
  932. for ac_pass in 1 2
  933. do
  934. for ac_arg
  935. do
  936. case $ac_arg in
  937. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  938. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  939. | -silent | --silent | --silen | --sile | --sil)
  940. continue ;;
  941. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  942. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  943. esac
  944. case $ac_pass in
  945. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  946. 2)
  947. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  948. if test $ac_must_keep_next = true; then
  949. ac_must_keep_next=false # Got value, back to normal.
  950. else
  951. case $ac_arg in
  952. *=* | --config-cache | -C | -disable-* | --disable-* \
  953. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  954. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  955. | -with-* | --with-* | -without-* | --without-* | --x)
  956. case "$ac_configure_args0 " in
  957. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  958. esac
  959. ;;
  960. -* ) ac_must_keep_next=true ;;
  961. esac
  962. fi
  963. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  964. # Get rid of the leading space.
  965. ac_sep=" "
  966. ;;
  967. esac
  968. done
  969. done
  970. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  971. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  972. # When interrupted or exit'd, cleanup temporary files, and complete
  973. # config.log. We remove comments because anyway the quotes in there
  974. # would cause problems or look ugly.
  975. # WARNING: Be sure not to use single quotes in there, as some shells,
  976. # such as our DU 5.0 friend, will then `close' the trap.
  977. trap 'exit_status=$?
  978. # Save into config.log some information that might help in debugging.
  979. {
  980. echo
  981. cat <<\_ASBOX
  982. ## ---------------- ##
  983. ## Cache variables. ##
  984. ## ---------------- ##
  985. _ASBOX
  986. echo
  987. # The following way of writing the cache mishandles newlines in values,
  988. {
  989. (set) 2>&1 |
  990. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  991. *ac_space=\ *)
  992. sed -n \
  993. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  994. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  995. ;;
  996. *)
  997. sed -n \
  998. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  999. ;;
  1000. esac;
  1001. }
  1002. echo
  1003. cat <<\_ASBOX
  1004. ## ----------------- ##
  1005. ## Output variables. ##
  1006. ## ----------------- ##
  1007. _ASBOX
  1008. echo
  1009. for ac_var in $ac_subst_vars
  1010. do
  1011. eval ac_val=$`echo $ac_var`
  1012. echo "$ac_var='"'"'$ac_val'"'"'"
  1013. done | sort
  1014. echo
  1015. if test -n "$ac_subst_files"; then
  1016. cat <<\_ASBOX
  1017. ## ------------- ##
  1018. ## Output files. ##
  1019. ## ------------- ##
  1020. _ASBOX
  1021. echo
  1022. for ac_var in $ac_subst_files
  1023. do
  1024. eval ac_val=$`echo $ac_var`
  1025. echo "$ac_var='"'"'$ac_val'"'"'"
  1026. done | sort
  1027. echo
  1028. fi
  1029. if test -s confdefs.h; then
  1030. cat <<\_ASBOX
  1031. ## ----------- ##
  1032. ## confdefs.h. ##
  1033. ## ----------- ##
  1034. _ASBOX
  1035. echo
  1036. sed "/^$/d" confdefs.h | sort
  1037. echo
  1038. fi
  1039. test "$ac_signal" != 0 &&
  1040. echo "$as_me: caught signal $ac_signal"
  1041. echo "$as_me: exit $exit_status"
  1042. } >&5
  1043. rm -f core *.core &&
  1044. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1045. exit $exit_status
  1046. ' 0
  1047. for ac_signal in 1 2 13 15; do
  1048. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1049. done
  1050. ac_signal=0
  1051. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1052. rm -rf conftest* confdefs.h
  1053. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1054. echo >confdefs.h
  1055. # Predefined preprocessor variables.
  1056. cat >>confdefs.h <<_ACEOF
  1057. #define PACKAGE_NAME "$PACKAGE_NAME"
  1058. _ACEOF
  1059. cat >>confdefs.h <<_ACEOF
  1060. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1061. _ACEOF
  1062. cat >>confdefs.h <<_ACEOF
  1063. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1064. _ACEOF
  1065. cat >>confdefs.h <<_ACEOF
  1066. #define PACKAGE_STRING "$PACKAGE_STRING"
  1067. _ACEOF
  1068. cat >>confdefs.h <<_ACEOF
  1069. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1070. _ACEOF
  1071. # Let the site file select an alternate cache file if it wants to.
  1072. # Prefer explicitly selected file to automatically selected ones.
  1073. if test -z "$CONFIG_SITE"; then
  1074. if test "x$prefix" != xNONE; then
  1075. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1076. else
  1077. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1078. fi
  1079. fi
  1080. for ac_site_file in $CONFIG_SITE; do
  1081. if test -r "$ac_site_file"; then
  1082. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1083. echo "$as_me: loading site script $ac_site_file" >&6;}
  1084. sed 's/^/| /' "$ac_site_file" >&5
  1085. . "$ac_site_file"
  1086. fi
  1087. done
  1088. if test -r "$cache_file"; then
  1089. # Some versions of bash will fail to source /dev/null (special
  1090. # files actually), so we avoid doing that.
  1091. if test -f "$cache_file"; then
  1092. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1093. echo "$as_me: loading cache $cache_file" >&6;}
  1094. case $cache_file in
  1095. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1096. *) . ./$cache_file;;
  1097. esac
  1098. fi
  1099. else
  1100. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1101. echo "$as_me: creating cache $cache_file" >&6;}
  1102. >$cache_file
  1103. fi
  1104. # Check that the precious variables saved in the cache have kept the same
  1105. # value.
  1106. ac_cache_corrupted=false
  1107. for ac_var in `(set) 2>&1 |
  1108. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1109. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1110. eval ac_new_set=\$ac_env_${ac_var}_set
  1111. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1112. eval ac_new_val="\$ac_env_${ac_var}_value"
  1113. case $ac_old_set,$ac_new_set in
  1114. set,)
  1115. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1116. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1117. ac_cache_corrupted=: ;;
  1118. ,set)
  1119. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1120. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1121. ac_cache_corrupted=: ;;
  1122. ,);;
  1123. *)
  1124. if test "x$ac_old_val" != "x$ac_new_val"; then
  1125. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1126. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1127. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1128. echo "$as_me: former value: $ac_old_val" >&2;}
  1129. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1130. echo "$as_me: current value: $ac_new_val" >&2;}
  1131. ac_cache_corrupted=:
  1132. fi;;
  1133. esac
  1134. # Pass precious variables to config.status.
  1135. if test "$ac_new_set" = set; then
  1136. case $ac_new_val in
  1137. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1138. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1139. *) ac_arg=$ac_var=$ac_new_val ;;
  1140. esac
  1141. case " $ac_configure_args " in
  1142. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1143. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1144. esac
  1145. fi
  1146. done
  1147. if $ac_cache_corrupted; then
  1148. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1149. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1150. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1151. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1152. { (exit 1); exit 1; }; }
  1153. fi
  1154. ac_ext=c
  1155. ac_cpp='$CPP $CPPFLAGS'
  1156. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1157. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1158. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1159. am__api_version="1.9"
  1160. ac_aux_dir=
  1161. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1162. if test -f $ac_dir/install-sh; then
  1163. ac_aux_dir=$ac_dir
  1164. ac_install_sh="$ac_aux_dir/install-sh -c"
  1165. break
  1166. elif test -f $ac_dir/install.sh; then
  1167. ac_aux_dir=$ac_dir
  1168. ac_install_sh="$ac_aux_dir/install.sh -c"
  1169. break
  1170. elif test -f $ac_dir/shtool; then
  1171. ac_aux_dir=$ac_dir
  1172. ac_install_sh="$ac_aux_dir/shtool install -c"
  1173. break
  1174. fi
  1175. done
  1176. if test -z "$ac_aux_dir"; then
  1177. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1178. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1179. { (exit 1); exit 1; }; }
  1180. fi
  1181. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1182. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1183. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1184. # Find a good install program. We prefer a C program (faster),
  1185. # so one script is as good as another. But avoid the broken or
  1186. # incompatible versions:
  1187. # SysV /etc/install, /usr/sbin/install
  1188. # SunOS /usr/etc/install
  1189. # IRIX /sbin/install
  1190. # AIX /bin/install
  1191. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1192. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1193. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1194. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1195. # OS/2's system install, which has a completely different semantic
  1196. # ./install, which can be erroneously created by make from ./install.sh.
  1197. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1198. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1199. if test -z "$INSTALL"; then
  1200. if test "${ac_cv_path_install+set}" = set; then
  1201. echo $ECHO_N "(cached) $ECHO_C" >&6
  1202. else
  1203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1204. for as_dir in $PATH
  1205. do
  1206. IFS=$as_save_IFS
  1207. test -z "$as_dir" && as_dir=.
  1208. # Account for people who put trailing slashes in PATH elements.
  1209. case $as_dir/ in
  1210. ./ | .// | /cC/* | \
  1211. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1212. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1213. /usr/ucb/* ) ;;
  1214. *)
  1215. # OSF1 and SCO ODT 3.0 have their own names for install.
  1216. # Don't use installbsd from OSF since it installs stuff as root
  1217. # by default.
  1218. for ac_prog in ginstall scoinst install; do
  1219. for ac_exec_ext in '' $ac_executable_extensions; do
  1220. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1221. if test $ac_prog = install &&
  1222. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1223. # AIX install. It has an incompatible calling convention.
  1224. :
  1225. elif test $ac_prog = install &&
  1226. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1227. # program-specific install script used by HP pwplus--don't use.
  1228. :
  1229. else
  1230. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1231. break 3
  1232. fi
  1233. fi
  1234. done
  1235. done
  1236. ;;
  1237. esac
  1238. done
  1239. fi
  1240. if test "${ac_cv_path_install+set}" = set; then
  1241. INSTALL=$ac_cv_path_install
  1242. else
  1243. # As a last resort, use the slow shell script. We don't cache a
  1244. # path for INSTALL within a source directory, because that will
  1245. # break other packages using the cache if that directory is
  1246. # removed, or if the path is relative.
  1247. INSTALL=$ac_install_sh
  1248. fi
  1249. fi
  1250. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1251. echo "${ECHO_T}$INSTALL" >&6
  1252. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1253. # It thinks the first close brace ends the variable substitution.
  1254. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1255. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1256. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1257. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1258. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1259. # Just in case
  1260. sleep 1
  1261. echo timestamp > conftest.file
  1262. # Do `set' in a subshell so we don't clobber the current shell's
  1263. # arguments. Must try -L first in case configure is actually a
  1264. # symlink; some systems play weird games with the mod time of symlinks
  1265. # (eg FreeBSD returns the mod time of the symlink's containing
  1266. # directory).
  1267. if (
  1268. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1269. if test "$*" = "X"; then
  1270. # -L didn't work.
  1271. set X `ls -t $srcdir/configure conftest.file`
  1272. fi
  1273. rm -f conftest.file
  1274. if test "$*" != "X $srcdir/configure conftest.file" \
  1275. && test "$*" != "X conftest.file $srcdir/configure"; then
  1276. # If neither matched, then we have a broken ls. This can happen
  1277. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1278. # broken ls alias from the environment. This has actually
  1279. # happened. Such a system could not be considered "sane".
  1280. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1281. alias in your environment" >&5
  1282. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1283. alias in your environment" >&2;}
  1284. { (exit 1); exit 1; }; }
  1285. fi
  1286. test "$2" = conftest.file
  1287. )
  1288. then
  1289. # Ok.
  1290. :
  1291. else
  1292. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1293. Check your system clock" >&5
  1294. echo "$as_me: error: newly created file is older than distributed files!
  1295. Check your system clock" >&2;}
  1296. { (exit 1); exit 1; }; }
  1297. fi
  1298. echo "$as_me:$LINENO: result: yes" >&5
  1299. echo "${ECHO_T}yes" >&6
  1300. test "$program_prefix" != NONE &&
  1301. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1302. # Use a double $ so make ignores it.
  1303. test "$program_suffix" != NONE &&
  1304. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1305. # Double any \ or $. echo might interpret backslashes.
  1306. # By default was `s,x,x', remove it if useless.
  1307. cat <<\_ACEOF >conftest.sed
  1308. s/[\\$]/&&/g;s/;s,x,x,$//
  1309. _ACEOF
  1310. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1311. rm conftest.sed
  1312. # expand $ac_aux_dir to an absolute path
  1313. am_aux_dir=`cd $ac_aux_dir && pwd`
  1314. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1315. # Use eval to expand $SHELL
  1316. if eval "$MISSING --run true"; then
  1317. am_missing_run="$MISSING --run "
  1318. else
  1319. am_missing_run=
  1320. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1321. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1322. fi
  1323. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1324. # We used to keeping the `.' as first argument, in order to
  1325. # allow $(mkdir_p) to be used without argument. As in
  1326. # $(mkdir_p) $(somedir)
  1327. # where $(somedir) is conditionally defined. However this is wrong
  1328. # for two reasons:
  1329. # 1. if the package is installed by a user who cannot write `.'
  1330. # make install will fail,
  1331. # 2. the above comment should most certainly read
  1332. # $(mkdir_p) $(DESTDIR)$(somedir)
  1333. # so it does not work when $(somedir) is undefined and
  1334. # $(DESTDIR) is not.
  1335. # To support the latter case, we have to write
  1336. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1337. # so the `.' trick is pointless.
  1338. mkdir_p='mkdir -p --'
  1339. else
  1340. # On NextStep and OpenStep, the `mkdir' command does not
  1341. # recognize any option. It will interpret all options as
  1342. # directories to create, and then abort because `.' already
  1343. # exists.
  1344. for d in ./-p ./--version;
  1345. do
  1346. test -d $d && rmdir $d
  1347. done
  1348. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1349. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1350. mkdir_p='$(mkinstalldirs)'
  1351. else
  1352. mkdir_p='$(install_sh) -d'
  1353. fi
  1354. fi
  1355. for ac_prog in gawk mawk nawk awk
  1356. do
  1357. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1358. set dummy $ac_prog; ac_word=$2
  1359. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1360. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1361. if test "${ac_cv_prog_AWK+set}" = set; then
  1362. echo $ECHO_N "(cached) $ECHO_C" >&6
  1363. else
  1364. if test -n "$AWK"; then
  1365. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1366. else
  1367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1368. for as_dir in $PATH
  1369. do
  1370. IFS=$as_save_IFS
  1371. test -z "$as_dir" && as_dir=.
  1372. for ac_exec_ext in '' $ac_executable_extensions; do
  1373. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1374. ac_cv_prog_AWK="$ac_prog"
  1375. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1376. break 2
  1377. fi
  1378. done
  1379. done
  1380. fi
  1381. fi
  1382. AWK=$ac_cv_prog_AWK
  1383. if test -n "$AWK"; then
  1384. echo "$as_me:$LINENO: result: $AWK" >&5
  1385. echo "${ECHO_T}$AWK" >&6
  1386. else
  1387. echo "$as_me:$LINENO: result: no" >&5
  1388. echo "${ECHO_T}no" >&6
  1389. fi
  1390. test -n "$AWK" && break
  1391. done
  1392. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1393. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1394. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1395. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1396. echo $ECHO_N "(cached) $ECHO_C" >&6
  1397. else
  1398. cat >conftest.make <<\_ACEOF
  1399. all:
  1400. @echo 'ac_maketemp="$(MAKE)"'
  1401. _ACEOF
  1402. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1403. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1404. if test -n "$ac_maketemp"; then
  1405. eval ac_cv_prog_make_${ac_make}_set=yes
  1406. else
  1407. eval ac_cv_prog_make_${ac_make}_set=no
  1408. fi
  1409. rm -f conftest.make
  1410. fi
  1411. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1412. echo "$as_me:$LINENO: result: yes" >&5
  1413. echo "${ECHO_T}yes" >&6
  1414. SET_MAKE=
  1415. else
  1416. echo "$as_me:$LINENO: result: no" >&5
  1417. echo "${ECHO_T}no" >&6
  1418. SET_MAKE="MAKE=${MAKE-make}"
  1419. fi
  1420. rm -rf .tst 2>/dev/null
  1421. mkdir .tst 2>/dev/null
  1422. if test -d .tst; then
  1423. am__leading_dot=.
  1424. else
  1425. am__leading_dot=_
  1426. fi
  1427. rmdir .tst 2>/dev/null
  1428. # test to see if srcdir already configured
  1429. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1430. test -f $srcdir/config.status; then
  1431. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1432. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1433. { (exit 1); exit 1; }; }
  1434. fi
  1435. # test whether we have cygpath
  1436. if test -z "$CYGPATH_W"; then
  1437. if (cygpath --version) >/dev/null 2>/dev/null; then
  1438. CYGPATH_W='cygpath -w'
  1439. else
  1440. CYGPATH_W=echo
  1441. fi
  1442. fi
  1443. # Define the identity of the package.
  1444. PACKAGE='aria2c'
  1445. VERSION='0.2.1'
  1446. cat >>confdefs.h <<_ACEOF
  1447. #define PACKAGE "$PACKAGE"
  1448. _ACEOF
  1449. cat >>confdefs.h <<_ACEOF
  1450. #define VERSION "$VERSION"
  1451. _ACEOF
  1452. # Some tools Automake needs.
  1453. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1454. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1455. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1456. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1457. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1458. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1459. # Installed binaries are usually stripped using `strip' when the user
  1460. # run `make install-strip'. However `strip' might not be the right
  1461. # tool to use in cross-compilation environments, therefore Automake
  1462. # will honor the `STRIP' environment variable to overrule this program.
  1463. if test "$cross_compiling" != no; then
  1464. if test -n "$ac_tool_prefix"; then
  1465. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1466. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1467. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1468. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1469. if test "${ac_cv_prog_STRIP+set}" = set; then
  1470. echo $ECHO_N "(cached) $ECHO_C" >&6
  1471. else
  1472. if test -n "$STRIP"; then
  1473. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1474. else
  1475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1476. for as_dir in $PATH
  1477. do
  1478. IFS=$as_save_IFS
  1479. test -z "$as_dir" && as_dir=.
  1480. for ac_exec_ext in '' $ac_executable_extensions; do
  1481. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1482. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1483. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1484. break 2
  1485. fi
  1486. done
  1487. done
  1488. fi
  1489. fi
  1490. STRIP=$ac_cv_prog_STRIP
  1491. if test -n "$STRIP"; then
  1492. echo "$as_me:$LINENO: result: $STRIP" >&5
  1493. echo "${ECHO_T}$STRIP" >&6
  1494. else
  1495. echo "$as_me:$LINENO: result: no" >&5
  1496. echo "${ECHO_T}no" >&6
  1497. fi
  1498. fi
  1499. if test -z "$ac_cv_prog_STRIP"; then
  1500. ac_ct_STRIP=$STRIP
  1501. # Extract the first word of "strip", so it can be a program name with args.
  1502. set dummy strip; ac_word=$2
  1503. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1504. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1505. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1506. echo $ECHO_N "(cached) $ECHO_C" >&6
  1507. else
  1508. if test -n "$ac_ct_STRIP"; then
  1509. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1510. else
  1511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1512. for as_dir in $PATH
  1513. do
  1514. IFS=$as_save_IFS
  1515. test -z "$as_dir" && as_dir=.
  1516. for ac_exec_ext in '' $ac_executable_extensions; do
  1517. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1518. ac_cv_prog_ac_ct_STRIP="strip"
  1519. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1520. break 2
  1521. fi
  1522. done
  1523. done
  1524. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1525. fi
  1526. fi
  1527. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1528. if test -n "$ac_ct_STRIP"; then
  1529. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1530. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1531. else
  1532. echo "$as_me:$LINENO: result: no" >&5
  1533. echo "${ECHO_T}no" >&6
  1534. fi
  1535. STRIP=$ac_ct_STRIP
  1536. else
  1537. STRIP="$ac_cv_prog_STRIP"
  1538. fi
  1539. fi
  1540. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1541. # We need awk for the "check" target. The system "awk" is bad on
  1542. # some platforms.
  1543. # Always define AMTAR for backward compatibility.
  1544. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1545. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1546. # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
  1547. if test "${with_cppunit_prefix+set}" = set; then
  1548. withval="$with_cppunit_prefix"
  1549. cppunit_config_prefix="$withval"
  1550. else
  1551. cppunit_config_prefix=""
  1552. fi;
  1553. # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
  1554. if test "${with_cppunit_exec_prefix+set}" = set; then
  1555. withval="$with_cppunit_exec_prefix"
  1556. cppunit_config_exec_prefix="$withval"
  1557. else
  1558. cppunit_config_exec_prefix=""
  1559. fi;
  1560. if test x$cppunit_config_exec_prefix != x ; then
  1561. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  1562. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1563. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  1564. fi
  1565. fi
  1566. if test x$cppunit_config_prefix != x ; then
  1567. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  1568. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1569. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  1570. fi
  1571. fi
  1572. # Extract the first word of "cppunit-config", so it can be a program name with args.
  1573. set dummy cppunit-config; ac_word=$2
  1574. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1575. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1576. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  1577. echo $ECHO_N "(cached) $ECHO_C" >&6
  1578. else
  1579. case $CPPUNIT_CONFIG in
  1580. [\\/]* | ?:[\\/]*)
  1581. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  1582. ;;
  1583. *)
  1584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1585. for as_dir in $PATH
  1586. do
  1587. IFS=$as_save_IFS
  1588. test -z "$as_dir" && as_dir=.
  1589. for ac_exec_ext in '' $ac_executable_extensions; do
  1590. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1591. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  1592. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1593. break 2
  1594. fi
  1595. done
  1596. done
  1597. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  1598. ;;
  1599. esac
  1600. fi
  1601. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  1602. if test -n "$CPPUNIT_CONFIG"; then
  1603. echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  1604. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
  1605. else
  1606. echo "$as_me:$LINENO: result: no" >&5
  1607. echo "${ECHO_T}no" >&6
  1608. fi
  1609. cppunit_version_min=1.10.2
  1610. echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  1611. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
  1612. no_cppunit=""
  1613. if test "$CPPUNIT_CONFIG" = "no" ; then
  1614. no_cppunit=yes
  1615. else
  1616. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  1617. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  1618. cppunit_version=`$CPPUNIT_CONFIG --version`
  1619. cppunit_major_version=`echo $cppunit_version | \
  1620. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1621. cppunit_minor_version=`echo $cppunit_version | \
  1622. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1623. cppunit_micro_version=`echo $cppunit_version | \
  1624. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1625. cppunit_major_min=`echo $cppunit_version_min | \
  1626. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1627. cppunit_minor_min=`echo $cppunit_version_min | \
  1628. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1629. cppunit_micro_min=`echo $cppunit_version_min | \
  1630. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1631. cppunit_version_proper=`expr \
  1632. $cppunit_major_version \> $cppunit_major_min \| \
  1633. $cppunit_major_version \= $cppunit_major_min \& \
  1634. $cppunit_minor_version \> $cppunit_minor_min \| \
  1635. $cppunit_major_version \= $cppunit_major_min \& \
  1636. $cppunit_minor_version \= $cppunit_minor_min \& \
  1637. $cppunit_micro_version \>= $cppunit_micro_min `
  1638. if test "$cppunit_version_proper" = "1" ; then
  1639. echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  1640. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
  1641. else
  1642. echo "$as_me:$LINENO: result: no" >&5
  1643. echo "${ECHO_T}no" >&6
  1644. no_cppunit=yes
  1645. fi
  1646. fi
  1647. if test "x$no_cppunit" = x ; then
  1648. :
  1649. else
  1650. CPPUNIT_CFLAGS=""
  1651. CPPUNIT_LIBS=""
  1652. :
  1653. fi
  1654. ac_config_headers="$ac_config_headers config.h"
  1655. if test -n "$ac_tool_prefix"; then
  1656. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  1657. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  1658. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1659. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1660. if test "${ac_cv_prog_RANLIB+set}" = set; then
  1661. echo $ECHO_N "(cached) $ECHO_C" >&6
  1662. else
  1663. if test -n "$RANLIB"; then
  1664. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1665. else
  1666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1667. for as_dir in $PATH
  1668. do
  1669. IFS=$as_save_IFS
  1670. test -z "$as_dir" && as_dir=.
  1671. for ac_exec_ext in '' $ac_executable_extensions; do
  1672. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1673. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  1674. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1675. break 2
  1676. fi
  1677. done
  1678. done
  1679. fi
  1680. fi
  1681. RANLIB=$ac_cv_prog_RANLIB
  1682. if test -n "$RANLIB"; then
  1683. echo "$as_me:$LINENO: result: $RANLIB" >&5
  1684. echo "${ECHO_T}$RANLIB" >&6
  1685. else
  1686. echo "$as_me:$LINENO: result: no" >&5
  1687. echo "${ECHO_T}no" >&6
  1688. fi
  1689. fi
  1690. if test -z "$ac_cv_prog_RANLIB"; then
  1691. ac_ct_RANLIB=$RANLIB
  1692. # Extract the first word of "ranlib", so it can be a program name with args.
  1693. set dummy ranlib; ac_word=$2
  1694. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1695. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1696. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  1697. echo $ECHO_N "(cached) $ECHO_C" >&6
  1698. else
  1699. if test -n "$ac_ct_RANLIB"; then
  1700. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  1701. else
  1702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1703. for as_dir in $PATH
  1704. do
  1705. IFS=$as_save_IFS
  1706. test -z "$as_dir" && as_dir=.
  1707. for ac_exec_ext in '' $ac_executable_extensions; do
  1708. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1709. ac_cv_prog_ac_ct_RANLIB="ranlib"
  1710. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1711. break 2
  1712. fi
  1713. done
  1714. done
  1715. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  1716. fi
  1717. fi
  1718. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  1719. if test -n "$ac_ct_RANLIB"; then
  1720. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  1721. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  1722. else
  1723. echo "$as_me:$LINENO: result: no" >&5
  1724. echo "${ECHO_T}no" >&6
  1725. fi
  1726. RANLIB=$ac_ct_RANLIB
  1727. else
  1728. RANLIB="$ac_cv_prog_RANLIB"
  1729. fi
  1730. MKINSTALLDIRS=
  1731. if test -n "$ac_aux_dir"; then
  1732. case "$ac_aux_dir" in
  1733. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  1734. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  1735. esac
  1736. fi
  1737. if test -z "$MKINSTALLDIRS"; then
  1738. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  1739. fi
  1740. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  1741. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  1742. # Check whether --enable-nls or --disable-nls was given.
  1743. if test "${enable_nls+set}" = set; then
  1744. enableval="$enable_nls"
  1745. USE_NLS=$enableval
  1746. else
  1747. USE_NLS=yes
  1748. fi;
  1749. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  1750. echo "${ECHO_T}$USE_NLS" >&6
  1751. # Prepare PATH_SEPARATOR.
  1752. # The user is always right.
  1753. if test "${PATH_SEPARATOR+set}" != set; then
  1754. echo "#! /bin/sh" >conf$$.sh
  1755. echo "exit 0" >>conf$$.sh
  1756. chmod +x conf$$.sh
  1757. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  1758. PATH_SEPARATOR=';'
  1759. else
  1760. PATH_SEPARATOR=:
  1761. fi
  1762. rm -f conf$$.sh
  1763. fi
  1764. # Find out how to test for executable files. Don't use a zero-byte file,
  1765. # as systems may use methods other than mode bits to determine executability.
  1766. cat >conf$$.file <<_ASEOF
  1767. #! /bin/sh
  1768. exit 0
  1769. _ASEOF
  1770. chmod +x conf$$.file
  1771. if test -x conf$$.file >/dev/null 2>&1; then
  1772. ac_executable_p="test -x"
  1773. else
  1774. ac_executable_p="test -f"
  1775. fi
  1776. rm -f conf$$.file
  1777. # Extract the first word of "msgfmt", so it can be a program name with args.
  1778. set dummy msgfmt; ac_word=$2
  1779. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1780. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1781. if test "${ac_cv_path_MSGFMT+set}" = set; then
  1782. echo $ECHO_N "(cached) $ECHO_C" >&6
  1783. else
  1784. case "$MSGFMT" in
  1785. [\\/]* | ?:[\\/]*)
  1786. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  1787. ;;
  1788. *)
  1789. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  1790. for ac_dir in $PATH; do
  1791. IFS="$ac_save_IFS"
  1792. test -z "$ac_dir" && ac_dir=.
  1793. for ac_exec_ext in '' $ac_executable_extensions; do
  1794. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  1795. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  1796. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  1797. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  1798. break 2
  1799. fi
  1800. fi
  1801. done
  1802. done
  1803. IFS="$ac_save_IFS"
  1804. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  1805. ;;
  1806. esac
  1807. fi
  1808. MSGFMT="$ac_cv_path_MSGFMT"
  1809. if test "$MSGFMT" != ":"; then
  1810. echo "$as_me:$LINENO: result: $MSGFMT" >&5
  1811. echo "${ECHO_T}$MSGFMT" >&6
  1812. else
  1813. echo "$as_me:$LINENO: result: no" >&5
  1814. echo "${ECHO_T}no" >&6
  1815. fi
  1816. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  1817. set dummy gmsgfmt; ac_word=$2
  1818. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1819. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1820. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  1821. echo $ECHO_N "(cached) $ECHO_C" >&6
  1822. else
  1823. case $GMSGFMT in
  1824. [\\/]* | ?:[\\/]*)
  1825. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  1826. ;;
  1827. *)
  1828. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1829. for as_dir in $PATH
  1830. do
  1831. IFS=$as_save_IFS
  1832. test -z "$as_dir" && as_dir=.
  1833. for ac_exec_ext in '' $ac_executable_extensions; do
  1834. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1835. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  1836. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1837. break 2
  1838. fi
  1839. done
  1840. done
  1841. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  1842. ;;
  1843. esac
  1844. fi
  1845. GMSGFMT=$ac_cv_path_GMSGFMT
  1846. if test -n "$GMSGFMT"; then
  1847. echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  1848. echo "${ECHO_T}$GMSGFMT" >&6
  1849. else
  1850. echo "$as_me:$LINENO: result: no" >&5
  1851. echo "${ECHO_T}no" >&6
  1852. fi
  1853. # Prepare PATH_SEPARATOR.
  1854. # The user is always right.
  1855. if test "${PATH_SEPARATOR+set}" != set; then
  1856. echo "#! /bin/sh" >conf$$.sh
  1857. echo "exit 0" >>conf$$.sh
  1858. chmod +x conf$$.sh
  1859. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  1860. PATH_SEPARATOR=';'
  1861. else
  1862. PATH_SEPARATOR=:
  1863. fi
  1864. rm -f conf$$.sh
  1865. fi
  1866. # Find out how to test for executable files. Don't use a zero-byte file,
  1867. # as systems may use methods other than mode bits to determine executability.
  1868. cat >conf$$.file <<_ASEOF
  1869. #! /bin/sh
  1870. exit 0
  1871. _ASEOF
  1872. chmod +x conf$$.file
  1873. if test -x conf$$.file >/dev/null 2>&1; then
  1874. ac_executable_p="test -x"
  1875. else
  1876. ac_executable_p="test -f"
  1877. fi
  1878. rm -f conf$$.file
  1879. # Extract the first word of "xgettext", so it can be a program name with args.
  1880. set dummy xgettext; ac_word=$2
  1881. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1882. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1883. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  1884. echo $ECHO_N "(cached) $ECHO_C" >&6
  1885. else
  1886. case "$XGETTEXT" in
  1887. [\\/]* | ?:[\\/]*)
  1888. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  1889. ;;
  1890. *)
  1891. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  1892. for ac_dir in $PATH; do
  1893. IFS="$ac_save_IFS"
  1894. test -z "$ac_dir" && ac_dir=.
  1895. for ac_exec_ext in '' $ac_executable_extensions; do
  1896. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  1897. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  1898. (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
  1899. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  1900. break 2
  1901. fi
  1902. fi
  1903. done
  1904. done
  1905. IFS="$ac_save_IFS"
  1906. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  1907. ;;
  1908. esac
  1909. fi
  1910. XGETTEXT="$ac_cv_path_XGETTEXT"
  1911. if test "$XGETTEXT" != ":"; then
  1912. echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  1913. echo "${ECHO_T}$XGETTEXT" >&6
  1914. else
  1915. echo "$as_me:$LINENO: result: no" >&5
  1916. echo "${ECHO_T}no" >&6
  1917. fi
  1918. rm -f messages.po
  1919. # Prepare PATH_SEPARATOR.
  1920. # The user is always right.
  1921. if test "${PATH_SEPARATOR+set}" != set; then
  1922. echo "#! /bin/sh" >conf$$.sh
  1923. echo "exit 0" >>conf$$.sh
  1924. chmod +x conf$$.sh
  1925. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  1926. PATH_SEPARATOR=';'
  1927. else
  1928. PATH_SEPARATOR=:
  1929. fi
  1930. rm -f conf$$.sh
  1931. fi
  1932. # Find out how to test for executable files. Don't use a zero-byte file,
  1933. # as systems may use methods other than mode bits to determine executability.
  1934. cat >conf$$.file <<_ASEOF
  1935. #! /bin/sh
  1936. exit 0
  1937. _ASEOF
  1938. chmod +x conf$$.file
  1939. if test -x conf$$.file >/dev/null 2>&1; then
  1940. ac_executable_p="test -x"
  1941. else
  1942. ac_executable_p="test -f"
  1943. fi
  1944. rm -f conf$$.file
  1945. # Extract the first word of "msgmerge", so it can be a program name with args.
  1946. set dummy msgmerge; ac_word=$2
  1947. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1948. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1949. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  1950. echo $ECHO_N "(cached) $ECHO_C" >&6
  1951. else
  1952. case "$MSGMERGE" in
  1953. [\\/]* | ?:[\\/]*)
  1954. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  1955. ;;
  1956. *)
  1957. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  1958. for ac_dir in $PATH; do
  1959. IFS="$ac_save_IFS"
  1960. test -z "$ac_dir" && ac_dir=.
  1961. for ac_exec_ext in '' $ac_executable_extensions; do
  1962. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  1963. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  1964. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  1965. break 2
  1966. fi
  1967. fi
  1968. done
  1969. done
  1970. IFS="$ac_save_IFS"
  1971. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  1972. ;;
  1973. esac
  1974. fi
  1975. MSGMERGE="$ac_cv_path_MSGMERGE"
  1976. if test "$MSGMERGE" != ":"; then
  1977. echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  1978. echo "${ECHO_T}$MSGMERGE" >&6
  1979. else
  1980. echo "$as_me:$LINENO: result: no" >&5
  1981. echo "${ECHO_T}no" >&6
  1982. fi
  1983. if test "$GMSGFMT" != ":"; then
  1984. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  1985. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  1986. : ;
  1987. else
  1988. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  1989. echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  1990. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
  1991. GMSGFMT=":"
  1992. fi
  1993. fi
  1994. if test "$XGETTEXT" != ":"; then
  1995. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  1996. (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
  1997. : ;
  1998. else
  1999. echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  2000. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
  2001. XGETTEXT=":"
  2002. fi
  2003. rm -f messages.po
  2004. fi
  2005. ac_config_commands="$ac_config_commands default-1"
  2006. DEPDIR="${am__leading_dot}deps"
  2007. ac_config_commands="$ac_config_commands depfiles"
  2008. am_make=${MAKE-make}
  2009. cat > confinc << 'END'
  2010. am__doit:
  2011. @echo done
  2012. .PHONY: am__doit
  2013. END
  2014. # If we don't find an include directive, just comment out the code.
  2015. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2016. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2017. am__include="#"
  2018. am__quote=
  2019. _am_result=none
  2020. # First try GNU make style include.
  2021. echo "include confinc" > confmf
  2022. # We grep out `Entering directory' and `Leaving directory'
  2023. # messages which can occur if `w' ends up in MAKEFLAGS.
  2024. # In particular we don't look at `^make:' because GNU make might
  2025. # be invoked under some other name (usually "gmake"), in which
  2026. # case it prints its new name instead of `make'.
  2027. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2028. am__include=include
  2029. am__quote=
  2030. _am_result=GNU
  2031. fi
  2032. # Now try BSD make style include.
  2033. if test "$am__include" = "#"; then
  2034. echo '.include "confinc"' > confmf
  2035. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2036. am__include=.include
  2037. am__quote="\""
  2038. _am_result=BSD
  2039. fi
  2040. fi
  2041. echo "$as_me:$LINENO: result: $_am_result" >&5
  2042. echo "${ECHO_T}$_am_result" >&6
  2043. rm -f confinc confmf
  2044. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2045. if test "${enable_dependency_tracking+set}" = set; then
  2046. enableval="$enable_dependency_tracking"
  2047. fi;
  2048. if test "x$enable_dependency_tracking" != xno; then
  2049. am_depcomp="$ac_aux_dir/depcomp"
  2050. AMDEPBACKSLASH='\'
  2051. fi
  2052. if test "x$enable_dependency_tracking" != xno; then
  2053. AMDEP_TRUE=
  2054. AMDEP_FALSE='#'
  2055. else
  2056. AMDEP_TRUE='#'
  2057. AMDEP_FALSE=
  2058. fi
  2059. ac_ext=c
  2060. ac_cpp='$CPP $CPPFLAGS'
  2061. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2062. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2063. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2064. if test -n "$ac_tool_prefix"; then
  2065. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2066. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2067. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2068. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2069. if test "${ac_cv_prog_CC+set}" = set; then
  2070. echo $ECHO_N "(cached) $ECHO_C" >&6
  2071. else
  2072. if test -n "$CC"; then
  2073. ac_cv_prog_CC="$CC" # Let the user override the test.
  2074. else
  2075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2076. for as_dir in $PATH
  2077. do
  2078. IFS=$as_save_IFS
  2079. test -z "$as_dir" && as_dir=.
  2080. for ac_exec_ext in '' $ac_executable_extensions; do
  2081. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2082. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2083. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2084. break 2
  2085. fi
  2086. done
  2087. done
  2088. fi
  2089. fi
  2090. CC=$ac_cv_prog_CC
  2091. if test -n "$CC"; then
  2092. echo "$as_me:$LINENO: result: $CC" >&5
  2093. echo "${ECHO_T}$CC" >&6
  2094. else
  2095. echo "$as_me:$LINENO: result: no" >&5
  2096. echo "${ECHO_T}no" >&6
  2097. fi
  2098. fi
  2099. if test -z "$ac_cv_prog_CC"; then
  2100. ac_ct_CC=$CC
  2101. # Extract the first word of "gcc", so it can be a program name with args.
  2102. set dummy gcc; ac_word=$2
  2103. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2104. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2105. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2106. echo $ECHO_N "(cached) $ECHO_C" >&6
  2107. else
  2108. if test -n "$ac_ct_CC"; then
  2109. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2110. else
  2111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2112. for as_dir in $PATH
  2113. do
  2114. IFS=$as_save_IFS
  2115. test -z "$as_dir" && as_dir=.
  2116. for ac_exec_ext in '' $ac_executable_extensions; do
  2117. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2118. ac_cv_prog_ac_ct_CC="gcc"
  2119. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2120. break 2
  2121. fi
  2122. done
  2123. done
  2124. fi
  2125. fi
  2126. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2127. if test -n "$ac_ct_CC"; then
  2128. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2129. echo "${ECHO_T}$ac_ct_CC" >&6
  2130. else
  2131. echo "$as_me:$LINENO: result: no" >&5
  2132. echo "${ECHO_T}no" >&6
  2133. fi
  2134. CC=$ac_ct_CC
  2135. else
  2136. CC="$ac_cv_prog_CC"
  2137. fi
  2138. if test -z "$CC"; then
  2139. if test -n "$ac_tool_prefix"; then
  2140. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2141. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2142. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2143. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2144. if test "${ac_cv_prog_CC+set}" = set; then
  2145. echo $ECHO_N "(cached) $ECHO_C" >&6
  2146. else
  2147. if test -n "$CC"; then
  2148. ac_cv_prog_CC="$CC" # Let the user override the test.
  2149. else
  2150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2151. for as_dir in $PATH
  2152. do
  2153. IFS=$as_save_IFS
  2154. test -z "$as_dir" && as_dir=.
  2155. for ac_exec_ext in '' $ac_executable_extensions; do
  2156. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2157. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2158. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2159. break 2
  2160. fi
  2161. done
  2162. done
  2163. fi
  2164. fi
  2165. CC=$ac_cv_prog_CC
  2166. if test -n "$CC"; then
  2167. echo "$as_me:$LINENO: result: $CC" >&5
  2168. echo "${ECHO_T}$CC" >&6
  2169. else
  2170. echo "$as_me:$LINENO: result: no" >&5
  2171. echo "${ECHO_T}no" >&6
  2172. fi
  2173. fi
  2174. if test -z "$ac_cv_prog_CC"; then
  2175. ac_ct_CC=$CC
  2176. # Extract the first word of "cc", so it can be a program name with args.
  2177. set dummy cc; ac_word=$2
  2178. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2179. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2180. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2181. echo $ECHO_N "(cached) $ECHO_C" >&6
  2182. else
  2183. if test -n "$ac_ct_CC"; then
  2184. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2185. else
  2186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2187. for as_dir in $PATH
  2188. do
  2189. IFS=$as_save_IFS
  2190. test -z "$as_dir" && as_dir=.
  2191. for ac_exec_ext in '' $ac_executable_extensions; do
  2192. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2193. ac_cv_prog_ac_ct_CC="cc"
  2194. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2195. break 2
  2196. fi
  2197. done
  2198. done
  2199. fi
  2200. fi
  2201. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2202. if test -n "$ac_ct_CC"; then
  2203. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2204. echo "${ECHO_T}$ac_ct_CC" >&6
  2205. else
  2206. echo "$as_me:$LINENO: result: no" >&5
  2207. echo "${ECHO_T}no" >&6
  2208. fi
  2209. CC=$ac_ct_CC
  2210. else
  2211. CC="$ac_cv_prog_CC"
  2212. fi
  2213. fi
  2214. if test -z "$CC"; then
  2215. # Extract the first word of "cc", so it can be a program name with args.
  2216. set dummy cc; ac_word=$2
  2217. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2218. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2219. if test "${ac_cv_prog_CC+set}" = set; then
  2220. echo $ECHO_N "(cached) $ECHO_C" >&6
  2221. else
  2222. if test -n "$CC"; then
  2223. ac_cv_prog_CC="$CC" # Let the user override the test.
  2224. else
  2225. ac_prog_rejected=no
  2226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2227. for as_dir in $PATH
  2228. do
  2229. IFS=$as_save_IFS
  2230. test -z "$as_dir" && as_dir=.
  2231. for ac_exec_ext in '' $ac_executable_extensions; do
  2232. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2233. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2234. ac_prog_rejected=yes
  2235. continue
  2236. fi
  2237. ac_cv_prog_CC="cc"
  2238. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2239. break 2
  2240. fi
  2241. done
  2242. done
  2243. if test $ac_prog_rejected = yes; then
  2244. # We found a bogon in the path, so make sure we never use it.
  2245. set dummy $ac_cv_prog_CC
  2246. shift
  2247. if test $# != 0; then
  2248. # We chose a different compiler from the bogus one.
  2249. # However, it has the same basename, so the bogon will be chosen
  2250. # first if we set CC to just the basename; use the full file name.
  2251. shift
  2252. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2253. fi
  2254. fi
  2255. fi
  2256. fi
  2257. CC=$ac_cv_prog_CC
  2258. if test -n "$CC"; then
  2259. echo "$as_me:$LINENO: result: $CC" >&5
  2260. echo "${ECHO_T}$CC" >&6
  2261. else
  2262. echo "$as_me:$LINENO: result: no" >&5
  2263. echo "${ECHO_T}no" >&6
  2264. fi
  2265. fi
  2266. if test -z "$CC"; then
  2267. if test -n "$ac_tool_prefix"; then
  2268. for ac_prog in cl
  2269. do
  2270. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2271. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2272. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2273. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2274. if test "${ac_cv_prog_CC+set}" = set; then
  2275. echo $ECHO_N "(cached) $ECHO_C" >&6
  2276. else
  2277. if test -n "$CC"; then
  2278. ac_cv_prog_CC="$CC" # Let the user override the test.
  2279. else
  2280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2281. for as_dir in $PATH
  2282. do
  2283. IFS=$as_save_IFS
  2284. test -z "$as_dir" && as_dir=.
  2285. for ac_exec_ext in '' $ac_executable_extensions; do
  2286. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2287. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2288. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2289. break 2
  2290. fi
  2291. done
  2292. done
  2293. fi
  2294. fi
  2295. CC=$ac_cv_prog_CC
  2296. if test -n "$CC"; then
  2297. echo "$as_me:$LINENO: result: $CC" >&5
  2298. echo "${ECHO_T}$CC" >&6
  2299. else
  2300. echo "$as_me:$LINENO: result: no" >&5
  2301. echo "${ECHO_T}no" >&6
  2302. fi
  2303. test -n "$CC" && break
  2304. done
  2305. fi
  2306. if test -z "$CC"; then
  2307. ac_ct_CC=$CC
  2308. for ac_prog in cl
  2309. do
  2310. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2311. set dummy $ac_prog; ac_word=$2
  2312. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2313. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2314. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2315. echo $ECHO_N "(cached) $ECHO_C" >&6
  2316. else
  2317. if test -n "$ac_ct_CC"; then
  2318. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2319. else
  2320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2321. for as_dir in $PATH
  2322. do
  2323. IFS=$as_save_IFS
  2324. test -z "$as_dir" && as_dir=.
  2325. for ac_exec_ext in '' $ac_executable_extensions; do
  2326. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2327. ac_cv_prog_ac_ct_CC="$ac_prog"
  2328. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2329. break 2
  2330. fi
  2331. done
  2332. done
  2333. fi
  2334. fi
  2335. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2336. if test -n "$ac_ct_CC"; then
  2337. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2338. echo "${ECHO_T}$ac_ct_CC" >&6
  2339. else
  2340. echo "$as_me:$LINENO: result: no" >&5
  2341. echo "${ECHO_T}no" >&6
  2342. fi
  2343. test -n "$ac_ct_CC" && break
  2344. done
  2345. CC=$ac_ct_CC
  2346. fi
  2347. fi
  2348. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2349. See \`config.log' for more details." >&5
  2350. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2351. See \`config.log' for more details." >&2;}
  2352. { (exit 1); exit 1; }; }
  2353. # Provide some information about the compiler.
  2354. echo "$as_me:$LINENO:" \
  2355. "checking for C compiler version" >&5
  2356. ac_compiler=`set X $ac_compile; echo $2`
  2357. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2358. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2359. ac_status=$?
  2360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2361. (exit $ac_status); }
  2362. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2363. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2364. ac_status=$?
  2365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2366. (exit $ac_status); }
  2367. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2368. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2369. ac_status=$?
  2370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2371. (exit $ac_status); }
  2372. cat >conftest.$ac_ext <<_ACEOF
  2373. /* confdefs.h. */
  2374. _ACEOF
  2375. cat confdefs.h >>conftest.$ac_ext
  2376. cat >>conftest.$ac_ext <<_ACEOF
  2377. /* end confdefs.h. */
  2378. int
  2379. main ()
  2380. {
  2381. ;
  2382. return 0;
  2383. }
  2384. _ACEOF
  2385. ac_clean_files_save=$ac_clean_files
  2386. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2387. # Try to create an executable without -o first, disregard a.out.
  2388. # It will help us diagnose broken compilers, and finding out an intuition
  2389. # of exeext.
  2390. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2391. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  2392. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2393. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2394. (eval $ac_link_default) 2>&5
  2395. ac_status=$?
  2396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2397. (exit $ac_status); }; then
  2398. # Find the output, starting from the most likely. This scheme is
  2399. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2400. # resort.
  2401. # Be careful to initialize this variable, since it used to be cached.
  2402. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2403. ac_cv_exeext=
  2404. # b.out is created by i960 compilers.
  2405. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2406. do
  2407. test -f "$ac_file" || continue
  2408. case $ac_file in
  2409. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2410. ;;
  2411. conftest.$ac_ext )
  2412. # This is the source file.
  2413. ;;
  2414. [ab].out )
  2415. # We found the default executable, but exeext='' is most
  2416. # certainly right.
  2417. break;;
  2418. *.* )
  2419. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2420. # FIXME: I believe we export ac_cv_exeext for Libtool,
  2421. # but it would be cool to find out if it's true. Does anybody
  2422. # maintain Libtool? --akim.
  2423. export ac_cv_exeext
  2424. break;;
  2425. * )
  2426. break;;
  2427. esac
  2428. done
  2429. else
  2430. echo "$as_me: failed program was:" >&5
  2431. sed 's/^/| /' conftest.$ac_ext >&5
  2432. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2433. See \`config.log' for more details." >&5
  2434. echo "$as_me: error: C compiler cannot create executables
  2435. See \`config.log' for more details." >&2;}
  2436. { (exit 77); exit 77; }; }
  2437. fi
  2438. ac_exeext=$ac_cv_exeext
  2439. echo "$as_me:$LINENO: result: $ac_file" >&5
  2440. echo "${ECHO_T}$ac_file" >&6
  2441. # Check the compiler produces executables we can run. If not, either
  2442. # the compiler is broken, or we cross compile.
  2443. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2444. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2445. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2446. # If not cross compiling, check that we can run a simple program.
  2447. if test "$cross_compiling" != yes; then
  2448. if { ac_try='./$ac_file'
  2449. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2450. (eval $ac_try) 2>&5
  2451. ac_status=$?
  2452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2453. (exit $ac_status); }; }; then
  2454. cross_compiling=no
  2455. else
  2456. if test "$cross_compiling" = maybe; then
  2457. cross_compiling=yes
  2458. else
  2459. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2460. If you meant to cross compile, use \`--host'.
  2461. See \`config.log' for more details." >&5
  2462. echo "$as_me: error: cannot run C compiled programs.
  2463. If you meant to cross compile, use \`--host'.
  2464. See \`config.log' for more details." >&2;}
  2465. { (exit 1); exit 1; }; }
  2466. fi
  2467. fi
  2468. fi
  2469. echo "$as_me:$LINENO: result: yes" >&5
  2470. echo "${ECHO_T}yes" >&6
  2471. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2472. ac_clean_files=$ac_clean_files_save
  2473. # Check the compiler produces executables we can run. If not, either
  2474. # the compiler is broken, or we cross compile.
  2475. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2476. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2477. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2478. echo "${ECHO_T}$cross_compiling" >&6
  2479. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2480. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2481. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2482. (eval $ac_link) 2>&5
  2483. ac_status=$?
  2484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2485. (exit $ac_status); }; then
  2486. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2487. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2488. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2489. # `rm'.
  2490. for ac_file in conftest.exe conftest conftest.*; do
  2491. test -f "$ac_file" || continue
  2492. case $ac_file in
  2493. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2494. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2495. export ac_cv_exeext
  2496. break;;
  2497. * ) break;;
  2498. esac
  2499. done
  2500. else
  2501. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2502. See \`config.log' for more details." >&5
  2503. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2504. See \`config.log' for more details." >&2;}
  2505. { (exit 1); exit 1; }; }
  2506. fi
  2507. rm -f conftest$ac_cv_exeext
  2508. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2509. echo "${ECHO_T}$ac_cv_exeext" >&6
  2510. rm -f conftest.$ac_ext
  2511. EXEEXT=$ac_cv_exeext
  2512. ac_exeext=$EXEEXT
  2513. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2514. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2515. if test "${ac_cv_objext+set}" = set; then
  2516. echo $ECHO_N "(cached) $ECHO_C" >&6
  2517. else
  2518. cat >conftest.$ac_ext <<_ACEOF
  2519. /* confdefs.h. */
  2520. _ACEOF
  2521. cat confdefs.h >>conftest.$ac_ext
  2522. cat >>conftest.$ac_ext <<_ACEOF
  2523. /* end confdefs.h. */
  2524. int
  2525. main ()
  2526. {
  2527. ;
  2528. return 0;
  2529. }
  2530. _ACEOF
  2531. rm -f conftest.o conftest.obj
  2532. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2533. (eval $ac_compile) 2>&5
  2534. ac_status=$?
  2535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2536. (exit $ac_status); }; then
  2537. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2538. case $ac_file in
  2539. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2540. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2541. break;;
  2542. esac
  2543. done
  2544. else
  2545. echo "$as_me: failed program was:" >&5
  2546. sed 's/^/| /' conftest.$ac_ext >&5
  2547. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2548. See \`config.log' for more details." >&5
  2549. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2550. See \`config.log' for more details." >&2;}
  2551. { (exit 1); exit 1; }; }
  2552. fi
  2553. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2554. fi
  2555. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2556. echo "${ECHO_T}$ac_cv_objext" >&6
  2557. OBJEXT=$ac_cv_objext
  2558. ac_objext=$OBJEXT
  2559. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2560. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2561. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2562. echo $ECHO_N "(cached) $ECHO_C" >&6
  2563. else
  2564. cat >conftest.$ac_ext <<_ACEOF
  2565. /* confdefs.h. */
  2566. _ACEOF
  2567. cat confdefs.h >>conftest.$ac_ext
  2568. cat >>conftest.$ac_ext <<_ACEOF
  2569. /* end confdefs.h. */
  2570. int
  2571. main ()
  2572. {
  2573. #ifndef __GNUC__
  2574. choke me
  2575. #endif
  2576. ;
  2577. return 0;
  2578. }
  2579. _ACEOF
  2580. rm -f conftest.$ac_objext
  2581. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2582. (eval $ac_compile) 2>conftest.er1
  2583. ac_status=$?
  2584. grep -v '^ *+' conftest.er1 >conftest.err
  2585. rm -f conftest.er1
  2586. cat conftest.err >&5
  2587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2588. (exit $ac_status); } &&
  2589. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2590. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2591. (eval $ac_try) 2>&5
  2592. ac_status=$?
  2593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2594. (exit $ac_status); }; } &&
  2595. { ac_try='test -s conftest.$ac_objext'
  2596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2597. (eval $ac_try) 2>&5
  2598. ac_status=$?
  2599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2600. (exit $ac_status); }; }; then
  2601. ac_compiler_gnu=yes
  2602. else
  2603. echo "$as_me: failed program was:" >&5
  2604. sed 's/^/| /' conftest.$ac_ext >&5
  2605. ac_compiler_gnu=no
  2606. fi
  2607. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2608. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2609. fi
  2610. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2611. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2612. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2613. ac_test_CFLAGS=${CFLAGS+set}
  2614. ac_save_CFLAGS=$CFLAGS
  2615. CFLAGS="-g"
  2616. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2617. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2618. if test "${ac_cv_prog_cc_g+set}" = set; then
  2619. echo $ECHO_N "(cached) $ECHO_C" >&6
  2620. else
  2621. cat >conftest.$ac_ext <<_ACEOF
  2622. /* confdefs.h. */
  2623. _ACEOF
  2624. cat confdefs.h >>conftest.$ac_ext
  2625. cat >>conftest.$ac_ext <<_ACEOF
  2626. /* end confdefs.h. */
  2627. int
  2628. main ()
  2629. {
  2630. ;
  2631. return 0;
  2632. }
  2633. _ACEOF
  2634. rm -f conftest.$ac_objext
  2635. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2636. (eval $ac_compile) 2>conftest.er1
  2637. ac_status=$?
  2638. grep -v '^ *+' conftest.er1 >conftest.err
  2639. rm -f conftest.er1
  2640. cat conftest.err >&5
  2641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2642. (exit $ac_status); } &&
  2643. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2644. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2645. (eval $ac_try) 2>&5
  2646. ac_status=$?
  2647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2648. (exit $ac_status); }; } &&
  2649. { ac_try='test -s conftest.$ac_objext'
  2650. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2651. (eval $ac_try) 2>&5
  2652. ac_status=$?
  2653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2654. (exit $ac_status); }; }; then
  2655. ac_cv_prog_cc_g=yes
  2656. else
  2657. echo "$as_me: failed program was:" >&5
  2658. sed 's/^/| /' conftest.$ac_ext >&5
  2659. ac_cv_prog_cc_g=no
  2660. fi
  2661. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2662. fi
  2663. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2664. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2665. if test "$ac_test_CFLAGS" = set; then
  2666. CFLAGS=$ac_save_CFLAGS
  2667. elif test $ac_cv_prog_cc_g = yes; then
  2668. if test "$GCC" = yes; then
  2669. CFLAGS="-g -O2"
  2670. else
  2671. CFLAGS="-g"
  2672. fi
  2673. else
  2674. if test "$GCC" = yes; then
  2675. CFLAGS="-O2"
  2676. else
  2677. CFLAGS=
  2678. fi
  2679. fi
  2680. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2681. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2682. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2683. echo $ECHO_N "(cached) $ECHO_C" >&6
  2684. else
  2685. ac_cv_prog_cc_stdc=no
  2686. ac_save_CC=$CC
  2687. cat >conftest.$ac_ext <<_ACEOF
  2688. /* confdefs.h. */
  2689. _ACEOF
  2690. cat confdefs.h >>conftest.$ac_ext
  2691. cat >>conftest.$ac_ext <<_ACEOF
  2692. /* end confdefs.h. */
  2693. #include <stdarg.h>
  2694. #include <stdio.h>
  2695. #include <sys/types.h>
  2696. #include <sys/stat.h>
  2697. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2698. struct buf { int x; };
  2699. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2700. static char *e (p, i)
  2701. char **p;
  2702. int i;
  2703. {
  2704. return p[i];
  2705. }
  2706. static char *f (char * (*g) (char **, int), char **p, ...)
  2707. {
  2708. char *s;
  2709. va_list v;
  2710. va_start (v,p);
  2711. s = g (p, va_arg (v,int));
  2712. va_end (v);
  2713. return s;
  2714. }
  2715. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2716. function prototypes and stuff, but not '\xHH' hex character constants.
  2717. These don't provoke an error unfortunately, instead are silently treated
  2718. as 'x'. The following induces an error, until -std1 is added to get
  2719. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2720. array size at least. It's necessary to write '\x00'==0 to get something
  2721. that's true only with -std1. */
  2722. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2723. int test (int i, double x);
  2724. struct s1 {int (*f) (int a);};
  2725. struct s2 {int (*f) (double a);};
  2726. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2727. int argc;
  2728. char **argv;
  2729. int
  2730. main ()
  2731. {
  2732. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2733. ;
  2734. return 0;
  2735. }
  2736. _ACEOF
  2737. # Don't try gcc -ansi; that turns off useful extensions and
  2738. # breaks some systems' header files.
  2739. # AIX -qlanglvl=ansi
  2740. # Ultrix and OSF/1 -std1
  2741. # HP-UX 10.20 and later -Ae
  2742. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2743. # SVR4 -Xc -D__EXTENSIONS__
  2744. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2745. do
  2746. CC="$ac_save_CC $ac_arg"
  2747. rm -f conftest.$ac_objext
  2748. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2749. (eval $ac_compile) 2>conftest.er1
  2750. ac_status=$?
  2751. grep -v '^ *+' conftest.er1 >conftest.err
  2752. rm -f conftest.er1
  2753. cat conftest.err >&5
  2754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2755. (exit $ac_status); } &&
  2756. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2757. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2758. (eval $ac_try) 2>&5
  2759. ac_status=$?
  2760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2761. (exit $ac_status); }; } &&
  2762. { ac_try='test -s conftest.$ac_objext'
  2763. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2764. (eval $ac_try) 2>&5
  2765. ac_status=$?
  2766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2767. (exit $ac_status); }; }; then
  2768. ac_cv_prog_cc_stdc=$ac_arg
  2769. break
  2770. else
  2771. echo "$as_me: failed program was:" >&5
  2772. sed 's/^/| /' conftest.$ac_ext >&5
  2773. fi
  2774. rm -f conftest.err conftest.$ac_objext
  2775. done
  2776. rm -f conftest.$ac_ext conftest.$ac_objext
  2777. CC=$ac_save_CC
  2778. fi
  2779. case "x$ac_cv_prog_cc_stdc" in
  2780. x|xno)
  2781. echo "$as_me:$LINENO: result: none needed" >&5
  2782. echo "${ECHO_T}none needed" >&6 ;;
  2783. *)
  2784. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2785. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2786. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2787. esac
  2788. # Some people use a C++ compiler to compile C. Since we use `exit',
  2789. # in C++ we need to declare it. In case someone uses the same compiler
  2790. # for both compiling C and C++ we need to have the C++ compiler decide
  2791. # the declaration of exit, since it's the most demanding environment.
  2792. cat >conftest.$ac_ext <<_ACEOF
  2793. #ifndef __cplusplus
  2794. choke me
  2795. #endif
  2796. _ACEOF
  2797. rm -f conftest.$ac_objext
  2798. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2799. (eval $ac_compile) 2>conftest.er1
  2800. ac_status=$?
  2801. grep -v '^ *+' conftest.er1 >conftest.err
  2802. rm -f conftest.er1
  2803. cat conftest.err >&5
  2804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2805. (exit $ac_status); } &&
  2806. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2807. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2808. (eval $ac_try) 2>&5
  2809. ac_status=$?
  2810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2811. (exit $ac_status); }; } &&
  2812. { ac_try='test -s conftest.$ac_objext'
  2813. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2814. (eval $ac_try) 2>&5
  2815. ac_status=$?
  2816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2817. (exit $ac_status); }; }; then
  2818. for ac_declaration in \
  2819. '' \
  2820. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2821. 'extern "C" void std::exit (int); using std::exit;' \
  2822. 'extern "C" void exit (int) throw ();' \
  2823. 'extern "C" void exit (int);' \
  2824. 'void exit (int);'
  2825. do
  2826. cat >conftest.$ac_ext <<_ACEOF
  2827. /* confdefs.h. */
  2828. _ACEOF
  2829. cat confdefs.h >>conftest.$ac_ext
  2830. cat >>conftest.$ac_ext <<_ACEOF
  2831. /* end confdefs.h. */
  2832. $ac_declaration
  2833. #include <stdlib.h>
  2834. int
  2835. main ()
  2836. {
  2837. exit (42);
  2838. ;
  2839. return 0;
  2840. }
  2841. _ACEOF
  2842. rm -f conftest.$ac_objext
  2843. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2844. (eval $ac_compile) 2>conftest.er1
  2845. ac_status=$?
  2846. grep -v '^ *+' conftest.er1 >conftest.err
  2847. rm -f conftest.er1
  2848. cat conftest.err >&5
  2849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2850. (exit $ac_status); } &&
  2851. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2852. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2853. (eval $ac_try) 2>&5
  2854. ac_status=$?
  2855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2856. (exit $ac_status); }; } &&
  2857. { ac_try='test -s conftest.$ac_objext'
  2858. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2859. (eval $ac_try) 2>&5
  2860. ac_status=$?
  2861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2862. (exit $ac_status); }; }; then
  2863. :
  2864. else
  2865. echo "$as_me: failed program was:" >&5
  2866. sed 's/^/| /' conftest.$ac_ext >&5
  2867. continue
  2868. fi
  2869. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2870. cat >conftest.$ac_ext <<_ACEOF
  2871. /* confdefs.h. */
  2872. _ACEOF
  2873. cat confdefs.h >>conftest.$ac_ext
  2874. cat >>conftest.$ac_ext <<_ACEOF
  2875. /* end confdefs.h. */
  2876. $ac_declaration
  2877. int
  2878. main ()
  2879. {
  2880. exit (42);
  2881. ;
  2882. return 0;
  2883. }
  2884. _ACEOF
  2885. rm -f conftest.$ac_objext
  2886. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2887. (eval $ac_compile) 2>conftest.er1
  2888. ac_status=$?
  2889. grep -v '^ *+' conftest.er1 >conftest.err
  2890. rm -f conftest.er1
  2891. cat conftest.err >&5
  2892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2893. (exit $ac_status); } &&
  2894. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2895. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2896. (eval $ac_try) 2>&5
  2897. ac_status=$?
  2898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2899. (exit $ac_status); }; } &&
  2900. { ac_try='test -s conftest.$ac_objext'
  2901. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2902. (eval $ac_try) 2>&5
  2903. ac_status=$?
  2904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2905. (exit $ac_status); }; }; then
  2906. break
  2907. else
  2908. echo "$as_me: failed program was:" >&5
  2909. sed 's/^/| /' conftest.$ac_ext >&5
  2910. fi
  2911. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2912. done
  2913. rm -f conftest*
  2914. if test -n "$ac_declaration"; then
  2915. echo '#ifdef __cplusplus' >>confdefs.h
  2916. echo $ac_declaration >>confdefs.h
  2917. echo '#endif' >>confdefs.h
  2918. fi
  2919. else
  2920. echo "$as_me: failed program was:" >&5
  2921. sed 's/^/| /' conftest.$ac_ext >&5
  2922. fi
  2923. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2924. ac_ext=c
  2925. ac_cpp='$CPP $CPPFLAGS'
  2926. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2927. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2928. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2929. depcc="$CC" am_compiler_list=
  2930. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2931. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2932. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2933. echo $ECHO_N "(cached) $ECHO_C" >&6
  2934. else
  2935. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2936. # We make a subdir and do the tests there. Otherwise we can end up
  2937. # making bogus files that we don't know about and never remove. For
  2938. # instance it was reported that on HP-UX the gcc test will end up
  2939. # making a dummy file named `D' -- because `-MD' means `put the output
  2940. # in D'.
  2941. mkdir conftest.dir
  2942. # Copy depcomp to subdir because otherwise we won't find it if we're
  2943. # using a relative directory.
  2944. cp "$am_depcomp" conftest.dir
  2945. cd conftest.dir
  2946. # We will build objects and dependencies in a subdirectory because
  2947. # it helps to detect inapplicable dependency modes. For instance
  2948. # both Tru64's cc and ICC support -MD to output dependencies as a
  2949. # side effect of compilation, but ICC will put the dependencies in
  2950. # the current directory while Tru64 will put them in the object
  2951. # directory.
  2952. mkdir sub
  2953. am_cv_CC_dependencies_compiler_type=none
  2954. if test "$am_compiler_list" = ""; then
  2955. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2956. fi
  2957. for depmode in $am_compiler_list; do
  2958. # Setup a source with many dependencies, because some compilers
  2959. # like to wrap large dependency lists on column 80 (with \), and
  2960. # we should not choose a depcomp mode which is confused by this.
  2961. #
  2962. # We need to recreate these files for each test, as the compiler may
  2963. # overwrite some of them when testing with obscure command lines.
  2964. # This happens at least with the AIX C compiler.
  2965. : > sub/conftest.c
  2966. for i in 1 2 3 4 5 6; do
  2967. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2968. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2969. # Solaris 8's {/usr,}/bin/sh.
  2970. touch sub/conftst$i.h
  2971. done
  2972. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2973. case $depmode in
  2974. nosideeffect)
  2975. # after this tag, mechanisms are not by side-effect, so they'll
  2976. # only be used when explicitly requested
  2977. if test "x$enable_dependency_tracking" = xyes; then
  2978. continue
  2979. else
  2980. break
  2981. fi
  2982. ;;
  2983. none) break ;;
  2984. esac
  2985. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2986. # mode. It turns out that the SunPro C++ compiler does not properly
  2987. # handle `-M -o', and we need to detect this.
  2988. if depmode=$depmode \
  2989. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2990. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2991. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2992. >/dev/null 2>conftest.err &&
  2993. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2994. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2995. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2996. # icc doesn't choke on unknown options, it will just issue warnings
  2997. # or remarks (even with -Werror). So we grep stderr for any message
  2998. # that says an option was ignored or not supported.
  2999. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3000. # icc: Command line warning: ignoring option '-M'; no argument required
  3001. # The diagnosis changed in icc 8.0:
  3002. # icc: Command line remark: option '-MP' not supported
  3003. if (grep 'ignoring option' conftest.err ||
  3004. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3005. am_cv_CC_dependencies_compiler_type=$depmode
  3006. break
  3007. fi
  3008. fi
  3009. done
  3010. cd ..
  3011. rm -rf conftest.dir
  3012. else
  3013. am_cv_CC_dependencies_compiler_type=none
  3014. fi
  3015. fi
  3016. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3017. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3018. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3019. if
  3020. test "x$enable_dependency_tracking" != xno \
  3021. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3022. am__fastdepCC_TRUE=
  3023. am__fastdepCC_FALSE='#'
  3024. else
  3025. am__fastdepCC_TRUE='#'
  3026. am__fastdepCC_FALSE=
  3027. fi
  3028. # Make sure we can run config.sub.
  3029. $ac_config_sub sun4 >/dev/null 2>&1 ||
  3030. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  3031. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  3032. { (exit 1); exit 1; }; }
  3033. echo "$as_me:$LINENO: checking build system type" >&5
  3034. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  3035. if test "${ac_cv_build+set}" = set; then
  3036. echo $ECHO_N "(cached) $ECHO_C" >&6
  3037. else
  3038. ac_cv_build_alias=$build_alias
  3039. test -z "$ac_cv_build_alias" &&
  3040. ac_cv_build_alias=`$ac_config_guess`
  3041. test -z "$ac_cv_build_alias" &&
  3042. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3043. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3044. { (exit 1); exit 1; }; }
  3045. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  3046. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  3047. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  3048. { (exit 1); exit 1; }; }
  3049. fi
  3050. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3051. echo "${ECHO_T}$ac_cv_build" >&6
  3052. build=$ac_cv_build
  3053. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  3054. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  3055. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  3056. echo "$as_me:$LINENO: checking host system type" >&5
  3057. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  3058. if test "${ac_cv_host+set}" = set; then
  3059. echo $ECHO_N "(cached) $ECHO_C" >&6
  3060. else
  3061. ac_cv_host_alias=$host_alias
  3062. test -z "$ac_cv_host_alias" &&
  3063. ac_cv_host_alias=$ac_cv_build_alias
  3064. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  3065. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  3066. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  3067. { (exit 1); exit 1; }; }
  3068. fi
  3069. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3070. echo "${ECHO_T}$ac_cv_host" >&6
  3071. host=$ac_cv_host
  3072. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  3073. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  3074. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  3075. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  3076. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  3077. if test "${ac_cv_search_strerror+set}" = set; then
  3078. echo $ECHO_N "(cached) $ECHO_C" >&6
  3079. else
  3080. ac_func_search_save_LIBS=$LIBS
  3081. ac_cv_search_strerror=no
  3082. cat >conftest.$ac_ext <<_ACEOF
  3083. /* confdefs.h. */
  3084. _ACEOF
  3085. cat confdefs.h >>conftest.$ac_ext
  3086. cat >>conftest.$ac_ext <<_ACEOF
  3087. /* end confdefs.h. */
  3088. /* Override any gcc2 internal prototype to avoid an error. */
  3089. #ifdef __cplusplus
  3090. extern "C"
  3091. #endif
  3092. /* We use char because int might match the return type of a gcc2
  3093. builtin and then its argument prototype would still apply. */
  3094. char strerror ();
  3095. int
  3096. main ()
  3097. {
  3098. strerror ();
  3099. ;
  3100. return 0;
  3101. }
  3102. _ACEOF
  3103. rm -f conftest.$ac_objext conftest$ac_exeext
  3104. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3105. (eval $ac_link) 2>conftest.er1
  3106. ac_status=$?
  3107. grep -v '^ *+' conftest.er1 >conftest.err
  3108. rm -f conftest.er1
  3109. cat conftest.err >&5
  3110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3111. (exit $ac_status); } &&
  3112. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3113. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3114. (eval $ac_try) 2>&5
  3115. ac_status=$?
  3116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3117. (exit $ac_status); }; } &&
  3118. { ac_try='test -s conftest$ac_exeext'
  3119. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3120. (eval $ac_try) 2>&5
  3121. ac_status=$?
  3122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3123. (exit $ac_status); }; }; then
  3124. ac_cv_search_strerror="none required"
  3125. else
  3126. echo "$as_me: failed program was:" >&5
  3127. sed 's/^/| /' conftest.$ac_ext >&5
  3128. fi
  3129. rm -f conftest.err conftest.$ac_objext \
  3130. conftest$ac_exeext conftest.$ac_ext
  3131. if test "$ac_cv_search_strerror" = no; then
  3132. for ac_lib in cposix; do
  3133. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3134. cat >conftest.$ac_ext <<_ACEOF
  3135. /* confdefs.h. */
  3136. _ACEOF
  3137. cat confdefs.h >>conftest.$ac_ext
  3138. cat >>conftest.$ac_ext <<_ACEOF
  3139. /* end confdefs.h. */
  3140. /* Override any gcc2 internal prototype to avoid an error. */
  3141. #ifdef __cplusplus
  3142. extern "C"
  3143. #endif
  3144. /* We use char because int might match the return type of a gcc2
  3145. builtin and then its argument prototype would still apply. */
  3146. char strerror ();
  3147. int
  3148. main ()
  3149. {
  3150. strerror ();
  3151. ;
  3152. return 0;
  3153. }
  3154. _ACEOF
  3155. rm -f conftest.$ac_objext conftest$ac_exeext
  3156. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3157. (eval $ac_link) 2>conftest.er1
  3158. ac_status=$?
  3159. grep -v '^ *+' conftest.er1 >conftest.err
  3160. rm -f conftest.er1
  3161. cat conftest.err >&5
  3162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3163. (exit $ac_status); } &&
  3164. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  3170. { ac_try='test -s conftest$ac_exeext'
  3171. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3172. (eval $ac_try) 2>&5
  3173. ac_status=$?
  3174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3175. (exit $ac_status); }; }; then
  3176. ac_cv_search_strerror="-l$ac_lib"
  3177. break
  3178. else
  3179. echo "$as_me: failed program was:" >&5
  3180. sed 's/^/| /' conftest.$ac_ext >&5
  3181. fi
  3182. rm -f conftest.err conftest.$ac_objext \
  3183. conftest$ac_exeext conftest.$ac_ext
  3184. done
  3185. fi
  3186. LIBS=$ac_func_search_save_LIBS
  3187. fi
  3188. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  3189. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  3190. if test "$ac_cv_search_strerror" != no; then
  3191. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  3192. fi
  3193. ac_ext=c
  3194. ac_cpp='$CPP $CPPFLAGS'
  3195. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3196. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3197. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3198. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3199. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  3200. # On Suns, sometimes $CPP names a directory.
  3201. if test -n "$CPP" && test -d "$CPP"; then
  3202. CPP=
  3203. fi
  3204. if test -z "$CPP"; then
  3205. if test "${ac_cv_prog_CPP+set}" = set; then
  3206. echo $ECHO_N "(cached) $ECHO_C" >&6
  3207. else
  3208. # Double quotes because CPP needs to be expanded
  3209. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3210. do
  3211. ac_preproc_ok=false
  3212. for ac_c_preproc_warn_flag in '' yes
  3213. do
  3214. # Use a header file that comes with gcc, so configuring glibc
  3215. # with a fresh cross-compiler works.
  3216. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3217. # <limits.h> exists even on freestanding compilers.
  3218. # On the NeXT, cc -E runs the code through the compiler's parser,
  3219. # not just through cpp. "Syntax error" is here to catch this case.
  3220. cat >conftest.$ac_ext <<_ACEOF
  3221. /* confdefs.h. */
  3222. _ACEOF
  3223. cat confdefs.h >>conftest.$ac_ext
  3224. cat >>conftest.$ac_ext <<_ACEOF
  3225. /* end confdefs.h. */
  3226. #ifdef __STDC__
  3227. # include <limits.h>
  3228. #else
  3229. # include <assert.h>
  3230. #endif
  3231. Syntax error
  3232. _ACEOF
  3233. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3234. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3235. ac_status=$?
  3236. grep -v '^ *+' conftest.er1 >conftest.err
  3237. rm -f conftest.er1
  3238. cat conftest.err >&5
  3239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3240. (exit $ac_status); } >/dev/null; then
  3241. if test -s conftest.err; then
  3242. ac_cpp_err=$ac_c_preproc_warn_flag
  3243. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3244. else
  3245. ac_cpp_err=
  3246. fi
  3247. else
  3248. ac_cpp_err=yes
  3249. fi
  3250. if test -z "$ac_cpp_err"; then
  3251. :
  3252. else
  3253. echo "$as_me: failed program was:" >&5
  3254. sed 's/^/| /' conftest.$ac_ext >&5
  3255. # Broken: fails on valid input.
  3256. continue
  3257. fi
  3258. rm -f conftest.err conftest.$ac_ext
  3259. # OK, works on sane cases. Now check whether non-existent headers
  3260. # can be detected and how.
  3261. cat >conftest.$ac_ext <<_ACEOF
  3262. /* confdefs.h. */
  3263. _ACEOF
  3264. cat confdefs.h >>conftest.$ac_ext
  3265. cat >>conftest.$ac_ext <<_ACEOF
  3266. /* end confdefs.h. */
  3267. #include <ac_nonexistent.h>
  3268. _ACEOF
  3269. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3270. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3271. ac_status=$?
  3272. grep -v '^ *+' conftest.er1 >conftest.err
  3273. rm -f conftest.er1
  3274. cat conftest.err >&5
  3275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3276. (exit $ac_status); } >/dev/null; then
  3277. if test -s conftest.err; then
  3278. ac_cpp_err=$ac_c_preproc_warn_flag
  3279. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3280. else
  3281. ac_cpp_err=
  3282. fi
  3283. else
  3284. ac_cpp_err=yes
  3285. fi
  3286. if test -z "$ac_cpp_err"; then
  3287. # Broken: success on invalid input.
  3288. continue
  3289. else
  3290. echo "$as_me: failed program was:" >&5
  3291. sed 's/^/| /' conftest.$ac_ext >&5
  3292. # Passes both tests.
  3293. ac_preproc_ok=:
  3294. break
  3295. fi
  3296. rm -f conftest.err conftest.$ac_ext
  3297. done
  3298. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3299. rm -f conftest.err conftest.$ac_ext
  3300. if $ac_preproc_ok; then
  3301. break
  3302. fi
  3303. done
  3304. ac_cv_prog_CPP=$CPP
  3305. fi
  3306. CPP=$ac_cv_prog_CPP
  3307. else
  3308. ac_cv_prog_CPP=$CPP
  3309. fi
  3310. echo "$as_me:$LINENO: result: $CPP" >&5
  3311. echo "${ECHO_T}$CPP" >&6
  3312. ac_preproc_ok=false
  3313. for ac_c_preproc_warn_flag in '' yes
  3314. do
  3315. # Use a header file that comes with gcc, so configuring glibc
  3316. # with a fresh cross-compiler works.
  3317. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3318. # <limits.h> exists even on freestanding compilers.
  3319. # On the NeXT, cc -E runs the code through the compiler's parser,
  3320. # not just through cpp. "Syntax error" is here to catch this case.
  3321. cat >conftest.$ac_ext <<_ACEOF
  3322. /* confdefs.h. */
  3323. _ACEOF
  3324. cat confdefs.h >>conftest.$ac_ext
  3325. cat >>conftest.$ac_ext <<_ACEOF
  3326. /* end confdefs.h. */
  3327. #ifdef __STDC__
  3328. # include <limits.h>
  3329. #else
  3330. # include <assert.h>
  3331. #endif
  3332. Syntax error
  3333. _ACEOF
  3334. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3335. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3336. ac_status=$?
  3337. grep -v '^ *+' conftest.er1 >conftest.err
  3338. rm -f conftest.er1
  3339. cat conftest.err >&5
  3340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3341. (exit $ac_status); } >/dev/null; then
  3342. if test -s conftest.err; then
  3343. ac_cpp_err=$ac_c_preproc_warn_flag
  3344. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3345. else
  3346. ac_cpp_err=
  3347. fi
  3348. else
  3349. ac_cpp_err=yes
  3350. fi
  3351. if test -z "$ac_cpp_err"; then
  3352. :
  3353. else
  3354. echo "$as_me: failed program was:" >&5
  3355. sed 's/^/| /' conftest.$ac_ext >&5
  3356. # Broken: fails on valid input.
  3357. continue
  3358. fi
  3359. rm -f conftest.err conftest.$ac_ext
  3360. # OK, works on sane cases. Now check whether non-existent headers
  3361. # can be detected and how.
  3362. cat >conftest.$ac_ext <<_ACEOF
  3363. /* confdefs.h. */
  3364. _ACEOF
  3365. cat confdefs.h >>conftest.$ac_ext
  3366. cat >>conftest.$ac_ext <<_ACEOF
  3367. /* end confdefs.h. */
  3368. #include <ac_nonexistent.h>
  3369. _ACEOF
  3370. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3371. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3372. ac_status=$?
  3373. grep -v '^ *+' conftest.er1 >conftest.err
  3374. rm -f conftest.er1
  3375. cat conftest.err >&5
  3376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3377. (exit $ac_status); } >/dev/null; then
  3378. if test -s conftest.err; then
  3379. ac_cpp_err=$ac_c_preproc_warn_flag
  3380. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3381. else
  3382. ac_cpp_err=
  3383. fi
  3384. else
  3385. ac_cpp_err=yes
  3386. fi
  3387. if test -z "$ac_cpp_err"; then
  3388. # Broken: success on invalid input.
  3389. continue
  3390. else
  3391. echo "$as_me: failed program was:" >&5
  3392. sed 's/^/| /' conftest.$ac_ext >&5
  3393. # Passes both tests.
  3394. ac_preproc_ok=:
  3395. break
  3396. fi
  3397. rm -f conftest.err conftest.$ac_ext
  3398. done
  3399. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3400. rm -f conftest.err conftest.$ac_ext
  3401. if $ac_preproc_ok; then
  3402. :
  3403. else
  3404. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3405. See \`config.log' for more details." >&5
  3406. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3407. See \`config.log' for more details." >&2;}
  3408. { (exit 1); exit 1; }; }
  3409. fi
  3410. ac_ext=c
  3411. ac_cpp='$CPP $CPPFLAGS'
  3412. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3413. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3414. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3415. echo "$as_me:$LINENO: checking for egrep" >&5
  3416. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3417. if test "${ac_cv_prog_egrep+set}" = set; then
  3418. echo $ECHO_N "(cached) $ECHO_C" >&6
  3419. else
  3420. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3421. then ac_cv_prog_egrep='grep -E'
  3422. else ac_cv_prog_egrep='egrep'
  3423. fi
  3424. fi
  3425. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3426. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3427. EGREP=$ac_cv_prog_egrep
  3428. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3429. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3430. if test "${ac_cv_header_stdc+set}" = set; then
  3431. echo $ECHO_N "(cached) $ECHO_C" >&6
  3432. else
  3433. cat >conftest.$ac_ext <<_ACEOF
  3434. /* confdefs.h. */
  3435. _ACEOF
  3436. cat confdefs.h >>conftest.$ac_ext
  3437. cat >>conftest.$ac_ext <<_ACEOF
  3438. /* end confdefs.h. */
  3439. #include <stdlib.h>
  3440. #include <stdarg.h>
  3441. #include <string.h>
  3442. #include <float.h>
  3443. int
  3444. main ()
  3445. {
  3446. ;
  3447. return 0;
  3448. }
  3449. _ACEOF
  3450. rm -f conftest.$ac_objext
  3451. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3452. (eval $ac_compile) 2>conftest.er1
  3453. ac_status=$?
  3454. grep -v '^ *+' conftest.er1 >conftest.err
  3455. rm -f conftest.er1
  3456. cat conftest.err >&5
  3457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3458. (exit $ac_status); } &&
  3459. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  3465. { ac_try='test -s conftest.$ac_objext'
  3466. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3467. (eval $ac_try) 2>&5
  3468. ac_status=$?
  3469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3470. (exit $ac_status); }; }; then
  3471. ac_cv_header_stdc=yes
  3472. else
  3473. echo "$as_me: failed program was:" >&5
  3474. sed 's/^/| /' conftest.$ac_ext >&5
  3475. ac_cv_header_stdc=no
  3476. fi
  3477. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3478. if test $ac_cv_header_stdc = yes; then
  3479. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3480. cat >conftest.$ac_ext <<_ACEOF
  3481. /* confdefs.h. */
  3482. _ACEOF
  3483. cat confdefs.h >>conftest.$ac_ext
  3484. cat >>conftest.$ac_ext <<_ACEOF
  3485. /* end confdefs.h. */
  3486. #include <string.h>
  3487. _ACEOF
  3488. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3489. $EGREP "memchr" >/dev/null 2>&1; then
  3490. :
  3491. else
  3492. ac_cv_header_stdc=no
  3493. fi
  3494. rm -f conftest*
  3495. fi
  3496. if test $ac_cv_header_stdc = yes; then
  3497. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3498. cat >conftest.$ac_ext <<_ACEOF
  3499. /* confdefs.h. */
  3500. _ACEOF
  3501. cat confdefs.h >>conftest.$ac_ext
  3502. cat >>conftest.$ac_ext <<_ACEOF
  3503. /* end confdefs.h. */
  3504. #include <stdlib.h>
  3505. _ACEOF
  3506. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3507. $EGREP "free" >/dev/null 2>&1; then
  3508. :
  3509. else
  3510. ac_cv_header_stdc=no
  3511. fi
  3512. rm -f conftest*
  3513. fi
  3514. if test $ac_cv_header_stdc = yes; then
  3515. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3516. if test "$cross_compiling" = yes; then
  3517. :
  3518. else
  3519. cat >conftest.$ac_ext <<_ACEOF
  3520. /* confdefs.h. */
  3521. _ACEOF
  3522. cat confdefs.h >>conftest.$ac_ext
  3523. cat >>conftest.$ac_ext <<_ACEOF
  3524. /* end confdefs.h. */
  3525. #include <ctype.h>
  3526. #if ((' ' & 0x0FF) == 0x020)
  3527. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3528. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3529. #else
  3530. # define ISLOWER(c) \
  3531. (('a' <= (c) && (c) <= 'i') \
  3532. || ('j' <= (c) && (c) <= 'r') \
  3533. || ('s' <= (c) && (c) <= 'z'))
  3534. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3535. #endif
  3536. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3537. int
  3538. main ()
  3539. {
  3540. int i;
  3541. for (i = 0; i < 256; i++)
  3542. if (XOR (islower (i), ISLOWER (i))
  3543. || toupper (i) != TOUPPER (i))
  3544. exit(2);
  3545. exit (0);
  3546. }
  3547. _ACEOF
  3548. rm -f conftest$ac_exeext
  3549. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3550. (eval $ac_link) 2>&5
  3551. ac_status=$?
  3552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3553. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3554. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3555. (eval $ac_try) 2>&5
  3556. ac_status=$?
  3557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3558. (exit $ac_status); }; }; then
  3559. :
  3560. else
  3561. echo "$as_me: program exited with status $ac_status" >&5
  3562. echo "$as_me: failed program was:" >&5
  3563. sed 's/^/| /' conftest.$ac_ext >&5
  3564. ( exit $ac_status )
  3565. ac_cv_header_stdc=no
  3566. fi
  3567. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3568. fi
  3569. fi
  3570. fi
  3571. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3572. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3573. if test $ac_cv_header_stdc = yes; then
  3574. cat >>confdefs.h <<\_ACEOF
  3575. #define STDC_HEADERS 1
  3576. _ACEOF
  3577. fi
  3578. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  3579. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  3580. if test "${ac_cv_c_const+set}" = set; then
  3581. echo $ECHO_N "(cached) $ECHO_C" >&6
  3582. else
  3583. cat >conftest.$ac_ext <<_ACEOF
  3584. /* confdefs.h. */
  3585. _ACEOF
  3586. cat confdefs.h >>conftest.$ac_ext
  3587. cat >>conftest.$ac_ext <<_ACEOF
  3588. /* end confdefs.h. */
  3589. int
  3590. main ()
  3591. {
  3592. /* FIXME: Include the comments suggested by Paul. */
  3593. #ifndef __cplusplus
  3594. /* Ultrix mips cc rejects this. */
  3595. typedef int charset[2];
  3596. const charset x;
  3597. /* SunOS 4.1.1 cc rejects this. */
  3598. char const *const *ccp;
  3599. char **p;
  3600. /* NEC SVR4.0.2 mips cc rejects this. */
  3601. struct point {int x, y;};
  3602. static struct point const zero = {0,0};
  3603. /* AIX XL C 1.02.0.0 rejects this.
  3604. It does not let you subtract one const X* pointer from another in
  3605. an arm of an if-expression whose if-part is not a constant
  3606. expression */
  3607. const char *g = "string";
  3608. ccp = &g + (g ? g-g : 0);
  3609. /* HPUX 7.0 cc rejects these. */
  3610. ++ccp;
  3611. p = (char**) ccp;
  3612. ccp = (char const *const *) p;
  3613. { /* SCO 3.2v4 cc rejects this. */
  3614. char *t;
  3615. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3616. *t++ = 0;
  3617. }
  3618. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3619. int x[] = {25, 17};
  3620. const int *foo = &x[0];
  3621. ++foo;
  3622. }
  3623. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3624. typedef const int *iptr;
  3625. iptr p = 0;
  3626. ++p;
  3627. }
  3628. { /* AIX XL C 1.02.0.0 rejects this saying
  3629. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3630. struct s { int j; const int *ap[3]; };
  3631. struct s *b; b->j = 5;
  3632. }
  3633. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3634. const int foo = 10;
  3635. }
  3636. #endif
  3637. ;
  3638. return 0;
  3639. }
  3640. _ACEOF
  3641. rm -f conftest.$ac_objext
  3642. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3643. (eval $ac_compile) 2>conftest.er1
  3644. ac_status=$?
  3645. grep -v '^ *+' conftest.er1 >conftest.err
  3646. rm -f conftest.er1
  3647. cat conftest.err >&5
  3648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3649. (exit $ac_status); } &&
  3650. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3651. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3652. (eval $ac_try) 2>&5
  3653. ac_status=$?
  3654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3655. (exit $ac_status); }; } &&
  3656. { ac_try='test -s conftest.$ac_objext'
  3657. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3658. (eval $ac_try) 2>&5
  3659. ac_status=$?
  3660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3661. (exit $ac_status); }; }; then
  3662. ac_cv_c_const=yes
  3663. else
  3664. echo "$as_me: failed program was:" >&5
  3665. sed 's/^/| /' conftest.$ac_ext >&5
  3666. ac_cv_c_const=no
  3667. fi
  3668. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3669. fi
  3670. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  3671. echo "${ECHO_T}$ac_cv_c_const" >&6
  3672. if test $ac_cv_c_const = no; then
  3673. cat >>confdefs.h <<\_ACEOF
  3674. #define const
  3675. _ACEOF
  3676. fi
  3677. echo "$as_me:$LINENO: checking for inline" >&5
  3678. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  3679. if test "${ac_cv_c_inline+set}" = set; then
  3680. echo $ECHO_N "(cached) $ECHO_C" >&6
  3681. else
  3682. ac_cv_c_inline=no
  3683. for ac_kw in inline __inline__ __inline; do
  3684. cat >conftest.$ac_ext <<_ACEOF
  3685. /* confdefs.h. */
  3686. _ACEOF
  3687. cat confdefs.h >>conftest.$ac_ext
  3688. cat >>conftest.$ac_ext <<_ACEOF
  3689. /* end confdefs.h. */
  3690. #ifndef __cplusplus
  3691. typedef int foo_t;
  3692. static $ac_kw foo_t static_foo () {return 0; }
  3693. $ac_kw foo_t foo () {return 0; }
  3694. #endif
  3695. _ACEOF
  3696. rm -f conftest.$ac_objext
  3697. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3698. (eval $ac_compile) 2>conftest.er1
  3699. ac_status=$?
  3700. grep -v '^ *+' conftest.er1 >conftest.err
  3701. rm -f conftest.er1
  3702. cat conftest.err >&5
  3703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3704. (exit $ac_status); } &&
  3705. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3706. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3707. (eval $ac_try) 2>&5
  3708. ac_status=$?
  3709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3710. (exit $ac_status); }; } &&
  3711. { ac_try='test -s conftest.$ac_objext'
  3712. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3713. (eval $ac_try) 2>&5
  3714. ac_status=$?
  3715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3716. (exit $ac_status); }; }; then
  3717. ac_cv_c_inline=$ac_kw; break
  3718. else
  3719. echo "$as_me: failed program was:" >&5
  3720. sed 's/^/| /' conftest.$ac_ext >&5
  3721. fi
  3722. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3723. done
  3724. fi
  3725. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  3726. echo "${ECHO_T}$ac_cv_c_inline" >&6
  3727. case $ac_cv_c_inline in
  3728. inline | yes) ;;
  3729. *)
  3730. case $ac_cv_c_inline in
  3731. no) ac_val=;;
  3732. *) ac_val=$ac_cv_c_inline;;
  3733. esac
  3734. cat >>confdefs.h <<_ACEOF
  3735. #ifndef __cplusplus
  3736. #define inline $ac_val
  3737. #endif
  3738. _ACEOF
  3739. ;;
  3740. esac
  3741. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3742. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3743. inttypes.h stdint.h unistd.h
  3744. do
  3745. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3746. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3747. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3748. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3749. echo $ECHO_N "(cached) $ECHO_C" >&6
  3750. else
  3751. cat >conftest.$ac_ext <<_ACEOF
  3752. /* confdefs.h. */
  3753. _ACEOF
  3754. cat confdefs.h >>conftest.$ac_ext
  3755. cat >>conftest.$ac_ext <<_ACEOF
  3756. /* end confdefs.h. */
  3757. $ac_includes_default
  3758. #include <$ac_header>
  3759. _ACEOF
  3760. rm -f conftest.$ac_objext
  3761. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3762. (eval $ac_compile) 2>conftest.er1
  3763. ac_status=$?
  3764. grep -v '^ *+' conftest.er1 >conftest.err
  3765. rm -f conftest.er1
  3766. cat conftest.err >&5
  3767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3768. (exit $ac_status); } &&
  3769. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3770. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3771. (eval $ac_try) 2>&5
  3772. ac_status=$?
  3773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3774. (exit $ac_status); }; } &&
  3775. { ac_try='test -s conftest.$ac_objext'
  3776. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3777. (eval $ac_try) 2>&5
  3778. ac_status=$?
  3779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3780. (exit $ac_status); }; }; then
  3781. eval "$as_ac_Header=yes"
  3782. else
  3783. echo "$as_me: failed program was:" >&5
  3784. sed 's/^/| /' conftest.$ac_ext >&5
  3785. eval "$as_ac_Header=no"
  3786. fi
  3787. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3788. fi
  3789. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3790. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3791. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3792. cat >>confdefs.h <<_ACEOF
  3793. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3794. _ACEOF
  3795. fi
  3796. done
  3797. echo "$as_me:$LINENO: checking for off_t" >&5
  3798. echo $ECHO_N "checking for off_t... $ECHO_C" >&6
  3799. if test "${ac_cv_type_off_t+set}" = set; then
  3800. echo $ECHO_N "(cached) $ECHO_C" >&6
  3801. else
  3802. cat >conftest.$ac_ext <<_ACEOF
  3803. /* confdefs.h. */
  3804. _ACEOF
  3805. cat confdefs.h >>conftest.$ac_ext
  3806. cat >>conftest.$ac_ext <<_ACEOF
  3807. /* end confdefs.h. */
  3808. $ac_includes_default
  3809. int
  3810. main ()
  3811. {
  3812. if ((off_t *) 0)
  3813. return 0;
  3814. if (sizeof (off_t))
  3815. return 0;
  3816. ;
  3817. return 0;
  3818. }
  3819. _ACEOF
  3820. rm -f conftest.$ac_objext
  3821. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3822. (eval $ac_compile) 2>conftest.er1
  3823. ac_status=$?
  3824. grep -v '^ *+' conftest.er1 >conftest.err
  3825. rm -f conftest.er1
  3826. cat conftest.err >&5
  3827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3828. (exit $ac_status); } &&
  3829. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3830. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3831. (eval $ac_try) 2>&5
  3832. ac_status=$?
  3833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3834. (exit $ac_status); }; } &&
  3835. { ac_try='test -s conftest.$ac_objext'
  3836. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3837. (eval $ac_try) 2>&5
  3838. ac_status=$?
  3839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3840. (exit $ac_status); }; }; then
  3841. ac_cv_type_off_t=yes
  3842. else
  3843. echo "$as_me: failed program was:" >&5
  3844. sed 's/^/| /' conftest.$ac_ext >&5
  3845. ac_cv_type_off_t=no
  3846. fi
  3847. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3848. fi
  3849. echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  3850. echo "${ECHO_T}$ac_cv_type_off_t" >&6
  3851. if test $ac_cv_type_off_t = yes; then
  3852. :
  3853. else
  3854. cat >>confdefs.h <<_ACEOF
  3855. #define off_t long
  3856. _ACEOF
  3857. fi
  3858. echo "$as_me:$LINENO: checking for size_t" >&5
  3859. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  3860. if test "${ac_cv_type_size_t+set}" = set; then
  3861. echo $ECHO_N "(cached) $ECHO_C" >&6
  3862. else
  3863. cat >conftest.$ac_ext <<_ACEOF
  3864. /* confdefs.h. */
  3865. _ACEOF
  3866. cat confdefs.h >>conftest.$ac_ext
  3867. cat >>conftest.$ac_ext <<_ACEOF
  3868. /* end confdefs.h. */
  3869. $ac_includes_default
  3870. int
  3871. main ()
  3872. {
  3873. if ((size_t *) 0)
  3874. return 0;
  3875. if (sizeof (size_t))
  3876. return 0;
  3877. ;
  3878. return 0;
  3879. }
  3880. _ACEOF
  3881. rm -f conftest.$ac_objext
  3882. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3883. (eval $ac_compile) 2>conftest.er1
  3884. ac_status=$?
  3885. grep -v '^ *+' conftest.er1 >conftest.err
  3886. rm -f conftest.er1
  3887. cat conftest.err >&5
  3888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3889. (exit $ac_status); } &&
  3890. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3892. (eval $ac_try) 2>&5
  3893. ac_status=$?
  3894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3895. (exit $ac_status); }; } &&
  3896. { ac_try='test -s conftest.$ac_objext'
  3897. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3898. (eval $ac_try) 2>&5
  3899. ac_status=$?
  3900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3901. (exit $ac_status); }; }; then
  3902. ac_cv_type_size_t=yes
  3903. else
  3904. echo "$as_me: failed program was:" >&5
  3905. sed 's/^/| /' conftest.$ac_ext >&5
  3906. ac_cv_type_size_t=no
  3907. fi
  3908. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3909. fi
  3910. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  3911. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  3912. if test $ac_cv_type_size_t = yes; then
  3913. :
  3914. else
  3915. cat >>confdefs.h <<_ACEOF
  3916. #define size_t unsigned
  3917. _ACEOF
  3918. fi
  3919. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  3920. # for constant arguments. Useless!
  3921. echo "$as_me:$LINENO: checking for working alloca.h" >&5
  3922. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
  3923. if test "${ac_cv_working_alloca_h+set}" = set; then
  3924. echo $ECHO_N "(cached) $ECHO_C" >&6
  3925. else
  3926. cat >conftest.$ac_ext <<_ACEOF
  3927. /* confdefs.h. */
  3928. _ACEOF
  3929. cat confdefs.h >>conftest.$ac_ext
  3930. cat >>conftest.$ac_ext <<_ACEOF
  3931. /* end confdefs.h. */
  3932. #include <alloca.h>
  3933. int
  3934. main ()
  3935. {
  3936. char *p = (char *) alloca (2 * sizeof (int));
  3937. ;
  3938. return 0;
  3939. }
  3940. _ACEOF
  3941. rm -f conftest.$ac_objext conftest$ac_exeext
  3942. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3943. (eval $ac_link) 2>conftest.er1
  3944. ac_status=$?
  3945. grep -v '^ *+' conftest.er1 >conftest.err
  3946. rm -f conftest.er1
  3947. cat conftest.err >&5
  3948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3949. (exit $ac_status); } &&
  3950. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3951. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3952. (eval $ac_try) 2>&5
  3953. ac_status=$?
  3954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3955. (exit $ac_status); }; } &&
  3956. { ac_try='test -s conftest$ac_exeext'
  3957. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3958. (eval $ac_try) 2>&5
  3959. ac_status=$?
  3960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3961. (exit $ac_status); }; }; then
  3962. ac_cv_working_alloca_h=yes
  3963. else
  3964. echo "$as_me: failed program was:" >&5
  3965. sed 's/^/| /' conftest.$ac_ext >&5
  3966. ac_cv_working_alloca_h=no
  3967. fi
  3968. rm -f conftest.err conftest.$ac_objext \
  3969. conftest$ac_exeext conftest.$ac_ext
  3970. fi
  3971. echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  3972. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
  3973. if test $ac_cv_working_alloca_h = yes; then
  3974. cat >>confdefs.h <<\_ACEOF
  3975. #define HAVE_ALLOCA_H 1
  3976. _ACEOF
  3977. fi
  3978. echo "$as_me:$LINENO: checking for alloca" >&5
  3979. echo $ECHO_N "checking for alloca... $ECHO_C" >&6
  3980. if test "${ac_cv_func_alloca_works+set}" = set; then
  3981. echo $ECHO_N "(cached) $ECHO_C" >&6
  3982. else
  3983. cat >conftest.$ac_ext <<_ACEOF
  3984. /* confdefs.h. */
  3985. _ACEOF
  3986. cat confdefs.h >>conftest.$ac_ext
  3987. cat >>conftest.$ac_ext <<_ACEOF
  3988. /* end confdefs.h. */
  3989. #ifdef __GNUC__
  3990. # define alloca __builtin_alloca
  3991. #else
  3992. # ifdef _MSC_VER
  3993. # include <malloc.h>
  3994. # define alloca _alloca
  3995. # else
  3996. # if HAVE_ALLOCA_H
  3997. # include <alloca.h>
  3998. # else
  3999. # ifdef _AIX
  4000. #pragma alloca
  4001. # else
  4002. # ifndef alloca /* predefined by HP cc +Olibcalls */
  4003. char *alloca ();
  4004. # endif
  4005. # endif
  4006. # endif
  4007. # endif
  4008. #endif
  4009. int
  4010. main ()
  4011. {
  4012. char *p = (char *) alloca (1);
  4013. ;
  4014. return 0;
  4015. }
  4016. _ACEOF
  4017. rm -f conftest.$ac_objext conftest$ac_exeext
  4018. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4019. (eval $ac_link) 2>conftest.er1
  4020. ac_status=$?
  4021. grep -v '^ *+' conftest.er1 >conftest.err
  4022. rm -f conftest.er1
  4023. cat conftest.err >&5
  4024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4025. (exit $ac_status); } &&
  4026. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4028. (eval $ac_try) 2>&5
  4029. ac_status=$?
  4030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4031. (exit $ac_status); }; } &&
  4032. { ac_try='test -s conftest$ac_exeext'
  4033. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4034. (eval $ac_try) 2>&5
  4035. ac_status=$?
  4036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4037. (exit $ac_status); }; }; then
  4038. ac_cv_func_alloca_works=yes
  4039. else
  4040. echo "$as_me: failed program was:" >&5
  4041. sed 's/^/| /' conftest.$ac_ext >&5
  4042. ac_cv_func_alloca_works=no
  4043. fi
  4044. rm -f conftest.err conftest.$ac_objext \
  4045. conftest$ac_exeext conftest.$ac_ext
  4046. fi
  4047. echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  4048. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
  4049. if test $ac_cv_func_alloca_works = yes; then
  4050. cat >>confdefs.h <<\_ACEOF
  4051. #define HAVE_ALLOCA 1
  4052. _ACEOF
  4053. else
  4054. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  4055. # that cause trouble. Some versions do not even contain alloca or
  4056. # contain a buggy version. If you still want to use their alloca,
  4057. # use ar to extract alloca.o from them instead of compiling alloca.c.
  4058. ALLOCA=alloca.$ac_objext
  4059. cat >>confdefs.h <<\_ACEOF
  4060. #define C_ALLOCA 1
  4061. _ACEOF
  4062. echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  4063. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
  4064. if test "${ac_cv_os_cray+set}" = set; then
  4065. echo $ECHO_N "(cached) $ECHO_C" >&6
  4066. else
  4067. cat >conftest.$ac_ext <<_ACEOF
  4068. /* confdefs.h. */
  4069. _ACEOF
  4070. cat confdefs.h >>conftest.$ac_ext
  4071. cat >>conftest.$ac_ext <<_ACEOF
  4072. /* end confdefs.h. */
  4073. #if defined(CRAY) && ! defined(CRAY2)
  4074. webecray
  4075. #else
  4076. wenotbecray
  4077. #endif
  4078. _ACEOF
  4079. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4080. $EGREP "webecray" >/dev/null 2>&1; then
  4081. ac_cv_os_cray=yes
  4082. else
  4083. ac_cv_os_cray=no
  4084. fi
  4085. rm -f conftest*
  4086. fi
  4087. echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  4088. echo "${ECHO_T}$ac_cv_os_cray" >&6
  4089. if test $ac_cv_os_cray = yes; then
  4090. for ac_func in _getb67 GETB67 getb67; do
  4091. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4092. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4093. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4094. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4095. echo $ECHO_N "(cached) $ECHO_C" >&6
  4096. else
  4097. cat >conftest.$ac_ext <<_ACEOF
  4098. /* confdefs.h. */
  4099. _ACEOF
  4100. cat confdefs.h >>conftest.$ac_ext
  4101. cat >>conftest.$ac_ext <<_ACEOF
  4102. /* end confdefs.h. */
  4103. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4104. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4105. #define $ac_func innocuous_$ac_func
  4106. /* System header to define __stub macros and hopefully few prototypes,
  4107. which can conflict with char $ac_func (); below.
  4108. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4109. <limits.h> exists even on freestanding compilers. */
  4110. #ifdef __STDC__
  4111. # include <limits.h>
  4112. #else
  4113. # include <assert.h>
  4114. #endif
  4115. #undef $ac_func
  4116. /* Override any gcc2 internal prototype to avoid an error. */
  4117. #ifdef __cplusplus
  4118. extern "C"
  4119. {
  4120. #endif
  4121. /* We use char because int might match the return type of a gcc2
  4122. builtin and then its argument prototype would still apply. */
  4123. char $ac_func ();
  4124. /* The GNU C library defines this for functions which it implements
  4125. to always fail with ENOSYS. Some functions are actually named
  4126. something starting with __ and the normal name is an alias. */
  4127. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4128. choke me
  4129. #else
  4130. char (*f) () = $ac_func;
  4131. #endif
  4132. #ifdef __cplusplus
  4133. }
  4134. #endif
  4135. int
  4136. main ()
  4137. {
  4138. return f != $ac_func;
  4139. ;
  4140. return 0;
  4141. }
  4142. _ACEOF
  4143. rm -f conftest.$ac_objext conftest$ac_exeext
  4144. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4145. (eval $ac_link) 2>conftest.er1
  4146. ac_status=$?
  4147. grep -v '^ *+' conftest.er1 >conftest.err
  4148. rm -f conftest.er1
  4149. cat conftest.err >&5
  4150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4151. (exit $ac_status); } &&
  4152. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4153. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4154. (eval $ac_try) 2>&5
  4155. ac_status=$?
  4156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4157. (exit $ac_status); }; } &&
  4158. { ac_try='test -s conftest$ac_exeext'
  4159. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4160. (eval $ac_try) 2>&5
  4161. ac_status=$?
  4162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4163. (exit $ac_status); }; }; then
  4164. eval "$as_ac_var=yes"
  4165. else
  4166. echo "$as_me: failed program was:" >&5
  4167. sed 's/^/| /' conftest.$ac_ext >&5
  4168. eval "$as_ac_var=no"
  4169. fi
  4170. rm -f conftest.err conftest.$ac_objext \
  4171. conftest$ac_exeext conftest.$ac_ext
  4172. fi
  4173. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4174. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4175. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4176. cat >>confdefs.h <<_ACEOF
  4177. #define CRAY_STACKSEG_END $ac_func
  4178. _ACEOF
  4179. break
  4180. fi
  4181. done
  4182. fi
  4183. echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  4184. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
  4185. if test "${ac_cv_c_stack_direction+set}" = set; then
  4186. echo $ECHO_N "(cached) $ECHO_C" >&6
  4187. else
  4188. if test "$cross_compiling" = yes; then
  4189. ac_cv_c_stack_direction=0
  4190. else
  4191. cat >conftest.$ac_ext <<_ACEOF
  4192. /* confdefs.h. */
  4193. _ACEOF
  4194. cat confdefs.h >>conftest.$ac_ext
  4195. cat >>conftest.$ac_ext <<_ACEOF
  4196. /* end confdefs.h. */
  4197. int
  4198. find_stack_direction ()
  4199. {
  4200. static char *addr = 0;
  4201. auto char dummy;
  4202. if (addr == 0)
  4203. {
  4204. addr = &dummy;
  4205. return find_stack_direction ();
  4206. }
  4207. else
  4208. return (&dummy > addr) ? 1 : -1;
  4209. }
  4210. int
  4211. main ()
  4212. {
  4213. exit (find_stack_direction () < 0);
  4214. }
  4215. _ACEOF
  4216. rm -f conftest$ac_exeext
  4217. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4218. (eval $ac_link) 2>&5
  4219. ac_status=$?
  4220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4221. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4222. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4223. (eval $ac_try) 2>&5
  4224. ac_status=$?
  4225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4226. (exit $ac_status); }; }; then
  4227. ac_cv_c_stack_direction=1
  4228. else
  4229. echo "$as_me: program exited with status $ac_status" >&5
  4230. echo "$as_me: failed program was:" >&5
  4231. sed 's/^/| /' conftest.$ac_ext >&5
  4232. ( exit $ac_status )
  4233. ac_cv_c_stack_direction=-1
  4234. fi
  4235. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4236. fi
  4237. fi
  4238. echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  4239. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
  4240. cat >>confdefs.h <<_ACEOF
  4241. #define STACK_DIRECTION $ac_cv_c_stack_direction
  4242. _ACEOF
  4243. fi
  4244. for ac_header in stdlib.h unistd.h
  4245. do
  4246. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4247. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4248. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4249. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4250. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4251. echo $ECHO_N "(cached) $ECHO_C" >&6
  4252. fi
  4253. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4254. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4255. else
  4256. # Is the header compilable?
  4257. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4258. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4259. cat >conftest.$ac_ext <<_ACEOF
  4260. /* confdefs.h. */
  4261. _ACEOF
  4262. cat confdefs.h >>conftest.$ac_ext
  4263. cat >>conftest.$ac_ext <<_ACEOF
  4264. /* end confdefs.h. */
  4265. $ac_includes_default
  4266. #include <$ac_header>
  4267. _ACEOF
  4268. rm -f conftest.$ac_objext
  4269. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4270. (eval $ac_compile) 2>conftest.er1
  4271. ac_status=$?
  4272. grep -v '^ *+' conftest.er1 >conftest.err
  4273. rm -f conftest.er1
  4274. cat conftest.err >&5
  4275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4276. (exit $ac_status); } &&
  4277. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4279. (eval $ac_try) 2>&5
  4280. ac_status=$?
  4281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4282. (exit $ac_status); }; } &&
  4283. { ac_try='test -s conftest.$ac_objext'
  4284. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4285. (eval $ac_try) 2>&5
  4286. ac_status=$?
  4287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4288. (exit $ac_status); }; }; then
  4289. ac_header_compiler=yes
  4290. else
  4291. echo "$as_me: failed program was:" >&5
  4292. sed 's/^/| /' conftest.$ac_ext >&5
  4293. ac_header_compiler=no
  4294. fi
  4295. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4296. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4297. echo "${ECHO_T}$ac_header_compiler" >&6
  4298. # Is the header present?
  4299. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4300. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4301. cat >conftest.$ac_ext <<_ACEOF
  4302. /* confdefs.h. */
  4303. _ACEOF
  4304. cat confdefs.h >>conftest.$ac_ext
  4305. cat >>conftest.$ac_ext <<_ACEOF
  4306. /* end confdefs.h. */
  4307. #include <$ac_header>
  4308. _ACEOF
  4309. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4310. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4311. ac_status=$?
  4312. grep -v '^ *+' conftest.er1 >conftest.err
  4313. rm -f conftest.er1
  4314. cat conftest.err >&5
  4315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4316. (exit $ac_status); } >/dev/null; then
  4317. if test -s conftest.err; then
  4318. ac_cpp_err=$ac_c_preproc_warn_flag
  4319. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4320. else
  4321. ac_cpp_err=
  4322. fi
  4323. else
  4324. ac_cpp_err=yes
  4325. fi
  4326. if test -z "$ac_cpp_err"; then
  4327. ac_header_preproc=yes
  4328. else
  4329. echo "$as_me: failed program was:" >&5
  4330. sed 's/^/| /' conftest.$ac_ext >&5
  4331. ac_header_preproc=no
  4332. fi
  4333. rm -f conftest.err conftest.$ac_ext
  4334. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4335. echo "${ECHO_T}$ac_header_preproc" >&6
  4336. # So? What about this header?
  4337. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4338. yes:no: )
  4339. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4340. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4341. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4342. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4343. ac_header_preproc=yes
  4344. ;;
  4345. no:yes:* )
  4346. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4347. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4348. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4349. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4350. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4351. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4352. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4353. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4354. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4355. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4356. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4357. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4358. (
  4359. cat <<\_ASBOX
  4360. ## ----------------------------------- ##
  4361. ## Report this to tujikawa@rednoah.com ##
  4362. ## ----------------------------------- ##
  4363. _ASBOX
  4364. ) |
  4365. sed "s/^/$as_me: WARNING: /" >&2
  4366. ;;
  4367. esac
  4368. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4369. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4370. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4371. echo $ECHO_N "(cached) $ECHO_C" >&6
  4372. else
  4373. eval "$as_ac_Header=\$ac_header_preproc"
  4374. fi
  4375. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4376. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4377. fi
  4378. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4379. cat >>confdefs.h <<_ACEOF
  4380. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4381. _ACEOF
  4382. fi
  4383. done
  4384. for ac_func in getpagesize
  4385. do
  4386. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4387. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4388. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4389. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4390. echo $ECHO_N "(cached) $ECHO_C" >&6
  4391. else
  4392. cat >conftest.$ac_ext <<_ACEOF
  4393. /* confdefs.h. */
  4394. _ACEOF
  4395. cat confdefs.h >>conftest.$ac_ext
  4396. cat >>conftest.$ac_ext <<_ACEOF
  4397. /* end confdefs.h. */
  4398. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4399. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4400. #define $ac_func innocuous_$ac_func
  4401. /* System header to define __stub macros and hopefully few prototypes,
  4402. which can conflict with char $ac_func (); below.
  4403. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4404. <limits.h> exists even on freestanding compilers. */
  4405. #ifdef __STDC__
  4406. # include <limits.h>
  4407. #else
  4408. # include <assert.h>
  4409. #endif
  4410. #undef $ac_func
  4411. /* Override any gcc2 internal prototype to avoid an error. */
  4412. #ifdef __cplusplus
  4413. extern "C"
  4414. {
  4415. #endif
  4416. /* We use char because int might match the return type of a gcc2
  4417. builtin and then its argument prototype would still apply. */
  4418. char $ac_func ();
  4419. /* The GNU C library defines this for functions which it implements
  4420. to always fail with ENOSYS. Some functions are actually named
  4421. something starting with __ and the normal name is an alias. */
  4422. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4423. choke me
  4424. #else
  4425. char (*f) () = $ac_func;
  4426. #endif
  4427. #ifdef __cplusplus
  4428. }
  4429. #endif
  4430. int
  4431. main ()
  4432. {
  4433. return f != $ac_func;
  4434. ;
  4435. return 0;
  4436. }
  4437. _ACEOF
  4438. rm -f conftest.$ac_objext conftest$ac_exeext
  4439. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4440. (eval $ac_link) 2>conftest.er1
  4441. ac_status=$?
  4442. grep -v '^ *+' conftest.er1 >conftest.err
  4443. rm -f conftest.er1
  4444. cat conftest.err >&5
  4445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4446. (exit $ac_status); } &&
  4447. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4448. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4449. (eval $ac_try) 2>&5
  4450. ac_status=$?
  4451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4452. (exit $ac_status); }; } &&
  4453. { ac_try='test -s conftest$ac_exeext'
  4454. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4455. (eval $ac_try) 2>&5
  4456. ac_status=$?
  4457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4458. (exit $ac_status); }; }; then
  4459. eval "$as_ac_var=yes"
  4460. else
  4461. echo "$as_me: failed program was:" >&5
  4462. sed 's/^/| /' conftest.$ac_ext >&5
  4463. eval "$as_ac_var=no"
  4464. fi
  4465. rm -f conftest.err conftest.$ac_objext \
  4466. conftest$ac_exeext conftest.$ac_ext
  4467. fi
  4468. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4469. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4470. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4471. cat >>confdefs.h <<_ACEOF
  4472. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4473. _ACEOF
  4474. fi
  4475. done
  4476. echo "$as_me:$LINENO: checking for working mmap" >&5
  4477. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  4478. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  4479. echo $ECHO_N "(cached) $ECHO_C" >&6
  4480. else
  4481. if test "$cross_compiling" = yes; then
  4482. ac_cv_func_mmap_fixed_mapped=no
  4483. else
  4484. cat >conftest.$ac_ext <<_ACEOF
  4485. /* confdefs.h. */
  4486. _ACEOF
  4487. cat confdefs.h >>conftest.$ac_ext
  4488. cat >>conftest.$ac_ext <<_ACEOF
  4489. /* end confdefs.h. */
  4490. $ac_includes_default
  4491. /* malloc might have been renamed as rpl_malloc. */
  4492. #undef malloc
  4493. /* Thanks to Mike Haertel and Jim Avera for this test.
  4494. Here is a matrix of mmap possibilities:
  4495. mmap private not fixed
  4496. mmap private fixed at somewhere currently unmapped
  4497. mmap private fixed at somewhere already mapped
  4498. mmap shared not fixed
  4499. mmap shared fixed at somewhere currently unmapped
  4500. mmap shared fixed at somewhere already mapped
  4501. For private mappings, we should verify that changes cannot be read()
  4502. back from the file, nor mmap's back from the file at a different
  4503. address. (There have been systems where private was not correctly
  4504. implemented like the infamous i386 svr4.0, and systems where the
  4505. VM page cache was not coherent with the file system buffer cache
  4506. like early versions of FreeBSD and possibly contemporary NetBSD.)
  4507. For shared mappings, we should conversely verify that changes get
  4508. propagated back to all the places they're supposed to be.
  4509. Grep wants private fixed already mapped.
  4510. The main things grep needs to know about mmap are:
  4511. * does it exist and is it safe to write into the mmap'd area
  4512. * how to use it (BSD variants) */
  4513. #include <fcntl.h>
  4514. #include <sys/mman.h>
  4515. #if !STDC_HEADERS && !HAVE_STDLIB_H
  4516. char *malloc ();
  4517. #endif
  4518. /* This mess was copied from the GNU getpagesize.h. */
  4519. #if !HAVE_GETPAGESIZE
  4520. /* Assume that all systems that can run configure have sys/param.h. */
  4521. # if !HAVE_SYS_PARAM_H
  4522. # define HAVE_SYS_PARAM_H 1
  4523. # endif
  4524. # ifdef _SC_PAGESIZE
  4525. # define getpagesize() sysconf(_SC_PAGESIZE)
  4526. # else /* no _SC_PAGESIZE */
  4527. # if HAVE_SYS_PARAM_H
  4528. # include <sys/param.h>
  4529. # ifdef EXEC_PAGESIZE
  4530. # define getpagesize() EXEC_PAGESIZE
  4531. # else /* no EXEC_PAGESIZE */
  4532. # ifdef NBPG
  4533. # define getpagesize() NBPG * CLSIZE
  4534. # ifndef CLSIZE
  4535. # define CLSIZE 1
  4536. # endif /* no CLSIZE */
  4537. # else /* no NBPG */
  4538. # ifdef NBPC
  4539. # define getpagesize() NBPC
  4540. # else /* no NBPC */
  4541. # ifdef PAGESIZE
  4542. # define getpagesize() PAGESIZE
  4543. # endif /* PAGESIZE */
  4544. # endif /* no NBPC */
  4545. # endif /* no NBPG */
  4546. # endif /* no EXEC_PAGESIZE */
  4547. # else /* no HAVE_SYS_PARAM_H */
  4548. # define getpagesize() 8192 /* punt totally */
  4549. # endif /* no HAVE_SYS_PARAM_H */
  4550. # endif /* no _SC_PAGESIZE */
  4551. #endif /* no HAVE_GETPAGESIZE */
  4552. int
  4553. main ()
  4554. {
  4555. char *data, *data2, *data3;
  4556. int i, pagesize;
  4557. int fd;
  4558. pagesize = getpagesize ();
  4559. /* First, make a file with some known garbage in it. */
  4560. data = (char *) malloc (pagesize);
  4561. if (!data)
  4562. exit (1);
  4563. for (i = 0; i < pagesize; ++i)
  4564. *(data + i) = rand ();
  4565. umask (0);
  4566. fd = creat ("conftest.mmap", 0600);
  4567. if (fd < 0)
  4568. exit (1);
  4569. if (write (fd, data, pagesize) != pagesize)
  4570. exit (1);
  4571. close (fd);
  4572. /* Next, try to mmap the file at a fixed address which already has
  4573. something else allocated at it. If we can, also make sure that
  4574. we see the same garbage. */
  4575. fd = open ("conftest.mmap", O_RDWR);
  4576. if (fd < 0)
  4577. exit (1);
  4578. data2 = (char *) malloc (2 * pagesize);
  4579. if (!data2)
  4580. exit (1);
  4581. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  4582. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  4583. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  4584. exit (1);
  4585. for (i = 0; i < pagesize; ++i)
  4586. if (*(data + i) != *(data2 + i))
  4587. exit (1);
  4588. /* Finally, make sure that changes to the mapped area do not
  4589. percolate back to the file as seen by read(). (This is a bug on
  4590. some variants of i386 svr4.0.) */
  4591. for (i = 0; i < pagesize; ++i)
  4592. *(data2 + i) = *(data2 + i) + 1;
  4593. data3 = (char *) malloc (pagesize);
  4594. if (!data3)
  4595. exit (1);
  4596. if (read (fd, data3, pagesize) != pagesize)
  4597. exit (1);
  4598. for (i = 0; i < pagesize; ++i)
  4599. if (*(data + i) != *(data3 + i))
  4600. exit (1);
  4601. close (fd);
  4602. exit (0);
  4603. }
  4604. _ACEOF
  4605. rm -f conftest$ac_exeext
  4606. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4607. (eval $ac_link) 2>&5
  4608. ac_status=$?
  4609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4610. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4611. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4612. (eval $ac_try) 2>&5
  4613. ac_status=$?
  4614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4615. (exit $ac_status); }; }; then
  4616. ac_cv_func_mmap_fixed_mapped=yes
  4617. else
  4618. echo "$as_me: program exited with status $ac_status" >&5
  4619. echo "$as_me: failed program was:" >&5
  4620. sed 's/^/| /' conftest.$ac_ext >&5
  4621. ( exit $ac_status )
  4622. ac_cv_func_mmap_fixed_mapped=no
  4623. fi
  4624. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4625. fi
  4626. fi
  4627. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  4628. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  4629. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  4630. cat >>confdefs.h <<\_ACEOF
  4631. #define HAVE_MMAP 1
  4632. _ACEOF
  4633. fi
  4634. rm -f conftest.mmap
  4635. echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  4636. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
  4637. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  4638. echo $ECHO_N "(cached) $ECHO_C" >&6
  4639. else
  4640. cat >conftest.$ac_ext <<_ACEOF
  4641. /* confdefs.h. */
  4642. _ACEOF
  4643. cat confdefs.h >>conftest.$ac_ext
  4644. cat >>conftest.$ac_ext <<_ACEOF
  4645. /* end confdefs.h. */
  4646. #include <features.h>
  4647. #ifdef __GNU_LIBRARY__
  4648. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  4649. Lucky GNU user
  4650. #endif
  4651. #endif
  4652. _ACEOF
  4653. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4654. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  4655. ac_cv_gnu_library_2_1=yes
  4656. else
  4657. ac_cv_gnu_library_2_1=no
  4658. fi
  4659. rm -f conftest*
  4660. fi
  4661. echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  4662. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
  4663. GLIBC21="$ac_cv_gnu_library_2_1"
  4664. echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  4665. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
  4666. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  4667. echo $ECHO_N "(cached) $ECHO_C" >&6
  4668. else
  4669. if test "$cross_compiling" = yes; then
  4670. # Guess based on the CPU.
  4671. case "$host_cpu" in
  4672. alpha* | i3456786 | m68k | s390*)
  4673. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  4674. *)
  4675. gt_cv_int_divbyzero_sigfpe="guessing no";;
  4676. esac
  4677. else
  4678. cat >conftest.$ac_ext <<_ACEOF
  4679. /* confdefs.h. */
  4680. _ACEOF
  4681. cat confdefs.h >>conftest.$ac_ext
  4682. cat >>conftest.$ac_ext <<_ACEOF
  4683. /* end confdefs.h. */
  4684. #include <stdlib.h>
  4685. #include <signal.h>
  4686. static void
  4687. #ifdef __cplusplus
  4688. sigfpe_handler (int sig)
  4689. #else
  4690. sigfpe_handler (sig) int sig;
  4691. #endif
  4692. {
  4693. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  4694. exit (sig != SIGFPE);
  4695. }
  4696. int x = 1;
  4697. int y = 0;
  4698. int z;
  4699. int nan;
  4700. int main ()
  4701. {
  4702. signal (SIGFPE, sigfpe_handler);
  4703. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  4704. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  4705. signal (SIGTRAP, sigfpe_handler);
  4706. #endif
  4707. /* Linux/SPARC yields signal SIGILL. */
  4708. #if defined (__sparc__) && defined (__linux__)
  4709. signal (SIGILL, sigfpe_handler);
  4710. #endif
  4711. z = x / y;
  4712. nan = y / y;
  4713. exit (1);
  4714. }
  4715. _ACEOF
  4716. rm -f conftest$ac_exeext
  4717. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4718. (eval $ac_link) 2>&5
  4719. ac_status=$?
  4720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4721. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4722. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4723. (eval $ac_try) 2>&5
  4724. ac_status=$?
  4725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4726. (exit $ac_status); }; }; then
  4727. gt_cv_int_divbyzero_sigfpe=yes
  4728. else
  4729. echo "$as_me: program exited with status $ac_status" >&5
  4730. echo "$as_me: failed program was:" >&5
  4731. sed 's/^/| /' conftest.$ac_ext >&5
  4732. ( exit $ac_status )
  4733. gt_cv_int_divbyzero_sigfpe=no
  4734. fi
  4735. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4736. fi
  4737. fi
  4738. echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  4739. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
  4740. case "$gt_cv_int_divbyzero_sigfpe" in
  4741. *yes) value=1;;
  4742. *) value=0;;
  4743. esac
  4744. cat >>confdefs.h <<_ACEOF
  4745. #define INTDIV0_RAISES_SIGFPE $value
  4746. _ACEOF
  4747. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  4748. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  4749. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  4750. echo $ECHO_N "(cached) $ECHO_C" >&6
  4751. else
  4752. cat >conftest.$ac_ext <<_ACEOF
  4753. /* confdefs.h. */
  4754. _ACEOF
  4755. cat confdefs.h >>conftest.$ac_ext
  4756. cat >>conftest.$ac_ext <<_ACEOF
  4757. /* end confdefs.h. */
  4758. #include <sys/types.h>
  4759. #include <inttypes.h>
  4760. int
  4761. main ()
  4762. {
  4763. uintmax_t i = (uintmax_t) -1;
  4764. ;
  4765. return 0;
  4766. }
  4767. _ACEOF
  4768. rm -f conftest.$ac_objext
  4769. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4770. (eval $ac_compile) 2>conftest.er1
  4771. ac_status=$?
  4772. grep -v '^ *+' conftest.er1 >conftest.err
  4773. rm -f conftest.er1
  4774. cat conftest.err >&5
  4775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4776. (exit $ac_status); } &&
  4777. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4778. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4779. (eval $ac_try) 2>&5
  4780. ac_status=$?
  4781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4782. (exit $ac_status); }; } &&
  4783. { ac_try='test -s conftest.$ac_objext'
  4784. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4785. (eval $ac_try) 2>&5
  4786. ac_status=$?
  4787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4788. (exit $ac_status); }; }; then
  4789. jm_ac_cv_header_inttypes_h=yes
  4790. else
  4791. echo "$as_me: failed program was:" >&5
  4792. sed 's/^/| /' conftest.$ac_ext >&5
  4793. jm_ac_cv_header_inttypes_h=no
  4794. fi
  4795. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4796. fi
  4797. echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  4798. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
  4799. if test $jm_ac_cv_header_inttypes_h = yes; then
  4800. cat >>confdefs.h <<_ACEOF
  4801. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  4802. _ACEOF
  4803. fi
  4804. echo "$as_me:$LINENO: checking for stdint.h" >&5
  4805. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
  4806. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  4807. echo $ECHO_N "(cached) $ECHO_C" >&6
  4808. else
  4809. cat >conftest.$ac_ext <<_ACEOF
  4810. /* confdefs.h. */
  4811. _ACEOF
  4812. cat confdefs.h >>conftest.$ac_ext
  4813. cat >>conftest.$ac_ext <<_ACEOF
  4814. /* end confdefs.h. */
  4815. #include <sys/types.h>
  4816. #include <stdint.h>
  4817. int
  4818. main ()
  4819. {
  4820. uintmax_t i = (uintmax_t) -1;
  4821. ;
  4822. return 0;
  4823. }
  4824. _ACEOF
  4825. rm -f conftest.$ac_objext
  4826. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4827. (eval $ac_compile) 2>conftest.er1
  4828. ac_status=$?
  4829. grep -v '^ *+' conftest.er1 >conftest.err
  4830. rm -f conftest.er1
  4831. cat conftest.err >&5
  4832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4833. (exit $ac_status); } &&
  4834. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4835. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4836. (eval $ac_try) 2>&5
  4837. ac_status=$?
  4838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4839. (exit $ac_status); }; } &&
  4840. { ac_try='test -s conftest.$ac_objext'
  4841. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4842. (eval $ac_try) 2>&5
  4843. ac_status=$?
  4844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4845. (exit $ac_status); }; }; then
  4846. jm_ac_cv_header_stdint_h=yes
  4847. else
  4848. echo "$as_me: failed program was:" >&5
  4849. sed 's/^/| /' conftest.$ac_ext >&5
  4850. jm_ac_cv_header_stdint_h=no
  4851. fi
  4852. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4853. fi
  4854. echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  4855. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
  4856. if test $jm_ac_cv_header_stdint_h = yes; then
  4857. cat >>confdefs.h <<_ACEOF
  4858. #define HAVE_STDINT_H_WITH_UINTMAX 1
  4859. _ACEOF
  4860. fi
  4861. echo "$as_me:$LINENO: checking for unsigned long long" >&5
  4862. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
  4863. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  4864. echo $ECHO_N "(cached) $ECHO_C" >&6
  4865. else
  4866. cat >conftest.$ac_ext <<_ACEOF
  4867. /* confdefs.h. */
  4868. _ACEOF
  4869. cat confdefs.h >>conftest.$ac_ext
  4870. cat >>conftest.$ac_ext <<_ACEOF
  4871. /* end confdefs.h. */
  4872. unsigned long long ull = 1; int i = 63;
  4873. int
  4874. main ()
  4875. {
  4876. unsigned long long ullmax = (unsigned long long) -1;
  4877. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  4878. ;
  4879. return 0;
  4880. }
  4881. _ACEOF
  4882. rm -f conftest.$ac_objext conftest$ac_exeext
  4883. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4884. (eval $ac_link) 2>conftest.er1
  4885. ac_status=$?
  4886. grep -v '^ *+' conftest.er1 >conftest.err
  4887. rm -f conftest.er1
  4888. cat conftest.err >&5
  4889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4890. (exit $ac_status); } &&
  4891. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4892. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4893. (eval $ac_try) 2>&5
  4894. ac_status=$?
  4895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4896. (exit $ac_status); }; } &&
  4897. { ac_try='test -s conftest$ac_exeext'
  4898. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4899. (eval $ac_try) 2>&5
  4900. ac_status=$?
  4901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4902. (exit $ac_status); }; }; then
  4903. ac_cv_type_unsigned_long_long=yes
  4904. else
  4905. echo "$as_me: failed program was:" >&5
  4906. sed 's/^/| /' conftest.$ac_ext >&5
  4907. ac_cv_type_unsigned_long_long=no
  4908. fi
  4909. rm -f conftest.err conftest.$ac_objext \
  4910. conftest$ac_exeext conftest.$ac_ext
  4911. fi
  4912. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  4913. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
  4914. if test $ac_cv_type_unsigned_long_long = yes; then
  4915. cat >>confdefs.h <<\_ACEOF
  4916. #define HAVE_UNSIGNED_LONG_LONG 1
  4917. _ACEOF
  4918. fi
  4919. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  4920. test $ac_cv_type_unsigned_long_long = yes \
  4921. && ac_type='unsigned long long' \
  4922. || ac_type='unsigned long'
  4923. cat >>confdefs.h <<_ACEOF
  4924. #define uintmax_t $ac_type
  4925. _ACEOF
  4926. else
  4927. cat >>confdefs.h <<\_ACEOF
  4928. #define HAVE_UINTMAX_T 1
  4929. _ACEOF
  4930. fi
  4931. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  4932. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  4933. if test "${gt_cv_header_inttypes_h+set}" = set; then
  4934. echo $ECHO_N "(cached) $ECHO_C" >&6
  4935. else
  4936. cat >conftest.$ac_ext <<_ACEOF
  4937. /* confdefs.h. */
  4938. _ACEOF
  4939. cat confdefs.h >>conftest.$ac_ext
  4940. cat >>conftest.$ac_ext <<_ACEOF
  4941. /* end confdefs.h. */
  4942. #include <sys/types.h>
  4943. #include <inttypes.h>
  4944. int
  4945. main ()
  4946. {
  4947. ;
  4948. return 0;
  4949. }
  4950. _ACEOF
  4951. rm -f conftest.$ac_objext
  4952. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4953. (eval $ac_compile) 2>conftest.er1
  4954. ac_status=$?
  4955. grep -v '^ *+' conftest.er1 >conftest.err
  4956. rm -f conftest.er1
  4957. cat conftest.err >&5
  4958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4959. (exit $ac_status); } &&
  4960. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4961. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4962. (eval $ac_try) 2>&5
  4963. ac_status=$?
  4964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4965. (exit $ac_status); }; } &&
  4966. { ac_try='test -s conftest.$ac_objext'
  4967. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4968. (eval $ac_try) 2>&5
  4969. ac_status=$?
  4970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4971. (exit $ac_status); }; }; then
  4972. gt_cv_header_inttypes_h=yes
  4973. else
  4974. echo "$as_me: failed program was:" >&5
  4975. sed 's/^/| /' conftest.$ac_ext >&5
  4976. gt_cv_header_inttypes_h=no
  4977. fi
  4978. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4979. fi
  4980. echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  4981. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
  4982. if test $gt_cv_header_inttypes_h = yes; then
  4983. cat >>confdefs.h <<_ACEOF
  4984. #define HAVE_INTTYPES_H 1
  4985. _ACEOF
  4986. fi
  4987. if test $gt_cv_header_inttypes_h = yes; then
  4988. echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  4989. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
  4990. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  4991. echo $ECHO_N "(cached) $ECHO_C" >&6
  4992. else
  4993. cat >conftest.$ac_ext <<_ACEOF
  4994. /* confdefs.h. */
  4995. _ACEOF
  4996. cat confdefs.h >>conftest.$ac_ext
  4997. cat >>conftest.$ac_ext <<_ACEOF
  4998. /* end confdefs.h. */
  4999. #include <inttypes.h>
  5000. #ifdef PRId32
  5001. char *p = PRId32;
  5002. #endif
  5003. int
  5004. main ()
  5005. {
  5006. ;
  5007. return 0;
  5008. }
  5009. _ACEOF
  5010. rm -f conftest.$ac_objext
  5011. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5012. (eval $ac_compile) 2>conftest.er1
  5013. ac_status=$?
  5014. grep -v '^ *+' conftest.er1 >conftest.err
  5015. rm -f conftest.er1
  5016. cat conftest.err >&5
  5017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5018. (exit $ac_status); } &&
  5019. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5020. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5021. (eval $ac_try) 2>&5
  5022. ac_status=$?
  5023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5024. (exit $ac_status); }; } &&
  5025. { ac_try='test -s conftest.$ac_objext'
  5026. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5027. (eval $ac_try) 2>&5
  5028. ac_status=$?
  5029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5030. (exit $ac_status); }; }; then
  5031. gt_cv_inttypes_pri_broken=no
  5032. else
  5033. echo "$as_me: failed program was:" >&5
  5034. sed 's/^/| /' conftest.$ac_ext >&5
  5035. gt_cv_inttypes_pri_broken=yes
  5036. fi
  5037. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5038. fi
  5039. echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  5040. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
  5041. fi
  5042. if test "$gt_cv_inttypes_pri_broken" = yes; then
  5043. cat >>confdefs.h <<_ACEOF
  5044. #define PRI_MACROS_BROKEN 1
  5045. _ACEOF
  5046. fi
  5047. if test "X$prefix" = "XNONE"; then
  5048. acl_final_prefix="$ac_default_prefix"
  5049. else
  5050. acl_final_prefix="$prefix"
  5051. fi
  5052. if test "X$exec_prefix" = "XNONE"; then
  5053. acl_final_exec_prefix='${prefix}'
  5054. else
  5055. acl_final_exec_prefix="$exec_prefix"
  5056. fi
  5057. acl_save_prefix="$prefix"
  5058. prefix="$acl_final_prefix"
  5059. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  5060. prefix="$acl_save_prefix"
  5061. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  5062. if test "${with_gnu_ld+set}" = set; then
  5063. withval="$with_gnu_ld"
  5064. test "$withval" = no || with_gnu_ld=yes
  5065. else
  5066. with_gnu_ld=no
  5067. fi;
  5068. # Prepare PATH_SEPARATOR.
  5069. # The user is always right.
  5070. if test "${PATH_SEPARATOR+set}" != set; then
  5071. echo "#! /bin/sh" >conf$$.sh
  5072. echo "exit 0" >>conf$$.sh
  5073. chmod +x conf$$.sh
  5074. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5075. PATH_SEPARATOR=';'
  5076. else
  5077. PATH_SEPARATOR=:
  5078. fi
  5079. rm -f conf$$.sh
  5080. fi
  5081. ac_prog=ld
  5082. if test "$GCC" = yes; then
  5083. # Check if gcc -print-prog-name=ld gives a path.
  5084. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  5085. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  5086. case $host in
  5087. *-*-mingw*)
  5088. # gcc leaves a trailing carriage return which upsets mingw
  5089. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5090. *)
  5091. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5092. esac
  5093. case $ac_prog in
  5094. # Accept absolute paths.
  5095. [\\/]* | [A-Za-z]:[\\/]*)
  5096. re_direlt='/[^/][^/]*/\.\./'
  5097. # Canonicalize the path of ld
  5098. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  5099. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  5100. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  5101. done
  5102. test -z "$LD" && LD="$ac_prog"
  5103. ;;
  5104. "")
  5105. # If it fails, then pretend we aren't using GCC.
  5106. ac_prog=ld
  5107. ;;
  5108. *)
  5109. # If it is relative, then search for the first ld in PATH.
  5110. with_gnu_ld=unknown
  5111. ;;
  5112. esac
  5113. elif test "$with_gnu_ld" = yes; then
  5114. echo "$as_me:$LINENO: checking for GNU ld" >&5
  5115. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  5116. else
  5117. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  5118. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  5119. fi
  5120. if test "${acl_cv_path_LD+set}" = set; then
  5121. echo $ECHO_N "(cached) $ECHO_C" >&6
  5122. else
  5123. if test -z "$LD"; then
  5124. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  5125. for ac_dir in $PATH; do
  5126. test -z "$ac_dir" && ac_dir=.
  5127. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5128. acl_cv_path_LD="$ac_dir/$ac_prog"
  5129. # Check to see if the program is GNU ld. I'd rather use --version,
  5130. # but apparently some GNU ld's only accept -v.
  5131. # Break only if it was the GNU/non-GNU ld that we prefer.
  5132. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  5133. test "$with_gnu_ld" != no && break
  5134. else
  5135. test "$with_gnu_ld" != yes && break
  5136. fi
  5137. fi
  5138. done
  5139. IFS="$ac_save_ifs"
  5140. else
  5141. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  5142. fi
  5143. fi
  5144. LD="$acl_cv_path_LD"
  5145. if test -n "$LD"; then
  5146. echo "$as_me:$LINENO: result: $LD" >&5
  5147. echo "${ECHO_T}$LD" >&6
  5148. else
  5149. echo "$as_me:$LINENO: result: no" >&5
  5150. echo "${ECHO_T}no" >&6
  5151. fi
  5152. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  5153. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  5154. { (exit 1); exit 1; }; }
  5155. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  5156. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  5157. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  5158. echo $ECHO_N "(cached) $ECHO_C" >&6
  5159. else
  5160. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  5161. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  5162. acl_cv_prog_gnu_ld=yes
  5163. else
  5164. acl_cv_prog_gnu_ld=no
  5165. fi
  5166. fi
  5167. echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  5168. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
  5169. with_gnu_ld=$acl_cv_prog_gnu_ld
  5170. echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  5171. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
  5172. if test "${acl_cv_rpath+set}" = set; then
  5173. echo $ECHO_N "(cached) $ECHO_C" >&6
  5174. else
  5175. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  5176. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  5177. . ./conftest.sh
  5178. rm -f ./conftest.sh
  5179. acl_cv_rpath=done
  5180. fi
  5181. echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  5182. echo "${ECHO_T}$acl_cv_rpath" >&6
  5183. wl="$acl_cv_wl"
  5184. libext="$acl_cv_libext"
  5185. shlibext="$acl_cv_shlibext"
  5186. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  5187. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  5188. hardcode_direct="$acl_cv_hardcode_direct"
  5189. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  5190. # Check whether --enable-rpath or --disable-rpath was given.
  5191. if test "${enable_rpath+set}" = set; then
  5192. enableval="$enable_rpath"
  5193. :
  5194. else
  5195. enable_rpath=yes
  5196. fi;
  5197. use_additional=yes
  5198. acl_save_prefix="$prefix"
  5199. prefix="$acl_final_prefix"
  5200. acl_save_exec_prefix="$exec_prefix"
  5201. exec_prefix="$acl_final_exec_prefix"
  5202. eval additional_includedir=\"$includedir\"
  5203. eval additional_libdir=\"$libdir\"
  5204. exec_prefix="$acl_save_exec_prefix"
  5205. prefix="$acl_save_prefix"
  5206. # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
  5207. if test "${with_libiconv_prefix+set}" = set; then
  5208. withval="$with_libiconv_prefix"
  5209. if test "X$withval" = "Xno"; then
  5210. use_additional=no
  5211. else
  5212. if test "X$withval" = "X"; then
  5213. acl_save_prefix="$prefix"
  5214. prefix="$acl_final_prefix"
  5215. acl_save_exec_prefix="$exec_prefix"
  5216. exec_prefix="$acl_final_exec_prefix"
  5217. eval additional_includedir=\"$includedir\"
  5218. eval additional_libdir=\"$libdir\"
  5219. exec_prefix="$acl_save_exec_prefix"
  5220. prefix="$acl_save_prefix"
  5221. else
  5222. additional_includedir="$withval/include"
  5223. additional_libdir="$withval/lib"
  5224. fi
  5225. fi
  5226. fi;
  5227. LIBICONV=
  5228. LTLIBICONV=
  5229. INCICONV=
  5230. rpathdirs=
  5231. ltrpathdirs=
  5232. names_already_handled=
  5233. names_next_round='iconv '
  5234. while test -n "$names_next_round"; do
  5235. names_this_round="$names_next_round"
  5236. names_next_round=
  5237. for name in $names_this_round; do
  5238. already_handled=
  5239. for n in $names_already_handled; do
  5240. if test "$n" = "$name"; then
  5241. already_handled=yes
  5242. break
  5243. fi
  5244. done
  5245. if test -z "$already_handled"; then
  5246. names_already_handled="$names_already_handled $name"
  5247. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  5248. eval value=\"\$HAVE_LIB$uppername\"
  5249. if test -n "$value"; then
  5250. if test "$value" = yes; then
  5251. eval value=\"\$LIB$uppername\"
  5252. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  5253. eval value=\"\$LTLIB$uppername\"
  5254. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  5255. else
  5256. :
  5257. fi
  5258. else
  5259. found_dir=
  5260. found_la=
  5261. found_so=
  5262. found_a=
  5263. if test $use_additional = yes; then
  5264. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  5265. found_dir="$additional_libdir"
  5266. found_so="$additional_libdir/lib$name.$shlibext"
  5267. if test -f "$additional_libdir/lib$name.la"; then
  5268. found_la="$additional_libdir/lib$name.la"
  5269. fi
  5270. else
  5271. if test -f "$additional_libdir/lib$name.$libext"; then
  5272. found_dir="$additional_libdir"
  5273. found_a="$additional_libdir/lib$name.$libext"
  5274. if test -f "$additional_libdir/lib$name.la"; then
  5275. found_la="$additional_libdir/lib$name.la"
  5276. fi
  5277. fi
  5278. fi
  5279. fi
  5280. if test "X$found_dir" = "X"; then
  5281. for x in $LDFLAGS $LTLIBICONV; do
  5282. acl_save_prefix="$prefix"
  5283. prefix="$acl_final_prefix"
  5284. acl_save_exec_prefix="$exec_prefix"
  5285. exec_prefix="$acl_final_exec_prefix"
  5286. eval x=\"$x\"
  5287. exec_prefix="$acl_save_exec_prefix"
  5288. prefix="$acl_save_prefix"
  5289. case "$x" in
  5290. -L*)
  5291. dir=`echo "X$x" | sed -e 's/^X-L//'`
  5292. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  5293. found_dir="$dir"
  5294. found_so="$dir/lib$name.$shlibext"
  5295. if test -f "$dir/lib$name.la"; then
  5296. found_la="$dir/lib$name.la"
  5297. fi
  5298. else
  5299. if test -f "$dir/lib$name.$libext"; then
  5300. found_dir="$dir"
  5301. found_a="$dir/lib$name.$libext"
  5302. if test -f "$dir/lib$name.la"; then
  5303. found_la="$dir/lib$name.la"
  5304. fi
  5305. fi
  5306. fi
  5307. ;;
  5308. esac
  5309. if test "X$found_dir" != "X"; then
  5310. break
  5311. fi
  5312. done
  5313. fi
  5314. if test "X$found_dir" != "X"; then
  5315. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  5316. if test "X$found_so" != "X"; then
  5317. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  5318. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  5319. else
  5320. haveit=
  5321. for x in $ltrpathdirs; do
  5322. if test "X$x" = "X$found_dir"; then
  5323. haveit=yes
  5324. break
  5325. fi
  5326. done
  5327. if test -z "$haveit"; then
  5328. ltrpathdirs="$ltrpathdirs $found_dir"
  5329. fi
  5330. if test "$hardcode_direct" = yes; then
  5331. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  5332. else
  5333. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  5334. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  5335. haveit=
  5336. for x in $rpathdirs; do
  5337. if test "X$x" = "X$found_dir"; then
  5338. haveit=yes
  5339. break
  5340. fi
  5341. done
  5342. if test -z "$haveit"; then
  5343. rpathdirs="$rpathdirs $found_dir"
  5344. fi
  5345. else
  5346. haveit=
  5347. for x in $LDFLAGS $LIBICONV; do
  5348. acl_save_prefix="$prefix"
  5349. prefix="$acl_final_prefix"
  5350. acl_save_exec_prefix="$exec_prefix"
  5351. exec_prefix="$acl_final_exec_prefix"
  5352. eval x=\"$x\"
  5353. exec_prefix="$acl_save_exec_prefix"
  5354. prefix="$acl_save_prefix"
  5355. if test "X$x" = "X-L$found_dir"; then
  5356. haveit=yes
  5357. break
  5358. fi
  5359. done
  5360. if test -z "$haveit"; then
  5361. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  5362. fi
  5363. if test "$hardcode_minus_L" != no; then
  5364. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  5365. else
  5366. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  5367. fi
  5368. fi
  5369. fi
  5370. fi
  5371. else
  5372. if test "X$found_a" != "X"; then
  5373. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  5374. else
  5375. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  5376. fi
  5377. fi
  5378. additional_includedir=
  5379. case "$found_dir" in
  5380. */lib | */lib/)
  5381. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  5382. additional_includedir="$basedir/include"
  5383. ;;
  5384. esac
  5385. if test "X$additional_includedir" != "X"; then
  5386. if test "X$additional_includedir" != "X/usr/include"; then
  5387. haveit=
  5388. if test "X$additional_includedir" = "X/usr/local/include"; then
  5389. if test -n "$GCC"; then
  5390. case $host_os in
  5391. linux*) haveit=yes;;
  5392. esac
  5393. fi
  5394. fi
  5395. if test -z "$haveit"; then
  5396. for x in $CPPFLAGS $INCICONV; do
  5397. acl_save_prefix="$prefix"
  5398. prefix="$acl_final_prefix"
  5399. acl_save_exec_prefix="$exec_prefix"
  5400. exec_prefix="$acl_final_exec_prefix"
  5401. eval x=\"$x\"
  5402. exec_prefix="$acl_save_exec_prefix"
  5403. prefix="$acl_save_prefix"
  5404. if test "X$x" = "X-I$additional_includedir"; then
  5405. haveit=yes
  5406. break
  5407. fi
  5408. done
  5409. if test -z "$haveit"; then
  5410. if test -d "$additional_includedir"; then
  5411. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  5412. fi
  5413. fi
  5414. fi
  5415. fi
  5416. fi
  5417. if test -n "$found_la"; then
  5418. save_libdir="$libdir"
  5419. case "$found_la" in
  5420. */* | *\\*) . "$found_la" ;;
  5421. *) . "./$found_la" ;;
  5422. esac
  5423. libdir="$save_libdir"
  5424. for dep in $dependency_libs; do
  5425. case "$dep" in
  5426. -L*)
  5427. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  5428. if test "X$additional_libdir" != "X/usr/lib"; then
  5429. haveit=
  5430. if test "X$additional_libdir" = "X/usr/local/lib"; then
  5431. if test -n "$GCC"; then
  5432. case $host_os in
  5433. linux*) haveit=yes;;
  5434. esac
  5435. fi
  5436. fi
  5437. if test -z "$haveit"; then
  5438. haveit=
  5439. for x in $LDFLAGS $LIBICONV; do
  5440. acl_save_prefix="$prefix"
  5441. prefix="$acl_final_prefix"
  5442. acl_save_exec_prefix="$exec_prefix"
  5443. exec_prefix="$acl_final_exec_prefix"
  5444. eval x=\"$x\"
  5445. exec_prefix="$acl_save_exec_prefix"
  5446. prefix="$acl_save_prefix"
  5447. if test "X$x" = "X-L$additional_libdir"; then
  5448. haveit=yes
  5449. break
  5450. fi
  5451. done
  5452. if test -z "$haveit"; then
  5453. if test -d "$additional_libdir"; then
  5454. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  5455. fi
  5456. fi
  5457. haveit=
  5458. for x in $LDFLAGS $LTLIBICONV; do
  5459. acl_save_prefix="$prefix"
  5460. prefix="$acl_final_prefix"
  5461. acl_save_exec_prefix="$exec_prefix"
  5462. exec_prefix="$acl_final_exec_prefix"
  5463. eval x=\"$x\"
  5464. exec_prefix="$acl_save_exec_prefix"
  5465. prefix="$acl_save_prefix"
  5466. if test "X$x" = "X-L$additional_libdir"; then
  5467. haveit=yes
  5468. break
  5469. fi
  5470. done
  5471. if test -z "$haveit"; then
  5472. if test -d "$additional_libdir"; then
  5473. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  5474. fi
  5475. fi
  5476. fi
  5477. fi
  5478. ;;
  5479. -R*)
  5480. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  5481. if test "$enable_rpath" != no; then
  5482. haveit=
  5483. for x in $rpathdirs; do
  5484. if test "X$x" = "X$dir"; then
  5485. haveit=yes
  5486. break
  5487. fi
  5488. done
  5489. if test -z "$haveit"; then
  5490. rpathdirs="$rpathdirs $dir"
  5491. fi
  5492. haveit=
  5493. for x in $ltrpathdirs; do
  5494. if test "X$x" = "X$dir"; then
  5495. haveit=yes
  5496. break
  5497. fi
  5498. done
  5499. if test -z "$haveit"; then
  5500. ltrpathdirs="$ltrpathdirs $dir"
  5501. fi
  5502. fi
  5503. ;;
  5504. -l*)
  5505. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  5506. ;;
  5507. *.la)
  5508. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  5509. ;;
  5510. *)
  5511. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  5512. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  5513. ;;
  5514. esac
  5515. done
  5516. fi
  5517. else
  5518. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  5519. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  5520. fi
  5521. fi
  5522. fi
  5523. done
  5524. done
  5525. if test "X$rpathdirs" != "X"; then
  5526. if test -n "$hardcode_libdir_separator"; then
  5527. alldirs=
  5528. for found_dir in $rpathdirs; do
  5529. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  5530. done
  5531. acl_save_libdir="$libdir"
  5532. libdir="$alldirs"
  5533. eval flag=\"$hardcode_libdir_flag_spec\"
  5534. libdir="$acl_save_libdir"
  5535. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  5536. else
  5537. for found_dir in $rpathdirs; do
  5538. acl_save_libdir="$libdir"
  5539. libdir="$found_dir"
  5540. eval flag=\"$hardcode_libdir_flag_spec\"
  5541. libdir="$acl_save_libdir"
  5542. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  5543. done
  5544. fi
  5545. fi
  5546. if test "X$ltrpathdirs" != "X"; then
  5547. for found_dir in $ltrpathdirs; do
  5548. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  5549. done
  5550. fi
  5551. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  5552. stdlib.h string.h unistd.h sys/param.h
  5553. do
  5554. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5555. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5556. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5557. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5558. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5559. echo $ECHO_N "(cached) $ECHO_C" >&6
  5560. fi
  5561. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5562. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5563. else
  5564. # Is the header compilable?
  5565. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5566. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5567. cat >conftest.$ac_ext <<_ACEOF
  5568. /* confdefs.h. */
  5569. _ACEOF
  5570. cat confdefs.h >>conftest.$ac_ext
  5571. cat >>conftest.$ac_ext <<_ACEOF
  5572. /* end confdefs.h. */
  5573. $ac_includes_default
  5574. #include <$ac_header>
  5575. _ACEOF
  5576. rm -f conftest.$ac_objext
  5577. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5578. (eval $ac_compile) 2>conftest.er1
  5579. ac_status=$?
  5580. grep -v '^ *+' conftest.er1 >conftest.err
  5581. rm -f conftest.er1
  5582. cat conftest.err >&5
  5583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5584. (exit $ac_status); } &&
  5585. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5586. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5587. (eval $ac_try) 2>&5
  5588. ac_status=$?
  5589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5590. (exit $ac_status); }; } &&
  5591. { ac_try='test -s conftest.$ac_objext'
  5592. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5593. (eval $ac_try) 2>&5
  5594. ac_status=$?
  5595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5596. (exit $ac_status); }; }; then
  5597. ac_header_compiler=yes
  5598. else
  5599. echo "$as_me: failed program was:" >&5
  5600. sed 's/^/| /' conftest.$ac_ext >&5
  5601. ac_header_compiler=no
  5602. fi
  5603. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5604. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5605. echo "${ECHO_T}$ac_header_compiler" >&6
  5606. # Is the header present?
  5607. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5608. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5609. cat >conftest.$ac_ext <<_ACEOF
  5610. /* confdefs.h. */
  5611. _ACEOF
  5612. cat confdefs.h >>conftest.$ac_ext
  5613. cat >>conftest.$ac_ext <<_ACEOF
  5614. /* end confdefs.h. */
  5615. #include <$ac_header>
  5616. _ACEOF
  5617. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5618. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5619. ac_status=$?
  5620. grep -v '^ *+' conftest.er1 >conftest.err
  5621. rm -f conftest.er1
  5622. cat conftest.err >&5
  5623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5624. (exit $ac_status); } >/dev/null; then
  5625. if test -s conftest.err; then
  5626. ac_cpp_err=$ac_c_preproc_warn_flag
  5627. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5628. else
  5629. ac_cpp_err=
  5630. fi
  5631. else
  5632. ac_cpp_err=yes
  5633. fi
  5634. if test -z "$ac_cpp_err"; then
  5635. ac_header_preproc=yes
  5636. else
  5637. echo "$as_me: failed program was:" >&5
  5638. sed 's/^/| /' conftest.$ac_ext >&5
  5639. ac_header_preproc=no
  5640. fi
  5641. rm -f conftest.err conftest.$ac_ext
  5642. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5643. echo "${ECHO_T}$ac_header_preproc" >&6
  5644. # So? What about this header?
  5645. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5646. yes:no: )
  5647. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5648. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5649. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5650. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5651. ac_header_preproc=yes
  5652. ;;
  5653. no:yes:* )
  5654. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5655. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5656. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5657. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5658. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5659. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5660. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5661. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5662. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5663. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5664. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5665. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5666. (
  5667. cat <<\_ASBOX
  5668. ## ----------------------------------- ##
  5669. ## Report this to tujikawa@rednoah.com ##
  5670. ## ----------------------------------- ##
  5671. _ASBOX
  5672. ) |
  5673. sed "s/^/$as_me: WARNING: /" >&2
  5674. ;;
  5675. esac
  5676. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5677. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5678. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5679. echo $ECHO_N "(cached) $ECHO_C" >&6
  5680. else
  5681. eval "$as_ac_Header=\$ac_header_preproc"
  5682. fi
  5683. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5684. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5685. fi
  5686. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5687. cat >>confdefs.h <<_ACEOF
  5688. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5689. _ACEOF
  5690. fi
  5691. done
  5692. for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
  5693. geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
  5694. strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
  5695. __fsetlocking
  5696. do
  5697. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5698. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5699. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5700. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5701. echo $ECHO_N "(cached) $ECHO_C" >&6
  5702. else
  5703. cat >conftest.$ac_ext <<_ACEOF
  5704. /* confdefs.h. */
  5705. _ACEOF
  5706. cat confdefs.h >>conftest.$ac_ext
  5707. cat >>conftest.$ac_ext <<_ACEOF
  5708. /* end confdefs.h. */
  5709. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5710. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5711. #define $ac_func innocuous_$ac_func
  5712. /* System header to define __stub macros and hopefully few prototypes,
  5713. which can conflict with char $ac_func (); below.
  5714. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5715. <limits.h> exists even on freestanding compilers. */
  5716. #ifdef __STDC__
  5717. # include <limits.h>
  5718. #else
  5719. # include <assert.h>
  5720. #endif
  5721. #undef $ac_func
  5722. /* Override any gcc2 internal prototype to avoid an error. */
  5723. #ifdef __cplusplus
  5724. extern "C"
  5725. {
  5726. #endif
  5727. /* We use char because int might match the return type of a gcc2
  5728. builtin and then its argument prototype would still apply. */
  5729. char $ac_func ();
  5730. /* The GNU C library defines this for functions which it implements
  5731. to always fail with ENOSYS. Some functions are actually named
  5732. something starting with __ and the normal name is an alias. */
  5733. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5734. choke me
  5735. #else
  5736. char (*f) () = $ac_func;
  5737. #endif
  5738. #ifdef __cplusplus
  5739. }
  5740. #endif
  5741. int
  5742. main ()
  5743. {
  5744. return f != $ac_func;
  5745. ;
  5746. return 0;
  5747. }
  5748. _ACEOF
  5749. rm -f conftest.$ac_objext conftest$ac_exeext
  5750. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5751. (eval $ac_link) 2>conftest.er1
  5752. ac_status=$?
  5753. grep -v '^ *+' conftest.er1 >conftest.err
  5754. rm -f conftest.er1
  5755. cat conftest.err >&5
  5756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5757. (exit $ac_status); } &&
  5758. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5759. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5760. (eval $ac_try) 2>&5
  5761. ac_status=$?
  5762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5763. (exit $ac_status); }; } &&
  5764. { ac_try='test -s conftest$ac_exeext'
  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); }; }; then
  5770. eval "$as_ac_var=yes"
  5771. else
  5772. echo "$as_me: failed program was:" >&5
  5773. sed 's/^/| /' conftest.$ac_ext >&5
  5774. eval "$as_ac_var=no"
  5775. fi
  5776. rm -f conftest.err conftest.$ac_objext \
  5777. conftest$ac_exeext conftest.$ac_ext
  5778. fi
  5779. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5780. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5781. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5782. cat >>confdefs.h <<_ACEOF
  5783. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5784. _ACEOF
  5785. fi
  5786. done
  5787. am_save_CPPFLAGS="$CPPFLAGS"
  5788. for element in $INCICONV; do
  5789. haveit=
  5790. for x in $CPPFLAGS; do
  5791. acl_save_prefix="$prefix"
  5792. prefix="$acl_final_prefix"
  5793. acl_save_exec_prefix="$exec_prefix"
  5794. exec_prefix="$acl_final_exec_prefix"
  5795. eval x=\"$x\"
  5796. exec_prefix="$acl_save_exec_prefix"
  5797. prefix="$acl_save_prefix"
  5798. if test "X$x" = "X$element"; then
  5799. haveit=yes
  5800. break
  5801. fi
  5802. done
  5803. if test -z "$haveit"; then
  5804. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  5805. fi
  5806. done
  5807. echo "$as_me:$LINENO: checking for iconv" >&5
  5808. echo $ECHO_N "checking for iconv... $ECHO_C" >&6
  5809. if test "${am_cv_func_iconv+set}" = set; then
  5810. echo $ECHO_N "(cached) $ECHO_C" >&6
  5811. else
  5812. am_cv_func_iconv="no, consider installing GNU libiconv"
  5813. am_cv_lib_iconv=no
  5814. cat >conftest.$ac_ext <<_ACEOF
  5815. /* confdefs.h. */
  5816. _ACEOF
  5817. cat confdefs.h >>conftest.$ac_ext
  5818. cat >>conftest.$ac_ext <<_ACEOF
  5819. /* end confdefs.h. */
  5820. #include <stdlib.h>
  5821. #include <iconv.h>
  5822. int
  5823. main ()
  5824. {
  5825. iconv_t cd = iconv_open("","");
  5826. iconv(cd,NULL,NULL,NULL,NULL);
  5827. iconv_close(cd);
  5828. ;
  5829. return 0;
  5830. }
  5831. _ACEOF
  5832. rm -f conftest.$ac_objext conftest$ac_exeext
  5833. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5834. (eval $ac_link) 2>conftest.er1
  5835. ac_status=$?
  5836. grep -v '^ *+' conftest.er1 >conftest.err
  5837. rm -f conftest.er1
  5838. cat conftest.err >&5
  5839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5840. (exit $ac_status); } &&
  5841. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5842. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5843. (eval $ac_try) 2>&5
  5844. ac_status=$?
  5845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5846. (exit $ac_status); }; } &&
  5847. { ac_try='test -s conftest$ac_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. am_cv_func_iconv=yes
  5854. else
  5855. echo "$as_me: failed program was:" >&5
  5856. sed 's/^/| /' conftest.$ac_ext >&5
  5857. fi
  5858. rm -f conftest.err conftest.$ac_objext \
  5859. conftest$ac_exeext conftest.$ac_ext
  5860. if test "$am_cv_func_iconv" != yes; then
  5861. am_save_LIBS="$LIBS"
  5862. LIBS="$LIBS $LIBICONV"
  5863. cat >conftest.$ac_ext <<_ACEOF
  5864. /* confdefs.h. */
  5865. _ACEOF
  5866. cat confdefs.h >>conftest.$ac_ext
  5867. cat >>conftest.$ac_ext <<_ACEOF
  5868. /* end confdefs.h. */
  5869. #include <stdlib.h>
  5870. #include <iconv.h>
  5871. int
  5872. main ()
  5873. {
  5874. iconv_t cd = iconv_open("","");
  5875. iconv(cd,NULL,NULL,NULL,NULL);
  5876. iconv_close(cd);
  5877. ;
  5878. return 0;
  5879. }
  5880. _ACEOF
  5881. rm -f conftest.$ac_objext conftest$ac_exeext
  5882. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5883. (eval $ac_link) 2>conftest.er1
  5884. ac_status=$?
  5885. grep -v '^ *+' conftest.er1 >conftest.err
  5886. rm -f conftest.er1
  5887. cat conftest.err >&5
  5888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5889. (exit $ac_status); } &&
  5890. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5892. (eval $ac_try) 2>&5
  5893. ac_status=$?
  5894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5895. (exit $ac_status); }; } &&
  5896. { ac_try='test -s conftest$ac_exeext'
  5897. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5898. (eval $ac_try) 2>&5
  5899. ac_status=$?
  5900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5901. (exit $ac_status); }; }; then
  5902. am_cv_lib_iconv=yes
  5903. am_cv_func_iconv=yes
  5904. else
  5905. echo "$as_me: failed program was:" >&5
  5906. sed 's/^/| /' conftest.$ac_ext >&5
  5907. fi
  5908. rm -f conftest.err conftest.$ac_objext \
  5909. conftest$ac_exeext conftest.$ac_ext
  5910. LIBS="$am_save_LIBS"
  5911. fi
  5912. fi
  5913. echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  5914. echo "${ECHO_T}$am_cv_func_iconv" >&6
  5915. if test "$am_cv_func_iconv" = yes; then
  5916. cat >>confdefs.h <<\_ACEOF
  5917. #define HAVE_ICONV 1
  5918. _ACEOF
  5919. fi
  5920. if test "$am_cv_lib_iconv" = yes; then
  5921. echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  5922. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
  5923. echo "$as_me:$LINENO: result: $LIBICONV" >&5
  5924. echo "${ECHO_T}$LIBICONV" >&6
  5925. else
  5926. CPPFLAGS="$am_save_CPPFLAGS"
  5927. LIBICONV=
  5928. LTLIBICONV=
  5929. fi
  5930. if test "$am_cv_func_iconv" = yes; then
  5931. echo "$as_me:$LINENO: checking for iconv declaration" >&5
  5932. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
  5933. if test "${am_cv_proto_iconv+set}" = set; then
  5934. echo $ECHO_N "(cached) $ECHO_C" >&6
  5935. else
  5936. cat >conftest.$ac_ext <<_ACEOF
  5937. /* confdefs.h. */
  5938. _ACEOF
  5939. cat confdefs.h >>conftest.$ac_ext
  5940. cat >>conftest.$ac_ext <<_ACEOF
  5941. /* end confdefs.h. */
  5942. #include <stdlib.h>
  5943. #include <iconv.h>
  5944. extern
  5945. #ifdef __cplusplus
  5946. "C"
  5947. #endif
  5948. #if defined(__STDC__) || defined(__cplusplus)
  5949. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  5950. #else
  5951. size_t iconv();
  5952. #endif
  5953. int
  5954. main ()
  5955. {
  5956. ;
  5957. return 0;
  5958. }
  5959. _ACEOF
  5960. rm -f conftest.$ac_objext
  5961. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5962. (eval $ac_compile) 2>conftest.er1
  5963. ac_status=$?
  5964. grep -v '^ *+' conftest.er1 >conftest.err
  5965. rm -f conftest.er1
  5966. cat conftest.err >&5
  5967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5968. (exit $ac_status); } &&
  5969. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5970. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5971. (eval $ac_try) 2>&5
  5972. ac_status=$?
  5973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5974. (exit $ac_status); }; } &&
  5975. { ac_try='test -s conftest.$ac_objext'
  5976. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5977. (eval $ac_try) 2>&5
  5978. ac_status=$?
  5979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5980. (exit $ac_status); }; }; then
  5981. am_cv_proto_iconv_arg1=""
  5982. else
  5983. echo "$as_me: failed program was:" >&5
  5984. sed 's/^/| /' conftest.$ac_ext >&5
  5985. am_cv_proto_iconv_arg1="const"
  5986. fi
  5987. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5988. 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);"
  5989. fi
  5990. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  5991. echo "$as_me:$LINENO: result: ${ac_t:-
  5992. }$am_cv_proto_iconv" >&5
  5993. echo "${ECHO_T}${ac_t:-
  5994. }$am_cv_proto_iconv" >&6
  5995. cat >>confdefs.h <<_ACEOF
  5996. #define ICONV_CONST $am_cv_proto_iconv_arg1
  5997. _ACEOF
  5998. fi
  5999. echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  6000. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
  6001. if test "${am_cv_langinfo_codeset+set}" = set; then
  6002. echo $ECHO_N "(cached) $ECHO_C" >&6
  6003. else
  6004. cat >conftest.$ac_ext <<_ACEOF
  6005. /* confdefs.h. */
  6006. _ACEOF
  6007. cat confdefs.h >>conftest.$ac_ext
  6008. cat >>conftest.$ac_ext <<_ACEOF
  6009. /* end confdefs.h. */
  6010. #include <langinfo.h>
  6011. int
  6012. main ()
  6013. {
  6014. char* cs = nl_langinfo(CODESET);
  6015. ;
  6016. return 0;
  6017. }
  6018. _ACEOF
  6019. rm -f conftest.$ac_objext conftest$ac_exeext
  6020. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6021. (eval $ac_link) 2>conftest.er1
  6022. ac_status=$?
  6023. grep -v '^ *+' conftest.er1 >conftest.err
  6024. rm -f conftest.er1
  6025. cat conftest.err >&5
  6026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6027. (exit $ac_status); } &&
  6028. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6029. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6030. (eval $ac_try) 2>&5
  6031. ac_status=$?
  6032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6033. (exit $ac_status); }; } &&
  6034. { ac_try='test -s conftest$ac_exeext'
  6035. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6036. (eval $ac_try) 2>&5
  6037. ac_status=$?
  6038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6039. (exit $ac_status); }; }; then
  6040. am_cv_langinfo_codeset=yes
  6041. else
  6042. echo "$as_me: failed program was:" >&5
  6043. sed 's/^/| /' conftest.$ac_ext >&5
  6044. am_cv_langinfo_codeset=no
  6045. fi
  6046. rm -f conftest.err conftest.$ac_objext \
  6047. conftest$ac_exeext conftest.$ac_ext
  6048. fi
  6049. echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  6050. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
  6051. if test $am_cv_langinfo_codeset = yes; then
  6052. cat >>confdefs.h <<\_ACEOF
  6053. #define HAVE_LANGINFO_CODESET 1
  6054. _ACEOF
  6055. fi
  6056. if test $ac_cv_header_locale_h = yes; then
  6057. echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  6058. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
  6059. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  6060. echo $ECHO_N "(cached) $ECHO_C" >&6
  6061. else
  6062. cat >conftest.$ac_ext <<_ACEOF
  6063. /* confdefs.h. */
  6064. _ACEOF
  6065. cat confdefs.h >>conftest.$ac_ext
  6066. cat >>conftest.$ac_ext <<_ACEOF
  6067. /* end confdefs.h. */
  6068. #include <locale.h>
  6069. int
  6070. main ()
  6071. {
  6072. return LC_MESSAGES
  6073. ;
  6074. return 0;
  6075. }
  6076. _ACEOF
  6077. rm -f conftest.$ac_objext conftest$ac_exeext
  6078. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6079. (eval $ac_link) 2>conftest.er1
  6080. ac_status=$?
  6081. grep -v '^ *+' conftest.er1 >conftest.err
  6082. rm -f conftest.er1
  6083. cat conftest.err >&5
  6084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6085. (exit $ac_status); } &&
  6086. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6087. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6088. (eval $ac_try) 2>&5
  6089. ac_status=$?
  6090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6091. (exit $ac_status); }; } &&
  6092. { ac_try='test -s conftest$ac_exeext'
  6093. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6094. (eval $ac_try) 2>&5
  6095. ac_status=$?
  6096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6097. (exit $ac_status); }; }; then
  6098. am_cv_val_LC_MESSAGES=yes
  6099. else
  6100. echo "$as_me: failed program was:" >&5
  6101. sed 's/^/| /' conftest.$ac_ext >&5
  6102. am_cv_val_LC_MESSAGES=no
  6103. fi
  6104. rm -f conftest.err conftest.$ac_objext \
  6105. conftest$ac_exeext conftest.$ac_ext
  6106. fi
  6107. echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  6108. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
  6109. if test $am_cv_val_LC_MESSAGES = yes; then
  6110. cat >>confdefs.h <<\_ACEOF
  6111. #define HAVE_LC_MESSAGES 1
  6112. _ACEOF
  6113. fi
  6114. fi
  6115. for ac_prog in bison
  6116. do
  6117. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6118. set dummy $ac_prog; ac_word=$2
  6119. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6120. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6121. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  6122. echo $ECHO_N "(cached) $ECHO_C" >&6
  6123. else
  6124. if test -n "$INTLBISON"; then
  6125. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  6126. else
  6127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6128. for as_dir in $PATH
  6129. do
  6130. IFS=$as_save_IFS
  6131. test -z "$as_dir" && as_dir=.
  6132. for ac_exec_ext in '' $ac_executable_extensions; do
  6133. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6134. ac_cv_prog_INTLBISON="$ac_prog"
  6135. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6136. break 2
  6137. fi
  6138. done
  6139. done
  6140. fi
  6141. fi
  6142. INTLBISON=$ac_cv_prog_INTLBISON
  6143. if test -n "$INTLBISON"; then
  6144. echo "$as_me:$LINENO: result: $INTLBISON" >&5
  6145. echo "${ECHO_T}$INTLBISON" >&6
  6146. else
  6147. echo "$as_me:$LINENO: result: no" >&5
  6148. echo "${ECHO_T}no" >&6
  6149. fi
  6150. test -n "$INTLBISON" && break
  6151. done
  6152. if test -z "$INTLBISON"; then
  6153. ac_verc_fail=yes
  6154. else
  6155. echo "$as_me:$LINENO: checking version of bison" >&5
  6156. echo $ECHO_N "checking version of bison... $ECHO_C" >&6
  6157. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  6158. case $ac_prog_version in
  6159. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  6160. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  6161. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  6162. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  6163. esac
  6164. echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  6165. echo "${ECHO_T}$ac_prog_version" >&6
  6166. fi
  6167. if test $ac_verc_fail = yes; then
  6168. INTLBISON=:
  6169. fi
  6170. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  6171. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  6172. # Check whether --enable-nls or --disable-nls was given.
  6173. if test "${enable_nls+set}" = set; then
  6174. enableval="$enable_nls"
  6175. USE_NLS=$enableval
  6176. else
  6177. USE_NLS=yes
  6178. fi;
  6179. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  6180. echo "${ECHO_T}$USE_NLS" >&6
  6181. BUILD_INCLUDED_LIBINTL=no
  6182. USE_INCLUDED_LIBINTL=no
  6183. LIBINTL=
  6184. LTLIBINTL=
  6185. POSUB=
  6186. if test "$USE_NLS" = "yes"; then
  6187. gt_use_preinstalled_gnugettext=no
  6188. echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  6189. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
  6190. # Check whether --with-included-gettext or --without-included-gettext was given.
  6191. if test "${with_included_gettext+set}" = set; then
  6192. withval="$with_included_gettext"
  6193. nls_cv_force_use_gnu_gettext=$withval
  6194. else
  6195. nls_cv_force_use_gnu_gettext=no
  6196. fi;
  6197. echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  6198. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
  6199. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  6200. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  6201. echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  6202. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
  6203. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  6204. echo $ECHO_N "(cached) $ECHO_C" >&6
  6205. else
  6206. cat >conftest.$ac_ext <<_ACEOF
  6207. /* confdefs.h. */
  6208. _ACEOF
  6209. cat confdefs.h >>conftest.$ac_ext
  6210. cat >>conftest.$ac_ext <<_ACEOF
  6211. /* end confdefs.h. */
  6212. #include <libintl.h>
  6213. extern int _nl_msg_cat_cntr;
  6214. extern int *_nl_domain_bindings;
  6215. int
  6216. main ()
  6217. {
  6218. bindtextdomain ("", "");
  6219. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  6220. ;
  6221. return 0;
  6222. }
  6223. _ACEOF
  6224. rm -f conftest.$ac_objext conftest$ac_exeext
  6225. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6226. (eval $ac_link) 2>conftest.er1
  6227. ac_status=$?
  6228. grep -v '^ *+' conftest.er1 >conftest.err
  6229. rm -f conftest.er1
  6230. cat conftest.err >&5
  6231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6232. (exit $ac_status); } &&
  6233. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6234. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6235. (eval $ac_try) 2>&5
  6236. ac_status=$?
  6237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6238. (exit $ac_status); }; } &&
  6239. { ac_try='test -s conftest$ac_exeext'
  6240. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6241. (eval $ac_try) 2>&5
  6242. ac_status=$?
  6243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6244. (exit $ac_status); }; }; then
  6245. gt_cv_func_gnugettext1_libc=yes
  6246. else
  6247. echo "$as_me: failed program was:" >&5
  6248. sed 's/^/| /' conftest.$ac_ext >&5
  6249. gt_cv_func_gnugettext1_libc=no
  6250. fi
  6251. rm -f conftest.err conftest.$ac_objext \
  6252. conftest$ac_exeext conftest.$ac_ext
  6253. fi
  6254. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  6255. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
  6256. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  6257. use_additional=yes
  6258. acl_save_prefix="$prefix"
  6259. prefix="$acl_final_prefix"
  6260. acl_save_exec_prefix="$exec_prefix"
  6261. exec_prefix="$acl_final_exec_prefix"
  6262. eval additional_includedir=\"$includedir\"
  6263. eval additional_libdir=\"$libdir\"
  6264. exec_prefix="$acl_save_exec_prefix"
  6265. prefix="$acl_save_prefix"
  6266. # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
  6267. if test "${with_libintl_prefix+set}" = set; then
  6268. withval="$with_libintl_prefix"
  6269. if test "X$withval" = "Xno"; then
  6270. use_additional=no
  6271. else
  6272. if test "X$withval" = "X"; then
  6273. acl_save_prefix="$prefix"
  6274. prefix="$acl_final_prefix"
  6275. acl_save_exec_prefix="$exec_prefix"
  6276. exec_prefix="$acl_final_exec_prefix"
  6277. eval additional_includedir=\"$includedir\"
  6278. eval additional_libdir=\"$libdir\"
  6279. exec_prefix="$acl_save_exec_prefix"
  6280. prefix="$acl_save_prefix"
  6281. else
  6282. additional_includedir="$withval/include"
  6283. additional_libdir="$withval/lib"
  6284. fi
  6285. fi
  6286. fi;
  6287. LIBINTL=
  6288. LTLIBINTL=
  6289. INCINTL=
  6290. rpathdirs=
  6291. ltrpathdirs=
  6292. names_already_handled=
  6293. names_next_round='intl '
  6294. while test -n "$names_next_round"; do
  6295. names_this_round="$names_next_round"
  6296. names_next_round=
  6297. for name in $names_this_round; do
  6298. already_handled=
  6299. for n in $names_already_handled; do
  6300. if test "$n" = "$name"; then
  6301. already_handled=yes
  6302. break
  6303. fi
  6304. done
  6305. if test -z "$already_handled"; then
  6306. names_already_handled="$names_already_handled $name"
  6307. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  6308. eval value=\"\$HAVE_LIB$uppername\"
  6309. if test -n "$value"; then
  6310. if test "$value" = yes; then
  6311. eval value=\"\$LIB$uppername\"
  6312. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  6313. eval value=\"\$LTLIB$uppername\"
  6314. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  6315. else
  6316. :
  6317. fi
  6318. else
  6319. found_dir=
  6320. found_la=
  6321. found_so=
  6322. found_a=
  6323. if test $use_additional = yes; then
  6324. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  6325. found_dir="$additional_libdir"
  6326. found_so="$additional_libdir/lib$name.$shlibext"
  6327. if test -f "$additional_libdir/lib$name.la"; then
  6328. found_la="$additional_libdir/lib$name.la"
  6329. fi
  6330. else
  6331. if test -f "$additional_libdir/lib$name.$libext"; then
  6332. found_dir="$additional_libdir"
  6333. found_a="$additional_libdir/lib$name.$libext"
  6334. if test -f "$additional_libdir/lib$name.la"; then
  6335. found_la="$additional_libdir/lib$name.la"
  6336. fi
  6337. fi
  6338. fi
  6339. fi
  6340. if test "X$found_dir" = "X"; then
  6341. for x in $LDFLAGS $LTLIBINTL; do
  6342. acl_save_prefix="$prefix"
  6343. prefix="$acl_final_prefix"
  6344. acl_save_exec_prefix="$exec_prefix"
  6345. exec_prefix="$acl_final_exec_prefix"
  6346. eval x=\"$x\"
  6347. exec_prefix="$acl_save_exec_prefix"
  6348. prefix="$acl_save_prefix"
  6349. case "$x" in
  6350. -L*)
  6351. dir=`echo "X$x" | sed -e 's/^X-L//'`
  6352. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  6353. found_dir="$dir"
  6354. found_so="$dir/lib$name.$shlibext"
  6355. if test -f "$dir/lib$name.la"; then
  6356. found_la="$dir/lib$name.la"
  6357. fi
  6358. else
  6359. if test -f "$dir/lib$name.$libext"; then
  6360. found_dir="$dir"
  6361. found_a="$dir/lib$name.$libext"
  6362. if test -f "$dir/lib$name.la"; then
  6363. found_la="$dir/lib$name.la"
  6364. fi
  6365. fi
  6366. fi
  6367. ;;
  6368. esac
  6369. if test "X$found_dir" != "X"; then
  6370. break
  6371. fi
  6372. done
  6373. fi
  6374. if test "X$found_dir" != "X"; then
  6375. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  6376. if test "X$found_so" != "X"; then
  6377. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  6378. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  6379. else
  6380. haveit=
  6381. for x in $ltrpathdirs; do
  6382. if test "X$x" = "X$found_dir"; then
  6383. haveit=yes
  6384. break
  6385. fi
  6386. done
  6387. if test -z "$haveit"; then
  6388. ltrpathdirs="$ltrpathdirs $found_dir"
  6389. fi
  6390. if test "$hardcode_direct" = yes; then
  6391. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  6392. else
  6393. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  6394. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  6395. haveit=
  6396. for x in $rpathdirs; do
  6397. if test "X$x" = "X$found_dir"; then
  6398. haveit=yes
  6399. break
  6400. fi
  6401. done
  6402. if test -z "$haveit"; then
  6403. rpathdirs="$rpathdirs $found_dir"
  6404. fi
  6405. else
  6406. haveit=
  6407. for x in $LDFLAGS $LIBINTL; do
  6408. acl_save_prefix="$prefix"
  6409. prefix="$acl_final_prefix"
  6410. acl_save_exec_prefix="$exec_prefix"
  6411. exec_prefix="$acl_final_exec_prefix"
  6412. eval x=\"$x\"
  6413. exec_prefix="$acl_save_exec_prefix"
  6414. prefix="$acl_save_prefix"
  6415. if test "X$x" = "X-L$found_dir"; then
  6416. haveit=yes
  6417. break
  6418. fi
  6419. done
  6420. if test -z "$haveit"; then
  6421. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  6422. fi
  6423. if test "$hardcode_minus_L" != no; then
  6424. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  6425. else
  6426. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  6427. fi
  6428. fi
  6429. fi
  6430. fi
  6431. else
  6432. if test "X$found_a" != "X"; then
  6433. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  6434. else
  6435. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  6436. fi
  6437. fi
  6438. additional_includedir=
  6439. case "$found_dir" in
  6440. */lib | */lib/)
  6441. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  6442. additional_includedir="$basedir/include"
  6443. ;;
  6444. esac
  6445. if test "X$additional_includedir" != "X"; then
  6446. if test "X$additional_includedir" != "X/usr/include"; then
  6447. haveit=
  6448. if test "X$additional_includedir" = "X/usr/local/include"; then
  6449. if test -n "$GCC"; then
  6450. case $host_os in
  6451. linux*) haveit=yes;;
  6452. esac
  6453. fi
  6454. fi
  6455. if test -z "$haveit"; then
  6456. for x in $CPPFLAGS $INCINTL; do
  6457. acl_save_prefix="$prefix"
  6458. prefix="$acl_final_prefix"
  6459. acl_save_exec_prefix="$exec_prefix"
  6460. exec_prefix="$acl_final_exec_prefix"
  6461. eval x=\"$x\"
  6462. exec_prefix="$acl_save_exec_prefix"
  6463. prefix="$acl_save_prefix"
  6464. if test "X$x" = "X-I$additional_includedir"; then
  6465. haveit=yes
  6466. break
  6467. fi
  6468. done
  6469. if test -z "$haveit"; then
  6470. if test -d "$additional_includedir"; then
  6471. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  6472. fi
  6473. fi
  6474. fi
  6475. fi
  6476. fi
  6477. if test -n "$found_la"; then
  6478. save_libdir="$libdir"
  6479. case "$found_la" in
  6480. */* | *\\*) . "$found_la" ;;
  6481. *) . "./$found_la" ;;
  6482. esac
  6483. libdir="$save_libdir"
  6484. for dep in $dependency_libs; do
  6485. case "$dep" in
  6486. -L*)
  6487. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  6488. if test "X$additional_libdir" != "X/usr/lib"; then
  6489. haveit=
  6490. if test "X$additional_libdir" = "X/usr/local/lib"; then
  6491. if test -n "$GCC"; then
  6492. case $host_os in
  6493. linux*) haveit=yes;;
  6494. esac
  6495. fi
  6496. fi
  6497. if test -z "$haveit"; then
  6498. haveit=
  6499. for x in $LDFLAGS $LIBINTL; do
  6500. acl_save_prefix="$prefix"
  6501. prefix="$acl_final_prefix"
  6502. acl_save_exec_prefix="$exec_prefix"
  6503. exec_prefix="$acl_final_exec_prefix"
  6504. eval x=\"$x\"
  6505. exec_prefix="$acl_save_exec_prefix"
  6506. prefix="$acl_save_prefix"
  6507. if test "X$x" = "X-L$additional_libdir"; then
  6508. haveit=yes
  6509. break
  6510. fi
  6511. done
  6512. if test -z "$haveit"; then
  6513. if test -d "$additional_libdir"; then
  6514. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  6515. fi
  6516. fi
  6517. haveit=
  6518. for x in $LDFLAGS $LTLIBINTL; do
  6519. acl_save_prefix="$prefix"
  6520. prefix="$acl_final_prefix"
  6521. acl_save_exec_prefix="$exec_prefix"
  6522. exec_prefix="$acl_final_exec_prefix"
  6523. eval x=\"$x\"
  6524. exec_prefix="$acl_save_exec_prefix"
  6525. prefix="$acl_save_prefix"
  6526. if test "X$x" = "X-L$additional_libdir"; then
  6527. haveit=yes
  6528. break
  6529. fi
  6530. done
  6531. if test -z "$haveit"; then
  6532. if test -d "$additional_libdir"; then
  6533. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  6534. fi
  6535. fi
  6536. fi
  6537. fi
  6538. ;;
  6539. -R*)
  6540. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  6541. if test "$enable_rpath" != no; then
  6542. haveit=
  6543. for x in $rpathdirs; do
  6544. if test "X$x" = "X$dir"; then
  6545. haveit=yes
  6546. break
  6547. fi
  6548. done
  6549. if test -z "$haveit"; then
  6550. rpathdirs="$rpathdirs $dir"
  6551. fi
  6552. haveit=
  6553. for x in $ltrpathdirs; do
  6554. if test "X$x" = "X$dir"; then
  6555. haveit=yes
  6556. break
  6557. fi
  6558. done
  6559. if test -z "$haveit"; then
  6560. ltrpathdirs="$ltrpathdirs $dir"
  6561. fi
  6562. fi
  6563. ;;
  6564. -l*)
  6565. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  6566. ;;
  6567. *.la)
  6568. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  6569. ;;
  6570. *)
  6571. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  6572. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  6573. ;;
  6574. esac
  6575. done
  6576. fi
  6577. else
  6578. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  6579. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  6580. fi
  6581. fi
  6582. fi
  6583. done
  6584. done
  6585. if test "X$rpathdirs" != "X"; then
  6586. if test -n "$hardcode_libdir_separator"; then
  6587. alldirs=
  6588. for found_dir in $rpathdirs; do
  6589. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  6590. done
  6591. acl_save_libdir="$libdir"
  6592. libdir="$alldirs"
  6593. eval flag=\"$hardcode_libdir_flag_spec\"
  6594. libdir="$acl_save_libdir"
  6595. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  6596. else
  6597. for found_dir in $rpathdirs; do
  6598. acl_save_libdir="$libdir"
  6599. libdir="$found_dir"
  6600. eval flag=\"$hardcode_libdir_flag_spec\"
  6601. libdir="$acl_save_libdir"
  6602. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  6603. done
  6604. fi
  6605. fi
  6606. if test "X$ltrpathdirs" != "X"; then
  6607. for found_dir in $ltrpathdirs; do
  6608. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  6609. done
  6610. fi
  6611. echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  6612. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
  6613. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  6614. echo $ECHO_N "(cached) $ECHO_C" >&6
  6615. else
  6616. gt_save_CPPFLAGS="$CPPFLAGS"
  6617. CPPFLAGS="$CPPFLAGS $INCINTL"
  6618. gt_save_LIBS="$LIBS"
  6619. LIBS="$LIBS $LIBINTL"
  6620. cat >conftest.$ac_ext <<_ACEOF
  6621. /* confdefs.h. */
  6622. _ACEOF
  6623. cat confdefs.h >>conftest.$ac_ext
  6624. cat >>conftest.$ac_ext <<_ACEOF
  6625. /* end confdefs.h. */
  6626. #include <libintl.h>
  6627. extern int _nl_msg_cat_cntr;
  6628. extern
  6629. #ifdef __cplusplus
  6630. "C"
  6631. #endif
  6632. const char *_nl_expand_alias ();
  6633. int
  6634. main ()
  6635. {
  6636. bindtextdomain ("", "");
  6637. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  6638. ;
  6639. return 0;
  6640. }
  6641. _ACEOF
  6642. rm -f conftest.$ac_objext conftest$ac_exeext
  6643. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6644. (eval $ac_link) 2>conftest.er1
  6645. ac_status=$?
  6646. grep -v '^ *+' conftest.er1 >conftest.err
  6647. rm -f conftest.er1
  6648. cat conftest.err >&5
  6649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6650. (exit $ac_status); } &&
  6651. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6652. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6653. (eval $ac_try) 2>&5
  6654. ac_status=$?
  6655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6656. (exit $ac_status); }; } &&
  6657. { ac_try='test -s conftest$ac_exeext'
  6658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6659. (eval $ac_try) 2>&5
  6660. ac_status=$?
  6661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6662. (exit $ac_status); }; }; then
  6663. gt_cv_func_gnugettext1_libintl=yes
  6664. else
  6665. echo "$as_me: failed program was:" >&5
  6666. sed 's/^/| /' conftest.$ac_ext >&5
  6667. gt_cv_func_gnugettext1_libintl=no
  6668. fi
  6669. rm -f conftest.err conftest.$ac_objext \
  6670. conftest$ac_exeext conftest.$ac_ext
  6671. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  6672. LIBS="$LIBS $LIBICONV"
  6673. cat >conftest.$ac_ext <<_ACEOF
  6674. /* confdefs.h. */
  6675. _ACEOF
  6676. cat confdefs.h >>conftest.$ac_ext
  6677. cat >>conftest.$ac_ext <<_ACEOF
  6678. /* end confdefs.h. */
  6679. #include <libintl.h>
  6680. extern int _nl_msg_cat_cntr;
  6681. extern
  6682. #ifdef __cplusplus
  6683. "C"
  6684. #endif
  6685. const char *_nl_expand_alias ();
  6686. int
  6687. main ()
  6688. {
  6689. bindtextdomain ("", "");
  6690. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  6691. ;
  6692. return 0;
  6693. }
  6694. _ACEOF
  6695. rm -f conftest.$ac_objext conftest$ac_exeext
  6696. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6697. (eval $ac_link) 2>conftest.er1
  6698. ac_status=$?
  6699. grep -v '^ *+' conftest.er1 >conftest.err
  6700. rm -f conftest.er1
  6701. cat conftest.err >&5
  6702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6703. (exit $ac_status); } &&
  6704. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6705. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6706. (eval $ac_try) 2>&5
  6707. ac_status=$?
  6708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6709. (exit $ac_status); }; } &&
  6710. { ac_try='test -s conftest$ac_exeext'
  6711. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6712. (eval $ac_try) 2>&5
  6713. ac_status=$?
  6714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6715. (exit $ac_status); }; }; then
  6716. LIBINTL="$LIBINTL $LIBICONV"
  6717. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  6718. gt_cv_func_gnugettext1_libintl=yes
  6719. else
  6720. echo "$as_me: failed program was:" >&5
  6721. sed 's/^/| /' conftest.$ac_ext >&5
  6722. fi
  6723. rm -f conftest.err conftest.$ac_objext \
  6724. conftest$ac_exeext conftest.$ac_ext
  6725. fi
  6726. CPPFLAGS="$gt_save_CPPFLAGS"
  6727. LIBS="$gt_save_LIBS"
  6728. fi
  6729. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  6730. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
  6731. fi
  6732. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  6733. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  6734. && test "$PACKAGE" != gettext-runtime \
  6735. && test "$PACKAGE" != gettext-tools; }; then
  6736. gt_use_preinstalled_gnugettext=yes
  6737. else
  6738. LIBINTL=
  6739. LTLIBINTL=
  6740. INCINTL=
  6741. fi
  6742. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  6743. nls_cv_use_gnu_gettext=yes
  6744. fi
  6745. fi
  6746. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  6747. BUILD_INCLUDED_LIBINTL=yes
  6748. USE_INCLUDED_LIBINTL=yes
  6749. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  6750. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  6751. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  6752. fi
  6753. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  6754. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  6755. CATOBJEXT=.gmo
  6756. fi
  6757. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  6758. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  6759. cat >>confdefs.h <<\_ACEOF
  6760. #define ENABLE_NLS 1
  6761. _ACEOF
  6762. else
  6763. USE_NLS=no
  6764. fi
  6765. fi
  6766. echo "$as_me:$LINENO: checking whether to use NLS" >&5
  6767. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
  6768. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  6769. echo "${ECHO_T}$USE_NLS" >&6
  6770. if test "$USE_NLS" = "yes"; then
  6771. echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  6772. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
  6773. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  6774. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  6775. gt_source="external libintl"
  6776. else
  6777. gt_source="libc"
  6778. fi
  6779. else
  6780. gt_source="included intl directory"
  6781. fi
  6782. echo "$as_me:$LINENO: result: $gt_source" >&5
  6783. echo "${ECHO_T}$gt_source" >&6
  6784. fi
  6785. if test "$USE_NLS" = "yes"; then
  6786. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  6787. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  6788. echo "$as_me:$LINENO: checking how to link with libintl" >&5
  6789. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
  6790. echo "$as_me:$LINENO: result: $LIBINTL" >&5
  6791. echo "${ECHO_T}$LIBINTL" >&6
  6792. for element in $INCINTL; do
  6793. haveit=
  6794. for x in $CPPFLAGS; do
  6795. acl_save_prefix="$prefix"
  6796. prefix="$acl_final_prefix"
  6797. acl_save_exec_prefix="$exec_prefix"
  6798. exec_prefix="$acl_final_exec_prefix"
  6799. eval x=\"$x\"
  6800. exec_prefix="$acl_save_exec_prefix"
  6801. prefix="$acl_save_prefix"
  6802. if test "X$x" = "X$element"; then
  6803. haveit=yes
  6804. break
  6805. fi
  6806. done
  6807. if test -z "$haveit"; then
  6808. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  6809. fi
  6810. done
  6811. fi
  6812. cat >>confdefs.h <<\_ACEOF
  6813. #define HAVE_GETTEXT 1
  6814. _ACEOF
  6815. cat >>confdefs.h <<\_ACEOF
  6816. #define HAVE_DCGETTEXT 1
  6817. _ACEOF
  6818. fi
  6819. POSUB=po
  6820. fi
  6821. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  6822. BUILD_INCLUDED_LIBINTL=yes
  6823. fi
  6824. nls_cv_header_intl=
  6825. nls_cv_header_libgt=
  6826. DATADIRNAME=share
  6827. INSTOBJEXT=.mo
  6828. GENCAT=gencat
  6829. if test "$USE_INCLUDED_LIBINTL" = yes; then
  6830. INTLOBJS="\$(GETTOBJS)"
  6831. fi
  6832. INTL_LIBTOOL_SUFFIX_PREFIX=
  6833. INTLLIBS="$LIBINTL"
  6834. # Set localedir
  6835. localedir=${datadir}/locale
  6836. # Checks for arguments.
  6837. # Check whether --enable-ssl or --disable-ssl was given.
  6838. if test "${enable_ssl+set}" = set; then
  6839. enableval="$enable_ssl"
  6840. enable_ssl=$enableval
  6841. else
  6842. enable_ssl=yes
  6843. fi;
  6844. # Checks for programs.
  6845. ac_ext=cc
  6846. ac_cpp='$CXXCPP $CPPFLAGS'
  6847. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6848. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6849. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6850. if test -n "$ac_tool_prefix"; then
  6851. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  6852. do
  6853. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6854. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6855. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6856. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6857. if test "${ac_cv_prog_CXX+set}" = set; then
  6858. echo $ECHO_N "(cached) $ECHO_C" >&6
  6859. else
  6860. if test -n "$CXX"; then
  6861. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6862. else
  6863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6864. for as_dir in $PATH
  6865. do
  6866. IFS=$as_save_IFS
  6867. test -z "$as_dir" && as_dir=.
  6868. for ac_exec_ext in '' $ac_executable_extensions; do
  6869. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6870. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6871. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6872. break 2
  6873. fi
  6874. done
  6875. done
  6876. fi
  6877. fi
  6878. CXX=$ac_cv_prog_CXX
  6879. if test -n "$CXX"; then
  6880. echo "$as_me:$LINENO: result: $CXX" >&5
  6881. echo "${ECHO_T}$CXX" >&6
  6882. else
  6883. echo "$as_me:$LINENO: result: no" >&5
  6884. echo "${ECHO_T}no" >&6
  6885. fi
  6886. test -n "$CXX" && break
  6887. done
  6888. fi
  6889. if test -z "$CXX"; then
  6890. ac_ct_CXX=$CXX
  6891. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  6892. do
  6893. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6894. set dummy $ac_prog; ac_word=$2
  6895. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6896. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6897. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  6898. echo $ECHO_N "(cached) $ECHO_C" >&6
  6899. else
  6900. if test -n "$ac_ct_CXX"; then
  6901. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6902. else
  6903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6904. for as_dir in $PATH
  6905. do
  6906. IFS=$as_save_IFS
  6907. test -z "$as_dir" && as_dir=.
  6908. for ac_exec_ext in '' $ac_executable_extensions; do
  6909. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6910. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6911. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6912. break 2
  6913. fi
  6914. done
  6915. done
  6916. fi
  6917. fi
  6918. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6919. if test -n "$ac_ct_CXX"; then
  6920. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  6921. echo "${ECHO_T}$ac_ct_CXX" >&6
  6922. else
  6923. echo "$as_me:$LINENO: result: no" >&5
  6924. echo "${ECHO_T}no" >&6
  6925. fi
  6926. test -n "$ac_ct_CXX" && break
  6927. done
  6928. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  6929. CXX=$ac_ct_CXX
  6930. fi
  6931. # Provide some information about the compiler.
  6932. echo "$as_me:$LINENO:" \
  6933. "checking for C++ compiler version" >&5
  6934. ac_compiler=`set X $ac_compile; echo $2`
  6935. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  6936. (eval $ac_compiler --version </dev/null >&5) 2>&5
  6937. ac_status=$?
  6938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6939. (exit $ac_status); }
  6940. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  6941. (eval $ac_compiler -v </dev/null >&5) 2>&5
  6942. ac_status=$?
  6943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6944. (exit $ac_status); }
  6945. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  6946. (eval $ac_compiler -V </dev/null >&5) 2>&5
  6947. ac_status=$?
  6948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6949. (exit $ac_status); }
  6950. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  6951. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  6952. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  6953. echo $ECHO_N "(cached) $ECHO_C" >&6
  6954. else
  6955. cat >conftest.$ac_ext <<_ACEOF
  6956. /* confdefs.h. */
  6957. _ACEOF
  6958. cat confdefs.h >>conftest.$ac_ext
  6959. cat >>conftest.$ac_ext <<_ACEOF
  6960. /* end confdefs.h. */
  6961. int
  6962. main ()
  6963. {
  6964. #ifndef __GNUC__
  6965. choke me
  6966. #endif
  6967. ;
  6968. return 0;
  6969. }
  6970. _ACEOF
  6971. rm -f conftest.$ac_objext
  6972. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6973. (eval $ac_compile) 2>conftest.er1
  6974. ac_status=$?
  6975. grep -v '^ *+' conftest.er1 >conftest.err
  6976. rm -f conftest.er1
  6977. cat conftest.err >&5
  6978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6979. (exit $ac_status); } &&
  6980. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6981. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6982. (eval $ac_try) 2>&5
  6983. ac_status=$?
  6984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6985. (exit $ac_status); }; } &&
  6986. { ac_try='test -s conftest.$ac_objext'
  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); }; }; then
  6992. ac_compiler_gnu=yes
  6993. else
  6994. echo "$as_me: failed program was:" >&5
  6995. sed 's/^/| /' conftest.$ac_ext >&5
  6996. ac_compiler_gnu=no
  6997. fi
  6998. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6999. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  7000. fi
  7001. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  7002. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  7003. GXX=`test $ac_compiler_gnu = yes && echo yes`
  7004. ac_test_CXXFLAGS=${CXXFLAGS+set}
  7005. ac_save_CXXFLAGS=$CXXFLAGS
  7006. CXXFLAGS="-g"
  7007. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  7008. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  7009. if test "${ac_cv_prog_cxx_g+set}" = set; then
  7010. echo $ECHO_N "(cached) $ECHO_C" >&6
  7011. else
  7012. cat >conftest.$ac_ext <<_ACEOF
  7013. /* confdefs.h. */
  7014. _ACEOF
  7015. cat confdefs.h >>conftest.$ac_ext
  7016. cat >>conftest.$ac_ext <<_ACEOF
  7017. /* end confdefs.h. */
  7018. int
  7019. main ()
  7020. {
  7021. ;
  7022. return 0;
  7023. }
  7024. _ACEOF
  7025. rm -f conftest.$ac_objext
  7026. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7027. (eval $ac_compile) 2>conftest.er1
  7028. ac_status=$?
  7029. grep -v '^ *+' conftest.er1 >conftest.err
  7030. rm -f conftest.er1
  7031. cat conftest.err >&5
  7032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7033. (exit $ac_status); } &&
  7034. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7035. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7036. (eval $ac_try) 2>&5
  7037. ac_status=$?
  7038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7039. (exit $ac_status); }; } &&
  7040. { ac_try='test -s conftest.$ac_objext'
  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); }; }; then
  7046. ac_cv_prog_cxx_g=yes
  7047. else
  7048. echo "$as_me: failed program was:" >&5
  7049. sed 's/^/| /' conftest.$ac_ext >&5
  7050. ac_cv_prog_cxx_g=no
  7051. fi
  7052. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7053. fi
  7054. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  7055. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  7056. if test "$ac_test_CXXFLAGS" = set; then
  7057. CXXFLAGS=$ac_save_CXXFLAGS
  7058. elif test $ac_cv_prog_cxx_g = yes; then
  7059. if test "$GXX" = yes; then
  7060. CXXFLAGS="-g -O2"
  7061. else
  7062. CXXFLAGS="-g"
  7063. fi
  7064. else
  7065. if test "$GXX" = yes; then
  7066. CXXFLAGS="-O2"
  7067. else
  7068. CXXFLAGS=
  7069. fi
  7070. fi
  7071. for ac_declaration in \
  7072. '' \
  7073. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  7074. 'extern "C" void std::exit (int); using std::exit;' \
  7075. 'extern "C" void exit (int) throw ();' \
  7076. 'extern "C" void exit (int);' \
  7077. 'void exit (int);'
  7078. do
  7079. cat >conftest.$ac_ext <<_ACEOF
  7080. /* confdefs.h. */
  7081. _ACEOF
  7082. cat confdefs.h >>conftest.$ac_ext
  7083. cat >>conftest.$ac_ext <<_ACEOF
  7084. /* end confdefs.h. */
  7085. $ac_declaration
  7086. #include <stdlib.h>
  7087. int
  7088. main ()
  7089. {
  7090. exit (42);
  7091. ;
  7092. return 0;
  7093. }
  7094. _ACEOF
  7095. rm -f conftest.$ac_objext
  7096. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7097. (eval $ac_compile) 2>conftest.er1
  7098. ac_status=$?
  7099. grep -v '^ *+' conftest.er1 >conftest.err
  7100. rm -f conftest.er1
  7101. cat conftest.err >&5
  7102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7103. (exit $ac_status); } &&
  7104. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7105. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7106. (eval $ac_try) 2>&5
  7107. ac_status=$?
  7108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7109. (exit $ac_status); }; } &&
  7110. { ac_try='test -s conftest.$ac_objext'
  7111. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7112. (eval $ac_try) 2>&5
  7113. ac_status=$?
  7114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7115. (exit $ac_status); }; }; then
  7116. :
  7117. else
  7118. echo "$as_me: failed program was:" >&5
  7119. sed 's/^/| /' conftest.$ac_ext >&5
  7120. continue
  7121. fi
  7122. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7123. cat >conftest.$ac_ext <<_ACEOF
  7124. /* confdefs.h. */
  7125. _ACEOF
  7126. cat confdefs.h >>conftest.$ac_ext
  7127. cat >>conftest.$ac_ext <<_ACEOF
  7128. /* end confdefs.h. */
  7129. $ac_declaration
  7130. int
  7131. main ()
  7132. {
  7133. exit (42);
  7134. ;
  7135. return 0;
  7136. }
  7137. _ACEOF
  7138. rm -f conftest.$ac_objext
  7139. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7140. (eval $ac_compile) 2>conftest.er1
  7141. ac_status=$?
  7142. grep -v '^ *+' conftest.er1 >conftest.err
  7143. rm -f conftest.er1
  7144. cat conftest.err >&5
  7145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7146. (exit $ac_status); } &&
  7147. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7149. (eval $ac_try) 2>&5
  7150. ac_status=$?
  7151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7152. (exit $ac_status); }; } &&
  7153. { ac_try='test -s conftest.$ac_objext'
  7154. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7155. (eval $ac_try) 2>&5
  7156. ac_status=$?
  7157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7158. (exit $ac_status); }; }; then
  7159. break
  7160. else
  7161. echo "$as_me: failed program was:" >&5
  7162. sed 's/^/| /' conftest.$ac_ext >&5
  7163. fi
  7164. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7165. done
  7166. rm -f conftest*
  7167. if test -n "$ac_declaration"; then
  7168. echo '#ifdef __cplusplus' >>confdefs.h
  7169. echo $ac_declaration >>confdefs.h
  7170. echo '#endif' >>confdefs.h
  7171. fi
  7172. ac_ext=c
  7173. ac_cpp='$CPP $CPPFLAGS'
  7174. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7175. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7176. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7177. depcc="$CXX" am_compiler_list=
  7178. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  7179. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  7180. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  7181. echo $ECHO_N "(cached) $ECHO_C" >&6
  7182. else
  7183. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7184. # We make a subdir and do the tests there. Otherwise we can end up
  7185. # making bogus files that we don't know about and never remove. For
  7186. # instance it was reported that on HP-UX the gcc test will end up
  7187. # making a dummy file named `D' -- because `-MD' means `put the output
  7188. # in D'.
  7189. mkdir conftest.dir
  7190. # Copy depcomp to subdir because otherwise we won't find it if we're
  7191. # using a relative directory.
  7192. cp "$am_depcomp" conftest.dir
  7193. cd conftest.dir
  7194. # We will build objects and dependencies in a subdirectory because
  7195. # it helps to detect inapplicable dependency modes. For instance
  7196. # both Tru64's cc and ICC support -MD to output dependencies as a
  7197. # side effect of compilation, but ICC will put the dependencies in
  7198. # the current directory while Tru64 will put them in the object
  7199. # directory.
  7200. mkdir sub
  7201. am_cv_CXX_dependencies_compiler_type=none
  7202. if test "$am_compiler_list" = ""; then
  7203. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  7204. fi
  7205. for depmode in $am_compiler_list; do
  7206. # Setup a source with many dependencies, because some compilers
  7207. # like to wrap large dependency lists on column 80 (with \), and
  7208. # we should not choose a depcomp mode which is confused by this.
  7209. #
  7210. # We need to recreate these files for each test, as the compiler may
  7211. # overwrite some of them when testing with obscure command lines.
  7212. # This happens at least with the AIX C compiler.
  7213. : > sub/conftest.c
  7214. for i in 1 2 3 4 5 6; do
  7215. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7216. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  7217. # Solaris 8's {/usr,}/bin/sh.
  7218. touch sub/conftst$i.h
  7219. done
  7220. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7221. case $depmode in
  7222. nosideeffect)
  7223. # after this tag, mechanisms are not by side-effect, so they'll
  7224. # only be used when explicitly requested
  7225. if test "x$enable_dependency_tracking" = xyes; then
  7226. continue
  7227. else
  7228. break
  7229. fi
  7230. ;;
  7231. none) break ;;
  7232. esac
  7233. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  7234. # mode. It turns out that the SunPro C++ compiler does not properly
  7235. # handle `-M -o', and we need to detect this.
  7236. if depmode=$depmode \
  7237. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  7238. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7239. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  7240. >/dev/null 2>conftest.err &&
  7241. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7242. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  7243. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7244. # icc doesn't choke on unknown options, it will just issue warnings
  7245. # or remarks (even with -Werror). So we grep stderr for any message
  7246. # that says an option was ignored or not supported.
  7247. # When given -MP, icc 7.0 and 7.1 complain thusly:
  7248. # icc: Command line warning: ignoring option '-M'; no argument required
  7249. # The diagnosis changed in icc 8.0:
  7250. # icc: Command line remark: option '-MP' not supported
  7251. if (grep 'ignoring option' conftest.err ||
  7252. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7253. am_cv_CXX_dependencies_compiler_type=$depmode
  7254. break
  7255. fi
  7256. fi
  7257. done
  7258. cd ..
  7259. rm -rf conftest.dir
  7260. else
  7261. am_cv_CXX_dependencies_compiler_type=none
  7262. fi
  7263. fi
  7264. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  7265. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  7266. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  7267. if
  7268. test "x$enable_dependency_tracking" != xno \
  7269. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  7270. am__fastdepCXX_TRUE=
  7271. am__fastdepCXX_FALSE='#'
  7272. else
  7273. am__fastdepCXX_TRUE='#'
  7274. am__fastdepCXX_FALSE=
  7275. fi
  7276. ac_ext=c
  7277. ac_cpp='$CPP $CPPFLAGS'
  7278. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7279. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7280. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7281. if test -n "$ac_tool_prefix"; then
  7282. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  7283. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  7284. echo "$as_me:$LINENO: checking for $ac_word" >&5
  7285. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7286. if test "${ac_cv_prog_CC+set}" = set; then
  7287. echo $ECHO_N "(cached) $ECHO_C" >&6
  7288. else
  7289. if test -n "$CC"; then
  7290. ac_cv_prog_CC="$CC" # Let the user override the test.
  7291. else
  7292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7293. for as_dir in $PATH
  7294. do
  7295. IFS=$as_save_IFS
  7296. test -z "$as_dir" && as_dir=.
  7297. for ac_exec_ext in '' $ac_executable_extensions; do
  7298. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7299. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  7300. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7301. break 2
  7302. fi
  7303. done
  7304. done
  7305. fi
  7306. fi
  7307. CC=$ac_cv_prog_CC
  7308. if test -n "$CC"; then
  7309. echo "$as_me:$LINENO: result: $CC" >&5
  7310. echo "${ECHO_T}$CC" >&6
  7311. else
  7312. echo "$as_me:$LINENO: result: no" >&5
  7313. echo "${ECHO_T}no" >&6
  7314. fi
  7315. fi
  7316. if test -z "$ac_cv_prog_CC"; then
  7317. ac_ct_CC=$CC
  7318. # Extract the first word of "gcc", so it can be a program name with args.
  7319. set dummy gcc; ac_word=$2
  7320. echo "$as_me:$LINENO: checking for $ac_word" >&5
  7321. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7322. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  7323. echo $ECHO_N "(cached) $ECHO_C" >&6
  7324. else
  7325. if test -n "$ac_ct_CC"; then
  7326. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  7327. else
  7328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7329. for as_dir in $PATH
  7330. do
  7331. IFS=$as_save_IFS
  7332. test -z "$as_dir" && as_dir=.
  7333. for ac_exec_ext in '' $ac_executable_extensions; do
  7334. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7335. ac_cv_prog_ac_ct_CC="gcc"
  7336. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7337. break 2
  7338. fi
  7339. done
  7340. done
  7341. fi
  7342. fi
  7343. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  7344. if test -n "$ac_ct_CC"; then
  7345. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  7346. echo "${ECHO_T}$ac_ct_CC" >&6
  7347. else
  7348. echo "$as_me:$LINENO: result: no" >&5
  7349. echo "${ECHO_T}no" >&6
  7350. fi
  7351. CC=$ac_ct_CC
  7352. else
  7353. CC="$ac_cv_prog_CC"
  7354. fi
  7355. if test -z "$CC"; then
  7356. if test -n "$ac_tool_prefix"; then
  7357. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  7358. set dummy ${ac_tool_prefix}cc; ac_word=$2
  7359. echo "$as_me:$LINENO: checking for $ac_word" >&5
  7360. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7361. if test "${ac_cv_prog_CC+set}" = set; then
  7362. echo $ECHO_N "(cached) $ECHO_C" >&6
  7363. else
  7364. if test -n "$CC"; then
  7365. ac_cv_prog_CC="$CC" # Let the user override the test.
  7366. else
  7367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7368. for as_dir in $PATH
  7369. do
  7370. IFS=$as_save_IFS
  7371. test -z "$as_dir" && as_dir=.
  7372. for ac_exec_ext in '' $ac_executable_extensions; do
  7373. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7374. ac_cv_prog_CC="${ac_tool_prefix}cc"
  7375. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7376. break 2
  7377. fi
  7378. done
  7379. done
  7380. fi
  7381. fi
  7382. CC=$ac_cv_prog_CC
  7383. if test -n "$CC"; then
  7384. echo "$as_me:$LINENO: result: $CC" >&5
  7385. echo "${ECHO_T}$CC" >&6
  7386. else
  7387. echo "$as_me:$LINENO: result: no" >&5
  7388. echo "${ECHO_T}no" >&6
  7389. fi
  7390. fi
  7391. if test -z "$ac_cv_prog_CC"; then
  7392. ac_ct_CC=$CC
  7393. # Extract the first word of "cc", so it can be a program name with args.
  7394. set dummy cc; ac_word=$2
  7395. echo "$as_me:$LINENO: checking for $ac_word" >&5
  7396. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7397. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  7398. echo $ECHO_N "(cached) $ECHO_C" >&6
  7399. else
  7400. if test -n "$ac_ct_CC"; then
  7401. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  7402. else
  7403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7404. for as_dir in $PATH
  7405. do
  7406. IFS=$as_save_IFS
  7407. test -z "$as_dir" && as_dir=.
  7408. for ac_exec_ext in '' $ac_executable_extensions; do
  7409. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7410. ac_cv_prog_ac_ct_CC="cc"
  7411. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7412. break 2
  7413. fi
  7414. done
  7415. done
  7416. fi
  7417. fi
  7418. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  7419. if test -n "$ac_ct_CC"; then
  7420. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  7421. echo "${ECHO_T}$ac_ct_CC" >&6
  7422. else
  7423. echo "$as_me:$LINENO: result: no" >&5
  7424. echo "${ECHO_T}no" >&6
  7425. fi
  7426. CC=$ac_ct_CC
  7427. else
  7428. CC="$ac_cv_prog_CC"
  7429. fi
  7430. fi
  7431. if test -z "$CC"; then
  7432. # Extract the first word of "cc", so it can be a program name with args.
  7433. set dummy cc; ac_word=$2
  7434. echo "$as_me:$LINENO: checking for $ac_word" >&5
  7435. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7436. if test "${ac_cv_prog_CC+set}" = set; then
  7437. echo $ECHO_N "(cached) $ECHO_C" >&6
  7438. else
  7439. if test -n "$CC"; then
  7440. ac_cv_prog_CC="$CC" # Let the user override the test.
  7441. else
  7442. ac_prog_rejected=no
  7443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7444. for as_dir in $PATH
  7445. do
  7446. IFS=$as_save_IFS
  7447. test -z "$as_dir" && as_dir=.
  7448. for ac_exec_ext in '' $ac_executable_extensions; do
  7449. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7450. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  7451. ac_prog_rejected=yes
  7452. continue
  7453. fi
  7454. ac_cv_prog_CC="cc"
  7455. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7456. break 2
  7457. fi
  7458. done
  7459. done
  7460. if test $ac_prog_rejected = yes; then
  7461. # We found a bogon in the path, so make sure we never use it.
  7462. set dummy $ac_cv_prog_CC
  7463. shift
  7464. if test $# != 0; then
  7465. # We chose a different compiler from the bogus one.
  7466. # However, it has the same basename, so the bogon will be chosen
  7467. # first if we set CC to just the basename; use the full file name.
  7468. shift
  7469. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  7470. fi
  7471. fi
  7472. fi
  7473. fi
  7474. CC=$ac_cv_prog_CC
  7475. if test -n "$CC"; then
  7476. echo "$as_me:$LINENO: result: $CC" >&5
  7477. echo "${ECHO_T}$CC" >&6
  7478. else
  7479. echo "$as_me:$LINENO: result: no" >&5
  7480. echo "${ECHO_T}no" >&6
  7481. fi
  7482. fi
  7483. if test -z "$CC"; then
  7484. if test -n "$ac_tool_prefix"; then
  7485. for ac_prog in cl
  7486. do
  7487. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7488. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7489. echo "$as_me:$LINENO: checking for $ac_word" >&5
  7490. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7491. if test "${ac_cv_prog_CC+set}" = set; then
  7492. echo $ECHO_N "(cached) $ECHO_C" >&6
  7493. else
  7494. if test -n "$CC"; then
  7495. ac_cv_prog_CC="$CC" # Let the user override the test.
  7496. else
  7497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7498. for as_dir in $PATH
  7499. do
  7500. IFS=$as_save_IFS
  7501. test -z "$as_dir" && as_dir=.
  7502. for ac_exec_ext in '' $ac_executable_extensions; do
  7503. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7504. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  7505. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7506. break 2
  7507. fi
  7508. done
  7509. done
  7510. fi
  7511. fi
  7512. CC=$ac_cv_prog_CC
  7513. if test -n "$CC"; then
  7514. echo "$as_me:$LINENO: result: $CC" >&5
  7515. echo "${ECHO_T}$CC" >&6
  7516. else
  7517. echo "$as_me:$LINENO: result: no" >&5
  7518. echo "${ECHO_T}no" >&6
  7519. fi
  7520. test -n "$CC" && break
  7521. done
  7522. fi
  7523. if test -z "$CC"; then
  7524. ac_ct_CC=$CC
  7525. for ac_prog in cl
  7526. do
  7527. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7528. set dummy $ac_prog; ac_word=$2
  7529. echo "$as_me:$LINENO: checking for $ac_word" >&5
  7530. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7531. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  7532. echo $ECHO_N "(cached) $ECHO_C" >&6
  7533. else
  7534. if test -n "$ac_ct_CC"; then
  7535. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  7536. else
  7537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7538. for as_dir in $PATH
  7539. do
  7540. IFS=$as_save_IFS
  7541. test -z "$as_dir" && as_dir=.
  7542. for ac_exec_ext in '' $ac_executable_extensions; do
  7543. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7544. ac_cv_prog_ac_ct_CC="$ac_prog"
  7545. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7546. break 2
  7547. fi
  7548. done
  7549. done
  7550. fi
  7551. fi
  7552. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  7553. if test -n "$ac_ct_CC"; then
  7554. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  7555. echo "${ECHO_T}$ac_ct_CC" >&6
  7556. else
  7557. echo "$as_me:$LINENO: result: no" >&5
  7558. echo "${ECHO_T}no" >&6
  7559. fi
  7560. test -n "$ac_ct_CC" && break
  7561. done
  7562. CC=$ac_ct_CC
  7563. fi
  7564. fi
  7565. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  7566. See \`config.log' for more details." >&5
  7567. echo "$as_me: error: no acceptable C compiler found in \$PATH
  7568. See \`config.log' for more details." >&2;}
  7569. { (exit 1); exit 1; }; }
  7570. # Provide some information about the compiler.
  7571. echo "$as_me:$LINENO:" \
  7572. "checking for C compiler version" >&5
  7573. ac_compiler=`set X $ac_compile; echo $2`
  7574. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  7575. (eval $ac_compiler --version </dev/null >&5) 2>&5
  7576. ac_status=$?
  7577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7578. (exit $ac_status); }
  7579. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  7580. (eval $ac_compiler -v </dev/null >&5) 2>&5
  7581. ac_status=$?
  7582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7583. (exit $ac_status); }
  7584. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  7585. (eval $ac_compiler -V </dev/null >&5) 2>&5
  7586. ac_status=$?
  7587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7588. (exit $ac_status); }
  7589. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  7590. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  7591. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  7592. echo $ECHO_N "(cached) $ECHO_C" >&6
  7593. else
  7594. cat >conftest.$ac_ext <<_ACEOF
  7595. /* confdefs.h. */
  7596. _ACEOF
  7597. cat confdefs.h >>conftest.$ac_ext
  7598. cat >>conftest.$ac_ext <<_ACEOF
  7599. /* end confdefs.h. */
  7600. int
  7601. main ()
  7602. {
  7603. #ifndef __GNUC__
  7604. choke me
  7605. #endif
  7606. ;
  7607. return 0;
  7608. }
  7609. _ACEOF
  7610. rm -f conftest.$ac_objext
  7611. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7612. (eval $ac_compile) 2>conftest.er1
  7613. ac_status=$?
  7614. grep -v '^ *+' conftest.er1 >conftest.err
  7615. rm -f conftest.er1
  7616. cat conftest.err >&5
  7617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7618. (exit $ac_status); } &&
  7619. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7620. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7621. (eval $ac_try) 2>&5
  7622. ac_status=$?
  7623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7624. (exit $ac_status); }; } &&
  7625. { ac_try='test -s conftest.$ac_objext'
  7626. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7627. (eval $ac_try) 2>&5
  7628. ac_status=$?
  7629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7630. (exit $ac_status); }; }; then
  7631. ac_compiler_gnu=yes
  7632. else
  7633. echo "$as_me: failed program was:" >&5
  7634. sed 's/^/| /' conftest.$ac_ext >&5
  7635. ac_compiler_gnu=no
  7636. fi
  7637. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7638. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  7639. fi
  7640. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  7641. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  7642. GCC=`test $ac_compiler_gnu = yes && echo yes`
  7643. ac_test_CFLAGS=${CFLAGS+set}
  7644. ac_save_CFLAGS=$CFLAGS
  7645. CFLAGS="-g"
  7646. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  7647. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  7648. if test "${ac_cv_prog_cc_g+set}" = set; then
  7649. echo $ECHO_N "(cached) $ECHO_C" >&6
  7650. else
  7651. cat >conftest.$ac_ext <<_ACEOF
  7652. /* confdefs.h. */
  7653. _ACEOF
  7654. cat confdefs.h >>conftest.$ac_ext
  7655. cat >>conftest.$ac_ext <<_ACEOF
  7656. /* end confdefs.h. */
  7657. int
  7658. main ()
  7659. {
  7660. ;
  7661. return 0;
  7662. }
  7663. _ACEOF
  7664. rm -f conftest.$ac_objext
  7665. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7666. (eval $ac_compile) 2>conftest.er1
  7667. ac_status=$?
  7668. grep -v '^ *+' conftest.er1 >conftest.err
  7669. rm -f conftest.er1
  7670. cat conftest.err >&5
  7671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7672. (exit $ac_status); } &&
  7673. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7674. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7675. (eval $ac_try) 2>&5
  7676. ac_status=$?
  7677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7678. (exit $ac_status); }; } &&
  7679. { ac_try='test -s conftest.$ac_objext'
  7680. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7681. (eval $ac_try) 2>&5
  7682. ac_status=$?
  7683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7684. (exit $ac_status); }; }; then
  7685. ac_cv_prog_cc_g=yes
  7686. else
  7687. echo "$as_me: failed program was:" >&5
  7688. sed 's/^/| /' conftest.$ac_ext >&5
  7689. ac_cv_prog_cc_g=no
  7690. fi
  7691. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7692. fi
  7693. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  7694. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  7695. if test "$ac_test_CFLAGS" = set; then
  7696. CFLAGS=$ac_save_CFLAGS
  7697. elif test $ac_cv_prog_cc_g = yes; then
  7698. if test "$GCC" = yes; then
  7699. CFLAGS="-g -O2"
  7700. else
  7701. CFLAGS="-g"
  7702. fi
  7703. else
  7704. if test "$GCC" = yes; then
  7705. CFLAGS="-O2"
  7706. else
  7707. CFLAGS=
  7708. fi
  7709. fi
  7710. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  7711. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  7712. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  7713. echo $ECHO_N "(cached) $ECHO_C" >&6
  7714. else
  7715. ac_cv_prog_cc_stdc=no
  7716. ac_save_CC=$CC
  7717. cat >conftest.$ac_ext <<_ACEOF
  7718. /* confdefs.h. */
  7719. _ACEOF
  7720. cat confdefs.h >>conftest.$ac_ext
  7721. cat >>conftest.$ac_ext <<_ACEOF
  7722. /* end confdefs.h. */
  7723. #include <stdarg.h>
  7724. #include <stdio.h>
  7725. #include <sys/types.h>
  7726. #include <sys/stat.h>
  7727. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  7728. struct buf { int x; };
  7729. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  7730. static char *e (p, i)
  7731. char **p;
  7732. int i;
  7733. {
  7734. return p[i];
  7735. }
  7736. static char *f (char * (*g) (char **, int), char **p, ...)
  7737. {
  7738. char *s;
  7739. va_list v;
  7740. va_start (v,p);
  7741. s = g (p, va_arg (v,int));
  7742. va_end (v);
  7743. return s;
  7744. }
  7745. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  7746. function prototypes and stuff, but not '\xHH' hex character constants.
  7747. These don't provoke an error unfortunately, instead are silently treated
  7748. as 'x'. The following induces an error, until -std1 is added to get
  7749. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  7750. array size at least. It's necessary to write '\x00'==0 to get something
  7751. that's true only with -std1. */
  7752. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  7753. int test (int i, double x);
  7754. struct s1 {int (*f) (int a);};
  7755. struct s2 {int (*f) (double a);};
  7756. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  7757. int argc;
  7758. char **argv;
  7759. int
  7760. main ()
  7761. {
  7762. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  7763. ;
  7764. return 0;
  7765. }
  7766. _ACEOF
  7767. # Don't try gcc -ansi; that turns off useful extensions and
  7768. # breaks some systems' header files.
  7769. # AIX -qlanglvl=ansi
  7770. # Ultrix and OSF/1 -std1
  7771. # HP-UX 10.20 and later -Ae
  7772. # HP-UX older versions -Aa -D_HPUX_SOURCE
  7773. # SVR4 -Xc -D__EXTENSIONS__
  7774. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  7775. do
  7776. CC="$ac_save_CC $ac_arg"
  7777. rm -f conftest.$ac_objext
  7778. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7779. (eval $ac_compile) 2>conftest.er1
  7780. ac_status=$?
  7781. grep -v '^ *+' conftest.er1 >conftest.err
  7782. rm -f conftest.er1
  7783. cat conftest.err >&5
  7784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7785. (exit $ac_status); } &&
  7786. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7787. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7788. (eval $ac_try) 2>&5
  7789. ac_status=$?
  7790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7791. (exit $ac_status); }; } &&
  7792. { ac_try='test -s conftest.$ac_objext'
  7793. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7794. (eval $ac_try) 2>&5
  7795. ac_status=$?
  7796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7797. (exit $ac_status); }; }; then
  7798. ac_cv_prog_cc_stdc=$ac_arg
  7799. break
  7800. else
  7801. echo "$as_me: failed program was:" >&5
  7802. sed 's/^/| /' conftest.$ac_ext >&5
  7803. fi
  7804. rm -f conftest.err conftest.$ac_objext
  7805. done
  7806. rm -f conftest.$ac_ext conftest.$ac_objext
  7807. CC=$ac_save_CC
  7808. fi
  7809. case "x$ac_cv_prog_cc_stdc" in
  7810. x|xno)
  7811. echo "$as_me:$LINENO: result: none needed" >&5
  7812. echo "${ECHO_T}none needed" >&6 ;;
  7813. *)
  7814. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  7815. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  7816. CC="$CC $ac_cv_prog_cc_stdc" ;;
  7817. esac
  7818. # Some people use a C++ compiler to compile C. Since we use `exit',
  7819. # in C++ we need to declare it. In case someone uses the same compiler
  7820. # for both compiling C and C++ we need to have the C++ compiler decide
  7821. # the declaration of exit, since it's the most demanding environment.
  7822. cat >conftest.$ac_ext <<_ACEOF
  7823. #ifndef __cplusplus
  7824. choke me
  7825. #endif
  7826. _ACEOF
  7827. rm -f conftest.$ac_objext
  7828. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7829. (eval $ac_compile) 2>conftest.er1
  7830. ac_status=$?
  7831. grep -v '^ *+' conftest.er1 >conftest.err
  7832. rm -f conftest.er1
  7833. cat conftest.err >&5
  7834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7835. (exit $ac_status); } &&
  7836. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7837. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7838. (eval $ac_try) 2>&5
  7839. ac_status=$?
  7840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7841. (exit $ac_status); }; } &&
  7842. { ac_try='test -s conftest.$ac_objext'
  7843. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7844. (eval $ac_try) 2>&5
  7845. ac_status=$?
  7846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7847. (exit $ac_status); }; }; then
  7848. for ac_declaration in \
  7849. '' \
  7850. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  7851. 'extern "C" void std::exit (int); using std::exit;' \
  7852. 'extern "C" void exit (int) throw ();' \
  7853. 'extern "C" void exit (int);' \
  7854. 'void exit (int);'
  7855. do
  7856. cat >conftest.$ac_ext <<_ACEOF
  7857. /* confdefs.h. */
  7858. _ACEOF
  7859. cat confdefs.h >>conftest.$ac_ext
  7860. cat >>conftest.$ac_ext <<_ACEOF
  7861. /* end confdefs.h. */
  7862. $ac_declaration
  7863. #include <stdlib.h>
  7864. int
  7865. main ()
  7866. {
  7867. exit (42);
  7868. ;
  7869. return 0;
  7870. }
  7871. _ACEOF
  7872. rm -f conftest.$ac_objext
  7873. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7874. (eval $ac_compile) 2>conftest.er1
  7875. ac_status=$?
  7876. grep -v '^ *+' conftest.er1 >conftest.err
  7877. rm -f conftest.er1
  7878. cat conftest.err >&5
  7879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7880. (exit $ac_status); } &&
  7881. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7882. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7883. (eval $ac_try) 2>&5
  7884. ac_status=$?
  7885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7886. (exit $ac_status); }; } &&
  7887. { ac_try='test -s conftest.$ac_objext'
  7888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7889. (eval $ac_try) 2>&5
  7890. ac_status=$?
  7891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7892. (exit $ac_status); }; }; then
  7893. :
  7894. else
  7895. echo "$as_me: failed program was:" >&5
  7896. sed 's/^/| /' conftest.$ac_ext >&5
  7897. continue
  7898. fi
  7899. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7900. cat >conftest.$ac_ext <<_ACEOF
  7901. /* confdefs.h. */
  7902. _ACEOF
  7903. cat confdefs.h >>conftest.$ac_ext
  7904. cat >>conftest.$ac_ext <<_ACEOF
  7905. /* end confdefs.h. */
  7906. $ac_declaration
  7907. int
  7908. main ()
  7909. {
  7910. exit (42);
  7911. ;
  7912. return 0;
  7913. }
  7914. _ACEOF
  7915. rm -f conftest.$ac_objext
  7916. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7917. (eval $ac_compile) 2>conftest.er1
  7918. ac_status=$?
  7919. grep -v '^ *+' conftest.er1 >conftest.err
  7920. rm -f conftest.er1
  7921. cat conftest.err >&5
  7922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7923. (exit $ac_status); } &&
  7924. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7925. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7926. (eval $ac_try) 2>&5
  7927. ac_status=$?
  7928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7929. (exit $ac_status); }; } &&
  7930. { ac_try='test -s conftest.$ac_objext'
  7931. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7932. (eval $ac_try) 2>&5
  7933. ac_status=$?
  7934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7935. (exit $ac_status); }; }; then
  7936. break
  7937. else
  7938. echo "$as_me: failed program was:" >&5
  7939. sed 's/^/| /' conftest.$ac_ext >&5
  7940. fi
  7941. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7942. done
  7943. rm -f conftest*
  7944. if test -n "$ac_declaration"; then
  7945. echo '#ifdef __cplusplus' >>confdefs.h
  7946. echo $ac_declaration >>confdefs.h
  7947. echo '#endif' >>confdefs.h
  7948. fi
  7949. else
  7950. echo "$as_me: failed program was:" >&5
  7951. sed 's/^/| /' conftest.$ac_ext >&5
  7952. fi
  7953. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7954. ac_ext=c
  7955. ac_cpp='$CPP $CPPFLAGS'
  7956. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7957. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7958. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7959. depcc="$CC" am_compiler_list=
  7960. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  7961. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  7962. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  7963. echo $ECHO_N "(cached) $ECHO_C" >&6
  7964. else
  7965. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7966. # We make a subdir and do the tests there. Otherwise we can end up
  7967. # making bogus files that we don't know about and never remove. For
  7968. # instance it was reported that on HP-UX the gcc test will end up
  7969. # making a dummy file named `D' -- because `-MD' means `put the output
  7970. # in D'.
  7971. mkdir conftest.dir
  7972. # Copy depcomp to subdir because otherwise we won't find it if we're
  7973. # using a relative directory.
  7974. cp "$am_depcomp" conftest.dir
  7975. cd conftest.dir
  7976. # We will build objects and dependencies in a subdirectory because
  7977. # it helps to detect inapplicable dependency modes. For instance
  7978. # both Tru64's cc and ICC support -MD to output dependencies as a
  7979. # side effect of compilation, but ICC will put the dependencies in
  7980. # the current directory while Tru64 will put them in the object
  7981. # directory.
  7982. mkdir sub
  7983. am_cv_CC_dependencies_compiler_type=none
  7984. if test "$am_compiler_list" = ""; then
  7985. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  7986. fi
  7987. for depmode in $am_compiler_list; do
  7988. # Setup a source with many dependencies, because some compilers
  7989. # like to wrap large dependency lists on column 80 (with \), and
  7990. # we should not choose a depcomp mode which is confused by this.
  7991. #
  7992. # We need to recreate these files for each test, as the compiler may
  7993. # overwrite some of them when testing with obscure command lines.
  7994. # This happens at least with the AIX C compiler.
  7995. : > sub/conftest.c
  7996. for i in 1 2 3 4 5 6; do
  7997. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7998. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  7999. # Solaris 8's {/usr,}/bin/sh.
  8000. touch sub/conftst$i.h
  8001. done
  8002. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  8003. case $depmode in
  8004. nosideeffect)
  8005. # after this tag, mechanisms are not by side-effect, so they'll
  8006. # only be used when explicitly requested
  8007. if test "x$enable_dependency_tracking" = xyes; then
  8008. continue
  8009. else
  8010. break
  8011. fi
  8012. ;;
  8013. none) break ;;
  8014. esac
  8015. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  8016. # mode. It turns out that the SunPro C++ compiler does not properly
  8017. # handle `-M -o', and we need to detect this.
  8018. if depmode=$depmode \
  8019. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  8020. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8021. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  8022. >/dev/null 2>conftest.err &&
  8023. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8024. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  8025. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8026. # icc doesn't choke on unknown options, it will just issue warnings
  8027. # or remarks (even with -Werror). So we grep stderr for any message
  8028. # that says an option was ignored or not supported.
  8029. # When given -MP, icc 7.0 and 7.1 complain thusly:
  8030. # icc: Command line warning: ignoring option '-M'; no argument required
  8031. # The diagnosis changed in icc 8.0:
  8032. # icc: Command line remark: option '-MP' not supported
  8033. if (grep 'ignoring option' conftest.err ||
  8034. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8035. am_cv_CC_dependencies_compiler_type=$depmode
  8036. break
  8037. fi
  8038. fi
  8039. done
  8040. cd ..
  8041. rm -rf conftest.dir
  8042. else
  8043. am_cv_CC_dependencies_compiler_type=none
  8044. fi
  8045. fi
  8046. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  8047. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  8048. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  8049. if
  8050. test "x$enable_dependency_tracking" != xno \
  8051. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  8052. am__fastdepCC_TRUE=
  8053. am__fastdepCC_FALSE='#'
  8054. else
  8055. am__fastdepCC_TRUE='#'
  8056. am__fastdepCC_FALSE=
  8057. fi
  8058. # Checks for libraries.
  8059. if test "x$enable_ssl" = "xyes"; then
  8060. echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  8061. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
  8062. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  8063. echo $ECHO_N "(cached) $ECHO_C" >&6
  8064. else
  8065. ac_check_lib_save_LIBS=$LIBS
  8066. LIBS="-lssl $LIBS"
  8067. cat >conftest.$ac_ext <<_ACEOF
  8068. /* confdefs.h. */
  8069. _ACEOF
  8070. cat confdefs.h >>conftest.$ac_ext
  8071. cat >>conftest.$ac_ext <<_ACEOF
  8072. /* end confdefs.h. */
  8073. /* Override any gcc2 internal prototype to avoid an error. */
  8074. #ifdef __cplusplus
  8075. extern "C"
  8076. #endif
  8077. /* We use char because int might match the return type of a gcc2
  8078. builtin and then its argument prototype would still apply. */
  8079. char SSL_library_init ();
  8080. int
  8081. main ()
  8082. {
  8083. SSL_library_init ();
  8084. ;
  8085. return 0;
  8086. }
  8087. _ACEOF
  8088. rm -f conftest.$ac_objext conftest$ac_exeext
  8089. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8090. (eval $ac_link) 2>conftest.er1
  8091. ac_status=$?
  8092. grep -v '^ *+' conftest.er1 >conftest.err
  8093. rm -f conftest.er1
  8094. cat conftest.err >&5
  8095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8096. (exit $ac_status); } &&
  8097. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8098. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8099. (eval $ac_try) 2>&5
  8100. ac_status=$?
  8101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8102. (exit $ac_status); }; } &&
  8103. { ac_try='test -s conftest$ac_exeext'
  8104. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8105. (eval $ac_try) 2>&5
  8106. ac_status=$?
  8107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8108. (exit $ac_status); }; }; then
  8109. ac_cv_lib_ssl_SSL_library_init=yes
  8110. else
  8111. echo "$as_me: failed program was:" >&5
  8112. sed 's/^/| /' conftest.$ac_ext >&5
  8113. ac_cv_lib_ssl_SSL_library_init=no
  8114. fi
  8115. rm -f conftest.err conftest.$ac_objext \
  8116. conftest$ac_exeext conftest.$ac_ext
  8117. LIBS=$ac_check_lib_save_LIBS
  8118. fi
  8119. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  8120. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
  8121. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  8122. cat >>confdefs.h <<_ACEOF
  8123. #define HAVE_LIBSSL 1
  8124. _ACEOF
  8125. LIBS="-lssl $LIBS"
  8126. fi
  8127. fi
  8128. # Checks for header files.
  8129. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  8130. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  8131. if test "${ac_cv_header_stdc+set}" = set; then
  8132. echo $ECHO_N "(cached) $ECHO_C" >&6
  8133. else
  8134. cat >conftest.$ac_ext <<_ACEOF
  8135. /* confdefs.h. */
  8136. _ACEOF
  8137. cat confdefs.h >>conftest.$ac_ext
  8138. cat >>conftest.$ac_ext <<_ACEOF
  8139. /* end confdefs.h. */
  8140. #include <stdlib.h>
  8141. #include <stdarg.h>
  8142. #include <string.h>
  8143. #include <float.h>
  8144. int
  8145. main ()
  8146. {
  8147. ;
  8148. return 0;
  8149. }
  8150. _ACEOF
  8151. rm -f conftest.$ac_objext
  8152. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8153. (eval $ac_compile) 2>conftest.er1
  8154. ac_status=$?
  8155. grep -v '^ *+' conftest.er1 >conftest.err
  8156. rm -f conftest.er1
  8157. cat conftest.err >&5
  8158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8159. (exit $ac_status); } &&
  8160. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8161. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8162. (eval $ac_try) 2>&5
  8163. ac_status=$?
  8164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8165. (exit $ac_status); }; } &&
  8166. { ac_try='test -s conftest.$ac_objext'
  8167. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8168. (eval $ac_try) 2>&5
  8169. ac_status=$?
  8170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8171. (exit $ac_status); }; }; then
  8172. ac_cv_header_stdc=yes
  8173. else
  8174. echo "$as_me: failed program was:" >&5
  8175. sed 's/^/| /' conftest.$ac_ext >&5
  8176. ac_cv_header_stdc=no
  8177. fi
  8178. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8179. if test $ac_cv_header_stdc = yes; then
  8180. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  8181. cat >conftest.$ac_ext <<_ACEOF
  8182. /* confdefs.h. */
  8183. _ACEOF
  8184. cat confdefs.h >>conftest.$ac_ext
  8185. cat >>conftest.$ac_ext <<_ACEOF
  8186. /* end confdefs.h. */
  8187. #include <string.h>
  8188. _ACEOF
  8189. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8190. $EGREP "memchr" >/dev/null 2>&1; then
  8191. :
  8192. else
  8193. ac_cv_header_stdc=no
  8194. fi
  8195. rm -f conftest*
  8196. fi
  8197. if test $ac_cv_header_stdc = yes; then
  8198. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  8199. cat >conftest.$ac_ext <<_ACEOF
  8200. /* confdefs.h. */
  8201. _ACEOF
  8202. cat confdefs.h >>conftest.$ac_ext
  8203. cat >>conftest.$ac_ext <<_ACEOF
  8204. /* end confdefs.h. */
  8205. #include <stdlib.h>
  8206. _ACEOF
  8207. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8208. $EGREP "free" >/dev/null 2>&1; then
  8209. :
  8210. else
  8211. ac_cv_header_stdc=no
  8212. fi
  8213. rm -f conftest*
  8214. fi
  8215. if test $ac_cv_header_stdc = yes; then
  8216. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  8217. if test "$cross_compiling" = yes; then
  8218. :
  8219. else
  8220. cat >conftest.$ac_ext <<_ACEOF
  8221. /* confdefs.h. */
  8222. _ACEOF
  8223. cat confdefs.h >>conftest.$ac_ext
  8224. cat >>conftest.$ac_ext <<_ACEOF
  8225. /* end confdefs.h. */
  8226. #include <ctype.h>
  8227. #if ((' ' & 0x0FF) == 0x020)
  8228. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8229. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8230. #else
  8231. # define ISLOWER(c) \
  8232. (('a' <= (c) && (c) <= 'i') \
  8233. || ('j' <= (c) && (c) <= 'r') \
  8234. || ('s' <= (c) && (c) <= 'z'))
  8235. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  8236. #endif
  8237. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8238. int
  8239. main ()
  8240. {
  8241. int i;
  8242. for (i = 0; i < 256; i++)
  8243. if (XOR (islower (i), ISLOWER (i))
  8244. || toupper (i) != TOUPPER (i))
  8245. exit(2);
  8246. exit (0);
  8247. }
  8248. _ACEOF
  8249. rm -f conftest$ac_exeext
  8250. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8251. (eval $ac_link) 2>&5
  8252. ac_status=$?
  8253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8254. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8255. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8256. (eval $ac_try) 2>&5
  8257. ac_status=$?
  8258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8259. (exit $ac_status); }; }; then
  8260. :
  8261. else
  8262. echo "$as_me: program exited with status $ac_status" >&5
  8263. echo "$as_me: failed program was:" >&5
  8264. sed 's/^/| /' conftest.$ac_ext >&5
  8265. ( exit $ac_status )
  8266. ac_cv_header_stdc=no
  8267. fi
  8268. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8269. fi
  8270. fi
  8271. fi
  8272. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  8273. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  8274. if test $ac_cv_header_stdc = yes; then
  8275. cat >>confdefs.h <<\_ACEOF
  8276. #define STDC_HEADERS 1
  8277. _ACEOF
  8278. fi
  8279. for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h string.h sys/socket.h sys/time.h unistd.h limits.h
  8280. do
  8281. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8282. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8283. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8284. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8285. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8286. echo $ECHO_N "(cached) $ECHO_C" >&6
  8287. fi
  8288. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8289. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8290. else
  8291. # Is the header compilable?
  8292. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8293. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8294. cat >conftest.$ac_ext <<_ACEOF
  8295. /* confdefs.h. */
  8296. _ACEOF
  8297. cat confdefs.h >>conftest.$ac_ext
  8298. cat >>conftest.$ac_ext <<_ACEOF
  8299. /* end confdefs.h. */
  8300. $ac_includes_default
  8301. #include <$ac_header>
  8302. _ACEOF
  8303. rm -f conftest.$ac_objext
  8304. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8305. (eval $ac_compile) 2>conftest.er1
  8306. ac_status=$?
  8307. grep -v '^ *+' conftest.er1 >conftest.err
  8308. rm -f conftest.er1
  8309. cat conftest.err >&5
  8310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8311. (exit $ac_status); } &&
  8312. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8313. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8314. (eval $ac_try) 2>&5
  8315. ac_status=$?
  8316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8317. (exit $ac_status); }; } &&
  8318. { ac_try='test -s conftest.$ac_objext'
  8319. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8320. (eval $ac_try) 2>&5
  8321. ac_status=$?
  8322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8323. (exit $ac_status); }; }; then
  8324. ac_header_compiler=yes
  8325. else
  8326. echo "$as_me: failed program was:" >&5
  8327. sed 's/^/| /' conftest.$ac_ext >&5
  8328. ac_header_compiler=no
  8329. fi
  8330. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8331. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8332. echo "${ECHO_T}$ac_header_compiler" >&6
  8333. # Is the header present?
  8334. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8335. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8336. cat >conftest.$ac_ext <<_ACEOF
  8337. /* confdefs.h. */
  8338. _ACEOF
  8339. cat confdefs.h >>conftest.$ac_ext
  8340. cat >>conftest.$ac_ext <<_ACEOF
  8341. /* end confdefs.h. */
  8342. #include <$ac_header>
  8343. _ACEOF
  8344. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8345. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8346. ac_status=$?
  8347. grep -v '^ *+' conftest.er1 >conftest.err
  8348. rm -f conftest.er1
  8349. cat conftest.err >&5
  8350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8351. (exit $ac_status); } >/dev/null; then
  8352. if test -s conftest.err; then
  8353. ac_cpp_err=$ac_c_preproc_warn_flag
  8354. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8355. else
  8356. ac_cpp_err=
  8357. fi
  8358. else
  8359. ac_cpp_err=yes
  8360. fi
  8361. if test -z "$ac_cpp_err"; then
  8362. ac_header_preproc=yes
  8363. else
  8364. echo "$as_me: failed program was:" >&5
  8365. sed 's/^/| /' conftest.$ac_ext >&5
  8366. ac_header_preproc=no
  8367. fi
  8368. rm -f conftest.err conftest.$ac_ext
  8369. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8370. echo "${ECHO_T}$ac_header_preproc" >&6
  8371. # So? What about this header?
  8372. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8373. yes:no: )
  8374. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8375. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8376. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8377. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8378. ac_header_preproc=yes
  8379. ;;
  8380. no:yes:* )
  8381. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8382. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8383. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8384. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8385. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8386. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8387. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8388. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8389. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8390. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8391. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8392. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8393. (
  8394. cat <<\_ASBOX
  8395. ## ----------------------------------- ##
  8396. ## Report this to tujikawa@rednoah.com ##
  8397. ## ----------------------------------- ##
  8398. _ASBOX
  8399. ) |
  8400. sed "s/^/$as_me: WARNING: /" >&2
  8401. ;;
  8402. esac
  8403. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8404. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8405. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8406. echo $ECHO_N "(cached) $ECHO_C" >&6
  8407. else
  8408. eval "$as_ac_Header=\$ac_header_preproc"
  8409. fi
  8410. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8411. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8412. fi
  8413. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8414. cat >>confdefs.h <<_ACEOF
  8415. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8416. _ACEOF
  8417. fi
  8418. done
  8419. # Checks for typedefs, structures, and compiler characteristics.
  8420. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  8421. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  8422. if test "${ac_cv_header_stdbool_h+set}" = set; then
  8423. echo $ECHO_N "(cached) $ECHO_C" >&6
  8424. else
  8425. cat >conftest.$ac_ext <<_ACEOF
  8426. /* confdefs.h. */
  8427. _ACEOF
  8428. cat confdefs.h >>conftest.$ac_ext
  8429. cat >>conftest.$ac_ext <<_ACEOF
  8430. /* end confdefs.h. */
  8431. #include <stdbool.h>
  8432. #ifndef bool
  8433. # error bool is not defined
  8434. #endif
  8435. #ifndef false
  8436. # error false is not defined
  8437. #endif
  8438. #if false
  8439. # error false is not 0
  8440. #endif
  8441. #ifndef true
  8442. # error true is not defined
  8443. #endif
  8444. #if true != 1
  8445. # error true is not 1
  8446. #endif
  8447. #ifndef __bool_true_false_are_defined
  8448. # error __bool_true_false_are_defined is not defined
  8449. #endif
  8450. struct s { _Bool s: 1; _Bool t; } s;
  8451. char a[true == 1 ? 1 : -1];
  8452. char b[false == 0 ? 1 : -1];
  8453. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  8454. char d[(bool) -0.5 == true ? 1 : -1];
  8455. bool e = &s;
  8456. char f[(_Bool) -0.0 == false ? 1 : -1];
  8457. char g[true];
  8458. char h[sizeof (_Bool)];
  8459. char i[sizeof s.t];
  8460. int
  8461. main ()
  8462. {
  8463. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  8464. ;
  8465. return 0;
  8466. }
  8467. _ACEOF
  8468. rm -f conftest.$ac_objext
  8469. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8470. (eval $ac_compile) 2>conftest.er1
  8471. ac_status=$?
  8472. grep -v '^ *+' conftest.er1 >conftest.err
  8473. rm -f conftest.er1
  8474. cat conftest.err >&5
  8475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8476. (exit $ac_status); } &&
  8477. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8478. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8479. (eval $ac_try) 2>&5
  8480. ac_status=$?
  8481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8482. (exit $ac_status); }; } &&
  8483. { ac_try='test -s conftest.$ac_objext'
  8484. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8485. (eval $ac_try) 2>&5
  8486. ac_status=$?
  8487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8488. (exit $ac_status); }; }; then
  8489. ac_cv_header_stdbool_h=yes
  8490. else
  8491. echo "$as_me: failed program was:" >&5
  8492. sed 's/^/| /' conftest.$ac_ext >&5
  8493. ac_cv_header_stdbool_h=no
  8494. fi
  8495. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8496. fi
  8497. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  8498. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  8499. echo "$as_me:$LINENO: checking for _Bool" >&5
  8500. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  8501. if test "${ac_cv_type__Bool+set}" = set; then
  8502. echo $ECHO_N "(cached) $ECHO_C" >&6
  8503. else
  8504. cat >conftest.$ac_ext <<_ACEOF
  8505. /* confdefs.h. */
  8506. _ACEOF
  8507. cat confdefs.h >>conftest.$ac_ext
  8508. cat >>conftest.$ac_ext <<_ACEOF
  8509. /* end confdefs.h. */
  8510. $ac_includes_default
  8511. int
  8512. main ()
  8513. {
  8514. if ((_Bool *) 0)
  8515. return 0;
  8516. if (sizeof (_Bool))
  8517. return 0;
  8518. ;
  8519. return 0;
  8520. }
  8521. _ACEOF
  8522. rm -f conftest.$ac_objext
  8523. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8524. (eval $ac_compile) 2>conftest.er1
  8525. ac_status=$?
  8526. grep -v '^ *+' conftest.er1 >conftest.err
  8527. rm -f conftest.er1
  8528. cat conftest.err >&5
  8529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8530. (exit $ac_status); } &&
  8531. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8532. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8533. (eval $ac_try) 2>&5
  8534. ac_status=$?
  8535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8536. (exit $ac_status); }; } &&
  8537. { ac_try='test -s conftest.$ac_objext'
  8538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8539. (eval $ac_try) 2>&5
  8540. ac_status=$?
  8541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8542. (exit $ac_status); }; }; then
  8543. ac_cv_type__Bool=yes
  8544. else
  8545. echo "$as_me: failed program was:" >&5
  8546. sed 's/^/| /' conftest.$ac_ext >&5
  8547. ac_cv_type__Bool=no
  8548. fi
  8549. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8550. fi
  8551. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  8552. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  8553. if test $ac_cv_type__Bool = yes; then
  8554. cat >>confdefs.h <<_ACEOF
  8555. #define HAVE__BOOL 1
  8556. _ACEOF
  8557. fi
  8558. if test $ac_cv_header_stdbool_h = yes; then
  8559. cat >>confdefs.h <<\_ACEOF
  8560. #define HAVE_STDBOOL_H 1
  8561. _ACEOF
  8562. fi
  8563. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  8564. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  8565. if test "${ac_cv_c_const+set}" = set; then
  8566. echo $ECHO_N "(cached) $ECHO_C" >&6
  8567. else
  8568. cat >conftest.$ac_ext <<_ACEOF
  8569. /* confdefs.h. */
  8570. _ACEOF
  8571. cat confdefs.h >>conftest.$ac_ext
  8572. cat >>conftest.$ac_ext <<_ACEOF
  8573. /* end confdefs.h. */
  8574. int
  8575. main ()
  8576. {
  8577. /* FIXME: Include the comments suggested by Paul. */
  8578. #ifndef __cplusplus
  8579. /* Ultrix mips cc rejects this. */
  8580. typedef int charset[2];
  8581. const charset x;
  8582. /* SunOS 4.1.1 cc rejects this. */
  8583. char const *const *ccp;
  8584. char **p;
  8585. /* NEC SVR4.0.2 mips cc rejects this. */
  8586. struct point {int x, y;};
  8587. static struct point const zero = {0,0};
  8588. /* AIX XL C 1.02.0.0 rejects this.
  8589. It does not let you subtract one const X* pointer from another in
  8590. an arm of an if-expression whose if-part is not a constant
  8591. expression */
  8592. const char *g = "string";
  8593. ccp = &g + (g ? g-g : 0);
  8594. /* HPUX 7.0 cc rejects these. */
  8595. ++ccp;
  8596. p = (char**) ccp;
  8597. ccp = (char const *const *) p;
  8598. { /* SCO 3.2v4 cc rejects this. */
  8599. char *t;
  8600. char const *s = 0 ? (char *) 0 : (char const *) 0;
  8601. *t++ = 0;
  8602. }
  8603. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  8604. int x[] = {25, 17};
  8605. const int *foo = &x[0];
  8606. ++foo;
  8607. }
  8608. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  8609. typedef const int *iptr;
  8610. iptr p = 0;
  8611. ++p;
  8612. }
  8613. { /* AIX XL C 1.02.0.0 rejects this saying
  8614. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  8615. struct s { int j; const int *ap[3]; };
  8616. struct s *b; b->j = 5;
  8617. }
  8618. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  8619. const int foo = 10;
  8620. }
  8621. #endif
  8622. ;
  8623. return 0;
  8624. }
  8625. _ACEOF
  8626. rm -f conftest.$ac_objext
  8627. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8628. (eval $ac_compile) 2>conftest.er1
  8629. ac_status=$?
  8630. grep -v '^ *+' conftest.er1 >conftest.err
  8631. rm -f conftest.er1
  8632. cat conftest.err >&5
  8633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8634. (exit $ac_status); } &&
  8635. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8636. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8637. (eval $ac_try) 2>&5
  8638. ac_status=$?
  8639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8640. (exit $ac_status); }; } &&
  8641. { ac_try='test -s conftest.$ac_objext'
  8642. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8643. (eval $ac_try) 2>&5
  8644. ac_status=$?
  8645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8646. (exit $ac_status); }; }; then
  8647. ac_cv_c_const=yes
  8648. else
  8649. echo "$as_me: failed program was:" >&5
  8650. sed 's/^/| /' conftest.$ac_ext >&5
  8651. ac_cv_c_const=no
  8652. fi
  8653. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8654. fi
  8655. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  8656. echo "${ECHO_T}$ac_cv_c_const" >&6
  8657. if test $ac_cv_c_const = no; then
  8658. cat >>confdefs.h <<\_ACEOF
  8659. #define const
  8660. _ACEOF
  8661. fi
  8662. echo "$as_me:$LINENO: checking for size_t" >&5
  8663. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  8664. if test "${ac_cv_type_size_t+set}" = set; then
  8665. echo $ECHO_N "(cached) $ECHO_C" >&6
  8666. else
  8667. cat >conftest.$ac_ext <<_ACEOF
  8668. /* confdefs.h. */
  8669. _ACEOF
  8670. cat confdefs.h >>conftest.$ac_ext
  8671. cat >>conftest.$ac_ext <<_ACEOF
  8672. /* end confdefs.h. */
  8673. $ac_includes_default
  8674. int
  8675. main ()
  8676. {
  8677. if ((size_t *) 0)
  8678. return 0;
  8679. if (sizeof (size_t))
  8680. return 0;
  8681. ;
  8682. return 0;
  8683. }
  8684. _ACEOF
  8685. rm -f conftest.$ac_objext
  8686. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8687. (eval $ac_compile) 2>conftest.er1
  8688. ac_status=$?
  8689. grep -v '^ *+' conftest.er1 >conftest.err
  8690. rm -f conftest.er1
  8691. cat conftest.err >&5
  8692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8693. (exit $ac_status); } &&
  8694. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8695. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8696. (eval $ac_try) 2>&5
  8697. ac_status=$?
  8698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8699. (exit $ac_status); }; } &&
  8700. { ac_try='test -s conftest.$ac_objext'
  8701. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8702. (eval $ac_try) 2>&5
  8703. ac_status=$?
  8704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8705. (exit $ac_status); }; }; then
  8706. ac_cv_type_size_t=yes
  8707. else
  8708. echo "$as_me: failed program was:" >&5
  8709. sed 's/^/| /' conftest.$ac_ext >&5
  8710. ac_cv_type_size_t=no
  8711. fi
  8712. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8713. fi
  8714. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  8715. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  8716. if test $ac_cv_type_size_t = yes; then
  8717. :
  8718. else
  8719. cat >>confdefs.h <<_ACEOF
  8720. #define size_t unsigned
  8721. _ACEOF
  8722. fi
  8723. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  8724. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  8725. if test "${ac_cv_header_time+set}" = set; then
  8726. echo $ECHO_N "(cached) $ECHO_C" >&6
  8727. else
  8728. cat >conftest.$ac_ext <<_ACEOF
  8729. /* confdefs.h. */
  8730. _ACEOF
  8731. cat confdefs.h >>conftest.$ac_ext
  8732. cat >>conftest.$ac_ext <<_ACEOF
  8733. /* end confdefs.h. */
  8734. #include <sys/types.h>
  8735. #include <sys/time.h>
  8736. #include <time.h>
  8737. int
  8738. main ()
  8739. {
  8740. if ((struct tm *) 0)
  8741. return 0;
  8742. ;
  8743. return 0;
  8744. }
  8745. _ACEOF
  8746. rm -f conftest.$ac_objext
  8747. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8748. (eval $ac_compile) 2>conftest.er1
  8749. ac_status=$?
  8750. grep -v '^ *+' conftest.er1 >conftest.err
  8751. rm -f conftest.er1
  8752. cat conftest.err >&5
  8753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8754. (exit $ac_status); } &&
  8755. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8756. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8757. (eval $ac_try) 2>&5
  8758. ac_status=$?
  8759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8760. (exit $ac_status); }; } &&
  8761. { ac_try='test -s conftest.$ac_objext'
  8762. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8763. (eval $ac_try) 2>&5
  8764. ac_status=$?
  8765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8766. (exit $ac_status); }; }; then
  8767. ac_cv_header_time=yes
  8768. else
  8769. echo "$as_me: failed program was:" >&5
  8770. sed 's/^/| /' conftest.$ac_ext >&5
  8771. ac_cv_header_time=no
  8772. fi
  8773. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8774. fi
  8775. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  8776. echo "${ECHO_T}$ac_cv_header_time" >&6
  8777. if test $ac_cv_header_time = yes; then
  8778. cat >>confdefs.h <<\_ACEOF
  8779. #define TIME_WITH_SYS_TIME 1
  8780. _ACEOF
  8781. fi
  8782. # Checks for library functions.
  8783. echo "$as_me:$LINENO: checking for error_at_line" >&5
  8784. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  8785. if test "${ac_cv_lib_error_at_line+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. $ac_includes_default
  8795. int
  8796. main ()
  8797. {
  8798. error_at_line (0, 0, "", 0, "");
  8799. ;
  8800. return 0;
  8801. }
  8802. _ACEOF
  8803. rm -f conftest.$ac_objext conftest$ac_exeext
  8804. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8805. (eval $ac_link) 2>conftest.er1
  8806. ac_status=$?
  8807. grep -v '^ *+' conftest.er1 >conftest.err
  8808. rm -f conftest.er1
  8809. cat conftest.err >&5
  8810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8811. (exit $ac_status); } &&
  8812. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8813. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8814. (eval $ac_try) 2>&5
  8815. ac_status=$?
  8816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8817. (exit $ac_status); }; } &&
  8818. { ac_try='test -s conftest$ac_exeext'
  8819. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8820. (eval $ac_try) 2>&5
  8821. ac_status=$?
  8822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8823. (exit $ac_status); }; }; then
  8824. ac_cv_lib_error_at_line=yes
  8825. else
  8826. echo "$as_me: failed program was:" >&5
  8827. sed 's/^/| /' conftest.$ac_ext >&5
  8828. ac_cv_lib_error_at_line=no
  8829. fi
  8830. rm -f conftest.err conftest.$ac_objext \
  8831. conftest$ac_exeext conftest.$ac_ext
  8832. fi
  8833. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  8834. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  8835. if test $ac_cv_lib_error_at_line = no; then
  8836. case $LIBOBJS in
  8837. "error.$ac_objext" | \
  8838. *" error.$ac_objext" | \
  8839. "error.$ac_objext "* | \
  8840. *" error.$ac_objext "* ) ;;
  8841. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  8842. esac
  8843. fi
  8844. for ac_header in sys/select.h sys/socket.h
  8845. do
  8846. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8847. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8848. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8849. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8850. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8851. echo $ECHO_N "(cached) $ECHO_C" >&6
  8852. fi
  8853. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8854. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8855. else
  8856. # Is the header compilable?
  8857. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8858. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8859. cat >conftest.$ac_ext <<_ACEOF
  8860. /* confdefs.h. */
  8861. _ACEOF
  8862. cat confdefs.h >>conftest.$ac_ext
  8863. cat >>conftest.$ac_ext <<_ACEOF
  8864. /* end confdefs.h. */
  8865. $ac_includes_default
  8866. #include <$ac_header>
  8867. _ACEOF
  8868. rm -f conftest.$ac_objext
  8869. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8870. (eval $ac_compile) 2>conftest.er1
  8871. ac_status=$?
  8872. grep -v '^ *+' conftest.er1 >conftest.err
  8873. rm -f conftest.er1
  8874. cat conftest.err >&5
  8875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8876. (exit $ac_status); } &&
  8877. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8878. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8879. (eval $ac_try) 2>&5
  8880. ac_status=$?
  8881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8882. (exit $ac_status); }; } &&
  8883. { ac_try='test -s conftest.$ac_objext'
  8884. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8885. (eval $ac_try) 2>&5
  8886. ac_status=$?
  8887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8888. (exit $ac_status); }; }; then
  8889. ac_header_compiler=yes
  8890. else
  8891. echo "$as_me: failed program was:" >&5
  8892. sed 's/^/| /' conftest.$ac_ext >&5
  8893. ac_header_compiler=no
  8894. fi
  8895. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8896. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8897. echo "${ECHO_T}$ac_header_compiler" >&6
  8898. # Is the header present?
  8899. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8900. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8901. cat >conftest.$ac_ext <<_ACEOF
  8902. /* confdefs.h. */
  8903. _ACEOF
  8904. cat confdefs.h >>conftest.$ac_ext
  8905. cat >>conftest.$ac_ext <<_ACEOF
  8906. /* end confdefs.h. */
  8907. #include <$ac_header>
  8908. _ACEOF
  8909. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8910. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8911. ac_status=$?
  8912. grep -v '^ *+' conftest.er1 >conftest.err
  8913. rm -f conftest.er1
  8914. cat conftest.err >&5
  8915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8916. (exit $ac_status); } >/dev/null; then
  8917. if test -s conftest.err; then
  8918. ac_cpp_err=$ac_c_preproc_warn_flag
  8919. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8920. else
  8921. ac_cpp_err=
  8922. fi
  8923. else
  8924. ac_cpp_err=yes
  8925. fi
  8926. if test -z "$ac_cpp_err"; then
  8927. ac_header_preproc=yes
  8928. else
  8929. echo "$as_me: failed program was:" >&5
  8930. sed 's/^/| /' conftest.$ac_ext >&5
  8931. ac_header_preproc=no
  8932. fi
  8933. rm -f conftest.err conftest.$ac_ext
  8934. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8935. echo "${ECHO_T}$ac_header_preproc" >&6
  8936. # So? What about this header?
  8937. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8938. yes:no: )
  8939. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8940. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8941. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8942. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8943. ac_header_preproc=yes
  8944. ;;
  8945. no:yes:* )
  8946. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8947. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8948. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8949. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8950. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8951. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8952. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8953. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8954. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8955. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8956. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8957. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8958. (
  8959. cat <<\_ASBOX
  8960. ## ----------------------------------- ##
  8961. ## Report this to tujikawa@rednoah.com ##
  8962. ## ----------------------------------- ##
  8963. _ASBOX
  8964. ) |
  8965. sed "s/^/$as_me: WARNING: /" >&2
  8966. ;;
  8967. esac
  8968. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8969. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8970. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8971. echo $ECHO_N "(cached) $ECHO_C" >&6
  8972. else
  8973. eval "$as_ac_Header=\$ac_header_preproc"
  8974. fi
  8975. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8976. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8977. fi
  8978. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8979. cat >>confdefs.h <<_ACEOF
  8980. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8981. _ACEOF
  8982. fi
  8983. done
  8984. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  8985. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  8986. if test "${ac_cv_func_select_args+set}" = set; then
  8987. echo $ECHO_N "(cached) $ECHO_C" >&6
  8988. else
  8989. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  8990. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  8991. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  8992. cat >conftest.$ac_ext <<_ACEOF
  8993. /* confdefs.h. */
  8994. _ACEOF
  8995. cat confdefs.h >>conftest.$ac_ext
  8996. cat >>conftest.$ac_ext <<_ACEOF
  8997. /* end confdefs.h. */
  8998. $ac_includes_default
  8999. #if HAVE_SYS_SELECT_H
  9000. # include <sys/select.h>
  9001. #endif
  9002. #if HAVE_SYS_SOCKET_H
  9003. # include <sys/socket.h>
  9004. #endif
  9005. int
  9006. main ()
  9007. {
  9008. extern int select ($ac_arg1,
  9009. $ac_arg234, $ac_arg234, $ac_arg234,
  9010. $ac_arg5);
  9011. ;
  9012. return 0;
  9013. }
  9014. _ACEOF
  9015. rm -f conftest.$ac_objext
  9016. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9017. (eval $ac_compile) 2>conftest.er1
  9018. ac_status=$?
  9019. grep -v '^ *+' conftest.er1 >conftest.err
  9020. rm -f conftest.er1
  9021. cat conftest.err >&5
  9022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9023. (exit $ac_status); } &&
  9024. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9025. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9026. (eval $ac_try) 2>&5
  9027. ac_status=$?
  9028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9029. (exit $ac_status); }; } &&
  9030. { ac_try='test -s conftest.$ac_objext'
  9031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9032. (eval $ac_try) 2>&5
  9033. ac_status=$?
  9034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9035. (exit $ac_status); }; }; then
  9036. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  9037. else
  9038. echo "$as_me: failed program was:" >&5
  9039. sed 's/^/| /' conftest.$ac_ext >&5
  9040. fi
  9041. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9042. done
  9043. done
  9044. done
  9045. # Provide a safe default value.
  9046. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  9047. fi
  9048. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  9049. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  9050. ac_save_IFS=$IFS; IFS=','
  9051. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  9052. IFS=$ac_save_IFS
  9053. shift
  9054. cat >>confdefs.h <<_ACEOF
  9055. #define SELECT_TYPE_ARG1 $1
  9056. _ACEOF
  9057. cat >>confdefs.h <<_ACEOF
  9058. #define SELECT_TYPE_ARG234 ($2)
  9059. _ACEOF
  9060. cat >>confdefs.h <<_ACEOF
  9061. #define SELECT_TYPE_ARG5 ($3)
  9062. _ACEOF
  9063. rm -f conftest*
  9064. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9065. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  9066. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9067. echo $ECHO_N "(cached) $ECHO_C" >&6
  9068. else
  9069. rm -f conftest.sym conftest.file
  9070. echo >conftest.file
  9071. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9072. if test "$cross_compiling" = yes; then
  9073. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9074. else
  9075. cat >conftest.$ac_ext <<_ACEOF
  9076. /* confdefs.h. */
  9077. _ACEOF
  9078. cat confdefs.h >>conftest.$ac_ext
  9079. cat >>conftest.$ac_ext <<_ACEOF
  9080. /* end confdefs.h. */
  9081. $ac_includes_default
  9082. int
  9083. main ()
  9084. {
  9085. struct stat sbuf;
  9086. /* Linux will dereference the symlink and fail.
  9087. That is better in the sense that it means we will not
  9088. have to compile and use the lstat wrapper. */
  9089. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  9090. ;
  9091. return 0;
  9092. }
  9093. _ACEOF
  9094. rm -f conftest$ac_exeext
  9095. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9096. (eval $ac_link) 2>&5
  9097. ac_status=$?
  9098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9099. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9100. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9101. (eval $ac_try) 2>&5
  9102. ac_status=$?
  9103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9104. (exit $ac_status); }; }; then
  9105. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9106. else
  9107. echo "$as_me: program exited with status $ac_status" >&5
  9108. echo "$as_me: failed program was:" >&5
  9109. sed 's/^/| /' conftest.$ac_ext >&5
  9110. ( exit $ac_status )
  9111. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9112. fi
  9113. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9114. fi
  9115. else
  9116. # If the `ln -s' command failed, then we probably don't even
  9117. # have an lstat function.
  9118. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9119. fi
  9120. rm -f conftest.sym conftest.file
  9121. fi
  9122. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9123. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  9124. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9125. cat >>confdefs.h <<_ACEOF
  9126. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9127. _ACEOF
  9128. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9129. case $LIBOBJS in
  9130. "lstat.$ac_objext" | \
  9131. *" lstat.$ac_objext" | \
  9132. "lstat.$ac_objext "* | \
  9133. *" lstat.$ac_objext "* ) ;;
  9134. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  9135. esac
  9136. fi
  9137. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9138. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9139. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9140. echo $ECHO_N "(cached) $ECHO_C" >&6
  9141. else
  9142. if test "$cross_compiling" = yes; then
  9143. ac_cv_func_stat_empty_string_bug=yes
  9144. else
  9145. cat >conftest.$ac_ext <<_ACEOF
  9146. /* confdefs.h. */
  9147. _ACEOF
  9148. cat confdefs.h >>conftest.$ac_ext
  9149. cat >>conftest.$ac_ext <<_ACEOF
  9150. /* end confdefs.h. */
  9151. $ac_includes_default
  9152. int
  9153. main ()
  9154. {
  9155. struct stat sbuf;
  9156. exit (stat ("", &sbuf) ? 1 : 0);
  9157. ;
  9158. return 0;
  9159. }
  9160. _ACEOF
  9161. rm -f conftest$ac_exeext
  9162. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9163. (eval $ac_link) 2>&5
  9164. ac_status=$?
  9165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9166. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9167. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9168. (eval $ac_try) 2>&5
  9169. ac_status=$?
  9170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9171. (exit $ac_status); }; }; then
  9172. ac_cv_func_stat_empty_string_bug=yes
  9173. else
  9174. echo "$as_me: program exited with status $ac_status" >&5
  9175. echo "$as_me: failed program was:" >&5
  9176. sed 's/^/| /' conftest.$ac_ext >&5
  9177. ( exit $ac_status )
  9178. ac_cv_func_stat_empty_string_bug=no
  9179. fi
  9180. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9181. fi
  9182. fi
  9183. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9184. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9185. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9186. case $LIBOBJS in
  9187. "stat.$ac_objext" | \
  9188. *" stat.$ac_objext" | \
  9189. "stat.$ac_objext "* | \
  9190. *" stat.$ac_objext "* ) ;;
  9191. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9192. esac
  9193. cat >>confdefs.h <<_ACEOF
  9194. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9195. _ACEOF
  9196. fi
  9197. for ac_func in vprintf
  9198. do
  9199. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9200. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9201. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9202. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9203. echo $ECHO_N "(cached) $ECHO_C" >&6
  9204. else
  9205. cat >conftest.$ac_ext <<_ACEOF
  9206. /* confdefs.h. */
  9207. _ACEOF
  9208. cat confdefs.h >>conftest.$ac_ext
  9209. cat >>conftest.$ac_ext <<_ACEOF
  9210. /* end confdefs.h. */
  9211. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9212. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9213. #define $ac_func innocuous_$ac_func
  9214. /* System header to define __stub macros and hopefully few prototypes,
  9215. which can conflict with char $ac_func (); below.
  9216. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9217. <limits.h> exists even on freestanding compilers. */
  9218. #ifdef __STDC__
  9219. # include <limits.h>
  9220. #else
  9221. # include <assert.h>
  9222. #endif
  9223. #undef $ac_func
  9224. /* Override any gcc2 internal prototype to avoid an error. */
  9225. #ifdef __cplusplus
  9226. extern "C"
  9227. {
  9228. #endif
  9229. /* We use char because int might match the return type of a gcc2
  9230. builtin and then its argument prototype would still apply. */
  9231. char $ac_func ();
  9232. /* The GNU C library defines this for functions which it implements
  9233. to always fail with ENOSYS. Some functions are actually named
  9234. something starting with __ and the normal name is an alias. */
  9235. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9236. choke me
  9237. #else
  9238. char (*f) () = $ac_func;
  9239. #endif
  9240. #ifdef __cplusplus
  9241. }
  9242. #endif
  9243. int
  9244. main ()
  9245. {
  9246. return f != $ac_func;
  9247. ;
  9248. return 0;
  9249. }
  9250. _ACEOF
  9251. rm -f conftest.$ac_objext conftest$ac_exeext
  9252. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9253. (eval $ac_link) 2>conftest.er1
  9254. ac_status=$?
  9255. grep -v '^ *+' conftest.er1 >conftest.err
  9256. rm -f conftest.er1
  9257. cat conftest.err >&5
  9258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9259. (exit $ac_status); } &&
  9260. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9261. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9262. (eval $ac_try) 2>&5
  9263. ac_status=$?
  9264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9265. (exit $ac_status); }; } &&
  9266. { ac_try='test -s conftest$ac_exeext'
  9267. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9268. (eval $ac_try) 2>&5
  9269. ac_status=$?
  9270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9271. (exit $ac_status); }; }; then
  9272. eval "$as_ac_var=yes"
  9273. else
  9274. echo "$as_me: failed program was:" >&5
  9275. sed 's/^/| /' conftest.$ac_ext >&5
  9276. eval "$as_ac_var=no"
  9277. fi
  9278. rm -f conftest.err conftest.$ac_objext \
  9279. conftest$ac_exeext conftest.$ac_ext
  9280. fi
  9281. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9282. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9283. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9284. cat >>confdefs.h <<_ACEOF
  9285. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9286. _ACEOF
  9287. echo "$as_me:$LINENO: checking for _doprnt" >&5
  9288. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  9289. if test "${ac_cv_func__doprnt+set}" = set; then
  9290. echo $ECHO_N "(cached) $ECHO_C" >&6
  9291. else
  9292. cat >conftest.$ac_ext <<_ACEOF
  9293. /* confdefs.h. */
  9294. _ACEOF
  9295. cat confdefs.h >>conftest.$ac_ext
  9296. cat >>conftest.$ac_ext <<_ACEOF
  9297. /* end confdefs.h. */
  9298. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  9299. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9300. #define _doprnt innocuous__doprnt
  9301. /* System header to define __stub macros and hopefully few prototypes,
  9302. which can conflict with char _doprnt (); below.
  9303. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9304. <limits.h> exists even on freestanding compilers. */
  9305. #ifdef __STDC__
  9306. # include <limits.h>
  9307. #else
  9308. # include <assert.h>
  9309. #endif
  9310. #undef _doprnt
  9311. /* Override any gcc2 internal prototype to avoid an error. */
  9312. #ifdef __cplusplus
  9313. extern "C"
  9314. {
  9315. #endif
  9316. /* We use char because int might match the return type of a gcc2
  9317. builtin and then its argument prototype would still apply. */
  9318. char _doprnt ();
  9319. /* The GNU C library defines this for functions which it implements
  9320. to always fail with ENOSYS. Some functions are actually named
  9321. something starting with __ and the normal name is an alias. */
  9322. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  9323. choke me
  9324. #else
  9325. char (*f) () = _doprnt;
  9326. #endif
  9327. #ifdef __cplusplus
  9328. }
  9329. #endif
  9330. int
  9331. main ()
  9332. {
  9333. return f != _doprnt;
  9334. ;
  9335. return 0;
  9336. }
  9337. _ACEOF
  9338. rm -f conftest.$ac_objext conftest$ac_exeext
  9339. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9340. (eval $ac_link) 2>conftest.er1
  9341. ac_status=$?
  9342. grep -v '^ *+' conftest.er1 >conftest.err
  9343. rm -f conftest.er1
  9344. cat conftest.err >&5
  9345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9346. (exit $ac_status); } &&
  9347. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9348. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9349. (eval $ac_try) 2>&5
  9350. ac_status=$?
  9351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9352. (exit $ac_status); }; } &&
  9353. { ac_try='test -s conftest$ac_exeext'
  9354. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9355. (eval $ac_try) 2>&5
  9356. ac_status=$?
  9357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9358. (exit $ac_status); }; }; then
  9359. ac_cv_func__doprnt=yes
  9360. else
  9361. echo "$as_me: failed program was:" >&5
  9362. sed 's/^/| /' conftest.$ac_ext >&5
  9363. ac_cv_func__doprnt=no
  9364. fi
  9365. rm -f conftest.err conftest.$ac_objext \
  9366. conftest$ac_exeext conftest.$ac_ext
  9367. fi
  9368. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  9369. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  9370. if test $ac_cv_func__doprnt = yes; then
  9371. cat >>confdefs.h <<\_ACEOF
  9372. #define HAVE_DOPRNT 1
  9373. _ACEOF
  9374. fi
  9375. fi
  9376. done
  9377. for ac_func in getpagesize gettimeofday inet_ntoa memset mkdir rmdir select socket strcasecmp strerror strstr strtol
  9378. do
  9379. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9380. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9381. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9382. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9383. echo $ECHO_N "(cached) $ECHO_C" >&6
  9384. else
  9385. cat >conftest.$ac_ext <<_ACEOF
  9386. /* confdefs.h. */
  9387. _ACEOF
  9388. cat confdefs.h >>conftest.$ac_ext
  9389. cat >>conftest.$ac_ext <<_ACEOF
  9390. /* end confdefs.h. */
  9391. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9392. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9393. #define $ac_func innocuous_$ac_func
  9394. /* System header to define __stub macros and hopefully few prototypes,
  9395. which can conflict with char $ac_func (); below.
  9396. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9397. <limits.h> exists even on freestanding compilers. */
  9398. #ifdef __STDC__
  9399. # include <limits.h>
  9400. #else
  9401. # include <assert.h>
  9402. #endif
  9403. #undef $ac_func
  9404. /* Override any gcc2 internal prototype to avoid an error. */
  9405. #ifdef __cplusplus
  9406. extern "C"
  9407. {
  9408. #endif
  9409. /* We use char because int might match the return type of a gcc2
  9410. builtin and then its argument prototype would still apply. */
  9411. char $ac_func ();
  9412. /* The GNU C library defines this for functions which it implements
  9413. to always fail with ENOSYS. Some functions are actually named
  9414. something starting with __ and the normal name is an alias. */
  9415. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9416. choke me
  9417. #else
  9418. char (*f) () = $ac_func;
  9419. #endif
  9420. #ifdef __cplusplus
  9421. }
  9422. #endif
  9423. int
  9424. main ()
  9425. {
  9426. return f != $ac_func;
  9427. ;
  9428. return 0;
  9429. }
  9430. _ACEOF
  9431. rm -f conftest.$ac_objext conftest$ac_exeext
  9432. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9433. (eval $ac_link) 2>conftest.er1
  9434. ac_status=$?
  9435. grep -v '^ *+' conftest.er1 >conftest.err
  9436. rm -f conftest.er1
  9437. cat conftest.err >&5
  9438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9439. (exit $ac_status); } &&
  9440. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9441. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9442. (eval $ac_try) 2>&5
  9443. ac_status=$?
  9444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9445. (exit $ac_status); }; } &&
  9446. { ac_try='test -s conftest$ac_exeext'
  9447. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9448. (eval $ac_try) 2>&5
  9449. ac_status=$?
  9450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9451. (exit $ac_status); }; }; then
  9452. eval "$as_ac_var=yes"
  9453. else
  9454. echo "$as_me: failed program was:" >&5
  9455. sed 's/^/| /' conftest.$ac_ext >&5
  9456. eval "$as_ac_var=no"
  9457. fi
  9458. rm -f conftest.err conftest.$ac_objext \
  9459. conftest$ac_exeext conftest.$ac_ext
  9460. fi
  9461. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9462. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9463. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9464. cat >>confdefs.h <<_ACEOF
  9465. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9466. _ACEOF
  9467. fi
  9468. done
  9469. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile"
  9470. cat >confcache <<\_ACEOF
  9471. # This file is a shell script that caches the results of configure
  9472. # tests run on this system so they can be shared between configure
  9473. # scripts and configure runs, see configure's option --config-cache.
  9474. # It is not useful on other systems. If it contains results you don't
  9475. # want to keep, you may remove or edit it.
  9476. #
  9477. # config.status only pays attention to the cache file if you give it
  9478. # the --recheck option to rerun configure.
  9479. #
  9480. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9481. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9482. # following values.
  9483. _ACEOF
  9484. # The following way of writing the cache mishandles newlines in values,
  9485. # but we know of no workaround that is simple, portable, and efficient.
  9486. # So, don't put newlines in cache variables' values.
  9487. # Ultrix sh set writes to stderr and can't be redirected directly,
  9488. # and sets the high bit in the cache file unless we assign to the vars.
  9489. {
  9490. (set) 2>&1 |
  9491. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9492. *ac_space=\ *)
  9493. # `set' does not quote correctly, so add quotes (double-quote
  9494. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9495. sed -n \
  9496. "s/'/'\\\\''/g;
  9497. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9498. ;;
  9499. *)
  9500. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9501. sed -n \
  9502. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9503. ;;
  9504. esac;
  9505. } |
  9506. sed '
  9507. t clear
  9508. : clear
  9509. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9510. t end
  9511. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9512. : end' >>confcache
  9513. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9514. if test -w $cache_file; then
  9515. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  9516. cat confcache >$cache_file
  9517. else
  9518. echo "not updating unwritable cache $cache_file"
  9519. fi
  9520. fi
  9521. rm -f confcache
  9522. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9523. # Let make expand exec_prefix.
  9524. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9525. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  9526. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  9527. # trailing colons and then remove the whole line if VPATH becomes empty
  9528. # (actually we leave an empty line to preserve line numbers).
  9529. if test "x$srcdir" = x.; then
  9530. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  9531. s/:*\$(srcdir):*/:/;
  9532. s/:*\${srcdir}:*/:/;
  9533. s/:*@srcdir@:*/:/;
  9534. s/^\([^=]*=[ ]*\):*/\1/;
  9535. s/:*$//;
  9536. s/^[^=]*=[ ]*$//;
  9537. }'
  9538. fi
  9539. DEFS=-DHAVE_CONFIG_H
  9540. ac_libobjs=
  9541. ac_ltlibobjs=
  9542. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9543. # 1. Remove the extension, and $U if already installed.
  9544. ac_i=`echo "$ac_i" |
  9545. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  9546. # 2. Add them.
  9547. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  9548. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  9549. done
  9550. LIBOBJS=$ac_libobjs
  9551. LTLIBOBJS=$ac_ltlibobjs
  9552. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9553. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  9554. Usually this means the macro was only invoked conditionally." >&5
  9555. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  9556. Usually this means the macro was only invoked conditionally." >&2;}
  9557. { (exit 1); exit 1; }; }
  9558. fi
  9559. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9560. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  9561. Usually this means the macro was only invoked conditionally." >&5
  9562. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  9563. Usually this means the macro was only invoked conditionally." >&2;}
  9564. { (exit 1); exit 1; }; }
  9565. fi
  9566. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  9567. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  9568. Usually this means the macro was only invoked conditionally." >&5
  9569. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  9570. Usually this means the macro was only invoked conditionally." >&2;}
  9571. { (exit 1); exit 1; }; }
  9572. fi
  9573. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9574. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  9575. Usually this means the macro was only invoked conditionally." >&5
  9576. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  9577. Usually this means the macro was only invoked conditionally." >&2;}
  9578. { (exit 1); exit 1; }; }
  9579. fi
  9580. : ${CONFIG_STATUS=./config.status}
  9581. ac_clean_files_save=$ac_clean_files
  9582. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9583. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  9584. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9585. cat >$CONFIG_STATUS <<_ACEOF
  9586. #! $SHELL
  9587. # Generated by $as_me.
  9588. # Run this file to recreate the current configuration.
  9589. # Compiler output produced by configure, useful for debugging
  9590. # configure, is in config.log if it exists.
  9591. debug=false
  9592. ac_cs_recheck=false
  9593. ac_cs_silent=false
  9594. SHELL=\${CONFIG_SHELL-$SHELL}
  9595. _ACEOF
  9596. cat >>$CONFIG_STATUS <<\_ACEOF
  9597. ## --------------------- ##
  9598. ## M4sh Initialization. ##
  9599. ## --------------------- ##
  9600. # Be Bourne compatible
  9601. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  9602. emulate sh
  9603. NULLCMD=:
  9604. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  9605. # is contrary to our usage. Disable this feature.
  9606. alias -g '${1+"$@"}'='"$@"'
  9607. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  9608. set -o posix
  9609. fi
  9610. DUALCASE=1; export DUALCASE # for MKS sh
  9611. # Support unset when possible.
  9612. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9613. as_unset=unset
  9614. else
  9615. as_unset=false
  9616. fi
  9617. # Work around bugs in pre-3.0 UWIN ksh.
  9618. $as_unset ENV MAIL MAILPATH
  9619. PS1='$ '
  9620. PS2='> '
  9621. PS4='+ '
  9622. # NLS nuisances.
  9623. for as_var in \
  9624. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  9625. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  9626. LC_TELEPHONE LC_TIME
  9627. do
  9628. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  9629. eval $as_var=C; export $as_var
  9630. else
  9631. $as_unset $as_var
  9632. fi
  9633. done
  9634. # Required to use basename.
  9635. if expr a : '\(a\)' >/dev/null 2>&1; then
  9636. as_expr=expr
  9637. else
  9638. as_expr=false
  9639. fi
  9640. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  9641. as_basename=basename
  9642. else
  9643. as_basename=false
  9644. fi
  9645. # Name of the executable.
  9646. as_me=`$as_basename "$0" ||
  9647. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9648. X"$0" : 'X\(//\)$' \| \
  9649. X"$0" : 'X\(/\)$' \| \
  9650. . : '\(.\)' 2>/dev/null ||
  9651. echo X/"$0" |
  9652. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  9653. /^X\/\(\/\/\)$/{ s//\1/; q; }
  9654. /^X\/\(\/\).*/{ s//\1/; q; }
  9655. s/.*/./; q'`
  9656. # PATH needs CR, and LINENO needs CR and PATH.
  9657. # Avoid depending upon Character Ranges.
  9658. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9659. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9660. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9661. as_cr_digits='0123456789'
  9662. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9663. # The user is always right.
  9664. if test "${PATH_SEPARATOR+set}" != set; then
  9665. echo "#! /bin/sh" >conf$$.sh
  9666. echo "exit 0" >>conf$$.sh
  9667. chmod +x conf$$.sh
  9668. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9669. PATH_SEPARATOR=';'
  9670. else
  9671. PATH_SEPARATOR=:
  9672. fi
  9673. rm -f conf$$.sh
  9674. fi
  9675. as_lineno_1=$LINENO
  9676. as_lineno_2=$LINENO
  9677. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9678. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9679. test "x$as_lineno_3" = "x$as_lineno_2" || {
  9680. # Find who we are. Look in the path if we contain no path at all
  9681. # relative or not.
  9682. case $0 in
  9683. *[\\/]* ) as_myself=$0 ;;
  9684. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9685. for as_dir in $PATH
  9686. do
  9687. IFS=$as_save_IFS
  9688. test -z "$as_dir" && as_dir=.
  9689. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9690. done
  9691. ;;
  9692. esac
  9693. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9694. # in which case we are not to be found in the path.
  9695. if test "x$as_myself" = x; then
  9696. as_myself=$0
  9697. fi
  9698. if test ! -f "$as_myself"; then
  9699. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  9700. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  9701. { (exit 1); exit 1; }; }
  9702. fi
  9703. case $CONFIG_SHELL in
  9704. '')
  9705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9706. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  9707. do
  9708. IFS=$as_save_IFS
  9709. test -z "$as_dir" && as_dir=.
  9710. for as_base in sh bash ksh sh5; do
  9711. case $as_dir in
  9712. /*)
  9713. if ("$as_dir/$as_base" -c '
  9714. as_lineno_1=$LINENO
  9715. as_lineno_2=$LINENO
  9716. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9717. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9718. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  9719. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  9720. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  9721. CONFIG_SHELL=$as_dir/$as_base
  9722. export CONFIG_SHELL
  9723. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  9724. fi;;
  9725. esac
  9726. done
  9727. done
  9728. ;;
  9729. esac
  9730. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  9731. # uniformly replaced by the line number. The first 'sed' inserts a
  9732. # line-number line before each line; the second 'sed' does the real
  9733. # work. The second script uses 'N' to pair each line-number line
  9734. # with the numbered line, and appends trailing '-' during
  9735. # substitution so that $LINENO is not a special case at line end.
  9736. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  9737. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  9738. sed '=' <$as_myself |
  9739. sed '
  9740. N
  9741. s,$,-,
  9742. : loop
  9743. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  9744. t loop
  9745. s,-$,,
  9746. s,^['$as_cr_digits']*\n,,
  9747. ' >$as_me.lineno &&
  9748. chmod +x $as_me.lineno ||
  9749. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  9750. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  9751. { (exit 1); exit 1; }; }
  9752. # Don't try to exec as it changes $[0], causing all sort of problems
  9753. # (the dirname of $[0] is not the place where we might find the
  9754. # original and so on. Autoconf is especially sensible to this).
  9755. . ./$as_me.lineno
  9756. # Exit status is that of the last command.
  9757. exit
  9758. }
  9759. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  9760. *c*,-n*) ECHO_N= ECHO_C='
  9761. ' ECHO_T=' ' ;;
  9762. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  9763. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  9764. esac
  9765. if expr a : '\(a\)' >/dev/null 2>&1; then
  9766. as_expr=expr
  9767. else
  9768. as_expr=false
  9769. fi
  9770. rm -f conf$$ conf$$.exe conf$$.file
  9771. echo >conf$$.file
  9772. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9773. # We could just check for DJGPP; but this test a) works b) is more generic
  9774. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  9775. if test -f conf$$.exe; then
  9776. # Don't use ln at all; we don't have any links
  9777. as_ln_s='cp -p'
  9778. else
  9779. as_ln_s='ln -s'
  9780. fi
  9781. elif ln conf$$.file conf$$ 2>/dev/null; then
  9782. as_ln_s=ln
  9783. else
  9784. as_ln_s='cp -p'
  9785. fi
  9786. rm -f conf$$ conf$$.exe conf$$.file
  9787. if mkdir -p . 2>/dev/null; then
  9788. as_mkdir_p=:
  9789. else
  9790. test -d ./-p && rmdir ./-p
  9791. as_mkdir_p=false
  9792. fi
  9793. as_executable_p="test -f"
  9794. # Sed expression to map a string onto a valid CPP name.
  9795. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9796. # Sed expression to map a string onto a valid variable name.
  9797. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9798. # IFS
  9799. # We need space, tab and new line, in precisely that order.
  9800. as_nl='
  9801. '
  9802. IFS=" $as_nl"
  9803. # CDPATH.
  9804. $as_unset CDPATH
  9805. exec 6>&1
  9806. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  9807. # report actual input values of CONFIG_FILES etc. instead of their
  9808. # values after options handling. Logging --version etc. is OK.
  9809. exec 5>>config.log
  9810. {
  9811. echo
  9812. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9813. ## Running $as_me. ##
  9814. _ASBOX
  9815. } >&5
  9816. cat >&5 <<_CSEOF
  9817. This file was extended by aria2c $as_me 0.2.1, which was
  9818. generated by GNU Autoconf 2.59. Invocation command line was
  9819. CONFIG_FILES = $CONFIG_FILES
  9820. CONFIG_HEADERS = $CONFIG_HEADERS
  9821. CONFIG_LINKS = $CONFIG_LINKS
  9822. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9823. $ $0 $@
  9824. _CSEOF
  9825. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  9826. echo >&5
  9827. _ACEOF
  9828. # Files that config.status was made for.
  9829. if test -n "$ac_config_files"; then
  9830. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  9831. fi
  9832. if test -n "$ac_config_headers"; then
  9833. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  9834. fi
  9835. if test -n "$ac_config_links"; then
  9836. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  9837. fi
  9838. if test -n "$ac_config_commands"; then
  9839. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  9840. fi
  9841. cat >>$CONFIG_STATUS <<\_ACEOF
  9842. ac_cs_usage="\
  9843. \`$as_me' instantiates files from templates according to the
  9844. current configuration.
  9845. Usage: $0 [OPTIONS] [FILE]...
  9846. -h, --help print this help, then exit
  9847. -V, --version print version number, then exit
  9848. -q, --quiet do not print progress messages
  9849. -d, --debug don't remove temporary files
  9850. --recheck update $as_me by reconfiguring in the same conditions
  9851. --file=FILE[:TEMPLATE]
  9852. instantiate the configuration file FILE
  9853. --header=FILE[:TEMPLATE]
  9854. instantiate the configuration header FILE
  9855. Configuration files:
  9856. $config_files
  9857. Configuration headers:
  9858. $config_headers
  9859. Configuration commands:
  9860. $config_commands
  9861. Report bugs to <bug-autoconf@gnu.org>."
  9862. _ACEOF
  9863. cat >>$CONFIG_STATUS <<_ACEOF
  9864. ac_cs_version="\\
  9865. aria2c config.status 0.2.1
  9866. configured by $0, generated by GNU Autoconf 2.59,
  9867. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  9868. Copyright (C) 2003 Free Software Foundation, Inc.
  9869. This config.status script is free software; the Free Software Foundation
  9870. gives unlimited permission to copy, distribute and modify it."
  9871. srcdir=$srcdir
  9872. INSTALL="$INSTALL"
  9873. _ACEOF
  9874. cat >>$CONFIG_STATUS <<\_ACEOF
  9875. # If no file are specified by the user, then we need to provide default
  9876. # value. By we need to know if files were specified by the user.
  9877. ac_need_defaults=:
  9878. while test $# != 0
  9879. do
  9880. case $1 in
  9881. --*=*)
  9882. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  9883. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  9884. ac_shift=:
  9885. ;;
  9886. -*)
  9887. ac_option=$1
  9888. ac_optarg=$2
  9889. ac_shift=shift
  9890. ;;
  9891. *) # This is not an option, so the user has probably given explicit
  9892. # arguments.
  9893. ac_option=$1
  9894. ac_need_defaults=false;;
  9895. esac
  9896. case $ac_option in
  9897. # Handling of the options.
  9898. _ACEOF
  9899. cat >>$CONFIG_STATUS <<\_ACEOF
  9900. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9901. ac_cs_recheck=: ;;
  9902. --version | --vers* | -V )
  9903. echo "$ac_cs_version"; exit 0 ;;
  9904. --he | --h)
  9905. # Conflict between --help and --header
  9906. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  9907. Try \`$0 --help' for more information." >&5
  9908. echo "$as_me: error: ambiguous option: $1
  9909. Try \`$0 --help' for more information." >&2;}
  9910. { (exit 1); exit 1; }; };;
  9911. --help | --hel | -h )
  9912. echo "$ac_cs_usage"; exit 0 ;;
  9913. --debug | --d* | -d )
  9914. debug=: ;;
  9915. --file | --fil | --fi | --f )
  9916. $ac_shift
  9917. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  9918. ac_need_defaults=false;;
  9919. --header | --heade | --head | --hea )
  9920. $ac_shift
  9921. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  9922. ac_need_defaults=false;;
  9923. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9924. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9925. ac_cs_silent=: ;;
  9926. # This is an error.
  9927. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  9928. Try \`$0 --help' for more information." >&5
  9929. echo "$as_me: error: unrecognized option: $1
  9930. Try \`$0 --help' for more information." >&2;}
  9931. { (exit 1); exit 1; }; } ;;
  9932. *) ac_config_targets="$ac_config_targets $1" ;;
  9933. esac
  9934. shift
  9935. done
  9936. ac_configure_extra_args=
  9937. if $ac_cs_silent; then
  9938. exec 6>/dev/null
  9939. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9940. fi
  9941. _ACEOF
  9942. cat >>$CONFIG_STATUS <<_ACEOF
  9943. if \$ac_cs_recheck; then
  9944. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  9945. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9946. fi
  9947. _ACEOF
  9948. cat >>$CONFIG_STATUS <<_ACEOF
  9949. #
  9950. # INIT-COMMANDS section.
  9951. #
  9952. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  9953. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  9954. # from automake.
  9955. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  9956. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  9957. LINGUAS="${LINGUAS-%UNSET%}"
  9958. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9959. _ACEOF
  9960. cat >>$CONFIG_STATUS <<\_ACEOF
  9961. for ac_config_target in $ac_config_targets
  9962. do
  9963. case "$ac_config_target" in
  9964. # Handling of arguments.
  9965. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9966. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  9967. "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  9968. "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  9969. "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  9970. "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  9971. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  9972. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9973. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  9974. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  9975. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  9976. { (exit 1); exit 1; }; };;
  9977. esac
  9978. done
  9979. # If the user did not use the arguments to specify the items to instantiate,
  9980. # then the envvar interface is used. Set only those that are not.
  9981. # We use the long form for the default assignment because of an extremely
  9982. # bizarre bug on SunOS 4.1.3.
  9983. if $ac_need_defaults; then
  9984. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9985. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9986. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9987. fi
  9988. # Have a temporary directory for convenience. Make it in the build tree
  9989. # simply because there is no reason to put it here, and in addition,
  9990. # creating and moving files from /tmp can sometimes cause problems.
  9991. # Create a temporary directory, and hook for its removal unless debugging.
  9992. $debug ||
  9993. {
  9994. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  9995. trap '{ (exit 1); exit 1; }' 1 2 13 15
  9996. }
  9997. # Create a (secure) tmp directory for tmp files.
  9998. {
  9999. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  10000. test -n "$tmp" && test -d "$tmp"
  10001. } ||
  10002. {
  10003. tmp=./confstat$$-$RANDOM
  10004. (umask 077 && mkdir $tmp)
  10005. } ||
  10006. {
  10007. echo "$me: cannot create a temporary directory in ." >&2
  10008. { (exit 1); exit 1; }
  10009. }
  10010. _ACEOF
  10011. cat >>$CONFIG_STATUS <<_ACEOF
  10012. #
  10013. # CONFIG_FILES section.
  10014. #
  10015. # No need to generate the scripts if there are no CONFIG_FILES.
  10016. # This happens for instance when ./config.status config.h
  10017. if test -n "\$CONFIG_FILES"; then
  10018. # Protect against being on the right side of a sed subst in config.status.
  10019. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  10020. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  10021. s,@SHELL@,$SHELL,;t t
  10022. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  10023. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  10024. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  10025. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  10026. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  10027. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  10028. s,@exec_prefix@,$exec_prefix,;t t
  10029. s,@prefix@,$prefix,;t t
  10030. s,@program_transform_name@,$program_transform_name,;t t
  10031. s,@bindir@,$bindir,;t t
  10032. s,@sbindir@,$sbindir,;t t
  10033. s,@libexecdir@,$libexecdir,;t t
  10034. s,@datadir@,$datadir,;t t
  10035. s,@sysconfdir@,$sysconfdir,;t t
  10036. s,@sharedstatedir@,$sharedstatedir,;t t
  10037. s,@localstatedir@,$localstatedir,;t t
  10038. s,@libdir@,$libdir,;t t
  10039. s,@includedir@,$includedir,;t t
  10040. s,@oldincludedir@,$oldincludedir,;t t
  10041. s,@infodir@,$infodir,;t t
  10042. s,@mandir@,$mandir,;t t
  10043. s,@build_alias@,$build_alias,;t t
  10044. s,@host_alias@,$host_alias,;t t
  10045. s,@target_alias@,$target_alias,;t t
  10046. s,@DEFS@,$DEFS,;t t
  10047. s,@ECHO_C@,$ECHO_C,;t t
  10048. s,@ECHO_N@,$ECHO_N,;t t
  10049. s,@ECHO_T@,$ECHO_T,;t t
  10050. s,@LIBS@,$LIBS,;t t
  10051. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  10052. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  10053. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  10054. s,@CYGPATH_W@,$CYGPATH_W,;t t
  10055. s,@PACKAGE@,$PACKAGE,;t t
  10056. s,@VERSION@,$VERSION,;t t
  10057. s,@ACLOCAL@,$ACLOCAL,;t t
  10058. s,@AUTOCONF@,$AUTOCONF,;t t
  10059. s,@AUTOMAKE@,$AUTOMAKE,;t t
  10060. s,@AUTOHEADER@,$AUTOHEADER,;t t
  10061. s,@MAKEINFO@,$MAKEINFO,;t t
  10062. s,@install_sh@,$install_sh,;t t
  10063. s,@STRIP@,$STRIP,;t t
  10064. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  10065. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  10066. s,@mkdir_p@,$mkdir_p,;t t
  10067. s,@AWK@,$AWK,;t t
  10068. s,@SET_MAKE@,$SET_MAKE,;t t
  10069. s,@am__leading_dot@,$am__leading_dot,;t t
  10070. s,@AMTAR@,$AMTAR,;t t
  10071. s,@am__tar@,$am__tar,;t t
  10072. s,@am__untar@,$am__untar,;t t
  10073. s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
  10074. s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
  10075. s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
  10076. s,@RANLIB@,$RANLIB,;t t
  10077. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  10078. s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
  10079. s,@USE_NLS@,$USE_NLS,;t t
  10080. s,@MSGFMT@,$MSGFMT,;t t
  10081. s,@GMSGFMT@,$GMSGFMT,;t t
  10082. s,@XGETTEXT@,$XGETTEXT,;t t
  10083. s,@MSGMERGE@,$MSGMERGE,;t t
  10084. s,@CC@,$CC,;t t
  10085. s,@CFLAGS@,$CFLAGS,;t t
  10086. s,@LDFLAGS@,$LDFLAGS,;t t
  10087. s,@CPPFLAGS@,$CPPFLAGS,;t t
  10088. s,@ac_ct_CC@,$ac_ct_CC,;t t
  10089. s,@EXEEXT@,$EXEEXT,;t t
  10090. s,@OBJEXT@,$OBJEXT,;t t
  10091. s,@DEPDIR@,$DEPDIR,;t t
  10092. s,@am__include@,$am__include,;t t
  10093. s,@am__quote@,$am__quote,;t t
  10094. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  10095. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  10096. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  10097. s,@CCDEPMODE@,$CCDEPMODE,;t t
  10098. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  10099. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  10100. s,@build@,$build,;t t
  10101. s,@build_cpu@,$build_cpu,;t t
  10102. s,@build_vendor@,$build_vendor,;t t
  10103. s,@build_os@,$build_os,;t t
  10104. s,@host@,$host,;t t
  10105. s,@host_cpu@,$host_cpu,;t t
  10106. s,@host_vendor@,$host_vendor,;t t
  10107. s,@host_os@,$host_os,;t t
  10108. s,@CPP@,$CPP,;t t
  10109. s,@EGREP@,$EGREP,;t t
  10110. s,@ALLOCA@,$ALLOCA,;t t
  10111. s,@GLIBC21@,$GLIBC21,;t t
  10112. s,@LIBICONV@,$LIBICONV,;t t
  10113. s,@LTLIBICONV@,$LTLIBICONV,;t t
  10114. s,@INTLBISON@,$INTLBISON,;t t
  10115. s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
  10116. s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
  10117. s,@CATOBJEXT@,$CATOBJEXT,;t t
  10118. s,@DATADIRNAME@,$DATADIRNAME,;t t
  10119. s,@INSTOBJEXT@,$INSTOBJEXT,;t t
  10120. s,@GENCAT@,$GENCAT,;t t
  10121. s,@INTLOBJS@,$INTLOBJS,;t t
  10122. s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
  10123. s,@INTLLIBS@,$INTLLIBS,;t t
  10124. s,@LIBINTL@,$LIBINTL,;t t
  10125. s,@LTLIBINTL@,$LTLIBINTL,;t t
  10126. s,@POSUB@,$POSUB,;t t
  10127. s,@localedir@,$localedir,;t t
  10128. s,@CXX@,$CXX,;t t
  10129. s,@CXXFLAGS@,$CXXFLAGS,;t t
  10130. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  10131. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  10132. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  10133. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  10134. s,@LIBOBJS@,$LIBOBJS,;t t
  10135. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  10136. CEOF
  10137. _ACEOF
  10138. cat >>$CONFIG_STATUS <<\_ACEOF
  10139. # Split the substitutions into bite-sized pieces for seds with
  10140. # small command number limits, like on Digital OSF/1 and HP-UX.
  10141. ac_max_sed_lines=48
  10142. ac_sed_frag=1 # Number of current file.
  10143. ac_beg=1 # First line for current file.
  10144. ac_end=$ac_max_sed_lines # Line after last line for current file.
  10145. ac_more_lines=:
  10146. ac_sed_cmds=
  10147. while $ac_more_lines; do
  10148. if test $ac_beg -gt 1; then
  10149. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10150. else
  10151. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10152. fi
  10153. if test ! -s $tmp/subs.frag; then
  10154. ac_more_lines=false
  10155. else
  10156. # The purpose of the label and of the branching condition is to
  10157. # speed up the sed processing (if there are no `@' at all, there
  10158. # is no need to browse any of the substitutions).
  10159. # These are the two extra sed commands mentioned above.
  10160. (echo ':t
  10161. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  10162. if test -z "$ac_sed_cmds"; then
  10163. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  10164. else
  10165. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  10166. fi
  10167. ac_sed_frag=`expr $ac_sed_frag + 1`
  10168. ac_beg=$ac_end
  10169. ac_end=`expr $ac_end + $ac_max_sed_lines`
  10170. fi
  10171. done
  10172. if test -z "$ac_sed_cmds"; then
  10173. ac_sed_cmds=cat
  10174. fi
  10175. fi # test -n "$CONFIG_FILES"
  10176. _ACEOF
  10177. cat >>$CONFIG_STATUS <<\_ACEOF
  10178. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  10179. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10180. case $ac_file in
  10181. - | *:- | *:-:* ) # input from stdin
  10182. cat >$tmp/stdin
  10183. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10184. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10185. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10186. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10187. * ) ac_file_in=$ac_file.in ;;
  10188. esac
  10189. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  10190. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10191. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10192. X"$ac_file" : 'X\(//\)[^/]' \| \
  10193. X"$ac_file" : 'X\(//\)$' \| \
  10194. X"$ac_file" : 'X\(/\)' \| \
  10195. . : '\(.\)' 2>/dev/null ||
  10196. echo X"$ac_file" |
  10197. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10198. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10199. /^X\(\/\/\)$/{ s//\1/; q; }
  10200. /^X\(\/\).*/{ s//\1/; q; }
  10201. s/.*/./; q'`
  10202. { if $as_mkdir_p; then
  10203. mkdir -p "$ac_dir"
  10204. else
  10205. as_dir="$ac_dir"
  10206. as_dirs=
  10207. while test ! -d "$as_dir"; do
  10208. as_dirs="$as_dir $as_dirs"
  10209. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10210. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10211. X"$as_dir" : 'X\(//\)[^/]' \| \
  10212. X"$as_dir" : 'X\(//\)$' \| \
  10213. X"$as_dir" : 'X\(/\)' \| \
  10214. . : '\(.\)' 2>/dev/null ||
  10215. echo X"$as_dir" |
  10216. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10217. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10218. /^X\(\/\/\)$/{ s//\1/; q; }
  10219. /^X\(\/\).*/{ s//\1/; q; }
  10220. s/.*/./; q'`
  10221. done
  10222. test ! -n "$as_dirs" || mkdir $as_dirs
  10223. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  10224. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  10225. { (exit 1); exit 1; }; }; }
  10226. ac_builddir=.
  10227. if test "$ac_dir" != .; then
  10228. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  10229. # A "../" for each directory in $ac_dir_suffix.
  10230. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  10231. else
  10232. ac_dir_suffix= ac_top_builddir=
  10233. fi
  10234. case $srcdir in
  10235. .) # No --srcdir option. We are building in place.
  10236. ac_srcdir=.
  10237. if test -z "$ac_top_builddir"; then
  10238. ac_top_srcdir=.
  10239. else
  10240. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  10241. fi ;;
  10242. [\\/]* | ?:[\\/]* ) # Absolute path.
  10243. ac_srcdir=$srcdir$ac_dir_suffix;
  10244. ac_top_srcdir=$srcdir ;;
  10245. *) # Relative path.
  10246. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  10247. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  10248. esac
  10249. # Do not use `cd foo && pwd` to compute absolute paths, because
  10250. # the directories may not exist.
  10251. case `pwd` in
  10252. .) ac_abs_builddir="$ac_dir";;
  10253. *)
  10254. case "$ac_dir" in
  10255. .) ac_abs_builddir=`pwd`;;
  10256. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  10257. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  10258. esac;;
  10259. esac
  10260. case $ac_abs_builddir in
  10261. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  10262. *)
  10263. case ${ac_top_builddir}. in
  10264. .) ac_abs_top_builddir=$ac_abs_builddir;;
  10265. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  10266. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  10267. esac;;
  10268. esac
  10269. case $ac_abs_builddir in
  10270. .) ac_abs_srcdir=$ac_srcdir;;
  10271. *)
  10272. case $ac_srcdir in
  10273. .) ac_abs_srcdir=$ac_abs_builddir;;
  10274. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  10275. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  10276. esac;;
  10277. esac
  10278. case $ac_abs_builddir in
  10279. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  10280. *)
  10281. case $ac_top_srcdir in
  10282. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  10283. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  10284. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  10285. esac;;
  10286. esac
  10287. case $INSTALL in
  10288. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10289. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  10290. esac
  10291. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10292. # use $as_me), people would be surprised to read:
  10293. # /* config.h. Generated by config.status. */
  10294. if test x"$ac_file" = x-; then
  10295. configure_input=
  10296. else
  10297. configure_input="$ac_file. "
  10298. fi
  10299. configure_input=$configure_input"Generated from `echo $ac_file_in |
  10300. sed 's,.*/,,'` by configure."
  10301. # First look for the input files in the build tree, otherwise in the
  10302. # src tree.
  10303. ac_file_inputs=`IFS=:
  10304. for f in $ac_file_in; do
  10305. case $f in
  10306. -) echo $tmp/stdin ;;
  10307. [\\/$]*)
  10308. # Absolute (can't be DOS-style, as IFS=:)
  10309. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10310. echo "$as_me: error: cannot find input file: $f" >&2;}
  10311. { (exit 1); exit 1; }; }
  10312. echo "$f";;
  10313. *) # Relative
  10314. if test -f "$f"; then
  10315. # Build tree
  10316. echo "$f"
  10317. elif test -f "$srcdir/$f"; then
  10318. # Source tree
  10319. echo "$srcdir/$f"
  10320. else
  10321. # /dev/null tree
  10322. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10323. echo "$as_me: error: cannot find input file: $f" >&2;}
  10324. { (exit 1); exit 1; }; }
  10325. fi;;
  10326. esac
  10327. done` || { (exit 1); exit 1; }
  10328. if test x"$ac_file" != x-; then
  10329. { echo "$as_me:$LINENO: creating $ac_file" >&5
  10330. echo "$as_me: creating $ac_file" >&6;}
  10331. rm -f "$ac_file"
  10332. fi
  10333. _ACEOF
  10334. cat >>$CONFIG_STATUS <<_ACEOF
  10335. sed "$ac_vpsub
  10336. $extrasub
  10337. _ACEOF
  10338. cat >>$CONFIG_STATUS <<\_ACEOF
  10339. :t
  10340. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10341. s,@configure_input@,$configure_input,;t t
  10342. s,@srcdir@,$ac_srcdir,;t t
  10343. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  10344. s,@top_srcdir@,$ac_top_srcdir,;t t
  10345. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  10346. s,@builddir@,$ac_builddir,;t t
  10347. s,@abs_builddir@,$ac_abs_builddir,;t t
  10348. s,@top_builddir@,$ac_top_builddir,;t t
  10349. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  10350. s,@INSTALL@,$ac_INSTALL,;t t
  10351. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  10352. rm -f $tmp/stdin
  10353. if test x"$ac_file" != x-; then
  10354. mv $tmp/out $ac_file
  10355. else
  10356. cat $tmp/out
  10357. rm -f $tmp/out
  10358. fi
  10359. done
  10360. _ACEOF
  10361. cat >>$CONFIG_STATUS <<\_ACEOF
  10362. #
  10363. # CONFIG_HEADER section.
  10364. #
  10365. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  10366. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  10367. #
  10368. # ac_d sets the value in "#define NAME VALUE" lines.
  10369. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  10370. ac_dB='[ ].*$,\1#\2'
  10371. ac_dC=' '
  10372. ac_dD=',;t'
  10373. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  10374. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  10375. ac_uB='$,\1#\2define\3'
  10376. ac_uC=' '
  10377. ac_uD=',;t'
  10378. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  10379. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10380. case $ac_file in
  10381. - | *:- | *:-:* ) # input from stdin
  10382. cat >$tmp/stdin
  10383. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10384. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10385. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10386. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10387. * ) ac_file_in=$ac_file.in ;;
  10388. esac
  10389. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  10390. echo "$as_me: creating $ac_file" >&6;}
  10391. # First look for the input files in the build tree, otherwise in the
  10392. # src tree.
  10393. ac_file_inputs=`IFS=:
  10394. for f in $ac_file_in; do
  10395. case $f in
  10396. -) echo $tmp/stdin ;;
  10397. [\\/$]*)
  10398. # Absolute (can't be DOS-style, as IFS=:)
  10399. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10400. echo "$as_me: error: cannot find input file: $f" >&2;}
  10401. { (exit 1); exit 1; }; }
  10402. # Do quote $f, to prevent DOS paths from being IFS'd.
  10403. echo "$f";;
  10404. *) # Relative
  10405. if test -f "$f"; then
  10406. # Build tree
  10407. echo "$f"
  10408. elif test -f "$srcdir/$f"; then
  10409. # Source tree
  10410. echo "$srcdir/$f"
  10411. else
  10412. # /dev/null tree
  10413. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10414. echo "$as_me: error: cannot find input file: $f" >&2;}
  10415. { (exit 1); exit 1; }; }
  10416. fi;;
  10417. esac
  10418. done` || { (exit 1); exit 1; }
  10419. # Remove the trailing spaces.
  10420. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  10421. _ACEOF
  10422. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  10423. # `conftest.undefs', that substitutes the proper values into
  10424. # config.h.in to produce config.h. The first handles `#define'
  10425. # templates, and the second `#undef' templates.
  10426. # And first: Protect against being on the right side of a sed subst in
  10427. # config.status. Protect against being in an unquoted here document
  10428. # in config.status.
  10429. rm -f conftest.defines conftest.undefs
  10430. # Using a here document instead of a string reduces the quoting nightmare.
  10431. # Putting comments in sed scripts is not portable.
  10432. #
  10433. # `end' is used to avoid that the second main sed command (meant for
  10434. # 0-ary CPP macros) applies to n-ary macro definitions.
  10435. # See the Autoconf documentation for `clear'.
  10436. cat >confdef2sed.sed <<\_ACEOF
  10437. s/[\\&,]/\\&/g
  10438. s,[\\$`],\\&,g
  10439. t clear
  10440. : clear
  10441. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  10442. t end
  10443. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  10444. : end
  10445. _ACEOF
  10446. # If some macros were called several times there might be several times
  10447. # the same #defines, which is useless. Nevertheless, we may not want to
  10448. # sort them, since we want the *last* AC-DEFINE to be honored.
  10449. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  10450. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  10451. rm -f confdef2sed.sed
  10452. # This sed command replaces #undef with comments. This is necessary, for
  10453. # example, in the case of _POSIX_SOURCE, which is predefined and required
  10454. # on some systems where configure will not decide to define it.
  10455. cat >>conftest.undefs <<\_ACEOF
  10456. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  10457. _ACEOF
  10458. # Break up conftest.defines because some shells have a limit on the size
  10459. # of here documents, and old seds have small limits too (100 cmds).
  10460. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  10461. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  10462. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  10463. echo ' :' >>$CONFIG_STATUS
  10464. rm -f conftest.tail
  10465. while grep . conftest.defines >/dev/null
  10466. do
  10467. # Write a limited-size here document to $tmp/defines.sed.
  10468. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  10469. # Speed up: don't consider the non `#define' lines.
  10470. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  10471. # Work around the forget-to-reset-the-flag bug.
  10472. echo 't clr' >>$CONFIG_STATUS
  10473. echo ': clr' >>$CONFIG_STATUS
  10474. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  10475. echo 'CEOF
  10476. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  10477. rm -f $tmp/in
  10478. mv $tmp/out $tmp/in
  10479. ' >>$CONFIG_STATUS
  10480. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  10481. rm -f conftest.defines
  10482. mv conftest.tail conftest.defines
  10483. done
  10484. rm -f conftest.defines
  10485. echo ' fi # grep' >>$CONFIG_STATUS
  10486. echo >>$CONFIG_STATUS
  10487. # Break up conftest.undefs because some shells have a limit on the size
  10488. # of here documents, and old seds have small limits too (100 cmds).
  10489. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  10490. rm -f conftest.tail
  10491. while grep . conftest.undefs >/dev/null
  10492. do
  10493. # Write a limited-size here document to $tmp/undefs.sed.
  10494. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  10495. # Speed up: don't consider the non `#undef'
  10496. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  10497. # Work around the forget-to-reset-the-flag bug.
  10498. echo 't clr' >>$CONFIG_STATUS
  10499. echo ': clr' >>$CONFIG_STATUS
  10500. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  10501. echo 'CEOF
  10502. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  10503. rm -f $tmp/in
  10504. mv $tmp/out $tmp/in
  10505. ' >>$CONFIG_STATUS
  10506. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  10507. rm -f conftest.undefs
  10508. mv conftest.tail conftest.undefs
  10509. done
  10510. rm -f conftest.undefs
  10511. cat >>$CONFIG_STATUS <<\_ACEOF
  10512. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10513. # use $as_me), people would be surprised to read:
  10514. # /* config.h. Generated by config.status. */
  10515. if test x"$ac_file" = x-; then
  10516. echo "/* Generated by configure. */" >$tmp/config.h
  10517. else
  10518. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  10519. fi
  10520. cat $tmp/in >>$tmp/config.h
  10521. rm -f $tmp/in
  10522. if test x"$ac_file" != x-; then
  10523. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  10524. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  10525. echo "$as_me: $ac_file is unchanged" >&6;}
  10526. else
  10527. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10528. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10529. X"$ac_file" : 'X\(//\)[^/]' \| \
  10530. X"$ac_file" : 'X\(//\)$' \| \
  10531. X"$ac_file" : 'X\(/\)' \| \
  10532. . : '\(.\)' 2>/dev/null ||
  10533. echo X"$ac_file" |
  10534. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10535. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10536. /^X\(\/\/\)$/{ s//\1/; q; }
  10537. /^X\(\/\).*/{ s//\1/; q; }
  10538. s/.*/./; q'`
  10539. { if $as_mkdir_p; then
  10540. mkdir -p "$ac_dir"
  10541. else
  10542. as_dir="$ac_dir"
  10543. as_dirs=
  10544. while test ! -d "$as_dir"; do
  10545. as_dirs="$as_dir $as_dirs"
  10546. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10547. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10548. X"$as_dir" : 'X\(//\)[^/]' \| \
  10549. X"$as_dir" : 'X\(//\)$' \| \
  10550. X"$as_dir" : 'X\(/\)' \| \
  10551. . : '\(.\)' 2>/dev/null ||
  10552. echo X"$as_dir" |
  10553. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10554. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10555. /^X\(\/\/\)$/{ s//\1/; q; }
  10556. /^X\(\/\).*/{ s//\1/; q; }
  10557. s/.*/./; q'`
  10558. done
  10559. test ! -n "$as_dirs" || mkdir $as_dirs
  10560. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  10561. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  10562. { (exit 1); exit 1; }; }; }
  10563. rm -f $ac_file
  10564. mv $tmp/config.h $ac_file
  10565. fi
  10566. else
  10567. cat $tmp/config.h
  10568. rm -f $tmp/config.h
  10569. fi
  10570. # Compute $ac_file's index in $config_headers.
  10571. _am_stamp_count=1
  10572. for _am_header in $config_headers :; do
  10573. case $_am_header in
  10574. $ac_file | $ac_file:* )
  10575. break ;;
  10576. * )
  10577. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  10578. esac
  10579. done
  10580. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  10581. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10582. X$ac_file : 'X\(//\)[^/]' \| \
  10583. X$ac_file : 'X\(//\)$' \| \
  10584. X$ac_file : 'X\(/\)' \| \
  10585. . : '\(.\)' 2>/dev/null ||
  10586. echo X$ac_file |
  10587. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10588. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10589. /^X\(\/\/\)$/{ s//\1/; q; }
  10590. /^X\(\/\).*/{ s//\1/; q; }
  10591. s/.*/./; q'`/stamp-h$_am_stamp_count
  10592. done
  10593. _ACEOF
  10594. cat >>$CONFIG_STATUS <<\_ACEOF
  10595. #
  10596. # CONFIG_COMMANDS section.
  10597. #
  10598. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  10599. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  10600. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10601. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  10602. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10603. X"$ac_dest" : 'X\(//\)[^/]' \| \
  10604. X"$ac_dest" : 'X\(//\)$' \| \
  10605. X"$ac_dest" : 'X\(/\)' \| \
  10606. . : '\(.\)' 2>/dev/null ||
  10607. echo X"$ac_dest" |
  10608. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10609. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10610. /^X\(\/\/\)$/{ s//\1/; q; }
  10611. /^X\(\/\).*/{ s//\1/; q; }
  10612. s/.*/./; q'`
  10613. { if $as_mkdir_p; then
  10614. mkdir -p "$ac_dir"
  10615. else
  10616. as_dir="$ac_dir"
  10617. as_dirs=
  10618. while test ! -d "$as_dir"; do
  10619. as_dirs="$as_dir $as_dirs"
  10620. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10621. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10622. X"$as_dir" : 'X\(//\)[^/]' \| \
  10623. X"$as_dir" : 'X\(//\)$' \| \
  10624. X"$as_dir" : 'X\(/\)' \| \
  10625. . : '\(.\)' 2>/dev/null ||
  10626. echo X"$as_dir" |
  10627. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10628. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10629. /^X\(\/\/\)$/{ s//\1/; q; }
  10630. /^X\(\/\).*/{ s//\1/; q; }
  10631. s/.*/./; q'`
  10632. done
  10633. test ! -n "$as_dirs" || mkdir $as_dirs
  10634. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  10635. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  10636. { (exit 1); exit 1; }; }; }
  10637. ac_builddir=.
  10638. if test "$ac_dir" != .; then
  10639. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  10640. # A "../" for each directory in $ac_dir_suffix.
  10641. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  10642. else
  10643. ac_dir_suffix= ac_top_builddir=
  10644. fi
  10645. case $srcdir in
  10646. .) # No --srcdir option. We are building in place.
  10647. ac_srcdir=.
  10648. if test -z "$ac_top_builddir"; then
  10649. ac_top_srcdir=.
  10650. else
  10651. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  10652. fi ;;
  10653. [\\/]* | ?:[\\/]* ) # Absolute path.
  10654. ac_srcdir=$srcdir$ac_dir_suffix;
  10655. ac_top_srcdir=$srcdir ;;
  10656. *) # Relative path.
  10657. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  10658. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  10659. esac
  10660. # Do not use `cd foo && pwd` to compute absolute paths, because
  10661. # the directories may not exist.
  10662. case `pwd` in
  10663. .) ac_abs_builddir="$ac_dir";;
  10664. *)
  10665. case "$ac_dir" in
  10666. .) ac_abs_builddir=`pwd`;;
  10667. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  10668. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  10669. esac;;
  10670. esac
  10671. case $ac_abs_builddir in
  10672. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  10673. *)
  10674. case ${ac_top_builddir}. in
  10675. .) ac_abs_top_builddir=$ac_abs_builddir;;
  10676. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  10677. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  10678. esac;;
  10679. esac
  10680. case $ac_abs_builddir in
  10681. .) ac_abs_srcdir=$ac_srcdir;;
  10682. *)
  10683. case $ac_srcdir in
  10684. .) ac_abs_srcdir=$ac_abs_builddir;;
  10685. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  10686. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  10687. esac;;
  10688. esac
  10689. case $ac_abs_builddir in
  10690. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  10691. *)
  10692. case $ac_top_srcdir in
  10693. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  10694. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  10695. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  10696. esac;;
  10697. esac
  10698. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  10699. echo "$as_me: executing $ac_dest commands" >&6;}
  10700. case $ac_dest in
  10701. default-1 )
  10702. for ac_file in $CONFIG_FILES; do
  10703. # Support "outfile[:infile[:infile...]]"
  10704. case "$ac_file" in
  10705. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  10706. esac
  10707. # PO directories have a Makefile.in generated from Makefile.in.in.
  10708. case "$ac_file" in */Makefile.in)
  10709. # Adjust a relative srcdir.
  10710. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  10711. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  10712. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  10713. # In autoconf-2.13 it is called $ac_given_srcdir.
  10714. # In autoconf-2.50 it is called $srcdir.
  10715. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  10716. case "$ac_given_srcdir" in
  10717. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  10718. /*) top_srcdir="$ac_given_srcdir" ;;
  10719. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  10720. esac
  10721. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  10722. rm -f "$ac_dir/POTFILES"
  10723. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  10724. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  10725. POMAKEFILEDEPS="POTFILES.in"
  10726. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  10727. # on $ac_dir but don't depend on user-specified configuration
  10728. # parameters.
  10729. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  10730. # The LINGUAS file contains the set of available languages.
  10731. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  10732. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  10733. fi
  10734. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  10735. # Hide the ALL_LINGUAS assigment from automake.
  10736. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  10737. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  10738. else
  10739. # The set of available languages was given in configure.in.
  10740. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  10741. fi
  10742. case "$ac_given_srcdir" in
  10743. .) srcdirpre= ;;
  10744. *) srcdirpre='$(srcdir)/' ;;
  10745. esac
  10746. POFILES=
  10747. GMOFILES=
  10748. UPDATEPOFILES=
  10749. DUMMYPOFILES=
  10750. for lang in $ALL_LINGUAS; do
  10751. POFILES="$POFILES $srcdirpre$lang.po"
  10752. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  10753. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  10754. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  10755. done
  10756. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  10757. # environment variable.
  10758. INST_LINGUAS=
  10759. if test -n "$ALL_LINGUAS"; then
  10760. for presentlang in $ALL_LINGUAS; do
  10761. useit=no
  10762. if test "%UNSET%" != "$LINGUAS"; then
  10763. desiredlanguages="$LINGUAS"
  10764. else
  10765. desiredlanguages="$ALL_LINGUAS"
  10766. fi
  10767. for desiredlang in $desiredlanguages; do
  10768. # Use the presentlang catalog if desiredlang is
  10769. # a. equal to presentlang, or
  10770. # b. a variant of presentlang (because in this case,
  10771. # presentlang can be used as a fallback for messages
  10772. # which are not translated in the desiredlang catalog).
  10773. case "$desiredlang" in
  10774. "$presentlang"*) useit=yes;;
  10775. esac
  10776. done
  10777. if test $useit = yes; then
  10778. INST_LINGUAS="$INST_LINGUAS $presentlang"
  10779. fi
  10780. done
  10781. fi
  10782. CATALOGS=
  10783. if test -n "$INST_LINGUAS"; then
  10784. for lang in $INST_LINGUAS; do
  10785. CATALOGS="$CATALOGS $lang.gmo"
  10786. done
  10787. fi
  10788. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  10789. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  10790. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  10791. if test -f "$f"; then
  10792. case "$f" in
  10793. *.orig | *.bak | *~) ;;
  10794. *) cat "$f" >> "$ac_dir/Makefile" ;;
  10795. esac
  10796. fi
  10797. done
  10798. fi
  10799. ;;
  10800. esac
  10801. done ;;
  10802. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  10803. # Strip MF so we end up with the name of the file.
  10804. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10805. # Check whether this is an Automake generated Makefile or not.
  10806. # We used to match only the files named `Makefile.in', but
  10807. # some people rename them; so instead we look at the file content.
  10808. # Grep'ing the first line is not enough: some people post-process
  10809. # each Makefile.in and add a new line on top of each file to say so.
  10810. # So let's grep whole file.
  10811. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  10812. dirpart=`(dirname "$mf") 2>/dev/null ||
  10813. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10814. X"$mf" : 'X\(//\)[^/]' \| \
  10815. X"$mf" : 'X\(//\)$' \| \
  10816. X"$mf" : 'X\(/\)' \| \
  10817. . : '\(.\)' 2>/dev/null ||
  10818. echo X"$mf" |
  10819. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10820. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10821. /^X\(\/\/\)$/{ s//\1/; q; }
  10822. /^X\(\/\).*/{ s//\1/; q; }
  10823. s/.*/./; q'`
  10824. else
  10825. continue
  10826. fi
  10827. # Extract the definition of DEPDIR, am__include, and am__quote
  10828. # from the Makefile without running `make'.
  10829. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10830. test -z "$DEPDIR" && continue
  10831. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10832. test -z "am__include" && continue
  10833. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10834. # When using ansi2knr, U may be empty or an underscore; expand it
  10835. U=`sed -n 's/^U = //p' < "$mf"`
  10836. # Find all dependency output files, they are included files with
  10837. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10838. # simplest approach to changing $(DEPDIR) to its actual value in the
  10839. # expansion.
  10840. for file in `sed -n "
  10841. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10842. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  10843. # Make sure the directory exists.
  10844. test -f "$dirpart/$file" && continue
  10845. fdir=`(dirname "$file") 2>/dev/null ||
  10846. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10847. X"$file" : 'X\(//\)[^/]' \| \
  10848. X"$file" : 'X\(//\)$' \| \
  10849. X"$file" : 'X\(/\)' \| \
  10850. . : '\(.\)' 2>/dev/null ||
  10851. echo X"$file" |
  10852. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10853. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10854. /^X\(\/\/\)$/{ s//\1/; q; }
  10855. /^X\(\/\).*/{ s//\1/; q; }
  10856. s/.*/./; q'`
  10857. { if $as_mkdir_p; then
  10858. mkdir -p $dirpart/$fdir
  10859. else
  10860. as_dir=$dirpart/$fdir
  10861. as_dirs=
  10862. while test ! -d "$as_dir"; do
  10863. as_dirs="$as_dir $as_dirs"
  10864. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10865. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10866. X"$as_dir" : 'X\(//\)[^/]' \| \
  10867. X"$as_dir" : 'X\(//\)$' \| \
  10868. X"$as_dir" : 'X\(/\)' \| \
  10869. . : '\(.\)' 2>/dev/null ||
  10870. echo X"$as_dir" |
  10871. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10872. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10873. /^X\(\/\/\)$/{ s//\1/; q; }
  10874. /^X\(\/\).*/{ s//\1/; q; }
  10875. s/.*/./; q'`
  10876. done
  10877. test ! -n "$as_dirs" || mkdir $as_dirs
  10878. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  10879. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  10880. { (exit 1); exit 1; }; }; }
  10881. # echo "creating $dirpart/$file"
  10882. echo '# dummy' > "$dirpart/$file"
  10883. done
  10884. done
  10885. ;;
  10886. esac
  10887. done
  10888. _ACEOF
  10889. cat >>$CONFIG_STATUS <<\_ACEOF
  10890. { (exit 0); exit 0; }
  10891. _ACEOF
  10892. chmod +x $CONFIG_STATUS
  10893. ac_clean_files=$ac_clean_files_save
  10894. # configure is writing to config.log, and then calls config.status.
  10895. # config.status does its own redirection, appending to config.log.
  10896. # Unfortunately, on DOS this fails, as config.log is still kept open
  10897. # by configure, so config.status won't be able to write to it; its
  10898. # output is simply discarded. So we exec the FD to /dev/null,
  10899. # effectively closing config.log, so it can be properly (re)opened and
  10900. # appended to by config.status. When coming back to configure, we
  10901. # need to make the FD available again.
  10902. if test "$no_create" != yes; then
  10903. ac_cs_success=:
  10904. ac_config_status_args=
  10905. test "$silent" = yes &&
  10906. ac_config_status_args="$ac_config_status_args --quiet"
  10907. exec 5>/dev/null
  10908. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10909. exec 5>>config.log
  10910. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10911. # would make configure fail if this is the last instruction.
  10912. $ac_cs_success || { (exit 1); exit 1; }
  10913. fi