configure 191 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  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. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. # The user is always right.
  34. if test "${PATH_SEPARATOR+set}" != set; then
  35. echo "#! /bin/sh" >conf$$.sh
  36. echo "exit 0" >>conf$$.sh
  37. chmod +x conf$$.sh
  38. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  39. PATH_SEPARATOR=';'
  40. else
  41. PATH_SEPARATOR=:
  42. fi
  43. rm -f conf$$.sh
  44. fi
  45. # Support unset when possible.
  46. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  47. as_unset=unset
  48. else
  49. as_unset=false
  50. fi
  51. # IFS
  52. # We need space, tab and new line, in precisely that order. Quoting is
  53. # there to prevent editors from complaining about space-tab.
  54. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  55. # splitting by setting IFS to empty value.)
  56. as_nl='
  57. '
  58. IFS=" "" $as_nl"
  59. # Find who we are. Look in the path if we contain no directory separator.
  60. case $0 in
  61. *[\\/]* ) as_myself=$0 ;;
  62. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  63. for as_dir in $PATH
  64. do
  65. IFS=$as_save_IFS
  66. test -z "$as_dir" && as_dir=.
  67. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  68. done
  69. IFS=$as_save_IFS
  70. ;;
  71. esac
  72. # We did not find ourselves, most probably we were run as `sh COMMAND'
  73. # in which case we are not to be found in the path.
  74. if test "x$as_myself" = x; then
  75. as_myself=$0
  76. fi
  77. if test ! -f "$as_myself"; then
  78. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  79. { (exit 1); exit 1; }
  80. fi
  81. # Work around bugs in pre-3.0 UWIN ksh.
  82. for as_var in ENV MAIL MAILPATH
  83. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  84. done
  85. PS1='$ '
  86. PS2='> '
  87. PS4='+ '
  88. # NLS nuisances.
  89. for as_var in \
  90. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  91. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  92. LC_TELEPHONE LC_TIME
  93. do
  94. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  95. eval $as_var=C; export $as_var
  96. else
  97. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  98. fi
  99. done
  100. # Required to use basename.
  101. if expr a : '\(a\)' >/dev/null 2>&1 &&
  102. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  103. as_expr=expr
  104. else
  105. as_expr=false
  106. fi
  107. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  108. as_basename=basename
  109. else
  110. as_basename=false
  111. fi
  112. # Name of the executable.
  113. as_me=`$as_basename -- "$0" ||
  114. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  115. X"$0" : 'X\(//\)$' \| \
  116. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  117. echo X/"$0" |
  118. sed '/^.*\/\([^/][^/]*\)\/*$/{
  119. s//\1/
  120. q
  121. }
  122. /^X\/\(\/\/\)$/{
  123. s//\1/
  124. q
  125. }
  126. /^X\/\(\/\).*/{
  127. s//\1/
  128. q
  129. }
  130. s/.*/./; q'`
  131. # CDPATH.
  132. $as_unset CDPATH
  133. if test "x$CONFIG_SHELL" = x; then
  134. if (eval ":") 2>/dev/null; then
  135. as_have_required=yes
  136. else
  137. as_have_required=no
  138. fi
  139. if test $as_have_required = yes && (eval ":
  140. (as_func_return () {
  141. (exit \$1)
  142. }
  143. as_func_success () {
  144. as_func_return 0
  145. }
  146. as_func_failure () {
  147. as_func_return 1
  148. }
  149. as_func_ret_success () {
  150. return 0
  151. }
  152. as_func_ret_failure () {
  153. return 1
  154. }
  155. exitcode=0
  156. if as_func_success; then
  157. :
  158. else
  159. exitcode=1
  160. echo as_func_success failed.
  161. fi
  162. if as_func_failure; then
  163. exitcode=1
  164. echo as_func_failure succeeded.
  165. fi
  166. if as_func_ret_success; then
  167. :
  168. else
  169. exitcode=1
  170. echo as_func_ret_success failed.
  171. fi
  172. if as_func_ret_failure; then
  173. exitcode=1
  174. echo as_func_ret_failure succeeded.
  175. fi
  176. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  177. :
  178. else
  179. exitcode=1
  180. echo positional parameters were not saved.
  181. fi
  182. test \$exitcode = 0) || { (exit 1); exit 1; }
  183. (
  184. as_lineno_1=\$LINENO
  185. as_lineno_2=\$LINENO
  186. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  187. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  188. ") 2> /dev/null; then
  189. :
  190. else
  191. as_candidate_shells=
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  194. do
  195. IFS=$as_save_IFS
  196. test -z "$as_dir" && as_dir=.
  197. case $as_dir in
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  201. done;;
  202. esac
  203. done
  204. IFS=$as_save_IFS
  205. for as_shell in $as_candidate_shells $SHELL; do
  206. # Try only shells that exist, to save several forks.
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { ("$as_shell") 2> /dev/null <<\_ASEOF
  209. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  210. emulate sh
  211. NULLCMD=:
  212. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  213. # is contrary to our usage. Disable this feature.
  214. alias -g '${1+"$@"}'='"$@"'
  215. setopt NO_GLOB_SUBST
  216. else
  217. case `(set -o) 2>/dev/null` in
  218. *posix*) set -o posix ;;
  219. esac
  220. fi
  221. :
  222. _ASEOF
  223. }; then
  224. CONFIG_SHELL=$as_shell
  225. as_have_required=yes
  226. if { "$as_shell" 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. (as_func_return () {
  241. (exit $1)
  242. }
  243. as_func_success () {
  244. as_func_return 0
  245. }
  246. as_func_failure () {
  247. as_func_return 1
  248. }
  249. as_func_ret_success () {
  250. return 0
  251. }
  252. as_func_ret_failure () {
  253. return 1
  254. }
  255. exitcode=0
  256. if as_func_success; then
  257. :
  258. else
  259. exitcode=1
  260. echo as_func_success failed.
  261. fi
  262. if as_func_failure; then
  263. exitcode=1
  264. echo as_func_failure succeeded.
  265. fi
  266. if as_func_ret_success; then
  267. :
  268. else
  269. exitcode=1
  270. echo as_func_ret_success failed.
  271. fi
  272. if as_func_ret_failure; then
  273. exitcode=1
  274. echo as_func_ret_failure succeeded.
  275. fi
  276. if ( set x; as_func_ret_success y && test x = "$1" ); then
  277. :
  278. else
  279. exitcode=1
  280. echo positional parameters were not saved.
  281. fi
  282. test $exitcode = 0) || { (exit 1); exit 1; }
  283. (
  284. as_lineno_1=$LINENO
  285. as_lineno_2=$LINENO
  286. test "x$as_lineno_1" != "x$as_lineno_2" &&
  287. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  288. _ASEOF
  289. }; then
  290. break
  291. fi
  292. fi
  293. done
  294. if test "x$CONFIG_SHELL" != x; then
  295. for as_var in BASH_ENV ENV
  296. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  297. done
  298. export CONFIG_SHELL
  299. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  300. fi
  301. if test $as_have_required = no; then
  302. echo This script requires a shell more modern than all the
  303. echo shells that I found on your system. Please install a
  304. echo modern shell, or manually run the script under such a
  305. echo shell if you do have one.
  306. { (exit 1); exit 1; }
  307. fi
  308. fi
  309. fi
  310. (eval "as_func_return () {
  311. (exit \$1)
  312. }
  313. as_func_success () {
  314. as_func_return 0
  315. }
  316. as_func_failure () {
  317. as_func_return 1
  318. }
  319. as_func_ret_success () {
  320. return 0
  321. }
  322. as_func_ret_failure () {
  323. return 1
  324. }
  325. exitcode=0
  326. if as_func_success; then
  327. :
  328. else
  329. exitcode=1
  330. echo as_func_success failed.
  331. fi
  332. if as_func_failure; then
  333. exitcode=1
  334. echo as_func_failure succeeded.
  335. fi
  336. if as_func_ret_success; then
  337. :
  338. else
  339. exitcode=1
  340. echo as_func_ret_success failed.
  341. fi
  342. if as_func_ret_failure; then
  343. exitcode=1
  344. echo as_func_ret_failure succeeded.
  345. fi
  346. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  347. :
  348. else
  349. exitcode=1
  350. echo positional parameters were not saved.
  351. fi
  352. test \$exitcode = 0") || {
  353. echo No shell found that supports shell functions.
  354. echo Please tell autoconf@gnu.org about your system,
  355. echo including any error possibly output before this
  356. echo message
  357. }
  358. as_lineno_1=$LINENO
  359. as_lineno_2=$LINENO
  360. test "x$as_lineno_1" != "x$as_lineno_2" &&
  361. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  362. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  363. # uniformly replaced by the line number. The first 'sed' inserts a
  364. # line-number line after each line using $LINENO; the second 'sed'
  365. # does the real work. The second script uses 'N' to pair each
  366. # line-number line with the line containing $LINENO, and appends
  367. # trailing '-' during substitution so that $LINENO is not a special
  368. # case at line end.
  369. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  370. # scripts with optimization help from Paolo Bonzini. Blame Lee
  371. # E. McMahon (1931-1989) for sed's syntax. :-)
  372. sed -n '
  373. p
  374. /[$]LINENO/=
  375. ' <$as_myself |
  376. sed '
  377. s/[$]LINENO.*/&-/
  378. t lineno
  379. b
  380. :lineno
  381. N
  382. :loop
  383. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  384. t loop
  385. s/-\n.*//
  386. ' >$as_me.lineno &&
  387. chmod +x "$as_me.lineno" ||
  388. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  389. { (exit 1); exit 1; }; }
  390. # Don't try to exec as it changes $[0], causing all sort of problems
  391. # (the dirname of $[0] is not the place where we might find the
  392. # original and so on. Autoconf is especially sensitive to this).
  393. . "./$as_me.lineno"
  394. # Exit status is that of the last command.
  395. exit
  396. }
  397. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  398. as_dirname=dirname
  399. else
  400. as_dirname=false
  401. fi
  402. ECHO_C= ECHO_N= ECHO_T=
  403. case `echo -n x` in
  404. -n*)
  405. case `echo 'x\c'` in
  406. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  407. *) ECHO_C='\c';;
  408. esac;;
  409. *)
  410. ECHO_N='-n';;
  411. esac
  412. if expr a : '\(a\)' >/dev/null 2>&1 &&
  413. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  414. as_expr=expr
  415. else
  416. as_expr=false
  417. fi
  418. rm -f conf$$ conf$$.exe conf$$.file
  419. if test -d conf$$.dir; then
  420. rm -f conf$$.dir/conf$$.file
  421. else
  422. rm -f conf$$.dir
  423. mkdir conf$$.dir
  424. fi
  425. echo >conf$$.file
  426. if ln -s conf$$.file conf$$ 2>/dev/null; then
  427. as_ln_s='ln -s'
  428. # ... but there are two gotchas:
  429. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  430. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  431. # In both cases, we have to default to `cp -p'.
  432. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  433. as_ln_s='cp -p'
  434. elif ln conf$$.file conf$$ 2>/dev/null; then
  435. as_ln_s=ln
  436. else
  437. as_ln_s='cp -p'
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  440. rmdir conf$$.dir 2>/dev/null
  441. if mkdir -p . 2>/dev/null; then
  442. as_mkdir_p=:
  443. else
  444. test -d ./-p && rmdir ./-p
  445. as_mkdir_p=false
  446. fi
  447. if test -x / >/dev/null 2>&1; then
  448. as_test_x='test -x'
  449. else
  450. if ls -dL / >/dev/null 2>&1; then
  451. as_ls_L_option=L
  452. else
  453. as_ls_L_option=
  454. fi
  455. as_test_x='
  456. eval sh -c '\''
  457. if test -d "$1"; then
  458. test -d "$1/.";
  459. else
  460. case $1 in
  461. -*)set "./$1";;
  462. esac;
  463. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  464. ???[sx]*):;;*)false;;esac;fi
  465. '\'' sh
  466. '
  467. fi
  468. as_executable_p=$as_test_x
  469. # Sed expression to map a string onto a valid CPP name.
  470. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  471. # Sed expression to map a string onto a valid variable name.
  472. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  473. exec 7<&0 </dev/null 6>&1
  474. # Name of the host.
  475. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  476. # so uname gets run too.
  477. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  478. #
  479. # Initializations.
  480. #
  481. ac_default_prefix=/usr/local
  482. ac_clean_files=
  483. ac_config_libobj_dir=.
  484. LIBOBJS=
  485. cross_compiling=no
  486. subdirs=
  487. MFLAGS=
  488. MAKEFLAGS=
  489. SHELL=${CONFIG_SHELL-/bin/sh}
  490. # Identity of this package.
  491. PACKAGE_NAME=
  492. PACKAGE_TARNAME=
  493. PACKAGE_VERSION=
  494. PACKAGE_STRING=
  495. PACKAGE_BUGREPORT=
  496. ac_unique_file="configure.in"
  497. # Factoring default headers for most tests.
  498. ac_includes_default="\
  499. #include <stdio.h>
  500. #ifdef HAVE_SYS_TYPES_H
  501. # include <sys/types.h>
  502. #endif
  503. #ifdef HAVE_SYS_STAT_H
  504. # include <sys/stat.h>
  505. #endif
  506. #ifdef STDC_HEADERS
  507. # include <stdlib.h>
  508. # include <stddef.h>
  509. #else
  510. # ifdef HAVE_STDLIB_H
  511. # include <stdlib.h>
  512. # endif
  513. #endif
  514. #ifdef HAVE_STRING_H
  515. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  516. # include <memory.h>
  517. # endif
  518. # include <string.h>
  519. #endif
  520. #ifdef HAVE_STRINGS_H
  521. # include <strings.h>
  522. #endif
  523. #ifdef HAVE_INTTYPES_H
  524. # include <inttypes.h>
  525. #endif
  526. #ifdef HAVE_STDINT_H
  527. # include <stdint.h>
  528. #endif
  529. #ifdef HAVE_UNISTD_H
  530. # include <unistd.h>
  531. #endif"
  532. ac_subst_vars='SHELL
  533. PATH_SEPARATOR
  534. PACKAGE_NAME
  535. PACKAGE_TARNAME
  536. PACKAGE_VERSION
  537. PACKAGE_STRING
  538. PACKAGE_BUGREPORT
  539. exec_prefix
  540. prefix
  541. program_transform_name
  542. bindir
  543. sbindir
  544. libexecdir
  545. datarootdir
  546. datadir
  547. sysconfdir
  548. sharedstatedir
  549. localstatedir
  550. includedir
  551. oldincludedir
  552. docdir
  553. infodir
  554. htmldir
  555. dvidir
  556. pdfdir
  557. psdir
  558. libdir
  559. localedir
  560. mandir
  561. DEFS
  562. ECHO_C
  563. ECHO_N
  564. ECHO_T
  565. LIBS
  566. build_alias
  567. host_alias
  568. target_alias
  569. CC
  570. CFLAGS
  571. LDFLAGS
  572. CPPFLAGS
  573. ac_ct_CC
  574. EXEEXT
  575. OBJEXT
  576. build
  577. build_cpu
  578. build_vendor
  579. build_os
  580. host
  581. host_cpu
  582. host_vendor
  583. host_os
  584. CXX
  585. CXXFLAGS
  586. ac_ct_CXX
  587. AR
  588. PTHREADLIB
  589. CXXCPP
  590. GREP
  591. EGREP
  592. HAVE_C9X
  593. DEBIANDOC_HTML
  594. DEBIANDOC_TEXT
  595. YODL_MAN
  596. LIBOBJS
  597. LTLIBOBJS'
  598. ac_subst_files=''
  599. ac_precious_vars='build_alias
  600. host_alias
  601. target_alias
  602. CC
  603. CFLAGS
  604. LDFLAGS
  605. LIBS
  606. CPPFLAGS
  607. CXX
  608. CXXFLAGS
  609. CCC
  610. CXXCPP'
  611. # Initialize some variables set by options.
  612. ac_init_help=
  613. ac_init_version=false
  614. # The variables have the same names as the options, with
  615. # dashes changed to underlines.
  616. cache_file=/dev/null
  617. exec_prefix=NONE
  618. no_create=
  619. no_recursion=
  620. prefix=NONE
  621. program_prefix=NONE
  622. program_suffix=NONE
  623. program_transform_name=s,x,x,
  624. silent=
  625. site=
  626. srcdir=
  627. verbose=
  628. x_includes=NONE
  629. x_libraries=NONE
  630. # Installation directory options.
  631. # These are left unexpanded so users can "make install exec_prefix=/foo"
  632. # and all the variables that are supposed to be based on exec_prefix
  633. # by default will actually change.
  634. # Use braces instead of parens because sh, perl, etc. also accept them.
  635. # (The list follows the same order as the GNU Coding Standards.)
  636. bindir='${exec_prefix}/bin'
  637. sbindir='${exec_prefix}/sbin'
  638. libexecdir='${exec_prefix}/libexec'
  639. datarootdir='${prefix}/share'
  640. datadir='${datarootdir}'
  641. sysconfdir='${prefix}/etc'
  642. sharedstatedir='${prefix}/com'
  643. localstatedir='${prefix}/var'
  644. includedir='${prefix}/include'
  645. oldincludedir='/usr/include'
  646. docdir='${datarootdir}/doc/${PACKAGE}'
  647. infodir='${datarootdir}/info'
  648. htmldir='${docdir}'
  649. dvidir='${docdir}'
  650. pdfdir='${docdir}'
  651. psdir='${docdir}'
  652. libdir='${exec_prefix}/lib'
  653. localedir='${datarootdir}/locale'
  654. mandir='${datarootdir}/man'
  655. ac_prev=
  656. ac_dashdash=
  657. for ac_option
  658. do
  659. # If the previous option needs an argument, assign it.
  660. if test -n "$ac_prev"; then
  661. eval $ac_prev=\$ac_option
  662. ac_prev=
  663. continue
  664. fi
  665. case $ac_option in
  666. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  667. *) ac_optarg=yes ;;
  668. esac
  669. # Accept the important Cygnus configure options, so we can diagnose typos.
  670. case $ac_dashdash$ac_option in
  671. --)
  672. ac_dashdash=yes ;;
  673. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  674. ac_prev=bindir ;;
  675. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  676. bindir=$ac_optarg ;;
  677. -build | --build | --buil | --bui | --bu)
  678. ac_prev=build_alias ;;
  679. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  680. build_alias=$ac_optarg ;;
  681. -cache-file | --cache-file | --cache-fil | --cache-fi \
  682. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  683. ac_prev=cache_file ;;
  684. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  685. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  686. cache_file=$ac_optarg ;;
  687. --config-cache | -C)
  688. cache_file=config.cache ;;
  689. -datadir | --datadir | --datadi | --datad)
  690. ac_prev=datadir ;;
  691. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  692. datadir=$ac_optarg ;;
  693. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  694. | --dataroo | --dataro | --datar)
  695. ac_prev=datarootdir ;;
  696. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  697. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  698. datarootdir=$ac_optarg ;;
  699. -disable-* | --disable-*)
  700. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  701. # Reject names that are not valid shell variable names.
  702. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  703. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  704. { (exit 1); exit 1; }; }
  705. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  706. eval enable_$ac_feature=no ;;
  707. -docdir | --docdir | --docdi | --doc | --do)
  708. ac_prev=docdir ;;
  709. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  710. docdir=$ac_optarg ;;
  711. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  712. ac_prev=dvidir ;;
  713. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  714. dvidir=$ac_optarg ;;
  715. -enable-* | --enable-*)
  716. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  717. # Reject names that are not valid shell variable names.
  718. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  719. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  720. { (exit 1); exit 1; }; }
  721. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  722. eval enable_$ac_feature=\$ac_optarg ;;
  723. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  724. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  725. | --exec | --exe | --ex)
  726. ac_prev=exec_prefix ;;
  727. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  728. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  729. | --exec=* | --exe=* | --ex=*)
  730. exec_prefix=$ac_optarg ;;
  731. -gas | --gas | --ga | --g)
  732. # Obsolete; use --with-gas.
  733. with_gas=yes ;;
  734. -help | --help | --hel | --he | -h)
  735. ac_init_help=long ;;
  736. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  737. ac_init_help=recursive ;;
  738. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  739. ac_init_help=short ;;
  740. -host | --host | --hos | --ho)
  741. ac_prev=host_alias ;;
  742. -host=* | --host=* | --hos=* | --ho=*)
  743. host_alias=$ac_optarg ;;
  744. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  745. ac_prev=htmldir ;;
  746. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  747. | --ht=*)
  748. htmldir=$ac_optarg ;;
  749. -includedir | --includedir | --includedi | --included | --include \
  750. | --includ | --inclu | --incl | --inc)
  751. ac_prev=includedir ;;
  752. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  753. | --includ=* | --inclu=* | --incl=* | --inc=*)
  754. includedir=$ac_optarg ;;
  755. -infodir | --infodir | --infodi | --infod | --info | --inf)
  756. ac_prev=infodir ;;
  757. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  758. infodir=$ac_optarg ;;
  759. -libdir | --libdir | --libdi | --libd)
  760. ac_prev=libdir ;;
  761. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  762. libdir=$ac_optarg ;;
  763. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  764. | --libexe | --libex | --libe)
  765. ac_prev=libexecdir ;;
  766. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  767. | --libexe=* | --libex=* | --libe=*)
  768. libexecdir=$ac_optarg ;;
  769. -localedir | --localedir | --localedi | --localed | --locale)
  770. ac_prev=localedir ;;
  771. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  772. localedir=$ac_optarg ;;
  773. -localstatedir | --localstatedir | --localstatedi | --localstated \
  774. | --localstate | --localstat | --localsta | --localst | --locals)
  775. ac_prev=localstatedir ;;
  776. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  777. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  778. localstatedir=$ac_optarg ;;
  779. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  780. ac_prev=mandir ;;
  781. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  782. mandir=$ac_optarg ;;
  783. -nfp | --nfp | --nf)
  784. # Obsolete; use --without-fp.
  785. with_fp=no ;;
  786. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  787. | --no-cr | --no-c | -n)
  788. no_create=yes ;;
  789. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  790. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  791. no_recursion=yes ;;
  792. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  793. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  794. | --oldin | --oldi | --old | --ol | --o)
  795. ac_prev=oldincludedir ;;
  796. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  797. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  798. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  799. oldincludedir=$ac_optarg ;;
  800. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  801. ac_prev=prefix ;;
  802. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  803. prefix=$ac_optarg ;;
  804. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  805. | --program-pre | --program-pr | --program-p)
  806. ac_prev=program_prefix ;;
  807. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  808. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  809. program_prefix=$ac_optarg ;;
  810. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  811. | --program-suf | --program-su | --program-s)
  812. ac_prev=program_suffix ;;
  813. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  814. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  815. program_suffix=$ac_optarg ;;
  816. -program-transform-name | --program-transform-name \
  817. | --program-transform-nam | --program-transform-na \
  818. | --program-transform-n | --program-transform- \
  819. | --program-transform | --program-transfor \
  820. | --program-transfo | --program-transf \
  821. | --program-trans | --program-tran \
  822. | --progr-tra | --program-tr | --program-t)
  823. ac_prev=program_transform_name ;;
  824. -program-transform-name=* | --program-transform-name=* \
  825. | --program-transform-nam=* | --program-transform-na=* \
  826. | --program-transform-n=* | --program-transform-=* \
  827. | --program-transform=* | --program-transfor=* \
  828. | --program-transfo=* | --program-transf=* \
  829. | --program-trans=* | --program-tran=* \
  830. | --progr-tra=* | --program-tr=* | --program-t=*)
  831. program_transform_name=$ac_optarg ;;
  832. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  833. ac_prev=pdfdir ;;
  834. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  835. pdfdir=$ac_optarg ;;
  836. -psdir | --psdir | --psdi | --psd | --ps)
  837. ac_prev=psdir ;;
  838. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  839. psdir=$ac_optarg ;;
  840. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  841. | -silent | --silent | --silen | --sile | --sil)
  842. silent=yes ;;
  843. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  844. ac_prev=sbindir ;;
  845. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  846. | --sbi=* | --sb=*)
  847. sbindir=$ac_optarg ;;
  848. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  849. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  850. | --sharedst | --shareds | --shared | --share | --shar \
  851. | --sha | --sh)
  852. ac_prev=sharedstatedir ;;
  853. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  854. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  855. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  856. | --sha=* | --sh=*)
  857. sharedstatedir=$ac_optarg ;;
  858. -site | --site | --sit)
  859. ac_prev=site ;;
  860. -site=* | --site=* | --sit=*)
  861. site=$ac_optarg ;;
  862. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  863. ac_prev=srcdir ;;
  864. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  865. srcdir=$ac_optarg ;;
  866. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  867. | --syscon | --sysco | --sysc | --sys | --sy)
  868. ac_prev=sysconfdir ;;
  869. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  870. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  871. sysconfdir=$ac_optarg ;;
  872. -target | --target | --targe | --targ | --tar | --ta | --t)
  873. ac_prev=target_alias ;;
  874. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  875. target_alias=$ac_optarg ;;
  876. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  877. verbose=yes ;;
  878. -version | --version | --versio | --versi | --vers | -V)
  879. ac_init_version=: ;;
  880. -with-* | --with-*)
  881. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  882. # Reject names that are not valid shell variable names.
  883. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  884. { echo "$as_me: error: invalid package name: $ac_package" >&2
  885. { (exit 1); exit 1; }; }
  886. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  887. eval with_$ac_package=\$ac_optarg ;;
  888. -without-* | --without-*)
  889. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  890. # Reject names that are not valid shell variable names.
  891. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  892. { echo "$as_me: error: invalid package name: $ac_package" >&2
  893. { (exit 1); exit 1; }; }
  894. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  895. eval with_$ac_package=no ;;
  896. --x)
  897. # Obsolete; use --with-x.
  898. with_x=yes ;;
  899. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  900. | --x-incl | --x-inc | --x-in | --x-i)
  901. ac_prev=x_includes ;;
  902. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  903. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  904. x_includes=$ac_optarg ;;
  905. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  906. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  907. ac_prev=x_libraries ;;
  908. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  909. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  910. x_libraries=$ac_optarg ;;
  911. -*) { echo "$as_me: error: unrecognized option: $ac_option
  912. Try \`$0 --help' for more information." >&2
  913. { (exit 1); exit 1; }; }
  914. ;;
  915. *=*)
  916. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  917. # Reject names that are not valid shell variable names.
  918. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  919. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  920. { (exit 1); exit 1; }; }
  921. eval $ac_envvar=\$ac_optarg
  922. export $ac_envvar ;;
  923. *)
  924. # FIXME: should be removed in autoconf 3.0.
  925. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  926. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  927. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  928. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  929. ;;
  930. esac
  931. done
  932. if test -n "$ac_prev"; then
  933. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  934. { echo "$as_me: error: missing argument to $ac_option" >&2
  935. { (exit 1); exit 1; }; }
  936. fi
  937. # Be sure to have absolute directory names.
  938. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  939. datadir sysconfdir sharedstatedir localstatedir includedir \
  940. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  941. libdir localedir mandir
  942. do
  943. eval ac_val=\$$ac_var
  944. case $ac_val in
  945. [\\/$]* | ?:[\\/]* ) continue;;
  946. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  947. esac
  948. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  949. { (exit 1); exit 1; }; }
  950. done
  951. # There might be people who depend on the old broken behavior: `$host'
  952. # used to hold the argument of --host etc.
  953. # FIXME: To remove some day.
  954. build=$build_alias
  955. host=$host_alias
  956. target=$target_alias
  957. # FIXME: To remove some day.
  958. if test "x$host_alias" != x; then
  959. if test "x$build_alias" = x; then
  960. cross_compiling=maybe
  961. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  962. If a cross compiler is detected then cross compile mode will be used." >&2
  963. elif test "x$build_alias" != "x$host_alias"; then
  964. cross_compiling=yes
  965. fi
  966. fi
  967. ac_tool_prefix=
  968. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  969. test "$silent" = yes && exec 6>/dev/null
  970. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  971. ac_ls_di=`ls -di .` &&
  972. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  973. { echo "$as_me: error: Working directory cannot be determined" >&2
  974. { (exit 1); exit 1; }; }
  975. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  976. { echo "$as_me: error: pwd does not report name of working directory" >&2
  977. { (exit 1); exit 1; }; }
  978. # Find the source files, if location was not specified.
  979. if test -z "$srcdir"; then
  980. ac_srcdir_defaulted=yes
  981. # Try the directory containing this script, then the parent directory.
  982. ac_confdir=`$as_dirname -- "$0" ||
  983. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  984. X"$0" : 'X\(//\)[^/]' \| \
  985. X"$0" : 'X\(//\)$' \| \
  986. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  987. echo X"$0" |
  988. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  989. s//\1/
  990. q
  991. }
  992. /^X\(\/\/\)[^/].*/{
  993. s//\1/
  994. q
  995. }
  996. /^X\(\/\/\)$/{
  997. s//\1/
  998. q
  999. }
  1000. /^X\(\/\).*/{
  1001. s//\1/
  1002. q
  1003. }
  1004. s/.*/./; q'`
  1005. srcdir=$ac_confdir
  1006. if test ! -r "$srcdir/$ac_unique_file"; then
  1007. srcdir=..
  1008. fi
  1009. else
  1010. ac_srcdir_defaulted=no
  1011. fi
  1012. if test ! -r "$srcdir/$ac_unique_file"; then
  1013. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1014. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1015. { (exit 1); exit 1; }; }
  1016. fi
  1017. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1018. ac_abs_confdir=`(
  1019. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1020. { (exit 1); exit 1; }; }
  1021. pwd)`
  1022. # When building in place, set srcdir=.
  1023. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1024. srcdir=.
  1025. fi
  1026. # Remove unnecessary trailing slashes from srcdir.
  1027. # Double slashes in file names in object file debugging info
  1028. # mess up M-x gdb in Emacs.
  1029. case $srcdir in
  1030. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1031. esac
  1032. for ac_var in $ac_precious_vars; do
  1033. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1034. eval ac_env_${ac_var}_value=\$${ac_var}
  1035. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1036. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1037. done
  1038. #
  1039. # Report the --help message.
  1040. #
  1041. if test "$ac_init_help" = "long"; then
  1042. # Omit some internal or obsolete options to make the list less imposing.
  1043. # This message is too long to be a string in the A/UX 3.1 sh.
  1044. cat <<_ACEOF
  1045. \`configure' configures this package to adapt to many kinds of systems.
  1046. Usage: $0 [OPTION]... [VAR=VALUE]...
  1047. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1048. VAR=VALUE. See below for descriptions of some of the useful variables.
  1049. Defaults for the options are specified in brackets.
  1050. Configuration:
  1051. -h, --help display this help and exit
  1052. --help=short display options specific to this package
  1053. --help=recursive display the short help of all the included packages
  1054. -V, --version display version information and exit
  1055. -q, --quiet, --silent do not print \`checking...' messages
  1056. --cache-file=FILE cache test results in FILE [disabled]
  1057. -C, --config-cache alias for \`--cache-file=config.cache'
  1058. -n, --no-create do not create output files
  1059. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1060. Installation directories:
  1061. --prefix=PREFIX install architecture-independent files in PREFIX
  1062. [$ac_default_prefix]
  1063. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1064. [PREFIX]
  1065. By default, \`make install' will install all the files in
  1066. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1067. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1068. for instance \`--prefix=\$HOME'.
  1069. For better control, use the options below.
  1070. Fine tuning of the installation directories:
  1071. --bindir=DIR user executables [EPREFIX/bin]
  1072. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1073. --libexecdir=DIR program executables [EPREFIX/libexec]
  1074. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1075. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1076. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1077. --libdir=DIR object code libraries [EPREFIX/lib]
  1078. --includedir=DIR C header files [PREFIX/include]
  1079. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1080. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1081. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1082. --infodir=DIR info documentation [DATAROOTDIR/info]
  1083. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1084. --mandir=DIR man documentation [DATAROOTDIR/man]
  1085. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1086. --htmldir=DIR html documentation [DOCDIR]
  1087. --dvidir=DIR dvi documentation [DOCDIR]
  1088. --pdfdir=DIR pdf documentation [DOCDIR]
  1089. --psdir=DIR ps documentation [DOCDIR]
  1090. _ACEOF
  1091. cat <<\_ACEOF
  1092. System types:
  1093. --build=BUILD configure for building on BUILD [guessed]
  1094. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1095. _ACEOF
  1096. fi
  1097. if test -n "$ac_init_help"; then
  1098. cat <<\_ACEOF
  1099. Some influential environment variables:
  1100. CC C compiler command
  1101. CFLAGS C compiler flags
  1102. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1103. nonstandard directory <lib dir>
  1104. LIBS libraries to pass to the linker, e.g. -l<library>
  1105. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1106. you have headers in a nonstandard directory <include dir>
  1107. CXX C++ compiler command
  1108. CXXFLAGS C++ compiler flags
  1109. CXXCPP C++ preprocessor
  1110. Use these variables to override the choices made by `configure' or to help
  1111. it to find libraries and programs with nonstandard names/locations.
  1112. _ACEOF
  1113. ac_status=$?
  1114. fi
  1115. if test "$ac_init_help" = "recursive"; then
  1116. # If there are subdirs, report their specific --help.
  1117. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1118. test -d "$ac_dir" || continue
  1119. ac_builddir=.
  1120. case "$ac_dir" in
  1121. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1122. *)
  1123. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1124. # A ".." for each directory in $ac_dir_suffix.
  1125. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1126. case $ac_top_builddir_sub in
  1127. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1128. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1129. esac ;;
  1130. esac
  1131. ac_abs_top_builddir=$ac_pwd
  1132. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1133. # for backward compatibility:
  1134. ac_top_builddir=$ac_top_build_prefix
  1135. case $srcdir in
  1136. .) # We are building in place.
  1137. ac_srcdir=.
  1138. ac_top_srcdir=$ac_top_builddir_sub
  1139. ac_abs_top_srcdir=$ac_pwd ;;
  1140. [\\/]* | ?:[\\/]* ) # Absolute name.
  1141. ac_srcdir=$srcdir$ac_dir_suffix;
  1142. ac_top_srcdir=$srcdir
  1143. ac_abs_top_srcdir=$srcdir ;;
  1144. *) # Relative name.
  1145. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1146. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1147. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1148. esac
  1149. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1150. cd "$ac_dir" || { ac_status=$?; continue; }
  1151. # Check for guested configure.
  1152. if test -f "$ac_srcdir/configure.gnu"; then
  1153. echo &&
  1154. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1155. elif test -f "$ac_srcdir/configure"; then
  1156. echo &&
  1157. $SHELL "$ac_srcdir/configure" --help=recursive
  1158. else
  1159. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1160. fi || ac_status=$?
  1161. cd "$ac_pwd" || { ac_status=$?; break; }
  1162. done
  1163. fi
  1164. test -n "$ac_init_help" && exit $ac_status
  1165. if $ac_init_version; then
  1166. cat <<\_ACEOF
  1167. configure
  1168. generated by GNU Autoconf 2.61
  1169. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1170. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1171. This configure script is free software; the Free Software Foundation
  1172. gives unlimited permission to copy, distribute and modify it.
  1173. _ACEOF
  1174. exit
  1175. fi
  1176. cat >config.log <<_ACEOF
  1177. This file contains any messages produced by compilers while
  1178. running configure, to aid debugging if configure makes a mistake.
  1179. It was created by $as_me, which was
  1180. generated by GNU Autoconf 2.61. Invocation command line was
  1181. $ $0 $@
  1182. _ACEOF
  1183. exec 5>>config.log
  1184. {
  1185. cat <<_ASUNAME
  1186. ## --------- ##
  1187. ## Platform. ##
  1188. ## --------- ##
  1189. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1190. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1191. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1192. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1193. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1194. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1195. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1196. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1197. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1198. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1199. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1200. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1201. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1202. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1203. _ASUNAME
  1204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1205. for as_dir in $PATH
  1206. do
  1207. IFS=$as_save_IFS
  1208. test -z "$as_dir" && as_dir=.
  1209. echo "PATH: $as_dir"
  1210. done
  1211. IFS=$as_save_IFS
  1212. } >&5
  1213. cat >&5 <<_ACEOF
  1214. ## ----------- ##
  1215. ## Core tests. ##
  1216. ## ----------- ##
  1217. _ACEOF
  1218. # Keep a trace of the command line.
  1219. # Strip out --no-create and --no-recursion so they do not pile up.
  1220. # Strip out --silent because we don't want to record it for future runs.
  1221. # Also quote any args containing shell meta-characters.
  1222. # Make two passes to allow for proper duplicate-argument suppression.
  1223. ac_configure_args=
  1224. ac_configure_args0=
  1225. ac_configure_args1=
  1226. ac_must_keep_next=false
  1227. for ac_pass in 1 2
  1228. do
  1229. for ac_arg
  1230. do
  1231. case $ac_arg in
  1232. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1233. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1234. | -silent | --silent | --silen | --sile | --sil)
  1235. continue ;;
  1236. *\'*)
  1237. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1238. esac
  1239. case $ac_pass in
  1240. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1241. 2)
  1242. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1243. if test $ac_must_keep_next = true; then
  1244. ac_must_keep_next=false # Got value, back to normal.
  1245. else
  1246. case $ac_arg in
  1247. *=* | --config-cache | -C | -disable-* | --disable-* \
  1248. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1249. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1250. | -with-* | --with-* | -without-* | --without-* | --x)
  1251. case "$ac_configure_args0 " in
  1252. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1253. esac
  1254. ;;
  1255. -* ) ac_must_keep_next=true ;;
  1256. esac
  1257. fi
  1258. ac_configure_args="$ac_configure_args '$ac_arg'"
  1259. ;;
  1260. esac
  1261. done
  1262. done
  1263. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1264. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1265. # When interrupted or exit'd, cleanup temporary files, and complete
  1266. # config.log. We remove comments because anyway the quotes in there
  1267. # would cause problems or look ugly.
  1268. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1269. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1270. trap 'exit_status=$?
  1271. # Save into config.log some information that might help in debugging.
  1272. {
  1273. echo
  1274. cat <<\_ASBOX
  1275. ## ---------------- ##
  1276. ## Cache variables. ##
  1277. ## ---------------- ##
  1278. _ASBOX
  1279. echo
  1280. # The following way of writing the cache mishandles newlines in values,
  1281. (
  1282. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1283. eval ac_val=\$$ac_var
  1284. case $ac_val in #(
  1285. *${as_nl}*)
  1286. case $ac_var in #(
  1287. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1288. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1289. esac
  1290. case $ac_var in #(
  1291. _ | IFS | as_nl) ;; #(
  1292. *) $as_unset $ac_var ;;
  1293. esac ;;
  1294. esac
  1295. done
  1296. (set) 2>&1 |
  1297. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1298. *${as_nl}ac_space=\ *)
  1299. sed -n \
  1300. "s/'\''/'\''\\\\'\'''\''/g;
  1301. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1302. ;; #(
  1303. *)
  1304. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1305. ;;
  1306. esac |
  1307. sort
  1308. )
  1309. echo
  1310. cat <<\_ASBOX
  1311. ## ----------------- ##
  1312. ## Output variables. ##
  1313. ## ----------------- ##
  1314. _ASBOX
  1315. echo
  1316. for ac_var in $ac_subst_vars
  1317. do
  1318. eval ac_val=\$$ac_var
  1319. case $ac_val in
  1320. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1321. esac
  1322. echo "$ac_var='\''$ac_val'\''"
  1323. done | sort
  1324. echo
  1325. if test -n "$ac_subst_files"; then
  1326. cat <<\_ASBOX
  1327. ## ------------------- ##
  1328. ## File substitutions. ##
  1329. ## ------------------- ##
  1330. _ASBOX
  1331. echo
  1332. for ac_var in $ac_subst_files
  1333. do
  1334. eval ac_val=\$$ac_var
  1335. case $ac_val in
  1336. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1337. esac
  1338. echo "$ac_var='\''$ac_val'\''"
  1339. done | sort
  1340. echo
  1341. fi
  1342. if test -s confdefs.h; then
  1343. cat <<\_ASBOX
  1344. ## ----------- ##
  1345. ## confdefs.h. ##
  1346. ## ----------- ##
  1347. _ASBOX
  1348. echo
  1349. cat confdefs.h
  1350. echo
  1351. fi
  1352. test "$ac_signal" != 0 &&
  1353. echo "$as_me: caught signal $ac_signal"
  1354. echo "$as_me: exit $exit_status"
  1355. } >&5
  1356. rm -f core *.core core.conftest.* &&
  1357. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1358. exit $exit_status
  1359. ' 0
  1360. for ac_signal in 1 2 13 15; do
  1361. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1362. done
  1363. ac_signal=0
  1364. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1365. rm -f -r conftest* confdefs.h
  1366. # Predefined preprocessor variables.
  1367. cat >>confdefs.h <<_ACEOF
  1368. #define PACKAGE_NAME "$PACKAGE_NAME"
  1369. _ACEOF
  1370. cat >>confdefs.h <<_ACEOF
  1371. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1372. _ACEOF
  1373. cat >>confdefs.h <<_ACEOF
  1374. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1375. _ACEOF
  1376. cat >>confdefs.h <<_ACEOF
  1377. #define PACKAGE_STRING "$PACKAGE_STRING"
  1378. _ACEOF
  1379. cat >>confdefs.h <<_ACEOF
  1380. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1381. _ACEOF
  1382. # Let the site file select an alternate cache file if it wants to.
  1383. # Prefer explicitly selected file to automatically selected ones.
  1384. if test -n "$CONFIG_SITE"; then
  1385. set x "$CONFIG_SITE"
  1386. elif test "x$prefix" != xNONE; then
  1387. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1388. else
  1389. set x "$ac_default_prefix/share/config.site" \
  1390. "$ac_default_prefix/etc/config.site"
  1391. fi
  1392. shift
  1393. for ac_site_file
  1394. do
  1395. if test -r "$ac_site_file"; then
  1396. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1397. echo "$as_me: loading site script $ac_site_file" >&6;}
  1398. sed 's/^/| /' "$ac_site_file" >&5
  1399. . "$ac_site_file"
  1400. fi
  1401. done
  1402. if test -r "$cache_file"; then
  1403. # Some versions of bash will fail to source /dev/null (special
  1404. # files actually), so we avoid doing that.
  1405. if test -f "$cache_file"; then
  1406. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1407. echo "$as_me: loading cache $cache_file" >&6;}
  1408. case $cache_file in
  1409. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1410. *) . "./$cache_file";;
  1411. esac
  1412. fi
  1413. else
  1414. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1415. echo "$as_me: creating cache $cache_file" >&6;}
  1416. >$cache_file
  1417. fi
  1418. # Check that the precious variables saved in the cache have kept the same
  1419. # value.
  1420. ac_cache_corrupted=false
  1421. for ac_var in $ac_precious_vars; do
  1422. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1423. eval ac_new_set=\$ac_env_${ac_var}_set
  1424. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1425. eval ac_new_val=\$ac_env_${ac_var}_value
  1426. case $ac_old_set,$ac_new_set in
  1427. set,)
  1428. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1429. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1430. ac_cache_corrupted=: ;;
  1431. ,set)
  1432. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1433. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1434. ac_cache_corrupted=: ;;
  1435. ,);;
  1436. *)
  1437. if test "x$ac_old_val" != "x$ac_new_val"; then
  1438. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1439. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1440. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1441. echo "$as_me: former value: $ac_old_val" >&2;}
  1442. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1443. echo "$as_me: current value: $ac_new_val" >&2;}
  1444. ac_cache_corrupted=:
  1445. fi;;
  1446. esac
  1447. # Pass precious variables to config.status.
  1448. if test "$ac_new_set" = set; then
  1449. case $ac_new_val in
  1450. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1451. *) ac_arg=$ac_var=$ac_new_val ;;
  1452. esac
  1453. case " $ac_configure_args " in
  1454. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1455. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1456. esac
  1457. fi
  1458. done
  1459. if $ac_cache_corrupted; then
  1460. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1461. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1462. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1463. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1464. { (exit 1); exit 1; }; }
  1465. fi
  1466. ac_ext=c
  1467. ac_cpp='$CPP $CPPFLAGS'
  1468. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1469. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1470. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1471. ac_aux_dir=
  1472. for ac_dir in buildlib "$srcdir"/buildlib; do
  1473. if test -f "$ac_dir/install-sh"; then
  1474. ac_aux_dir=$ac_dir
  1475. ac_install_sh="$ac_aux_dir/install-sh -c"
  1476. break
  1477. elif test -f "$ac_dir/install.sh"; then
  1478. ac_aux_dir=$ac_dir
  1479. ac_install_sh="$ac_aux_dir/install.sh -c"
  1480. break
  1481. elif test -f "$ac_dir/shtool"; then
  1482. ac_aux_dir=$ac_dir
  1483. ac_install_sh="$ac_aux_dir/shtool install -c"
  1484. break
  1485. fi
  1486. done
  1487. if test -z "$ac_aux_dir"; then
  1488. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in buildlib \"$srcdir\"/buildlib" >&5
  1489. echo "$as_me: error: cannot find install-sh or install.sh in buildlib \"$srcdir\"/buildlib" >&2;}
  1490. { (exit 1); exit 1; }; }
  1491. fi
  1492. # These three variables are undocumented and unsupported,
  1493. # and are intended to be withdrawn in a future Autoconf release.
  1494. # They can cause serious problems if a builder's source tree is in a directory
  1495. # whose full name contains unusual characters.
  1496. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1497. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1498. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1499. ac_config_headers="$ac_config_headers include/config.h:buildlib/config.h.in"
  1500. cat >>confdefs.h <<_ACEOF
  1501. #define VERSION "0.0"
  1502. _ACEOF
  1503. cat >>confdefs.h <<_ACEOF
  1504. #define PACKAGE "dsync"
  1505. _ACEOF
  1506. ac_ext=c
  1507. ac_cpp='$CPP $CPPFLAGS'
  1508. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1509. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1510. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1511. if test -n "$ac_tool_prefix"; then
  1512. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1513. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1514. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1515. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1516. if test "${ac_cv_prog_CC+set}" = set; then
  1517. echo $ECHO_N "(cached) $ECHO_C" >&6
  1518. else
  1519. if test -n "$CC"; then
  1520. ac_cv_prog_CC="$CC" # Let the user override the test.
  1521. else
  1522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1523. for as_dir in $PATH
  1524. do
  1525. IFS=$as_save_IFS
  1526. test -z "$as_dir" && as_dir=.
  1527. for ac_exec_ext in '' $ac_executable_extensions; do
  1528. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1529. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1530. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1531. break 2
  1532. fi
  1533. done
  1534. done
  1535. IFS=$as_save_IFS
  1536. fi
  1537. fi
  1538. CC=$ac_cv_prog_CC
  1539. if test -n "$CC"; then
  1540. { echo "$as_me:$LINENO: result: $CC" >&5
  1541. echo "${ECHO_T}$CC" >&6; }
  1542. else
  1543. { echo "$as_me:$LINENO: result: no" >&5
  1544. echo "${ECHO_T}no" >&6; }
  1545. fi
  1546. fi
  1547. if test -z "$ac_cv_prog_CC"; then
  1548. ac_ct_CC=$CC
  1549. # Extract the first word of "gcc", so it can be a program name with args.
  1550. set dummy gcc; ac_word=$2
  1551. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1552. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1553. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1554. echo $ECHO_N "(cached) $ECHO_C" >&6
  1555. else
  1556. if test -n "$ac_ct_CC"; then
  1557. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1558. else
  1559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1560. for as_dir in $PATH
  1561. do
  1562. IFS=$as_save_IFS
  1563. test -z "$as_dir" && as_dir=.
  1564. for ac_exec_ext in '' $ac_executable_extensions; do
  1565. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1566. ac_cv_prog_ac_ct_CC="gcc"
  1567. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1568. break 2
  1569. fi
  1570. done
  1571. done
  1572. IFS=$as_save_IFS
  1573. fi
  1574. fi
  1575. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1576. if test -n "$ac_ct_CC"; then
  1577. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1578. echo "${ECHO_T}$ac_ct_CC" >&6; }
  1579. else
  1580. { echo "$as_me:$LINENO: result: no" >&5
  1581. echo "${ECHO_T}no" >&6; }
  1582. fi
  1583. if test "x$ac_ct_CC" = x; then
  1584. CC=""
  1585. else
  1586. case $cross_compiling:$ac_tool_warned in
  1587. yes:)
  1588. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1589. whose name does not start with the host triplet. If you think this
  1590. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1591. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1592. whose name does not start with the host triplet. If you think this
  1593. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1594. ac_tool_warned=yes ;;
  1595. esac
  1596. CC=$ac_ct_CC
  1597. fi
  1598. else
  1599. CC="$ac_cv_prog_CC"
  1600. fi
  1601. if test -z "$CC"; then
  1602. if test -n "$ac_tool_prefix"; then
  1603. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1604. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1605. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1606. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1607. if test "${ac_cv_prog_CC+set}" = set; then
  1608. echo $ECHO_N "(cached) $ECHO_C" >&6
  1609. else
  1610. if test -n "$CC"; then
  1611. ac_cv_prog_CC="$CC" # Let the user override the test.
  1612. else
  1613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1614. for as_dir in $PATH
  1615. do
  1616. IFS=$as_save_IFS
  1617. test -z "$as_dir" && as_dir=.
  1618. for ac_exec_ext in '' $ac_executable_extensions; do
  1619. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1620. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1621. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1622. break 2
  1623. fi
  1624. done
  1625. done
  1626. IFS=$as_save_IFS
  1627. fi
  1628. fi
  1629. CC=$ac_cv_prog_CC
  1630. if test -n "$CC"; then
  1631. { echo "$as_me:$LINENO: result: $CC" >&5
  1632. echo "${ECHO_T}$CC" >&6; }
  1633. else
  1634. { echo "$as_me:$LINENO: result: no" >&5
  1635. echo "${ECHO_T}no" >&6; }
  1636. fi
  1637. fi
  1638. fi
  1639. if test -z "$CC"; then
  1640. # Extract the first word of "cc", so it can be a program name with args.
  1641. set dummy cc; ac_word=$2
  1642. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1643. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1644. if test "${ac_cv_prog_CC+set}" = set; then
  1645. echo $ECHO_N "(cached) $ECHO_C" >&6
  1646. else
  1647. if test -n "$CC"; then
  1648. ac_cv_prog_CC="$CC" # Let the user override the test.
  1649. else
  1650. ac_prog_rejected=no
  1651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1652. for as_dir in $PATH
  1653. do
  1654. IFS=$as_save_IFS
  1655. test -z "$as_dir" && as_dir=.
  1656. for ac_exec_ext in '' $ac_executable_extensions; do
  1657. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1658. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1659. ac_prog_rejected=yes
  1660. continue
  1661. fi
  1662. ac_cv_prog_CC="cc"
  1663. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1664. break 2
  1665. fi
  1666. done
  1667. done
  1668. IFS=$as_save_IFS
  1669. if test $ac_prog_rejected = yes; then
  1670. # We found a bogon in the path, so make sure we never use it.
  1671. set dummy $ac_cv_prog_CC
  1672. shift
  1673. if test $# != 0; then
  1674. # We chose a different compiler from the bogus one.
  1675. # However, it has the same basename, so the bogon will be chosen
  1676. # first if we set CC to just the basename; use the full file name.
  1677. shift
  1678. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1679. fi
  1680. fi
  1681. fi
  1682. fi
  1683. CC=$ac_cv_prog_CC
  1684. if test -n "$CC"; then
  1685. { echo "$as_me:$LINENO: result: $CC" >&5
  1686. echo "${ECHO_T}$CC" >&6; }
  1687. else
  1688. { echo "$as_me:$LINENO: result: no" >&5
  1689. echo "${ECHO_T}no" >&6; }
  1690. fi
  1691. fi
  1692. if test -z "$CC"; then
  1693. if test -n "$ac_tool_prefix"; then
  1694. for ac_prog in cl.exe
  1695. do
  1696. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1697. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1698. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1699. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1700. if test "${ac_cv_prog_CC+set}" = set; then
  1701. echo $ECHO_N "(cached) $ECHO_C" >&6
  1702. else
  1703. if test -n "$CC"; then
  1704. ac_cv_prog_CC="$CC" # Let the user override the test.
  1705. else
  1706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1707. for as_dir in $PATH
  1708. do
  1709. IFS=$as_save_IFS
  1710. test -z "$as_dir" && as_dir=.
  1711. for ac_exec_ext in '' $ac_executable_extensions; do
  1712. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1713. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1714. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1715. break 2
  1716. fi
  1717. done
  1718. done
  1719. IFS=$as_save_IFS
  1720. fi
  1721. fi
  1722. CC=$ac_cv_prog_CC
  1723. if test -n "$CC"; then
  1724. { echo "$as_me:$LINENO: result: $CC" >&5
  1725. echo "${ECHO_T}$CC" >&6; }
  1726. else
  1727. { echo "$as_me:$LINENO: result: no" >&5
  1728. echo "${ECHO_T}no" >&6; }
  1729. fi
  1730. test -n "$CC" && break
  1731. done
  1732. fi
  1733. if test -z "$CC"; then
  1734. ac_ct_CC=$CC
  1735. for ac_prog in cl.exe
  1736. do
  1737. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1738. set dummy $ac_prog; ac_word=$2
  1739. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1740. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1741. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1742. echo $ECHO_N "(cached) $ECHO_C" >&6
  1743. else
  1744. if test -n "$ac_ct_CC"; then
  1745. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1746. else
  1747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1748. for as_dir in $PATH
  1749. do
  1750. IFS=$as_save_IFS
  1751. test -z "$as_dir" && as_dir=.
  1752. for ac_exec_ext in '' $ac_executable_extensions; do
  1753. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1754. ac_cv_prog_ac_ct_CC="$ac_prog"
  1755. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1756. break 2
  1757. fi
  1758. done
  1759. done
  1760. IFS=$as_save_IFS
  1761. fi
  1762. fi
  1763. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1764. if test -n "$ac_ct_CC"; then
  1765. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1766. echo "${ECHO_T}$ac_ct_CC" >&6; }
  1767. else
  1768. { echo "$as_me:$LINENO: result: no" >&5
  1769. echo "${ECHO_T}no" >&6; }
  1770. fi
  1771. test -n "$ac_ct_CC" && break
  1772. done
  1773. if test "x$ac_ct_CC" = x; then
  1774. CC=""
  1775. else
  1776. case $cross_compiling:$ac_tool_warned in
  1777. yes:)
  1778. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1779. whose name does not start with the host triplet. If you think this
  1780. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1781. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1782. whose name does not start with the host triplet. If you think this
  1783. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1784. ac_tool_warned=yes ;;
  1785. esac
  1786. CC=$ac_ct_CC
  1787. fi
  1788. fi
  1789. fi
  1790. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1791. See \`config.log' for more details." >&5
  1792. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1793. See \`config.log' for more details." >&2;}
  1794. { (exit 1); exit 1; }; }
  1795. # Provide some information about the compiler.
  1796. echo "$as_me:$LINENO: checking for C compiler version" >&5
  1797. ac_compiler=`set X $ac_compile; echo $2`
  1798. { (ac_try="$ac_compiler --version >&5"
  1799. case "(($ac_try" in
  1800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1801. *) ac_try_echo=$ac_try;;
  1802. esac
  1803. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1804. (eval "$ac_compiler --version >&5") 2>&5
  1805. ac_status=$?
  1806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1807. (exit $ac_status); }
  1808. { (ac_try="$ac_compiler -v >&5"
  1809. case "(($ac_try" in
  1810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1811. *) ac_try_echo=$ac_try;;
  1812. esac
  1813. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1814. (eval "$ac_compiler -v >&5") 2>&5
  1815. ac_status=$?
  1816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1817. (exit $ac_status); }
  1818. { (ac_try="$ac_compiler -V >&5"
  1819. case "(($ac_try" in
  1820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1821. *) ac_try_echo=$ac_try;;
  1822. esac
  1823. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1824. (eval "$ac_compiler -V >&5") 2>&5
  1825. ac_status=$?
  1826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1827. (exit $ac_status); }
  1828. cat >conftest.$ac_ext <<_ACEOF
  1829. /* confdefs.h. */
  1830. _ACEOF
  1831. cat confdefs.h >>conftest.$ac_ext
  1832. cat >>conftest.$ac_ext <<_ACEOF
  1833. /* end confdefs.h. */
  1834. int
  1835. main ()
  1836. {
  1837. ;
  1838. return 0;
  1839. }
  1840. _ACEOF
  1841. ac_clean_files_save=$ac_clean_files
  1842. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1843. # Try to create an executable without -o first, disregard a.out.
  1844. # It will help us diagnose broken compilers, and finding out an intuition
  1845. # of exeext.
  1846. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1847. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  1848. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1849. #
  1850. # List of possible output files, starting from the most likely.
  1851. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  1852. # only as a last resort. b.out is created by i960 compilers.
  1853. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  1854. #
  1855. # The IRIX 6 linker writes into existing files which may not be
  1856. # executable, retaining their permissions. Remove them first so a
  1857. # subsequent execution test works.
  1858. ac_rmfiles=
  1859. for ac_file in $ac_files
  1860. do
  1861. case $ac_file in
  1862. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1863. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1864. esac
  1865. done
  1866. rm -f $ac_rmfiles
  1867. if { (ac_try="$ac_link_default"
  1868. case "(($ac_try" in
  1869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1870. *) ac_try_echo=$ac_try;;
  1871. esac
  1872. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1873. (eval "$ac_link_default") 2>&5
  1874. ac_status=$?
  1875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1876. (exit $ac_status); }; then
  1877. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1878. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1879. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1880. # so that the user can short-circuit this test for compilers unknown to
  1881. # Autoconf.
  1882. for ac_file in $ac_files ''
  1883. do
  1884. test -f "$ac_file" || continue
  1885. case $ac_file in
  1886. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  1887. ;;
  1888. [ab].out )
  1889. # We found the default executable, but exeext='' is most
  1890. # certainly right.
  1891. break;;
  1892. *.* )
  1893. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1894. then :; else
  1895. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1896. fi
  1897. # We set ac_cv_exeext here because the later test for it is not
  1898. # safe: cross compilers may not add the suffix if given an `-o'
  1899. # argument, so we may need to know it at that point already.
  1900. # Even if this section looks crufty: it has the advantage of
  1901. # actually working.
  1902. break;;
  1903. * )
  1904. break;;
  1905. esac
  1906. done
  1907. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1908. else
  1909. ac_file=''
  1910. fi
  1911. { echo "$as_me:$LINENO: result: $ac_file" >&5
  1912. echo "${ECHO_T}$ac_file" >&6; }
  1913. if test -z "$ac_file"; then
  1914. echo "$as_me: failed program was:" >&5
  1915. sed 's/^/| /' conftest.$ac_ext >&5
  1916. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1917. See \`config.log' for more details." >&5
  1918. echo "$as_me: error: C compiler cannot create executables
  1919. See \`config.log' for more details." >&2;}
  1920. { (exit 77); exit 77; }; }
  1921. fi
  1922. ac_exeext=$ac_cv_exeext
  1923. # Check that the compiler produces executables we can run. If not, either
  1924. # the compiler is broken, or we cross compile.
  1925. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1926. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  1927. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1928. # If not cross compiling, check that we can run a simple program.
  1929. if test "$cross_compiling" != yes; then
  1930. if { ac_try='./$ac_file'
  1931. { (case "(($ac_try" in
  1932. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1933. *) ac_try_echo=$ac_try;;
  1934. esac
  1935. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1936. (eval "$ac_try") 2>&5
  1937. ac_status=$?
  1938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1939. (exit $ac_status); }; }; then
  1940. cross_compiling=no
  1941. else
  1942. if test "$cross_compiling" = maybe; then
  1943. cross_compiling=yes
  1944. else
  1945. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1946. If you meant to cross compile, use \`--host'.
  1947. See \`config.log' for more details." >&5
  1948. echo "$as_me: error: cannot run C compiled programs.
  1949. If you meant to cross compile, use \`--host'.
  1950. See \`config.log' for more details." >&2;}
  1951. { (exit 1); exit 1; }; }
  1952. fi
  1953. fi
  1954. fi
  1955. { echo "$as_me:$LINENO: result: yes" >&5
  1956. echo "${ECHO_T}yes" >&6; }
  1957. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1958. ac_clean_files=$ac_clean_files_save
  1959. # Check that the compiler produces executables we can run. If not, either
  1960. # the compiler is broken, or we cross compile.
  1961. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1962. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  1963. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1964. echo "${ECHO_T}$cross_compiling" >&6; }
  1965. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1966. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  1967. if { (ac_try="$ac_link"
  1968. case "(($ac_try" in
  1969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1970. *) ac_try_echo=$ac_try;;
  1971. esac
  1972. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1973. (eval "$ac_link") 2>&5
  1974. ac_status=$?
  1975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1976. (exit $ac_status); }; then
  1977. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1978. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1979. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1980. # `rm'.
  1981. for ac_file in conftest.exe conftest conftest.*; do
  1982. test -f "$ac_file" || continue
  1983. case $ac_file in
  1984. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1985. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1986. break;;
  1987. * ) break;;
  1988. esac
  1989. done
  1990. else
  1991. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1992. See \`config.log' for more details." >&5
  1993. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1994. See \`config.log' for more details." >&2;}
  1995. { (exit 1); exit 1; }; }
  1996. fi
  1997. rm -f conftest$ac_cv_exeext
  1998. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1999. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2000. rm -f conftest.$ac_ext
  2001. EXEEXT=$ac_cv_exeext
  2002. ac_exeext=$EXEEXT
  2003. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2004. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2005. if test "${ac_cv_objext+set}" = set; then
  2006. echo $ECHO_N "(cached) $ECHO_C" >&6
  2007. else
  2008. cat >conftest.$ac_ext <<_ACEOF
  2009. /* confdefs.h. */
  2010. _ACEOF
  2011. cat confdefs.h >>conftest.$ac_ext
  2012. cat >>conftest.$ac_ext <<_ACEOF
  2013. /* end confdefs.h. */
  2014. int
  2015. main ()
  2016. {
  2017. ;
  2018. return 0;
  2019. }
  2020. _ACEOF
  2021. rm -f conftest.o conftest.obj
  2022. if { (ac_try="$ac_compile"
  2023. case "(($ac_try" in
  2024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2025. *) ac_try_echo=$ac_try;;
  2026. esac
  2027. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2028. (eval "$ac_compile") 2>&5
  2029. ac_status=$?
  2030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2031. (exit $ac_status); }; then
  2032. for ac_file in conftest.o conftest.obj conftest.*; do
  2033. test -f "$ac_file" || continue;
  2034. case $ac_file in
  2035. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2036. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2037. break;;
  2038. esac
  2039. done
  2040. else
  2041. echo "$as_me: failed program was:" >&5
  2042. sed 's/^/| /' conftest.$ac_ext >&5
  2043. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2044. See \`config.log' for more details." >&5
  2045. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2046. See \`config.log' for more details." >&2;}
  2047. { (exit 1); exit 1; }; }
  2048. fi
  2049. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2050. fi
  2051. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2052. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2053. OBJEXT=$ac_cv_objext
  2054. ac_objext=$OBJEXT
  2055. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2056. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2057. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2058. echo $ECHO_N "(cached) $ECHO_C" >&6
  2059. else
  2060. cat >conftest.$ac_ext <<_ACEOF
  2061. /* confdefs.h. */
  2062. _ACEOF
  2063. cat confdefs.h >>conftest.$ac_ext
  2064. cat >>conftest.$ac_ext <<_ACEOF
  2065. /* end confdefs.h. */
  2066. int
  2067. main ()
  2068. {
  2069. #ifndef __GNUC__
  2070. choke me
  2071. #endif
  2072. ;
  2073. return 0;
  2074. }
  2075. _ACEOF
  2076. rm -f conftest.$ac_objext
  2077. if { (ac_try="$ac_compile"
  2078. case "(($ac_try" in
  2079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2080. *) ac_try_echo=$ac_try;;
  2081. esac
  2082. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2083. (eval "$ac_compile") 2>conftest.er1
  2084. ac_status=$?
  2085. grep -v '^ *+' conftest.er1 >conftest.err
  2086. rm -f conftest.er1
  2087. cat conftest.err >&5
  2088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2089. (exit $ac_status); } && {
  2090. test -z "$ac_c_werror_flag" ||
  2091. test ! -s conftest.err
  2092. } && test -s conftest.$ac_objext; then
  2093. ac_compiler_gnu=yes
  2094. else
  2095. echo "$as_me: failed program was:" >&5
  2096. sed 's/^/| /' conftest.$ac_ext >&5
  2097. ac_compiler_gnu=no
  2098. fi
  2099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2100. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2101. fi
  2102. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2103. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2104. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2105. ac_test_CFLAGS=${CFLAGS+set}
  2106. ac_save_CFLAGS=$CFLAGS
  2107. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2108. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2109. if test "${ac_cv_prog_cc_g+set}" = set; then
  2110. echo $ECHO_N "(cached) $ECHO_C" >&6
  2111. else
  2112. ac_save_c_werror_flag=$ac_c_werror_flag
  2113. ac_c_werror_flag=yes
  2114. ac_cv_prog_cc_g=no
  2115. CFLAGS="-g"
  2116. cat >conftest.$ac_ext <<_ACEOF
  2117. /* confdefs.h. */
  2118. _ACEOF
  2119. cat confdefs.h >>conftest.$ac_ext
  2120. cat >>conftest.$ac_ext <<_ACEOF
  2121. /* end confdefs.h. */
  2122. int
  2123. main ()
  2124. {
  2125. ;
  2126. return 0;
  2127. }
  2128. _ACEOF
  2129. rm -f conftest.$ac_objext
  2130. if { (ac_try="$ac_compile"
  2131. case "(($ac_try" in
  2132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2133. *) ac_try_echo=$ac_try;;
  2134. esac
  2135. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2136. (eval "$ac_compile") 2>conftest.er1
  2137. ac_status=$?
  2138. grep -v '^ *+' conftest.er1 >conftest.err
  2139. rm -f conftest.er1
  2140. cat conftest.err >&5
  2141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2142. (exit $ac_status); } && {
  2143. test -z "$ac_c_werror_flag" ||
  2144. test ! -s conftest.err
  2145. } && test -s conftest.$ac_objext; then
  2146. ac_cv_prog_cc_g=yes
  2147. else
  2148. echo "$as_me: failed program was:" >&5
  2149. sed 's/^/| /' conftest.$ac_ext >&5
  2150. CFLAGS=""
  2151. cat >conftest.$ac_ext <<_ACEOF
  2152. /* confdefs.h. */
  2153. _ACEOF
  2154. cat confdefs.h >>conftest.$ac_ext
  2155. cat >>conftest.$ac_ext <<_ACEOF
  2156. /* end confdefs.h. */
  2157. int
  2158. main ()
  2159. {
  2160. ;
  2161. return 0;
  2162. }
  2163. _ACEOF
  2164. rm -f conftest.$ac_objext
  2165. if { (ac_try="$ac_compile"
  2166. case "(($ac_try" in
  2167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2168. *) ac_try_echo=$ac_try;;
  2169. esac
  2170. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2171. (eval "$ac_compile") 2>conftest.er1
  2172. ac_status=$?
  2173. grep -v '^ *+' conftest.er1 >conftest.err
  2174. rm -f conftest.er1
  2175. cat conftest.err >&5
  2176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2177. (exit $ac_status); } && {
  2178. test -z "$ac_c_werror_flag" ||
  2179. test ! -s conftest.err
  2180. } && test -s conftest.$ac_objext; then
  2181. :
  2182. else
  2183. echo "$as_me: failed program was:" >&5
  2184. sed 's/^/| /' conftest.$ac_ext >&5
  2185. ac_c_werror_flag=$ac_save_c_werror_flag
  2186. CFLAGS="-g"
  2187. cat >conftest.$ac_ext <<_ACEOF
  2188. /* confdefs.h. */
  2189. _ACEOF
  2190. cat confdefs.h >>conftest.$ac_ext
  2191. cat >>conftest.$ac_ext <<_ACEOF
  2192. /* end confdefs.h. */
  2193. int
  2194. main ()
  2195. {
  2196. ;
  2197. return 0;
  2198. }
  2199. _ACEOF
  2200. rm -f conftest.$ac_objext
  2201. if { (ac_try="$ac_compile"
  2202. case "(($ac_try" in
  2203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2204. *) ac_try_echo=$ac_try;;
  2205. esac
  2206. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2207. (eval "$ac_compile") 2>conftest.er1
  2208. ac_status=$?
  2209. grep -v '^ *+' conftest.er1 >conftest.err
  2210. rm -f conftest.er1
  2211. cat conftest.err >&5
  2212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2213. (exit $ac_status); } && {
  2214. test -z "$ac_c_werror_flag" ||
  2215. test ! -s conftest.err
  2216. } && test -s conftest.$ac_objext; then
  2217. ac_cv_prog_cc_g=yes
  2218. else
  2219. echo "$as_me: failed program was:" >&5
  2220. sed 's/^/| /' conftest.$ac_ext >&5
  2221. fi
  2222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2223. fi
  2224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2225. fi
  2226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2227. ac_c_werror_flag=$ac_save_c_werror_flag
  2228. fi
  2229. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2230. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2231. if test "$ac_test_CFLAGS" = set; then
  2232. CFLAGS=$ac_save_CFLAGS
  2233. elif test $ac_cv_prog_cc_g = yes; then
  2234. if test "$GCC" = yes; then
  2235. CFLAGS="-g -O2"
  2236. else
  2237. CFLAGS="-g"
  2238. fi
  2239. else
  2240. if test "$GCC" = yes; then
  2241. CFLAGS="-O2"
  2242. else
  2243. CFLAGS=
  2244. fi
  2245. fi
  2246. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2247. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2248. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2249. echo $ECHO_N "(cached) $ECHO_C" >&6
  2250. else
  2251. ac_cv_prog_cc_c89=no
  2252. ac_save_CC=$CC
  2253. cat >conftest.$ac_ext <<_ACEOF
  2254. /* confdefs.h. */
  2255. _ACEOF
  2256. cat confdefs.h >>conftest.$ac_ext
  2257. cat >>conftest.$ac_ext <<_ACEOF
  2258. /* end confdefs.h. */
  2259. #include <stdarg.h>
  2260. #include <stdio.h>
  2261. #include <sys/types.h>
  2262. #include <sys/stat.h>
  2263. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2264. struct buf { int x; };
  2265. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2266. static char *e (p, i)
  2267. char **p;
  2268. int i;
  2269. {
  2270. return p[i];
  2271. }
  2272. static char *f (char * (*g) (char **, int), char **p, ...)
  2273. {
  2274. char *s;
  2275. va_list v;
  2276. va_start (v,p);
  2277. s = g (p, va_arg (v,int));
  2278. va_end (v);
  2279. return s;
  2280. }
  2281. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2282. function prototypes and stuff, but not '\xHH' hex character constants.
  2283. These don't provoke an error unfortunately, instead are silently treated
  2284. as 'x'. The following induces an error, until -std is added to get
  2285. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2286. array size at least. It's necessary to write '\x00'==0 to get something
  2287. that's true only with -std. */
  2288. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2289. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2290. inside strings and character constants. */
  2291. #define FOO(x) 'x'
  2292. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2293. int test (int i, double x);
  2294. struct s1 {int (*f) (int a);};
  2295. struct s2 {int (*f) (double a);};
  2296. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2297. int argc;
  2298. char **argv;
  2299. int
  2300. main ()
  2301. {
  2302. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2303. ;
  2304. return 0;
  2305. }
  2306. _ACEOF
  2307. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2308. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2309. do
  2310. CC="$ac_save_CC $ac_arg"
  2311. rm -f conftest.$ac_objext
  2312. if { (ac_try="$ac_compile"
  2313. case "(($ac_try" in
  2314. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2315. *) ac_try_echo=$ac_try;;
  2316. esac
  2317. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2318. (eval "$ac_compile") 2>conftest.er1
  2319. ac_status=$?
  2320. grep -v '^ *+' conftest.er1 >conftest.err
  2321. rm -f conftest.er1
  2322. cat conftest.err >&5
  2323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2324. (exit $ac_status); } && {
  2325. test -z "$ac_c_werror_flag" ||
  2326. test ! -s conftest.err
  2327. } && test -s conftest.$ac_objext; then
  2328. ac_cv_prog_cc_c89=$ac_arg
  2329. else
  2330. echo "$as_me: failed program was:" >&5
  2331. sed 's/^/| /' conftest.$ac_ext >&5
  2332. fi
  2333. rm -f core conftest.err conftest.$ac_objext
  2334. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2335. done
  2336. rm -f conftest.$ac_ext
  2337. CC=$ac_save_CC
  2338. fi
  2339. # AC_CACHE_VAL
  2340. case "x$ac_cv_prog_cc_c89" in
  2341. x)
  2342. { echo "$as_me:$LINENO: result: none needed" >&5
  2343. echo "${ECHO_T}none needed" >&6; } ;;
  2344. xno)
  2345. { echo "$as_me:$LINENO: result: unsupported" >&5
  2346. echo "${ECHO_T}unsupported" >&6; } ;;
  2347. *)
  2348. CC="$CC $ac_cv_prog_cc_c89"
  2349. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2350. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  2351. esac
  2352. ac_ext=c
  2353. ac_cpp='$CPP $CPPFLAGS'
  2354. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2355. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2356. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2357. { echo "$as_me:$LINENO: checking for library containing strerror" >&5
  2358. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
  2359. if test "${ac_cv_search_strerror+set}" = set; then
  2360. echo $ECHO_N "(cached) $ECHO_C" >&6
  2361. else
  2362. ac_func_search_save_LIBS=$LIBS
  2363. cat >conftest.$ac_ext <<_ACEOF
  2364. /* confdefs.h. */
  2365. _ACEOF
  2366. cat confdefs.h >>conftest.$ac_ext
  2367. cat >>conftest.$ac_ext <<_ACEOF
  2368. /* end confdefs.h. */
  2369. /* Override any GCC internal prototype to avoid an error.
  2370. Use char because int might match the return type of a GCC
  2371. builtin and then its argument prototype would still apply. */
  2372. #ifdef __cplusplus
  2373. extern "C"
  2374. #endif
  2375. char strerror ();
  2376. int
  2377. main ()
  2378. {
  2379. return strerror ();
  2380. ;
  2381. return 0;
  2382. }
  2383. _ACEOF
  2384. for ac_lib in '' cposix; do
  2385. if test -z "$ac_lib"; then
  2386. ac_res="none required"
  2387. else
  2388. ac_res=-l$ac_lib
  2389. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2390. fi
  2391. rm -f conftest.$ac_objext conftest$ac_exeext
  2392. if { (ac_try="$ac_link"
  2393. case "(($ac_try" in
  2394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2395. *) ac_try_echo=$ac_try;;
  2396. esac
  2397. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2398. (eval "$ac_link") 2>conftest.er1
  2399. ac_status=$?
  2400. grep -v '^ *+' conftest.er1 >conftest.err
  2401. rm -f conftest.er1
  2402. cat conftest.err >&5
  2403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2404. (exit $ac_status); } && {
  2405. test -z "$ac_c_werror_flag" ||
  2406. test ! -s conftest.err
  2407. } && test -s conftest$ac_exeext &&
  2408. $as_test_x conftest$ac_exeext; then
  2409. ac_cv_search_strerror=$ac_res
  2410. else
  2411. echo "$as_me: failed program was:" >&5
  2412. sed 's/^/| /' conftest.$ac_ext >&5
  2413. fi
  2414. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2415. conftest$ac_exeext
  2416. if test "${ac_cv_search_strerror+set}" = set; then
  2417. break
  2418. fi
  2419. done
  2420. if test "${ac_cv_search_strerror+set}" = set; then
  2421. :
  2422. else
  2423. ac_cv_search_strerror=no
  2424. fi
  2425. rm conftest.$ac_ext
  2426. LIBS=$ac_func_search_save_LIBS
  2427. fi
  2428. { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  2429. echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
  2430. ac_res=$ac_cv_search_strerror
  2431. if test "$ac_res" != no; then
  2432. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  2433. fi
  2434. # Make sure we can run config.sub.
  2435. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2436. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2437. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2438. { (exit 1); exit 1; }; }
  2439. { echo "$as_me:$LINENO: checking build system type" >&5
  2440. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  2441. if test "${ac_cv_build+set}" = set; then
  2442. echo $ECHO_N "(cached) $ECHO_C" >&6
  2443. else
  2444. ac_build_alias=$build_alias
  2445. test "x$ac_build_alias" = x &&
  2446. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2447. test "x$ac_build_alias" = x &&
  2448. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2449. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2450. { (exit 1); exit 1; }; }
  2451. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2452. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2453. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2454. { (exit 1); exit 1; }; }
  2455. fi
  2456. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2457. echo "${ECHO_T}$ac_cv_build" >&6; }
  2458. case $ac_cv_build in
  2459. *-*-*) ;;
  2460. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2461. echo "$as_me: error: invalid value of canonical build" >&2;}
  2462. { (exit 1); exit 1; }; };;
  2463. esac
  2464. build=$ac_cv_build
  2465. ac_save_IFS=$IFS; IFS='-'
  2466. set x $ac_cv_build
  2467. shift
  2468. build_cpu=$1
  2469. build_vendor=$2
  2470. shift; shift
  2471. # Remember, the first character of IFS is used to create $*,
  2472. # except with old shells:
  2473. build_os=$*
  2474. IFS=$ac_save_IFS
  2475. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2476. { echo "$as_me:$LINENO: checking host system type" >&5
  2477. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  2478. if test "${ac_cv_host+set}" = set; then
  2479. echo $ECHO_N "(cached) $ECHO_C" >&6
  2480. else
  2481. if test "x$host_alias" = x; then
  2482. ac_cv_host=$ac_cv_build
  2483. else
  2484. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2485. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2486. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2487. { (exit 1); exit 1; }; }
  2488. fi
  2489. fi
  2490. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2491. echo "${ECHO_T}$ac_cv_host" >&6; }
  2492. case $ac_cv_host in
  2493. *-*-*) ;;
  2494. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2495. echo "$as_me: error: invalid value of canonical host" >&2;}
  2496. { (exit 1); exit 1; }; };;
  2497. esac
  2498. host=$ac_cv_host
  2499. ac_save_IFS=$IFS; IFS='-'
  2500. set x $ac_cv_host
  2501. shift
  2502. host_cpu=$1
  2503. host_vendor=$2
  2504. shift; shift
  2505. # Remember, the first character of IFS is used to create $*,
  2506. # except with old shells:
  2507. host_os=$*
  2508. IFS=$ac_save_IFS
  2509. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2510. ac_ext=cpp
  2511. ac_cpp='$CXXCPP $CPPFLAGS'
  2512. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2513. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2514. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2515. if test -z "$CXX"; then
  2516. if test -n "$CCC"; then
  2517. CXX=$CCC
  2518. else
  2519. if test -n "$ac_tool_prefix"; then
  2520. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2521. do
  2522. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2523. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2524. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2525. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2526. if test "${ac_cv_prog_CXX+set}" = set; then
  2527. echo $ECHO_N "(cached) $ECHO_C" >&6
  2528. else
  2529. if test -n "$CXX"; then
  2530. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2531. else
  2532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2533. for as_dir in $PATH
  2534. do
  2535. IFS=$as_save_IFS
  2536. test -z "$as_dir" && as_dir=.
  2537. for ac_exec_ext in '' $ac_executable_extensions; do
  2538. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2539. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2540. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2541. break 2
  2542. fi
  2543. done
  2544. done
  2545. IFS=$as_save_IFS
  2546. fi
  2547. fi
  2548. CXX=$ac_cv_prog_CXX
  2549. if test -n "$CXX"; then
  2550. { echo "$as_me:$LINENO: result: $CXX" >&5
  2551. echo "${ECHO_T}$CXX" >&6; }
  2552. else
  2553. { echo "$as_me:$LINENO: result: no" >&5
  2554. echo "${ECHO_T}no" >&6; }
  2555. fi
  2556. test -n "$CXX" && break
  2557. done
  2558. fi
  2559. if test -z "$CXX"; then
  2560. ac_ct_CXX=$CXX
  2561. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2562. do
  2563. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2564. set dummy $ac_prog; ac_word=$2
  2565. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2566. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2567. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2568. echo $ECHO_N "(cached) $ECHO_C" >&6
  2569. else
  2570. if test -n "$ac_ct_CXX"; then
  2571. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2572. else
  2573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2574. for as_dir in $PATH
  2575. do
  2576. IFS=$as_save_IFS
  2577. test -z "$as_dir" && as_dir=.
  2578. for ac_exec_ext in '' $ac_executable_extensions; do
  2579. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2580. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2581. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2582. break 2
  2583. fi
  2584. done
  2585. done
  2586. IFS=$as_save_IFS
  2587. fi
  2588. fi
  2589. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2590. if test -n "$ac_ct_CXX"; then
  2591. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2592. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2593. else
  2594. { echo "$as_me:$LINENO: result: no" >&5
  2595. echo "${ECHO_T}no" >&6; }
  2596. fi
  2597. test -n "$ac_ct_CXX" && break
  2598. done
  2599. if test "x$ac_ct_CXX" = x; then
  2600. CXX="g++"
  2601. else
  2602. case $cross_compiling:$ac_tool_warned in
  2603. yes:)
  2604. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2605. whose name does not start with the host triplet. If you think this
  2606. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2607. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2608. whose name does not start with the host triplet. If you think this
  2609. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2610. ac_tool_warned=yes ;;
  2611. esac
  2612. CXX=$ac_ct_CXX
  2613. fi
  2614. fi
  2615. fi
  2616. fi
  2617. # Provide some information about the compiler.
  2618. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2619. ac_compiler=`set X $ac_compile; echo $2`
  2620. { (ac_try="$ac_compiler --version >&5"
  2621. case "(($ac_try" in
  2622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2623. *) ac_try_echo=$ac_try;;
  2624. esac
  2625. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2626. (eval "$ac_compiler --version >&5") 2>&5
  2627. ac_status=$?
  2628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2629. (exit $ac_status); }
  2630. { (ac_try="$ac_compiler -v >&5"
  2631. case "(($ac_try" in
  2632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2633. *) ac_try_echo=$ac_try;;
  2634. esac
  2635. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2636. (eval "$ac_compiler -v >&5") 2>&5
  2637. ac_status=$?
  2638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2639. (exit $ac_status); }
  2640. { (ac_try="$ac_compiler -V >&5"
  2641. case "(($ac_try" in
  2642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2643. *) ac_try_echo=$ac_try;;
  2644. esac
  2645. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2646. (eval "$ac_compiler -V >&5") 2>&5
  2647. ac_status=$?
  2648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2649. (exit $ac_status); }
  2650. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2651. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2652. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2653. echo $ECHO_N "(cached) $ECHO_C" >&6
  2654. else
  2655. cat >conftest.$ac_ext <<_ACEOF
  2656. /* confdefs.h. */
  2657. _ACEOF
  2658. cat confdefs.h >>conftest.$ac_ext
  2659. cat >>conftest.$ac_ext <<_ACEOF
  2660. /* end confdefs.h. */
  2661. int
  2662. main ()
  2663. {
  2664. #ifndef __GNUC__
  2665. choke me
  2666. #endif
  2667. ;
  2668. return 0;
  2669. }
  2670. _ACEOF
  2671. rm -f conftest.$ac_objext
  2672. if { (ac_try="$ac_compile"
  2673. case "(($ac_try" in
  2674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2675. *) ac_try_echo=$ac_try;;
  2676. esac
  2677. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2678. (eval "$ac_compile") 2>conftest.er1
  2679. ac_status=$?
  2680. grep -v '^ *+' conftest.er1 >conftest.err
  2681. rm -f conftest.er1
  2682. cat conftest.err >&5
  2683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2684. (exit $ac_status); } && {
  2685. test -z "$ac_cxx_werror_flag" ||
  2686. test ! -s conftest.err
  2687. } && test -s conftest.$ac_objext; then
  2688. ac_compiler_gnu=yes
  2689. else
  2690. echo "$as_me: failed program was:" >&5
  2691. sed 's/^/| /' conftest.$ac_ext >&5
  2692. ac_compiler_gnu=no
  2693. fi
  2694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2695. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2696. fi
  2697. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2698. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2699. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2700. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2701. ac_save_CXXFLAGS=$CXXFLAGS
  2702. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2703. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2704. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2705. echo $ECHO_N "(cached) $ECHO_C" >&6
  2706. else
  2707. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2708. ac_cxx_werror_flag=yes
  2709. ac_cv_prog_cxx_g=no
  2710. CXXFLAGS="-g"
  2711. cat >conftest.$ac_ext <<_ACEOF
  2712. /* confdefs.h. */
  2713. _ACEOF
  2714. cat confdefs.h >>conftest.$ac_ext
  2715. cat >>conftest.$ac_ext <<_ACEOF
  2716. /* end confdefs.h. */
  2717. int
  2718. main ()
  2719. {
  2720. ;
  2721. return 0;
  2722. }
  2723. _ACEOF
  2724. rm -f conftest.$ac_objext
  2725. if { (ac_try="$ac_compile"
  2726. case "(($ac_try" in
  2727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2728. *) ac_try_echo=$ac_try;;
  2729. esac
  2730. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2731. (eval "$ac_compile") 2>conftest.er1
  2732. ac_status=$?
  2733. grep -v '^ *+' conftest.er1 >conftest.err
  2734. rm -f conftest.er1
  2735. cat conftest.err >&5
  2736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2737. (exit $ac_status); } && {
  2738. test -z "$ac_cxx_werror_flag" ||
  2739. test ! -s conftest.err
  2740. } && test -s conftest.$ac_objext; then
  2741. ac_cv_prog_cxx_g=yes
  2742. else
  2743. echo "$as_me: failed program was:" >&5
  2744. sed 's/^/| /' conftest.$ac_ext >&5
  2745. CXXFLAGS=""
  2746. cat >conftest.$ac_ext <<_ACEOF
  2747. /* confdefs.h. */
  2748. _ACEOF
  2749. cat confdefs.h >>conftest.$ac_ext
  2750. cat >>conftest.$ac_ext <<_ACEOF
  2751. /* end confdefs.h. */
  2752. int
  2753. main ()
  2754. {
  2755. ;
  2756. return 0;
  2757. }
  2758. _ACEOF
  2759. rm -f conftest.$ac_objext
  2760. if { (ac_try="$ac_compile"
  2761. case "(($ac_try" in
  2762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2763. *) ac_try_echo=$ac_try;;
  2764. esac
  2765. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2766. (eval "$ac_compile") 2>conftest.er1
  2767. ac_status=$?
  2768. grep -v '^ *+' conftest.er1 >conftest.err
  2769. rm -f conftest.er1
  2770. cat conftest.err >&5
  2771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2772. (exit $ac_status); } && {
  2773. test -z "$ac_cxx_werror_flag" ||
  2774. test ! -s conftest.err
  2775. } && test -s conftest.$ac_objext; then
  2776. :
  2777. else
  2778. echo "$as_me: failed program was:" >&5
  2779. sed 's/^/| /' conftest.$ac_ext >&5
  2780. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2781. CXXFLAGS="-g"
  2782. cat >conftest.$ac_ext <<_ACEOF
  2783. /* confdefs.h. */
  2784. _ACEOF
  2785. cat confdefs.h >>conftest.$ac_ext
  2786. cat >>conftest.$ac_ext <<_ACEOF
  2787. /* end confdefs.h. */
  2788. int
  2789. main ()
  2790. {
  2791. ;
  2792. return 0;
  2793. }
  2794. _ACEOF
  2795. rm -f conftest.$ac_objext
  2796. if { (ac_try="$ac_compile"
  2797. case "(($ac_try" in
  2798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2799. *) ac_try_echo=$ac_try;;
  2800. esac
  2801. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2802. (eval "$ac_compile") 2>conftest.er1
  2803. ac_status=$?
  2804. grep -v '^ *+' conftest.er1 >conftest.err
  2805. rm -f conftest.er1
  2806. cat conftest.err >&5
  2807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2808. (exit $ac_status); } && {
  2809. test -z "$ac_cxx_werror_flag" ||
  2810. test ! -s conftest.err
  2811. } && test -s conftest.$ac_objext; then
  2812. ac_cv_prog_cxx_g=yes
  2813. else
  2814. echo "$as_me: failed program was:" >&5
  2815. sed 's/^/| /' conftest.$ac_ext >&5
  2816. fi
  2817. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2818. fi
  2819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2820. fi
  2821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2822. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2823. fi
  2824. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2825. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2826. if test "$ac_test_CXXFLAGS" = set; then
  2827. CXXFLAGS=$ac_save_CXXFLAGS
  2828. elif test $ac_cv_prog_cxx_g = yes; then
  2829. if test "$GXX" = yes; then
  2830. CXXFLAGS="-g -O2"
  2831. else
  2832. CXXFLAGS="-g"
  2833. fi
  2834. else
  2835. if test "$GXX" = yes; then
  2836. CXXFLAGS="-O2"
  2837. else
  2838. CXXFLAGS=
  2839. fi
  2840. fi
  2841. ac_ext=c
  2842. ac_cpp='$CPP $CPPFLAGS'
  2843. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2844. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2845. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2846. ac_ext=cpp
  2847. ac_cpp='$CXXCPP $CPPFLAGS'
  2848. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2849. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2850. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2851. if test -n "$ac_tool_prefix"; then
  2852. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  2853. set dummy ${ac_tool_prefix}ar; ac_word=$2
  2854. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2855. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2856. if test "${ac_cv_prog_AR+set}" = set; then
  2857. echo $ECHO_N "(cached) $ECHO_C" >&6
  2858. else
  2859. if test -n "$AR"; then
  2860. ac_cv_prog_AR="$AR" # Let the user override the test.
  2861. else
  2862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2863. for as_dir in $PATH
  2864. do
  2865. IFS=$as_save_IFS
  2866. test -z "$as_dir" && as_dir=.
  2867. for ac_exec_ext in '' $ac_executable_extensions; do
  2868. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2869. ac_cv_prog_AR="${ac_tool_prefix}ar"
  2870. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2871. break 2
  2872. fi
  2873. done
  2874. done
  2875. IFS=$as_save_IFS
  2876. fi
  2877. fi
  2878. AR=$ac_cv_prog_AR
  2879. if test -n "$AR"; then
  2880. { echo "$as_me:$LINENO: result: $AR" >&5
  2881. echo "${ECHO_T}$AR" >&6; }
  2882. else
  2883. { echo "$as_me:$LINENO: result: no" >&5
  2884. echo "${ECHO_T}no" >&6; }
  2885. fi
  2886. fi
  2887. if test -z "$ac_cv_prog_AR"; then
  2888. ac_ct_AR=$AR
  2889. # Extract the first word of "ar", so it can be a program name with args.
  2890. set dummy ar; ac_word=$2
  2891. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2892. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2893. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  2894. echo $ECHO_N "(cached) $ECHO_C" >&6
  2895. else
  2896. if test -n "$ac_ct_AR"; then
  2897. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  2898. else
  2899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2900. for as_dir in $PATH
  2901. do
  2902. IFS=$as_save_IFS
  2903. test -z "$as_dir" && as_dir=.
  2904. for ac_exec_ext in '' $ac_executable_extensions; do
  2905. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2906. ac_cv_prog_ac_ct_AR="ar"
  2907. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2908. break 2
  2909. fi
  2910. done
  2911. done
  2912. IFS=$as_save_IFS
  2913. fi
  2914. fi
  2915. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  2916. if test -n "$ac_ct_AR"; then
  2917. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  2918. echo "${ECHO_T}$ac_ct_AR" >&6; }
  2919. else
  2920. { echo "$as_me:$LINENO: result: no" >&5
  2921. echo "${ECHO_T}no" >&6; }
  2922. fi
  2923. if test "x$ac_ct_AR" = x; then
  2924. AR=":"
  2925. else
  2926. case $cross_compiling:$ac_tool_warned in
  2927. yes:)
  2928. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2929. whose name does not start with the host triplet. If you think this
  2930. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2931. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2932. whose name does not start with the host triplet. If you think this
  2933. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2934. ac_tool_warned=yes ;;
  2935. esac
  2936. AR=$ac_ct_AR
  2937. fi
  2938. else
  2939. AR="$ac_cv_prog_AR"
  2940. fi
  2941. if test "$AR" = ":"; then
  2942. { { echo "$as_me:$LINENO: error: failed: Sorry I could not find ar in the path" >&5
  2943. echo "$as_me: error: failed: Sorry I could not find ar in the path" >&2;}
  2944. { (exit 1); exit 1; }; }
  2945. fi
  2946. { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
  2947. echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
  2948. if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
  2949. echo $ECHO_N "(cached) $ECHO_C" >&6
  2950. else
  2951. ac_check_lib_save_LIBS=$LIBS
  2952. LIBS="-lpthread $LIBS"
  2953. cat >conftest.$ac_ext <<_ACEOF
  2954. /* confdefs.h. */
  2955. _ACEOF
  2956. cat confdefs.h >>conftest.$ac_ext
  2957. cat >>conftest.$ac_ext <<_ACEOF
  2958. /* end confdefs.h. */
  2959. /* Override any GCC internal prototype to avoid an error.
  2960. Use char because int might match the return type of a GCC
  2961. builtin and then its argument prototype would still apply. */
  2962. #ifdef __cplusplus
  2963. extern "C"
  2964. #endif
  2965. char pthread_create ();
  2966. int
  2967. main ()
  2968. {
  2969. return pthread_create ();
  2970. ;
  2971. return 0;
  2972. }
  2973. _ACEOF
  2974. rm -f conftest.$ac_objext conftest$ac_exeext
  2975. if { (ac_try="$ac_link"
  2976. case "(($ac_try" in
  2977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2978. *) ac_try_echo=$ac_try;;
  2979. esac
  2980. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2981. (eval "$ac_link") 2>conftest.er1
  2982. ac_status=$?
  2983. grep -v '^ *+' conftest.er1 >conftest.err
  2984. rm -f conftest.er1
  2985. cat conftest.err >&5
  2986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2987. (exit $ac_status); } && {
  2988. test -z "$ac_cxx_werror_flag" ||
  2989. test ! -s conftest.err
  2990. } && test -s conftest$ac_exeext &&
  2991. $as_test_x conftest$ac_exeext; then
  2992. ac_cv_lib_pthread_pthread_create=yes
  2993. else
  2994. echo "$as_me: failed program was:" >&5
  2995. sed 's/^/| /' conftest.$ac_ext >&5
  2996. ac_cv_lib_pthread_pthread_create=no
  2997. fi
  2998. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2999. conftest$ac_exeext conftest.$ac_ext
  3000. LIBS=$ac_check_lib_save_LIBS
  3001. fi
  3002. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
  3003. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
  3004. if test $ac_cv_lib_pthread_pthread_create = yes; then
  3005. cat >>confdefs.h <<\_ACEOF
  3006. #define HAVE_PTHREAD 1
  3007. _ACEOF
  3008. PTHREADLIB="-lpthread"
  3009. fi
  3010. { echo "$as_me:$LINENO: checking system architecture" >&5
  3011. echo $ECHO_N "checking system architecture... $ECHO_C" >&6; }
  3012. archset="`awk '$1 == "'$host_cpu'" { print $2 }' $srcdir/buildlib/archtable`"
  3013. if test "x$archset" = "x"; then
  3014. { { echo "$as_me:$LINENO: error: failed: use --host=" >&5
  3015. echo "$as_me: error: failed: use --host=" >&2;}
  3016. { (exit 1); exit 1; }; }
  3017. fi
  3018. { echo "$as_me:$LINENO: result: $archset" >&5
  3019. echo "${ECHO_T}$archset" >&6; }
  3020. cat >>confdefs.h <<_ACEOF
  3021. #define ARCHITECTURE "$archset"
  3022. _ACEOF
  3023. { echo "$as_me:$LINENO: checking for C9x integer types" >&5
  3024. echo $ECHO_N "checking for C9x integer types... $ECHO_C" >&6; }
  3025. if test "${c9x_ints+set}" = set; then
  3026. echo $ECHO_N "(cached) $ECHO_C" >&6
  3027. else
  3028. cat >conftest.$ac_ext <<_ACEOF
  3029. /* confdefs.h. */
  3030. _ACEOF
  3031. cat confdefs.h >>conftest.$ac_ext
  3032. cat >>conftest.$ac_ext <<_ACEOF
  3033. /* end confdefs.h. */
  3034. #include <inttypes.h>
  3035. int
  3036. main ()
  3037. {
  3038. uint8_t Foo1;uint16_t Foo2;uint32_t Foo3;uint64_t Foo
  3039. ;
  3040. return 0;
  3041. }
  3042. _ACEOF
  3043. rm -f conftest.$ac_objext
  3044. if { (ac_try="$ac_compile"
  3045. case "(($ac_try" in
  3046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3047. *) ac_try_echo=$ac_try;;
  3048. esac
  3049. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3050. (eval "$ac_compile") 2>conftest.er1
  3051. ac_status=$?
  3052. grep -v '^ *+' conftest.er1 >conftest.err
  3053. rm -f conftest.er1
  3054. cat conftest.err >&5
  3055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3056. (exit $ac_status); } && {
  3057. test -z "$ac_cxx_werror_flag" ||
  3058. test ! -s conftest.err
  3059. } && test -s conftest.$ac_objext; then
  3060. c9x_ints=yes
  3061. else
  3062. echo "$as_me: failed program was:" >&5
  3063. sed 's/^/| /' conftest.$ac_ext >&5
  3064. c9x_ints=no
  3065. fi
  3066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3067. fi
  3068. { echo "$as_me:$LINENO: result: $c9x_ints" >&5
  3069. echo "${ECHO_T}$c9x_ints" >&6; }
  3070. if archline="`sed -ne 's/^'$archset':[ ]\+\(.*\)/\1/gp' $srcdir/buildlib/sizetable`"; then
  3071. set $archline
  3072. if test "$1" = "little"; then
  3073. ac_cv_c_bigendian=no
  3074. else
  3075. ac_cv_c_bigendian=yes
  3076. fi
  3077. size_char=$2
  3078. size_int=$3
  3079. size_short=$4
  3080. size_long=$5
  3081. fi
  3082. if test "$cross_compiling" = "yes" -a "$archline" = ""; then
  3083. { { echo "$as_me:$LINENO: error: When cross compiling" >&5
  3084. echo "$as_me: error: When cross compiling" >&2;}
  3085. { (exit architecture must be present in sizetable); exit architecture must be present in sizetable; }; }
  3086. fi
  3087. ac_ext=cpp
  3088. ac_cpp='$CXXCPP $CPPFLAGS'
  3089. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3090. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3091. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3092. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  3093. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  3094. if test -z "$CXXCPP"; then
  3095. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  3096. echo $ECHO_N "(cached) $ECHO_C" >&6
  3097. else
  3098. # Double quotes because CXXCPP needs to be expanded
  3099. for CXXCPP in "$CXX -E" "/lib/cpp"
  3100. do
  3101. ac_preproc_ok=false
  3102. for ac_cxx_preproc_warn_flag in '' yes
  3103. do
  3104. # Use a header file that comes with gcc, so configuring glibc
  3105. # with a fresh cross-compiler works.
  3106. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3107. # <limits.h> exists even on freestanding compilers.
  3108. # On the NeXT, cc -E runs the code through the compiler's parser,
  3109. # not just through cpp. "Syntax error" is here to catch this case.
  3110. cat >conftest.$ac_ext <<_ACEOF
  3111. /* confdefs.h. */
  3112. _ACEOF
  3113. cat confdefs.h >>conftest.$ac_ext
  3114. cat >>conftest.$ac_ext <<_ACEOF
  3115. /* end confdefs.h. */
  3116. #ifdef __STDC__
  3117. # include <limits.h>
  3118. #else
  3119. # include <assert.h>
  3120. #endif
  3121. Syntax error
  3122. _ACEOF
  3123. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3124. case "(($ac_try" in
  3125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3126. *) ac_try_echo=$ac_try;;
  3127. esac
  3128. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3129. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3130. ac_status=$?
  3131. grep -v '^ *+' conftest.er1 >conftest.err
  3132. rm -f conftest.er1
  3133. cat conftest.err >&5
  3134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3135. (exit $ac_status); } >/dev/null && {
  3136. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  3137. test ! -s conftest.err
  3138. }; then
  3139. :
  3140. else
  3141. echo "$as_me: failed program was:" >&5
  3142. sed 's/^/| /' conftest.$ac_ext >&5
  3143. # Broken: fails on valid input.
  3144. continue
  3145. fi
  3146. rm -f conftest.err conftest.$ac_ext
  3147. # OK, works on sane cases. Now check whether nonexistent headers
  3148. # can be detected and how.
  3149. cat >conftest.$ac_ext <<_ACEOF
  3150. /* confdefs.h. */
  3151. _ACEOF
  3152. cat confdefs.h >>conftest.$ac_ext
  3153. cat >>conftest.$ac_ext <<_ACEOF
  3154. /* end confdefs.h. */
  3155. #include <ac_nonexistent.h>
  3156. _ACEOF
  3157. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3158. case "(($ac_try" in
  3159. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3160. *) ac_try_echo=$ac_try;;
  3161. esac
  3162. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3163. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3164. ac_status=$?
  3165. grep -v '^ *+' conftest.er1 >conftest.err
  3166. rm -f conftest.er1
  3167. cat conftest.err >&5
  3168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3169. (exit $ac_status); } >/dev/null && {
  3170. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  3171. test ! -s conftest.err
  3172. }; then
  3173. # Broken: success on invalid input.
  3174. continue
  3175. else
  3176. echo "$as_me: failed program was:" >&5
  3177. sed 's/^/| /' conftest.$ac_ext >&5
  3178. # Passes both tests.
  3179. ac_preproc_ok=:
  3180. break
  3181. fi
  3182. rm -f conftest.err conftest.$ac_ext
  3183. done
  3184. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3185. rm -f conftest.err conftest.$ac_ext
  3186. if $ac_preproc_ok; then
  3187. break
  3188. fi
  3189. done
  3190. ac_cv_prog_CXXCPP=$CXXCPP
  3191. fi
  3192. CXXCPP=$ac_cv_prog_CXXCPP
  3193. else
  3194. ac_cv_prog_CXXCPP=$CXXCPP
  3195. fi
  3196. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  3197. echo "${ECHO_T}$CXXCPP" >&6; }
  3198. ac_preproc_ok=false
  3199. for ac_cxx_preproc_warn_flag in '' yes
  3200. do
  3201. # Use a header file that comes with gcc, so configuring glibc
  3202. # with a fresh cross-compiler works.
  3203. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3204. # <limits.h> exists even on freestanding compilers.
  3205. # On the NeXT, cc -E runs the code through the compiler's parser,
  3206. # not just through cpp. "Syntax error" is here to catch this case.
  3207. cat >conftest.$ac_ext <<_ACEOF
  3208. /* confdefs.h. */
  3209. _ACEOF
  3210. cat confdefs.h >>conftest.$ac_ext
  3211. cat >>conftest.$ac_ext <<_ACEOF
  3212. /* end confdefs.h. */
  3213. #ifdef __STDC__
  3214. # include <limits.h>
  3215. #else
  3216. # include <assert.h>
  3217. #endif
  3218. Syntax error
  3219. _ACEOF
  3220. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3221. case "(($ac_try" in
  3222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3223. *) ac_try_echo=$ac_try;;
  3224. esac
  3225. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3226. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3227. ac_status=$?
  3228. grep -v '^ *+' conftest.er1 >conftest.err
  3229. rm -f conftest.er1
  3230. cat conftest.err >&5
  3231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3232. (exit $ac_status); } >/dev/null && {
  3233. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  3234. test ! -s conftest.err
  3235. }; then
  3236. :
  3237. else
  3238. echo "$as_me: failed program was:" >&5
  3239. sed 's/^/| /' conftest.$ac_ext >&5
  3240. # Broken: fails on valid input.
  3241. continue
  3242. fi
  3243. rm -f conftest.err conftest.$ac_ext
  3244. # OK, works on sane cases. Now check whether nonexistent headers
  3245. # can be detected and how.
  3246. cat >conftest.$ac_ext <<_ACEOF
  3247. /* confdefs.h. */
  3248. _ACEOF
  3249. cat confdefs.h >>conftest.$ac_ext
  3250. cat >>conftest.$ac_ext <<_ACEOF
  3251. /* end confdefs.h. */
  3252. #include <ac_nonexistent.h>
  3253. _ACEOF
  3254. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3255. case "(($ac_try" in
  3256. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3257. *) ac_try_echo=$ac_try;;
  3258. esac
  3259. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3260. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3261. ac_status=$?
  3262. grep -v '^ *+' conftest.er1 >conftest.err
  3263. rm -f conftest.er1
  3264. cat conftest.err >&5
  3265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3266. (exit $ac_status); } >/dev/null && {
  3267. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  3268. test ! -s conftest.err
  3269. }; then
  3270. # Broken: success on invalid input.
  3271. continue
  3272. else
  3273. echo "$as_me: failed program was:" >&5
  3274. sed 's/^/| /' conftest.$ac_ext >&5
  3275. # Passes both tests.
  3276. ac_preproc_ok=:
  3277. break
  3278. fi
  3279. rm -f conftest.err conftest.$ac_ext
  3280. done
  3281. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3282. rm -f conftest.err conftest.$ac_ext
  3283. if $ac_preproc_ok; then
  3284. :
  3285. else
  3286. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  3287. See \`config.log' for more details." >&5
  3288. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  3289. See \`config.log' for more details." >&2;}
  3290. { (exit 1); exit 1; }; }
  3291. fi
  3292. ac_ext=cpp
  3293. ac_cpp='$CXXCPP $CPPFLAGS'
  3294. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3295. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3296. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3297. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3298. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3299. if test "${ac_cv_path_GREP+set}" = set; then
  3300. echo $ECHO_N "(cached) $ECHO_C" >&6
  3301. else
  3302. # Extract the first word of "grep ggrep" to use in msg output
  3303. if test -z "$GREP"; then
  3304. set dummy grep ggrep; ac_prog_name=$2
  3305. if test "${ac_cv_path_GREP+set}" = set; then
  3306. echo $ECHO_N "(cached) $ECHO_C" >&6
  3307. else
  3308. ac_path_GREP_found=false
  3309. # Loop through the user's path and test for each of PROGNAME-LIST
  3310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3311. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3312. do
  3313. IFS=$as_save_IFS
  3314. test -z "$as_dir" && as_dir=.
  3315. for ac_prog in grep ggrep; do
  3316. for ac_exec_ext in '' $ac_executable_extensions; do
  3317. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3318. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3319. # Check for GNU ac_path_GREP and select it if it is found.
  3320. # Check for GNU $ac_path_GREP
  3321. case `"$ac_path_GREP" --version 2>&1` in
  3322. *GNU*)
  3323. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3324. *)
  3325. ac_count=0
  3326. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3327. while :
  3328. do
  3329. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3330. mv "conftest.tmp" "conftest.in"
  3331. cp "conftest.in" "conftest.nl"
  3332. echo 'GREP' >> "conftest.nl"
  3333. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3334. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3335. ac_count=`expr $ac_count + 1`
  3336. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3337. # Best one so far, save it but keep looking for a better one
  3338. ac_cv_path_GREP="$ac_path_GREP"
  3339. ac_path_GREP_max=$ac_count
  3340. fi
  3341. # 10*(2^10) chars as input seems more than enough
  3342. test $ac_count -gt 10 && break
  3343. done
  3344. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3345. esac
  3346. $ac_path_GREP_found && break 3
  3347. done
  3348. done
  3349. done
  3350. IFS=$as_save_IFS
  3351. fi
  3352. GREP="$ac_cv_path_GREP"
  3353. if test -z "$GREP"; then
  3354. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3355. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3356. { (exit 1); exit 1; }; }
  3357. fi
  3358. else
  3359. ac_cv_path_GREP=$GREP
  3360. fi
  3361. fi
  3362. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3363. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3364. GREP="$ac_cv_path_GREP"
  3365. { echo "$as_me:$LINENO: checking for egrep" >&5
  3366. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3367. if test "${ac_cv_path_EGREP+set}" = set; then
  3368. echo $ECHO_N "(cached) $ECHO_C" >&6
  3369. else
  3370. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3371. then ac_cv_path_EGREP="$GREP -E"
  3372. else
  3373. # Extract the first word of "egrep" to use in msg output
  3374. if test -z "$EGREP"; then
  3375. set dummy egrep; ac_prog_name=$2
  3376. if test "${ac_cv_path_EGREP+set}" = set; then
  3377. echo $ECHO_N "(cached) $ECHO_C" >&6
  3378. else
  3379. ac_path_EGREP_found=false
  3380. # Loop through the user's path and test for each of PROGNAME-LIST
  3381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3382. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3383. do
  3384. IFS=$as_save_IFS
  3385. test -z "$as_dir" && as_dir=.
  3386. for ac_prog in egrep; do
  3387. for ac_exec_ext in '' $ac_executable_extensions; do
  3388. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3389. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3390. # Check for GNU ac_path_EGREP and select it if it is found.
  3391. # Check for GNU $ac_path_EGREP
  3392. case `"$ac_path_EGREP" --version 2>&1` in
  3393. *GNU*)
  3394. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3395. *)
  3396. ac_count=0
  3397. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3398. while :
  3399. do
  3400. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3401. mv "conftest.tmp" "conftest.in"
  3402. cp "conftest.in" "conftest.nl"
  3403. echo 'EGREP' >> "conftest.nl"
  3404. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3405. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3406. ac_count=`expr $ac_count + 1`
  3407. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3408. # Best one so far, save it but keep looking for a better one
  3409. ac_cv_path_EGREP="$ac_path_EGREP"
  3410. ac_path_EGREP_max=$ac_count
  3411. fi
  3412. # 10*(2^10) chars as input seems more than enough
  3413. test $ac_count -gt 10 && break
  3414. done
  3415. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3416. esac
  3417. $ac_path_EGREP_found && break 3
  3418. done
  3419. done
  3420. done
  3421. IFS=$as_save_IFS
  3422. fi
  3423. EGREP="$ac_cv_path_EGREP"
  3424. if test -z "$EGREP"; then
  3425. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3426. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3427. { (exit 1); exit 1; }; }
  3428. fi
  3429. else
  3430. ac_cv_path_EGREP=$EGREP
  3431. fi
  3432. fi
  3433. fi
  3434. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3435. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3436. EGREP="$ac_cv_path_EGREP"
  3437. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3438. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  3439. if test "${ac_cv_header_stdc+set}" = set; then
  3440. echo $ECHO_N "(cached) $ECHO_C" >&6
  3441. else
  3442. cat >conftest.$ac_ext <<_ACEOF
  3443. /* confdefs.h. */
  3444. _ACEOF
  3445. cat confdefs.h >>conftest.$ac_ext
  3446. cat >>conftest.$ac_ext <<_ACEOF
  3447. /* end confdefs.h. */
  3448. #include <stdlib.h>
  3449. #include <stdarg.h>
  3450. #include <string.h>
  3451. #include <float.h>
  3452. int
  3453. main ()
  3454. {
  3455. ;
  3456. return 0;
  3457. }
  3458. _ACEOF
  3459. rm -f conftest.$ac_objext
  3460. if { (ac_try="$ac_compile"
  3461. case "(($ac_try" in
  3462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3463. *) ac_try_echo=$ac_try;;
  3464. esac
  3465. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3466. (eval "$ac_compile") 2>conftest.er1
  3467. ac_status=$?
  3468. grep -v '^ *+' conftest.er1 >conftest.err
  3469. rm -f conftest.er1
  3470. cat conftest.err >&5
  3471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3472. (exit $ac_status); } && {
  3473. test -z "$ac_cxx_werror_flag" ||
  3474. test ! -s conftest.err
  3475. } && test -s conftest.$ac_objext; then
  3476. ac_cv_header_stdc=yes
  3477. else
  3478. echo "$as_me: failed program was:" >&5
  3479. sed 's/^/| /' conftest.$ac_ext >&5
  3480. ac_cv_header_stdc=no
  3481. fi
  3482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3483. if test $ac_cv_header_stdc = yes; then
  3484. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3485. cat >conftest.$ac_ext <<_ACEOF
  3486. /* confdefs.h. */
  3487. _ACEOF
  3488. cat confdefs.h >>conftest.$ac_ext
  3489. cat >>conftest.$ac_ext <<_ACEOF
  3490. /* end confdefs.h. */
  3491. #include <string.h>
  3492. _ACEOF
  3493. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3494. $EGREP "memchr" >/dev/null 2>&1; then
  3495. :
  3496. else
  3497. ac_cv_header_stdc=no
  3498. fi
  3499. rm -f conftest*
  3500. fi
  3501. if test $ac_cv_header_stdc = yes; then
  3502. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3503. cat >conftest.$ac_ext <<_ACEOF
  3504. /* confdefs.h. */
  3505. _ACEOF
  3506. cat confdefs.h >>conftest.$ac_ext
  3507. cat >>conftest.$ac_ext <<_ACEOF
  3508. /* end confdefs.h. */
  3509. #include <stdlib.h>
  3510. _ACEOF
  3511. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3512. $EGREP "free" >/dev/null 2>&1; then
  3513. :
  3514. else
  3515. ac_cv_header_stdc=no
  3516. fi
  3517. rm -f conftest*
  3518. fi
  3519. if test $ac_cv_header_stdc = yes; then
  3520. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3521. if test "$cross_compiling" = yes; then
  3522. :
  3523. else
  3524. cat >conftest.$ac_ext <<_ACEOF
  3525. /* confdefs.h. */
  3526. _ACEOF
  3527. cat confdefs.h >>conftest.$ac_ext
  3528. cat >>conftest.$ac_ext <<_ACEOF
  3529. /* end confdefs.h. */
  3530. #include <ctype.h>
  3531. #include <stdlib.h>
  3532. #if ((' ' & 0x0FF) == 0x020)
  3533. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3534. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3535. #else
  3536. # define ISLOWER(c) \
  3537. (('a' <= (c) && (c) <= 'i') \
  3538. || ('j' <= (c) && (c) <= 'r') \
  3539. || ('s' <= (c) && (c) <= 'z'))
  3540. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3541. #endif
  3542. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3543. int
  3544. main ()
  3545. {
  3546. int i;
  3547. for (i = 0; i < 256; i++)
  3548. if (XOR (islower (i), ISLOWER (i))
  3549. || toupper (i) != TOUPPER (i))
  3550. return 2;
  3551. return 0;
  3552. }
  3553. _ACEOF
  3554. rm -f conftest$ac_exeext
  3555. if { (ac_try="$ac_link"
  3556. case "(($ac_try" in
  3557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3558. *) ac_try_echo=$ac_try;;
  3559. esac
  3560. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3561. (eval "$ac_link") 2>&5
  3562. ac_status=$?
  3563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3564. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3565. { (case "(($ac_try" in
  3566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3567. *) ac_try_echo=$ac_try;;
  3568. esac
  3569. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3570. (eval "$ac_try") 2>&5
  3571. ac_status=$?
  3572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3573. (exit $ac_status); }; }; then
  3574. :
  3575. else
  3576. echo "$as_me: program exited with status $ac_status" >&5
  3577. echo "$as_me: failed program was:" >&5
  3578. sed 's/^/| /' conftest.$ac_ext >&5
  3579. ( exit $ac_status )
  3580. ac_cv_header_stdc=no
  3581. fi
  3582. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3583. fi
  3584. fi
  3585. fi
  3586. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3587. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  3588. if test $ac_cv_header_stdc = yes; then
  3589. cat >>confdefs.h <<\_ACEOF
  3590. #define STDC_HEADERS 1
  3591. _ACEOF
  3592. fi
  3593. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3594. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3595. inttypes.h stdint.h unistd.h
  3596. do
  3597. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3598. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3599. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3600. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3601. echo $ECHO_N "(cached) $ECHO_C" >&6
  3602. else
  3603. cat >conftest.$ac_ext <<_ACEOF
  3604. /* confdefs.h. */
  3605. _ACEOF
  3606. cat confdefs.h >>conftest.$ac_ext
  3607. cat >>conftest.$ac_ext <<_ACEOF
  3608. /* end confdefs.h. */
  3609. $ac_includes_default
  3610. #include <$ac_header>
  3611. _ACEOF
  3612. rm -f conftest.$ac_objext
  3613. if { (ac_try="$ac_compile"
  3614. case "(($ac_try" in
  3615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3616. *) ac_try_echo=$ac_try;;
  3617. esac
  3618. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3619. (eval "$ac_compile") 2>conftest.er1
  3620. ac_status=$?
  3621. grep -v '^ *+' conftest.er1 >conftest.err
  3622. rm -f conftest.er1
  3623. cat conftest.err >&5
  3624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3625. (exit $ac_status); } && {
  3626. test -z "$ac_cxx_werror_flag" ||
  3627. test ! -s conftest.err
  3628. } && test -s conftest.$ac_objext; then
  3629. eval "$as_ac_Header=yes"
  3630. else
  3631. echo "$as_me: failed program was:" >&5
  3632. sed 's/^/| /' conftest.$ac_ext >&5
  3633. eval "$as_ac_Header=no"
  3634. fi
  3635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3636. fi
  3637. ac_res=`eval echo '${'$as_ac_Header'}'`
  3638. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3639. echo "${ECHO_T}$ac_res" >&6; }
  3640. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3641. cat >>confdefs.h <<_ACEOF
  3642. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3643. _ACEOF
  3644. fi
  3645. done
  3646. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  3647. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  3648. if test "${ac_cv_c_bigendian+set}" = set; then
  3649. echo $ECHO_N "(cached) $ECHO_C" >&6
  3650. else
  3651. # See if sys/param.h defines the BYTE_ORDER macro.
  3652. cat >conftest.$ac_ext <<_ACEOF
  3653. /* confdefs.h. */
  3654. _ACEOF
  3655. cat confdefs.h >>conftest.$ac_ext
  3656. cat >>conftest.$ac_ext <<_ACEOF
  3657. /* end confdefs.h. */
  3658. #include <sys/types.h>
  3659. #include <sys/param.h>
  3660. int
  3661. main ()
  3662. {
  3663. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  3664. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  3665. bogus endian macros
  3666. #endif
  3667. ;
  3668. return 0;
  3669. }
  3670. _ACEOF
  3671. rm -f conftest.$ac_objext
  3672. if { (ac_try="$ac_compile"
  3673. case "(($ac_try" in
  3674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3675. *) ac_try_echo=$ac_try;;
  3676. esac
  3677. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3678. (eval "$ac_compile") 2>conftest.er1
  3679. ac_status=$?
  3680. grep -v '^ *+' conftest.er1 >conftest.err
  3681. rm -f conftest.er1
  3682. cat conftest.err >&5
  3683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3684. (exit $ac_status); } && {
  3685. test -z "$ac_cxx_werror_flag" ||
  3686. test ! -s conftest.err
  3687. } && test -s conftest.$ac_objext; then
  3688. # It does; now see whether it defined to BIG_ENDIAN or not.
  3689. cat >conftest.$ac_ext <<_ACEOF
  3690. /* confdefs.h. */
  3691. _ACEOF
  3692. cat confdefs.h >>conftest.$ac_ext
  3693. cat >>conftest.$ac_ext <<_ACEOF
  3694. /* end confdefs.h. */
  3695. #include <sys/types.h>
  3696. #include <sys/param.h>
  3697. int
  3698. main ()
  3699. {
  3700. #if BYTE_ORDER != BIG_ENDIAN
  3701. not big endian
  3702. #endif
  3703. ;
  3704. return 0;
  3705. }
  3706. _ACEOF
  3707. rm -f conftest.$ac_objext
  3708. if { (ac_try="$ac_compile"
  3709. case "(($ac_try" in
  3710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3711. *) ac_try_echo=$ac_try;;
  3712. esac
  3713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3714. (eval "$ac_compile") 2>conftest.er1
  3715. ac_status=$?
  3716. grep -v '^ *+' conftest.er1 >conftest.err
  3717. rm -f conftest.er1
  3718. cat conftest.err >&5
  3719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3720. (exit $ac_status); } && {
  3721. test -z "$ac_cxx_werror_flag" ||
  3722. test ! -s conftest.err
  3723. } && test -s conftest.$ac_objext; then
  3724. ac_cv_c_bigendian=yes
  3725. else
  3726. echo "$as_me: failed program was:" >&5
  3727. sed 's/^/| /' conftest.$ac_ext >&5
  3728. ac_cv_c_bigendian=no
  3729. fi
  3730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3731. else
  3732. echo "$as_me: failed program was:" >&5
  3733. sed 's/^/| /' conftest.$ac_ext >&5
  3734. # It does not; compile a test program.
  3735. if test "$cross_compiling" = yes; then
  3736. # try to guess the endianness by grepping values into an object file
  3737. ac_cv_c_bigendian=unknown
  3738. cat >conftest.$ac_ext <<_ACEOF
  3739. /* confdefs.h. */
  3740. _ACEOF
  3741. cat confdefs.h >>conftest.$ac_ext
  3742. cat >>conftest.$ac_ext <<_ACEOF
  3743. /* end confdefs.h. */
  3744. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  3745. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  3746. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  3747. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  3748. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  3749. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  3750. int
  3751. main ()
  3752. {
  3753. _ascii (); _ebcdic ();
  3754. ;
  3755. return 0;
  3756. }
  3757. _ACEOF
  3758. rm -f conftest.$ac_objext
  3759. if { (ac_try="$ac_compile"
  3760. case "(($ac_try" in
  3761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3762. *) ac_try_echo=$ac_try;;
  3763. esac
  3764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3765. (eval "$ac_compile") 2>conftest.er1
  3766. ac_status=$?
  3767. grep -v '^ *+' conftest.er1 >conftest.err
  3768. rm -f conftest.er1
  3769. cat conftest.err >&5
  3770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3771. (exit $ac_status); } && {
  3772. test -z "$ac_cxx_werror_flag" ||
  3773. test ! -s conftest.err
  3774. } && test -s conftest.$ac_objext; then
  3775. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  3776. ac_cv_c_bigendian=yes
  3777. fi
  3778. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  3779. if test "$ac_cv_c_bigendian" = unknown; then
  3780. ac_cv_c_bigendian=no
  3781. else
  3782. # finding both strings is unlikely to happen, but who knows?
  3783. ac_cv_c_bigendian=unknown
  3784. fi
  3785. fi
  3786. else
  3787. echo "$as_me: failed program was:" >&5
  3788. sed 's/^/| /' conftest.$ac_ext >&5
  3789. fi
  3790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3791. else
  3792. cat >conftest.$ac_ext <<_ACEOF
  3793. /* confdefs.h. */
  3794. _ACEOF
  3795. cat confdefs.h >>conftest.$ac_ext
  3796. cat >>conftest.$ac_ext <<_ACEOF
  3797. /* end confdefs.h. */
  3798. $ac_includes_default
  3799. int
  3800. main ()
  3801. {
  3802. /* Are we little or big endian? From Harbison&Steele. */
  3803. union
  3804. {
  3805. long int l;
  3806. char c[sizeof (long int)];
  3807. } u;
  3808. u.l = 1;
  3809. return u.c[sizeof (long int) - 1] == 1;
  3810. ;
  3811. return 0;
  3812. }
  3813. _ACEOF
  3814. rm -f conftest$ac_exeext
  3815. if { (ac_try="$ac_link"
  3816. case "(($ac_try" in
  3817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3818. *) ac_try_echo=$ac_try;;
  3819. esac
  3820. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3821. (eval "$ac_link") 2>&5
  3822. ac_status=$?
  3823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3824. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3825. { (case "(($ac_try" in
  3826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3827. *) ac_try_echo=$ac_try;;
  3828. esac
  3829. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3830. (eval "$ac_try") 2>&5
  3831. ac_status=$?
  3832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3833. (exit $ac_status); }; }; then
  3834. ac_cv_c_bigendian=no
  3835. else
  3836. echo "$as_me: program exited with status $ac_status" >&5
  3837. echo "$as_me: failed program was:" >&5
  3838. sed 's/^/| /' conftest.$ac_ext >&5
  3839. ( exit $ac_status )
  3840. ac_cv_c_bigendian=yes
  3841. fi
  3842. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3843. fi
  3844. fi
  3845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3846. fi
  3847. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  3848. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  3849. case $ac_cv_c_bigendian in
  3850. yes)
  3851. cat >>confdefs.h <<\_ACEOF
  3852. #define WORDS_BIGENDIAN 1
  3853. _ACEOF
  3854. ;;
  3855. no)
  3856. ;;
  3857. *)
  3858. { { echo "$as_me:$LINENO: error: unknown endianness
  3859. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  3860. echo "$as_me: error: unknown endianness
  3861. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  3862. { (exit 1); exit 1; }; } ;;
  3863. esac
  3864. HAVE_C9X=yes
  3865. if test x"$c9x_ints" = x"no"; then
  3866. { echo "$as_me:$LINENO: checking for char" >&5
  3867. echo $ECHO_N "checking for char... $ECHO_C" >&6; }
  3868. if test "${ac_cv_type_char+set}" = set; then
  3869. echo $ECHO_N "(cached) $ECHO_C" >&6
  3870. else
  3871. cat >conftest.$ac_ext <<_ACEOF
  3872. /* confdefs.h. */
  3873. _ACEOF
  3874. cat confdefs.h >>conftest.$ac_ext
  3875. cat >>conftest.$ac_ext <<_ACEOF
  3876. /* end confdefs.h. */
  3877. $ac_includes_default
  3878. typedef char ac__type_new_;
  3879. int
  3880. main ()
  3881. {
  3882. if ((ac__type_new_ *) 0)
  3883. return 0;
  3884. if (sizeof (ac__type_new_))
  3885. return 0;
  3886. ;
  3887. return 0;
  3888. }
  3889. _ACEOF
  3890. rm -f conftest.$ac_objext
  3891. if { (ac_try="$ac_compile"
  3892. case "(($ac_try" in
  3893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3894. *) ac_try_echo=$ac_try;;
  3895. esac
  3896. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3897. (eval "$ac_compile") 2>conftest.er1
  3898. ac_status=$?
  3899. grep -v '^ *+' conftest.er1 >conftest.err
  3900. rm -f conftest.er1
  3901. cat conftest.err >&5
  3902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3903. (exit $ac_status); } && {
  3904. test -z "$ac_cxx_werror_flag" ||
  3905. test ! -s conftest.err
  3906. } && test -s conftest.$ac_objext; then
  3907. ac_cv_type_char=yes
  3908. else
  3909. echo "$as_me: failed program was:" >&5
  3910. sed 's/^/| /' conftest.$ac_ext >&5
  3911. ac_cv_type_char=no
  3912. fi
  3913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3914. fi
  3915. { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
  3916. echo "${ECHO_T}$ac_cv_type_char" >&6; }
  3917. # The cast to long int works around a bug in the HP C Compiler
  3918. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3919. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3920. # This bug is HP SR number 8606223364.
  3921. { echo "$as_me:$LINENO: checking size of char" >&5
  3922. echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
  3923. if test "${ac_cv_sizeof_char+set}" = set; then
  3924. echo $ECHO_N "(cached) $ECHO_C" >&6
  3925. else
  3926. if test "$cross_compiling" = yes; then
  3927. # Depending upon the size, compute the lo and hi bounds.
  3928. cat >conftest.$ac_ext <<_ACEOF
  3929. /* confdefs.h. */
  3930. _ACEOF
  3931. cat confdefs.h >>conftest.$ac_ext
  3932. cat >>conftest.$ac_ext <<_ACEOF
  3933. /* end confdefs.h. */
  3934. $ac_includes_default
  3935. typedef char ac__type_sizeof_;
  3936. int
  3937. main ()
  3938. {
  3939. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  3940. test_array [0] = 0
  3941. ;
  3942. return 0;
  3943. }
  3944. _ACEOF
  3945. rm -f conftest.$ac_objext
  3946. if { (ac_try="$ac_compile"
  3947. case "(($ac_try" in
  3948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3949. *) ac_try_echo=$ac_try;;
  3950. esac
  3951. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3952. (eval "$ac_compile") 2>conftest.er1
  3953. ac_status=$?
  3954. grep -v '^ *+' conftest.er1 >conftest.err
  3955. rm -f conftest.er1
  3956. cat conftest.err >&5
  3957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3958. (exit $ac_status); } && {
  3959. test -z "$ac_cxx_werror_flag" ||
  3960. test ! -s conftest.err
  3961. } && test -s conftest.$ac_objext; then
  3962. ac_lo=0 ac_mid=0
  3963. while :; do
  3964. cat >conftest.$ac_ext <<_ACEOF
  3965. /* confdefs.h. */
  3966. _ACEOF
  3967. cat confdefs.h >>conftest.$ac_ext
  3968. cat >>conftest.$ac_ext <<_ACEOF
  3969. /* end confdefs.h. */
  3970. $ac_includes_default
  3971. typedef char ac__type_sizeof_;
  3972. int
  3973. main ()
  3974. {
  3975. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  3976. test_array [0] = 0
  3977. ;
  3978. return 0;
  3979. }
  3980. _ACEOF
  3981. rm -f conftest.$ac_objext
  3982. if { (ac_try="$ac_compile"
  3983. case "(($ac_try" in
  3984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3985. *) ac_try_echo=$ac_try;;
  3986. esac
  3987. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3988. (eval "$ac_compile") 2>conftest.er1
  3989. ac_status=$?
  3990. grep -v '^ *+' conftest.er1 >conftest.err
  3991. rm -f conftest.er1
  3992. cat conftest.err >&5
  3993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3994. (exit $ac_status); } && {
  3995. test -z "$ac_cxx_werror_flag" ||
  3996. test ! -s conftest.err
  3997. } && test -s conftest.$ac_objext; then
  3998. ac_hi=$ac_mid; break
  3999. else
  4000. echo "$as_me: failed program was:" >&5
  4001. sed 's/^/| /' conftest.$ac_ext >&5
  4002. ac_lo=`expr $ac_mid + 1`
  4003. if test $ac_lo -le $ac_mid; then
  4004. ac_lo= ac_hi=
  4005. break
  4006. fi
  4007. ac_mid=`expr 2 '*' $ac_mid + 1`
  4008. fi
  4009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4010. done
  4011. else
  4012. echo "$as_me: failed program was:" >&5
  4013. sed 's/^/| /' conftest.$ac_ext >&5
  4014. cat >conftest.$ac_ext <<_ACEOF
  4015. /* confdefs.h. */
  4016. _ACEOF
  4017. cat confdefs.h >>conftest.$ac_ext
  4018. cat >>conftest.$ac_ext <<_ACEOF
  4019. /* end confdefs.h. */
  4020. $ac_includes_default
  4021. typedef char ac__type_sizeof_;
  4022. int
  4023. main ()
  4024. {
  4025. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  4026. test_array [0] = 0
  4027. ;
  4028. return 0;
  4029. }
  4030. _ACEOF
  4031. rm -f conftest.$ac_objext
  4032. if { (ac_try="$ac_compile"
  4033. case "(($ac_try" in
  4034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4035. *) ac_try_echo=$ac_try;;
  4036. esac
  4037. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4038. (eval "$ac_compile") 2>conftest.er1
  4039. ac_status=$?
  4040. grep -v '^ *+' conftest.er1 >conftest.err
  4041. rm -f conftest.er1
  4042. cat conftest.err >&5
  4043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4044. (exit $ac_status); } && {
  4045. test -z "$ac_cxx_werror_flag" ||
  4046. test ! -s conftest.err
  4047. } && test -s conftest.$ac_objext; then
  4048. ac_hi=-1 ac_mid=-1
  4049. while :; do
  4050. cat >conftest.$ac_ext <<_ACEOF
  4051. /* confdefs.h. */
  4052. _ACEOF
  4053. cat confdefs.h >>conftest.$ac_ext
  4054. cat >>conftest.$ac_ext <<_ACEOF
  4055. /* end confdefs.h. */
  4056. $ac_includes_default
  4057. typedef char ac__type_sizeof_;
  4058. int
  4059. main ()
  4060. {
  4061. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  4062. test_array [0] = 0
  4063. ;
  4064. return 0;
  4065. }
  4066. _ACEOF
  4067. rm -f conftest.$ac_objext
  4068. if { (ac_try="$ac_compile"
  4069. case "(($ac_try" in
  4070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4071. *) ac_try_echo=$ac_try;;
  4072. esac
  4073. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4074. (eval "$ac_compile") 2>conftest.er1
  4075. ac_status=$?
  4076. grep -v '^ *+' conftest.er1 >conftest.err
  4077. rm -f conftest.er1
  4078. cat conftest.err >&5
  4079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4080. (exit $ac_status); } && {
  4081. test -z "$ac_cxx_werror_flag" ||
  4082. test ! -s conftest.err
  4083. } && test -s conftest.$ac_objext; then
  4084. ac_lo=$ac_mid; break
  4085. else
  4086. echo "$as_me: failed program was:" >&5
  4087. sed 's/^/| /' conftest.$ac_ext >&5
  4088. ac_hi=`expr '(' $ac_mid ')' - 1`
  4089. if test $ac_mid -le $ac_hi; then
  4090. ac_lo= ac_hi=
  4091. break
  4092. fi
  4093. ac_mid=`expr 2 '*' $ac_mid`
  4094. fi
  4095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4096. done
  4097. else
  4098. echo "$as_me: failed program was:" >&5
  4099. sed 's/^/| /' conftest.$ac_ext >&5
  4100. ac_lo= ac_hi=
  4101. fi
  4102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4103. fi
  4104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4105. # Binary search between lo and hi bounds.
  4106. while test "x$ac_lo" != "x$ac_hi"; do
  4107. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  4108. cat >conftest.$ac_ext <<_ACEOF
  4109. /* confdefs.h. */
  4110. _ACEOF
  4111. cat confdefs.h >>conftest.$ac_ext
  4112. cat >>conftest.$ac_ext <<_ACEOF
  4113. /* end confdefs.h. */
  4114. $ac_includes_default
  4115. typedef char ac__type_sizeof_;
  4116. int
  4117. main ()
  4118. {
  4119. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  4120. test_array [0] = 0
  4121. ;
  4122. return 0;
  4123. }
  4124. _ACEOF
  4125. rm -f conftest.$ac_objext
  4126. if { (ac_try="$ac_compile"
  4127. case "(($ac_try" in
  4128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4129. *) ac_try_echo=$ac_try;;
  4130. esac
  4131. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4132. (eval "$ac_compile") 2>conftest.er1
  4133. ac_status=$?
  4134. grep -v '^ *+' conftest.er1 >conftest.err
  4135. rm -f conftest.er1
  4136. cat conftest.err >&5
  4137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4138. (exit $ac_status); } && {
  4139. test -z "$ac_cxx_werror_flag" ||
  4140. test ! -s conftest.err
  4141. } && test -s conftest.$ac_objext; then
  4142. ac_hi=$ac_mid
  4143. else
  4144. echo "$as_me: failed program was:" >&5
  4145. sed 's/^/| /' conftest.$ac_ext >&5
  4146. ac_lo=`expr '(' $ac_mid ')' + 1`
  4147. fi
  4148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4149. done
  4150. case $ac_lo in
  4151. ?*) ac_cv_sizeof_char=$ac_lo;;
  4152. '') if test "$ac_cv_type_char" = yes; then
  4153. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
  4154. See \`config.log' for more details." >&5
  4155. echo "$as_me: error: cannot compute sizeof (char)
  4156. See \`config.log' for more details." >&2;}
  4157. { (exit 77); exit 77; }; }
  4158. else
  4159. ac_cv_sizeof_char=0
  4160. fi ;;
  4161. esac
  4162. else
  4163. cat >conftest.$ac_ext <<_ACEOF
  4164. /* confdefs.h. */
  4165. _ACEOF
  4166. cat confdefs.h >>conftest.$ac_ext
  4167. cat >>conftest.$ac_ext <<_ACEOF
  4168. /* end confdefs.h. */
  4169. $ac_includes_default
  4170. typedef char ac__type_sizeof_;
  4171. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  4172. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  4173. #include <stdio.h>
  4174. #include <stdlib.h>
  4175. int
  4176. main ()
  4177. {
  4178. FILE *f = fopen ("conftest.val", "w");
  4179. if (! f)
  4180. return 1;
  4181. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  4182. {
  4183. long int i = longval ();
  4184. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  4185. return 1;
  4186. fprintf (f, "%ld\n", i);
  4187. }
  4188. else
  4189. {
  4190. unsigned long int i = ulongval ();
  4191. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  4192. return 1;
  4193. fprintf (f, "%lu\n", i);
  4194. }
  4195. return ferror (f) || fclose (f) != 0;
  4196. ;
  4197. return 0;
  4198. }
  4199. _ACEOF
  4200. rm -f conftest$ac_exeext
  4201. if { (ac_try="$ac_link"
  4202. case "(($ac_try" in
  4203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4204. *) ac_try_echo=$ac_try;;
  4205. esac
  4206. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4207. (eval "$ac_link") 2>&5
  4208. ac_status=$?
  4209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4210. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4211. { (case "(($ac_try" in
  4212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4213. *) ac_try_echo=$ac_try;;
  4214. esac
  4215. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4216. (eval "$ac_try") 2>&5
  4217. ac_status=$?
  4218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4219. (exit $ac_status); }; }; then
  4220. ac_cv_sizeof_char=`cat conftest.val`
  4221. else
  4222. echo "$as_me: program exited with status $ac_status" >&5
  4223. echo "$as_me: failed program was:" >&5
  4224. sed 's/^/| /' conftest.$ac_ext >&5
  4225. ( exit $ac_status )
  4226. if test "$ac_cv_type_char" = yes; then
  4227. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
  4228. See \`config.log' for more details." >&5
  4229. echo "$as_me: error: cannot compute sizeof (char)
  4230. See \`config.log' for more details." >&2;}
  4231. { (exit 77); exit 77; }; }
  4232. else
  4233. ac_cv_sizeof_char=0
  4234. fi
  4235. fi
  4236. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4237. fi
  4238. rm -f conftest.val
  4239. fi
  4240. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
  4241. echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
  4242. cat >>confdefs.h <<_ACEOF
  4243. #define SIZEOF_CHAR $ac_cv_sizeof_char
  4244. _ACEOF
  4245. { echo "$as_me:$LINENO: checking for int" >&5
  4246. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  4247. if test "${ac_cv_type_int+set}" = set; then
  4248. echo $ECHO_N "(cached) $ECHO_C" >&6
  4249. else
  4250. cat >conftest.$ac_ext <<_ACEOF
  4251. /* confdefs.h. */
  4252. _ACEOF
  4253. cat confdefs.h >>conftest.$ac_ext
  4254. cat >>conftest.$ac_ext <<_ACEOF
  4255. /* end confdefs.h. */
  4256. $ac_includes_default
  4257. typedef int ac__type_new_;
  4258. int
  4259. main ()
  4260. {
  4261. if ((ac__type_new_ *) 0)
  4262. return 0;
  4263. if (sizeof (ac__type_new_))
  4264. return 0;
  4265. ;
  4266. return 0;
  4267. }
  4268. _ACEOF
  4269. rm -f conftest.$ac_objext
  4270. if { (ac_try="$ac_compile"
  4271. case "(($ac_try" in
  4272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4273. *) ac_try_echo=$ac_try;;
  4274. esac
  4275. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4276. (eval "$ac_compile") 2>conftest.er1
  4277. ac_status=$?
  4278. grep -v '^ *+' conftest.er1 >conftest.err
  4279. rm -f conftest.er1
  4280. cat conftest.err >&5
  4281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4282. (exit $ac_status); } && {
  4283. test -z "$ac_cxx_werror_flag" ||
  4284. test ! -s conftest.err
  4285. } && test -s conftest.$ac_objext; then
  4286. ac_cv_type_int=yes
  4287. else
  4288. echo "$as_me: failed program was:" >&5
  4289. sed 's/^/| /' conftest.$ac_ext >&5
  4290. ac_cv_type_int=no
  4291. fi
  4292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4293. fi
  4294. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  4295. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  4296. # The cast to long int works around a bug in the HP C Compiler
  4297. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4298. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4299. # This bug is HP SR number 8606223364.
  4300. { echo "$as_me:$LINENO: checking size of int" >&5
  4301. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  4302. if test "${ac_cv_sizeof_int+set}" = set; then
  4303. echo $ECHO_N "(cached) $ECHO_C" >&6
  4304. else
  4305. if test "$cross_compiling" = yes; then
  4306. # Depending upon the size, compute the lo and hi bounds.
  4307. cat >conftest.$ac_ext <<_ACEOF
  4308. /* confdefs.h. */
  4309. _ACEOF
  4310. cat confdefs.h >>conftest.$ac_ext
  4311. cat >>conftest.$ac_ext <<_ACEOF
  4312. /* end confdefs.h. */
  4313. $ac_includes_default
  4314. typedef int ac__type_sizeof_;
  4315. int
  4316. main ()
  4317. {
  4318. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  4319. test_array [0] = 0
  4320. ;
  4321. return 0;
  4322. }
  4323. _ACEOF
  4324. rm -f conftest.$ac_objext
  4325. if { (ac_try="$ac_compile"
  4326. case "(($ac_try" in
  4327. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4328. *) ac_try_echo=$ac_try;;
  4329. esac
  4330. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4331. (eval "$ac_compile") 2>conftest.er1
  4332. ac_status=$?
  4333. grep -v '^ *+' conftest.er1 >conftest.err
  4334. rm -f conftest.er1
  4335. cat conftest.err >&5
  4336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4337. (exit $ac_status); } && {
  4338. test -z "$ac_cxx_werror_flag" ||
  4339. test ! -s conftest.err
  4340. } && test -s conftest.$ac_objext; then
  4341. ac_lo=0 ac_mid=0
  4342. while :; do
  4343. cat >conftest.$ac_ext <<_ACEOF
  4344. /* confdefs.h. */
  4345. _ACEOF
  4346. cat confdefs.h >>conftest.$ac_ext
  4347. cat >>conftest.$ac_ext <<_ACEOF
  4348. /* end confdefs.h. */
  4349. $ac_includes_default
  4350. typedef int ac__type_sizeof_;
  4351. int
  4352. main ()
  4353. {
  4354. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  4355. test_array [0] = 0
  4356. ;
  4357. return 0;
  4358. }
  4359. _ACEOF
  4360. rm -f conftest.$ac_objext
  4361. if { (ac_try="$ac_compile"
  4362. case "(($ac_try" in
  4363. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4364. *) ac_try_echo=$ac_try;;
  4365. esac
  4366. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4367. (eval "$ac_compile") 2>conftest.er1
  4368. ac_status=$?
  4369. grep -v '^ *+' conftest.er1 >conftest.err
  4370. rm -f conftest.er1
  4371. cat conftest.err >&5
  4372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4373. (exit $ac_status); } && {
  4374. test -z "$ac_cxx_werror_flag" ||
  4375. test ! -s conftest.err
  4376. } && test -s conftest.$ac_objext; then
  4377. ac_hi=$ac_mid; break
  4378. else
  4379. echo "$as_me: failed program was:" >&5
  4380. sed 's/^/| /' conftest.$ac_ext >&5
  4381. ac_lo=`expr $ac_mid + 1`
  4382. if test $ac_lo -le $ac_mid; then
  4383. ac_lo= ac_hi=
  4384. break
  4385. fi
  4386. ac_mid=`expr 2 '*' $ac_mid + 1`
  4387. fi
  4388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4389. done
  4390. else
  4391. echo "$as_me: failed program was:" >&5
  4392. sed 's/^/| /' conftest.$ac_ext >&5
  4393. cat >conftest.$ac_ext <<_ACEOF
  4394. /* confdefs.h. */
  4395. _ACEOF
  4396. cat confdefs.h >>conftest.$ac_ext
  4397. cat >>conftest.$ac_ext <<_ACEOF
  4398. /* end confdefs.h. */
  4399. $ac_includes_default
  4400. typedef int ac__type_sizeof_;
  4401. int
  4402. main ()
  4403. {
  4404. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  4405. test_array [0] = 0
  4406. ;
  4407. return 0;
  4408. }
  4409. _ACEOF
  4410. rm -f conftest.$ac_objext
  4411. if { (ac_try="$ac_compile"
  4412. case "(($ac_try" in
  4413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4414. *) ac_try_echo=$ac_try;;
  4415. esac
  4416. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4417. (eval "$ac_compile") 2>conftest.er1
  4418. ac_status=$?
  4419. grep -v '^ *+' conftest.er1 >conftest.err
  4420. rm -f conftest.er1
  4421. cat conftest.err >&5
  4422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4423. (exit $ac_status); } && {
  4424. test -z "$ac_cxx_werror_flag" ||
  4425. test ! -s conftest.err
  4426. } && test -s conftest.$ac_objext; then
  4427. ac_hi=-1 ac_mid=-1
  4428. while :; do
  4429. cat >conftest.$ac_ext <<_ACEOF
  4430. /* confdefs.h. */
  4431. _ACEOF
  4432. cat confdefs.h >>conftest.$ac_ext
  4433. cat >>conftest.$ac_ext <<_ACEOF
  4434. /* end confdefs.h. */
  4435. $ac_includes_default
  4436. typedef int ac__type_sizeof_;
  4437. int
  4438. main ()
  4439. {
  4440. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  4441. test_array [0] = 0
  4442. ;
  4443. return 0;
  4444. }
  4445. _ACEOF
  4446. rm -f conftest.$ac_objext
  4447. if { (ac_try="$ac_compile"
  4448. case "(($ac_try" in
  4449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4450. *) ac_try_echo=$ac_try;;
  4451. esac
  4452. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4453. (eval "$ac_compile") 2>conftest.er1
  4454. ac_status=$?
  4455. grep -v '^ *+' conftest.er1 >conftest.err
  4456. rm -f conftest.er1
  4457. cat conftest.err >&5
  4458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4459. (exit $ac_status); } && {
  4460. test -z "$ac_cxx_werror_flag" ||
  4461. test ! -s conftest.err
  4462. } && test -s conftest.$ac_objext; then
  4463. ac_lo=$ac_mid; break
  4464. else
  4465. echo "$as_me: failed program was:" >&5
  4466. sed 's/^/| /' conftest.$ac_ext >&5
  4467. ac_hi=`expr '(' $ac_mid ')' - 1`
  4468. if test $ac_mid -le $ac_hi; then
  4469. ac_lo= ac_hi=
  4470. break
  4471. fi
  4472. ac_mid=`expr 2 '*' $ac_mid`
  4473. fi
  4474. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4475. done
  4476. else
  4477. echo "$as_me: failed program was:" >&5
  4478. sed 's/^/| /' conftest.$ac_ext >&5
  4479. ac_lo= ac_hi=
  4480. fi
  4481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4482. fi
  4483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4484. # Binary search between lo and hi bounds.
  4485. while test "x$ac_lo" != "x$ac_hi"; do
  4486. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  4487. cat >conftest.$ac_ext <<_ACEOF
  4488. /* confdefs.h. */
  4489. _ACEOF
  4490. cat confdefs.h >>conftest.$ac_ext
  4491. cat >>conftest.$ac_ext <<_ACEOF
  4492. /* end confdefs.h. */
  4493. $ac_includes_default
  4494. typedef int ac__type_sizeof_;
  4495. int
  4496. main ()
  4497. {
  4498. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  4499. test_array [0] = 0
  4500. ;
  4501. return 0;
  4502. }
  4503. _ACEOF
  4504. rm -f conftest.$ac_objext
  4505. if { (ac_try="$ac_compile"
  4506. case "(($ac_try" in
  4507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4508. *) ac_try_echo=$ac_try;;
  4509. esac
  4510. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4511. (eval "$ac_compile") 2>conftest.er1
  4512. ac_status=$?
  4513. grep -v '^ *+' conftest.er1 >conftest.err
  4514. rm -f conftest.er1
  4515. cat conftest.err >&5
  4516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4517. (exit $ac_status); } && {
  4518. test -z "$ac_cxx_werror_flag" ||
  4519. test ! -s conftest.err
  4520. } && test -s conftest.$ac_objext; then
  4521. ac_hi=$ac_mid
  4522. else
  4523. echo "$as_me: failed program was:" >&5
  4524. sed 's/^/| /' conftest.$ac_ext >&5
  4525. ac_lo=`expr '(' $ac_mid ')' + 1`
  4526. fi
  4527. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4528. done
  4529. case $ac_lo in
  4530. ?*) ac_cv_sizeof_int=$ac_lo;;
  4531. '') if test "$ac_cv_type_int" = yes; then
  4532. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  4533. See \`config.log' for more details." >&5
  4534. echo "$as_me: error: cannot compute sizeof (int)
  4535. See \`config.log' for more details." >&2;}
  4536. { (exit 77); exit 77; }; }
  4537. else
  4538. ac_cv_sizeof_int=0
  4539. fi ;;
  4540. esac
  4541. else
  4542. cat >conftest.$ac_ext <<_ACEOF
  4543. /* confdefs.h. */
  4544. _ACEOF
  4545. cat confdefs.h >>conftest.$ac_ext
  4546. cat >>conftest.$ac_ext <<_ACEOF
  4547. /* end confdefs.h. */
  4548. $ac_includes_default
  4549. typedef int ac__type_sizeof_;
  4550. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  4551. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  4552. #include <stdio.h>
  4553. #include <stdlib.h>
  4554. int
  4555. main ()
  4556. {
  4557. FILE *f = fopen ("conftest.val", "w");
  4558. if (! f)
  4559. return 1;
  4560. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  4561. {
  4562. long int i = longval ();
  4563. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  4564. return 1;
  4565. fprintf (f, "%ld\n", i);
  4566. }
  4567. else
  4568. {
  4569. unsigned long int i = ulongval ();
  4570. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  4571. return 1;
  4572. fprintf (f, "%lu\n", i);
  4573. }
  4574. return ferror (f) || fclose (f) != 0;
  4575. ;
  4576. return 0;
  4577. }
  4578. _ACEOF
  4579. rm -f conftest$ac_exeext
  4580. if { (ac_try="$ac_link"
  4581. case "(($ac_try" in
  4582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4583. *) ac_try_echo=$ac_try;;
  4584. esac
  4585. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4586. (eval "$ac_link") 2>&5
  4587. ac_status=$?
  4588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4589. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4590. { (case "(($ac_try" in
  4591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4592. *) ac_try_echo=$ac_try;;
  4593. esac
  4594. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4595. (eval "$ac_try") 2>&5
  4596. ac_status=$?
  4597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4598. (exit $ac_status); }; }; then
  4599. ac_cv_sizeof_int=`cat conftest.val`
  4600. else
  4601. echo "$as_me: program exited with status $ac_status" >&5
  4602. echo "$as_me: failed program was:" >&5
  4603. sed 's/^/| /' conftest.$ac_ext >&5
  4604. ( exit $ac_status )
  4605. if test "$ac_cv_type_int" = yes; then
  4606. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  4607. See \`config.log' for more details." >&5
  4608. echo "$as_me: error: cannot compute sizeof (int)
  4609. See \`config.log' for more details." >&2;}
  4610. { (exit 77); exit 77; }; }
  4611. else
  4612. ac_cv_sizeof_int=0
  4613. fi
  4614. fi
  4615. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4616. fi
  4617. rm -f conftest.val
  4618. fi
  4619. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  4620. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  4621. cat >>confdefs.h <<_ACEOF
  4622. #define SIZEOF_INT $ac_cv_sizeof_int
  4623. _ACEOF
  4624. { echo "$as_me:$LINENO: checking for short" >&5
  4625. echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  4626. if test "${ac_cv_type_short+set}" = set; then
  4627. echo $ECHO_N "(cached) $ECHO_C" >&6
  4628. else
  4629. cat >conftest.$ac_ext <<_ACEOF
  4630. /* confdefs.h. */
  4631. _ACEOF
  4632. cat confdefs.h >>conftest.$ac_ext
  4633. cat >>conftest.$ac_ext <<_ACEOF
  4634. /* end confdefs.h. */
  4635. $ac_includes_default
  4636. typedef short ac__type_new_;
  4637. int
  4638. main ()
  4639. {
  4640. if ((ac__type_new_ *) 0)
  4641. return 0;
  4642. if (sizeof (ac__type_new_))
  4643. return 0;
  4644. ;
  4645. return 0;
  4646. }
  4647. _ACEOF
  4648. rm -f conftest.$ac_objext
  4649. if { (ac_try="$ac_compile"
  4650. case "(($ac_try" in
  4651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4652. *) ac_try_echo=$ac_try;;
  4653. esac
  4654. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4655. (eval "$ac_compile") 2>conftest.er1
  4656. ac_status=$?
  4657. grep -v '^ *+' conftest.er1 >conftest.err
  4658. rm -f conftest.er1
  4659. cat conftest.err >&5
  4660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4661. (exit $ac_status); } && {
  4662. test -z "$ac_cxx_werror_flag" ||
  4663. test ! -s conftest.err
  4664. } && test -s conftest.$ac_objext; then
  4665. ac_cv_type_short=yes
  4666. else
  4667. echo "$as_me: failed program was:" >&5
  4668. sed 's/^/| /' conftest.$ac_ext >&5
  4669. ac_cv_type_short=no
  4670. fi
  4671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4672. fi
  4673. { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  4674. echo "${ECHO_T}$ac_cv_type_short" >&6; }
  4675. # The cast to long int works around a bug in the HP C Compiler
  4676. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4677. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4678. # This bug is HP SR number 8606223364.
  4679. { echo "$as_me:$LINENO: checking size of short" >&5
  4680. echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  4681. if test "${ac_cv_sizeof_short+set}" = set; then
  4682. echo $ECHO_N "(cached) $ECHO_C" >&6
  4683. else
  4684. if test "$cross_compiling" = yes; then
  4685. # Depending upon the size, compute the lo and hi bounds.
  4686. cat >conftest.$ac_ext <<_ACEOF
  4687. /* confdefs.h. */
  4688. _ACEOF
  4689. cat confdefs.h >>conftest.$ac_ext
  4690. cat >>conftest.$ac_ext <<_ACEOF
  4691. /* end confdefs.h. */
  4692. $ac_includes_default
  4693. typedef short ac__type_sizeof_;
  4694. int
  4695. main ()
  4696. {
  4697. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  4698. test_array [0] = 0
  4699. ;
  4700. return 0;
  4701. }
  4702. _ACEOF
  4703. rm -f conftest.$ac_objext
  4704. if { (ac_try="$ac_compile"
  4705. case "(($ac_try" in
  4706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4707. *) ac_try_echo=$ac_try;;
  4708. esac
  4709. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4710. (eval "$ac_compile") 2>conftest.er1
  4711. ac_status=$?
  4712. grep -v '^ *+' conftest.er1 >conftest.err
  4713. rm -f conftest.er1
  4714. cat conftest.err >&5
  4715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4716. (exit $ac_status); } && {
  4717. test -z "$ac_cxx_werror_flag" ||
  4718. test ! -s conftest.err
  4719. } && test -s conftest.$ac_objext; then
  4720. ac_lo=0 ac_mid=0
  4721. while :; do
  4722. cat >conftest.$ac_ext <<_ACEOF
  4723. /* confdefs.h. */
  4724. _ACEOF
  4725. cat confdefs.h >>conftest.$ac_ext
  4726. cat >>conftest.$ac_ext <<_ACEOF
  4727. /* end confdefs.h. */
  4728. $ac_includes_default
  4729. typedef short ac__type_sizeof_;
  4730. int
  4731. main ()
  4732. {
  4733. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  4734. test_array [0] = 0
  4735. ;
  4736. return 0;
  4737. }
  4738. _ACEOF
  4739. rm -f conftest.$ac_objext
  4740. if { (ac_try="$ac_compile"
  4741. case "(($ac_try" in
  4742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4743. *) ac_try_echo=$ac_try;;
  4744. esac
  4745. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4746. (eval "$ac_compile") 2>conftest.er1
  4747. ac_status=$?
  4748. grep -v '^ *+' conftest.er1 >conftest.err
  4749. rm -f conftest.er1
  4750. cat conftest.err >&5
  4751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4752. (exit $ac_status); } && {
  4753. test -z "$ac_cxx_werror_flag" ||
  4754. test ! -s conftest.err
  4755. } && test -s conftest.$ac_objext; then
  4756. ac_hi=$ac_mid; break
  4757. else
  4758. echo "$as_me: failed program was:" >&5
  4759. sed 's/^/| /' conftest.$ac_ext >&5
  4760. ac_lo=`expr $ac_mid + 1`
  4761. if test $ac_lo -le $ac_mid; then
  4762. ac_lo= ac_hi=
  4763. break
  4764. fi
  4765. ac_mid=`expr 2 '*' $ac_mid + 1`
  4766. fi
  4767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4768. done
  4769. else
  4770. echo "$as_me: failed program was:" >&5
  4771. sed 's/^/| /' conftest.$ac_ext >&5
  4772. cat >conftest.$ac_ext <<_ACEOF
  4773. /* confdefs.h. */
  4774. _ACEOF
  4775. cat confdefs.h >>conftest.$ac_ext
  4776. cat >>conftest.$ac_ext <<_ACEOF
  4777. /* end confdefs.h. */
  4778. $ac_includes_default
  4779. typedef short ac__type_sizeof_;
  4780. int
  4781. main ()
  4782. {
  4783. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  4784. test_array [0] = 0
  4785. ;
  4786. return 0;
  4787. }
  4788. _ACEOF
  4789. rm -f conftest.$ac_objext
  4790. if { (ac_try="$ac_compile"
  4791. case "(($ac_try" in
  4792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4793. *) ac_try_echo=$ac_try;;
  4794. esac
  4795. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4796. (eval "$ac_compile") 2>conftest.er1
  4797. ac_status=$?
  4798. grep -v '^ *+' conftest.er1 >conftest.err
  4799. rm -f conftest.er1
  4800. cat conftest.err >&5
  4801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4802. (exit $ac_status); } && {
  4803. test -z "$ac_cxx_werror_flag" ||
  4804. test ! -s conftest.err
  4805. } && test -s conftest.$ac_objext; then
  4806. ac_hi=-1 ac_mid=-1
  4807. while :; do
  4808. cat >conftest.$ac_ext <<_ACEOF
  4809. /* confdefs.h. */
  4810. _ACEOF
  4811. cat confdefs.h >>conftest.$ac_ext
  4812. cat >>conftest.$ac_ext <<_ACEOF
  4813. /* end confdefs.h. */
  4814. $ac_includes_default
  4815. typedef short ac__type_sizeof_;
  4816. int
  4817. main ()
  4818. {
  4819. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  4820. test_array [0] = 0
  4821. ;
  4822. return 0;
  4823. }
  4824. _ACEOF
  4825. rm -f conftest.$ac_objext
  4826. if { (ac_try="$ac_compile"
  4827. case "(($ac_try" in
  4828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4829. *) ac_try_echo=$ac_try;;
  4830. esac
  4831. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4832. (eval "$ac_compile") 2>conftest.er1
  4833. ac_status=$?
  4834. grep -v '^ *+' conftest.er1 >conftest.err
  4835. rm -f conftest.er1
  4836. cat conftest.err >&5
  4837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4838. (exit $ac_status); } && {
  4839. test -z "$ac_cxx_werror_flag" ||
  4840. test ! -s conftest.err
  4841. } && test -s conftest.$ac_objext; then
  4842. ac_lo=$ac_mid; break
  4843. else
  4844. echo "$as_me: failed program was:" >&5
  4845. sed 's/^/| /' conftest.$ac_ext >&5
  4846. ac_hi=`expr '(' $ac_mid ')' - 1`
  4847. if test $ac_mid -le $ac_hi; then
  4848. ac_lo= ac_hi=
  4849. break
  4850. fi
  4851. ac_mid=`expr 2 '*' $ac_mid`
  4852. fi
  4853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4854. done
  4855. else
  4856. echo "$as_me: failed program was:" >&5
  4857. sed 's/^/| /' conftest.$ac_ext >&5
  4858. ac_lo= ac_hi=
  4859. fi
  4860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4861. fi
  4862. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4863. # Binary search between lo and hi bounds.
  4864. while test "x$ac_lo" != "x$ac_hi"; do
  4865. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  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. $ac_includes_default
  4873. typedef short ac__type_sizeof_;
  4874. int
  4875. main ()
  4876. {
  4877. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  4878. test_array [0] = 0
  4879. ;
  4880. return 0;
  4881. }
  4882. _ACEOF
  4883. rm -f conftest.$ac_objext
  4884. if { (ac_try="$ac_compile"
  4885. case "(($ac_try" in
  4886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4887. *) ac_try_echo=$ac_try;;
  4888. esac
  4889. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4890. (eval "$ac_compile") 2>conftest.er1
  4891. ac_status=$?
  4892. grep -v '^ *+' conftest.er1 >conftest.err
  4893. rm -f conftest.er1
  4894. cat conftest.err >&5
  4895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4896. (exit $ac_status); } && {
  4897. test -z "$ac_cxx_werror_flag" ||
  4898. test ! -s conftest.err
  4899. } && test -s conftest.$ac_objext; then
  4900. ac_hi=$ac_mid
  4901. else
  4902. echo "$as_me: failed program was:" >&5
  4903. sed 's/^/| /' conftest.$ac_ext >&5
  4904. ac_lo=`expr '(' $ac_mid ')' + 1`
  4905. fi
  4906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4907. done
  4908. case $ac_lo in
  4909. ?*) ac_cv_sizeof_short=$ac_lo;;
  4910. '') if test "$ac_cv_type_short" = yes; then
  4911. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  4912. See \`config.log' for more details." >&5
  4913. echo "$as_me: error: cannot compute sizeof (short)
  4914. See \`config.log' for more details." >&2;}
  4915. { (exit 77); exit 77; }; }
  4916. else
  4917. ac_cv_sizeof_short=0
  4918. fi ;;
  4919. esac
  4920. else
  4921. cat >conftest.$ac_ext <<_ACEOF
  4922. /* confdefs.h. */
  4923. _ACEOF
  4924. cat confdefs.h >>conftest.$ac_ext
  4925. cat >>conftest.$ac_ext <<_ACEOF
  4926. /* end confdefs.h. */
  4927. $ac_includes_default
  4928. typedef short ac__type_sizeof_;
  4929. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  4930. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  4931. #include <stdio.h>
  4932. #include <stdlib.h>
  4933. int
  4934. main ()
  4935. {
  4936. FILE *f = fopen ("conftest.val", "w");
  4937. if (! f)
  4938. return 1;
  4939. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  4940. {
  4941. long int i = longval ();
  4942. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  4943. return 1;
  4944. fprintf (f, "%ld\n", i);
  4945. }
  4946. else
  4947. {
  4948. unsigned long int i = ulongval ();
  4949. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  4950. return 1;
  4951. fprintf (f, "%lu\n", i);
  4952. }
  4953. return ferror (f) || fclose (f) != 0;
  4954. ;
  4955. return 0;
  4956. }
  4957. _ACEOF
  4958. rm -f conftest$ac_exeext
  4959. if { (ac_try="$ac_link"
  4960. case "(($ac_try" in
  4961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4962. *) ac_try_echo=$ac_try;;
  4963. esac
  4964. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4965. (eval "$ac_link") 2>&5
  4966. ac_status=$?
  4967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4968. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4969. { (case "(($ac_try" in
  4970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4971. *) ac_try_echo=$ac_try;;
  4972. esac
  4973. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4974. (eval "$ac_try") 2>&5
  4975. ac_status=$?
  4976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4977. (exit $ac_status); }; }; then
  4978. ac_cv_sizeof_short=`cat conftest.val`
  4979. else
  4980. echo "$as_me: program exited with status $ac_status" >&5
  4981. echo "$as_me: failed program was:" >&5
  4982. sed 's/^/| /' conftest.$ac_ext >&5
  4983. ( exit $ac_status )
  4984. if test "$ac_cv_type_short" = yes; then
  4985. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  4986. See \`config.log' for more details." >&5
  4987. echo "$as_me: error: cannot compute sizeof (short)
  4988. See \`config.log' for more details." >&2;}
  4989. { (exit 77); exit 77; }; }
  4990. else
  4991. ac_cv_sizeof_short=0
  4992. fi
  4993. fi
  4994. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4995. fi
  4996. rm -f conftest.val
  4997. fi
  4998. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  4999. echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  5000. cat >>confdefs.h <<_ACEOF
  5001. #define SIZEOF_SHORT $ac_cv_sizeof_short
  5002. _ACEOF
  5003. { echo "$as_me:$LINENO: checking for long" >&5
  5004. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  5005. if test "${ac_cv_type_long+set}" = set; then
  5006. echo $ECHO_N "(cached) $ECHO_C" >&6
  5007. else
  5008. cat >conftest.$ac_ext <<_ACEOF
  5009. /* confdefs.h. */
  5010. _ACEOF
  5011. cat confdefs.h >>conftest.$ac_ext
  5012. cat >>conftest.$ac_ext <<_ACEOF
  5013. /* end confdefs.h. */
  5014. $ac_includes_default
  5015. typedef long ac__type_new_;
  5016. int
  5017. main ()
  5018. {
  5019. if ((ac__type_new_ *) 0)
  5020. return 0;
  5021. if (sizeof (ac__type_new_))
  5022. return 0;
  5023. ;
  5024. return 0;
  5025. }
  5026. _ACEOF
  5027. rm -f conftest.$ac_objext
  5028. if { (ac_try="$ac_compile"
  5029. case "(($ac_try" in
  5030. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5031. *) ac_try_echo=$ac_try;;
  5032. esac
  5033. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5034. (eval "$ac_compile") 2>conftest.er1
  5035. ac_status=$?
  5036. grep -v '^ *+' conftest.er1 >conftest.err
  5037. rm -f conftest.er1
  5038. cat conftest.err >&5
  5039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5040. (exit $ac_status); } && {
  5041. test -z "$ac_cxx_werror_flag" ||
  5042. test ! -s conftest.err
  5043. } && test -s conftest.$ac_objext; then
  5044. ac_cv_type_long=yes
  5045. else
  5046. echo "$as_me: failed program was:" >&5
  5047. sed 's/^/| /' conftest.$ac_ext >&5
  5048. ac_cv_type_long=no
  5049. fi
  5050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5051. fi
  5052. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  5053. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  5054. # The cast to long int works around a bug in the HP C Compiler
  5055. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5056. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5057. # This bug is HP SR number 8606223364.
  5058. { echo "$as_me:$LINENO: checking size of long" >&5
  5059. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  5060. if test "${ac_cv_sizeof_long+set}" = set; then
  5061. echo $ECHO_N "(cached) $ECHO_C" >&6
  5062. else
  5063. if test "$cross_compiling" = yes; then
  5064. # Depending upon the size, compute the lo and hi bounds.
  5065. cat >conftest.$ac_ext <<_ACEOF
  5066. /* confdefs.h. */
  5067. _ACEOF
  5068. cat confdefs.h >>conftest.$ac_ext
  5069. cat >>conftest.$ac_ext <<_ACEOF
  5070. /* end confdefs.h. */
  5071. $ac_includes_default
  5072. typedef long ac__type_sizeof_;
  5073. int
  5074. main ()
  5075. {
  5076. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  5077. test_array [0] = 0
  5078. ;
  5079. return 0;
  5080. }
  5081. _ACEOF
  5082. rm -f conftest.$ac_objext
  5083. if { (ac_try="$ac_compile"
  5084. case "(($ac_try" in
  5085. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5086. *) ac_try_echo=$ac_try;;
  5087. esac
  5088. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5089. (eval "$ac_compile") 2>conftest.er1
  5090. ac_status=$?
  5091. grep -v '^ *+' conftest.er1 >conftest.err
  5092. rm -f conftest.er1
  5093. cat conftest.err >&5
  5094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5095. (exit $ac_status); } && {
  5096. test -z "$ac_cxx_werror_flag" ||
  5097. test ! -s conftest.err
  5098. } && test -s conftest.$ac_objext; then
  5099. ac_lo=0 ac_mid=0
  5100. while :; do
  5101. cat >conftest.$ac_ext <<_ACEOF
  5102. /* confdefs.h. */
  5103. _ACEOF
  5104. cat confdefs.h >>conftest.$ac_ext
  5105. cat >>conftest.$ac_ext <<_ACEOF
  5106. /* end confdefs.h. */
  5107. $ac_includes_default
  5108. typedef long ac__type_sizeof_;
  5109. int
  5110. main ()
  5111. {
  5112. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5113. test_array [0] = 0
  5114. ;
  5115. return 0;
  5116. }
  5117. _ACEOF
  5118. rm -f conftest.$ac_objext
  5119. if { (ac_try="$ac_compile"
  5120. case "(($ac_try" in
  5121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5122. *) ac_try_echo=$ac_try;;
  5123. esac
  5124. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5125. (eval "$ac_compile") 2>conftest.er1
  5126. ac_status=$?
  5127. grep -v '^ *+' conftest.er1 >conftest.err
  5128. rm -f conftest.er1
  5129. cat conftest.err >&5
  5130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5131. (exit $ac_status); } && {
  5132. test -z "$ac_cxx_werror_flag" ||
  5133. test ! -s conftest.err
  5134. } && test -s conftest.$ac_objext; then
  5135. ac_hi=$ac_mid; break
  5136. else
  5137. echo "$as_me: failed program was:" >&5
  5138. sed 's/^/| /' conftest.$ac_ext >&5
  5139. ac_lo=`expr $ac_mid + 1`
  5140. if test $ac_lo -le $ac_mid; then
  5141. ac_lo= ac_hi=
  5142. break
  5143. fi
  5144. ac_mid=`expr 2 '*' $ac_mid + 1`
  5145. fi
  5146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5147. done
  5148. else
  5149. echo "$as_me: failed program was:" >&5
  5150. sed 's/^/| /' conftest.$ac_ext >&5
  5151. cat >conftest.$ac_ext <<_ACEOF
  5152. /* confdefs.h. */
  5153. _ACEOF
  5154. cat confdefs.h >>conftest.$ac_ext
  5155. cat >>conftest.$ac_ext <<_ACEOF
  5156. /* end confdefs.h. */
  5157. $ac_includes_default
  5158. typedef long ac__type_sizeof_;
  5159. int
  5160. main ()
  5161. {
  5162. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  5163. test_array [0] = 0
  5164. ;
  5165. return 0;
  5166. }
  5167. _ACEOF
  5168. rm -f conftest.$ac_objext
  5169. if { (ac_try="$ac_compile"
  5170. case "(($ac_try" in
  5171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5172. *) ac_try_echo=$ac_try;;
  5173. esac
  5174. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5175. (eval "$ac_compile") 2>conftest.er1
  5176. ac_status=$?
  5177. grep -v '^ *+' conftest.er1 >conftest.err
  5178. rm -f conftest.er1
  5179. cat conftest.err >&5
  5180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5181. (exit $ac_status); } && {
  5182. test -z "$ac_cxx_werror_flag" ||
  5183. test ! -s conftest.err
  5184. } && test -s conftest.$ac_objext; then
  5185. ac_hi=-1 ac_mid=-1
  5186. while :; do
  5187. cat >conftest.$ac_ext <<_ACEOF
  5188. /* confdefs.h. */
  5189. _ACEOF
  5190. cat confdefs.h >>conftest.$ac_ext
  5191. cat >>conftest.$ac_ext <<_ACEOF
  5192. /* end confdefs.h. */
  5193. $ac_includes_default
  5194. typedef long ac__type_sizeof_;
  5195. int
  5196. main ()
  5197. {
  5198. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  5199. test_array [0] = 0
  5200. ;
  5201. return 0;
  5202. }
  5203. _ACEOF
  5204. rm -f conftest.$ac_objext
  5205. if { (ac_try="$ac_compile"
  5206. case "(($ac_try" in
  5207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5208. *) ac_try_echo=$ac_try;;
  5209. esac
  5210. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5211. (eval "$ac_compile") 2>conftest.er1
  5212. ac_status=$?
  5213. grep -v '^ *+' conftest.er1 >conftest.err
  5214. rm -f conftest.er1
  5215. cat conftest.err >&5
  5216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5217. (exit $ac_status); } && {
  5218. test -z "$ac_cxx_werror_flag" ||
  5219. test ! -s conftest.err
  5220. } && test -s conftest.$ac_objext; then
  5221. ac_lo=$ac_mid; break
  5222. else
  5223. echo "$as_me: failed program was:" >&5
  5224. sed 's/^/| /' conftest.$ac_ext >&5
  5225. ac_hi=`expr '(' $ac_mid ')' - 1`
  5226. if test $ac_mid -le $ac_hi; then
  5227. ac_lo= ac_hi=
  5228. break
  5229. fi
  5230. ac_mid=`expr 2 '*' $ac_mid`
  5231. fi
  5232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5233. done
  5234. else
  5235. echo "$as_me: failed program was:" >&5
  5236. sed 's/^/| /' conftest.$ac_ext >&5
  5237. ac_lo= ac_hi=
  5238. fi
  5239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5240. fi
  5241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5242. # Binary search between lo and hi bounds.
  5243. while test "x$ac_lo" != "x$ac_hi"; do
  5244. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5245. cat >conftest.$ac_ext <<_ACEOF
  5246. /* confdefs.h. */
  5247. _ACEOF
  5248. cat confdefs.h >>conftest.$ac_ext
  5249. cat >>conftest.$ac_ext <<_ACEOF
  5250. /* end confdefs.h. */
  5251. $ac_includes_default
  5252. typedef long ac__type_sizeof_;
  5253. int
  5254. main ()
  5255. {
  5256. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5257. test_array [0] = 0
  5258. ;
  5259. return 0;
  5260. }
  5261. _ACEOF
  5262. rm -f conftest.$ac_objext
  5263. if { (ac_try="$ac_compile"
  5264. case "(($ac_try" in
  5265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5266. *) ac_try_echo=$ac_try;;
  5267. esac
  5268. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5269. (eval "$ac_compile") 2>conftest.er1
  5270. ac_status=$?
  5271. grep -v '^ *+' conftest.er1 >conftest.err
  5272. rm -f conftest.er1
  5273. cat conftest.err >&5
  5274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5275. (exit $ac_status); } && {
  5276. test -z "$ac_cxx_werror_flag" ||
  5277. test ! -s conftest.err
  5278. } && test -s conftest.$ac_objext; then
  5279. ac_hi=$ac_mid
  5280. else
  5281. echo "$as_me: failed program was:" >&5
  5282. sed 's/^/| /' conftest.$ac_ext >&5
  5283. ac_lo=`expr '(' $ac_mid ')' + 1`
  5284. fi
  5285. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5286. done
  5287. case $ac_lo in
  5288. ?*) ac_cv_sizeof_long=$ac_lo;;
  5289. '') if test "$ac_cv_type_long" = yes; then
  5290. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  5291. See \`config.log' for more details." >&5
  5292. echo "$as_me: error: cannot compute sizeof (long)
  5293. See \`config.log' for more details." >&2;}
  5294. { (exit 77); exit 77; }; }
  5295. else
  5296. ac_cv_sizeof_long=0
  5297. fi ;;
  5298. esac
  5299. else
  5300. cat >conftest.$ac_ext <<_ACEOF
  5301. /* confdefs.h. */
  5302. _ACEOF
  5303. cat confdefs.h >>conftest.$ac_ext
  5304. cat >>conftest.$ac_ext <<_ACEOF
  5305. /* end confdefs.h. */
  5306. $ac_includes_default
  5307. typedef long ac__type_sizeof_;
  5308. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5309. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5310. #include <stdio.h>
  5311. #include <stdlib.h>
  5312. int
  5313. main ()
  5314. {
  5315. FILE *f = fopen ("conftest.val", "w");
  5316. if (! f)
  5317. return 1;
  5318. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  5319. {
  5320. long int i = longval ();
  5321. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5322. return 1;
  5323. fprintf (f, "%ld\n", i);
  5324. }
  5325. else
  5326. {
  5327. unsigned long int i = ulongval ();
  5328. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5329. return 1;
  5330. fprintf (f, "%lu\n", i);
  5331. }
  5332. return ferror (f) || fclose (f) != 0;
  5333. ;
  5334. return 0;
  5335. }
  5336. _ACEOF
  5337. rm -f conftest$ac_exeext
  5338. if { (ac_try="$ac_link"
  5339. case "(($ac_try" in
  5340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5341. *) ac_try_echo=$ac_try;;
  5342. esac
  5343. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5344. (eval "$ac_link") 2>&5
  5345. ac_status=$?
  5346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5347. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5348. { (case "(($ac_try" in
  5349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5350. *) ac_try_echo=$ac_try;;
  5351. esac
  5352. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5353. (eval "$ac_try") 2>&5
  5354. ac_status=$?
  5355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5356. (exit $ac_status); }; }; then
  5357. ac_cv_sizeof_long=`cat conftest.val`
  5358. else
  5359. echo "$as_me: program exited with status $ac_status" >&5
  5360. echo "$as_me: failed program was:" >&5
  5361. sed 's/^/| /' conftest.$ac_ext >&5
  5362. ( exit $ac_status )
  5363. if test "$ac_cv_type_long" = yes; then
  5364. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  5365. See \`config.log' for more details." >&5
  5366. echo "$as_me: error: cannot compute sizeof (long)
  5367. See \`config.log' for more details." >&2;}
  5368. { (exit 77); exit 77; }; }
  5369. else
  5370. ac_cv_sizeof_long=0
  5371. fi
  5372. fi
  5373. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5374. fi
  5375. rm -f conftest.val
  5376. fi
  5377. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  5378. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  5379. cat >>confdefs.h <<_ACEOF
  5380. #define SIZEOF_LONG $ac_cv_sizeof_long
  5381. _ACEOF
  5382. HAVE_C9X=
  5383. fi
  5384. # Extract the first word of "debiandoc2html", so it can be a program name with args.
  5385. set dummy debiandoc2html; ac_word=$2
  5386. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5387. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5388. if test "${ac_cv_prog_DEBIANDOC_HTML+set}" = set; then
  5389. echo $ECHO_N "(cached) $ECHO_C" >&6
  5390. else
  5391. if test -n "$DEBIANDOC_HTML"; then
  5392. ac_cv_prog_DEBIANDOC_HTML="$DEBIANDOC_HTML" # Let the user override the test.
  5393. else
  5394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5395. for as_dir in $PATH
  5396. do
  5397. IFS=$as_save_IFS
  5398. test -z "$as_dir" && as_dir=.
  5399. for ac_exec_ext in '' $ac_executable_extensions; do
  5400. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5401. ac_cv_prog_DEBIANDOC_HTML=""yes""
  5402. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5403. break 2
  5404. fi
  5405. done
  5406. done
  5407. IFS=$as_save_IFS
  5408. test -z "$ac_cv_prog_DEBIANDOC_HTML" && ac_cv_prog_DEBIANDOC_HTML=""""
  5409. fi
  5410. fi
  5411. DEBIANDOC_HTML=$ac_cv_prog_DEBIANDOC_HTML
  5412. if test -n "$DEBIANDOC_HTML"; then
  5413. { echo "$as_me:$LINENO: result: $DEBIANDOC_HTML" >&5
  5414. echo "${ECHO_T}$DEBIANDOC_HTML" >&6; }
  5415. else
  5416. { echo "$as_me:$LINENO: result: no" >&5
  5417. echo "${ECHO_T}no" >&6; }
  5418. fi
  5419. # Extract the first word of "debiandoc2text", so it can be a program name with args.
  5420. set dummy debiandoc2text; ac_word=$2
  5421. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5422. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5423. if test "${ac_cv_prog_DEBIANDOC_TEXT+set}" = set; then
  5424. echo $ECHO_N "(cached) $ECHO_C" >&6
  5425. else
  5426. if test -n "$DEBIANDOC_TEXT"; then
  5427. ac_cv_prog_DEBIANDOC_TEXT="$DEBIANDOC_TEXT" # Let the user override the test.
  5428. else
  5429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5430. for as_dir in $PATH
  5431. do
  5432. IFS=$as_save_IFS
  5433. test -z "$as_dir" && as_dir=.
  5434. for ac_exec_ext in '' $ac_executable_extensions; do
  5435. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5436. ac_cv_prog_DEBIANDOC_TEXT=""yes""
  5437. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5438. break 2
  5439. fi
  5440. done
  5441. done
  5442. IFS=$as_save_IFS
  5443. test -z "$ac_cv_prog_DEBIANDOC_TEXT" && ac_cv_prog_DEBIANDOC_TEXT=""""
  5444. fi
  5445. fi
  5446. DEBIANDOC_TEXT=$ac_cv_prog_DEBIANDOC_TEXT
  5447. if test -n "$DEBIANDOC_TEXT"; then
  5448. { echo "$as_me:$LINENO: result: $DEBIANDOC_TEXT" >&5
  5449. echo "${ECHO_T}$DEBIANDOC_TEXT" >&6; }
  5450. else
  5451. { echo "$as_me:$LINENO: result: no" >&5
  5452. echo "${ECHO_T}no" >&6; }
  5453. fi
  5454. # Extract the first word of "yodl2man", so it can be a program name with args.
  5455. set dummy yodl2man; ac_word=$2
  5456. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5457. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5458. if test "${ac_cv_prog_YODL_MAN+set}" = set; then
  5459. echo $ECHO_N "(cached) $ECHO_C" >&6
  5460. else
  5461. if test -n "$YODL_MAN"; then
  5462. ac_cv_prog_YODL_MAN="$YODL_MAN" # Let the user override the test.
  5463. else
  5464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5465. for as_dir in $PATH
  5466. do
  5467. IFS=$as_save_IFS
  5468. test -z "$as_dir" && as_dir=.
  5469. for ac_exec_ext in '' $ac_executable_extensions; do
  5470. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5471. ac_cv_prog_YODL_MAN=""yes""
  5472. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5473. break 2
  5474. fi
  5475. done
  5476. done
  5477. IFS=$as_save_IFS
  5478. test -z "$ac_cv_prog_YODL_MAN" && ac_cv_prog_YODL_MAN=""""
  5479. fi
  5480. fi
  5481. YODL_MAN=$ac_cv_prog_YODL_MAN
  5482. if test -n "$YODL_MAN"; then
  5483. { echo "$as_me:$LINENO: result: $YODL_MAN" >&5
  5484. echo "${ECHO_T}$YODL_MAN" >&6; }
  5485. else
  5486. { echo "$as_me:$LINENO: result: no" >&5
  5487. echo "${ECHO_T}no" >&6; }
  5488. fi
  5489. ac_config_files="$ac_config_files environment.mak:buildlib/environment.mak.in makefile:buildlib/makefile.in"
  5490. ac_config_commands="$ac_config_commands default"
  5491. cat >confcache <<\_ACEOF
  5492. # This file is a shell script that caches the results of configure
  5493. # tests run on this system so they can be shared between configure
  5494. # scripts and configure runs, see configure's option --config-cache.
  5495. # It is not useful on other systems. If it contains results you don't
  5496. # want to keep, you may remove or edit it.
  5497. #
  5498. # config.status only pays attention to the cache file if you give it
  5499. # the --recheck option to rerun configure.
  5500. #
  5501. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5502. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5503. # following values.
  5504. _ACEOF
  5505. # The following way of writing the cache mishandles newlines in values,
  5506. # but we know of no workaround that is simple, portable, and efficient.
  5507. # So, we kill variables containing newlines.
  5508. # Ultrix sh set writes to stderr and can't be redirected directly,
  5509. # and sets the high bit in the cache file unless we assign to the vars.
  5510. (
  5511. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5512. eval ac_val=\$$ac_var
  5513. case $ac_val in #(
  5514. *${as_nl}*)
  5515. case $ac_var in #(
  5516. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  5517. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  5518. esac
  5519. case $ac_var in #(
  5520. _ | IFS | as_nl) ;; #(
  5521. *) $as_unset $ac_var ;;
  5522. esac ;;
  5523. esac
  5524. done
  5525. (set) 2>&1 |
  5526. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5527. *${as_nl}ac_space=\ *)
  5528. # `set' does not quote correctly, so add quotes (double-quote
  5529. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5530. sed -n \
  5531. "s/'/'\\\\''/g;
  5532. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5533. ;; #(
  5534. *)
  5535. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5536. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5537. ;;
  5538. esac |
  5539. sort
  5540. ) |
  5541. sed '
  5542. /^ac_cv_env_/b end
  5543. t clear
  5544. :clear
  5545. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5546. t end
  5547. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5548. :end' >>confcache
  5549. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5550. if test -w "$cache_file"; then
  5551. test "x$cache_file" != "x/dev/null" &&
  5552. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5553. echo "$as_me: updating cache $cache_file" >&6;}
  5554. cat confcache >$cache_file
  5555. else
  5556. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5557. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5558. fi
  5559. fi
  5560. rm -f confcache
  5561. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5562. # Let make expand exec_prefix.
  5563. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5564. DEFS=-DHAVE_CONFIG_H
  5565. ac_libobjs=
  5566. ac_ltlibobjs=
  5567. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  5568. # 1. Remove the extension, and $U if already installed.
  5569. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  5570. ac_i=`echo "$ac_i" | sed "$ac_script"`
  5571. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  5572. # will be set to the directory where LIBOBJS objects are built.
  5573. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  5574. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  5575. done
  5576. LIBOBJS=$ac_libobjs
  5577. LTLIBOBJS=$ac_ltlibobjs
  5578. : ${CONFIG_STATUS=./config.status}
  5579. ac_clean_files_save=$ac_clean_files
  5580. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  5581. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  5582. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  5583. cat >$CONFIG_STATUS <<_ACEOF
  5584. #! $SHELL
  5585. # Generated by $as_me.
  5586. # Run this file to recreate the current configuration.
  5587. # Compiler output produced by configure, useful for debugging
  5588. # configure, is in config.log if it exists.
  5589. debug=false
  5590. ac_cs_recheck=false
  5591. ac_cs_silent=false
  5592. SHELL=\${CONFIG_SHELL-$SHELL}
  5593. _ACEOF
  5594. cat >>$CONFIG_STATUS <<\_ACEOF
  5595. ## --------------------- ##
  5596. ## M4sh Initialization. ##
  5597. ## --------------------- ##
  5598. # Be more Bourne compatible
  5599. DUALCASE=1; export DUALCASE # for MKS sh
  5600. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  5601. emulate sh
  5602. NULLCMD=:
  5603. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  5604. # is contrary to our usage. Disable this feature.
  5605. alias -g '${1+"$@"}'='"$@"'
  5606. setopt NO_GLOB_SUBST
  5607. else
  5608. case `(set -o) 2>/dev/null` in
  5609. *posix*) set -o posix ;;
  5610. esac
  5611. fi
  5612. # PATH needs CR
  5613. # Avoid depending upon Character Ranges.
  5614. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  5615. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  5616. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  5617. as_cr_digits='0123456789'
  5618. as_cr_alnum=$as_cr_Letters$as_cr_digits
  5619. # The user is always right.
  5620. if test "${PATH_SEPARATOR+set}" != set; then
  5621. echo "#! /bin/sh" >conf$$.sh
  5622. echo "exit 0" >>conf$$.sh
  5623. chmod +x conf$$.sh
  5624. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5625. PATH_SEPARATOR=';'
  5626. else
  5627. PATH_SEPARATOR=:
  5628. fi
  5629. rm -f conf$$.sh
  5630. fi
  5631. # Support unset when possible.
  5632. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5633. as_unset=unset
  5634. else
  5635. as_unset=false
  5636. fi
  5637. # IFS
  5638. # We need space, tab and new line, in precisely that order. Quoting is
  5639. # there to prevent editors from complaining about space-tab.
  5640. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  5641. # splitting by setting IFS to empty value.)
  5642. as_nl='
  5643. '
  5644. IFS=" "" $as_nl"
  5645. # Find who we are. Look in the path if we contain no directory separator.
  5646. case $0 in
  5647. *[\\/]* ) as_myself=$0 ;;
  5648. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5649. for as_dir in $PATH
  5650. do
  5651. IFS=$as_save_IFS
  5652. test -z "$as_dir" && as_dir=.
  5653. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  5654. done
  5655. IFS=$as_save_IFS
  5656. ;;
  5657. esac
  5658. # We did not find ourselves, most probably we were run as `sh COMMAND'
  5659. # in which case we are not to be found in the path.
  5660. if test "x$as_myself" = x; then
  5661. as_myself=$0
  5662. fi
  5663. if test ! -f "$as_myself"; then
  5664. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  5665. { (exit 1); exit 1; }
  5666. fi
  5667. # Work around bugs in pre-3.0 UWIN ksh.
  5668. for as_var in ENV MAIL MAILPATH
  5669. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  5670. done
  5671. PS1='$ '
  5672. PS2='> '
  5673. PS4='+ '
  5674. # NLS nuisances.
  5675. for as_var in \
  5676. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  5677. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  5678. LC_TELEPHONE LC_TIME
  5679. do
  5680. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  5681. eval $as_var=C; export $as_var
  5682. else
  5683. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  5684. fi
  5685. done
  5686. # Required to use basename.
  5687. if expr a : '\(a\)' >/dev/null 2>&1 &&
  5688. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5689. as_expr=expr
  5690. else
  5691. as_expr=false
  5692. fi
  5693. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  5694. as_basename=basename
  5695. else
  5696. as_basename=false
  5697. fi
  5698. # Name of the executable.
  5699. as_me=`$as_basename -- "$0" ||
  5700. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  5701. X"$0" : 'X\(//\)$' \| \
  5702. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  5703. echo X/"$0" |
  5704. sed '/^.*\/\([^/][^/]*\)\/*$/{
  5705. s//\1/
  5706. q
  5707. }
  5708. /^X\/\(\/\/\)$/{
  5709. s//\1/
  5710. q
  5711. }
  5712. /^X\/\(\/\).*/{
  5713. s//\1/
  5714. q
  5715. }
  5716. s/.*/./; q'`
  5717. # CDPATH.
  5718. $as_unset CDPATH
  5719. as_lineno_1=$LINENO
  5720. as_lineno_2=$LINENO
  5721. test "x$as_lineno_1" != "x$as_lineno_2" &&
  5722. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  5723. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  5724. # uniformly replaced by the line number. The first 'sed' inserts a
  5725. # line-number line after each line using $LINENO; the second 'sed'
  5726. # does the real work. The second script uses 'N' to pair each
  5727. # line-number line with the line containing $LINENO, and appends
  5728. # trailing '-' during substitution so that $LINENO is not a special
  5729. # case at line end.
  5730. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  5731. # scripts with optimization help from Paolo Bonzini. Blame Lee
  5732. # E. McMahon (1931-1989) for sed's syntax. :-)
  5733. sed -n '
  5734. p
  5735. /[$]LINENO/=
  5736. ' <$as_myself |
  5737. sed '
  5738. s/[$]LINENO.*/&-/
  5739. t lineno
  5740. b
  5741. :lineno
  5742. N
  5743. :loop
  5744. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  5745. t loop
  5746. s/-\n.*//
  5747. ' >$as_me.lineno &&
  5748. chmod +x "$as_me.lineno" ||
  5749. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  5750. { (exit 1); exit 1; }; }
  5751. # Don't try to exec as it changes $[0], causing all sort of problems
  5752. # (the dirname of $[0] is not the place where we might find the
  5753. # original and so on. Autoconf is especially sensitive to this).
  5754. . "./$as_me.lineno"
  5755. # Exit status is that of the last command.
  5756. exit
  5757. }
  5758. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  5759. as_dirname=dirname
  5760. else
  5761. as_dirname=false
  5762. fi
  5763. ECHO_C= ECHO_N= ECHO_T=
  5764. case `echo -n x` in
  5765. -n*)
  5766. case `echo 'x\c'` in
  5767. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  5768. *) ECHO_C='\c';;
  5769. esac;;
  5770. *)
  5771. ECHO_N='-n';;
  5772. esac
  5773. if expr a : '\(a\)' >/dev/null 2>&1 &&
  5774. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5775. as_expr=expr
  5776. else
  5777. as_expr=false
  5778. fi
  5779. rm -f conf$$ conf$$.exe conf$$.file
  5780. if test -d conf$$.dir; then
  5781. rm -f conf$$.dir/conf$$.file
  5782. else
  5783. rm -f conf$$.dir
  5784. mkdir conf$$.dir
  5785. fi
  5786. echo >conf$$.file
  5787. if ln -s conf$$.file conf$$ 2>/dev/null; then
  5788. as_ln_s='ln -s'
  5789. # ... but there are two gotchas:
  5790. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  5791. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  5792. # In both cases, we have to default to `cp -p'.
  5793. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  5794. as_ln_s='cp -p'
  5795. elif ln conf$$.file conf$$ 2>/dev/null; then
  5796. as_ln_s=ln
  5797. else
  5798. as_ln_s='cp -p'
  5799. fi
  5800. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  5801. rmdir conf$$.dir 2>/dev/null
  5802. if mkdir -p . 2>/dev/null; then
  5803. as_mkdir_p=:
  5804. else
  5805. test -d ./-p && rmdir ./-p
  5806. as_mkdir_p=false
  5807. fi
  5808. if test -x / >/dev/null 2>&1; then
  5809. as_test_x='test -x'
  5810. else
  5811. if ls -dL / >/dev/null 2>&1; then
  5812. as_ls_L_option=L
  5813. else
  5814. as_ls_L_option=
  5815. fi
  5816. as_test_x='
  5817. eval sh -c '\''
  5818. if test -d "$1"; then
  5819. test -d "$1/.";
  5820. else
  5821. case $1 in
  5822. -*)set "./$1";;
  5823. esac;
  5824. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  5825. ???[sx]*):;;*)false;;esac;fi
  5826. '\'' sh
  5827. '
  5828. fi
  5829. as_executable_p=$as_test_x
  5830. # Sed expression to map a string onto a valid CPP name.
  5831. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  5832. # Sed expression to map a string onto a valid variable name.
  5833. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  5834. exec 6>&1
  5835. # Save the log message, to keep $[0] and so on meaningful, and to
  5836. # report actual input values of CONFIG_FILES etc. instead of their
  5837. # values after options handling.
  5838. ac_log="
  5839. This file was extended by $as_me, which was
  5840. generated by GNU Autoconf 2.61. Invocation command line was
  5841. CONFIG_FILES = $CONFIG_FILES
  5842. CONFIG_HEADERS = $CONFIG_HEADERS
  5843. CONFIG_LINKS = $CONFIG_LINKS
  5844. CONFIG_COMMANDS = $CONFIG_COMMANDS
  5845. $ $0 $@
  5846. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  5847. "
  5848. _ACEOF
  5849. cat >>$CONFIG_STATUS <<_ACEOF
  5850. # Files that config.status was made for.
  5851. config_files="$ac_config_files"
  5852. config_headers="$ac_config_headers"
  5853. config_commands="$ac_config_commands"
  5854. _ACEOF
  5855. cat >>$CONFIG_STATUS <<\_ACEOF
  5856. ac_cs_usage="\
  5857. \`$as_me' instantiates files from templates according to the
  5858. current configuration.
  5859. Usage: $0 [OPTIONS] [FILE]...
  5860. -h, --help print this help, then exit
  5861. -V, --version print version number and configuration settings, then exit
  5862. -q, --quiet do not print progress messages
  5863. -d, --debug don't remove temporary files
  5864. --recheck update $as_me by reconfiguring in the same conditions
  5865. --file=FILE[:TEMPLATE]
  5866. instantiate the configuration file FILE
  5867. --header=FILE[:TEMPLATE]
  5868. instantiate the configuration header FILE
  5869. Configuration files:
  5870. $config_files
  5871. Configuration headers:
  5872. $config_headers
  5873. Configuration commands:
  5874. $config_commands
  5875. Report bugs to <bug-autoconf@gnu.org>."
  5876. _ACEOF
  5877. cat >>$CONFIG_STATUS <<_ACEOF
  5878. ac_cs_version="\\
  5879. config.status
  5880. configured by $0, generated by GNU Autoconf 2.61,
  5881. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  5882. Copyright (C) 2006 Free Software Foundation, Inc.
  5883. This config.status script is free software; the Free Software Foundation
  5884. gives unlimited permission to copy, distribute and modify it."
  5885. ac_pwd='$ac_pwd'
  5886. srcdir='$srcdir'
  5887. _ACEOF
  5888. cat >>$CONFIG_STATUS <<\_ACEOF
  5889. # If no file are specified by the user, then we need to provide default
  5890. # value. By we need to know if files were specified by the user.
  5891. ac_need_defaults=:
  5892. while test $# != 0
  5893. do
  5894. case $1 in
  5895. --*=*)
  5896. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5897. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  5898. ac_shift=:
  5899. ;;
  5900. *)
  5901. ac_option=$1
  5902. ac_optarg=$2
  5903. ac_shift=shift
  5904. ;;
  5905. esac
  5906. case $ac_option in
  5907. # Handling of the options.
  5908. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5909. ac_cs_recheck=: ;;
  5910. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  5911. echo "$ac_cs_version"; exit ;;
  5912. --debug | --debu | --deb | --de | --d | -d )
  5913. debug=: ;;
  5914. --file | --fil | --fi | --f )
  5915. $ac_shift
  5916. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  5917. ac_need_defaults=false;;
  5918. --header | --heade | --head | --hea )
  5919. $ac_shift
  5920. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  5921. ac_need_defaults=false;;
  5922. --he | --h)
  5923. # Conflict between --help and --header
  5924. { echo "$as_me: error: ambiguous option: $1
  5925. Try \`$0 --help' for more information." >&2
  5926. { (exit 1); exit 1; }; };;
  5927. --help | --hel | -h )
  5928. echo "$ac_cs_usage"; exit ;;
  5929. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5930. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  5931. ac_cs_silent=: ;;
  5932. # This is an error.
  5933. -*) { echo "$as_me: error: unrecognized option: $1
  5934. Try \`$0 --help' for more information." >&2
  5935. { (exit 1); exit 1; }; } ;;
  5936. *) ac_config_targets="$ac_config_targets $1"
  5937. ac_need_defaults=false ;;
  5938. esac
  5939. shift
  5940. done
  5941. ac_configure_extra_args=
  5942. if $ac_cs_silent; then
  5943. exec 6>/dev/null
  5944. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5945. fi
  5946. _ACEOF
  5947. cat >>$CONFIG_STATUS <<_ACEOF
  5948. if \$ac_cs_recheck; then
  5949. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  5950. CONFIG_SHELL=$SHELL
  5951. export CONFIG_SHELL
  5952. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5953. fi
  5954. _ACEOF
  5955. cat >>$CONFIG_STATUS <<\_ACEOF
  5956. exec 5>>config.log
  5957. {
  5958. echo
  5959. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5960. ## Running $as_me. ##
  5961. _ASBOX
  5962. echo "$ac_log"
  5963. } >&5
  5964. _ACEOF
  5965. cat >>$CONFIG_STATUS <<_ACEOF
  5966. _ACEOF
  5967. cat >>$CONFIG_STATUS <<\_ACEOF
  5968. # Handling of arguments.
  5969. for ac_config_target in $ac_config_targets
  5970. do
  5971. case $ac_config_target in
  5972. "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h:buildlib/config.h.in" ;;
  5973. "environment.mak") CONFIG_FILES="$CONFIG_FILES environment.mak:buildlib/environment.mak.in" ;;
  5974. "makefile") CONFIG_FILES="$CONFIG_FILES makefile:buildlib/makefile.in" ;;
  5975. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  5976. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  5977. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  5978. { (exit 1); exit 1; }; };;
  5979. esac
  5980. done
  5981. # If the user did not use the arguments to specify the items to instantiate,
  5982. # then the envvar interface is used. Set only those that are not.
  5983. # We use the long form for the default assignment because of an extremely
  5984. # bizarre bug on SunOS 4.1.3.
  5985. if $ac_need_defaults; then
  5986. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5987. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  5988. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  5989. fi
  5990. # Have a temporary directory for convenience. Make it in the build tree
  5991. # simply because there is no reason against having it here, and in addition,
  5992. # creating and moving files from /tmp can sometimes cause problems.
  5993. # Hook for its removal unless debugging.
  5994. # Note that there is a small window in which the directory will not be cleaned:
  5995. # after its creation but before its name has been assigned to `$tmp'.
  5996. $debug ||
  5997. {
  5998. tmp=
  5999. trap 'exit_status=$?
  6000. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  6001. ' 0
  6002. trap '{ (exit 1); exit 1; }' 1 2 13 15
  6003. }
  6004. # Create a (secure) tmp directory for tmp files.
  6005. {
  6006. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  6007. test -n "$tmp" && test -d "$tmp"
  6008. } ||
  6009. {
  6010. tmp=./conf$$-$RANDOM
  6011. (umask 077 && mkdir "$tmp")
  6012. } ||
  6013. {
  6014. echo "$me: cannot create a temporary directory in ." >&2
  6015. { (exit 1); exit 1; }
  6016. }
  6017. #
  6018. # Set up the sed scripts for CONFIG_FILES section.
  6019. #
  6020. # No need to generate the scripts if there are no CONFIG_FILES.
  6021. # This happens for instance when ./config.status config.h
  6022. if test -n "$CONFIG_FILES"; then
  6023. _ACEOF
  6024. ac_delim='%!_!# '
  6025. for ac_last_try in false false false false false :; do
  6026. cat >conf$$subs.sed <<_ACEOF
  6027. SHELL!$SHELL$ac_delim
  6028. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  6029. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  6030. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  6031. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  6032. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  6033. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  6034. exec_prefix!$exec_prefix$ac_delim
  6035. prefix!$prefix$ac_delim
  6036. program_transform_name!$program_transform_name$ac_delim
  6037. bindir!$bindir$ac_delim
  6038. sbindir!$sbindir$ac_delim
  6039. libexecdir!$libexecdir$ac_delim
  6040. datarootdir!$datarootdir$ac_delim
  6041. datadir!$datadir$ac_delim
  6042. sysconfdir!$sysconfdir$ac_delim
  6043. sharedstatedir!$sharedstatedir$ac_delim
  6044. localstatedir!$localstatedir$ac_delim
  6045. includedir!$includedir$ac_delim
  6046. oldincludedir!$oldincludedir$ac_delim
  6047. docdir!$docdir$ac_delim
  6048. infodir!$infodir$ac_delim
  6049. htmldir!$htmldir$ac_delim
  6050. dvidir!$dvidir$ac_delim
  6051. pdfdir!$pdfdir$ac_delim
  6052. psdir!$psdir$ac_delim
  6053. libdir!$libdir$ac_delim
  6054. localedir!$localedir$ac_delim
  6055. mandir!$mandir$ac_delim
  6056. DEFS!$DEFS$ac_delim
  6057. ECHO_C!$ECHO_C$ac_delim
  6058. ECHO_N!$ECHO_N$ac_delim
  6059. ECHO_T!$ECHO_T$ac_delim
  6060. LIBS!$LIBS$ac_delim
  6061. build_alias!$build_alias$ac_delim
  6062. host_alias!$host_alias$ac_delim
  6063. target_alias!$target_alias$ac_delim
  6064. CC!$CC$ac_delim
  6065. CFLAGS!$CFLAGS$ac_delim
  6066. LDFLAGS!$LDFLAGS$ac_delim
  6067. CPPFLAGS!$CPPFLAGS$ac_delim
  6068. ac_ct_CC!$ac_ct_CC$ac_delim
  6069. EXEEXT!$EXEEXT$ac_delim
  6070. OBJEXT!$OBJEXT$ac_delim
  6071. build!$build$ac_delim
  6072. build_cpu!$build_cpu$ac_delim
  6073. build_vendor!$build_vendor$ac_delim
  6074. build_os!$build_os$ac_delim
  6075. host!$host$ac_delim
  6076. host_cpu!$host_cpu$ac_delim
  6077. host_vendor!$host_vendor$ac_delim
  6078. host_os!$host_os$ac_delim
  6079. CXX!$CXX$ac_delim
  6080. CXXFLAGS!$CXXFLAGS$ac_delim
  6081. ac_ct_CXX!$ac_ct_CXX$ac_delim
  6082. AR!$AR$ac_delim
  6083. PTHREADLIB!$PTHREADLIB$ac_delim
  6084. CXXCPP!$CXXCPP$ac_delim
  6085. GREP!$GREP$ac_delim
  6086. EGREP!$EGREP$ac_delim
  6087. HAVE_C9X!$HAVE_C9X$ac_delim
  6088. DEBIANDOC_HTML!$DEBIANDOC_HTML$ac_delim
  6089. DEBIANDOC_TEXT!$DEBIANDOC_TEXT$ac_delim
  6090. YODL_MAN!$YODL_MAN$ac_delim
  6091. LIBOBJS!$LIBOBJS$ac_delim
  6092. LTLIBOBJS!$LTLIBOBJS$ac_delim
  6093. _ACEOF
  6094. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 66; then
  6095. break
  6096. elif $ac_last_try; then
  6097. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  6098. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  6099. { (exit 1); exit 1; }; }
  6100. else
  6101. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  6102. fi
  6103. done
  6104. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  6105. if test -n "$ac_eof"; then
  6106. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  6107. ac_eof=`expr $ac_eof + 1`
  6108. fi
  6109. cat >>$CONFIG_STATUS <<_ACEOF
  6110. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  6111. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  6112. _ACEOF
  6113. sed '
  6114. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  6115. s/^/s,@/; s/!/@,|#_!!_#|/
  6116. :n
  6117. t n
  6118. s/'"$ac_delim"'$/,g/; t
  6119. s/$/\\/; p
  6120. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  6121. ' >>$CONFIG_STATUS <conf$$subs.sed
  6122. rm -f conf$$subs.sed
  6123. cat >>$CONFIG_STATUS <<_ACEOF
  6124. :end
  6125. s/|#_!!_#|//g
  6126. CEOF$ac_eof
  6127. _ACEOF
  6128. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  6129. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  6130. # trailing colons and then remove the whole line if VPATH becomes empty
  6131. # (actually we leave an empty line to preserve line numbers).
  6132. if test "x$srcdir" = x.; then
  6133. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  6134. s/:*\$(srcdir):*/:/
  6135. s/:*\${srcdir}:*/:/
  6136. s/:*@srcdir@:*/:/
  6137. s/^\([^=]*=[ ]*\):*/\1/
  6138. s/:*$//
  6139. s/^[^=]*=[ ]*$//
  6140. }'
  6141. fi
  6142. cat >>$CONFIG_STATUS <<\_ACEOF
  6143. fi # test -n "$CONFIG_FILES"
  6144. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  6145. do
  6146. case $ac_tag in
  6147. :[FHLC]) ac_mode=$ac_tag; continue;;
  6148. esac
  6149. case $ac_mode$ac_tag in
  6150. :[FHL]*:*);;
  6151. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  6152. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  6153. { (exit 1); exit 1; }; };;
  6154. :[FH]-) ac_tag=-:-;;
  6155. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  6156. esac
  6157. ac_save_IFS=$IFS
  6158. IFS=:
  6159. set x $ac_tag
  6160. IFS=$ac_save_IFS
  6161. shift
  6162. ac_file=$1
  6163. shift
  6164. case $ac_mode in
  6165. :L) ac_source=$1;;
  6166. :[FH])
  6167. ac_file_inputs=
  6168. for ac_f
  6169. do
  6170. case $ac_f in
  6171. -) ac_f="$tmp/stdin";;
  6172. *) # Look for the file first in the build tree, then in the source tree
  6173. # (if the path is not absolute). The absolute path cannot be DOS-style,
  6174. # because $ac_f cannot contain `:'.
  6175. test -f "$ac_f" ||
  6176. case $ac_f in
  6177. [\\/$]*) false;;
  6178. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  6179. esac ||
  6180. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  6181. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  6182. { (exit 1); exit 1; }; };;
  6183. esac
  6184. ac_file_inputs="$ac_file_inputs $ac_f"
  6185. done
  6186. # Let's still pretend it is `configure' which instantiates (i.e., don't
  6187. # use $as_me), people would be surprised to read:
  6188. # /* config.h. Generated by config.status. */
  6189. configure_input="Generated from "`IFS=:
  6190. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  6191. if test x"$ac_file" != x-; then
  6192. configure_input="$ac_file. $configure_input"
  6193. { echo "$as_me:$LINENO: creating $ac_file" >&5
  6194. echo "$as_me: creating $ac_file" >&6;}
  6195. fi
  6196. case $ac_tag in
  6197. *:-:* | *:-) cat >"$tmp/stdin";;
  6198. esac
  6199. ;;
  6200. esac
  6201. ac_dir=`$as_dirname -- "$ac_file" ||
  6202. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6203. X"$ac_file" : 'X\(//\)[^/]' \| \
  6204. X"$ac_file" : 'X\(//\)$' \| \
  6205. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  6206. echo X"$ac_file" |
  6207. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6208. s//\1/
  6209. q
  6210. }
  6211. /^X\(\/\/\)[^/].*/{
  6212. s//\1/
  6213. q
  6214. }
  6215. /^X\(\/\/\)$/{
  6216. s//\1/
  6217. q
  6218. }
  6219. /^X\(\/\).*/{
  6220. s//\1/
  6221. q
  6222. }
  6223. s/.*/./; q'`
  6224. { as_dir="$ac_dir"
  6225. case $as_dir in #(
  6226. -*) as_dir=./$as_dir;;
  6227. esac
  6228. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  6229. as_dirs=
  6230. while :; do
  6231. case $as_dir in #(
  6232. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  6233. *) as_qdir=$as_dir;;
  6234. esac
  6235. as_dirs="'$as_qdir' $as_dirs"
  6236. as_dir=`$as_dirname -- "$as_dir" ||
  6237. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6238. X"$as_dir" : 'X\(//\)[^/]' \| \
  6239. X"$as_dir" : 'X\(//\)$' \| \
  6240. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  6241. echo X"$as_dir" |
  6242. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6243. s//\1/
  6244. q
  6245. }
  6246. /^X\(\/\/\)[^/].*/{
  6247. s//\1/
  6248. q
  6249. }
  6250. /^X\(\/\/\)$/{
  6251. s//\1/
  6252. q
  6253. }
  6254. /^X\(\/\).*/{
  6255. s//\1/
  6256. q
  6257. }
  6258. s/.*/./; q'`
  6259. test -d "$as_dir" && break
  6260. done
  6261. test -z "$as_dirs" || eval "mkdir $as_dirs"
  6262. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  6263. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  6264. { (exit 1); exit 1; }; }; }
  6265. ac_builddir=.
  6266. case "$ac_dir" in
  6267. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6268. *)
  6269. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  6270. # A ".." for each directory in $ac_dir_suffix.
  6271. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  6272. case $ac_top_builddir_sub in
  6273. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6274. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  6275. esac ;;
  6276. esac
  6277. ac_abs_top_builddir=$ac_pwd
  6278. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  6279. # for backward compatibility:
  6280. ac_top_builddir=$ac_top_build_prefix
  6281. case $srcdir in
  6282. .) # We are building in place.
  6283. ac_srcdir=.
  6284. ac_top_srcdir=$ac_top_builddir_sub
  6285. ac_abs_top_srcdir=$ac_pwd ;;
  6286. [\\/]* | ?:[\\/]* ) # Absolute name.
  6287. ac_srcdir=$srcdir$ac_dir_suffix;
  6288. ac_top_srcdir=$srcdir
  6289. ac_abs_top_srcdir=$srcdir ;;
  6290. *) # Relative name.
  6291. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  6292. ac_top_srcdir=$ac_top_build_prefix$srcdir
  6293. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  6294. esac
  6295. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  6296. case $ac_mode in
  6297. :F)
  6298. #
  6299. # CONFIG_FILE
  6300. #
  6301. _ACEOF
  6302. cat >>$CONFIG_STATUS <<\_ACEOF
  6303. # If the template does not know about datarootdir, expand it.
  6304. # FIXME: This hack should be removed a few years after 2.60.
  6305. ac_datarootdir_hack=; ac_datarootdir_seen=
  6306. case `sed -n '/datarootdir/ {
  6307. p
  6308. q
  6309. }
  6310. /@datadir@/p
  6311. /@docdir@/p
  6312. /@infodir@/p
  6313. /@localedir@/p
  6314. /@mandir@/p
  6315. ' $ac_file_inputs` in
  6316. *datarootdir*) ac_datarootdir_seen=yes;;
  6317. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  6318. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  6319. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  6320. _ACEOF
  6321. cat >>$CONFIG_STATUS <<_ACEOF
  6322. ac_datarootdir_hack='
  6323. s&@datadir@&$datadir&g
  6324. s&@docdir@&$docdir&g
  6325. s&@infodir@&$infodir&g
  6326. s&@localedir@&$localedir&g
  6327. s&@mandir@&$mandir&g
  6328. s&\\\${datarootdir}&$datarootdir&g' ;;
  6329. esac
  6330. _ACEOF
  6331. # Neutralize VPATH when `$srcdir' = `.'.
  6332. # Shell code in configure.ac might set extrasub.
  6333. # FIXME: do we really want to maintain this feature?
  6334. cat >>$CONFIG_STATUS <<_ACEOF
  6335. sed "$ac_vpsub
  6336. $extrasub
  6337. _ACEOF
  6338. cat >>$CONFIG_STATUS <<\_ACEOF
  6339. :t
  6340. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  6341. s&@configure_input@&$configure_input&;t t
  6342. s&@top_builddir@&$ac_top_builddir_sub&;t t
  6343. s&@srcdir@&$ac_srcdir&;t t
  6344. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  6345. s&@top_srcdir@&$ac_top_srcdir&;t t
  6346. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  6347. s&@builddir@&$ac_builddir&;t t
  6348. s&@abs_builddir@&$ac_abs_builddir&;t t
  6349. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  6350. $ac_datarootdir_hack
  6351. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
  6352. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  6353. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  6354. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  6355. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6356. which seems to be undefined. Please make sure it is defined." >&5
  6357. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6358. which seems to be undefined. Please make sure it is defined." >&2;}
  6359. rm -f "$tmp/stdin"
  6360. case $ac_file in
  6361. -) cat "$tmp/out"; rm -f "$tmp/out";;
  6362. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  6363. esac
  6364. ;;
  6365. :H)
  6366. #
  6367. # CONFIG_HEADER
  6368. #
  6369. _ACEOF
  6370. # Transform confdefs.h into a sed script `conftest.defines', that
  6371. # substitutes the proper values into config.h.in to produce config.h.
  6372. rm -f conftest.defines conftest.tail
  6373. # First, append a space to every undef/define line, to ease matching.
  6374. echo 's/$/ /' >conftest.defines
  6375. # Then, protect against being on the right side of a sed subst, or in
  6376. # an unquoted here document, in config.status. If some macros were
  6377. # called several times there might be several #defines for the same
  6378. # symbol, which is useless. But do not sort them, since the last
  6379. # AC_DEFINE must be honored.
  6380. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  6381. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  6382. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  6383. # PARAMS is the parameter list in the macro definition--in most cases, it's
  6384. # just an empty string.
  6385. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  6386. ac_dB='\\)[ (].*,\\1define\\2'
  6387. ac_dC=' '
  6388. ac_dD=' ,'
  6389. uniq confdefs.h |
  6390. sed -n '
  6391. t rset
  6392. :rset
  6393. s/^[ ]*#[ ]*define[ ][ ]*//
  6394. t ok
  6395. d
  6396. :ok
  6397. s/[\\&,]/\\&/g
  6398. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  6399. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  6400. ' >>conftest.defines
  6401. # Remove the space that was appended to ease matching.
  6402. # Then replace #undef with comments. This is necessary, for
  6403. # example, in the case of _POSIX_SOURCE, which is predefined and required
  6404. # on some systems where configure will not decide to define it.
  6405. # (The regexp can be short, since the line contains either #define or #undef.)
  6406. echo 's/ $//
  6407. s,^[ #]*u.*,/* & */,' >>conftest.defines
  6408. # Break up conftest.defines:
  6409. ac_max_sed_lines=50
  6410. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  6411. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  6412. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  6413. # et cetera.
  6414. ac_in='$ac_file_inputs'
  6415. ac_out='"$tmp/out1"'
  6416. ac_nxt='"$tmp/out2"'
  6417. while :
  6418. do
  6419. # Write a here document:
  6420. cat >>$CONFIG_STATUS <<_ACEOF
  6421. # First, check the format of the line:
  6422. cat >"\$tmp/defines.sed" <<\\CEOF
  6423. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  6424. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  6425. b
  6426. :def
  6427. _ACEOF
  6428. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  6429. echo 'CEOF
  6430. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  6431. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  6432. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  6433. grep . conftest.tail >/dev/null || break
  6434. rm -f conftest.defines
  6435. mv conftest.tail conftest.defines
  6436. done
  6437. rm -f conftest.defines conftest.tail
  6438. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  6439. cat >>$CONFIG_STATUS <<\_ACEOF
  6440. if test x"$ac_file" != x-; then
  6441. echo "/* $configure_input */" >"$tmp/config.h"
  6442. cat "$ac_result" >>"$tmp/config.h"
  6443. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  6444. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  6445. echo "$as_me: $ac_file is unchanged" >&6;}
  6446. else
  6447. rm -f $ac_file
  6448. mv "$tmp/config.h" $ac_file
  6449. fi
  6450. else
  6451. echo "/* $configure_input */"
  6452. cat "$ac_result"
  6453. fi
  6454. rm -f "$tmp/out12"
  6455. ;;
  6456. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  6457. echo "$as_me: executing $ac_file commands" >&6;}
  6458. ;;
  6459. esac
  6460. case $ac_file$ac_mode in
  6461. "default":C) make dirs ;;
  6462. esac
  6463. done # for ac_tag
  6464. { (exit 0); exit 0; }
  6465. _ACEOF
  6466. chmod +x $CONFIG_STATUS
  6467. ac_clean_files=$ac_clean_files_save
  6468. # configure is writing to config.log, and then calls config.status.
  6469. # config.status does its own redirection, appending to config.log.
  6470. # Unfortunately, on DOS this fails, as config.log is still kept open
  6471. # by configure, so config.status won't be able to write to it; its
  6472. # output is simply discarded. So we exec the FD to /dev/null,
  6473. # effectively closing config.log, so it can be properly (re)opened and
  6474. # appended to by config.status. When coming back to configure, we
  6475. # need to make the FD available again.
  6476. if test "$no_create" != yes; then
  6477. ac_cs_success=:
  6478. ac_config_status_args=
  6479. test "$silent" = yes &&
  6480. ac_config_status_args="$ac_config_status_args --quiet"
  6481. exec 5>/dev/null
  6482. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  6483. exec 5>>config.log
  6484. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  6485. # would make configure fail if this is the last instruction.
  6486. $ac_cs_success || { (exit 1); exit 1; }
  6487. fi