configure 187 KB

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