configure 194 KB

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