configure 205 KB

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