1
0

autotool.patch 288 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120
  1. diff -Nur libnids-1.23.orig/configure libnids-1.23/configure
  2. --- libnids-1.23.orig/configure 2006-05-01 19:14:51.000000000 +0200
  3. +++ libnids-1.23/configure 2011-03-11 21:07:25.000000000 +0100
  4. @@ -1,81 +1,423 @@
  5. #! /bin/sh
  6. # Guess values for system-dependent variables and create Makefiles.
  7. -# Generated by GNU Autoconf 2.59.
  8. +# Generated by GNU Autoconf 2.68.
  9. +#
  10. +#
  11. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  12. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  13. +# Foundation, Inc.
  14. +#
  15. #
  16. -# Copyright (C) 2003 Free Software Foundation, Inc.
  17. # This configure script is free software; the Free Software Foundation
  18. # gives unlimited permission to copy, distribute and modify it.
  19. -## --------------------- ##
  20. -## M4sh Initialization. ##
  21. -## --------------------- ##
  22. +## -------------------- ##
  23. +## M4sh Initialization. ##
  24. +## -------------------- ##
  25. -# Be Bourne compatible
  26. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  27. +# Be more Bourne compatible
  28. +DUALCASE=1; export DUALCASE # for MKS sh
  29. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  30. emulate sh
  31. NULLCMD=:
  32. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  33. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  34. # is contrary to our usage. Disable this feature.
  35. alias -g '${1+"$@"}'='"$@"'
  36. -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  37. - set -o posix
  38. + setopt NO_GLOB_SUBST
  39. +else
  40. + case `(set -o) 2>/dev/null` in #(
  41. + *posix*) :
  42. + set -o posix ;; #(
  43. + *) :
  44. + ;;
  45. +esac
  46. fi
  47. -DUALCASE=1; export DUALCASE # for MKS sh
  48. -# Support unset when possible.
  49. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  50. - as_unset=unset
  51. -else
  52. - as_unset=false
  53. +
  54. +as_nl='
  55. +'
  56. +export as_nl
  57. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  58. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  59. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  60. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  61. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  62. +# but without wasting forks for bash or zsh.
  63. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  64. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  65. + as_echo='print -r --'
  66. + as_echo_n='print -rn --'
  67. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  68. + as_echo='printf %s\n'
  69. + as_echo_n='printf %s'
  70. +else
  71. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  72. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  73. + as_echo_n='/usr/ucb/echo -n'
  74. + else
  75. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  76. + as_echo_n_body='eval
  77. + arg=$1;
  78. + case $arg in #(
  79. + *"$as_nl"*)
  80. + expr "X$arg" : "X\\(.*\\)$as_nl";
  81. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  82. + esac;
  83. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  84. + '
  85. + export as_echo_n_body
  86. + as_echo_n='sh -c $as_echo_n_body as_echo'
  87. + fi
  88. + export as_echo_body
  89. + as_echo='sh -c $as_echo_body as_echo'
  90. fi
  91. +# The user is always right.
  92. +if test "${PATH_SEPARATOR+set}" != set; then
  93. + PATH_SEPARATOR=:
  94. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  95. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  96. + PATH_SEPARATOR=';'
  97. + }
  98. +fi
  99. +
  100. +
  101. +# IFS
  102. +# We need space, tab and new line, in precisely that order. Quoting is
  103. +# there to prevent editors from complaining about space-tab.
  104. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  105. +# splitting by setting IFS to empty value.)
  106. +IFS=" "" $as_nl"
  107. +
  108. +# Find who we are. Look in the path if we contain no directory separator.
  109. +as_myself=
  110. +case $0 in #((
  111. + *[\\/]* ) as_myself=$0 ;;
  112. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  113. +for as_dir in $PATH
  114. +do
  115. + IFS=$as_save_IFS
  116. + test -z "$as_dir" && as_dir=.
  117. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  118. + done
  119. +IFS=$as_save_IFS
  120. -# Work around bugs in pre-3.0 UWIN ksh.
  121. -$as_unset ENV MAIL MAILPATH
  122. + ;;
  123. +esac
  124. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  125. +# in which case we are not to be found in the path.
  126. +if test "x$as_myself" = x; then
  127. + as_myself=$0
  128. +fi
  129. +if test ! -f "$as_myself"; then
  130. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  131. + exit 1
  132. +fi
  133. +
  134. +# Unset variables that we do not need and which cause bugs (e.g. in
  135. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  136. +# suppresses any "Segmentation fault" message there. '((' could
  137. +# trigger a bug in pdksh 5.2.14.
  138. +for as_var in BASH_ENV ENV MAIL MAILPATH
  139. +do eval test x\${$as_var+set} = xset \
  140. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  141. +done
  142. PS1='$ '
  143. PS2='> '
  144. PS4='+ '
  145. # NLS nuisances.
  146. -for as_var in \
  147. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  148. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  149. - LC_TELEPHONE LC_TIME
  150. +LC_ALL=C
  151. +export LC_ALL
  152. +LANGUAGE=C
  153. +export LANGUAGE
  154. +
  155. +# CDPATH.
  156. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  157. +
  158. +if test "x$CONFIG_SHELL" = x; then
  159. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  160. + emulate sh
  161. + NULLCMD=:
  162. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  163. + # is contrary to our usage. Disable this feature.
  164. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  165. + setopt NO_GLOB_SUBST
  166. +else
  167. + case \`(set -o) 2>/dev/null\` in #(
  168. + *posix*) :
  169. + set -o posix ;; #(
  170. + *) :
  171. + ;;
  172. +esac
  173. +fi
  174. +"
  175. + as_required="as_fn_return () { (exit \$1); }
  176. +as_fn_success () { as_fn_return 0; }
  177. +as_fn_failure () { as_fn_return 1; }
  178. +as_fn_ret_success () { return 0; }
  179. +as_fn_ret_failure () { return 1; }
  180. +
  181. +exitcode=0
  182. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  183. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  184. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  185. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  186. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  187. +
  188. +else
  189. + exitcode=1; echo positional parameters were not saved.
  190. +fi
  191. +test x\$exitcode = x0 || exit 1"
  192. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  193. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  194. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  195. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  196. +test \$(( 1 + 1 )) = 2 || exit 1"
  197. + if (eval "$as_required") 2>/dev/null; then :
  198. + as_have_required=yes
  199. +else
  200. + as_have_required=no
  201. +fi
  202. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  203. +
  204. +else
  205. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  206. +as_found=false
  207. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  208. do
  209. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  210. - eval $as_var=C; export $as_var
  211. + IFS=$as_save_IFS
  212. + test -z "$as_dir" && as_dir=.
  213. + as_found=:
  214. + case $as_dir in #(
  215. + /*)
  216. + for as_base in sh bash ksh sh5; do
  217. + # Try only shells that exist, to save several forks.
  218. + as_shell=$as_dir/$as_base
  219. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  220. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  221. + CONFIG_SHELL=$as_shell as_have_required=yes
  222. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  223. + break 2
  224. +fi
  225. +fi
  226. + done;;
  227. + esac
  228. + as_found=false
  229. +done
  230. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  231. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  232. + CONFIG_SHELL=$SHELL as_have_required=yes
  233. +fi; }
  234. +IFS=$as_save_IFS
  235. +
  236. +
  237. + if test "x$CONFIG_SHELL" != x; then :
  238. + # We cannot yet assume a decent shell, so we have to provide a
  239. + # neutralization value for shells without unset; and this also
  240. + # works around shells that cannot unset nonexistent variables.
  241. + # Preserve -v and -x to the replacement shell.
  242. + BASH_ENV=/dev/null
  243. + ENV=/dev/null
  244. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  245. + export CONFIG_SHELL
  246. + case $- in # ((((
  247. + *v*x* | *x*v* ) as_opts=-vx ;;
  248. + *v* ) as_opts=-v ;;
  249. + *x* ) as_opts=-x ;;
  250. + * ) as_opts= ;;
  251. + esac
  252. + exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  253. +fi
  254. +
  255. + if test x$as_have_required = xno; then :
  256. + $as_echo "$0: This script requires a shell more modern than all"
  257. + $as_echo "$0: the shells that I found on your system."
  258. + if test x${ZSH_VERSION+set} = xset ; then
  259. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  260. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  261. else
  262. - $as_unset $as_var
  263. + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  264. +$0: including any error possibly output before this
  265. +$0: message. Then install a modern shell, or manually run
  266. +$0: the script under such a shell if you do have one."
  267. fi
  268. -done
  269. + exit 1
  270. +fi
  271. +fi
  272. +fi
  273. +SHELL=${CONFIG_SHELL-/bin/sh}
  274. +export SHELL
  275. +# Unset more variables known to interfere with behavior of common tools.
  276. +CLICOLOR_FORCE= GREP_OPTIONS=
  277. +unset CLICOLOR_FORCE GREP_OPTIONS
  278. +
  279. +## --------------------- ##
  280. +## M4sh Shell Functions. ##
  281. +## --------------------- ##
  282. +# as_fn_unset VAR
  283. +# ---------------
  284. +# Portably unset VAR.
  285. +as_fn_unset ()
  286. +{
  287. + { eval $1=; unset $1;}
  288. +}
  289. +as_unset=as_fn_unset
  290. +
  291. +# as_fn_set_status STATUS
  292. +# -----------------------
  293. +# Set $? to STATUS, without forking.
  294. +as_fn_set_status ()
  295. +{
  296. + return $1
  297. +} # as_fn_set_status
  298. +
  299. +# as_fn_exit STATUS
  300. +# -----------------
  301. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  302. +as_fn_exit ()
  303. +{
  304. + set +e
  305. + as_fn_set_status $1
  306. + exit $1
  307. +} # as_fn_exit
  308. +
  309. +# as_fn_mkdir_p
  310. +# -------------
  311. +# Create "$as_dir" as a directory, including parents if necessary.
  312. +as_fn_mkdir_p ()
  313. +{
  314. +
  315. + case $as_dir in #(
  316. + -*) as_dir=./$as_dir;;
  317. + esac
  318. + test -d "$as_dir" || eval $as_mkdir_p || {
  319. + as_dirs=
  320. + while :; do
  321. + case $as_dir in #(
  322. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  323. + *) as_qdir=$as_dir;;
  324. + esac
  325. + as_dirs="'$as_qdir' $as_dirs"
  326. + as_dir=`$as_dirname -- "$as_dir" ||
  327. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  328. + X"$as_dir" : 'X\(//\)[^/]' \| \
  329. + X"$as_dir" : 'X\(//\)$' \| \
  330. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  331. +$as_echo X"$as_dir" |
  332. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  333. + s//\1/
  334. + q
  335. + }
  336. + /^X\(\/\/\)[^/].*/{
  337. + s//\1/
  338. + q
  339. + }
  340. + /^X\(\/\/\)$/{
  341. + s//\1/
  342. + q
  343. + }
  344. + /^X\(\/\).*/{
  345. + s//\1/
  346. + q
  347. + }
  348. + s/.*/./; q'`
  349. + test -d "$as_dir" && break
  350. + done
  351. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  352. + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  353. +
  354. +
  355. +} # as_fn_mkdir_p
  356. +# as_fn_append VAR VALUE
  357. +# ----------------------
  358. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  359. +# advantage of any shell optimizations that allow amortized linear growth over
  360. +# repeated appends, instead of the typical quadratic growth present in naive
  361. +# implementations.
  362. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  363. + eval 'as_fn_append ()
  364. + {
  365. + eval $1+=\$2
  366. + }'
  367. +else
  368. + as_fn_append ()
  369. + {
  370. + eval $1=\$$1\$2
  371. + }
  372. +fi # as_fn_append
  373. +
  374. +# as_fn_arith ARG...
  375. +# ------------------
  376. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  377. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  378. +# must be portable across $(()) and expr.
  379. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  380. + eval 'as_fn_arith ()
  381. + {
  382. + as_val=$(( $* ))
  383. + }'
  384. +else
  385. + as_fn_arith ()
  386. + {
  387. + as_val=`expr "$@" || test $? -eq 1`
  388. + }
  389. +fi # as_fn_arith
  390. +
  391. -# Required to use basename.
  392. -if expr a : '\(a\)' >/dev/null 2>&1; then
  393. +# as_fn_error STATUS ERROR [LINENO LOG_FD]
  394. +# ----------------------------------------
  395. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  396. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  397. +# script with STATUS, using 1 if that was 0.
  398. +as_fn_error ()
  399. +{
  400. + as_status=$1; test $as_status -eq 0 && as_status=1
  401. + if test "$4"; then
  402. + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  403. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  404. + fi
  405. + $as_echo "$as_me: error: $2" >&2
  406. + as_fn_exit $as_status
  407. +} # as_fn_error
  408. +
  409. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  410. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  411. as_expr=expr
  412. else
  413. as_expr=false
  414. fi
  415. -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  416. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  417. as_basename=basename
  418. else
  419. as_basename=false
  420. fi
  421. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  422. + as_dirname=dirname
  423. +else
  424. + as_dirname=false
  425. +fi
  426. -# Name of the executable.
  427. -as_me=`$as_basename "$0" ||
  428. +as_me=`$as_basename -- "$0" ||
  429. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  430. X"$0" : 'X\(//\)$' \| \
  431. - X"$0" : 'X\(/\)$' \| \
  432. - . : '\(.\)' 2>/dev/null ||
  433. -echo X/"$0" |
  434. - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  435. - /^X\/\(\/\/\)$/{ s//\1/; q; }
  436. - /^X\/\(\/\).*/{ s//\1/; q; }
  437. - s/.*/./; q'`
  438. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  439. +$as_echo X/"$0" |
  440. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  441. + s//\1/
  442. + q
  443. + }
  444. + /^X\/\(\/\/\)$/{
  445. + s//\1/
  446. + q
  447. + }
  448. + /^X\/\(\/\).*/{
  449. + s//\1/
  450. + q
  451. + }
  452. + s/.*/./; q'`
  453. -
  454. -# PATH needs CR, and LINENO needs CR and PATH.
  455. # Avoid depending upon Character Ranges.
  456. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  457. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  458. @@ -83,146 +425,107 @@
  459. as_cr_digits='0123456789'
  460. as_cr_alnum=$as_cr_Letters$as_cr_digits
  461. -# The user is always right.
  462. -if test "${PATH_SEPARATOR+set}" != set; then
  463. - echo "#! /bin/sh" >conf$$.sh
  464. - echo "exit 0" >>conf$$.sh
  465. - chmod +x conf$$.sh
  466. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  467. - PATH_SEPARATOR=';'
  468. - else
  469. - PATH_SEPARATOR=:
  470. - fi
  471. - rm -f conf$$.sh
  472. -fi
  473. -
  474. -
  475. - as_lineno_1=$LINENO
  476. - as_lineno_2=$LINENO
  477. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  478. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  479. - test "x$as_lineno_3" = "x$as_lineno_2" || {
  480. - # Find who we are. Look in the path if we contain no path at all
  481. - # relative or not.
  482. - case $0 in
  483. - *[\\/]* ) as_myself=$0 ;;
  484. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  485. -for as_dir in $PATH
  486. -do
  487. - IFS=$as_save_IFS
  488. - test -z "$as_dir" && as_dir=.
  489. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  490. -done
  491. -
  492. - ;;
  493. - esac
  494. - # We did not find ourselves, most probably we were run as `sh COMMAND'
  495. - # in which case we are not to be found in the path.
  496. - if test "x$as_myself" = x; then
  497. - as_myself=$0
  498. - fi
  499. - if test ! -f "$as_myself"; then
  500. - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  501. - { (exit 1); exit 1; }; }
  502. - fi
  503. - case $CONFIG_SHELL in
  504. - '')
  505. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  506. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  507. -do
  508. - IFS=$as_save_IFS
  509. - test -z "$as_dir" && as_dir=.
  510. - for as_base in sh bash ksh sh5; do
  511. - case $as_dir in
  512. - /*)
  513. - if ("$as_dir/$as_base" -c '
  514. - as_lineno_1=$LINENO
  515. - as_lineno_2=$LINENO
  516. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  517. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  518. - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  519. - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  520. - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  521. - CONFIG_SHELL=$as_dir/$as_base
  522. - export CONFIG_SHELL
  523. - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  524. - fi;;
  525. - esac
  526. - done
  527. -done
  528. -;;
  529. - esac
  530. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  531. - # uniformly replaced by the line number. The first 'sed' inserts a
  532. - # line-number line before each line; the second 'sed' does the real
  533. - # work. The second script uses 'N' to pair each line-number line
  534. - # with the numbered line, and appends trailing '-' during
  535. - # substitution so that $LINENO is not a special case at line end.
  536. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  537. - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  538. - sed '=' <$as_myself |
  539. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  540. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  541. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  542. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  543. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  544. + sed -n '
  545. + p
  546. + /[$]LINENO/=
  547. + ' <$as_myself |
  548. sed '
  549. + s/[$]LINENO.*/&-/
  550. + t lineno
  551. + b
  552. + :lineno
  553. N
  554. - s,$,-,
  555. - : loop
  556. - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  557. + :loop
  558. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  559. t loop
  560. - s,-$,,
  561. - s,^['$as_cr_digits']*\n,,
  562. + s/-\n.*//
  563. ' >$as_me.lineno &&
  564. - chmod +x $as_me.lineno ||
  565. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  566. - { (exit 1); exit 1; }; }
  567. + chmod +x "$as_me.lineno" ||
  568. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  569. # Don't try to exec as it changes $[0], causing all sort of problems
  570. # (the dirname of $[0] is not the place where we might find the
  571. - # original and so on. Autoconf is especially sensible to this).
  572. - . ./$as_me.lineno
  573. + # original and so on. Autoconf is especially sensitive to this).
  574. + . "./$as_me.lineno"
  575. # Exit status is that of the last command.
  576. exit
  577. }
  578. -
  579. -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  580. - *c*,-n*) ECHO_N= ECHO_C='
  581. -' ECHO_T=' ' ;;
  582. - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  583. - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  584. +ECHO_C= ECHO_N= ECHO_T=
  585. +case `echo -n x` in #(((((
  586. +-n*)
  587. + case `echo 'xy\c'` in
  588. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  589. + xy) ECHO_C='\c';;
  590. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  591. + ECHO_T=' ';;
  592. + esac;;
  593. +*)
  594. + ECHO_N='-n';;
  595. esac
  596. -if expr a : '\(a\)' >/dev/null 2>&1; then
  597. - as_expr=expr
  598. +rm -f conf$$ conf$$.exe conf$$.file
  599. +if test -d conf$$.dir; then
  600. + rm -f conf$$.dir/conf$$.file
  601. else
  602. - as_expr=false
  603. + rm -f conf$$.dir
  604. + mkdir conf$$.dir 2>/dev/null
  605. fi
  606. -
  607. -rm -f conf$$ conf$$.exe conf$$.file
  608. -echo >conf$$.file
  609. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  610. - # We could just check for DJGPP; but this test a) works b) is more generic
  611. - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  612. - if test -f conf$$.exe; then
  613. - # Don't use ln at all; we don't have any links
  614. - as_ln_s='cp -p'
  615. - else
  616. +if (echo >conf$$.file) 2>/dev/null; then
  617. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  618. as_ln_s='ln -s'
  619. + # ... but there are two gotchas:
  620. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  621. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  622. + # In both cases, we have to default to `cp -p'.
  623. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  624. + as_ln_s='cp -p'
  625. + elif ln conf$$.file conf$$ 2>/dev/null; then
  626. + as_ln_s=ln
  627. + else
  628. + as_ln_s='cp -p'
  629. fi
  630. -elif ln conf$$.file conf$$ 2>/dev/null; then
  631. - as_ln_s=ln
  632. else
  633. as_ln_s='cp -p'
  634. fi
  635. -rm -f conf$$ conf$$.exe conf$$.file
  636. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  637. +rmdir conf$$.dir 2>/dev/null
  638. if mkdir -p . 2>/dev/null; then
  639. - as_mkdir_p=:
  640. + as_mkdir_p='mkdir -p "$as_dir"'
  641. else
  642. test -d ./-p && rmdir ./-p
  643. as_mkdir_p=false
  644. fi
  645. -as_executable_p="test -f"
  646. +if test -x / >/dev/null 2>&1; then
  647. + as_test_x='test -x'
  648. +else
  649. + if ls -dL / >/dev/null 2>&1; then
  650. + as_ls_L_option=L
  651. + else
  652. + as_ls_L_option=
  653. + fi
  654. + as_test_x='
  655. + eval sh -c '\''
  656. + if test -d "$1"; then
  657. + test -d "$1/.";
  658. + else
  659. + case $1 in #(
  660. + -*)set "./$1";;
  661. + esac;
  662. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  663. + ???[sx]*):;;*)false;;esac;fi
  664. + '\'' sh
  665. + '
  666. +fi
  667. +as_executable_p=$as_test_x
  668. # Sed expression to map a string onto a valid CPP name.
  669. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  670. @@ -231,38 +534,25 @@
  671. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  672. -# IFS
  673. -# We need space, tab and new line, in precisely that order.
  674. -as_nl='
  675. -'
  676. -IFS=" $as_nl"
  677. -
  678. -# CDPATH.
  679. -$as_unset CDPATH
  680. -
  681. +test -n "$DJDIR" || exec 7<&0 </dev/null
  682. +exec 6>&1
  683. # Name of the host.
  684. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  685. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  686. # so uname gets run too.
  687. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  688. -exec 6>&1
  689. -
  690. #
  691. # Initializations.
  692. #
  693. ac_default_prefix=/usr/local
  694. +ac_clean_files=
  695. ac_config_libobj_dir=.
  696. +LIBOBJS=
  697. cross_compiling=no
  698. subdirs=
  699. MFLAGS=
  700. MAKEFLAGS=
  701. -SHELL=${CONFIG_SHELL-/bin/sh}
  702. -
  703. -# Maximum number of lines to put in a shell here document.
  704. -# This variable seems obsolete. It should probably be removed, and
  705. -# only ac_max_sed_lines should be used.
  706. -: ${ac_max_here_lines=38}
  707. # Identity of this package.
  708. PACKAGE_NAME=
  709. @@ -270,51 +560,155 @@
  710. PACKAGE_VERSION=
  711. PACKAGE_STRING=
  712. PACKAGE_BUGREPORT=
  713. +PACKAGE_URL=
  714. ac_unique_file="src/libnids.c"
  715. # Factoring default headers for most tests.
  716. ac_includes_default="\
  717. #include <stdio.h>
  718. -#if HAVE_SYS_TYPES_H
  719. +#ifdef HAVE_SYS_TYPES_H
  720. # include <sys/types.h>
  721. #endif
  722. -#if HAVE_SYS_STAT_H
  723. +#ifdef HAVE_SYS_STAT_H
  724. # include <sys/stat.h>
  725. #endif
  726. -#if STDC_HEADERS
  727. +#ifdef STDC_HEADERS
  728. # include <stdlib.h>
  729. # include <stddef.h>
  730. #else
  731. -# if HAVE_STDLIB_H
  732. +# ifdef HAVE_STDLIB_H
  733. # include <stdlib.h>
  734. # endif
  735. #endif
  736. -#if HAVE_STRING_H
  737. -# if !STDC_HEADERS && HAVE_MEMORY_H
  738. +#ifdef HAVE_STRING_H
  739. +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  740. # include <memory.h>
  741. # endif
  742. # include <string.h>
  743. #endif
  744. -#if HAVE_STRINGS_H
  745. +#ifdef HAVE_STRINGS_H
  746. # include <strings.h>
  747. #endif
  748. -#if HAVE_INTTYPES_H
  749. +#ifdef HAVE_INTTYPES_H
  750. # include <inttypes.h>
  751. -#else
  752. -# if HAVE_STDINT_H
  753. -# include <stdint.h>
  754. -# endif
  755. #endif
  756. -#if HAVE_UNISTD_H
  757. +#ifdef HAVE_STDINT_H
  758. +# include <stdint.h>
  759. +#endif
  760. +#ifdef HAVE_UNISTD_H
  761. # include <unistd.h>
  762. #endif"
  763. -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP PCAP_CFLAGS PCAPLIB PKG_CONFIG ac_pt_PKG_CONFIG GLIB_CFLAGS GLIB_LIBS GTHREAD_CFLAGS GTHREAD_LIBS LNET_CFLAGS LNETLIB BUILD_SHARED ICMPHEADER TCPSTATES HAVE_BSD_UDPHDR LIBNET_VER LIBOBJS LTLIBOBJS'
  764. +ac_subst_vars='LTLIBOBJS
  765. +LIBOBJS
  766. +LIBNET_VER
  767. +HAVE_BSD_UDPHDR
  768. +TCPSTATES
  769. +ICMPHEADER
  770. +BUILD_SHARED
  771. +LNETLIB
  772. +LNET_CFLAGS
  773. +GTHREAD_LIBS
  774. +GTHREAD_CFLAGS
  775. +GLIB_LIBS
  776. +GLIB_CFLAGS
  777. +PKG_CONFIG
  778. +PCAPLIB
  779. +PCAP_CFLAGS
  780. +EGREP
  781. +GREP
  782. +CPP
  783. +INSTALL_DATA
  784. +INSTALL_SCRIPT
  785. +INSTALL_PROGRAM
  786. +RANLIB
  787. +OBJEXT
  788. +EXEEXT
  789. +ac_ct_CC
  790. +CPPFLAGS
  791. +LDFLAGS
  792. +CFLAGS
  793. +CC
  794. +target_os
  795. +target_vendor
  796. +target_cpu
  797. +target
  798. +host_os
  799. +host_vendor
  800. +host_cpu
  801. +host
  802. +build_os
  803. +build_vendor
  804. +build_cpu
  805. +build
  806. +target_alias
  807. +host_alias
  808. +build_alias
  809. +LIBS
  810. +ECHO_T
  811. +ECHO_N
  812. +ECHO_C
  813. +DEFS
  814. +mandir
  815. +localedir
  816. +libdir
  817. +psdir
  818. +pdfdir
  819. +dvidir
  820. +htmldir
  821. +infodir
  822. +docdir
  823. +oldincludedir
  824. +includedir
  825. +localstatedir
  826. +sharedstatedir
  827. +sysconfdir
  828. +datadir
  829. +datarootdir
  830. +libexecdir
  831. +sbindir
  832. +bindir
  833. +program_transform_name
  834. +prefix
  835. +exec_prefix
  836. +PACKAGE_URL
  837. +PACKAGE_BUGREPORT
  838. +PACKAGE_STRING
  839. +PACKAGE_VERSION
  840. +PACKAGE_TARNAME
  841. +PACKAGE_NAME
  842. +PATH_SEPARATOR
  843. +SHELL'
  844. ac_subst_files=''
  845. +ac_user_opts='
  846. +enable_option_checking
  847. +with_libpcap
  848. +enable_libglib
  849. +enable_libnet
  850. +with_libnet
  851. +enable_shared
  852. +'
  853. + ac_precious_vars='build_alias
  854. +host_alias
  855. +target_alias
  856. +CC
  857. +CFLAGS
  858. +LDFLAGS
  859. +LIBS
  860. +CPPFLAGS
  861. +CPP
  862. +PKG_CONFIG
  863. +GLIB_CFLAGS
  864. +GLIB_LIBS
  865. +GTHREAD_CFLAGS
  866. +GTHREAD_LIBS'
  867. +
  868. # Initialize some variables set by options.
  869. ac_init_help=
  870. ac_init_version=false
  871. +ac_unrecognized_opts=
  872. +ac_unrecognized_sep=
  873. # The variables have the same names as the options, with
  874. # dashes changed to underlines.
  875. cache_file=/dev/null
  876. @@ -337,34 +731,49 @@
  877. # and all the variables that are supposed to be based on exec_prefix
  878. # by default will actually change.
  879. # Use braces instead of parens because sh, perl, etc. also accept them.
  880. +# (The list follows the same order as the GNU Coding Standards.)
  881. bindir='${exec_prefix}/bin'
  882. sbindir='${exec_prefix}/sbin'
  883. libexecdir='${exec_prefix}/libexec'
  884. -datadir='${prefix}/share'
  885. +datarootdir='${prefix}/share'
  886. +datadir='${datarootdir}'
  887. sysconfdir='${prefix}/etc'
  888. sharedstatedir='${prefix}/com'
  889. localstatedir='${prefix}/var'
  890. -libdir='${exec_prefix}/lib'
  891. includedir='${prefix}/include'
  892. oldincludedir='/usr/include'
  893. -infodir='${prefix}/info'
  894. -mandir='${prefix}/man'
  895. +docdir='${datarootdir}/doc/${PACKAGE}'
  896. +infodir='${datarootdir}/info'
  897. +htmldir='${docdir}'
  898. +dvidir='${docdir}'
  899. +pdfdir='${docdir}'
  900. +psdir='${docdir}'
  901. +libdir='${exec_prefix}/lib'
  902. +localedir='${datarootdir}/locale'
  903. +mandir='${datarootdir}/man'
  904. ac_prev=
  905. +ac_dashdash=
  906. for ac_option
  907. do
  908. # If the previous option needs an argument, assign it.
  909. if test -n "$ac_prev"; then
  910. - eval "$ac_prev=\$ac_option"
  911. + eval $ac_prev=\$ac_option
  912. ac_prev=
  913. continue
  914. fi
  915. - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  916. + case $ac_option in
  917. + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  918. + *=) ac_optarg= ;;
  919. + *) ac_optarg=yes ;;
  920. + esac
  921. # Accept the important Cygnus configure options, so we can diagnose typos.
  922. - case $ac_option in
  923. + case $ac_dashdash$ac_option in
  924. + --)
  925. + ac_dashdash=yes ;;
  926. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  927. ac_prev=bindir ;;
  928. @@ -386,33 +795,59 @@
  929. --config-cache | -C)
  930. cache_file=config.cache ;;
  931. - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  932. + -datadir | --datadir | --datadi | --datad)
  933. ac_prev=datadir ;;
  934. - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  935. - | --da=*)
  936. + -datadir=* | --datadir=* | --datadi=* | --datad=*)
  937. datadir=$ac_optarg ;;
  938. + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  939. + | --dataroo | --dataro | --datar)
  940. + ac_prev=datarootdir ;;
  941. + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  942. + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  943. + datarootdir=$ac_optarg ;;
  944. +
  945. -disable-* | --disable-*)
  946. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  947. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  948. # Reject names that are not valid shell variable names.
  949. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  950. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  951. - { (exit 1); exit 1; }; }
  952. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  953. - eval "enable_$ac_feature=no" ;;
  954. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  955. + as_fn_error $? "invalid feature name: $ac_useropt"
  956. + ac_useropt_orig=$ac_useropt
  957. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  958. + case $ac_user_opts in
  959. + *"
  960. +"enable_$ac_useropt"
  961. +"*) ;;
  962. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  963. + ac_unrecognized_sep=', ';;
  964. + esac
  965. + eval enable_$ac_useropt=no ;;
  966. +
  967. + -docdir | --docdir | --docdi | --doc | --do)
  968. + ac_prev=docdir ;;
  969. + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  970. + docdir=$ac_optarg ;;
  971. +
  972. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  973. + ac_prev=dvidir ;;
  974. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  975. + dvidir=$ac_optarg ;;
  976. -enable-* | --enable-*)
  977. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  978. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  979. # Reject names that are not valid shell variable names.
  980. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  981. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  982. - { (exit 1); exit 1; }; }
  983. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  984. - case $ac_option in
  985. - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  986. - *) ac_optarg=yes ;;
  987. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  988. + as_fn_error $? "invalid feature name: $ac_useropt"
  989. + ac_useropt_orig=$ac_useropt
  990. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  991. + case $ac_user_opts in
  992. + *"
  993. +"enable_$ac_useropt"
  994. +"*) ;;
  995. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  996. + ac_unrecognized_sep=', ';;
  997. esac
  998. - eval "enable_$ac_feature='$ac_optarg'" ;;
  999. + eval enable_$ac_useropt=\$ac_optarg ;;
  1000. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1001. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1002. @@ -439,6 +874,12 @@
  1003. -host=* | --host=* | --hos=* | --ho=*)
  1004. host_alias=$ac_optarg ;;
  1005. + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1006. + ac_prev=htmldir ;;
  1007. + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1008. + | --ht=*)
  1009. + htmldir=$ac_optarg ;;
  1010. +
  1011. -includedir | --includedir | --includedi | --included | --include \
  1012. | --includ | --inclu | --incl | --inc)
  1013. ac_prev=includedir ;;
  1014. @@ -463,13 +904,16 @@
  1015. | --libexe=* | --libex=* | --libe=*)
  1016. libexecdir=$ac_optarg ;;
  1017. + -localedir | --localedir | --localedi | --localed | --locale)
  1018. + ac_prev=localedir ;;
  1019. + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1020. + localedir=$ac_optarg ;;
  1021. +
  1022. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1023. - | --localstate | --localstat | --localsta | --localst \
  1024. - | --locals | --local | --loca | --loc | --lo)
  1025. + | --localstate | --localstat | --localsta | --localst | --locals)
  1026. ac_prev=localstatedir ;;
  1027. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1028. - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  1029. - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  1030. + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1031. localstatedir=$ac_optarg ;;
  1032. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1033. @@ -534,6 +978,16 @@
  1034. | --progr-tra=* | --program-tr=* | --program-t=*)
  1035. program_transform_name=$ac_optarg ;;
  1036. + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1037. + ac_prev=pdfdir ;;
  1038. + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1039. + pdfdir=$ac_optarg ;;
  1040. +
  1041. + -psdir | --psdir | --psdi | --psd | --ps)
  1042. + ac_prev=psdir ;;
  1043. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1044. + psdir=$ac_optarg ;;
  1045. +
  1046. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1047. | -silent | --silent | --silen | --sile | --sil)
  1048. silent=yes ;;
  1049. @@ -584,26 +1038,36 @@
  1050. ac_init_version=: ;;
  1051. -with-* | --with-*)
  1052. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1053. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1054. # Reject names that are not valid shell variable names.
  1055. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  1056. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  1057. - { (exit 1); exit 1; }; }
  1058. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  1059. - case $ac_option in
  1060. - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  1061. - *) ac_optarg=yes ;;
  1062. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1063. + as_fn_error $? "invalid package name: $ac_useropt"
  1064. + ac_useropt_orig=$ac_useropt
  1065. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1066. + case $ac_user_opts in
  1067. + *"
  1068. +"with_$ac_useropt"
  1069. +"*) ;;
  1070. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1071. + ac_unrecognized_sep=', ';;
  1072. esac
  1073. - eval "with_$ac_package='$ac_optarg'" ;;
  1074. + eval with_$ac_useropt=\$ac_optarg ;;
  1075. -without-* | --without-*)
  1076. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1077. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1078. # Reject names that are not valid shell variable names.
  1079. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  1080. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  1081. - { (exit 1); exit 1; }; }
  1082. - ac_package=`echo $ac_package | sed 's/-/_/g'`
  1083. - eval "with_$ac_package=no" ;;
  1084. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1085. + as_fn_error $? "invalid package name: $ac_useropt"
  1086. + ac_useropt_orig=$ac_useropt
  1087. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1088. + case $ac_user_opts in
  1089. + *"
  1090. +"with_$ac_useropt"
  1091. +"*) ;;
  1092. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1093. + ac_unrecognized_sep=', ';;
  1094. + esac
  1095. + eval with_$ac_useropt=no ;;
  1096. --x)
  1097. # Obsolete; use --with-x.
  1098. @@ -623,27 +1087,26 @@
  1099. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1100. x_libraries=$ac_optarg ;;
  1101. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  1102. -Try \`$0 --help' for more information." >&2
  1103. - { (exit 1); exit 1; }; }
  1104. + -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1105. +Try \`$0 --help' for more information"
  1106. ;;
  1107. *=*)
  1108. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1109. # Reject names that are not valid shell variable names.
  1110. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1111. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1112. - { (exit 1); exit 1; }; }
  1113. - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  1114. - eval "$ac_envvar='$ac_optarg'"
  1115. + case $ac_envvar in #(
  1116. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  1117. + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1118. + esac
  1119. + eval $ac_envvar=\$ac_optarg
  1120. export $ac_envvar ;;
  1121. *)
  1122. # FIXME: should be removed in autoconf 3.0.
  1123. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1124. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1125. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1126. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1127. - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1128. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1129. + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1130. ;;
  1131. esac
  1132. @@ -651,31 +1114,36 @@
  1133. if test -n "$ac_prev"; then
  1134. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1135. - { echo "$as_me: error: missing argument to $ac_option" >&2
  1136. - { (exit 1); exit 1; }; }
  1137. + as_fn_error $? "missing argument to $ac_option"
  1138. fi
  1139. -# Be sure to have absolute paths.
  1140. -for ac_var in exec_prefix prefix
  1141. -do
  1142. - eval ac_val=$`echo $ac_var`
  1143. - case $ac_val in
  1144. - [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  1145. - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1146. - { (exit 1); exit 1; }; };;
  1147. +if test -n "$ac_unrecognized_opts"; then
  1148. + case $enable_option_checking in
  1149. + no) ;;
  1150. + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1151. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1152. esac
  1153. -done
  1154. +fi
  1155. -# Be sure to have absolute paths.
  1156. -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  1157. - localstatedir libdir includedir oldincludedir infodir mandir
  1158. +# Check all directory arguments for consistency.
  1159. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1160. + datadir sysconfdir sharedstatedir localstatedir includedir \
  1161. + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1162. + libdir localedir mandir
  1163. do
  1164. - eval ac_val=$`echo $ac_var`
  1165. + eval ac_val=\$$ac_var
  1166. + # Remove trailing slashes.
  1167. + case $ac_val in
  1168. + */ )
  1169. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1170. + eval $ac_var=\$ac_val;;
  1171. + esac
  1172. + # Be sure to have absolute directory names.
  1173. case $ac_val in
  1174. - [\\/$]* | ?:[\\/]* ) ;;
  1175. - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1176. - { (exit 1); exit 1; }; };;
  1177. + [\\/$]* | ?:[\\/]* ) continue;;
  1178. + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1179. esac
  1180. + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1181. done
  1182. # There might be people who depend on the old broken behavior: `$host'
  1183. @@ -689,8 +1157,8 @@
  1184. if test "x$host_alias" != x; then
  1185. if test "x$build_alias" = x; then
  1186. cross_compiling=maybe
  1187. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1188. - If a cross compiler is detected then cross compile mode will be used." >&2
  1189. + $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1190. + If a cross compiler is detected then cross compile mode will be used" >&2
  1191. elif test "x$build_alias" != "x$host_alias"; then
  1192. cross_compiling=yes
  1193. fi
  1194. @@ -702,94 +1170,72 @@
  1195. test "$silent" = yes && exec 6>/dev/null
  1196. +ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1197. +ac_ls_di=`ls -di .` &&
  1198. +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1199. + as_fn_error $? "working directory cannot be determined"
  1200. +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1201. + as_fn_error $? "pwd does not report name of working directory"
  1202. +
  1203. +
  1204. # Find the source files, if location was not specified.
  1205. if test -z "$srcdir"; then
  1206. ac_srcdir_defaulted=yes
  1207. - # Try the directory containing this script, then its parent.
  1208. - ac_confdir=`(dirname "$0") 2>/dev/null ||
  1209. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1210. - X"$0" : 'X\(//\)[^/]' \| \
  1211. - X"$0" : 'X\(//\)$' \| \
  1212. - X"$0" : 'X\(/\)' \| \
  1213. - . : '\(.\)' 2>/dev/null ||
  1214. -echo X"$0" |
  1215. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  1216. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  1217. - /^X\(\/\/\)$/{ s//\1/; q; }
  1218. - /^X\(\/\).*/{ s//\1/; q; }
  1219. - s/.*/./; q'`
  1220. + # Try the directory containing this script, then the parent directory.
  1221. + ac_confdir=`$as_dirname -- "$as_myself" ||
  1222. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1223. + X"$as_myself" : 'X\(//\)[^/]' \| \
  1224. + X"$as_myself" : 'X\(//\)$' \| \
  1225. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1226. +$as_echo X"$as_myself" |
  1227. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1228. + s//\1/
  1229. + q
  1230. + }
  1231. + /^X\(\/\/\)[^/].*/{
  1232. + s//\1/
  1233. + q
  1234. + }
  1235. + /^X\(\/\/\)$/{
  1236. + s//\1/
  1237. + q
  1238. + }
  1239. + /^X\(\/\).*/{
  1240. + s//\1/
  1241. + q
  1242. + }
  1243. + s/.*/./; q'`
  1244. srcdir=$ac_confdir
  1245. - if test ! -r $srcdir/$ac_unique_file; then
  1246. + if test ! -r "$srcdir/$ac_unique_file"; then
  1247. srcdir=..
  1248. fi
  1249. else
  1250. ac_srcdir_defaulted=no
  1251. fi
  1252. -if test ! -r $srcdir/$ac_unique_file; then
  1253. - if test "$ac_srcdir_defaulted" = yes; then
  1254. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  1255. - { (exit 1); exit 1; }; }
  1256. - else
  1257. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1258. - { (exit 1); exit 1; }; }
  1259. - fi
  1260. -fi
  1261. -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  1262. - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  1263. - { (exit 1); exit 1; }; }
  1264. -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  1265. -ac_env_build_alias_set=${build_alias+set}
  1266. -ac_env_build_alias_value=$build_alias
  1267. -ac_cv_env_build_alias_set=${build_alias+set}
  1268. -ac_cv_env_build_alias_value=$build_alias
  1269. -ac_env_host_alias_set=${host_alias+set}
  1270. -ac_env_host_alias_value=$host_alias
  1271. -ac_cv_env_host_alias_set=${host_alias+set}
  1272. -ac_cv_env_host_alias_value=$host_alias
  1273. -ac_env_target_alias_set=${target_alias+set}
  1274. -ac_env_target_alias_value=$target_alias
  1275. -ac_cv_env_target_alias_set=${target_alias+set}
  1276. -ac_cv_env_target_alias_value=$target_alias
  1277. -ac_env_CC_set=${CC+set}
  1278. -ac_env_CC_value=$CC
  1279. -ac_cv_env_CC_set=${CC+set}
  1280. -ac_cv_env_CC_value=$CC
  1281. -ac_env_CFLAGS_set=${CFLAGS+set}
  1282. -ac_env_CFLAGS_value=$CFLAGS
  1283. -ac_cv_env_CFLAGS_set=${CFLAGS+set}
  1284. -ac_cv_env_CFLAGS_value=$CFLAGS
  1285. -ac_env_LDFLAGS_set=${LDFLAGS+set}
  1286. -ac_env_LDFLAGS_value=$LDFLAGS
  1287. -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  1288. -ac_cv_env_LDFLAGS_value=$LDFLAGS
  1289. -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  1290. -ac_env_CPPFLAGS_value=$CPPFLAGS
  1291. -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  1292. -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  1293. -ac_env_CPP_set=${CPP+set}
  1294. -ac_env_CPP_value=$CPP
  1295. -ac_cv_env_CPP_set=${CPP+set}
  1296. -ac_cv_env_CPP_value=$CPP
  1297. -ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
  1298. -ac_env_PKG_CONFIG_value=$PKG_CONFIG
  1299. -ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
  1300. -ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
  1301. -ac_env_GLIB_CFLAGS_set=${GLIB_CFLAGS+set}
  1302. -ac_env_GLIB_CFLAGS_value=$GLIB_CFLAGS
  1303. -ac_cv_env_GLIB_CFLAGS_set=${GLIB_CFLAGS+set}
  1304. -ac_cv_env_GLIB_CFLAGS_value=$GLIB_CFLAGS
  1305. -ac_env_GLIB_LIBS_set=${GLIB_LIBS+set}
  1306. -ac_env_GLIB_LIBS_value=$GLIB_LIBS
  1307. -ac_cv_env_GLIB_LIBS_set=${GLIB_LIBS+set}
  1308. -ac_cv_env_GLIB_LIBS_value=$GLIB_LIBS
  1309. -ac_env_GTHREAD_CFLAGS_set=${GTHREAD_CFLAGS+set}
  1310. -ac_env_GTHREAD_CFLAGS_value=$GTHREAD_CFLAGS
  1311. -ac_cv_env_GTHREAD_CFLAGS_set=${GTHREAD_CFLAGS+set}
  1312. -ac_cv_env_GTHREAD_CFLAGS_value=$GTHREAD_CFLAGS
  1313. -ac_env_GTHREAD_LIBS_set=${GTHREAD_LIBS+set}
  1314. -ac_env_GTHREAD_LIBS_value=$GTHREAD_LIBS
  1315. -ac_cv_env_GTHREAD_LIBS_set=${GTHREAD_LIBS+set}
  1316. -ac_cv_env_GTHREAD_LIBS_value=$GTHREAD_LIBS
  1317. +if test ! -r "$srcdir/$ac_unique_file"; then
  1318. + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1319. + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1320. +fi
  1321. +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1322. +ac_abs_confdir=`(
  1323. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1324. + pwd)`
  1325. +# When building in place, set srcdir=.
  1326. +if test "$ac_abs_confdir" = "$ac_pwd"; then
  1327. + srcdir=.
  1328. +fi
  1329. +# Remove unnecessary trailing slashes from srcdir.
  1330. +# Double slashes in file names in object file debugging info
  1331. +# mess up M-x gdb in Emacs.
  1332. +case $srcdir in
  1333. +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1334. +esac
  1335. +for ac_var in $ac_precious_vars; do
  1336. + eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1337. + eval ac_env_${ac_var}_value=\$${ac_var}
  1338. + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1339. + eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1340. +done
  1341. #
  1342. # Report the --help message.
  1343. @@ -812,20 +1258,17 @@
  1344. --help=short display options specific to this package
  1345. --help=recursive display the short help of all the included packages
  1346. -V, --version display version information and exit
  1347. - -q, --quiet, --silent do not print \`checking...' messages
  1348. + -q, --quiet, --silent do not print \`checking ...' messages
  1349. --cache-file=FILE cache test results in FILE [disabled]
  1350. -C, --config-cache alias for \`--cache-file=config.cache'
  1351. -n, --no-create do not create output files
  1352. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1353. -_ACEOF
  1354. -
  1355. - cat <<_ACEOF
  1356. Installation directories:
  1357. --prefix=PREFIX install architecture-independent files in PREFIX
  1358. - [$ac_default_prefix]
  1359. + [$ac_default_prefix]
  1360. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1361. - [PREFIX]
  1362. + [PREFIX]
  1363. By default, \`make install' will install all the files in
  1364. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1365. @@ -835,18 +1278,25 @@
  1366. For better control, use the options below.
  1367. Fine tuning of the installation directories:
  1368. - --bindir=DIR user executables [EPREFIX/bin]
  1369. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  1370. - --libexecdir=DIR program executables [EPREFIX/libexec]
  1371. - --datadir=DIR read-only architecture-independent data [PREFIX/share]
  1372. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1373. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1374. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1375. - --libdir=DIR object code libraries [EPREFIX/lib]
  1376. - --includedir=DIR C header files [PREFIX/include]
  1377. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1378. - --infodir=DIR info documentation [PREFIX/info]
  1379. - --mandir=DIR man documentation [PREFIX/man]
  1380. + --bindir=DIR user executables [EPREFIX/bin]
  1381. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  1382. + --libexecdir=DIR program executables [EPREFIX/libexec]
  1383. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1384. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1385. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1386. + --libdir=DIR object code libraries [EPREFIX/lib]
  1387. + --includedir=DIR C header files [PREFIX/include]
  1388. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1389. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1390. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1391. + --infodir=DIR info documentation [DATAROOTDIR/info]
  1392. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1393. + --mandir=DIR man documentation [DATAROOTDIR/man]
  1394. + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1395. + --htmldir=DIR html documentation [DOCDIR]
  1396. + --dvidir=DIR dvi documentation [DOCDIR]
  1397. + --pdfdir=DIR pdf documentation [DOCDIR]
  1398. + --psdir=DIR ps documentation [DOCDIR]
  1399. _ACEOF
  1400. cat <<\_ACEOF
  1401. @@ -863,6 +1313,7 @@
  1402. cat <<\_ACEOF
  1403. Optional Features:
  1404. + --disable-option-checking ignore unrecognized --enable/--with options
  1405. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1406. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1407. --disable-libglib use glib2 for multiprocessing support
  1408. @@ -880,8 +1331,9 @@
  1409. CFLAGS C compiler flags
  1410. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1411. nonstandard directory <lib dir>
  1412. - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  1413. - headers in a nonstandard directory <include dir>
  1414. + LIBS libraries to pass to the linker, e.g. -l<library>
  1415. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1416. + you have headers in a nonstandard directory <include dir>
  1417. CPP C preprocessor
  1418. PKG_CONFIG path to pkg-config utility
  1419. GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
  1420. @@ -894,155 +1346,478 @@
  1421. Use these variables to override the choices made by `configure' or to help
  1422. it to find libraries and programs with nonstandard names/locations.
  1423. +Report bugs to the package provider.
  1424. _ACEOF
  1425. +ac_status=$?
  1426. fi
  1427. if test "$ac_init_help" = "recursive"; then
  1428. # If there are subdirs, report their specific --help.
  1429. - ac_popdir=`pwd`
  1430. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1431. - test -d $ac_dir || continue
  1432. + test -d "$ac_dir" ||
  1433. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1434. + continue
  1435. ac_builddir=.
  1436. -if test "$ac_dir" != .; then
  1437. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1438. - # A "../" for each directory in $ac_dir_suffix.
  1439. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  1440. -else
  1441. - ac_dir_suffix= ac_top_builddir=
  1442. -fi
  1443. +case "$ac_dir" in
  1444. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1445. +*)
  1446. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1447. + # A ".." for each directory in $ac_dir_suffix.
  1448. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1449. + case $ac_top_builddir_sub in
  1450. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1451. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1452. + esac ;;
  1453. +esac
  1454. +ac_abs_top_builddir=$ac_pwd
  1455. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1456. +# for backward compatibility:
  1457. +ac_top_builddir=$ac_top_build_prefix
  1458. case $srcdir in
  1459. - .) # No --srcdir option. We are building in place.
  1460. + .) # We are building in place.
  1461. ac_srcdir=.
  1462. - if test -z "$ac_top_builddir"; then
  1463. - ac_top_srcdir=.
  1464. - else
  1465. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  1466. - fi ;;
  1467. - [\\/]* | ?:[\\/]* ) # Absolute path.
  1468. + ac_top_srcdir=$ac_top_builddir_sub
  1469. + ac_abs_top_srcdir=$ac_pwd ;;
  1470. + [\\/]* | ?:[\\/]* ) # Absolute name.
  1471. ac_srcdir=$srcdir$ac_dir_suffix;
  1472. - ac_top_srcdir=$srcdir ;;
  1473. - *) # Relative path.
  1474. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  1475. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  1476. -esac
  1477. -
  1478. -# Do not use `cd foo && pwd` to compute absolute paths, because
  1479. -# the directories may not exist.
  1480. -case `pwd` in
  1481. -.) ac_abs_builddir="$ac_dir";;
  1482. -*)
  1483. - case "$ac_dir" in
  1484. - .) ac_abs_builddir=`pwd`;;
  1485. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  1486. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  1487. - esac;;
  1488. -esac
  1489. -case $ac_abs_builddir in
  1490. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  1491. -*)
  1492. - case ${ac_top_builddir}. in
  1493. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  1494. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1495. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1496. - esac;;
  1497. -esac
  1498. -case $ac_abs_builddir in
  1499. -.) ac_abs_srcdir=$ac_srcdir;;
  1500. -*)
  1501. - case $ac_srcdir in
  1502. - .) ac_abs_srcdir=$ac_abs_builddir;;
  1503. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1504. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1505. - esac;;
  1506. -esac
  1507. -case $ac_abs_builddir in
  1508. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  1509. -*)
  1510. - case $ac_top_srcdir in
  1511. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1512. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1513. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1514. - esac;;
  1515. + ac_top_srcdir=$srcdir
  1516. + ac_abs_top_srcdir=$srcdir ;;
  1517. + *) # Relative name.
  1518. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1519. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  1520. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1521. esac
  1522. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1523. - cd $ac_dir
  1524. - # Check for guested configure; otherwise get Cygnus style configure.
  1525. - if test -f $ac_srcdir/configure.gnu; then
  1526. - echo
  1527. - $SHELL $ac_srcdir/configure.gnu --help=recursive
  1528. - elif test -f $ac_srcdir/configure; then
  1529. - echo
  1530. - $SHELL $ac_srcdir/configure --help=recursive
  1531. - elif test -f $ac_srcdir/configure.ac ||
  1532. - test -f $ac_srcdir/configure.in; then
  1533. - echo
  1534. - $ac_configure --help
  1535. + cd "$ac_dir" || { ac_status=$?; continue; }
  1536. + # Check for guested configure.
  1537. + if test -f "$ac_srcdir/configure.gnu"; then
  1538. + echo &&
  1539. + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1540. + elif test -f "$ac_srcdir/configure"; then
  1541. + echo &&
  1542. + $SHELL "$ac_srcdir/configure" --help=recursive
  1543. else
  1544. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1545. - fi
  1546. - cd "$ac_popdir"
  1547. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1548. + fi || ac_status=$?
  1549. + cd "$ac_pwd" || { ac_status=$?; break; }
  1550. done
  1551. fi
  1552. -test -n "$ac_init_help" && exit 0
  1553. +test -n "$ac_init_help" && exit $ac_status
  1554. if $ac_init_version; then
  1555. cat <<\_ACEOF
  1556. +configure
  1557. +generated by GNU Autoconf 2.68
  1558. -Copyright (C) 2003 Free Software Foundation, Inc.
  1559. +Copyright (C) 2010 Free Software Foundation, Inc.
  1560. This configure script is free software; the Free Software Foundation
  1561. gives unlimited permission to copy, distribute and modify it.
  1562. _ACEOF
  1563. - exit 0
  1564. + exit
  1565. fi
  1566. -exec 5>config.log
  1567. -cat >&5 <<_ACEOF
  1568. -This file contains any messages produced by compilers while
  1569. -running configure, to aid debugging if configure makes a mistake.
  1570. -
  1571. -It was created by $as_me, which was
  1572. -generated by GNU Autoconf 2.59. Invocation command line was
  1573. - $ $0 $@
  1574. -
  1575. -_ACEOF
  1576. +## ------------------------ ##
  1577. +## Autoconf initialization. ##
  1578. +## ------------------------ ##
  1579. +
  1580. +# ac_fn_c_try_compile LINENO
  1581. +# --------------------------
  1582. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  1583. +ac_fn_c_try_compile ()
  1584. {
  1585. -cat <<_ASUNAME
  1586. -## --------- ##
  1587. -## Platform. ##
  1588. -## --------- ##
  1589. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1590. + rm -f conftest.$ac_objext
  1591. + if { { ac_try="$ac_compile"
  1592. +case "(($ac_try" in
  1593. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1594. + *) ac_try_echo=$ac_try;;
  1595. +esac
  1596. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1597. +$as_echo "$ac_try_echo"; } >&5
  1598. + (eval "$ac_compile") 2>conftest.err
  1599. + ac_status=$?
  1600. + if test -s conftest.err; then
  1601. + grep -v '^ *+' conftest.err >conftest.er1
  1602. + cat conftest.er1 >&5
  1603. + mv -f conftest.er1 conftest.err
  1604. + fi
  1605. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1606. + test $ac_status = 0; } && {
  1607. + test -z "$ac_c_werror_flag" ||
  1608. + test ! -s conftest.err
  1609. + } && test -s conftest.$ac_objext; then :
  1610. + ac_retval=0
  1611. +else
  1612. + $as_echo "$as_me: failed program was:" >&5
  1613. +sed 's/^/| /' conftest.$ac_ext >&5
  1614. -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1615. -uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1616. -uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1617. -uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1618. -uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1619. + ac_retval=1
  1620. +fi
  1621. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1622. + as_fn_set_status $ac_retval
  1623. -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1624. -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1625. +} # ac_fn_c_try_compile
  1626. -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1627. -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1628. -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1629. -hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1630. -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1631. -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1632. -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1633. +# ac_fn_c_try_cpp LINENO
  1634. +# ----------------------
  1635. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1636. +ac_fn_c_try_cpp ()
  1637. +{
  1638. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1639. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  1640. +case "(($ac_try" in
  1641. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1642. + *) ac_try_echo=$ac_try;;
  1643. +esac
  1644. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1645. +$as_echo "$ac_try_echo"; } >&5
  1646. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1647. + ac_status=$?
  1648. + if test -s conftest.err; then
  1649. + grep -v '^ *+' conftest.err >conftest.er1
  1650. + cat conftest.er1 >&5
  1651. + mv -f conftest.er1 conftest.err
  1652. + fi
  1653. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1654. + test $ac_status = 0; } > conftest.i && {
  1655. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1656. + test ! -s conftest.err
  1657. + }; then :
  1658. + ac_retval=0
  1659. +else
  1660. + $as_echo "$as_me: failed program was:" >&5
  1661. +sed 's/^/| /' conftest.$ac_ext >&5
  1662. -_ASUNAME
  1663. + ac_retval=1
  1664. +fi
  1665. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1666. + as_fn_set_status $ac_retval
  1667. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1668. -for as_dir in $PATH
  1669. -do
  1670. - IFS=$as_save_IFS
  1671. - test -z "$as_dir" && as_dir=.
  1672. - echo "PATH: $as_dir"
  1673. -done
  1674. +} # ac_fn_c_try_cpp
  1675. -} >&5
  1676. +# ac_fn_c_try_run LINENO
  1677. +# ----------------------
  1678. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1679. +# that executables *can* be run.
  1680. +ac_fn_c_try_run ()
  1681. +{
  1682. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1683. + if { { ac_try="$ac_link"
  1684. +case "(($ac_try" in
  1685. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1686. + *) ac_try_echo=$ac_try;;
  1687. +esac
  1688. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1689. +$as_echo "$ac_try_echo"; } >&5
  1690. + (eval "$ac_link") 2>&5
  1691. + ac_status=$?
  1692. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1693. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1694. + { { case "(($ac_try" in
  1695. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1696. + *) ac_try_echo=$ac_try;;
  1697. +esac
  1698. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1699. +$as_echo "$ac_try_echo"; } >&5
  1700. + (eval "$ac_try") 2>&5
  1701. + ac_status=$?
  1702. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1703. + test $ac_status = 0; }; }; then :
  1704. + ac_retval=0
  1705. +else
  1706. + $as_echo "$as_me: program exited with status $ac_status" >&5
  1707. + $as_echo "$as_me: failed program was:" >&5
  1708. +sed 's/^/| /' conftest.$ac_ext >&5
  1709. -cat >&5 <<_ACEOF
  1710. + ac_retval=$ac_status
  1711. +fi
  1712. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1713. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1714. + as_fn_set_status $ac_retval
  1715. +
  1716. +} # ac_fn_c_try_run
  1717. +
  1718. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1719. +# -------------------------------------------------------
  1720. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1721. +# the include files in INCLUDES and setting the cache variable VAR
  1722. +# accordingly.
  1723. +ac_fn_c_check_header_mongrel ()
  1724. +{
  1725. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1726. + if eval \${$3+:} false; then :
  1727. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1728. +$as_echo_n "checking for $2... " >&6; }
  1729. +if eval \${$3+:} false; then :
  1730. + $as_echo_n "(cached) " >&6
  1731. +fi
  1732. +eval ac_res=\$$3
  1733. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1734. +$as_echo "$ac_res" >&6; }
  1735. +else
  1736. + # Is the header compilable?
  1737. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1738. +$as_echo_n "checking $2 usability... " >&6; }
  1739. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1740. +/* end confdefs.h. */
  1741. +$4
  1742. +#include <$2>
  1743. +_ACEOF
  1744. +if ac_fn_c_try_compile "$LINENO"; then :
  1745. + ac_header_compiler=yes
  1746. +else
  1747. + ac_header_compiler=no
  1748. +fi
  1749. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1750. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1751. +$as_echo "$ac_header_compiler" >&6; }
  1752. +
  1753. +# Is the header present?
  1754. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1755. +$as_echo_n "checking $2 presence... " >&6; }
  1756. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1757. +/* end confdefs.h. */
  1758. +#include <$2>
  1759. +_ACEOF
  1760. +if ac_fn_c_try_cpp "$LINENO"; then :
  1761. + ac_header_preproc=yes
  1762. +else
  1763. + ac_header_preproc=no
  1764. +fi
  1765. +rm -f conftest.err conftest.i conftest.$ac_ext
  1766. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1767. +$as_echo "$ac_header_preproc" >&6; }
  1768. +
  1769. +# So? What about this header?
  1770. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1771. + yes:no: )
  1772. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1773. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1774. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1775. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1776. + ;;
  1777. + no:yes:* )
  1778. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1779. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1780. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1781. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1782. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1783. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1784. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1785. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1786. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1787. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1788. + ;;
  1789. +esac
  1790. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1791. +$as_echo_n "checking for $2... " >&6; }
  1792. +if eval \${$3+:} false; then :
  1793. + $as_echo_n "(cached) " >&6
  1794. +else
  1795. + eval "$3=\$ac_header_compiler"
  1796. +fi
  1797. +eval ac_res=\$$3
  1798. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1799. +$as_echo "$ac_res" >&6; }
  1800. +fi
  1801. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1802. +
  1803. +} # ac_fn_c_check_header_mongrel
  1804. +
  1805. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1806. +# -------------------------------------------------------
  1807. +# Tests whether HEADER exists and can be compiled using the include files in
  1808. +# INCLUDES, setting the cache variable VAR accordingly.
  1809. +ac_fn_c_check_header_compile ()
  1810. +{
  1811. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1812. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1813. +$as_echo_n "checking for $2... " >&6; }
  1814. +if eval \${$3+:} false; then :
  1815. + $as_echo_n "(cached) " >&6
  1816. +else
  1817. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1818. +/* end confdefs.h. */
  1819. +$4
  1820. +#include <$2>
  1821. +_ACEOF
  1822. +if ac_fn_c_try_compile "$LINENO"; then :
  1823. + eval "$3=yes"
  1824. +else
  1825. + eval "$3=no"
  1826. +fi
  1827. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1828. +fi
  1829. +eval ac_res=\$$3
  1830. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1831. +$as_echo "$ac_res" >&6; }
  1832. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1833. +
  1834. +} # ac_fn_c_check_header_compile
  1835. +
  1836. +# ac_fn_c_try_link LINENO
  1837. +# -----------------------
  1838. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  1839. +ac_fn_c_try_link ()
  1840. +{
  1841. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1842. + rm -f conftest.$ac_objext conftest$ac_exeext
  1843. + if { { ac_try="$ac_link"
  1844. +case "(($ac_try" in
  1845. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1846. + *) ac_try_echo=$ac_try;;
  1847. +esac
  1848. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1849. +$as_echo "$ac_try_echo"; } >&5
  1850. + (eval "$ac_link") 2>conftest.err
  1851. + ac_status=$?
  1852. + if test -s conftest.err; then
  1853. + grep -v '^ *+' conftest.err >conftest.er1
  1854. + cat conftest.er1 >&5
  1855. + mv -f conftest.er1 conftest.err
  1856. + fi
  1857. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1858. + test $ac_status = 0; } && {
  1859. + test -z "$ac_c_werror_flag" ||
  1860. + test ! -s conftest.err
  1861. + } && test -s conftest$ac_exeext && {
  1862. + test "$cross_compiling" = yes ||
  1863. + $as_test_x conftest$ac_exeext
  1864. + }; then :
  1865. + ac_retval=0
  1866. +else
  1867. + $as_echo "$as_me: failed program was:" >&5
  1868. +sed 's/^/| /' conftest.$ac_ext >&5
  1869. +
  1870. + ac_retval=1
  1871. +fi
  1872. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1873. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1874. + # interfere with the next link command; also delete a directory that is
  1875. + # left behind by Apple's compiler. We do this before executing the actions.
  1876. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1877. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1878. + as_fn_set_status $ac_retval
  1879. +
  1880. +} # ac_fn_c_try_link
  1881. +
  1882. +# ac_fn_c_check_func LINENO FUNC VAR
  1883. +# ----------------------------------
  1884. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  1885. +ac_fn_c_check_func ()
  1886. +{
  1887. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1888. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1889. +$as_echo_n "checking for $2... " >&6; }
  1890. +if eval \${$3+:} false; then :
  1891. + $as_echo_n "(cached) " >&6
  1892. +else
  1893. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1894. +/* end confdefs.h. */
  1895. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1896. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1897. +#define $2 innocuous_$2
  1898. +
  1899. +/* System header to define __stub macros and hopefully few prototypes,
  1900. + which can conflict with char $2 (); below.
  1901. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1902. + <limits.h> exists even on freestanding compilers. */
  1903. +
  1904. +#ifdef __STDC__
  1905. +# include <limits.h>
  1906. +#else
  1907. +# include <assert.h>
  1908. +#endif
  1909. +
  1910. +#undef $2
  1911. +
  1912. +/* Override any GCC internal prototype to avoid an error.
  1913. + Use char because int might match the return type of a GCC
  1914. + builtin and then its argument prototype would still apply. */
  1915. +#ifdef __cplusplus
  1916. +extern "C"
  1917. +#endif
  1918. +char $2 ();
  1919. +/* The GNU C library defines this for functions which it implements
  1920. + to always fail with ENOSYS. Some functions are actually named
  1921. + something starting with __ and the normal name is an alias. */
  1922. +#if defined __stub_$2 || defined __stub___$2
  1923. +choke me
  1924. +#endif
  1925. +
  1926. +int
  1927. +main ()
  1928. +{
  1929. +return $2 ();
  1930. + ;
  1931. + return 0;
  1932. +}
  1933. +_ACEOF
  1934. +if ac_fn_c_try_link "$LINENO"; then :
  1935. + eval "$3=yes"
  1936. +else
  1937. + eval "$3=no"
  1938. +fi
  1939. +rm -f core conftest.err conftest.$ac_objext \
  1940. + conftest$ac_exeext conftest.$ac_ext
  1941. +fi
  1942. +eval ac_res=\$$3
  1943. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1944. +$as_echo "$ac_res" >&6; }
  1945. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1946. +
  1947. +} # ac_fn_c_check_func
  1948. +cat >config.log <<_ACEOF
  1949. +This file contains any messages produced by compilers while
  1950. +running configure, to aid debugging if configure makes a mistake.
  1951. +
  1952. +It was created by $as_me, which was
  1953. +generated by GNU Autoconf 2.68. Invocation command line was
  1954. +
  1955. + $ $0 $@
  1956. +
  1957. +_ACEOF
  1958. +exec 5>>config.log
  1959. +{
  1960. +cat <<_ASUNAME
  1961. +## --------- ##
  1962. +## Platform. ##
  1963. +## --------- ##
  1964. +
  1965. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1966. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1967. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1968. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1969. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1970. +
  1971. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1972. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1973. +
  1974. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1975. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1976. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1977. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1978. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1979. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1980. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1981. +
  1982. +_ASUNAME
  1983. +
  1984. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1985. +for as_dir in $PATH
  1986. +do
  1987. + IFS=$as_save_IFS
  1988. + test -z "$as_dir" && as_dir=.
  1989. + $as_echo "PATH: $as_dir"
  1990. + done
  1991. +IFS=$as_save_IFS
  1992. +
  1993. +} >&5
  1994. +
  1995. +cat >&5 <<_ACEOF
  1996. ## ----------- ##
  1997. @@ -1060,7 +1835,6 @@
  1998. ac_configure_args=
  1999. ac_configure_args0=
  2000. ac_configure_args1=
  2001. -ac_sep=
  2002. ac_must_keep_next=false
  2003. for ac_pass in 1 2
  2004. do
  2005. @@ -1071,13 +1845,13 @@
  2006. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2007. | -silent | --silent | --silen | --sile | --sil)
  2008. continue ;;
  2009. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  2010. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2011. + *\'*)
  2012. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2013. esac
  2014. case $ac_pass in
  2015. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  2016. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2017. 2)
  2018. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  2019. + as_fn_append ac_configure_args1 " '$ac_arg'"
  2020. if test $ac_must_keep_next = true; then
  2021. ac_must_keep_next=false # Got value, back to normal.
  2022. else
  2023. @@ -1093,104 +1867,115 @@
  2024. -* ) ac_must_keep_next=true ;;
  2025. esac
  2026. fi
  2027. - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  2028. - # Get rid of the leading space.
  2029. - ac_sep=" "
  2030. + as_fn_append ac_configure_args " '$ac_arg'"
  2031. ;;
  2032. esac
  2033. done
  2034. done
  2035. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  2036. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  2037. +{ ac_configure_args0=; unset ac_configure_args0;}
  2038. +{ ac_configure_args1=; unset ac_configure_args1;}
  2039. # When interrupted or exit'd, cleanup temporary files, and complete
  2040. # config.log. We remove comments because anyway the quotes in there
  2041. # would cause problems or look ugly.
  2042. -# WARNING: Be sure not to use single quotes in there, as some shells,
  2043. -# such as our DU 5.0 friend, will then `close' the trap.
  2044. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  2045. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2046. trap 'exit_status=$?
  2047. # Save into config.log some information that might help in debugging.
  2048. {
  2049. echo
  2050. - cat <<\_ASBOX
  2051. -## ---------------- ##
  2052. + $as_echo "## ---------------- ##
  2053. ## Cache variables. ##
  2054. -## ---------------- ##
  2055. -_ASBOX
  2056. +## ---------------- ##"
  2057. echo
  2058. # The following way of writing the cache mishandles newlines in values,
  2059. -{
  2060. +(
  2061. + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2062. + eval ac_val=\$$ac_var
  2063. + case $ac_val in #(
  2064. + *${as_nl}*)
  2065. + case $ac_var in #(
  2066. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2067. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2068. + esac
  2069. + case $ac_var in #(
  2070. + _ | IFS | as_nl) ;; #(
  2071. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2072. + *) { eval $ac_var=; unset $ac_var;} ;;
  2073. + esac ;;
  2074. + esac
  2075. + done
  2076. (set) 2>&1 |
  2077. - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  2078. - *ac_space=\ *)
  2079. + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2080. + *${as_nl}ac_space=\ *)
  2081. sed -n \
  2082. - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  2083. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  2084. - ;;
  2085. + "s/'\''/'\''\\\\'\'''\''/g;
  2086. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2087. + ;; #(
  2088. *)
  2089. - sed -n \
  2090. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2091. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2092. ;;
  2093. - esac;
  2094. -}
  2095. + esac |
  2096. + sort
  2097. +)
  2098. echo
  2099. - cat <<\_ASBOX
  2100. -## ----------------- ##
  2101. + $as_echo "## ----------------- ##
  2102. ## Output variables. ##
  2103. -## ----------------- ##
  2104. -_ASBOX
  2105. +## ----------------- ##"
  2106. echo
  2107. for ac_var in $ac_subst_vars
  2108. do
  2109. - eval ac_val=$`echo $ac_var`
  2110. - echo "$ac_var='"'"'$ac_val'"'"'"
  2111. + eval ac_val=\$$ac_var
  2112. + case $ac_val in
  2113. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2114. + esac
  2115. + $as_echo "$ac_var='\''$ac_val'\''"
  2116. done | sort
  2117. echo
  2118. if test -n "$ac_subst_files"; then
  2119. - cat <<\_ASBOX
  2120. -## ------------- ##
  2121. -## Output files. ##
  2122. -## ------------- ##
  2123. -_ASBOX
  2124. + $as_echo "## ------------------- ##
  2125. +## File substitutions. ##
  2126. +## ------------------- ##"
  2127. echo
  2128. for ac_var in $ac_subst_files
  2129. do
  2130. - eval ac_val=$`echo $ac_var`
  2131. - echo "$ac_var='"'"'$ac_val'"'"'"
  2132. + eval ac_val=\$$ac_var
  2133. + case $ac_val in
  2134. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2135. + esac
  2136. + $as_echo "$ac_var='\''$ac_val'\''"
  2137. done | sort
  2138. echo
  2139. fi
  2140. if test -s confdefs.h; then
  2141. - cat <<\_ASBOX
  2142. -## ----------- ##
  2143. + $as_echo "## ----------- ##
  2144. ## confdefs.h. ##
  2145. -## ----------- ##
  2146. -_ASBOX
  2147. +## ----------- ##"
  2148. echo
  2149. - sed "/^$/d" confdefs.h | sort
  2150. + cat confdefs.h
  2151. echo
  2152. fi
  2153. test "$ac_signal" != 0 &&
  2154. - echo "$as_me: caught signal $ac_signal"
  2155. - echo "$as_me: exit $exit_status"
  2156. + $as_echo "$as_me: caught signal $ac_signal"
  2157. + $as_echo "$as_me: exit $exit_status"
  2158. } >&5
  2159. - rm -f core *.core &&
  2160. - rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  2161. + rm -f core *.core core.conftest.* &&
  2162. + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2163. exit $exit_status
  2164. - ' 0
  2165. +' 0
  2166. for ac_signal in 1 2 13 15; do
  2167. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  2168. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2169. done
  2170. ac_signal=0
  2171. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2172. -rm -rf conftest* confdefs.h
  2173. -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  2174. -echo >confdefs.h
  2175. +rm -f -r conftest* confdefs.h
  2176. +
  2177. +$as_echo "/* confdefs.h */" > confdefs.h
  2178. # Predefined preprocessor variables.
  2179. @@ -1198,112 +1983,137 @@
  2180. #define PACKAGE_NAME "$PACKAGE_NAME"
  2181. _ACEOF
  2182. -
  2183. cat >>confdefs.h <<_ACEOF
  2184. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2185. _ACEOF
  2186. -
  2187. cat >>confdefs.h <<_ACEOF
  2188. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2189. _ACEOF
  2190. -
  2191. cat >>confdefs.h <<_ACEOF
  2192. #define PACKAGE_STRING "$PACKAGE_STRING"
  2193. _ACEOF
  2194. -
  2195. cat >>confdefs.h <<_ACEOF
  2196. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2197. _ACEOF
  2198. +cat >>confdefs.h <<_ACEOF
  2199. +#define PACKAGE_URL "$PACKAGE_URL"
  2200. +_ACEOF
  2201. +
  2202. # Let the site file select an alternate cache file if it wants to.
  2203. -# Prefer explicitly selected file to automatically selected ones.
  2204. -if test -z "$CONFIG_SITE"; then
  2205. - if test "x$prefix" != xNONE; then
  2206. - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  2207. - else
  2208. - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2209. - fi
  2210. +# Prefer an explicitly selected file to automatically selected ones.
  2211. +ac_site_file1=NONE
  2212. +ac_site_file2=NONE
  2213. +if test -n "$CONFIG_SITE"; then
  2214. + # We do not want a PATH search for config.site.
  2215. + case $CONFIG_SITE in #((
  2216. + -*) ac_site_file1=./$CONFIG_SITE;;
  2217. + */*) ac_site_file1=$CONFIG_SITE;;
  2218. + *) ac_site_file1=./$CONFIG_SITE;;
  2219. + esac
  2220. +elif test "x$prefix" != xNONE; then
  2221. + ac_site_file1=$prefix/share/config.site
  2222. + ac_site_file2=$prefix/etc/config.site
  2223. +else
  2224. + ac_site_file1=$ac_default_prefix/share/config.site
  2225. + ac_site_file2=$ac_default_prefix/etc/config.site
  2226. fi
  2227. -for ac_site_file in $CONFIG_SITE; do
  2228. - if test -r "$ac_site_file"; then
  2229. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  2230. -echo "$as_me: loading site script $ac_site_file" >&6;}
  2231. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2232. +do
  2233. + test "x$ac_site_file" = xNONE && continue
  2234. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2235. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2236. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2237. sed 's/^/| /' "$ac_site_file" >&5
  2238. - . "$ac_site_file"
  2239. + . "$ac_site_file" \
  2240. + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2241. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2242. +as_fn_error $? "failed to load site script $ac_site_file
  2243. +See \`config.log' for more details" "$LINENO" 5; }
  2244. fi
  2245. done
  2246. if test -r "$cache_file"; then
  2247. - # Some versions of bash will fail to source /dev/null (special
  2248. - # files actually), so we avoid doing that.
  2249. - if test -f "$cache_file"; then
  2250. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  2251. -echo "$as_me: loading cache $cache_file" >&6;}
  2252. + # Some versions of bash will fail to source /dev/null (special files
  2253. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2254. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2255. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2256. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  2257. case $cache_file in
  2258. - [\\/]* | ?:[\\/]* ) . $cache_file;;
  2259. - *) . ./$cache_file;;
  2260. + [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2261. + *) . "./$cache_file";;
  2262. esac
  2263. fi
  2264. else
  2265. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  2266. -echo "$as_me: creating cache $cache_file" >&6;}
  2267. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2268. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  2269. >$cache_file
  2270. fi
  2271. # Check that the precious variables saved in the cache have kept the same
  2272. # value.
  2273. ac_cache_corrupted=false
  2274. -for ac_var in `(set) 2>&1 |
  2275. - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  2276. +for ac_var in $ac_precious_vars; do
  2277. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2278. eval ac_new_set=\$ac_env_${ac_var}_set
  2279. - eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  2280. - eval ac_new_val="\$ac_env_${ac_var}_value"
  2281. + eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2282. + eval ac_new_val=\$ac_env_${ac_var}_value
  2283. case $ac_old_set,$ac_new_set in
  2284. set,)
  2285. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2286. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2287. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2288. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2289. ac_cache_corrupted=: ;;
  2290. ,set)
  2291. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  2292. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2293. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2294. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2295. ac_cache_corrupted=: ;;
  2296. ,);;
  2297. *)
  2298. if test "x$ac_old_val" != "x$ac_new_val"; then
  2299. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  2300. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2301. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  2302. -echo "$as_me: former value: $ac_old_val" >&2;}
  2303. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  2304. -echo "$as_me: current value: $ac_new_val" >&2;}
  2305. - ac_cache_corrupted=:
  2306. + # differences in whitespace do not lead to failure.
  2307. + ac_old_val_w=`echo x $ac_old_val`
  2308. + ac_new_val_w=`echo x $ac_new_val`
  2309. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2310. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2311. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2312. + ac_cache_corrupted=:
  2313. + else
  2314. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2315. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2316. + eval $ac_var=\$ac_old_val
  2317. + fi
  2318. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2319. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2320. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2321. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2322. fi;;
  2323. esac
  2324. # Pass precious variables to config.status.
  2325. if test "$ac_new_set" = set; then
  2326. case $ac_new_val in
  2327. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  2328. - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2329. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2330. *) ac_arg=$ac_var=$ac_new_val ;;
  2331. esac
  2332. case " $ac_configure_args " in
  2333. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2334. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  2335. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2336. esac
  2337. fi
  2338. done
  2339. if $ac_cache_corrupted; then
  2340. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  2341. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2342. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  2343. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  2344. - { (exit 1); exit 1; }; }
  2345. -fi
  2346. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2347. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2348. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2349. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2350. + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2351. +fi
  2352. +## -------------------- ##
  2353. +## Main body of script. ##
  2354. +## -------------------- ##
  2355. ac_ext=c
  2356. ac_cpp='$CPP $CPPFLAGS'
  2357. @@ -1313,122 +2123,137 @@
  2358. -
  2359. -
  2360. -
  2361. -
  2362. -
  2363. -
  2364. -
  2365. -
  2366. -
  2367. -
  2368. -
  2369. -
  2370. -
  2371. -
  2372. -
  2373. -
  2374. -
  2375. ac_aux_dir=
  2376. -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  2377. - if test -f $ac_dir/install-sh; then
  2378. +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2379. + if test -f "$ac_dir/install-sh"; then
  2380. ac_aux_dir=$ac_dir
  2381. ac_install_sh="$ac_aux_dir/install-sh -c"
  2382. break
  2383. - elif test -f $ac_dir/install.sh; then
  2384. + elif test -f "$ac_dir/install.sh"; then
  2385. ac_aux_dir=$ac_dir
  2386. ac_install_sh="$ac_aux_dir/install.sh -c"
  2387. break
  2388. - elif test -f $ac_dir/shtool; then
  2389. + elif test -f "$ac_dir/shtool"; then
  2390. ac_aux_dir=$ac_dir
  2391. ac_install_sh="$ac_aux_dir/shtool install -c"
  2392. break
  2393. fi
  2394. done
  2395. if test -z "$ac_aux_dir"; then
  2396. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  2397. -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  2398. - { (exit 1); exit 1; }; }
  2399. -fi
  2400. -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  2401. -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  2402. -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  2403. + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2404. +fi
  2405. +
  2406. +# These three variables are undocumented and unsupported,
  2407. +# and are intended to be withdrawn in a future Autoconf release.
  2408. +# They can cause serious problems if a builder's source tree is in a directory
  2409. +# whose full name contains unusual characters.
  2410. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2411. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2412. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2413. +
  2414. # Make sure we can run config.sub.
  2415. -$ac_config_sub sun4 >/dev/null 2>&1 ||
  2416. - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  2417. -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  2418. - { (exit 1); exit 1; }; }
  2419. -
  2420. -echo "$as_me:$LINENO: checking build system type" >&5
  2421. -echo $ECHO_N "checking build system type... $ECHO_C" >&6
  2422. -if test "${ac_cv_build+set}" = set; then
  2423. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2424. -else
  2425. - ac_cv_build_alias=$build_alias
  2426. -test -z "$ac_cv_build_alias" &&
  2427. - ac_cv_build_alias=`$ac_config_guess`
  2428. -test -z "$ac_cv_build_alias" &&
  2429. - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2430. -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2431. - { (exit 1); exit 1; }; }
  2432. -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  2433. - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  2434. -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  2435. - { (exit 1); exit 1; }; }
  2436. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2437. + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2438. -fi
  2439. -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2440. -echo "${ECHO_T}$ac_cv_build" >&6
  2441. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2442. +$as_echo_n "checking build system type... " >&6; }
  2443. +if ${ac_cv_build+:} false; then :
  2444. + $as_echo_n "(cached) " >&6
  2445. +else
  2446. + ac_build_alias=$build_alias
  2447. +test "x$ac_build_alias" = x &&
  2448. + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2449. +test "x$ac_build_alias" = x &&
  2450. + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2451. +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2452. + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2453. +
  2454. +fi
  2455. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2456. +$as_echo "$ac_cv_build" >&6; }
  2457. +case $ac_cv_build in
  2458. +*-*-*) ;;
  2459. +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2460. +esac
  2461. build=$ac_cv_build
  2462. -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2463. -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2464. -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2465. -
  2466. -
  2467. -echo "$as_me:$LINENO: checking host system type" >&5
  2468. -echo $ECHO_N "checking host system type... $ECHO_C" >&6
  2469. -if test "${ac_cv_host+set}" = set; then
  2470. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2471. -else
  2472. - ac_cv_host_alias=$host_alias
  2473. -test -z "$ac_cv_host_alias" &&
  2474. - ac_cv_host_alias=$ac_cv_build_alias
  2475. -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  2476. - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  2477. -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  2478. - { (exit 1); exit 1; }; }
  2479. +ac_save_IFS=$IFS; IFS='-'
  2480. +set x $ac_cv_build
  2481. +shift
  2482. +build_cpu=$1
  2483. +build_vendor=$2
  2484. +shift; shift
  2485. +# Remember, the first character of IFS is used to create $*,
  2486. +# except with old shells:
  2487. +build_os=$*
  2488. +IFS=$ac_save_IFS
  2489. +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2490. +
  2491. +
  2492. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2493. +$as_echo_n "checking host system type... " >&6; }
  2494. +if ${ac_cv_host+:} false; then :
  2495. + $as_echo_n "(cached) " >&6
  2496. +else
  2497. + if test "x$host_alias" = x; then
  2498. + ac_cv_host=$ac_cv_build
  2499. +else
  2500. + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2501. + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2502. +fi
  2503. fi
  2504. -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2505. -echo "${ECHO_T}$ac_cv_host" >&6
  2506. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2507. +$as_echo "$ac_cv_host" >&6; }
  2508. +case $ac_cv_host in
  2509. +*-*-*) ;;
  2510. +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2511. +esac
  2512. host=$ac_cv_host
  2513. -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2514. -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2515. -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2516. -
  2517. -
  2518. -echo "$as_me:$LINENO: checking target system type" >&5
  2519. -echo $ECHO_N "checking target system type... $ECHO_C" >&6
  2520. -if test "${ac_cv_target+set}" = set; then
  2521. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2522. -else
  2523. - ac_cv_target_alias=$target_alias
  2524. -test "x$ac_cv_target_alias" = "x" &&
  2525. - ac_cv_target_alias=$ac_cv_host_alias
  2526. -ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  2527. - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  2528. -echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  2529. - { (exit 1); exit 1; }; }
  2530. +ac_save_IFS=$IFS; IFS='-'
  2531. +set x $ac_cv_host
  2532. +shift
  2533. +host_cpu=$1
  2534. +host_vendor=$2
  2535. +shift; shift
  2536. +# Remember, the first character of IFS is used to create $*,
  2537. +# except with old shells:
  2538. +host_os=$*
  2539. +IFS=$ac_save_IFS
  2540. +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2541. +
  2542. +
  2543. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2544. +$as_echo_n "checking target system type... " >&6; }
  2545. +if ${ac_cv_target+:} false; then :
  2546. + $as_echo_n "(cached) " >&6
  2547. +else
  2548. + if test "x$target_alias" = x; then
  2549. + ac_cv_target=$ac_cv_host
  2550. +else
  2551. + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2552. + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2553. +fi
  2554. fi
  2555. -echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  2556. -echo "${ECHO_T}$ac_cv_target" >&6
  2557. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2558. +$as_echo "$ac_cv_target" >&6; }
  2559. +case $ac_cv_target in
  2560. +*-*-*) ;;
  2561. +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2562. +esac
  2563. target=$ac_cv_target
  2564. -target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2565. -target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2566. -target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2567. +ac_save_IFS=$IFS; IFS='-'
  2568. +set x $ac_cv_target
  2569. +shift
  2570. +target_cpu=$1
  2571. +target_vendor=$2
  2572. +shift; shift
  2573. +# Remember, the first character of IFS is used to create $*,
  2574. +# except with old shells:
  2575. +target_os=$*
  2576. +IFS=$ac_save_IFS
  2577. +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2578. # The aliases save the names the user supplied, while $host etc.
  2579. @@ -1438,7 +2263,8 @@
  2580. NONENONEs,x,x, &&
  2581. program_prefix=${target_alias}-
  2582. - ac_config_headers="$ac_config_headers src/config.h"
  2583. +
  2584. +ac_config_headers="$ac_config_headers src/config.h"
  2585. if test "$prefix" = "NONE" ; then
  2586. @@ -1457,10 +2283,10 @@
  2587. if test -n "$ac_tool_prefix"; then
  2588. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2589. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2590. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  2591. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2592. -if test "${ac_cv_prog_CC+set}" = set; then
  2593. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2594. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2595. +$as_echo_n "checking for $ac_word... " >&6; }
  2596. +if ${ac_cv_prog_CC+:} false; then :
  2597. + $as_echo_n "(cached) " >&6
  2598. else
  2599. if test -n "$CC"; then
  2600. ac_cv_prog_CC="$CC" # Let the user override the test.
  2601. @@ -1470,35 +2296,37 @@
  2602. do
  2603. IFS=$as_save_IFS
  2604. test -z "$as_dir" && as_dir=.
  2605. - for ac_exec_ext in '' $ac_executable_extensions; do
  2606. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2607. + for ac_exec_ext in '' $ac_executable_extensions; do
  2608. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2609. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2610. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2611. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2612. break 2
  2613. fi
  2614. done
  2615. -done
  2616. + done
  2617. +IFS=$as_save_IFS
  2618. fi
  2619. fi
  2620. CC=$ac_cv_prog_CC
  2621. if test -n "$CC"; then
  2622. - echo "$as_me:$LINENO: result: $CC" >&5
  2623. -echo "${ECHO_T}$CC" >&6
  2624. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2625. +$as_echo "$CC" >&6; }
  2626. else
  2627. - echo "$as_me:$LINENO: result: no" >&5
  2628. -echo "${ECHO_T}no" >&6
  2629. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2630. +$as_echo "no" >&6; }
  2631. fi
  2632. +
  2633. fi
  2634. if test -z "$ac_cv_prog_CC"; then
  2635. ac_ct_CC=$CC
  2636. # Extract the first word of "gcc", so it can be a program name with args.
  2637. set dummy gcc; ac_word=$2
  2638. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  2639. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2640. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2641. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2642. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2643. +$as_echo_n "checking for $ac_word... " >&6; }
  2644. +if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2645. + $as_echo_n "(cached) " >&6
  2646. else
  2647. if test -n "$ac_ct_CC"; then
  2648. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2649. @@ -1508,39 +2336,50 @@
  2650. do
  2651. IFS=$as_save_IFS
  2652. test -z "$as_dir" && as_dir=.
  2653. - for ac_exec_ext in '' $ac_executable_extensions; do
  2654. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2655. + for ac_exec_ext in '' $ac_executable_extensions; do
  2656. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2657. ac_cv_prog_ac_ct_CC="gcc"
  2658. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2659. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2660. break 2
  2661. fi
  2662. done
  2663. -done
  2664. + done
  2665. +IFS=$as_save_IFS
  2666. fi
  2667. fi
  2668. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2669. if test -n "$ac_ct_CC"; then
  2670. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2671. -echo "${ECHO_T}$ac_ct_CC" >&6
  2672. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2673. +$as_echo "$ac_ct_CC" >&6; }
  2674. else
  2675. - echo "$as_me:$LINENO: result: no" >&5
  2676. -echo "${ECHO_T}no" >&6
  2677. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2678. +$as_echo "no" >&6; }
  2679. fi
  2680. - CC=$ac_ct_CC
  2681. + if test "x$ac_ct_CC" = x; then
  2682. + CC=""
  2683. + else
  2684. + case $cross_compiling:$ac_tool_warned in
  2685. +yes:)
  2686. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2687. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2688. +ac_tool_warned=yes ;;
  2689. +esac
  2690. + CC=$ac_ct_CC
  2691. + fi
  2692. else
  2693. CC="$ac_cv_prog_CC"
  2694. fi
  2695. if test -z "$CC"; then
  2696. - if test -n "$ac_tool_prefix"; then
  2697. - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2698. + if test -n "$ac_tool_prefix"; then
  2699. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2700. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2701. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  2702. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2703. -if test "${ac_cv_prog_CC+set}" = set; then
  2704. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2705. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2706. +$as_echo_n "checking for $ac_word... " >&6; }
  2707. +if ${ac_cv_prog_CC+:} false; then :
  2708. + $as_echo_n "(cached) " >&6
  2709. else
  2710. if test -n "$CC"; then
  2711. ac_cv_prog_CC="$CC" # Let the user override the test.
  2712. @@ -1550,77 +2389,37 @@
  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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2718. + for ac_exec_ext in '' $ac_executable_extensions; do
  2719. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2720. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2721. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2722. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2723. break 2
  2724. fi
  2725. done
  2726. -done
  2727. + done
  2728. +IFS=$as_save_IFS
  2729. fi
  2730. fi
  2731. CC=$ac_cv_prog_CC
  2732. if test -n "$CC"; then
  2733. - echo "$as_me:$LINENO: result: $CC" >&5
  2734. -echo "${ECHO_T}$CC" >&6
  2735. -else
  2736. - echo "$as_me:$LINENO: result: no" >&5
  2737. -echo "${ECHO_T}no" >&6
  2738. -fi
  2739. -
  2740. -fi
  2741. -if test -z "$ac_cv_prog_CC"; then
  2742. - ac_ct_CC=$CC
  2743. - # Extract the first word of "cc", so it can be a program name with args.
  2744. -set dummy cc; ac_word=$2
  2745. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  2746. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2747. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2748. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2749. -else
  2750. - if test -n "$ac_ct_CC"; then
  2751. - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2752. -else
  2753. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2754. -for as_dir in $PATH
  2755. -do
  2756. - IFS=$as_save_IFS
  2757. - test -z "$as_dir" && as_dir=.
  2758. - for ac_exec_ext in '' $ac_executable_extensions; do
  2759. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2760. - ac_cv_prog_ac_ct_CC="cc"
  2761. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2762. - break 2
  2763. - fi
  2764. -done
  2765. -done
  2766. -
  2767. -fi
  2768. -fi
  2769. -ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2770. -if test -n "$ac_ct_CC"; then
  2771. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2772. -echo "${ECHO_T}$ac_ct_CC" >&6
  2773. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2774. +$as_echo "$CC" >&6; }
  2775. else
  2776. - echo "$as_me:$LINENO: result: no" >&5
  2777. -echo "${ECHO_T}no" >&6
  2778. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2779. +$as_echo "no" >&6; }
  2780. fi
  2781. - CC=$ac_ct_CC
  2782. -else
  2783. - CC="$ac_cv_prog_CC"
  2784. -fi
  2785. + fi
  2786. fi
  2787. if test -z "$CC"; then
  2788. # Extract the first word of "cc", so it can be a program name with args.
  2789. set dummy cc; ac_word=$2
  2790. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  2791. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2792. -if test "${ac_cv_prog_CC+set}" = set; then
  2793. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2794. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2795. +$as_echo_n "checking for $ac_word... " >&6; }
  2796. +if ${ac_cv_prog_CC+:} false; then :
  2797. + $as_echo_n "(cached) " >&6
  2798. else
  2799. if test -n "$CC"; then
  2800. ac_cv_prog_CC="$CC" # Let the user override the test.
  2801. @@ -1631,18 +2430,19 @@
  2802. do
  2803. IFS=$as_save_IFS
  2804. test -z "$as_dir" && as_dir=.
  2805. - for ac_exec_ext in '' $ac_executable_extensions; do
  2806. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2807. + for ac_exec_ext in '' $ac_executable_extensions; do
  2808. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2809. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2810. ac_prog_rejected=yes
  2811. continue
  2812. fi
  2813. ac_cv_prog_CC="cc"
  2814. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2815. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2816. break 2
  2817. fi
  2818. done
  2819. -done
  2820. + done
  2821. +IFS=$as_save_IFS
  2822. if test $ac_prog_rejected = yes; then
  2823. # We found a bogon in the path, so make sure we never use it.
  2824. @@ -1660,24 +2460,25 @@
  2825. fi
  2826. CC=$ac_cv_prog_CC
  2827. if test -n "$CC"; then
  2828. - echo "$as_me:$LINENO: result: $CC" >&5
  2829. -echo "${ECHO_T}$CC" >&6
  2830. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2831. +$as_echo "$CC" >&6; }
  2832. else
  2833. - echo "$as_me:$LINENO: result: no" >&5
  2834. -echo "${ECHO_T}no" >&6
  2835. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2836. +$as_echo "no" >&6; }
  2837. fi
  2838. +
  2839. fi
  2840. if test -z "$CC"; then
  2841. if test -n "$ac_tool_prefix"; then
  2842. - for ac_prog in cl
  2843. + for ac_prog in cl.exe
  2844. do
  2845. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2846. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2847. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  2848. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2849. -if test "${ac_cv_prog_CC+set}" = set; then
  2850. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2851. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2852. +$as_echo_n "checking for $ac_word... " >&6; }
  2853. +if ${ac_cv_prog_CC+:} false; then :
  2854. + $as_echo_n "(cached) " >&6
  2855. else
  2856. if test -n "$CC"; then
  2857. ac_cv_prog_CC="$CC" # Let the user override the test.
  2858. @@ -1687,39 +2488,41 @@
  2859. do
  2860. IFS=$as_save_IFS
  2861. test -z "$as_dir" && as_dir=.
  2862. - for ac_exec_ext in '' $ac_executable_extensions; do
  2863. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2864. + for ac_exec_ext in '' $ac_executable_extensions; do
  2865. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2866. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2867. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2868. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2869. break 2
  2870. fi
  2871. done
  2872. -done
  2873. + done
  2874. +IFS=$as_save_IFS
  2875. fi
  2876. fi
  2877. CC=$ac_cv_prog_CC
  2878. if test -n "$CC"; then
  2879. - echo "$as_me:$LINENO: result: $CC" >&5
  2880. -echo "${ECHO_T}$CC" >&6
  2881. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2882. +$as_echo "$CC" >&6; }
  2883. else
  2884. - echo "$as_me:$LINENO: result: no" >&5
  2885. -echo "${ECHO_T}no" >&6
  2886. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2887. +$as_echo "no" >&6; }
  2888. fi
  2889. +
  2890. test -n "$CC" && break
  2891. done
  2892. fi
  2893. if test -z "$CC"; then
  2894. ac_ct_CC=$CC
  2895. - for ac_prog in cl
  2896. + for ac_prog in cl.exe
  2897. do
  2898. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2899. set dummy $ac_prog; ac_word=$2
  2900. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  2901. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2902. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2903. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2904. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2905. +$as_echo_n "checking for $ac_word... " >&6; }
  2906. +if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2907. + $as_echo_n "(cached) " >&6
  2908. else
  2909. if test -n "$ac_ct_CC"; then
  2910. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2911. @@ -1729,66 +2532,78 @@
  2912. do
  2913. IFS=$as_save_IFS
  2914. test -z "$as_dir" && as_dir=.
  2915. - for ac_exec_ext in '' $ac_executable_extensions; do
  2916. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2917. + for ac_exec_ext in '' $ac_executable_extensions; do
  2918. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2919. ac_cv_prog_ac_ct_CC="$ac_prog"
  2920. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2921. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2922. break 2
  2923. fi
  2924. done
  2925. -done
  2926. + done
  2927. +IFS=$as_save_IFS
  2928. fi
  2929. fi
  2930. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2931. if test -n "$ac_ct_CC"; then
  2932. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2933. -echo "${ECHO_T}$ac_ct_CC" >&6
  2934. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2935. +$as_echo "$ac_ct_CC" >&6; }
  2936. else
  2937. - echo "$as_me:$LINENO: result: no" >&5
  2938. -echo "${ECHO_T}no" >&6
  2939. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2940. +$as_echo "no" >&6; }
  2941. fi
  2942. +
  2943. test -n "$ac_ct_CC" && break
  2944. done
  2945. - CC=$ac_ct_CC
  2946. + if test "x$ac_ct_CC" = x; then
  2947. + CC=""
  2948. + else
  2949. + case $cross_compiling:$ac_tool_warned in
  2950. +yes:)
  2951. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2952. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2953. +ac_tool_warned=yes ;;
  2954. +esac
  2955. + CC=$ac_ct_CC
  2956. + fi
  2957. fi
  2958. fi
  2959. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2960. -See \`config.log' for more details." >&5
  2961. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  2962. -See \`config.log' for more details." >&2;}
  2963. - { (exit 1); exit 1; }; }
  2964. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2965. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2966. +as_fn_error $? "no acceptable C compiler found in \$PATH
  2967. +See \`config.log' for more details" "$LINENO" 5; }
  2968. # Provide some information about the compiler.
  2969. -echo "$as_me:$LINENO:" \
  2970. - "checking for C compiler version" >&5
  2971. -ac_compiler=`set X $ac_compile; echo $2`
  2972. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2973. - (eval $ac_compiler --version </dev/null >&5) 2>&5
  2974. - ac_status=$?
  2975. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2976. - (exit $ac_status); }
  2977. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2978. - (eval $ac_compiler -v </dev/null >&5) 2>&5
  2979. - ac_status=$?
  2980. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2981. - (exit $ac_status); }
  2982. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2983. - (eval $ac_compiler -V </dev/null >&5) 2>&5
  2984. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2985. +set X $ac_compile
  2986. +ac_compiler=$2
  2987. +for ac_option in --version -v -V -qversion; do
  2988. + { { ac_try="$ac_compiler $ac_option >&5"
  2989. +case "(($ac_try" in
  2990. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2991. + *) ac_try_echo=$ac_try;;
  2992. +esac
  2993. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2994. +$as_echo "$ac_try_echo"; } >&5
  2995. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2996. ac_status=$?
  2997. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2998. - (exit $ac_status); }
  2999. + if test -s conftest.err; then
  3000. + sed '10a\
  3001. +... rest of stderr output deleted ...
  3002. + 10q' conftest.err >conftest.er1
  3003. + cat conftest.er1 >&5
  3004. + fi
  3005. + rm -f conftest.er1 conftest.err
  3006. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3007. + test $ac_status = 0; }
  3008. +done
  3009. -cat >conftest.$ac_ext <<_ACEOF
  3010. -/* confdefs.h. */
  3011. -_ACEOF
  3012. -cat confdefs.h >>conftest.$ac_ext
  3013. -cat >>conftest.$ac_ext <<_ACEOF
  3014. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3015. /* end confdefs.h. */
  3016. int
  3017. @@ -1800,112 +2615,108 @@
  3018. }
  3019. _ACEOF
  3020. ac_clean_files_save=$ac_clean_files
  3021. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  3022. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3023. # Try to create an executable without -o first, disregard a.out.
  3024. # It will help us diagnose broken compilers, and finding out an intuition
  3025. # of exeext.
  3026. -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  3027. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  3028. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3029. -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  3030. - (eval $ac_link_default) 2>&5
  3031. - ac_status=$?
  3032. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3033. - (exit $ac_status); }; then
  3034. - # Find the output, starting from the most likely. This scheme is
  3035. -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  3036. -# resort.
  3037. -
  3038. -# Be careful to initialize this variable, since it used to be cached.
  3039. -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  3040. -ac_cv_exeext=
  3041. -# b.out is created by i960 compilers.
  3042. -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  3043. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3044. +$as_echo_n "checking whether the C compiler works... " >&6; }
  3045. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3046. +
  3047. +# The possible output files:
  3048. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3049. +
  3050. +ac_rmfiles=
  3051. +for ac_file in $ac_files
  3052. +do
  3053. + case $ac_file in
  3054. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3055. + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3056. + esac
  3057. +done
  3058. +rm -f $ac_rmfiles
  3059. +
  3060. +if { { ac_try="$ac_link_default"
  3061. +case "(($ac_try" in
  3062. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3063. + *) ac_try_echo=$ac_try;;
  3064. +esac
  3065. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3066. +$as_echo "$ac_try_echo"; } >&5
  3067. + (eval "$ac_link_default") 2>&5
  3068. + ac_status=$?
  3069. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3070. + test $ac_status = 0; }; then :
  3071. + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3072. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3073. +# in a Makefile. We should not override ac_cv_exeext if it was cached,
  3074. +# so that the user can short-circuit this test for compilers unknown to
  3075. +# Autoconf.
  3076. +for ac_file in $ac_files ''
  3077. do
  3078. test -f "$ac_file" || continue
  3079. case $ac_file in
  3080. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  3081. - ;;
  3082. - conftest.$ac_ext )
  3083. - # This is the source file.
  3084. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3085. ;;
  3086. [ab].out )
  3087. # We found the default executable, but exeext='' is most
  3088. # certainly right.
  3089. break;;
  3090. *.* )
  3091. - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3092. - # FIXME: I believe we export ac_cv_exeext for Libtool,
  3093. - # but it would be cool to find out if it's true. Does anybody
  3094. - # maintain Libtool? --akim.
  3095. - export ac_cv_exeext
  3096. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3097. + then :; else
  3098. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3099. + fi
  3100. + # We set ac_cv_exeext here because the later test for it is not
  3101. + # safe: cross compilers may not add the suffix if given an `-o'
  3102. + # argument, so we may need to know it at that point already.
  3103. + # Even if this section looks crufty: it has the advantage of
  3104. + # actually working.
  3105. break;;
  3106. * )
  3107. break;;
  3108. esac
  3109. done
  3110. -else
  3111. - echo "$as_me: failed program was:" >&5
  3112. -sed 's/^/| /' conftest.$ac_ext >&5
  3113. +test "$ac_cv_exeext" = no && ac_cv_exeext=
  3114. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  3115. -See \`config.log' for more details." >&5
  3116. -echo "$as_me: error: C compiler cannot create executables
  3117. -See \`config.log' for more details." >&2;}
  3118. - { (exit 77); exit 77; }; }
  3119. +else
  3120. + ac_file=''
  3121. fi
  3122. +if test -z "$ac_file"; then :
  3123. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3124. +$as_echo "no" >&6; }
  3125. +$as_echo "$as_me: failed program was:" >&5
  3126. +sed 's/^/| /' conftest.$ac_ext >&5
  3127. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3128. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3129. +as_fn_error 77 "C compiler cannot create executables
  3130. +See \`config.log' for more details" "$LINENO" 5; }
  3131. +else
  3132. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3133. +$as_echo "yes" >&6; }
  3134. +fi
  3135. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3136. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  3137. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3138. +$as_echo "$ac_file" >&6; }
  3139. ac_exeext=$ac_cv_exeext
  3140. -echo "$as_me:$LINENO: result: $ac_file" >&5
  3141. -echo "${ECHO_T}$ac_file" >&6
  3142. -# Check the compiler produces executables we can run. If not, either
  3143. -# the compiler is broken, or we cross compile.
  3144. -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  3145. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  3146. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  3147. -# If not cross compiling, check that we can run a simple program.
  3148. -if test "$cross_compiling" != yes; then
  3149. - if { ac_try='./$ac_file'
  3150. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3151. - (eval $ac_try) 2>&5
  3152. - ac_status=$?
  3153. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3154. - (exit $ac_status); }; }; then
  3155. - cross_compiling=no
  3156. - else
  3157. - if test "$cross_compiling" = maybe; then
  3158. - cross_compiling=yes
  3159. - else
  3160. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  3161. -If you meant to cross compile, use \`--host'.
  3162. -See \`config.log' for more details." >&5
  3163. -echo "$as_me: error: cannot run C compiled programs.
  3164. -If you meant to cross compile, use \`--host'.
  3165. -See \`config.log' for more details." >&2;}
  3166. - { (exit 1); exit 1; }; }
  3167. - fi
  3168. - fi
  3169. -fi
  3170. -echo "$as_me:$LINENO: result: yes" >&5
  3171. -echo "${ECHO_T}yes" >&6
  3172. -
  3173. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  3174. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3175. ac_clean_files=$ac_clean_files_save
  3176. -# Check the compiler produces executables we can run. If not, either
  3177. -# the compiler is broken, or we cross compile.
  3178. -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3179. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  3180. -echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3181. -echo "${ECHO_T}$cross_compiling" >&6
  3182. -
  3183. -echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3184. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  3185. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3186. - (eval $ac_link) 2>&5
  3187. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3188. +$as_echo_n "checking for suffix of executables... " >&6; }
  3189. +if { { ac_try="$ac_link"
  3190. +case "(($ac_try" in
  3191. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3192. + *) ac_try_echo=$ac_try;;
  3193. +esac
  3194. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3195. +$as_echo "$ac_try_echo"; } >&5
  3196. + (eval "$ac_link") 2>&5
  3197. ac_status=$?
  3198. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3199. - (exit $ac_status); }; then
  3200. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3201. + test $ac_status = 0; }; then :
  3202. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3203. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3204. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3205. @@ -1913,38 +2724,90 @@
  3206. for ac_file in conftest.exe conftest conftest.*; do
  3207. test -f "$ac_file" || continue
  3208. case $ac_file in
  3209. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  3210. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3211. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3212. - export ac_cv_exeext
  3213. break;;
  3214. * ) break;;
  3215. esac
  3216. done
  3217. else
  3218. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3219. -See \`config.log' for more details." >&5
  3220. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3221. -See \`config.log' for more details." >&2;}
  3222. - { (exit 1); exit 1; }; }
  3223. -fi
  3224. -
  3225. -rm -f conftest$ac_cv_exeext
  3226. -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3227. -echo "${ECHO_T}$ac_cv_exeext" >&6
  3228. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3229. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3230. +as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3231. +See \`config.log' for more details" "$LINENO" 5; }
  3232. +fi
  3233. +rm -f conftest conftest$ac_cv_exeext
  3234. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3235. +$as_echo "$ac_cv_exeext" >&6; }
  3236. rm -f conftest.$ac_ext
  3237. EXEEXT=$ac_cv_exeext
  3238. ac_exeext=$EXEEXT
  3239. -echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3240. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  3241. -if test "${ac_cv_objext+set}" = set; then
  3242. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3243. -else
  3244. - cat >conftest.$ac_ext <<_ACEOF
  3245. -/* confdefs.h. */
  3246. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3247. +/* end confdefs.h. */
  3248. +#include <stdio.h>
  3249. +int
  3250. +main ()
  3251. +{
  3252. +FILE *f = fopen ("conftest.out", "w");
  3253. + return ferror (f) || fclose (f) != 0;
  3254. +
  3255. + ;
  3256. + return 0;
  3257. +}
  3258. _ACEOF
  3259. -cat confdefs.h >>conftest.$ac_ext
  3260. -cat >>conftest.$ac_ext <<_ACEOF
  3261. +ac_clean_files="$ac_clean_files conftest.out"
  3262. +# Check that the compiler produces executables we can run. If not, either
  3263. +# the compiler is broken, or we cross compile.
  3264. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3265. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  3266. +if test "$cross_compiling" != yes; then
  3267. + { { ac_try="$ac_link"
  3268. +case "(($ac_try" in
  3269. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3270. + *) ac_try_echo=$ac_try;;
  3271. +esac
  3272. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3273. +$as_echo "$ac_try_echo"; } >&5
  3274. + (eval "$ac_link") 2>&5
  3275. + ac_status=$?
  3276. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3277. + test $ac_status = 0; }
  3278. + if { ac_try='./conftest$ac_cv_exeext'
  3279. + { { case "(($ac_try" in
  3280. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3281. + *) ac_try_echo=$ac_try;;
  3282. +esac
  3283. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3284. +$as_echo "$ac_try_echo"; } >&5
  3285. + (eval "$ac_try") 2>&5
  3286. + ac_status=$?
  3287. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3288. + test $ac_status = 0; }; }; then
  3289. + cross_compiling=no
  3290. + else
  3291. + if test "$cross_compiling" = maybe; then
  3292. + cross_compiling=yes
  3293. + else
  3294. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3295. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3296. +as_fn_error $? "cannot run C compiled programs.
  3297. +If you meant to cross compile, use \`--host'.
  3298. +See \`config.log' for more details" "$LINENO" 5; }
  3299. + fi
  3300. + fi
  3301. +fi
  3302. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3303. +$as_echo "$cross_compiling" >&6; }
  3304. +
  3305. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3306. +ac_clean_files=$ac_clean_files_save
  3307. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3308. +$as_echo_n "checking for suffix of object files... " >&6; }
  3309. +if ${ac_cv_objext+:} false; then :
  3310. + $as_echo_n "(cached) " >&6
  3311. +else
  3312. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3313. /* end confdefs.h. */
  3314. int
  3315. @@ -1956,45 +2819,46 @@
  3316. }
  3317. _ACEOF
  3318. rm -f conftest.o conftest.obj
  3319. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3320. - (eval $ac_compile) 2>&5
  3321. - ac_status=$?
  3322. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3323. - (exit $ac_status); }; then
  3324. - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  3325. +if { { ac_try="$ac_compile"
  3326. +case "(($ac_try" in
  3327. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3328. + *) ac_try_echo=$ac_try;;
  3329. +esac
  3330. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3331. +$as_echo "$ac_try_echo"; } >&5
  3332. + (eval "$ac_compile") 2>&5
  3333. + ac_status=$?
  3334. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3335. + test $ac_status = 0; }; then :
  3336. + for ac_file in conftest.o conftest.obj conftest.*; do
  3337. + test -f "$ac_file" || continue;
  3338. case $ac_file in
  3339. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  3340. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3341. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3342. break;;
  3343. esac
  3344. done
  3345. else
  3346. - echo "$as_me: failed program was:" >&5
  3347. + $as_echo "$as_me: failed program was:" >&5
  3348. sed 's/^/| /' conftest.$ac_ext >&5
  3349. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3350. -See \`config.log' for more details." >&5
  3351. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3352. -See \`config.log' for more details." >&2;}
  3353. - { (exit 1); exit 1; }; }
  3354. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3355. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3356. +as_fn_error $? "cannot compute suffix of object files: cannot compile
  3357. +See \`config.log' for more details" "$LINENO" 5; }
  3358. fi
  3359. -
  3360. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3361. fi
  3362. -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3363. -echo "${ECHO_T}$ac_cv_objext" >&6
  3364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3365. +$as_echo "$ac_cv_objext" >&6; }
  3366. OBJEXT=$ac_cv_objext
  3367. ac_objext=$OBJEXT
  3368. -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3369. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  3370. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3371. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3372. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3373. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3374. +if ${ac_cv_c_compiler_gnu+:} false; then :
  3375. + $as_echo_n "(cached) " >&6
  3376. else
  3377. - cat >conftest.$ac_ext <<_ACEOF
  3378. -/* confdefs.h. */
  3379. -_ACEOF
  3380. -cat confdefs.h >>conftest.$ac_ext
  3381. -cat >>conftest.$ac_ext <<_ACEOF
  3382. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3383. /* end confdefs.h. */
  3384. int
  3385. @@ -2008,54 +2872,34 @@
  3386. return 0;
  3387. }
  3388. _ACEOF
  3389. -rm -f conftest.$ac_objext
  3390. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3391. - (eval $ac_compile) 2>conftest.er1
  3392. - ac_status=$?
  3393. - grep -v '^ *+' conftest.er1 >conftest.err
  3394. - rm -f conftest.er1
  3395. - cat conftest.err >&5
  3396. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3397. - (exit $ac_status); } &&
  3398. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3399. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3400. - (eval $ac_try) 2>&5
  3401. - ac_status=$?
  3402. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3403. - (exit $ac_status); }; } &&
  3404. - { ac_try='test -s conftest.$ac_objext'
  3405. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3406. - (eval $ac_try) 2>&5
  3407. - ac_status=$?
  3408. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3409. - (exit $ac_status); }; }; then
  3410. +if ac_fn_c_try_compile "$LINENO"; then :
  3411. ac_compiler_gnu=yes
  3412. else
  3413. - echo "$as_me: failed program was:" >&5
  3414. -sed 's/^/| /' conftest.$ac_ext >&5
  3415. -
  3416. -ac_compiler_gnu=no
  3417. + ac_compiler_gnu=no
  3418. fi
  3419. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3420. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3421. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3422. fi
  3423. -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3424. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  3425. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  3426. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3427. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3428. +if test $ac_compiler_gnu = yes; then
  3429. + GCC=yes
  3430. +else
  3431. + GCC=
  3432. +fi
  3433. ac_test_CFLAGS=${CFLAGS+set}
  3434. ac_save_CFLAGS=$CFLAGS
  3435. -CFLAGS="-g"
  3436. -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3437. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  3438. -if test "${ac_cv_prog_cc_g+set}" = set; then
  3439. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3440. -else
  3441. - cat >conftest.$ac_ext <<_ACEOF
  3442. -/* confdefs.h. */
  3443. -_ACEOF
  3444. -cat confdefs.h >>conftest.$ac_ext
  3445. -cat >>conftest.$ac_ext <<_ACEOF
  3446. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3447. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  3448. +if ${ac_cv_prog_cc_g+:} false; then :
  3449. + $as_echo_n "(cached) " >&6
  3450. +else
  3451. + ac_save_c_werror_flag=$ac_c_werror_flag
  3452. + ac_c_werror_flag=yes
  3453. + ac_cv_prog_cc_g=no
  3454. + CFLAGS="-g"
  3455. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3456. /* end confdefs.h. */
  3457. int
  3458. @@ -2066,38 +2910,49 @@
  3459. return 0;
  3460. }
  3461. _ACEOF
  3462. -rm -f conftest.$ac_objext
  3463. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3464. - (eval $ac_compile) 2>conftest.er1
  3465. - ac_status=$?
  3466. - grep -v '^ *+' conftest.er1 >conftest.err
  3467. - rm -f conftest.er1
  3468. - cat conftest.err >&5
  3469. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3470. - (exit $ac_status); } &&
  3471. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3472. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3473. - (eval $ac_try) 2>&5
  3474. - ac_status=$?
  3475. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3476. - (exit $ac_status); }; } &&
  3477. - { ac_try='test -s conftest.$ac_objext'
  3478. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3479. - (eval $ac_try) 2>&5
  3480. - ac_status=$?
  3481. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3482. - (exit $ac_status); }; }; then
  3483. +if ac_fn_c_try_compile "$LINENO"; then :
  3484. ac_cv_prog_cc_g=yes
  3485. else
  3486. - echo "$as_me: failed program was:" >&5
  3487. -sed 's/^/| /' conftest.$ac_ext >&5
  3488. + CFLAGS=""
  3489. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3490. +/* end confdefs.h. */
  3491. +
  3492. +int
  3493. +main ()
  3494. +{
  3495. +
  3496. + ;
  3497. + return 0;
  3498. +}
  3499. +_ACEOF
  3500. +if ac_fn_c_try_compile "$LINENO"; then :
  3501. +
  3502. +else
  3503. + ac_c_werror_flag=$ac_save_c_werror_flag
  3504. + CFLAGS="-g"
  3505. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3506. +/* end confdefs.h. */
  3507. +
  3508. +int
  3509. +main ()
  3510. +{
  3511. -ac_cv_prog_cc_g=no
  3512. + ;
  3513. + return 0;
  3514. +}
  3515. +_ACEOF
  3516. +if ac_fn_c_try_compile "$LINENO"; then :
  3517. + ac_cv_prog_cc_g=yes
  3518. +fi
  3519. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3520. +fi
  3521. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3522. fi
  3523. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3524. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3525. + ac_c_werror_flag=$ac_save_c_werror_flag
  3526. fi
  3527. -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3528. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  3529. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3530. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  3531. if test "$ac_test_CFLAGS" = set; then
  3532. CFLAGS=$ac_save_CFLAGS
  3533. elif test $ac_cv_prog_cc_g = yes; then
  3534. @@ -2113,18 +2968,14 @@
  3535. CFLAGS=
  3536. fi
  3537. fi
  3538. -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  3539. -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  3540. -if test "${ac_cv_prog_cc_stdc+set}" = set; then
  3541. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3542. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3543. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3544. +if ${ac_cv_prog_cc_c89+:} false; then :
  3545. + $as_echo_n "(cached) " >&6
  3546. else
  3547. - ac_cv_prog_cc_stdc=no
  3548. + ac_cv_prog_cc_c89=no
  3549. ac_save_CC=$CC
  3550. -cat >conftest.$ac_ext <<_ACEOF
  3551. -/* confdefs.h. */
  3552. -_ACEOF
  3553. -cat confdefs.h >>conftest.$ac_ext
  3554. -cat >>conftest.$ac_ext <<_ACEOF
  3555. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3556. /* end confdefs.h. */
  3557. #include <stdarg.h>
  3558. #include <stdio.h>
  3559. @@ -2152,12 +3003,17 @@
  3560. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3561. function prototypes and stuff, but not '\xHH' hex character constants.
  3562. These don't provoke an error unfortunately, instead are silently treated
  3563. - as 'x'. The following induces an error, until -std1 is added to get
  3564. + as 'x'. The following induces an error, until -std is added to get
  3565. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3566. array size at least. It's necessary to write '\x00'==0 to get something
  3567. - that's true only with -std1. */
  3568. + that's true only with -std. */
  3569. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3570. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3571. + inside strings and character constants. */
  3572. +#define FOO(x) 'x'
  3573. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3574. +
  3575. int test (int i, double x);
  3576. struct s1 {int (*f) (int a);};
  3577. struct s2 {int (*f) (double a);};
  3578. @@ -2172,201 +3028,37 @@
  3579. return 0;
  3580. }
  3581. _ACEOF
  3582. -# Don't try gcc -ansi; that turns off useful extensions and
  3583. -# breaks some systems' header files.
  3584. -# AIX -qlanglvl=ansi
  3585. -# Ultrix and OSF/1 -std1
  3586. -# HP-UX 10.20 and later -Ae
  3587. -# HP-UX older versions -Aa -D_HPUX_SOURCE
  3588. -# SVR4 -Xc -D__EXTENSIONS__
  3589. -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3590. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3591. + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3592. do
  3593. CC="$ac_save_CC $ac_arg"
  3594. - rm -f conftest.$ac_objext
  3595. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3596. - (eval $ac_compile) 2>conftest.er1
  3597. - ac_status=$?
  3598. - grep -v '^ *+' conftest.er1 >conftest.err
  3599. - rm -f conftest.er1
  3600. - cat conftest.err >&5
  3601. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3602. - (exit $ac_status); } &&
  3603. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3604. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3605. - (eval $ac_try) 2>&5
  3606. - ac_status=$?
  3607. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3608. - (exit $ac_status); }; } &&
  3609. - { ac_try='test -s conftest.$ac_objext'
  3610. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3611. - (eval $ac_try) 2>&5
  3612. - ac_status=$?
  3613. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3614. - (exit $ac_status); }; }; then
  3615. - ac_cv_prog_cc_stdc=$ac_arg
  3616. -break
  3617. -else
  3618. - echo "$as_me: failed program was:" >&5
  3619. -sed 's/^/| /' conftest.$ac_ext >&5
  3620. -
  3621. + if ac_fn_c_try_compile "$LINENO"; then :
  3622. + ac_cv_prog_cc_c89=$ac_arg
  3623. fi
  3624. -rm -f conftest.err conftest.$ac_objext
  3625. +rm -f core conftest.err conftest.$ac_objext
  3626. + test "x$ac_cv_prog_cc_c89" != "xno" && break
  3627. done
  3628. -rm -f conftest.$ac_ext conftest.$ac_objext
  3629. +rm -f conftest.$ac_ext
  3630. CC=$ac_save_CC
  3631. fi
  3632. -
  3633. -case "x$ac_cv_prog_cc_stdc" in
  3634. - x|xno)
  3635. - echo "$as_me:$LINENO: result: none needed" >&5
  3636. -echo "${ECHO_T}none needed" >&6 ;;
  3637. +# AC_CACHE_VAL
  3638. +case "x$ac_cv_prog_cc_c89" in
  3639. + x)
  3640. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3641. +$as_echo "none needed" >&6; } ;;
  3642. + xno)
  3643. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3644. +$as_echo "unsupported" >&6; } ;;
  3645. *)
  3646. - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3647. -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  3648. - CC="$CC $ac_cv_prog_cc_stdc" ;;
  3649. + CC="$CC $ac_cv_prog_cc_c89"
  3650. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3651. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3652. esac
  3653. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  3654. -# Some people use a C++ compiler to compile C. Since we use `exit',
  3655. -# in C++ we need to declare it. In case someone uses the same compiler
  3656. -# for both compiling C and C++ we need to have the C++ compiler decide
  3657. -# the declaration of exit, since it's the most demanding environment.
  3658. -cat >conftest.$ac_ext <<_ACEOF
  3659. -#ifndef __cplusplus
  3660. - choke me
  3661. -#endif
  3662. -_ACEOF
  3663. -rm -f conftest.$ac_objext
  3664. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3665. - (eval $ac_compile) 2>conftest.er1
  3666. - ac_status=$?
  3667. - grep -v '^ *+' conftest.er1 >conftest.err
  3668. - rm -f conftest.er1
  3669. - cat conftest.err >&5
  3670. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3671. - (exit $ac_status); } &&
  3672. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3673. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3674. - (eval $ac_try) 2>&5
  3675. - ac_status=$?
  3676. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3677. - (exit $ac_status); }; } &&
  3678. - { ac_try='test -s conftest.$ac_objext'
  3679. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3680. - (eval $ac_try) 2>&5
  3681. - ac_status=$?
  3682. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3683. - (exit $ac_status); }; }; then
  3684. - for ac_declaration in \
  3685. - '' \
  3686. - 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3687. - 'extern "C" void std::exit (int); using std::exit;' \
  3688. - 'extern "C" void exit (int) throw ();' \
  3689. - 'extern "C" void exit (int);' \
  3690. - 'void exit (int);'
  3691. -do
  3692. - cat >conftest.$ac_ext <<_ACEOF
  3693. -/* confdefs.h. */
  3694. -_ACEOF
  3695. -cat confdefs.h >>conftest.$ac_ext
  3696. -cat >>conftest.$ac_ext <<_ACEOF
  3697. -/* end confdefs.h. */
  3698. -$ac_declaration
  3699. -#include <stdlib.h>
  3700. -int
  3701. -main ()
  3702. -{
  3703. -exit (42);
  3704. - ;
  3705. - return 0;
  3706. -}
  3707. -_ACEOF
  3708. -rm -f conftest.$ac_objext
  3709. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3710. - (eval $ac_compile) 2>conftest.er1
  3711. - ac_status=$?
  3712. - grep -v '^ *+' conftest.er1 >conftest.err
  3713. - rm -f conftest.er1
  3714. - cat conftest.err >&5
  3715. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3716. - (exit $ac_status); } &&
  3717. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3718. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3719. - (eval $ac_try) 2>&5
  3720. - ac_status=$?
  3721. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3722. - (exit $ac_status); }; } &&
  3723. - { ac_try='test -s conftest.$ac_objext'
  3724. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3725. - (eval $ac_try) 2>&5
  3726. - ac_status=$?
  3727. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3728. - (exit $ac_status); }; }; then
  3729. - :
  3730. -else
  3731. - echo "$as_me: failed program was:" >&5
  3732. -sed 's/^/| /' conftest.$ac_ext >&5
  3733. -
  3734. -continue
  3735. -fi
  3736. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3737. - cat >conftest.$ac_ext <<_ACEOF
  3738. -/* confdefs.h. */
  3739. -_ACEOF
  3740. -cat confdefs.h >>conftest.$ac_ext
  3741. -cat >>conftest.$ac_ext <<_ACEOF
  3742. -/* end confdefs.h. */
  3743. -$ac_declaration
  3744. -int
  3745. -main ()
  3746. -{
  3747. -exit (42);
  3748. - ;
  3749. - return 0;
  3750. -}
  3751. -_ACEOF
  3752. -rm -f conftest.$ac_objext
  3753. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3754. - (eval $ac_compile) 2>conftest.er1
  3755. - ac_status=$?
  3756. - grep -v '^ *+' conftest.er1 >conftest.err
  3757. - rm -f conftest.er1
  3758. - cat conftest.err >&5
  3759. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3760. - (exit $ac_status); } &&
  3761. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3762. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3763. - (eval $ac_try) 2>&5
  3764. - ac_status=$?
  3765. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3766. - (exit $ac_status); }; } &&
  3767. - { ac_try='test -s conftest.$ac_objext'
  3768. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3769. - (eval $ac_try) 2>&5
  3770. - ac_status=$?
  3771. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3772. - (exit $ac_status); }; }; then
  3773. - break
  3774. -else
  3775. - echo "$as_me: failed program was:" >&5
  3776. -sed 's/^/| /' conftest.$ac_ext >&5
  3777. -
  3778. -fi
  3779. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3780. -done
  3781. -rm -f conftest*
  3782. -if test -n "$ac_declaration"; then
  3783. - echo '#ifdef __cplusplus' >>confdefs.h
  3784. - echo $ac_declaration >>confdefs.h
  3785. - echo '#endif' >>confdefs.h
  3786. fi
  3787. -else
  3788. - echo "$as_me: failed program was:" >&5
  3789. -sed 's/^/| /' conftest.$ac_ext >&5
  3790. -
  3791. -fi
  3792. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3793. ac_ext=c
  3794. ac_cpp='$CPP $CPPFLAGS'
  3795. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3796. @@ -2376,10 +3068,10 @@
  3797. if test -n "$ac_tool_prefix"; then
  3798. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3799. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3800. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  3801. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3802. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  3803. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3804. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3805. +$as_echo_n "checking for $ac_word... " >&6; }
  3806. +if ${ac_cv_prog_RANLIB+:} false; then :
  3807. + $as_echo_n "(cached) " >&6
  3808. else
  3809. if test -n "$RANLIB"; then
  3810. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3811. @@ -2389,35 +3081,37 @@
  3812. do
  3813. IFS=$as_save_IFS
  3814. test -z "$as_dir" && as_dir=.
  3815. - for ac_exec_ext in '' $ac_executable_extensions; do
  3816. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3817. + for ac_exec_ext in '' $ac_executable_extensions; do
  3818. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3819. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3820. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3821. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3822. break 2
  3823. fi
  3824. done
  3825. -done
  3826. + done
  3827. +IFS=$as_save_IFS
  3828. fi
  3829. fi
  3830. RANLIB=$ac_cv_prog_RANLIB
  3831. if test -n "$RANLIB"; then
  3832. - echo "$as_me:$LINENO: result: $RANLIB" >&5
  3833. -echo "${ECHO_T}$RANLIB" >&6
  3834. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  3835. +$as_echo "$RANLIB" >&6; }
  3836. else
  3837. - echo "$as_me:$LINENO: result: no" >&5
  3838. -echo "${ECHO_T}no" >&6
  3839. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3840. +$as_echo "no" >&6; }
  3841. fi
  3842. +
  3843. fi
  3844. if test -z "$ac_cv_prog_RANLIB"; then
  3845. ac_ct_RANLIB=$RANLIB
  3846. # Extract the first word of "ranlib", so it can be a program name with args.
  3847. set dummy ranlib; ac_word=$2
  3848. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  3849. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3850. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3851. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3852. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3853. +$as_echo_n "checking for $ac_word... " >&6; }
  3854. +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  3855. + $as_echo_n "(cached) " >&6
  3856. else
  3857. if test -n "$ac_ct_RANLIB"; then
  3858. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3859. @@ -2427,28 +3121,38 @@
  3860. do
  3861. IFS=$as_save_IFS
  3862. test -z "$as_dir" && as_dir=.
  3863. - for ac_exec_ext in '' $ac_executable_extensions; do
  3864. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3865. + for ac_exec_ext in '' $ac_executable_extensions; do
  3866. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3867. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3868. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3869. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3870. break 2
  3871. fi
  3872. done
  3873. -done
  3874. + done
  3875. +IFS=$as_save_IFS
  3876. - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3877. fi
  3878. fi
  3879. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3880. if test -n "$ac_ct_RANLIB"; then
  3881. - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3882. -echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3883. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  3884. +$as_echo "$ac_ct_RANLIB" >&6; }
  3885. else
  3886. - echo "$as_me:$LINENO: result: no" >&5
  3887. -echo "${ECHO_T}no" >&6
  3888. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3889. +$as_echo "no" >&6; }
  3890. fi
  3891. - RANLIB=$ac_ct_RANLIB
  3892. + if test "x$ac_ct_RANLIB" = x; then
  3893. + RANLIB=":"
  3894. + else
  3895. + case $cross_compiling:$ac_tool_warned in
  3896. +yes:)
  3897. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3898. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3899. +ac_tool_warned=yes ;;
  3900. +esac
  3901. + RANLIB=$ac_ct_RANLIB
  3902. + fi
  3903. else
  3904. RANLIB="$ac_cv_prog_RANLIB"
  3905. fi
  3906. @@ -2466,22 +3170,23 @@
  3907. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3908. # OS/2's system install, which has a completely different semantic
  3909. # ./install, which can be erroneously created by make from ./install.sh.
  3910. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3911. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  3912. +# Reject install programs that cannot install multiple files.
  3913. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3914. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  3915. if test -z "$INSTALL"; then
  3916. -if test "${ac_cv_path_install+set}" = set; then
  3917. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3918. +if ${ac_cv_path_install+:} false; then :
  3919. + $as_echo_n "(cached) " >&6
  3920. else
  3921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3922. for as_dir in $PATH
  3923. do
  3924. IFS=$as_save_IFS
  3925. test -z "$as_dir" && as_dir=.
  3926. - # Account for people who put trailing slashes in PATH elements.
  3927. -case $as_dir/ in
  3928. - ./ | .// | /cC/* | \
  3929. + # Account for people who put trailing slashes in PATH elements.
  3930. +case $as_dir/ in #((
  3931. + ./ | .// | /[cC]/* | \
  3932. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3933. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3934. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3935. /usr/ucb/* ) ;;
  3936. *)
  3937. # OSF1 and SCO ODT 3.0 have their own names for install.
  3938. @@ -2489,7 +3194,7 @@
  3939. # by default.
  3940. for ac_prog in ginstall scoinst install; do
  3941. for ac_exec_ext in '' $ac_executable_extensions; do
  3942. - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3943. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3944. if test $ac_prog = install &&
  3945. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3946. # AIX install. It has an incompatible calling convention.
  3947. @@ -2499,30 +3204,43 @@
  3948. # program-specific install script used by HP pwplus--don't use.
  3949. :
  3950. else
  3951. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3952. - break 3
  3953. + rm -rf conftest.one conftest.two conftest.dir
  3954. + echo one > conftest.one
  3955. + echo two > conftest.two
  3956. + mkdir conftest.dir
  3957. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3958. + test -s conftest.one && test -s conftest.two &&
  3959. + test -s conftest.dir/conftest.one &&
  3960. + test -s conftest.dir/conftest.two
  3961. + then
  3962. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3963. + break 3
  3964. + fi
  3965. fi
  3966. fi
  3967. done
  3968. done
  3969. ;;
  3970. esac
  3971. -done
  3972. + done
  3973. +IFS=$as_save_IFS
  3974. +
  3975. +rm -rf conftest.one conftest.two conftest.dir
  3976. fi
  3977. if test "${ac_cv_path_install+set}" = set; then
  3978. INSTALL=$ac_cv_path_install
  3979. else
  3980. - # As a last resort, use the slow shell script. We don't cache a
  3981. - # path for INSTALL within a source directory, because that will
  3982. + # As a last resort, use the slow shell script. Don't cache a
  3983. + # value for INSTALL within a source directory, because that will
  3984. # break other packages using the cache if that directory is
  3985. - # removed, or if the path is relative.
  3986. + # removed, or if the value is a relative name.
  3987. INSTALL=$ac_install_sh
  3988. fi
  3989. fi
  3990. -echo "$as_me:$LINENO: result: $INSTALL" >&5
  3991. -echo "${ECHO_T}$INSTALL" >&6
  3992. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3993. +$as_echo "$INSTALL" >&6; }
  3994. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3995. # It thinks the first close brace ends the variable substitution.
  3996. @@ -2539,15 +3257,15 @@
  3997. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3998. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3999. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4000. -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4001. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4002. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4003. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  4004. # On Suns, sometimes $CPP names a directory.
  4005. if test -n "$CPP" && test -d "$CPP"; then
  4006. CPP=
  4007. fi
  4008. if test -z "$CPP"; then
  4009. - if test "${ac_cv_prog_CPP+set}" = set; then
  4010. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4011. + if ${ac_cv_prog_CPP+:} false; then :
  4012. + $as_echo_n "(cached) " >&6
  4013. else
  4014. # Double quotes because CPP needs to be expanded
  4015. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4016. @@ -2561,11 +3279,7 @@
  4017. # <limits.h> exists even on freestanding compilers.
  4018. # On the NeXT, cc -E runs the code through the compiler's parser,
  4019. # not just through cpp. "Syntax error" is here to catch this case.
  4020. - cat >conftest.$ac_ext <<_ACEOF
  4021. -/* confdefs.h. */
  4022. -_ACEOF
  4023. -cat confdefs.h >>conftest.$ac_ext
  4024. -cat >>conftest.$ac_ext <<_ACEOF
  4025. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4026. /* end confdefs.h. */
  4027. #ifdef __STDC__
  4028. # include <limits.h>
  4029. @@ -2574,78 +3288,34 @@
  4030. #endif
  4031. Syntax error
  4032. _ACEOF
  4033. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4034. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4035. - ac_status=$?
  4036. - grep -v '^ *+' conftest.er1 >conftest.err
  4037. - rm -f conftest.er1
  4038. - cat conftest.err >&5
  4039. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4040. - (exit $ac_status); } >/dev/null; then
  4041. - if test -s conftest.err; then
  4042. - ac_cpp_err=$ac_c_preproc_warn_flag
  4043. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4044. - else
  4045. - ac_cpp_err=
  4046. - fi
  4047. -else
  4048. - ac_cpp_err=yes
  4049. -fi
  4050. -if test -z "$ac_cpp_err"; then
  4051. - :
  4052. -else
  4053. - echo "$as_me: failed program was:" >&5
  4054. -sed 's/^/| /' conftest.$ac_ext >&5
  4055. +if ac_fn_c_try_cpp "$LINENO"; then :
  4056. +else
  4057. # Broken: fails on valid input.
  4058. continue
  4059. fi
  4060. -rm -f conftest.err conftest.$ac_ext
  4061. +rm -f conftest.err conftest.i conftest.$ac_ext
  4062. - # OK, works on sane cases. Now check whether non-existent headers
  4063. + # OK, works on sane cases. Now check whether nonexistent headers
  4064. # can be detected and how.
  4065. - cat >conftest.$ac_ext <<_ACEOF
  4066. -/* confdefs.h. */
  4067. -_ACEOF
  4068. -cat confdefs.h >>conftest.$ac_ext
  4069. -cat >>conftest.$ac_ext <<_ACEOF
  4070. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4071. /* end confdefs.h. */
  4072. #include <ac_nonexistent.h>
  4073. _ACEOF
  4074. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4075. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4076. - ac_status=$?
  4077. - grep -v '^ *+' conftest.er1 >conftest.err
  4078. - rm -f conftest.er1
  4079. - cat conftest.err >&5
  4080. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4081. - (exit $ac_status); } >/dev/null; then
  4082. - if test -s conftest.err; then
  4083. - ac_cpp_err=$ac_c_preproc_warn_flag
  4084. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4085. - else
  4086. - ac_cpp_err=
  4087. - fi
  4088. -else
  4089. - ac_cpp_err=yes
  4090. -fi
  4091. -if test -z "$ac_cpp_err"; then
  4092. +if ac_fn_c_try_cpp "$LINENO"; then :
  4093. # Broken: success on invalid input.
  4094. continue
  4095. else
  4096. - echo "$as_me: failed program was:" >&5
  4097. -sed 's/^/| /' conftest.$ac_ext >&5
  4098. -
  4099. # Passes both tests.
  4100. ac_preproc_ok=:
  4101. break
  4102. fi
  4103. -rm -f conftest.err conftest.$ac_ext
  4104. +rm -f conftest.err conftest.i conftest.$ac_ext
  4105. done
  4106. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4107. -rm -f conftest.err conftest.$ac_ext
  4108. -if $ac_preproc_ok; then
  4109. +rm -f conftest.i conftest.err conftest.$ac_ext
  4110. +if $ac_preproc_ok; then :
  4111. break
  4112. fi
  4113. @@ -2657,8 +3327,8 @@
  4114. else
  4115. ac_cv_prog_CPP=$CPP
  4116. fi
  4117. -echo "$as_me:$LINENO: result: $CPP" >&5
  4118. -echo "${ECHO_T}$CPP" >&6
  4119. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4120. +$as_echo "$CPP" >&6; }
  4121. ac_preproc_ok=false
  4122. for ac_c_preproc_warn_flag in '' yes
  4123. do
  4124. @@ -2668,11 +3338,7 @@
  4125. # <limits.h> exists even on freestanding compilers.
  4126. # On the NeXT, cc -E runs the code through the compiler's parser,
  4127. # not just through cpp. "Syntax error" is here to catch this case.
  4128. - cat >conftest.$ac_ext <<_ACEOF
  4129. -/* confdefs.h. */
  4130. -_ACEOF
  4131. -cat confdefs.h >>conftest.$ac_ext
  4132. -cat >>conftest.$ac_ext <<_ACEOF
  4133. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4134. /* end confdefs.h. */
  4135. #ifdef __STDC__
  4136. # include <limits.h>
  4137. @@ -2681,85 +3347,40 @@
  4138. #endif
  4139. Syntax error
  4140. _ACEOF
  4141. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4142. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4143. - ac_status=$?
  4144. - grep -v '^ *+' conftest.er1 >conftest.err
  4145. - rm -f conftest.er1
  4146. - cat conftest.err >&5
  4147. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4148. - (exit $ac_status); } >/dev/null; then
  4149. - if test -s conftest.err; then
  4150. - ac_cpp_err=$ac_c_preproc_warn_flag
  4151. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4152. - else
  4153. - ac_cpp_err=
  4154. - fi
  4155. -else
  4156. - ac_cpp_err=yes
  4157. -fi
  4158. -if test -z "$ac_cpp_err"; then
  4159. - :
  4160. -else
  4161. - echo "$as_me: failed program was:" >&5
  4162. -sed 's/^/| /' conftest.$ac_ext >&5
  4163. +if ac_fn_c_try_cpp "$LINENO"; then :
  4164. +else
  4165. # Broken: fails on valid input.
  4166. continue
  4167. fi
  4168. -rm -f conftest.err conftest.$ac_ext
  4169. +rm -f conftest.err conftest.i conftest.$ac_ext
  4170. - # OK, works on sane cases. Now check whether non-existent headers
  4171. + # OK, works on sane cases. Now check whether nonexistent headers
  4172. # can be detected and how.
  4173. - cat >conftest.$ac_ext <<_ACEOF
  4174. -/* confdefs.h. */
  4175. -_ACEOF
  4176. -cat confdefs.h >>conftest.$ac_ext
  4177. -cat >>conftest.$ac_ext <<_ACEOF
  4178. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4179. /* end confdefs.h. */
  4180. #include <ac_nonexistent.h>
  4181. _ACEOF
  4182. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4183. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4184. - ac_status=$?
  4185. - grep -v '^ *+' conftest.er1 >conftest.err
  4186. - rm -f conftest.er1
  4187. - cat conftest.err >&5
  4188. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4189. - (exit $ac_status); } >/dev/null; then
  4190. - if test -s conftest.err; then
  4191. - ac_cpp_err=$ac_c_preproc_warn_flag
  4192. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4193. - else
  4194. - ac_cpp_err=
  4195. - fi
  4196. -else
  4197. - ac_cpp_err=yes
  4198. -fi
  4199. -if test -z "$ac_cpp_err"; then
  4200. +if ac_fn_c_try_cpp "$LINENO"; then :
  4201. # Broken: success on invalid input.
  4202. continue
  4203. else
  4204. - echo "$as_me: failed program was:" >&5
  4205. -sed 's/^/| /' conftest.$ac_ext >&5
  4206. -
  4207. # Passes both tests.
  4208. ac_preproc_ok=:
  4209. break
  4210. fi
  4211. -rm -f conftest.err conftest.$ac_ext
  4212. +rm -f conftest.err conftest.i conftest.$ac_ext
  4213. done
  4214. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4215. -rm -f conftest.err conftest.$ac_ext
  4216. -if $ac_preproc_ok; then
  4217. - :
  4218. +rm -f conftest.i conftest.err conftest.$ac_ext
  4219. +if $ac_preproc_ok; then :
  4220. +
  4221. else
  4222. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4223. -See \`config.log' for more details." >&5
  4224. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4225. -See \`config.log' for more details." >&2;}
  4226. - { (exit 1); exit 1; }; }
  4227. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4228. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4229. +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4230. +See \`config.log' for more details" "$LINENO" 5; }
  4231. fi
  4232. ac_ext=c
  4233. @@ -2769,31 +3390,142 @@
  4234. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4235. -echo "$as_me:$LINENO: checking for egrep" >&5
  4236. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  4237. -if test "${ac_cv_prog_egrep+set}" = set; then
  4238. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4239. -else
  4240. - if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  4241. - then ac_cv_prog_egrep='grep -E'
  4242. - else ac_cv_prog_egrep='egrep'
  4243. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4244. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4245. +if ${ac_cv_path_GREP+:} false; then :
  4246. + $as_echo_n "(cached) " >&6
  4247. +else
  4248. + if test -z "$GREP"; then
  4249. + ac_path_GREP_found=false
  4250. + # Loop through the user's path and test for each of PROGNAME-LIST
  4251. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4252. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4253. +do
  4254. + IFS=$as_save_IFS
  4255. + test -z "$as_dir" && as_dir=.
  4256. + for ac_prog in grep ggrep; do
  4257. + for ac_exec_ext in '' $ac_executable_extensions; do
  4258. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4259. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4260. +# Check for GNU ac_path_GREP and select it if it is found.
  4261. + # Check for GNU $ac_path_GREP
  4262. +case `"$ac_path_GREP" --version 2>&1` in
  4263. +*GNU*)
  4264. + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4265. +*)
  4266. + ac_count=0
  4267. + $as_echo_n 0123456789 >"conftest.in"
  4268. + while :
  4269. + do
  4270. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  4271. + mv "conftest.tmp" "conftest.in"
  4272. + cp "conftest.in" "conftest.nl"
  4273. + $as_echo 'GREP' >> "conftest.nl"
  4274. + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4275. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4276. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  4277. + if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4278. + # Best one so far, save it but keep looking for a better one
  4279. + ac_cv_path_GREP="$ac_path_GREP"
  4280. + ac_path_GREP_max=$ac_count
  4281. fi
  4282. + # 10*(2^10) chars as input seems more than enough
  4283. + test $ac_count -gt 10 && break
  4284. + done
  4285. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4286. +esac
  4287. +
  4288. + $ac_path_GREP_found && break 3
  4289. + done
  4290. + done
  4291. + done
  4292. +IFS=$as_save_IFS
  4293. + if test -z "$ac_cv_path_GREP"; then
  4294. + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4295. + fi
  4296. +else
  4297. + ac_cv_path_GREP=$GREP
  4298. fi
  4299. -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  4300. -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  4301. - EGREP=$ac_cv_prog_egrep
  4302. +
  4303. +fi
  4304. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4305. +$as_echo "$ac_cv_path_GREP" >&6; }
  4306. + GREP="$ac_cv_path_GREP"
  4307. -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4308. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4309. -if test "${ac_cv_header_stdc+set}" = set; then
  4310. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4311. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4312. +$as_echo_n "checking for egrep... " >&6; }
  4313. +if ${ac_cv_path_EGREP+:} false; then :
  4314. + $as_echo_n "(cached) " >&6
  4315. else
  4316. - cat >conftest.$ac_ext <<_ACEOF
  4317. -/* confdefs.h. */
  4318. -_ACEOF
  4319. -cat confdefs.h >>conftest.$ac_ext
  4320. -cat >>conftest.$ac_ext <<_ACEOF
  4321. + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4322. + then ac_cv_path_EGREP="$GREP -E"
  4323. + else
  4324. + if test -z "$EGREP"; then
  4325. + ac_path_EGREP_found=false
  4326. + # Loop through the user's path and test for each of PROGNAME-LIST
  4327. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4328. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4329. +do
  4330. + IFS=$as_save_IFS
  4331. + test -z "$as_dir" && as_dir=.
  4332. + for ac_prog in egrep; do
  4333. + for ac_exec_ext in '' $ac_executable_extensions; do
  4334. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4335. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4336. +# Check for GNU ac_path_EGREP and select it if it is found.
  4337. + # Check for GNU $ac_path_EGREP
  4338. +case `"$ac_path_EGREP" --version 2>&1` in
  4339. +*GNU*)
  4340. + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4341. +*)
  4342. + ac_count=0
  4343. + $as_echo_n 0123456789 >"conftest.in"
  4344. + while :
  4345. + do
  4346. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  4347. + mv "conftest.tmp" "conftest.in"
  4348. + cp "conftest.in" "conftest.nl"
  4349. + $as_echo 'EGREP' >> "conftest.nl"
  4350. + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4351. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4352. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  4353. + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4354. + # Best one so far, save it but keep looking for a better one
  4355. + ac_cv_path_EGREP="$ac_path_EGREP"
  4356. + ac_path_EGREP_max=$ac_count
  4357. + fi
  4358. + # 10*(2^10) chars as input seems more than enough
  4359. + test $ac_count -gt 10 && break
  4360. + done
  4361. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4362. +esac
  4363. +
  4364. + $ac_path_EGREP_found && break 3
  4365. + done
  4366. + done
  4367. + done
  4368. +IFS=$as_save_IFS
  4369. + if test -z "$ac_cv_path_EGREP"; then
  4370. + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4371. + fi
  4372. +else
  4373. + ac_cv_path_EGREP=$EGREP
  4374. +fi
  4375. +
  4376. + fi
  4377. +fi
  4378. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4379. +$as_echo "$ac_cv_path_EGREP" >&6; }
  4380. + EGREP="$ac_cv_path_EGREP"
  4381. +
  4382. +
  4383. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4384. +$as_echo_n "checking for ANSI C header files... " >&6; }
  4385. +if ${ac_cv_header_stdc+:} false; then :
  4386. + $as_echo_n "(cached) " >&6
  4387. +else
  4388. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4389. /* end confdefs.h. */
  4390. #include <stdlib.h>
  4391. #include <stdarg.h>
  4392. @@ -2808,50 +3540,23 @@
  4393. return 0;
  4394. }
  4395. _ACEOF
  4396. -rm -f conftest.$ac_objext
  4397. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4398. - (eval $ac_compile) 2>conftest.er1
  4399. - ac_status=$?
  4400. - grep -v '^ *+' conftest.er1 >conftest.err
  4401. - rm -f conftest.er1
  4402. - cat conftest.err >&5
  4403. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4404. - (exit $ac_status); } &&
  4405. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4406. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4407. - (eval $ac_try) 2>&5
  4408. - ac_status=$?
  4409. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4410. - (exit $ac_status); }; } &&
  4411. - { ac_try='test -s conftest.$ac_objext'
  4412. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4413. - (eval $ac_try) 2>&5
  4414. - ac_status=$?
  4415. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4416. - (exit $ac_status); }; }; then
  4417. +if ac_fn_c_try_compile "$LINENO"; then :
  4418. ac_cv_header_stdc=yes
  4419. else
  4420. - echo "$as_me: failed program was:" >&5
  4421. -sed 's/^/| /' conftest.$ac_ext >&5
  4422. -
  4423. -ac_cv_header_stdc=no
  4424. + ac_cv_header_stdc=no
  4425. fi
  4426. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4427. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4428. if test $ac_cv_header_stdc = yes; then
  4429. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4430. - cat >conftest.$ac_ext <<_ACEOF
  4431. -/* confdefs.h. */
  4432. -_ACEOF
  4433. -cat confdefs.h >>conftest.$ac_ext
  4434. -cat >>conftest.$ac_ext <<_ACEOF
  4435. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4436. /* end confdefs.h. */
  4437. #include <string.h>
  4438. _ACEOF
  4439. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4440. - $EGREP "memchr" >/dev/null 2>&1; then
  4441. - :
  4442. + $EGREP "memchr" >/dev/null 2>&1; then :
  4443. +
  4444. else
  4445. ac_cv_header_stdc=no
  4446. fi
  4447. @@ -2861,18 +3566,14 @@
  4448. if test $ac_cv_header_stdc = yes; then
  4449. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4450. - cat >conftest.$ac_ext <<_ACEOF
  4451. -/* confdefs.h. */
  4452. -_ACEOF
  4453. -cat confdefs.h >>conftest.$ac_ext
  4454. -cat >>conftest.$ac_ext <<_ACEOF
  4455. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4456. /* end confdefs.h. */
  4457. #include <stdlib.h>
  4458. _ACEOF
  4459. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4460. - $EGREP "free" >/dev/null 2>&1; then
  4461. - :
  4462. + $EGREP "free" >/dev/null 2>&1; then :
  4463. +
  4464. else
  4465. ac_cv_header_stdc=no
  4466. fi
  4467. @@ -2882,16 +3583,13 @@
  4468. if test $ac_cv_header_stdc = yes; then
  4469. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4470. - if test "$cross_compiling" = yes; then
  4471. + if test "$cross_compiling" = yes; then :
  4472. :
  4473. else
  4474. - cat >conftest.$ac_ext <<_ACEOF
  4475. -/* confdefs.h. */
  4476. -_ACEOF
  4477. -cat confdefs.h >>conftest.$ac_ext
  4478. -cat >>conftest.$ac_ext <<_ACEOF
  4479. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4480. /* end confdefs.h. */
  4481. #include <ctype.h>
  4482. +#include <stdlib.h>
  4483. #if ((' ' & 0x0FF) == 0x020)
  4484. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4485. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4486. @@ -2911,108 +3609,39 @@
  4487. for (i = 0; i < 256; i++)
  4488. if (XOR (islower (i), ISLOWER (i))
  4489. || toupper (i) != TOUPPER (i))
  4490. - exit(2);
  4491. - exit (0);
  4492. + return 2;
  4493. + return 0;
  4494. }
  4495. _ACEOF
  4496. -rm -f conftest$ac_exeext
  4497. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4498. - (eval $ac_link) 2>&5
  4499. - ac_status=$?
  4500. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4501. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4502. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4503. - (eval $ac_try) 2>&5
  4504. - ac_status=$?
  4505. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4506. - (exit $ac_status); }; }; then
  4507. - :
  4508. -else
  4509. - echo "$as_me: program exited with status $ac_status" >&5
  4510. -echo "$as_me: failed program was:" >&5
  4511. -sed 's/^/| /' conftest.$ac_ext >&5
  4512. +if ac_fn_c_try_run "$LINENO"; then :
  4513. -( exit $ac_status )
  4514. -ac_cv_header_stdc=no
  4515. +else
  4516. + ac_cv_header_stdc=no
  4517. fi
  4518. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4519. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4520. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  4521. fi
  4522. +
  4523. fi
  4524. fi
  4525. -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4526. -echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4527. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4528. +$as_echo "$ac_cv_header_stdc" >&6; }
  4529. if test $ac_cv_header_stdc = yes; then
  4530. -cat >>confdefs.h <<\_ACEOF
  4531. -#define STDC_HEADERS 1
  4532. -_ACEOF
  4533. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4534. fi
  4535. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4536. -
  4537. -
  4538. -
  4539. -
  4540. -
  4541. -
  4542. -
  4543. -
  4544. -
  4545. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4546. inttypes.h stdint.h unistd.h
  4547. -do
  4548. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4549. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  4550. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4551. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4552. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4553. -else
  4554. - cat >conftest.$ac_ext <<_ACEOF
  4555. -/* confdefs.h. */
  4556. -_ACEOF
  4557. -cat confdefs.h >>conftest.$ac_ext
  4558. -cat >>conftest.$ac_ext <<_ACEOF
  4559. -/* end confdefs.h. */
  4560. -$ac_includes_default
  4561. -
  4562. -#include <$ac_header>
  4563. -_ACEOF
  4564. -rm -f conftest.$ac_objext
  4565. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4566. - (eval $ac_compile) 2>conftest.er1
  4567. - ac_status=$?
  4568. - grep -v '^ *+' conftest.er1 >conftest.err
  4569. - rm -f conftest.er1
  4570. - cat conftest.err >&5
  4571. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4572. - (exit $ac_status); } &&
  4573. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4574. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4575. - (eval $ac_try) 2>&5
  4576. - ac_status=$?
  4577. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4578. - (exit $ac_status); }; } &&
  4579. - { ac_try='test -s conftest.$ac_objext'
  4580. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4581. - (eval $ac_try) 2>&5
  4582. - ac_status=$?
  4583. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4584. - (exit $ac_status); }; }; then
  4585. - eval "$as_ac_Header=yes"
  4586. -else
  4587. - echo "$as_me: failed program was:" >&5
  4588. -sed 's/^/| /' conftest.$ac_ext >&5
  4589. -
  4590. -eval "$as_ac_Header=no"
  4591. -fi
  4592. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4593. -fi
  4594. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4595. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4596. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4597. +do :
  4598. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4599. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4600. +"
  4601. +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4602. cat >>confdefs.h <<_ACEOF
  4603. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4604. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4605. _ACEOF
  4606. fi
  4607. @@ -3020,151 +3649,13 @@
  4608. done
  4609. -
  4610. -
  4611. -
  4612. for ac_header in sys/time.h syslog.h unistd.h
  4613. -do
  4614. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4615. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4616. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  4617. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4618. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4619. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4620. -fi
  4621. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4622. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4623. -else
  4624. - # Is the header compilable?
  4625. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4626. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4627. -cat >conftest.$ac_ext <<_ACEOF
  4628. -/* confdefs.h. */
  4629. -_ACEOF
  4630. -cat confdefs.h >>conftest.$ac_ext
  4631. -cat >>conftest.$ac_ext <<_ACEOF
  4632. -/* end confdefs.h. */
  4633. -$ac_includes_default
  4634. -#include <$ac_header>
  4635. -_ACEOF
  4636. -rm -f conftest.$ac_objext
  4637. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4638. - (eval $ac_compile) 2>conftest.er1
  4639. - ac_status=$?
  4640. - grep -v '^ *+' conftest.er1 >conftest.err
  4641. - rm -f conftest.er1
  4642. - cat conftest.err >&5
  4643. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4644. - (exit $ac_status); } &&
  4645. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4646. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4647. - (eval $ac_try) 2>&5
  4648. - ac_status=$?
  4649. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4650. - (exit $ac_status); }; } &&
  4651. - { ac_try='test -s conftest.$ac_objext'
  4652. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4653. - (eval $ac_try) 2>&5
  4654. - ac_status=$?
  4655. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4656. - (exit $ac_status); }; }; then
  4657. - ac_header_compiler=yes
  4658. -else
  4659. - echo "$as_me: failed program was:" >&5
  4660. -sed 's/^/| /' conftest.$ac_ext >&5
  4661. -
  4662. -ac_header_compiler=no
  4663. -fi
  4664. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4665. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4666. -echo "${ECHO_T}$ac_header_compiler" >&6
  4667. -
  4668. -# Is the header present?
  4669. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4670. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4671. -cat >conftest.$ac_ext <<_ACEOF
  4672. -/* confdefs.h. */
  4673. -_ACEOF
  4674. -cat confdefs.h >>conftest.$ac_ext
  4675. -cat >>conftest.$ac_ext <<_ACEOF
  4676. -/* end confdefs.h. */
  4677. -#include <$ac_header>
  4678. -_ACEOF
  4679. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4680. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4681. - ac_status=$?
  4682. - grep -v '^ *+' conftest.er1 >conftest.err
  4683. - rm -f conftest.er1
  4684. - cat conftest.err >&5
  4685. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4686. - (exit $ac_status); } >/dev/null; then
  4687. - if test -s conftest.err; then
  4688. - ac_cpp_err=$ac_c_preproc_warn_flag
  4689. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4690. - else
  4691. - ac_cpp_err=
  4692. - fi
  4693. -else
  4694. - ac_cpp_err=yes
  4695. -fi
  4696. -if test -z "$ac_cpp_err"; then
  4697. - ac_header_preproc=yes
  4698. -else
  4699. - echo "$as_me: failed program was:" >&5
  4700. -sed 's/^/| /' conftest.$ac_ext >&5
  4701. -
  4702. - ac_header_preproc=no
  4703. -fi
  4704. -rm -f conftest.err conftest.$ac_ext
  4705. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4706. -echo "${ECHO_T}$ac_header_preproc" >&6
  4707. -
  4708. -# So? What about this header?
  4709. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4710. - yes:no: )
  4711. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4712. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4713. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4714. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4715. - ac_header_preproc=yes
  4716. - ;;
  4717. - no:yes:* )
  4718. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4719. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4720. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4721. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4722. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4723. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4724. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4725. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4726. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4727. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4728. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4729. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4730. - (
  4731. - cat <<\_ASBOX
  4732. -## ------------------------------------------ ##
  4733. -## Report this to the AC_PACKAGE_NAME lists. ##
  4734. -## ------------------------------------------ ##
  4735. -_ASBOX
  4736. - ) |
  4737. - sed "s/^/$as_me: WARNING: /" >&2
  4738. - ;;
  4739. -esac
  4740. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  4741. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4742. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4743. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4744. -else
  4745. - eval "$as_ac_Header=\$ac_header_preproc"
  4746. -fi
  4747. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4748. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4749. -
  4750. -fi
  4751. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4752. +do :
  4753. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4754. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4755. +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4756. cat >>confdefs.h <<_ACEOF
  4757. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4758. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4759. _ACEOF
  4760. fi
  4761. @@ -3172,16 +3663,12 @@
  4762. done
  4763. -echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  4764. -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  4765. -if test "${ac_cv_c_const+set}" = set; then
  4766. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4767. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4768. +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4769. +if ${ac_cv_c_const+:} false; then :
  4770. + $as_echo_n "(cached) " >&6
  4771. else
  4772. - cat >conftest.$ac_ext <<_ACEOF
  4773. -/* confdefs.h. */
  4774. -_ACEOF
  4775. -cat confdefs.h >>conftest.$ac_ext
  4776. -cat >>conftest.$ac_ext <<_ACEOF
  4777. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4778. /* end confdefs.h. */
  4779. int
  4780. @@ -3191,10 +3678,10 @@
  4781. #ifndef __cplusplus
  4782. /* Ultrix mips cc rejects this. */
  4783. typedef int charset[2];
  4784. - const charset x;
  4785. + const charset cs;
  4786. /* SunOS 4.1.1 cc rejects this. */
  4787. - char const *const *ccp;
  4788. - char **p;
  4789. + char const *const *pcpcc;
  4790. + char **ppc;
  4791. /* NEC SVR4.0.2 mips cc rejects this. */
  4792. struct point {int x, y;};
  4793. static struct point const zero = {0,0};
  4794. @@ -3203,16 +3690,17 @@
  4795. an arm of an if-expression whose if-part is not a constant
  4796. expression */
  4797. const char *g = "string";
  4798. - ccp = &g + (g ? g-g : 0);
  4799. + pcpcc = &g + (g ? g-g : 0);
  4800. /* HPUX 7.0 cc rejects these. */
  4801. - ++ccp;
  4802. - p = (char**) ccp;
  4803. - ccp = (char const *const *) p;
  4804. + ++pcpcc;
  4805. + ppc = (char**) pcpcc;
  4806. + pcpcc = (char const *const *) ppc;
  4807. { /* SCO 3.2v4 cc rejects this. */
  4808. char *t;
  4809. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4810. *t++ = 0;
  4811. + if (s) return 0;
  4812. }
  4813. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4814. int x[] = {25, 17};
  4815. @@ -3231,65 +3719,38 @@
  4816. }
  4817. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4818. const int foo = 10;
  4819. + if (!foo) return 0;
  4820. }
  4821. + return !cs[0] && !zero.x;
  4822. #endif
  4823. ;
  4824. return 0;
  4825. }
  4826. _ACEOF
  4827. -rm -f conftest.$ac_objext
  4828. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4829. - (eval $ac_compile) 2>conftest.er1
  4830. - ac_status=$?
  4831. - grep -v '^ *+' conftest.er1 >conftest.err
  4832. - rm -f conftest.er1
  4833. - cat conftest.err >&5
  4834. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4835. - (exit $ac_status); } &&
  4836. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4837. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4838. - (eval $ac_try) 2>&5
  4839. - ac_status=$?
  4840. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4841. - (exit $ac_status); }; } &&
  4842. - { ac_try='test -s conftest.$ac_objext'
  4843. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4844. - (eval $ac_try) 2>&5
  4845. - ac_status=$?
  4846. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4847. - (exit $ac_status); }; }; then
  4848. +if ac_fn_c_try_compile "$LINENO"; then :
  4849. ac_cv_c_const=yes
  4850. else
  4851. - echo "$as_me: failed program was:" >&5
  4852. -sed 's/^/| /' conftest.$ac_ext >&5
  4853. -
  4854. -ac_cv_c_const=no
  4855. + ac_cv_c_const=no
  4856. fi
  4857. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4858. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4859. fi
  4860. -echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  4861. -echo "${ECHO_T}$ac_cv_c_const" >&6
  4862. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  4863. +$as_echo "$ac_cv_c_const" >&6; }
  4864. if test $ac_cv_c_const = no; then
  4865. -cat >>confdefs.h <<\_ACEOF
  4866. -#define const
  4867. -_ACEOF
  4868. +$as_echo "#define const /**/" >>confdefs.h
  4869. fi
  4870. -echo "$as_me:$LINENO: checking for inline" >&5
  4871. -echo $ECHO_N "checking for inline... $ECHO_C" >&6
  4872. -if test "${ac_cv_c_inline+set}" = set; then
  4873. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4874. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  4875. +$as_echo_n "checking for inline... " >&6; }
  4876. +if ${ac_cv_c_inline+:} false; then :
  4877. + $as_echo_n "(cached) " >&6
  4878. else
  4879. ac_cv_c_inline=no
  4880. for ac_kw in inline __inline__ __inline; do
  4881. - cat >conftest.$ac_ext <<_ACEOF
  4882. -/* confdefs.h. */
  4883. -_ACEOF
  4884. -cat confdefs.h >>conftest.$ac_ext
  4885. -cat >>conftest.$ac_ext <<_ACEOF
  4886. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4887. /* end confdefs.h. */
  4888. #ifndef __cplusplus
  4889. typedef int foo_t;
  4890. @@ -3298,40 +3759,16 @@
  4891. #endif
  4892. _ACEOF
  4893. -rm -f conftest.$ac_objext
  4894. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4895. - (eval $ac_compile) 2>conftest.er1
  4896. - ac_status=$?
  4897. - grep -v '^ *+' conftest.er1 >conftest.err
  4898. - rm -f conftest.er1
  4899. - cat conftest.err >&5
  4900. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4901. - (exit $ac_status); } &&
  4902. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4903. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4904. - (eval $ac_try) 2>&5
  4905. - ac_status=$?
  4906. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4907. - (exit $ac_status); }; } &&
  4908. - { ac_try='test -s conftest.$ac_objext'
  4909. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4910. - (eval $ac_try) 2>&5
  4911. - ac_status=$?
  4912. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4913. - (exit $ac_status); }; }; then
  4914. - ac_cv_c_inline=$ac_kw; break
  4915. -else
  4916. - echo "$as_me: failed program was:" >&5
  4917. -sed 's/^/| /' conftest.$ac_ext >&5
  4918. -
  4919. +if ac_fn_c_try_compile "$LINENO"; then :
  4920. + ac_cv_c_inline=$ac_kw
  4921. fi
  4922. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4923. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4924. + test "$ac_cv_c_inline" != no && break
  4925. done
  4926. fi
  4927. -echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  4928. -echo "${ECHO_T}$ac_cv_c_inline" >&6
  4929. -
  4930. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  4931. +$as_echo "$ac_cv_c_inline" >&6; }
  4932. case $ac_cv_c_inline in
  4933. inline | yes) ;;
  4934. @@ -3348,16 +3785,12 @@
  4935. ;;
  4936. esac
  4937. -echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4938. -echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  4939. -if test "${ac_cv_header_time+set}" = set; then
  4940. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4941. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  4942. +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4943. +if ${ac_cv_header_time+:} false; then :
  4944. + $as_echo_n "(cached) " >&6
  4945. else
  4946. - cat >conftest.$ac_ext <<_ACEOF
  4947. -/* confdefs.h. */
  4948. -_ACEOF
  4949. -cat confdefs.h >>conftest.$ac_ext
  4950. -cat >>conftest.$ac_ext <<_ACEOF
  4951. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4952. /* end confdefs.h. */
  4953. #include <sys/types.h>
  4954. #include <sys/time.h>
  4955. @@ -3372,519 +3805,300 @@
  4956. return 0;
  4957. }
  4958. _ACEOF
  4959. -rm -f conftest.$ac_objext
  4960. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4961. - (eval $ac_compile) 2>conftest.er1
  4962. - ac_status=$?
  4963. - grep -v '^ *+' conftest.er1 >conftest.err
  4964. - rm -f conftest.er1
  4965. - cat conftest.err >&5
  4966. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4967. - (exit $ac_status); } &&
  4968. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4969. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4970. - (eval $ac_try) 2>&5
  4971. - ac_status=$?
  4972. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4973. - (exit $ac_status); }; } &&
  4974. - { ac_try='test -s conftest.$ac_objext'
  4975. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4976. - (eval $ac_try) 2>&5
  4977. - ac_status=$?
  4978. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4979. - (exit $ac_status); }; }; then
  4980. +if ac_fn_c_try_compile "$LINENO"; then :
  4981. ac_cv_header_time=yes
  4982. else
  4983. - echo "$as_me: failed program was:" >&5
  4984. -sed 's/^/| /' conftest.$ac_ext >&5
  4985. -
  4986. -ac_cv_header_time=no
  4987. + ac_cv_header_time=no
  4988. fi
  4989. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4990. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4991. fi
  4992. -echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4993. -echo "${ECHO_T}$ac_cv_header_time" >&6
  4994. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  4995. +$as_echo "$ac_cv_header_time" >&6; }
  4996. if test $ac_cv_header_time = yes; then
  4997. -cat >>confdefs.h <<\_ACEOF
  4998. -#define TIME_WITH_SYS_TIME 1
  4999. -_ACEOF
  5000. +$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  5001. fi
  5002. -echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5003. -echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5004. -if test "${ac_cv_c_bigendian+set}" = set; then
  5005. - echo $ECHO_N "(cached) $ECHO_C" >&6
  5006. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  5007. +$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5008. +if ${ac_cv_c_bigendian+:} false; then :
  5009. + $as_echo_n "(cached) " >&6
  5010. else
  5011. - # See if sys/param.h defines the BYTE_ORDER macro.
  5012. -cat >conftest.$ac_ext <<_ACEOF
  5013. -/* confdefs.h. */
  5014. -_ACEOF
  5015. -cat confdefs.h >>conftest.$ac_ext
  5016. -cat >>conftest.$ac_ext <<_ACEOF
  5017. + ac_cv_c_bigendian=unknown
  5018. + # See if we're dealing with a universal compiler.
  5019. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5020. +/* end confdefs.h. */
  5021. +#ifndef __APPLE_CC__
  5022. + not a universal capable compiler
  5023. + #endif
  5024. + typedef int dummy;
  5025. +
  5026. +_ACEOF
  5027. +if ac_fn_c_try_compile "$LINENO"; then :
  5028. +
  5029. + # Check for potential -arch flags. It is not universal unless
  5030. + # there are at least two -arch flags with different values.
  5031. + ac_arch=
  5032. + ac_prev=
  5033. + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  5034. + if test -n "$ac_prev"; then
  5035. + case $ac_word in
  5036. + i?86 | x86_64 | ppc | ppc64)
  5037. + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  5038. + ac_arch=$ac_word
  5039. + else
  5040. + ac_cv_c_bigendian=universal
  5041. + break
  5042. + fi
  5043. + ;;
  5044. + esac
  5045. + ac_prev=
  5046. + elif test "x$ac_word" = "x-arch"; then
  5047. + ac_prev=arch
  5048. + fi
  5049. + done
  5050. +fi
  5051. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5052. + if test $ac_cv_c_bigendian = unknown; then
  5053. + # See if sys/param.h defines the BYTE_ORDER macro.
  5054. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5055. /* end confdefs.h. */
  5056. #include <sys/types.h>
  5057. -#include <sys/param.h>
  5058. + #include <sys/param.h>
  5059. int
  5060. main ()
  5061. {
  5062. -#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5063. - bogus endian macros
  5064. -#endif
  5065. +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  5066. + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  5067. + && LITTLE_ENDIAN)
  5068. + bogus endian macros
  5069. + #endif
  5070. ;
  5071. return 0;
  5072. }
  5073. _ACEOF
  5074. -rm -f conftest.$ac_objext
  5075. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5076. - (eval $ac_compile) 2>conftest.er1
  5077. - ac_status=$?
  5078. - grep -v '^ *+' conftest.er1 >conftest.err
  5079. - rm -f conftest.er1
  5080. - cat conftest.err >&5
  5081. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5082. - (exit $ac_status); } &&
  5083. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5084. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5085. - (eval $ac_try) 2>&5
  5086. - ac_status=$?
  5087. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5088. - (exit $ac_status); }; } &&
  5089. - { ac_try='test -s conftest.$ac_objext'
  5090. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5091. - (eval $ac_try) 2>&5
  5092. - ac_status=$?
  5093. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5094. - (exit $ac_status); }; }; then
  5095. +if ac_fn_c_try_compile "$LINENO"; then :
  5096. # It does; now see whether it defined to BIG_ENDIAN or not.
  5097. -cat >conftest.$ac_ext <<_ACEOF
  5098. -/* confdefs.h. */
  5099. -_ACEOF
  5100. -cat confdefs.h >>conftest.$ac_ext
  5101. -cat >>conftest.$ac_ext <<_ACEOF
  5102. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5103. /* end confdefs.h. */
  5104. #include <sys/types.h>
  5105. -#include <sys/param.h>
  5106. + #include <sys/param.h>
  5107. int
  5108. main ()
  5109. {
  5110. #if BYTE_ORDER != BIG_ENDIAN
  5111. - not big endian
  5112. -#endif
  5113. + not big endian
  5114. + #endif
  5115. ;
  5116. return 0;
  5117. }
  5118. _ACEOF
  5119. -rm -f conftest.$ac_objext
  5120. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5121. - (eval $ac_compile) 2>conftest.er1
  5122. - ac_status=$?
  5123. - grep -v '^ *+' conftest.er1 >conftest.err
  5124. - rm -f conftest.er1
  5125. - cat conftest.err >&5
  5126. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5127. - (exit $ac_status); } &&
  5128. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5129. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5130. - (eval $ac_try) 2>&5
  5131. - ac_status=$?
  5132. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5133. - (exit $ac_status); }; } &&
  5134. - { ac_try='test -s conftest.$ac_objext'
  5135. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5136. - (eval $ac_try) 2>&5
  5137. - ac_status=$?
  5138. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5139. - (exit $ac_status); }; }; then
  5140. +if ac_fn_c_try_compile "$LINENO"; then :
  5141. ac_cv_c_bigendian=yes
  5142. else
  5143. - echo "$as_me: failed program was:" >&5
  5144. -sed 's/^/| /' conftest.$ac_ext >&5
  5145. -
  5146. -ac_cv_c_bigendian=no
  5147. + ac_cv_c_bigendian=no
  5148. fi
  5149. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5150. -else
  5151. - echo "$as_me: failed program was:" >&5
  5152. -sed 's/^/| /' conftest.$ac_ext >&5
  5153. -
  5154. -# It does not; compile a test program.
  5155. -if test "$cross_compiling" = yes; then
  5156. - # try to guess the endianness by grepping values into an object file
  5157. - ac_cv_c_bigendian=unknown
  5158. - cat >conftest.$ac_ext <<_ACEOF
  5159. -/* confdefs.h. */
  5160. -_ACEOF
  5161. -cat confdefs.h >>conftest.$ac_ext
  5162. -cat >>conftest.$ac_ext <<_ACEOF
  5163. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5164. +fi
  5165. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5166. + fi
  5167. + if test $ac_cv_c_bigendian = unknown; then
  5168. + # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  5169. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5170. /* end confdefs.h. */
  5171. -short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5172. -short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5173. -void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5174. -short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5175. -short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5176. -void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5177. +#include <limits.h>
  5178. +
  5179. int
  5180. main ()
  5181. {
  5182. - _ascii (); _ebcdic ();
  5183. +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  5184. + bogus endian macros
  5185. + #endif
  5186. +
  5187. ;
  5188. return 0;
  5189. }
  5190. _ACEOF
  5191. -rm -f conftest.$ac_objext
  5192. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5193. - (eval $ac_compile) 2>conftest.er1
  5194. - ac_status=$?
  5195. - grep -v '^ *+' conftest.er1 >conftest.err
  5196. - rm -f conftest.er1
  5197. - cat conftest.err >&5
  5198. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5199. - (exit $ac_status); } &&
  5200. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5201. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5202. - (eval $ac_try) 2>&5
  5203. - ac_status=$?
  5204. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5205. - (exit $ac_status); }; } &&
  5206. - { ac_try='test -s conftest.$ac_objext'
  5207. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5208. - (eval $ac_try) 2>&5
  5209. - ac_status=$?
  5210. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5211. - (exit $ac_status); }; }; then
  5212. - if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5213. - ac_cv_c_bigendian=yes
  5214. -fi
  5215. -if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5216. - if test "$ac_cv_c_bigendian" = unknown; then
  5217. - ac_cv_c_bigendian=no
  5218. - else
  5219. - # finding both strings is unlikely to happen, but who knows?
  5220. - ac_cv_c_bigendian=unknown
  5221. - fi
  5222. -fi
  5223. -else
  5224. - echo "$as_me: failed program was:" >&5
  5225. -sed 's/^/| /' conftest.$ac_ext >&5
  5226. -
  5227. -fi
  5228. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5229. -else
  5230. - cat >conftest.$ac_ext <<_ACEOF
  5231. -/* confdefs.h. */
  5232. -_ACEOF
  5233. -cat confdefs.h >>conftest.$ac_ext
  5234. -cat >>conftest.$ac_ext <<_ACEOF
  5235. +if ac_fn_c_try_compile "$LINENO"; then :
  5236. + # It does; now see whether it defined to _BIG_ENDIAN or not.
  5237. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5238. /* end confdefs.h. */
  5239. +#include <limits.h>
  5240. +
  5241. int
  5242. main ()
  5243. {
  5244. - /* Are we little or big endian? From Harbison&Steele. */
  5245. - union
  5246. - {
  5247. - long l;
  5248. - char c[sizeof (long)];
  5249. - } u;
  5250. - u.l = 1;
  5251. - exit (u.c[sizeof (long) - 1] == 1);
  5252. +#ifndef _BIG_ENDIAN
  5253. + not big endian
  5254. + #endif
  5255. +
  5256. + ;
  5257. + return 0;
  5258. }
  5259. _ACEOF
  5260. -rm -f conftest$ac_exeext
  5261. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5262. - (eval $ac_link) 2>&5
  5263. - ac_status=$?
  5264. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5265. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5266. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5267. - (eval $ac_try) 2>&5
  5268. - ac_status=$?
  5269. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5270. - (exit $ac_status); }; }; then
  5271. - ac_cv_c_bigendian=no
  5272. +if ac_fn_c_try_compile "$LINENO"; then :
  5273. + ac_cv_c_bigendian=yes
  5274. else
  5275. - echo "$as_me: program exited with status $ac_status" >&5
  5276. -echo "$as_me: failed program was:" >&5
  5277. -sed 's/^/| /' conftest.$ac_ext >&5
  5278. -
  5279. -( exit $ac_status )
  5280. -ac_cv_c_bigendian=yes
  5281. -fi
  5282. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5283. -fi
  5284. + ac_cv_c_bigendian=no
  5285. fi
  5286. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5287. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5288. fi
  5289. -echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  5290. -echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  5291. -case $ac_cv_c_bigendian in
  5292. - yes)
  5293. -
  5294. -cat >>confdefs.h <<\_ACEOF
  5295. -#define WORDS_BIGENDIAN 1
  5296. -_ACEOF
  5297. - ;;
  5298. - no)
  5299. - ;;
  5300. - *)
  5301. - { { echo "$as_me:$LINENO: error: unknown endianness
  5302. -presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  5303. -echo "$as_me: error: unknown endianness
  5304. -presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  5305. - { (exit 1); exit 1; }; } ;;
  5306. -esac
  5307. -
  5308. -
  5309. -CFLAGS="$CFLAGS -D_BSD_SOURCE"
  5310. -
  5311. -for ac_func in gettimeofday
  5312. -do
  5313. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5314. -echo "$as_me:$LINENO: checking for $ac_func" >&5
  5315. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5316. -if eval "test \"\${$as_ac_var+set}\" = set"; then
  5317. - echo $ECHO_N "(cached) $ECHO_C" >&6
  5318. -else
  5319. - cat >conftest.$ac_ext <<_ACEOF
  5320. -/* confdefs.h. */
  5321. -_ACEOF
  5322. -cat confdefs.h >>conftest.$ac_ext
  5323. -cat >>conftest.$ac_ext <<_ACEOF
  5324. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5325. + fi
  5326. + if test $ac_cv_c_bigendian = unknown; then
  5327. + # Compile a test program.
  5328. + if test "$cross_compiling" = yes; then :
  5329. + # Try to guess by grepping values from an object file.
  5330. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5331. /* end confdefs.h. */
  5332. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5333. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5334. -#define $ac_func innocuous_$ac_func
  5335. -
  5336. -/* System header to define __stub macros and hopefully few prototypes,
  5337. - which can conflict with char $ac_func (); below.
  5338. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5339. - <limits.h> exists even on freestanding compilers. */
  5340. -
  5341. -#ifdef __STDC__
  5342. -# include <limits.h>
  5343. -#else
  5344. -# include <assert.h>
  5345. -#endif
  5346. -
  5347. -#undef $ac_func
  5348. -
  5349. -/* Override any gcc2 internal prototype to avoid an error. */
  5350. -#ifdef __cplusplus
  5351. -extern "C"
  5352. -{
  5353. -#endif
  5354. -/* We use char because int might match the return type of a gcc2
  5355. - builtin and then its argument prototype would still apply. */
  5356. -char $ac_func ();
  5357. -/* The GNU C library defines this for functions which it implements
  5358. - to always fail with ENOSYS. Some functions are actually named
  5359. - something starting with __ and the normal name is an alias. */
  5360. -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5361. -choke me
  5362. -#else
  5363. -char (*f) () = $ac_func;
  5364. -#endif
  5365. -#ifdef __cplusplus
  5366. -}
  5367. -#endif
  5368. +short int ascii_mm[] =
  5369. + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5370. + short int ascii_ii[] =
  5371. + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5372. + int use_ascii (int i) {
  5373. + return ascii_mm[i] + ascii_ii[i];
  5374. + }
  5375. + short int ebcdic_ii[] =
  5376. + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5377. + short int ebcdic_mm[] =
  5378. + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5379. + int use_ebcdic (int i) {
  5380. + return ebcdic_mm[i] + ebcdic_ii[i];
  5381. + }
  5382. + extern int foo;
  5383. int
  5384. main ()
  5385. {
  5386. -return f != $ac_func;
  5387. +return use_ascii (foo) == use_ebcdic (foo);
  5388. ;
  5389. return 0;
  5390. }
  5391. _ACEOF
  5392. -rm -f conftest.$ac_objext conftest$ac_exeext
  5393. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5394. - (eval $ac_link) 2>conftest.er1
  5395. - ac_status=$?
  5396. - grep -v '^ *+' conftest.er1 >conftest.err
  5397. - rm -f conftest.er1
  5398. - cat conftest.err >&5
  5399. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5400. - (exit $ac_status); } &&
  5401. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5402. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5403. - (eval $ac_try) 2>&5
  5404. - ac_status=$?
  5405. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5406. - (exit $ac_status); }; } &&
  5407. - { ac_try='test -s conftest$ac_exeext'
  5408. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5409. - (eval $ac_try) 2>&5
  5410. - ac_status=$?
  5411. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5412. - (exit $ac_status); }; }; then
  5413. - eval "$as_ac_var=yes"
  5414. -else
  5415. - echo "$as_me: failed program was:" >&5
  5416. -sed 's/^/| /' conftest.$ac_ext >&5
  5417. -
  5418. -eval "$as_ac_var=no"
  5419. -fi
  5420. -rm -f conftest.err conftest.$ac_objext \
  5421. - conftest$ac_exeext conftest.$ac_ext
  5422. -fi
  5423. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5424. -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5425. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  5426. - cat >>confdefs.h <<_ACEOF
  5427. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5428. -_ACEOF
  5429. -
  5430. +if ac_fn_c_try_compile "$LINENO"; then :
  5431. + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  5432. + ac_cv_c_bigendian=yes
  5433. + fi
  5434. + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5435. + if test "$ac_cv_c_bigendian" = unknown; then
  5436. + ac_cv_c_bigendian=no
  5437. + else
  5438. + # finding both strings is unlikely to happen, but who knows?
  5439. + ac_cv_c_bigendian=unknown
  5440. + fi
  5441. + fi
  5442. fi
  5443. -done
  5444. -
  5445. -
  5446. -echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  5447. -echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  5448. -if test "${ac_cv_lib_socket_socket+set}" = set; then
  5449. - echo $ECHO_N "(cached) $ECHO_C" >&6
  5450. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5451. else
  5452. - ac_check_lib_save_LIBS=$LIBS
  5453. -LIBS="-lsocket $LIBS"
  5454. -cat >conftest.$ac_ext <<_ACEOF
  5455. -/* confdefs.h. */
  5456. -_ACEOF
  5457. -cat confdefs.h >>conftest.$ac_ext
  5458. -cat >>conftest.$ac_ext <<_ACEOF
  5459. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5460. /* end confdefs.h. */
  5461. -
  5462. -/* Override any gcc2 internal prototype to avoid an error. */
  5463. -#ifdef __cplusplus
  5464. -extern "C"
  5465. -#endif
  5466. -/* We use char because int might match the return type of a gcc2
  5467. - builtin and then its argument prototype would still apply. */
  5468. -char socket ();
  5469. +$ac_includes_default
  5470. int
  5471. main ()
  5472. {
  5473. -socket ();
  5474. +
  5475. + /* Are we little or big endian? From Harbison&Steele. */
  5476. + union
  5477. + {
  5478. + long int l;
  5479. + char c[sizeof (long int)];
  5480. + } u;
  5481. + u.l = 1;
  5482. + return u.c[sizeof (long int) - 1] == 1;
  5483. +
  5484. ;
  5485. return 0;
  5486. }
  5487. _ACEOF
  5488. -rm -f conftest.$ac_objext conftest$ac_exeext
  5489. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5490. - (eval $ac_link) 2>conftest.er1
  5491. - ac_status=$?
  5492. - grep -v '^ *+' conftest.er1 >conftest.err
  5493. - rm -f conftest.er1
  5494. - cat conftest.err >&5
  5495. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5496. - (exit $ac_status); } &&
  5497. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5498. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5499. - (eval $ac_try) 2>&5
  5500. - ac_status=$?
  5501. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5502. - (exit $ac_status); }; } &&
  5503. - { ac_try='test -s conftest$ac_exeext'
  5504. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5505. - (eval $ac_try) 2>&5
  5506. - ac_status=$?
  5507. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5508. - (exit $ac_status); }; }; then
  5509. - ac_cv_lib_socket_socket=yes
  5510. +if ac_fn_c_try_run "$LINENO"; then :
  5511. + ac_cv_c_bigendian=no
  5512. else
  5513. - echo "$as_me: failed program was:" >&5
  5514. -sed 's/^/| /' conftest.$ac_ext >&5
  5515. -
  5516. -ac_cv_lib_socket_socket=no
  5517. + ac_cv_c_bigendian=yes
  5518. fi
  5519. -rm -f conftest.err conftest.$ac_objext \
  5520. - conftest$ac_exeext conftest.$ac_ext
  5521. -LIBS=$ac_check_lib_save_LIBS
  5522. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5523. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  5524. +fi
  5525. +
  5526. + fi
  5527. fi
  5528. -echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  5529. -echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  5530. -if test $ac_cv_lib_socket_socket = yes; then
  5531. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  5532. +$as_echo "$ac_cv_c_bigendian" >&6; }
  5533. + case $ac_cv_c_bigendian in #(
  5534. + yes)
  5535. + $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  5536. +;; #(
  5537. + no)
  5538. + ;; #(
  5539. + universal)
  5540. +
  5541. +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  5542. +
  5543. + ;; #(
  5544. + *)
  5545. + as_fn_error $? "unknown endianness
  5546. + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  5547. + esac
  5548. +
  5549. +
  5550. +CFLAGS="$CFLAGS -D_BSD_SOURCE"
  5551. +for ac_func in gettimeofday
  5552. +do :
  5553. + ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  5554. +if test "x$ac_cv_func_gettimeofday" = xyes; then :
  5555. cat >>confdefs.h <<_ACEOF
  5556. -#define HAVE_LIBSOCKET 1
  5557. +#define HAVE_GETTIMEOFDAY 1
  5558. _ACEOF
  5559. - LIBS="-lsocket $LIBS"
  5560. -
  5561. fi
  5562. +done
  5563. -
  5564. -echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  5565. -echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  5566. -if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  5567. - echo $ECHO_N "(cached) $ECHO_C" >&6
  5568. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  5569. +$as_echo_n "checking for socket in -lsocket... " >&6; }
  5570. +if ${ac_cv_lib_socket_socket+:} false; then :
  5571. + $as_echo_n "(cached) " >&6
  5572. else
  5573. ac_check_lib_save_LIBS=$LIBS
  5574. -LIBS="-lnsl $LIBS"
  5575. -cat >conftest.$ac_ext <<_ACEOF
  5576. -/* confdefs.h. */
  5577. -_ACEOF
  5578. -cat confdefs.h >>conftest.$ac_ext
  5579. -cat >>conftest.$ac_ext <<_ACEOF
  5580. +LIBS="-lsocket $LIBS"
  5581. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5582. /* end confdefs.h. */
  5583. -/* Override any gcc2 internal prototype to avoid an error. */
  5584. +/* Override any GCC internal prototype to avoid an error.
  5585. + Use char because int might match the return type of a GCC
  5586. + builtin and then its argument prototype would still apply. */
  5587. #ifdef __cplusplus
  5588. extern "C"
  5589. #endif
  5590. -/* We use char because int might match the return type of a gcc2
  5591. - builtin and then its argument prototype would still apply. */
  5592. -char gethostbyname ();
  5593. +char socket ();
  5594. int
  5595. main ()
  5596. {
  5597. -gethostbyname ();
  5598. +return socket ();
  5599. ;
  5600. return 0;
  5601. }
  5602. _ACEOF
  5603. -rm -f conftest.$ac_objext conftest$ac_exeext
  5604. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5605. - (eval $ac_link) 2>conftest.er1
  5606. - ac_status=$?
  5607. - grep -v '^ *+' conftest.er1 >conftest.err
  5608. - rm -f conftest.er1
  5609. - cat conftest.err >&5
  5610. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5611. - (exit $ac_status); } &&
  5612. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5613. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5614. - (eval $ac_try) 2>&5
  5615. - ac_status=$?
  5616. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5617. - (exit $ac_status); }; } &&
  5618. - { ac_try='test -s conftest$ac_exeext'
  5619. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5620. - (eval $ac_try) 2>&5
  5621. - ac_status=$?
  5622. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5623. - (exit $ac_status); }; }; then
  5624. - ac_cv_lib_nsl_gethostbyname=yes
  5625. +if ac_fn_c_try_link "$LINENO"; then :
  5626. + ac_cv_lib_socket_socket=yes
  5627. else
  5628. - echo "$as_me: failed program was:" >&5
  5629. -sed 's/^/| /' conftest.$ac_ext >&5
  5630. -
  5631. -ac_cv_lib_nsl_gethostbyname=no
  5632. + ac_cv_lib_socket_socket=no
  5633. fi
  5634. -rm -f conftest.err conftest.$ac_objext \
  5635. - conftest$ac_exeext conftest.$ac_ext
  5636. +rm -f core conftest.err conftest.$ac_objext \
  5637. + conftest$ac_exeext conftest.$ac_ext
  5638. LIBS=$ac_check_lib_save_LIBS
  5639. fi
  5640. -echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  5641. -echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  5642. -if test $ac_cv_lib_nsl_gethostbyname = yes; then
  5643. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  5644. +$as_echo "$ac_cv_lib_socket_socket" >&6; }
  5645. +if test "x$ac_cv_lib_socket_socket" = xyes; then :
  5646. cat >>confdefs.h <<_ACEOF
  5647. -#define HAVE_LIBNSL 1
  5648. +#define HAVE_LIBSOCKET 1
  5649. _ACEOF
  5650. - LIBS="-lnsl $LIBS"
  5651. + LIBS="-lsocket $LIBS"
  5652. fi
  5653. @@ -3899,35 +4113,30 @@
  5654. esac
  5655. if test $ac_cv_lbl_unaligned_fail = yes ; then
  5656. -cat >>confdefs.h <<\_ACEOF
  5657. -#define LBL_ALIGN 1
  5658. -_ACEOF
  5659. +$as_echo "#define LBL_ALIGN 1" >>confdefs.h
  5660. fi
  5661. -echo "$as_me:$LINENO: checking for libpcap" >&5
  5662. -echo $ECHO_N "checking for libpcap... $ECHO_C" >&6
  5663. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap" >&5
  5664. +$as_echo_n "checking for libpcap... " >&6; }
  5665. -# Check whether --with-libpcap or --without-libpcap was given.
  5666. -if test "${with_libpcap+set}" = set; then
  5667. - withval="$with_libpcap"
  5668. - case "$withval" in
  5669. +# Check whether --with-libpcap was given.
  5670. +if test "${with_libpcap+set}" = set; then :
  5671. + withval=$with_libpcap; case "$withval" in
  5672. yes|no)
  5673. - echo "$as_me:$LINENO: result: no" >&5
  5674. -echo "${ECHO_T}no" >&6
  5675. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5676. +$as_echo "no" >&6; }
  5677. ;;
  5678. *)
  5679. - echo "$as_me:$LINENO: result: $withval" >&5
  5680. -echo "${ECHO_T}$withval" >&6
  5681. - if test -f $withval/pcap.h -a -f $withval/libpcap.a; then
  5682. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  5683. +$as_echo "$withval" >&6; }
  5684. + if test -f $withval/include/pcap.h -a -f $withval/lib/libpcap.so; then
  5685. owd=`pwd`
  5686. if cd $withval; then withval=`pwd`; cd $owd; fi
  5687. - PCAP_CFLAGS="-I$withval -I$withval/bpf"
  5688. - PCAPLIB="-L$withval -lpcap"
  5689. + PCAP_CFLAGS="-I$withval/include -I$withval/include/bpf"
  5690. + PCAPLIB="-L$withval/lib -lpcap"
  5691. else
  5692. - { { echo "$as_me:$LINENO: error: pcap.h or libpcap.a not found in $withval" >&5
  5693. -echo "$as_me: error: pcap.h or libpcap.a not found in $withval" >&2;}
  5694. - { (exit 1); exit 1; }; }
  5695. + as_fn_error $? "pcap.h or libpcap.so not found in $withval" "$LINENO" 5
  5696. fi
  5697. ;;
  5698. esac
  5699. @@ -3941,11 +4150,7 @@
  5700. else
  5701. TMP=$LIBS
  5702. LIBS="-lpcap $LIBS"
  5703. - cat >conftest.$ac_ext <<_ACEOF
  5704. -/* confdefs.h. */
  5705. -_ACEOF
  5706. -cat confdefs.h >>conftest.$ac_ext
  5707. -cat >>conftest.$ac_ext <<_ACEOF
  5708. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5709. /* end confdefs.h. */
  5710. #include <pcap.h>
  5711. int
  5712. @@ -3956,58 +4161,33 @@
  5713. return 0;
  5714. }
  5715. _ACEOF
  5716. -rm -f conftest.$ac_objext conftest$ac_exeext
  5717. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5718. - (eval $ac_link) 2>conftest.er1
  5719. - ac_status=$?
  5720. - grep -v '^ *+' conftest.er1 >conftest.err
  5721. - rm -f conftest.er1
  5722. - cat conftest.err >&5
  5723. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5724. - (exit $ac_status); } &&
  5725. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5726. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5727. - (eval $ac_try) 2>&5
  5728. - ac_status=$?
  5729. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5730. - (exit $ac_status); }; } &&
  5731. - { ac_try='test -s conftest$ac_exeext'
  5732. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5733. - (eval $ac_try) 2>&5
  5734. - ac_status=$?
  5735. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5736. - (exit $ac_status); }; }; then
  5737. +if ac_fn_c_try_link "$LINENO"; then :
  5738. LIBPCAP_FOUND=1
  5739. else
  5740. - echo "$as_me: failed program was:" >&5
  5741. -sed 's/^/| /' conftest.$ac_ext >&5
  5742. -
  5743. -LIBPCAP_FOUND=0
  5744. + LIBPCAP_FOUND=0
  5745. fi
  5746. -rm -f conftest.err conftest.$ac_objext \
  5747. - conftest$ac_exeext conftest.$ac_ext
  5748. +rm -f core conftest.err conftest.$ac_objext \
  5749. + conftest$ac_exeext conftest.$ac_ext
  5750. LIBS=$TMP
  5751. if test $LIBPCAP_FOUND = 1 ; then
  5752. PCAPLIB="-lpcap"
  5753. else
  5754. - { { echo "$as_me:$LINENO: error: libpcap not found" >&5
  5755. -echo "$as_me: error: libpcap not found" >&2;}
  5756. - { (exit 1); exit 1; }; }
  5757. + as_fn_error $? "libpcap not found" "$LINENO" 5
  5758. fi
  5759. fi
  5760. - echo "$as_me:$LINENO: result: yes" >&5
  5761. -echo "${ECHO_T}yes" >&6
  5762. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5763. +$as_echo "yes" >&6; }
  5764. -fi;
  5765. +fi
  5766. -# Check whether --enable-libglib or --disable-libglib was given.
  5767. -if test "${enable_libglib+set}" = set; then
  5768. - enableval="$enable_libglib"
  5769. - echo "$as_me:$LINENO: result: skipping glib2 support" >&5
  5770. -echo "${ECHO_T}skipping glib2 support" >&6
  5771. +# Check whether --enable-libglib was given.
  5772. +if test "${enable_libglib+set}" = set; then :
  5773. + enableval=$enable_libglib;
  5774. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipping glib2 support" >&5
  5775. +$as_echo "skipping glib2 support" >&6; }
  5776. else
  5777. @@ -4017,10 +4197,10 @@
  5778. if test -n "$ac_tool_prefix"; then
  5779. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5780. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5781. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  5782. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5783. -if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  5784. - echo $ECHO_N "(cached) $ECHO_C" >&6
  5785. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5786. +$as_echo_n "checking for $ac_word... " >&6; }
  5787. +if ${ac_cv_path_PKG_CONFIG+:} false; then :
  5788. + $as_echo_n "(cached) " >&6
  5789. else
  5790. case $PKG_CONFIG in
  5791. [\\/]* | ?:[\\/]*)
  5792. @@ -4032,37 +4212,38 @@
  5793. do
  5794. IFS=$as_save_IFS
  5795. test -z "$as_dir" && as_dir=.
  5796. - for ac_exec_ext in '' $ac_executable_extensions; do
  5797. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5798. + for ac_exec_ext in '' $ac_executable_extensions; do
  5799. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5800. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5801. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5802. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5803. break 2
  5804. fi
  5805. done
  5806. -done
  5807. + done
  5808. +IFS=$as_save_IFS
  5809. ;;
  5810. esac
  5811. fi
  5812. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5813. -
  5814. if test -n "$PKG_CONFIG"; then
  5815. - echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  5816. -echo "${ECHO_T}$PKG_CONFIG" >&6
  5817. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5818. +$as_echo "$PKG_CONFIG" >&6; }
  5819. else
  5820. - echo "$as_me:$LINENO: result: no" >&5
  5821. -echo "${ECHO_T}no" >&6
  5822. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5823. +$as_echo "no" >&6; }
  5824. fi
  5825. +
  5826. fi
  5827. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5828. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5829. # Extract the first word of "pkg-config", so it can be a program name with args.
  5830. set dummy pkg-config; ac_word=$2
  5831. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  5832. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5833. -if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  5834. - echo $ECHO_N "(cached) $ECHO_C" >&6
  5835. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5836. +$as_echo_n "checking for $ac_word... " >&6; }
  5837. +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  5838. + $as_echo_n "(cached) " >&6
  5839. else
  5840. case $ac_pt_PKG_CONFIG in
  5841. [\\/]* | ?:[\\/]*)
  5842. @@ -4074,29 +4255,39 @@
  5843. do
  5844. IFS=$as_save_IFS
  5845. test -z "$as_dir" && as_dir=.
  5846. - for ac_exec_ext in '' $ac_executable_extensions; do
  5847. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5848. + for ac_exec_ext in '' $ac_executable_extensions; do
  5849. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5850. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5851. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5852. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5853. break 2
  5854. fi
  5855. done
  5856. -done
  5857. + done
  5858. +IFS=$as_save_IFS
  5859. ;;
  5860. esac
  5861. fi
  5862. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5863. -
  5864. if test -n "$ac_pt_PKG_CONFIG"; then
  5865. - echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  5866. -echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
  5867. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  5868. +$as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5869. else
  5870. - echo "$as_me:$LINENO: result: no" >&5
  5871. -echo "${ECHO_T}no" >&6
  5872. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5873. +$as_echo "no" >&6; }
  5874. fi
  5875. - PKG_CONFIG=$ac_pt_PKG_CONFIG
  5876. + if test "x$ac_pt_PKG_CONFIG" = x; then
  5877. + PKG_CONFIG=""
  5878. + else
  5879. + case $cross_compiling:$ac_tool_warned in
  5880. +yes:)
  5881. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5882. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5883. +ac_tool_warned=yes ;;
  5884. +esac
  5885. + PKG_CONFIG=$ac_pt_PKG_CONFIG
  5886. + fi
  5887. else
  5888. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5889. fi
  5890. @@ -4104,30 +4295,30 @@
  5891. fi
  5892. if test -n "$PKG_CONFIG"; then
  5893. _pkg_min_version=0.9.0
  5894. - echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  5895. -echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
  5896. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  5897. +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5898. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5899. - echo "$as_me:$LINENO: result: yes" >&5
  5900. -echo "${ECHO_T}yes" >&6
  5901. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5902. +$as_echo "yes" >&6; }
  5903. else
  5904. - echo "$as_me:$LINENO: result: no" >&5
  5905. -echo "${ECHO_T}no" >&6
  5906. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5907. +$as_echo "no" >&6; }
  5908. PKG_CONFIG=""
  5909. fi
  5910. fi
  5911. pkg_failed=no
  5912. -echo "$as_me:$LINENO: checking for GLIB" >&5
  5913. -echo $ECHO_N "checking for GLIB... $ECHO_C" >&6
  5914. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
  5915. +$as_echo_n "checking for GLIB... " >&6; }
  5916. if test -n "$PKG_CONFIG"; then
  5917. if test -n "$PKG_CONFIG" && \
  5918. - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2.0\"") >&5
  5919. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2.0\""; } >&5
  5920. ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2.0") 2>&5
  5921. ac_status=$?
  5922. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5923. - (exit $ac_status); }; then
  5924. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5925. + test $ac_status = 0; }; then
  5926. pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.2.0" 2>/dev/null`
  5927. else
  5928. pkg_failed=yes
  5929. @@ -4137,11 +4328,11 @@
  5930. fi
  5931. if test -n "$PKG_CONFIG"; then
  5932. if test -n "$PKG_CONFIG" && \
  5933. - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2.0\"") >&5
  5934. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2.0\""; } >&5
  5935. ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2.0") 2>&5
  5936. ac_status=$?
  5937. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5938. - (exit $ac_status); }; then
  5939. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5940. + test $ac_status = 0; }; then
  5941. pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.2.0" 2>/dev/null`
  5942. else
  5943. pkg_failed=yes
  5944. @@ -4155,23 +4346,17 @@
  5945. # Put the nasty error message in config.log where it belongs
  5946. echo "$GLIB_PKG_ERRORS" 1>&5
  5947. - { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 >= 2.2.0) were not met.
  5948. -Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5949. -installed software in a non-standard prefix.
  5950. -
  5951. -Alternatively you may set the GLIB_CFLAGS and GLIB_LIBS environment variables
  5952. -to avoid the need to call pkg-config. See the pkg-config man page for
  5953. -more details." >&5
  5954. -echo "$as_me: error: Package requirements (glib-2.0 >= 2.2.0) were not met.
  5955. + as_fn_error $? "Package requirements (glib-2.0 >= 2.2.0) were not met.
  5956. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5957. installed software in a non-standard prefix.
  5958. Alternatively you may set the GLIB_CFLAGS and GLIB_LIBS environment variables
  5959. to avoid the need to call pkg-config. See the pkg-config man page for
  5960. -more details." >&2;}
  5961. - { (exit 1); exit 1; }; }
  5962. +more details." "$LINENO" 5
  5963. elif test $pkg_failed = untried; then
  5964. - { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
  5965. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5966. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5967. +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  5968. is in your PATH or set the PKG_CONFIG environment variable to the full
  5969. path to pkg-config.
  5970. @@ -4180,36 +4365,25 @@
  5971. more details.
  5972. To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5973. -See \`config.log' for more details." >&5
  5974. -echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
  5975. -is in your PATH or set the PKG_CONFIG environment variable to the full
  5976. -path to pkg-config.
  5977. -
  5978. -Alternatively you may set the GLIB_CFLAGS and GLIB_LIBS environment variables
  5979. -to avoid the need to call pkg-config. See the pkg-config man page for
  5980. -more details.
  5981. -
  5982. -To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5983. -See \`config.log' for more details." >&2;}
  5984. - { (exit 1); exit 1; }; }
  5985. +See \`config.log' for more details" "$LINENO" 5; }
  5986. else
  5987. GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
  5988. GLIB_LIBS=$pkg_cv_GLIB_LIBS
  5989. - echo "$as_me:$LINENO: result: yes" >&5
  5990. -echo "${ECHO_T}yes" >&6
  5991. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5992. +$as_echo "yes" >&6; }
  5993. pkg_failed=no
  5994. -echo "$as_me:$LINENO: checking for GTHREAD" >&5
  5995. -echo $ECHO_N "checking for GTHREAD... $ECHO_C" >&6
  5996. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
  5997. +$as_echo_n "checking for GTHREAD... " >&6; }
  5998. if test -n "$PKG_CONFIG"; then
  5999. if test -n "$PKG_CONFIG" && \
  6000. - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.2.0\"") >&5
  6001. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.2.0\""; } >&5
  6002. ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.2.0") 2>&5
  6003. ac_status=$?
  6004. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6005. - (exit $ac_status); }; then
  6006. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6007. + test $ac_status = 0; }; then
  6008. pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0 >= 2.2.0" 2>/dev/null`
  6009. else
  6010. pkg_failed=yes
  6011. @@ -4219,11 +4393,11 @@
  6012. fi
  6013. if test -n "$PKG_CONFIG"; then
  6014. if test -n "$PKG_CONFIG" && \
  6015. - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.2.0\"") >&5
  6016. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.2.0\""; } >&5
  6017. ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.2.0") 2>&5
  6018. ac_status=$?
  6019. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6020. - (exit $ac_status); }; then
  6021. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6022. + test $ac_status = 0; }; then
  6023. pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0 >= 2.2.0" 2>/dev/null`
  6024. else
  6025. pkg_failed=yes
  6026. @@ -4237,23 +4411,17 @@
  6027. # Put the nasty error message in config.log where it belongs
  6028. echo "$GTHREAD_PKG_ERRORS" 1>&5
  6029. - { { echo "$as_me:$LINENO: error: Package requirements (gthread-2.0 >= 2.2.0) were not met.
  6030. -Consider adjusting the PKG_CONFIG_PATH environment variable if you
  6031. -installed software in a non-standard prefix.
  6032. -
  6033. -Alternatively you may set the GTHREAD_CFLAGS and GTHREAD_LIBS environment variables
  6034. -to avoid the need to call pkg-config. See the pkg-config man page for
  6035. -more details." >&5
  6036. -echo "$as_me: error: Package requirements (gthread-2.0 >= 2.2.0) were not met.
  6037. + as_fn_error $? "Package requirements (gthread-2.0 >= 2.2.0) were not met.
  6038. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  6039. installed software in a non-standard prefix.
  6040. Alternatively you may set the GTHREAD_CFLAGS and GTHREAD_LIBS environment variables
  6041. to avoid the need to call pkg-config. See the pkg-config man page for
  6042. -more details." >&2;}
  6043. - { (exit 1); exit 1; }; }
  6044. +more details." "$LINENO" 5
  6045. elif test $pkg_failed = untried; then
  6046. - { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
  6047. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6048. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6049. +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  6050. is in your PATH or set the PKG_CONFIG environment variable to the full
  6051. path to pkg-config.
  6052. @@ -4262,90 +4430,51 @@
  6053. more details.
  6054. To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  6055. -See \`config.log' for more details." >&5
  6056. -echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
  6057. -is in your PATH or set the PKG_CONFIG environment variable to the full
  6058. -path to pkg-config.
  6059. -
  6060. -Alternatively you may set the GTHREAD_CFLAGS and GTHREAD_LIBS environment variables
  6061. -to avoid the need to call pkg-config. See the pkg-config man page for
  6062. -more details.
  6063. -
  6064. -To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  6065. -See \`config.log' for more details." >&2;}
  6066. - { (exit 1); exit 1; }; }
  6067. +See \`config.log' for more details" "$LINENO" 5; }
  6068. else
  6069. GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
  6070. GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
  6071. - echo "$as_me:$LINENO: result: yes" >&5
  6072. -echo "${ECHO_T}yes" >&6
  6073. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6074. +$as_echo "yes" >&6; }
  6075. :
  6076. fi
  6077. -
  6078. -echo "$as_me:$LINENO: checking for g_thread_init in -lgthread-2.0" >&5
  6079. -echo $ECHO_N "checking for g_thread_init in -lgthread-2.0... $ECHO_C" >&6
  6080. -if test "${ac_cv_lib_gthread_2_0_g_thread_init+set}" = set; then
  6081. - echo $ECHO_N "(cached) $ECHO_C" >&6
  6082. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g_thread_init in -lgthread-2.0" >&5
  6083. +$as_echo_n "checking for g_thread_init in -lgthread-2.0... " >&6; }
  6084. +if ${ac_cv_lib_gthread_2_0_g_thread_init+:} false; then :
  6085. + $as_echo_n "(cached) " >&6
  6086. else
  6087. ac_check_lib_save_LIBS=$LIBS
  6088. LIBS="-lgthread-2.0 $GTHREAD_LIBS $LIBS"
  6089. -cat >conftest.$ac_ext <<_ACEOF
  6090. -/* confdefs.h. */
  6091. -_ACEOF
  6092. -cat confdefs.h >>conftest.$ac_ext
  6093. -cat >>conftest.$ac_ext <<_ACEOF
  6094. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6095. /* end confdefs.h. */
  6096. -/* Override any gcc2 internal prototype to avoid an error. */
  6097. +/* Override any GCC internal prototype to avoid an error.
  6098. + Use char because int might match the return type of a GCC
  6099. + builtin and then its argument prototype would still apply. */
  6100. #ifdef __cplusplus
  6101. extern "C"
  6102. #endif
  6103. -/* We use char because int might match the return type of a gcc2
  6104. - builtin and then its argument prototype would still apply. */
  6105. char g_thread_init ();
  6106. int
  6107. main ()
  6108. {
  6109. -g_thread_init ();
  6110. +return g_thread_init ();
  6111. ;
  6112. return 0;
  6113. }
  6114. _ACEOF
  6115. -rm -f conftest.$ac_objext conftest$ac_exeext
  6116. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6117. - (eval $ac_link) 2>conftest.er1
  6118. - ac_status=$?
  6119. - grep -v '^ *+' conftest.er1 >conftest.err
  6120. - rm -f conftest.er1
  6121. - cat conftest.err >&5
  6122. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6123. - (exit $ac_status); } &&
  6124. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6125. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6126. - (eval $ac_try) 2>&5
  6127. - ac_status=$?
  6128. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6129. - (exit $ac_status); }; } &&
  6130. - { ac_try='test -s conftest$ac_exeext'
  6131. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6132. - (eval $ac_try) 2>&5
  6133. - ac_status=$?
  6134. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6135. - (exit $ac_status); }; }; then
  6136. +if ac_fn_c_try_link "$LINENO"; then :
  6137. ac_cv_lib_gthread_2_0_g_thread_init=yes
  6138. else
  6139. - echo "$as_me: failed program was:" >&5
  6140. -sed 's/^/| /' conftest.$ac_ext >&5
  6141. -
  6142. -ac_cv_lib_gthread_2_0_g_thread_init=no
  6143. + ac_cv_lib_gthread_2_0_g_thread_init=no
  6144. fi
  6145. -rm -f conftest.err conftest.$ac_objext \
  6146. - conftest$ac_exeext conftest.$ac_ext
  6147. +rm -f core conftest.err conftest.$ac_objext \
  6148. + conftest$ac_exeext conftest.$ac_ext
  6149. LIBS=$ac_check_lib_save_LIBS
  6150. fi
  6151. -echo "$as_me:$LINENO: result: $ac_cv_lib_gthread_2_0_g_thread_init" >&5
  6152. -echo "${ECHO_T}$ac_cv_lib_gthread_2_0_g_thread_init" >&6
  6153. -if test $ac_cv_lib_gthread_2_0_g_thread_init = yes; then
  6154. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gthread_2_0_g_thread_init" >&5
  6155. +$as_echo "$ac_cv_lib_gthread_2_0_g_thread_init" >&6; }
  6156. +if test "x$ac_cv_lib_gthread_2_0_g_thread_init" = xyes; then :
  6157. cat >>confdefs.h <<_ACEOF
  6158. #define HAVE_LIBGTHREAD_2_0 1
  6159. _ACEOF
  6160. @@ -4358,47 +4487,45 @@
  6161. fi
  6162. -fi;
  6163. +fi
  6164. +
  6165. -echo "$as_me:$LINENO: checking for libnet" >&5
  6166. -echo $ECHO_N "checking for libnet... $ECHO_C" >&6
  6167. -# Check whether --enable-libnet or --disable-libnet was given.
  6168. -if test "${enable_libnet+set}" = set; then
  6169. - enableval="$enable_libnet"
  6170. - case "$enableval" in
  6171. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnet" >&5
  6172. +$as_echo_n "checking for libnet... " >&6; }
  6173. +# Check whether --enable-libnet was given.
  6174. +if test "${enable_libnet+set}" = set; then :
  6175. + enableval=$enable_libnet; case "$enableval" in
  6176. yes)
  6177. - echo "$as_me:$LINENO: result: yes" >&5
  6178. -echo "${ECHO_T}yes" >&6
  6179. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6180. +$as_echo "yes" >&6; }
  6181. ;;
  6182. no)
  6183. - echo "$as_me:$LINENO: result: no" >&5
  6184. -echo "${ECHO_T}no" >&6
  6185. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6186. +$as_echo "no" >&6; }
  6187. LIBNET_VER=-1
  6188. ;;
  6189. *)
  6190. - { { echo "$as_me:$LINENO: error: no arguments expected for --disable-libnet" >&5
  6191. -echo "$as_me: error: no arguments expected for --disable-libnet" >&2;}
  6192. - { (exit 1); exit 1; }; }
  6193. + as_fn_error $? "no arguments expected for --disable-libnet" "$LINENO" 5
  6194. ;;
  6195. esac
  6196. -fi;
  6197. +fi
  6198. +
  6199. -# Check whether --with-libnet or --without-libnet was given.
  6200. -if test "${with_libnet+set}" = set; then
  6201. - withval="$with_libnet"
  6202. - case "$withval" in
  6203. +# Check whether --with-libnet was given.
  6204. +if test "${with_libnet+set}" = set; then :
  6205. + withval=$with_libnet; case "$withval" in
  6206. yes)
  6207. ;;
  6208. no)
  6209. LIBNET_VER=-1
  6210. - echo "$as_me:$LINENO: result: no" >&5
  6211. -echo "${ECHO_T}no" >&6
  6212. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6213. +$as_echo "no" >&6; }
  6214. ;;
  6215. *)
  6216. - echo "$as_me:$LINENO: result: $withval" >&5
  6217. -echo "${ECHO_T}$withval" >&6
  6218. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  6219. +$as_echo "$withval" >&6; }
  6220. if test -f $withval/include/libnet.h -a -f $withval/lib/libnet.a -a -f $withval/libnet-config ; then
  6221. owd=`pwd`
  6222. if cd $withval; then withval=`pwd`; cd $owd; fi
  6223. @@ -4411,16 +4538,14 @@
  6224. LNETLIB="-L$withval/src -lnet"
  6225. else
  6226. echo "A working combination of libnet.h, libnet.a and libnet-config not found in $withval; get libnet from www.packetfactory.net/projects/libnet and reinstall"
  6227. - { { echo "$as_me:$LINENO: error: libnet" >&5
  6228. -echo "$as_me: error: libnet" >&2;}
  6229. - { (exit 1); exit 1; }; }
  6230. + as_fn_error $? "libnet" "$LINENO" 5
  6231. fi
  6232. ;;
  6233. esac
  6234. else
  6235. if test "x"$LIBNET_VER = "x"-1 ; then
  6236. - echo "$as_me:$LINENO: result: skipping libnet" >&5
  6237. -echo "${ECHO_T}skipping libnet" >&6
  6238. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipping libnet" >&5
  6239. +$as_echo "skipping libnet" >&6; }
  6240. else
  6241. if test -f ${prefix}/include/libnet.h -a ${exec_prefix}/lib/libnet.a ; then
  6242. LNET_CFLAGS="-I${prefix}/include `${exec_prefix}/bin/libnet-config --defines 2>/dev/null`"
  6243. @@ -4431,18 +4556,15 @@
  6244. fi
  6245. fi
  6246. -fi;
  6247. +fi
  6248. +
  6249. if test "x"$LIBNET_VER != "x"-1 ; then
  6250. TMPC="$CFLAGS"
  6251. TMPL="$LIBS"
  6252. CFLAGS="$CFLAGS $LNET_CFLAGS"
  6253. LIBS="$LNETLIB $LIBS"
  6254. - cat >conftest.$ac_ext <<_ACEOF
  6255. -/* confdefs.h. */
  6256. -_ACEOF
  6257. -cat confdefs.h >>conftest.$ac_ext
  6258. -cat >>conftest.$ac_ext <<_ACEOF
  6259. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6260. /* end confdefs.h. */
  6261. #include <libnet.h>
  6262. int
  6263. @@ -4453,47 +4575,22 @@
  6264. return 0;
  6265. }
  6266. _ACEOF
  6267. -rm -f conftest.$ac_objext conftest$ac_exeext
  6268. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6269. - (eval $ac_link) 2>conftest.er1
  6270. - ac_status=$?
  6271. - grep -v '^ *+' conftest.er1 >conftest.err
  6272. - rm -f conftest.er1
  6273. - cat conftest.err >&5
  6274. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6275. - (exit $ac_status); } &&
  6276. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6277. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6278. - (eval $ac_try) 2>&5
  6279. - ac_status=$?
  6280. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6281. - (exit $ac_status); }; } &&
  6282. - { ac_try='test -s conftest$ac_exeext'
  6283. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6284. - (eval $ac_try) 2>&5
  6285. - ac_status=$?
  6286. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6287. - (exit $ac_status); }; }; then
  6288. +if ac_fn_c_try_link "$LINENO"; then :
  6289. LIBNET_FOUND=1
  6290. else
  6291. - echo "$as_me: failed program was:" >&5
  6292. -sed 's/^/| /' conftest.$ac_ext >&5
  6293. -
  6294. -LIBNET_FOUND=0
  6295. + LIBNET_FOUND=0
  6296. fi
  6297. -rm -f conftest.err conftest.$ac_objext \
  6298. - conftest$ac_exeext conftest.$ac_ext
  6299. +rm -f core conftest.err conftest.$ac_objext \
  6300. + conftest$ac_exeext conftest.$ac_ext
  6301. CFLAGS="$TMPC"
  6302. LIBS="$TMPL"
  6303. if test $LIBNET_FOUND = 1 ; then
  6304. LNETLIB="-lnet"
  6305. - echo "$as_me:$LINENO: result: yes" >&5
  6306. -echo "${ECHO_T}yes" >&6
  6307. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6308. +$as_echo "yes" >&6; }
  6309. else
  6310. echo "Working libnet not found; get it from www.packetfactory.net/projects/libnet and reinstall"
  6311. - { { echo "$as_me:$LINENO: error: libnet" >&5
  6312. -echo "$as_me: error: libnet" >&2;}
  6313. - { (exit 1); exit 1; }; }
  6314. + as_fn_error $? "libnet" "$LINENO" 5
  6315. fi
  6316. fi
  6317. @@ -4501,41 +4598,35 @@
  6318. BUILD_SHARED=
  6319. -echo "$as_me:$LINENO: checking whether to build shared library" >&5
  6320. -echo $ECHO_N "checking whether to build shared library... $ECHO_C" >&6
  6321. -# Check whether --enable-shared or --disable-shared was given.
  6322. -if test "${enable_shared+set}" = set; then
  6323. - enableval="$enable_shared"
  6324. - case "$enableval" in
  6325. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared library" >&5
  6326. +$as_echo_n "checking whether to build shared library... " >&6; }
  6327. +# Check whether --enable-shared was given.
  6328. +if test "${enable_shared+set}" = set; then :
  6329. + enableval=$enable_shared; case "$enableval" in
  6330. yes)
  6331. - echo "$as_me:$LINENO: result: yes" >&5
  6332. -echo "${ECHO_T}yes" >&6
  6333. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6334. +$as_echo "yes" >&6; }
  6335. BUILD_SHARED=shared
  6336. ;;
  6337. no)
  6338. - echo "$as_me:$LINENO: result: no" >&5
  6339. -echo "${ECHO_T}no" >&6
  6340. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6341. +$as_echo "no" >&6; }
  6342. ;;
  6343. *)
  6344. - { { echo "$as_me:$LINENO: error: no arguments expected for --enable-shared" >&5
  6345. -echo "$as_me: error: no arguments expected for --enable-shared" >&2;}
  6346. - { (exit 1); exit 1; }; }
  6347. + as_fn_error $? "no arguments expected for --enable-shared" "$LINENO" 5
  6348. ;;
  6349. esac
  6350. else
  6351. - echo "$as_me:$LINENO: result: no" >&5
  6352. -echo "${ECHO_T}no" >&6
  6353. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6354. +$as_echo "no" >&6; }
  6355. -fi;
  6356. +fi
  6357. -echo "$as_me:$LINENO: checking the name of struct icmp" >&5
  6358. -echo $ECHO_N "checking the name of struct icmp... $ECHO_C" >&6
  6359. -cat >conftest.$ac_ext <<_ACEOF
  6360. -/* confdefs.h. */
  6361. -_ACEOF
  6362. -cat confdefs.h >>conftest.$ac_ext
  6363. -cat >>conftest.$ac_ext <<_ACEOF
  6364. +
  6365. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of struct icmp" >&5
  6366. +$as_echo_n "checking the name of struct icmp... " >&6; }
  6367. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6368. /* end confdefs.h. */
  6369. #include <sys/types.h>
  6370. #include <netinet/in.h>
  6371. @@ -4549,48 +4640,21 @@
  6372. return 0;
  6373. }
  6374. _ACEOF
  6375. -rm -f conftest.$ac_objext
  6376. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6377. - (eval $ac_compile) 2>conftest.er1
  6378. - ac_status=$?
  6379. - grep -v '^ *+' conftest.er1 >conftest.err
  6380. - rm -f conftest.er1
  6381. - cat conftest.err >&5
  6382. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6383. - (exit $ac_status); } &&
  6384. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6385. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6386. - (eval $ac_try) 2>&5
  6387. - ac_status=$?
  6388. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6389. - (exit $ac_status); }; } &&
  6390. - { ac_try='test -s conftest.$ac_objext'
  6391. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6392. - (eval $ac_try) 2>&5
  6393. - ac_status=$?
  6394. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6395. - (exit $ac_status); }; }; then
  6396. +if ac_fn_c_try_compile "$LINENO"; then :
  6397. ICMPHEADER=1
  6398. else
  6399. - echo "$as_me: failed program was:" >&5
  6400. -sed 's/^/| /' conftest.$ac_ext >&5
  6401. -
  6402. -ICMPHEADER=0
  6403. + ICMPHEADER=0
  6404. fi
  6405. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6406. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6407. if test $ICMPHEADER = 1 ; then
  6408. - echo "$as_me:$LINENO: result: struct icmphdr" >&5
  6409. -echo "${ECHO_T}struct icmphdr" >&6 ; else echo "$as_me:$LINENO: result: struct icmp" >&5
  6410. -echo "${ECHO_T}struct icmp" >&6
  6411. -fi
  6412. -echo "$as_me:$LINENO: checking if tcp states are defined" >&5
  6413. -echo $ECHO_N "checking if tcp states are defined... $ECHO_C" >&6
  6414. -cat >conftest.$ac_ext <<_ACEOF
  6415. -/* confdefs.h. */
  6416. -_ACEOF
  6417. -cat confdefs.h >>conftest.$ac_ext
  6418. -cat >>conftest.$ac_ext <<_ACEOF
  6419. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct icmphdr" >&5
  6420. +$as_echo "struct icmphdr" >&6; } ; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct icmp" >&5
  6421. +$as_echo "struct icmp" >&6; }
  6422. +fi
  6423. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if tcp states are defined" >&5
  6424. +$as_echo_n "checking if tcp states are defined... " >&6; }
  6425. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6426. /* end confdefs.h. */
  6427. #include <sys/types.h>
  6428. #include <netinet/in.h>
  6429. @@ -4603,49 +4667,22 @@
  6430. return 0;
  6431. }
  6432. _ACEOF
  6433. -rm -f conftest.$ac_objext
  6434. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6435. - (eval $ac_compile) 2>conftest.er1
  6436. - ac_status=$?
  6437. - grep -v '^ *+' conftest.er1 >conftest.err
  6438. - rm -f conftest.er1
  6439. - cat conftest.err >&5
  6440. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6441. - (exit $ac_status); } &&
  6442. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6443. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6444. - (eval $ac_try) 2>&5
  6445. - ac_status=$?
  6446. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6447. - (exit $ac_status); }; } &&
  6448. - { ac_try='test -s conftest.$ac_objext'
  6449. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6450. - (eval $ac_try) 2>&5
  6451. - ac_status=$?
  6452. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6453. - (exit $ac_status); }; }; then
  6454. +if ac_fn_c_try_compile "$LINENO"; then :
  6455. TCPSTATES=1
  6456. else
  6457. - echo "$as_me: failed program was:" >&5
  6458. -sed 's/^/| /' conftest.$ac_ext >&5
  6459. -
  6460. -TCPSTATES=0
  6461. + TCPSTATES=0
  6462. fi
  6463. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6464. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6465. if test $TCPSTATES = 1 ; then
  6466. - echo "$as_me:$LINENO: result: yes" >&5
  6467. -echo "${ECHO_T}yes" >&6 ; else echo "$as_me:$LINENO: result: no" >&5
  6468. -echo "${ECHO_T}no" >&6
  6469. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6470. +$as_echo "yes" >&6; } ; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6471. +$as_echo "no" >&6; }
  6472. fi
  6473. -echo "$as_me:$LINENO: checking for bsd-ish struct udphdr" >&5
  6474. -echo $ECHO_N "checking for bsd-ish struct udphdr... $ECHO_C" >&6
  6475. -cat >conftest.$ac_ext <<_ACEOF
  6476. -/* confdefs.h. */
  6477. -_ACEOF
  6478. -cat confdefs.h >>conftest.$ac_ext
  6479. -cat >>conftest.$ac_ext <<_ACEOF
  6480. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd-ish struct udphdr" >&5
  6481. +$as_echo_n "checking for bsd-ish struct udphdr... " >&6; }
  6482. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6483. /* end confdefs.h. */
  6484. #include <sys/types.h>
  6485. #include <netinet/in.h>
  6486. @@ -4658,51 +4695,24 @@
  6487. return 0;
  6488. }
  6489. _ACEOF
  6490. -rm -f conftest.$ac_objext
  6491. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6492. - (eval $ac_compile) 2>conftest.er1
  6493. - ac_status=$?
  6494. - grep -v '^ *+' conftest.er1 >conftest.err
  6495. - rm -f conftest.er1
  6496. - cat conftest.err >&5
  6497. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6498. - (exit $ac_status); } &&
  6499. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6500. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6501. - (eval $ac_try) 2>&5
  6502. - ac_status=$?
  6503. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6504. - (exit $ac_status); }; } &&
  6505. - { ac_try='test -s conftest.$ac_objext'
  6506. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6507. - (eval $ac_try) 2>&5
  6508. - ac_status=$?
  6509. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6510. - (exit $ac_status); }; }; then
  6511. +if ac_fn_c_try_compile "$LINENO"; then :
  6512. HAVE_BSD_UDPHDR=1
  6513. else
  6514. - echo "$as_me: failed program was:" >&5
  6515. -sed 's/^/| /' conftest.$ac_ext >&5
  6516. -
  6517. -HAVE_BSD_UDPHDR=0
  6518. + HAVE_BSD_UDPHDR=0
  6519. fi
  6520. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6521. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6522. if test $HAVE_BSD_UDPHDR = 1 ; then
  6523. - echo "$as_me:$LINENO: result: yes" >&5
  6524. -echo "${ECHO_T}yes" >&6 ; else echo "$as_me:$LINENO: result: no" >&5
  6525. -echo "${ECHO_T}no" >&6
  6526. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6527. +$as_echo "yes" >&6; } ; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6528. +$as_echo "no" >&6; }
  6529. fi
  6530. if test "x"$LIBNET_VER != "x"-1 ; then
  6531. TMP=$CFLAGS
  6532. CFLAGS="$CFLAGS $LNET_CFLAGS"
  6533. - echo "$as_me:$LINENO: checking libnet version" >&5
  6534. -echo $ECHO_N "checking libnet version... $ECHO_C" >&6
  6535. - cat >conftest.$ac_ext <<_ACEOF
  6536. -/* confdefs.h. */
  6537. -_ACEOF
  6538. -cat confdefs.h >>conftest.$ac_ext
  6539. -cat >>conftest.$ac_ext <<_ACEOF
  6540. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking libnet version" >&5
  6541. +$as_echo_n "checking libnet version... " >&6; }
  6542. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6543. /* end confdefs.h. */
  6544. #include <libnet.h>
  6545. int
  6546. @@ -4713,44 +4723,22 @@
  6547. return 0;
  6548. }
  6549. _ACEOF
  6550. -rm -f conftest.$ac_objext
  6551. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6552. - (eval $ac_compile) 2>conftest.er1
  6553. - ac_status=$?
  6554. - grep -v '^ *+' conftest.er1 >conftest.err
  6555. - rm -f conftest.er1
  6556. - cat conftest.err >&5
  6557. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6558. - (exit $ac_status); } &&
  6559. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6560. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6561. - (eval $ac_try) 2>&5
  6562. - ac_status=$?
  6563. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6564. - (exit $ac_status); }; } &&
  6565. - { ac_try='test -s conftest.$ac_objext'
  6566. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6567. - (eval $ac_try) 2>&5
  6568. - ac_status=$?
  6569. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6570. - (exit $ac_status); }; }; then
  6571. +if ac_fn_c_try_compile "$LINENO"; then :
  6572. LIBNET_VER=1
  6573. else
  6574. - echo "$as_me: failed program was:" >&5
  6575. -sed 's/^/| /' conftest.$ac_ext >&5
  6576. -
  6577. -LIBNET_VER=0
  6578. + LIBNET_VER=0
  6579. fi
  6580. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6581. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6582. CFLAGS=$TMP
  6583. if test $LIBNET_VER = 1 ; then
  6584. - echo "$as_me:$LINENO: result: looks new" >&5
  6585. -echo "${ECHO_T}looks new" >&6 ; else echo "$as_me:$LINENO: result: looks old" >&5
  6586. -echo "${ECHO_T}looks old" >&6
  6587. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: looks new" >&5
  6588. +$as_echo "looks new" >&6; } ; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: looks old" >&5
  6589. +$as_echo "looks old" >&6; }
  6590. fi
  6591. fi
  6592. - ac_config_files="$ac_config_files Makefile src/Makefile samples/Makefile"
  6593. +ac_config_files="$ac_config_files Makefile src/Makefile samples/Makefile"
  6594. +
  6595. cat >confcache <<\_ACEOF
  6596. # This file is a shell script that caches the results of configure
  6597. # tests run on this system so they can be shared between configure
  6598. @@ -4769,39 +4757,70 @@
  6599. # The following way of writing the cache mishandles newlines in values,
  6600. # but we know of no workaround that is simple, portable, and efficient.
  6601. -# So, don't put newlines in cache variables' values.
  6602. +# So, we kill variables containing newlines.
  6603. # Ultrix sh set writes to stderr and can't be redirected directly,
  6604. # and sets the high bit in the cache file unless we assign to the vars.
  6605. -{
  6606. +(
  6607. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6608. + eval ac_val=\$$ac_var
  6609. + case $ac_val in #(
  6610. + *${as_nl}*)
  6611. + case $ac_var in #(
  6612. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6613. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6614. + esac
  6615. + case $ac_var in #(
  6616. + _ | IFS | as_nl) ;; #(
  6617. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6618. + *) { eval $ac_var=; unset $ac_var;} ;;
  6619. + esac ;;
  6620. + esac
  6621. + done
  6622. +
  6623. (set) 2>&1 |
  6624. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6625. - *ac_space=\ *)
  6626. - # `set' does not quote correctly, so add quotes (double-quote
  6627. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  6628. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6629. + *${as_nl}ac_space=\ *)
  6630. + # `set' does not quote correctly, so add quotes: double-quote
  6631. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  6632. sed -n \
  6633. "s/'/'\\\\''/g;
  6634. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6635. - ;;
  6636. + ;; #(
  6637. *)
  6638. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6639. - sed -n \
  6640. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6641. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6642. ;;
  6643. - esac;
  6644. -} |
  6645. + esac |
  6646. + sort
  6647. +) |
  6648. sed '
  6649. + /^ac_cv_env_/b end
  6650. t clear
  6651. - : clear
  6652. + :clear
  6653. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6654. t end
  6655. - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6656. - : end' >>confcache
  6657. -if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6658. - if test -w $cache_file; then
  6659. - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  6660. - cat confcache >$cache_file
  6661. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6662. + :end' >>confcache
  6663. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6664. + if test -w "$cache_file"; then
  6665. + if test "x$cache_file" != "x/dev/null"; then
  6666. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6667. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  6668. + if test ! -f "$cache_file" || test -h "$cache_file"; then
  6669. + cat confcache >"$cache_file"
  6670. + else
  6671. + case $cache_file in #(
  6672. + */* | ?:*)
  6673. + mv -f confcache "$cache_file"$$ &&
  6674. + mv -f "$cache_file"$$ "$cache_file" ;; #(
  6675. + *)
  6676. + mv -f confcache "$cache_file" ;;
  6677. + esac
  6678. + fi
  6679. + fi
  6680. else
  6681. - echo "not updating unwritable cache $cache_file"
  6682. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6683. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6684. fi
  6685. fi
  6686. rm -f confcache
  6687. @@ -4810,32 +4829,19 @@
  6688. # Let make expand exec_prefix.
  6689. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6690. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  6691. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  6692. -# trailing colons and then remove the whole line if VPATH becomes empty
  6693. -# (actually we leave an empty line to preserve line numbers).
  6694. -if test "x$srcdir" = x.; then
  6695. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  6696. -s/:*\$(srcdir):*/:/;
  6697. -s/:*\${srcdir}:*/:/;
  6698. -s/:*@srcdir@:*/:/;
  6699. -s/^\([^=]*=[ ]*\):*/\1/;
  6700. -s/:*$//;
  6701. -s/^[^=]*=[ ]*$//;
  6702. -}'
  6703. -fi
  6704. -
  6705. DEFS=-DHAVE_CONFIG_H
  6706. ac_libobjs=
  6707. ac_ltlibobjs=
  6708. +U=
  6709. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  6710. # 1. Remove the extension, and $U if already installed.
  6711. - ac_i=`echo "$ac_i" |
  6712. - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  6713. - # 2. Add them.
  6714. - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  6715. - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  6716. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  6717. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  6718. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  6719. + # will be set to the directory where LIBOBJS objects are built.
  6720. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  6721. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  6722. done
  6723. LIBOBJS=$ac_libobjs
  6724. @@ -4843,12 +4849,15 @@
  6725. -: ${CONFIG_STATUS=./config.status}
  6726. +
  6727. +: "${CONFIG_STATUS=./config.status}"
  6728. +ac_write_fail=0
  6729. ac_clean_files_save=$ac_clean_files
  6730. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  6731. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  6732. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  6733. -cat >$CONFIG_STATUS <<_ACEOF
  6734. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  6735. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  6736. +as_write_fail=0
  6737. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  6738. #! $SHELL
  6739. # Generated by $as_me.
  6740. # Run this file to recreate the current configuration.
  6741. @@ -4858,81 +4867,253 @@
  6742. debug=false
  6743. ac_cs_recheck=false
  6744. ac_cs_silent=false
  6745. -SHELL=\${CONFIG_SHELL-$SHELL}
  6746. -_ACEOF
  6747. -cat >>$CONFIG_STATUS <<\_ACEOF
  6748. -## --------------------- ##
  6749. -## M4sh Initialization. ##
  6750. -## --------------------- ##
  6751. +SHELL=\${CONFIG_SHELL-$SHELL}
  6752. +export SHELL
  6753. +_ASEOF
  6754. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  6755. +## -------------------- ##
  6756. +## M4sh Initialization. ##
  6757. +## -------------------- ##
  6758. -# Be Bourne compatible
  6759. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  6760. +# Be more Bourne compatible
  6761. +DUALCASE=1; export DUALCASE # for MKS sh
  6762. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  6763. emulate sh
  6764. NULLCMD=:
  6765. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  6766. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  6767. # is contrary to our usage. Disable this feature.
  6768. alias -g '${1+"$@"}'='"$@"'
  6769. -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  6770. - set -o posix
  6771. + setopt NO_GLOB_SUBST
  6772. +else
  6773. + case `(set -o) 2>/dev/null` in #(
  6774. + *posix*) :
  6775. + set -o posix ;; #(
  6776. + *) :
  6777. + ;;
  6778. +esac
  6779. fi
  6780. -DUALCASE=1; export DUALCASE # for MKS sh
  6781. -# Support unset when possible.
  6782. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6783. - as_unset=unset
  6784. -else
  6785. - as_unset=false
  6786. +
  6787. +as_nl='
  6788. +'
  6789. +export as_nl
  6790. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  6791. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6792. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  6793. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  6794. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  6795. +# but without wasting forks for bash or zsh.
  6796. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  6797. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  6798. + as_echo='print -r --'
  6799. + as_echo_n='print -rn --'
  6800. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  6801. + as_echo='printf %s\n'
  6802. + as_echo_n='printf %s'
  6803. +else
  6804. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  6805. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  6806. + as_echo_n='/usr/ucb/echo -n'
  6807. + else
  6808. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  6809. + as_echo_n_body='eval
  6810. + arg=$1;
  6811. + case $arg in #(
  6812. + *"$as_nl"*)
  6813. + expr "X$arg" : "X\\(.*\\)$as_nl";
  6814. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  6815. + esac;
  6816. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  6817. + '
  6818. + export as_echo_n_body
  6819. + as_echo_n='sh -c $as_echo_n_body as_echo'
  6820. + fi
  6821. + export as_echo_body
  6822. + as_echo='sh -c $as_echo_body as_echo'
  6823. +fi
  6824. +
  6825. +# The user is always right.
  6826. +if test "${PATH_SEPARATOR+set}" != set; then
  6827. + PATH_SEPARATOR=:
  6828. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  6829. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  6830. + PATH_SEPARATOR=';'
  6831. + }
  6832. fi
  6833. -# Work around bugs in pre-3.0 UWIN ksh.
  6834. -$as_unset ENV MAIL MAILPATH
  6835. +# IFS
  6836. +# We need space, tab and new line, in precisely that order. Quoting is
  6837. +# there to prevent editors from complaining about space-tab.
  6838. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  6839. +# splitting by setting IFS to empty value.)
  6840. +IFS=" "" $as_nl"
  6841. +
  6842. +# Find who we are. Look in the path if we contain no directory separator.
  6843. +as_myself=
  6844. +case $0 in #((
  6845. + *[\\/]* ) as_myself=$0 ;;
  6846. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6847. +for as_dir in $PATH
  6848. +do
  6849. + IFS=$as_save_IFS
  6850. + test -z "$as_dir" && as_dir=.
  6851. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  6852. + done
  6853. +IFS=$as_save_IFS
  6854. +
  6855. + ;;
  6856. +esac
  6857. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  6858. +# in which case we are not to be found in the path.
  6859. +if test "x$as_myself" = x; then
  6860. + as_myself=$0
  6861. +fi
  6862. +if test ! -f "$as_myself"; then
  6863. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  6864. + exit 1
  6865. +fi
  6866. +
  6867. +# Unset variables that we do not need and which cause bugs (e.g. in
  6868. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  6869. +# suppresses any "Segmentation fault" message there. '((' could
  6870. +# trigger a bug in pdksh 5.2.14.
  6871. +for as_var in BASH_ENV ENV MAIL MAILPATH
  6872. +do eval test x\${$as_var+set} = xset \
  6873. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  6874. +done
  6875. PS1='$ '
  6876. PS2='> '
  6877. PS4='+ '
  6878. # NLS nuisances.
  6879. -for as_var in \
  6880. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  6881. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  6882. - LC_TELEPHONE LC_TIME
  6883. -do
  6884. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  6885. - eval $as_var=C; export $as_var
  6886. - else
  6887. - $as_unset $as_var
  6888. - fi
  6889. -done
  6890. +LC_ALL=C
  6891. +export LC_ALL
  6892. +LANGUAGE=C
  6893. +export LANGUAGE
  6894. -# Required to use basename.
  6895. -if expr a : '\(a\)' >/dev/null 2>&1; then
  6896. +# CDPATH.
  6897. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6898. +
  6899. +
  6900. +# as_fn_error STATUS ERROR [LINENO LOG_FD]
  6901. +# ----------------------------------------
  6902. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  6903. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  6904. +# script with STATUS, using 1 if that was 0.
  6905. +as_fn_error ()
  6906. +{
  6907. + as_status=$1; test $as_status -eq 0 && as_status=1
  6908. + if test "$4"; then
  6909. + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6910. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  6911. + fi
  6912. + $as_echo "$as_me: error: $2" >&2
  6913. + as_fn_exit $as_status
  6914. +} # as_fn_error
  6915. +
  6916. +
  6917. +# as_fn_set_status STATUS
  6918. +# -----------------------
  6919. +# Set $? to STATUS, without forking.
  6920. +as_fn_set_status ()
  6921. +{
  6922. + return $1
  6923. +} # as_fn_set_status
  6924. +
  6925. +# as_fn_exit STATUS
  6926. +# -----------------
  6927. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  6928. +as_fn_exit ()
  6929. +{
  6930. + set +e
  6931. + as_fn_set_status $1
  6932. + exit $1
  6933. +} # as_fn_exit
  6934. +
  6935. +# as_fn_unset VAR
  6936. +# ---------------
  6937. +# Portably unset VAR.
  6938. +as_fn_unset ()
  6939. +{
  6940. + { eval $1=; unset $1;}
  6941. +}
  6942. +as_unset=as_fn_unset
  6943. +# as_fn_append VAR VALUE
  6944. +# ----------------------
  6945. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  6946. +# advantage of any shell optimizations that allow amortized linear growth over
  6947. +# repeated appends, instead of the typical quadratic growth present in naive
  6948. +# implementations.
  6949. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  6950. + eval 'as_fn_append ()
  6951. + {
  6952. + eval $1+=\$2
  6953. + }'
  6954. +else
  6955. + as_fn_append ()
  6956. + {
  6957. + eval $1=\$$1\$2
  6958. + }
  6959. +fi # as_fn_append
  6960. +
  6961. +# as_fn_arith ARG...
  6962. +# ------------------
  6963. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  6964. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  6965. +# must be portable across $(()) and expr.
  6966. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  6967. + eval 'as_fn_arith ()
  6968. + {
  6969. + as_val=$(( $* ))
  6970. + }'
  6971. +else
  6972. + as_fn_arith ()
  6973. + {
  6974. + as_val=`expr "$@" || test $? -eq 1`
  6975. + }
  6976. +fi # as_fn_arith
  6977. +
  6978. +
  6979. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  6980. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  6981. as_expr=expr
  6982. else
  6983. as_expr=false
  6984. fi
  6985. -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  6986. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  6987. as_basename=basename
  6988. else
  6989. as_basename=false
  6990. fi
  6991. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  6992. + as_dirname=dirname
  6993. +else
  6994. + as_dirname=false
  6995. +fi
  6996. -# Name of the executable.
  6997. -as_me=`$as_basename "$0" ||
  6998. +as_me=`$as_basename -- "$0" ||
  6999. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  7000. X"$0" : 'X\(//\)$' \| \
  7001. - X"$0" : 'X\(/\)$' \| \
  7002. - . : '\(.\)' 2>/dev/null ||
  7003. -echo X/"$0" |
  7004. - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  7005. - /^X\/\(\/\/\)$/{ s//\1/; q; }
  7006. - /^X\/\(\/\).*/{ s//\1/; q; }
  7007. - s/.*/./; q'`
  7008. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  7009. +$as_echo X/"$0" |
  7010. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  7011. + s//\1/
  7012. + q
  7013. + }
  7014. + /^X\/\(\/\/\)$/{
  7015. + s//\1/
  7016. + q
  7017. + }
  7018. + /^X\/\(\/\).*/{
  7019. + s//\1/
  7020. + q
  7021. + }
  7022. + s/.*/./; q'`
  7023. -
  7024. -# PATH needs CR, and LINENO needs CR and PATH.
  7025. # Avoid depending upon Character Ranges.
  7026. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  7027. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  7028. @@ -4940,148 +5121,123 @@
  7029. as_cr_digits='0123456789'
  7030. as_cr_alnum=$as_cr_Letters$as_cr_digits
  7031. -# The user is always right.
  7032. -if test "${PATH_SEPARATOR+set}" != set; then
  7033. - echo "#! /bin/sh" >conf$$.sh
  7034. - echo "exit 0" >>conf$$.sh
  7035. - chmod +x conf$$.sh
  7036. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7037. - PATH_SEPARATOR=';'
  7038. - else
  7039. - PATH_SEPARATOR=:
  7040. - fi
  7041. - rm -f conf$$.sh
  7042. -fi
  7043. -
  7044. -
  7045. - as_lineno_1=$LINENO
  7046. - as_lineno_2=$LINENO
  7047. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  7048. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  7049. - test "x$as_lineno_3" = "x$as_lineno_2" || {
  7050. - # Find who we are. Look in the path if we contain no path at all
  7051. - # relative or not.
  7052. - case $0 in
  7053. - *[\\/]* ) as_myself=$0 ;;
  7054. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7055. -for as_dir in $PATH
  7056. -do
  7057. - IFS=$as_save_IFS
  7058. - test -z "$as_dir" && as_dir=.
  7059. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  7060. -done
  7061. -
  7062. - ;;
  7063. - esac
  7064. - # We did not find ourselves, most probably we were run as `sh COMMAND'
  7065. - # in which case we are not to be found in the path.
  7066. - if test "x$as_myself" = x; then
  7067. - as_myself=$0
  7068. - fi
  7069. - if test ! -f "$as_myself"; then
  7070. - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  7071. -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  7072. - { (exit 1); exit 1; }; }
  7073. - fi
  7074. - case $CONFIG_SHELL in
  7075. - '')
  7076. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7077. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  7078. -do
  7079. - IFS=$as_save_IFS
  7080. - test -z "$as_dir" && as_dir=.
  7081. - for as_base in sh bash ksh sh5; do
  7082. - case $as_dir in
  7083. - /*)
  7084. - if ("$as_dir/$as_base" -c '
  7085. - as_lineno_1=$LINENO
  7086. - as_lineno_2=$LINENO
  7087. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  7088. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  7089. - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  7090. - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  7091. - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  7092. - CONFIG_SHELL=$as_dir/$as_base
  7093. - export CONFIG_SHELL
  7094. - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  7095. - fi;;
  7096. - esac
  7097. - done
  7098. -done
  7099. -;;
  7100. - esac
  7101. -
  7102. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  7103. - # uniformly replaced by the line number. The first 'sed' inserts a
  7104. - # line-number line before each line; the second 'sed' does the real
  7105. - # work. The second script uses 'N' to pair each line-number line
  7106. - # with the numbered line, and appends trailing '-' during
  7107. - # substitution so that $LINENO is not a special case at line end.
  7108. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  7109. - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  7110. - sed '=' <$as_myself |
  7111. - sed '
  7112. - N
  7113. - s,$,-,
  7114. - : loop
  7115. - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  7116. - t loop
  7117. - s,-$,,
  7118. - s,^['$as_cr_digits']*\n,,
  7119. - ' >$as_me.lineno &&
  7120. - chmod +x $as_me.lineno ||
  7121. - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  7122. -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  7123. - { (exit 1); exit 1; }; }
  7124. -
  7125. - # Don't try to exec as it changes $[0], causing all sort of problems
  7126. - # (the dirname of $[0] is not the place where we might find the
  7127. - # original and so on. Autoconf is especially sensible to this).
  7128. - . ./$as_me.lineno
  7129. - # Exit status is that of the last command.
  7130. - exit
  7131. -}
  7132. -
  7133. -
  7134. -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  7135. - *c*,-n*) ECHO_N= ECHO_C='
  7136. -' ECHO_T=' ' ;;
  7137. - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  7138. - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  7139. +ECHO_C= ECHO_N= ECHO_T=
  7140. +case `echo -n x` in #(((((
  7141. +-n*)
  7142. + case `echo 'xy\c'` in
  7143. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  7144. + xy) ECHO_C='\c';;
  7145. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  7146. + ECHO_T=' ';;
  7147. + esac;;
  7148. +*)
  7149. + ECHO_N='-n';;
  7150. esac
  7151. -if expr a : '\(a\)' >/dev/null 2>&1; then
  7152. - as_expr=expr
  7153. +rm -f conf$$ conf$$.exe conf$$.file
  7154. +if test -d conf$$.dir; then
  7155. + rm -f conf$$.dir/conf$$.file
  7156. else
  7157. - as_expr=false
  7158. + rm -f conf$$.dir
  7159. + mkdir conf$$.dir 2>/dev/null
  7160. fi
  7161. -
  7162. -rm -f conf$$ conf$$.exe conf$$.file
  7163. -echo >conf$$.file
  7164. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  7165. - # We could just check for DJGPP; but this test a) works b) is more generic
  7166. - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  7167. - if test -f conf$$.exe; then
  7168. - # Don't use ln at all; we don't have any links
  7169. - as_ln_s='cp -p'
  7170. - else
  7171. +if (echo >conf$$.file) 2>/dev/null; then
  7172. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  7173. as_ln_s='ln -s'
  7174. + # ... but there are two gotchas:
  7175. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  7176. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  7177. + # In both cases, we have to default to `cp -p'.
  7178. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  7179. + as_ln_s='cp -p'
  7180. + elif ln conf$$.file conf$$ 2>/dev/null; then
  7181. + as_ln_s=ln
  7182. + else
  7183. + as_ln_s='cp -p'
  7184. fi
  7185. -elif ln conf$$.file conf$$ 2>/dev/null; then
  7186. - as_ln_s=ln
  7187. else
  7188. as_ln_s='cp -p'
  7189. fi
  7190. -rm -f conf$$ conf$$.exe conf$$.file
  7191. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  7192. +rmdir conf$$.dir 2>/dev/null
  7193. +
  7194. +# as_fn_mkdir_p
  7195. +# -------------
  7196. +# Create "$as_dir" as a directory, including parents if necessary.
  7197. +as_fn_mkdir_p ()
  7198. +{
  7199. +
  7200. + case $as_dir in #(
  7201. + -*) as_dir=./$as_dir;;
  7202. + esac
  7203. + test -d "$as_dir" || eval $as_mkdir_p || {
  7204. + as_dirs=
  7205. + while :; do
  7206. + case $as_dir in #(
  7207. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  7208. + *) as_qdir=$as_dir;;
  7209. + esac
  7210. + as_dirs="'$as_qdir' $as_dirs"
  7211. + as_dir=`$as_dirname -- "$as_dir" ||
  7212. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7213. + X"$as_dir" : 'X\(//\)[^/]' \| \
  7214. + X"$as_dir" : 'X\(//\)$' \| \
  7215. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  7216. +$as_echo X"$as_dir" |
  7217. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7218. + s//\1/
  7219. + q
  7220. + }
  7221. + /^X\(\/\/\)[^/].*/{
  7222. + s//\1/
  7223. + q
  7224. + }
  7225. + /^X\(\/\/\)$/{
  7226. + s//\1/
  7227. + q
  7228. + }
  7229. + /^X\(\/\).*/{
  7230. + s//\1/
  7231. + q
  7232. + }
  7233. + s/.*/./; q'`
  7234. + test -d "$as_dir" && break
  7235. + done
  7236. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  7237. + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  7238. +
  7239. +
  7240. +} # as_fn_mkdir_p
  7241. if mkdir -p . 2>/dev/null; then
  7242. - as_mkdir_p=:
  7243. + as_mkdir_p='mkdir -p "$as_dir"'
  7244. else
  7245. test -d ./-p && rmdir ./-p
  7246. as_mkdir_p=false
  7247. fi
  7248. -as_executable_p="test -f"
  7249. +if test -x / >/dev/null 2>&1; then
  7250. + as_test_x='test -x'
  7251. +else
  7252. + if ls -dL / >/dev/null 2>&1; then
  7253. + as_ls_L_option=L
  7254. + else
  7255. + as_ls_L_option=
  7256. + fi
  7257. + as_test_x='
  7258. + eval sh -c '\''
  7259. + if test -d "$1"; then
  7260. + test -d "$1/.";
  7261. + else
  7262. + case $1 in #(
  7263. + -*)set "./$1";;
  7264. + esac;
  7265. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  7266. + ???[sx]*):;;*)false;;esac;fi
  7267. + '\'' sh
  7268. + '
  7269. +fi
  7270. +as_executable_p=$as_test_x
  7271. # Sed expression to map a string onto a valid CPP name.
  7272. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  7273. @@ -5090,31 +5246,20 @@
  7274. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  7275. -# IFS
  7276. -# We need space, tab and new line, in precisely that order.
  7277. -as_nl='
  7278. -'
  7279. -IFS=" $as_nl"
  7280. -
  7281. -# CDPATH.
  7282. -$as_unset CDPATH
  7283. -
  7284. exec 6>&1
  7285. +## ----------------------------------- ##
  7286. +## Main body of $CONFIG_STATUS script. ##
  7287. +## ----------------------------------- ##
  7288. +_ASEOF
  7289. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  7290. -# Open the log real soon, to keep \$[0] and so on meaningful, and to
  7291. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7292. +# Save the log message, to keep $0 and so on meaningful, and to
  7293. # report actual input values of CONFIG_FILES etc. instead of their
  7294. -# values after options handling. Logging --version etc. is OK.
  7295. -exec 5>>config.log
  7296. -{
  7297. - echo
  7298. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  7299. -## Running $as_me. ##
  7300. -_ASBOX
  7301. -} >&5
  7302. -cat >&5 <<_CSEOF
  7303. -
  7304. +# values after options handling.
  7305. +ac_log="
  7306. This file was extended by $as_me, which was
  7307. -generated by GNU Autoconf 2.59. Invocation command line was
  7308. +generated by GNU Autoconf 2.68. Invocation command line was
  7309. CONFIG_FILES = $CONFIG_FILES
  7310. CONFIG_HEADERS = $CONFIG_HEADERS
  7311. @@ -5122,45 +5267,46 @@
  7312. CONFIG_COMMANDS = $CONFIG_COMMANDS
  7313. $ $0 $@
  7314. -_CSEOF
  7315. -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  7316. -echo >&5
  7317. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  7318. +"
  7319. +
  7320. _ACEOF
  7321. -# Files that config.status was made for.
  7322. -if test -n "$ac_config_files"; then
  7323. - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  7324. -fi
  7325. +case $ac_config_files in *"
  7326. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  7327. +esac
  7328. -if test -n "$ac_config_headers"; then
  7329. - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  7330. -fi
  7331. +case $ac_config_headers in *"
  7332. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  7333. +esac
  7334. -if test -n "$ac_config_links"; then
  7335. - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  7336. -fi
  7337. -if test -n "$ac_config_commands"; then
  7338. - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  7339. -fi
  7340. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7341. +# Files that config.status was made for.
  7342. +config_files="$ac_config_files"
  7343. +config_headers="$ac_config_headers"
  7344. -cat >>$CONFIG_STATUS <<\_ACEOF
  7345. +_ACEOF
  7346. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7347. ac_cs_usage="\
  7348. -\`$as_me' instantiates files from templates according to the
  7349. -current configuration.
  7350. +\`$as_me' instantiates files and other configuration actions
  7351. +from templates according to the current configuration. Unless the files
  7352. +and actions are specified as TAGs, all are instantiated by default.
  7353. -Usage: $0 [OPTIONS] [FILE]...
  7354. +Usage: $0 [OPTION]... [TAG]...
  7355. -h, --help print this help, then exit
  7356. - -V, --version print version number, then exit
  7357. - -q, --quiet do not print progress messages
  7358. + -V, --version print version number and configuration settings, then exit
  7359. + --config print configuration, then exit
  7360. + -q, --quiet, --silent
  7361. + do not print progress messages
  7362. -d, --debug don't remove temporary files
  7363. --recheck update $as_me by reconfiguring in the same conditions
  7364. - --file=FILE[:TEMPLATE]
  7365. - instantiate the configuration file FILE
  7366. - --header=FILE[:TEMPLATE]
  7367. - instantiate the configuration header FILE
  7368. + --file=FILE[:TEMPLATE]
  7369. + instantiate the configuration file FILE
  7370. + --header=FILE[:TEMPLATE]
  7371. + instantiate the configuration header FILE
  7372. Configuration files:
  7373. $config_files
  7374. @@ -5168,84 +5314,90 @@
  7375. Configuration headers:
  7376. $config_headers
  7377. -Report bugs to <bug-autoconf@gnu.org>."
  7378. -_ACEOF
  7379. +Report bugs to the package provider."
  7380. -cat >>$CONFIG_STATUS <<_ACEOF
  7381. +_ACEOF
  7382. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7383. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  7384. ac_cs_version="\\
  7385. config.status
  7386. -configured by $0, generated by GNU Autoconf 2.59,
  7387. - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  7388. +configured by $0, generated by GNU Autoconf 2.68,
  7389. + with options \\"\$ac_cs_config\\"
  7390. -Copyright (C) 2003 Free Software Foundation, Inc.
  7391. +Copyright (C) 2010 Free Software Foundation, Inc.
  7392. This config.status script is free software; the Free Software Foundation
  7393. gives unlimited permission to copy, distribute and modify it."
  7394. -srcdir=$srcdir
  7395. -INSTALL="$INSTALL"
  7396. +
  7397. +ac_pwd='$ac_pwd'
  7398. +srcdir='$srcdir'
  7399. +INSTALL='$INSTALL'
  7400. +test -n "\$AWK" || AWK=awk
  7401. _ACEOF
  7402. -cat >>$CONFIG_STATUS <<\_ACEOF
  7403. -# If no file are specified by the user, then we need to provide default
  7404. -# value. By we need to know if files were specified by the user.
  7405. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7406. +# The default lists apply if the user does not specify any file.
  7407. ac_need_defaults=:
  7408. while test $# != 0
  7409. do
  7410. case $1 in
  7411. - --*=*)
  7412. - ac_option=`expr "x$1" : 'x\([^=]*\)='`
  7413. - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  7414. + --*=?*)
  7415. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7416. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  7417. ac_shift=:
  7418. ;;
  7419. - -*)
  7420. + --*=)
  7421. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7422. + ac_optarg=
  7423. + ac_shift=:
  7424. + ;;
  7425. + *)
  7426. ac_option=$1
  7427. ac_optarg=$2
  7428. ac_shift=shift
  7429. ;;
  7430. - *) # This is not an option, so the user has probably given explicit
  7431. - # arguments.
  7432. - ac_option=$1
  7433. - ac_need_defaults=false;;
  7434. esac
  7435. case $ac_option in
  7436. # Handling of the options.
  7437. -_ACEOF
  7438. -cat >>$CONFIG_STATUS <<\_ACEOF
  7439. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  7440. ac_cs_recheck=: ;;
  7441. - --version | --vers* | -V )
  7442. - echo "$ac_cs_version"; exit 0 ;;
  7443. - --he | --h)
  7444. - # Conflict between --help and --header
  7445. - { { echo "$as_me:$LINENO: error: ambiguous option: $1
  7446. -Try \`$0 --help' for more information." >&5
  7447. -echo "$as_me: error: ambiguous option: $1
  7448. -Try \`$0 --help' for more information." >&2;}
  7449. - { (exit 1); exit 1; }; };;
  7450. - --help | --hel | -h )
  7451. - echo "$ac_cs_usage"; exit 0 ;;
  7452. - --debug | --d* | -d )
  7453. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  7454. + $as_echo "$ac_cs_version"; exit ;;
  7455. + --config | --confi | --conf | --con | --co | --c )
  7456. + $as_echo "$ac_cs_config"; exit ;;
  7457. + --debug | --debu | --deb | --de | --d | -d )
  7458. debug=: ;;
  7459. --file | --fil | --fi | --f )
  7460. $ac_shift
  7461. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  7462. + case $ac_optarg in
  7463. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7464. + '') as_fn_error $? "missing file argument" ;;
  7465. + esac
  7466. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  7467. ac_need_defaults=false;;
  7468. --header | --heade | --head | --hea )
  7469. $ac_shift
  7470. - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  7471. + case $ac_optarg in
  7472. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7473. + esac
  7474. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  7475. ac_need_defaults=false;;
  7476. + --he | --h)
  7477. + # Conflict between --help and --header
  7478. + as_fn_error $? "ambiguous option: \`$1'
  7479. +Try \`$0 --help' for more information.";;
  7480. + --help | --hel | -h )
  7481. + $as_echo "$ac_cs_usage"; exit ;;
  7482. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  7483. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  7484. ac_cs_silent=: ;;
  7485. # This is an error.
  7486. - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  7487. -Try \`$0 --help' for more information." >&5
  7488. -echo "$as_me: error: unrecognized option: $1
  7489. -Try \`$0 --help' for more information." >&2;}
  7490. - { (exit 1); exit 1; }; } ;;
  7491. + -*) as_fn_error $? "unrecognized option: \`$1'
  7492. +Try \`$0 --help' for more information." ;;
  7493. - *) ac_config_targets="$ac_config_targets $1" ;;
  7494. + *) as_fn_append ac_config_targets " $1"
  7495. + ac_need_defaults=false ;;
  7496. esac
  7497. shift
  7498. @@ -5259,33 +5411,47 @@
  7499. fi
  7500. _ACEOF
  7501. -cat >>$CONFIG_STATUS <<_ACEOF
  7502. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7503. if \$ac_cs_recheck; then
  7504. - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  7505. - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  7506. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  7507. + shift
  7508. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  7509. + CONFIG_SHELL='$SHELL'
  7510. + export CONFIG_SHELL
  7511. + exec "\$@"
  7512. fi
  7513. _ACEOF
  7514. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7515. +exec 5>>config.log
  7516. +{
  7517. + echo
  7518. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  7519. +## Running $as_me. ##
  7520. +_ASBOX
  7521. + $as_echo "$ac_log"
  7522. +} >&5
  7523. +_ACEOF
  7524. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7525. +_ACEOF
  7526. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7527. -
  7528. -
  7529. -cat >>$CONFIG_STATUS <<\_ACEOF
  7530. +# Handling of arguments.
  7531. for ac_config_target in $ac_config_targets
  7532. do
  7533. - case "$ac_config_target" in
  7534. - # Handling of arguments.
  7535. - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  7536. - "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  7537. - "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
  7538. - "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  7539. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  7540. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  7541. - { (exit 1); exit 1; }; };;
  7542. + case $ac_config_target in
  7543. + "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  7544. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  7545. + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  7546. + "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
  7547. +
  7548. + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  7549. esac
  7550. done
  7551. +
  7552. # If the user did not use the arguments to specify the items to instantiate,
  7553. # then the envvar interface is used. Set only those that are not.
  7554. # We use the long form for the default assignment because of an extremely
  7555. @@ -5296,587 +5462,550 @@
  7556. fi
  7557. # Have a temporary directory for convenience. Make it in the build tree
  7558. -# simply because there is no reason to put it here, and in addition,
  7559. +# simply because there is no reason against having it here, and in addition,
  7560. # creating and moving files from /tmp can sometimes cause problems.
  7561. -# Create a temporary directory, and hook for its removal unless debugging.
  7562. +# Hook for its removal unless debugging.
  7563. +# Note that there is a small window in which the directory will not be cleaned:
  7564. +# after its creation but before its name has been assigned to `$tmp'.
  7565. $debug ||
  7566. {
  7567. - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  7568. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  7569. + tmp= ac_tmp=
  7570. + trap 'exit_status=$?
  7571. + : "${ac_tmp:=$tmp}"
  7572. + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  7573. +' 0
  7574. + trap 'as_fn_exit 1' 1 2 13 15
  7575. }
  7576. -
  7577. # Create a (secure) tmp directory for tmp files.
  7578. {
  7579. - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  7580. - test -n "$tmp" && test -d "$tmp"
  7581. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  7582. + test -d "$tmp"
  7583. } ||
  7584. {
  7585. - tmp=./confstat$$-$RANDOM
  7586. - (umask 077 && mkdir $tmp)
  7587. -} ||
  7588. + tmp=./conf$$-$RANDOM
  7589. + (umask 077 && mkdir "$tmp")
  7590. +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  7591. +ac_tmp=$tmp
  7592. +
  7593. +# Set up the scripts for CONFIG_FILES section.
  7594. +# No need to generate them if there are no CONFIG_FILES.
  7595. +# This happens for instance with `./config.status config.h'.
  7596. +if test -n "$CONFIG_FILES"; then
  7597. +
  7598. +
  7599. +ac_cr=`echo X | tr X '\015'`
  7600. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  7601. +# But we know of no other shell where ac_cr would be empty at this
  7602. +# point, so we can use a bashism as a fallback.
  7603. +if test "x$ac_cr" = x; then
  7604. + eval ac_cr=\$\'\\r\'
  7605. +fi
  7606. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  7607. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  7608. + ac_cs_awk_cr='\\r'
  7609. +else
  7610. + ac_cs_awk_cr=$ac_cr
  7611. +fi
  7612. +
  7613. +echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  7614. +_ACEOF
  7615. +
  7616. +
  7617. +{
  7618. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  7619. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  7620. + echo "_ACEOF"
  7621. +} >conf$$subs.sh ||
  7622. + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7623. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  7624. +ac_delim='%!_!# '
  7625. +for ac_last_try in false false false false false :; do
  7626. + . ./conf$$subs.sh ||
  7627. + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7628. +
  7629. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  7630. + if test $ac_delim_n = $ac_delim_num; then
  7631. + break
  7632. + elif $ac_last_try; then
  7633. + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7634. + else
  7635. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7636. + fi
  7637. +done
  7638. +rm -f conf$$subs.sh
  7639. +
  7640. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7641. +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  7642. +_ACEOF
  7643. +sed -n '
  7644. +h
  7645. +s/^/S["/; s/!.*/"]=/
  7646. +p
  7647. +g
  7648. +s/^[^!]*!//
  7649. +:repl
  7650. +t repl
  7651. +s/'"$ac_delim"'$//
  7652. +t delim
  7653. +:nl
  7654. +h
  7655. +s/\(.\{148\}\)..*/\1/
  7656. +t more1
  7657. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  7658. +p
  7659. +n
  7660. +b repl
  7661. +:more1
  7662. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7663. +p
  7664. +g
  7665. +s/.\{148\}//
  7666. +t nl
  7667. +:delim
  7668. +h
  7669. +s/\(.\{148\}\)..*/\1/
  7670. +t more2
  7671. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  7672. +p
  7673. +b
  7674. +:more2
  7675. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7676. +p
  7677. +g
  7678. +s/.\{148\}//
  7679. +t delim
  7680. +' <conf$$subs.awk | sed '
  7681. +/^[^""]/{
  7682. + N
  7683. + s/\n//
  7684. +}
  7685. +' >>$CONFIG_STATUS || ac_write_fail=1
  7686. +rm -f conf$$subs.awk
  7687. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7688. +_ACAWK
  7689. +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  7690. + for (key in S) S_is_set[key] = 1
  7691. + FS = ""
  7692. +
  7693. +}
  7694. {
  7695. - echo "$me: cannot create a temporary directory in ." >&2
  7696. - { (exit 1); exit 1; }
  7697. + line = $ 0
  7698. + nfields = split(line, field, "@")
  7699. + substed = 0
  7700. + len = length(field[1])
  7701. + for (i = 2; i < nfields; i++) {
  7702. + key = field[i]
  7703. + keylen = length(key)
  7704. + if (S_is_set[key]) {
  7705. + value = S[key]
  7706. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  7707. + len += length(value) + length(field[++i])
  7708. + substed = 1
  7709. + } else
  7710. + len += 1 + keylen
  7711. + }
  7712. +
  7713. + print line
  7714. }
  7715. +_ACAWK
  7716. +_ACEOF
  7717. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7718. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  7719. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  7720. +else
  7721. + cat
  7722. +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  7723. + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  7724. _ACEOF
  7725. -cat >>$CONFIG_STATUS <<_ACEOF
  7726. +# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  7727. +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  7728. +# trailing colons and then remove the whole line if VPATH becomes empty
  7729. +# (actually we leave an empty line to preserve line numbers).
  7730. +if test "x$srcdir" = x.; then
  7731. + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  7732. +h
  7733. +s///
  7734. +s/^/:/
  7735. +s/[ ]*$/:/
  7736. +s/:\$(srcdir):/:/g
  7737. +s/:\${srcdir}:/:/g
  7738. +s/:@srcdir@:/:/g
  7739. +s/^:*//
  7740. +s/:*$//
  7741. +x
  7742. +s/\(=[ ]*\).*/\1/
  7743. +G
  7744. +s/\n//
  7745. +s/^[^=]*=[ ]*$//
  7746. +}'
  7747. +fi
  7748. -#
  7749. -# CONFIG_FILES section.
  7750. -#
  7751. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7752. +fi # test -n "$CONFIG_FILES"
  7753. -# No need to generate the scripts if there are no CONFIG_FILES.
  7754. -# This happens for instance when ./config.status config.h
  7755. -if test -n "\$CONFIG_FILES"; then
  7756. - # Protect against being on the right side of a sed subst in config.status.
  7757. - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  7758. - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  7759. -s,@SHELL@,$SHELL,;t t
  7760. -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  7761. -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  7762. -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  7763. -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  7764. -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  7765. -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  7766. -s,@exec_prefix@,$exec_prefix,;t t
  7767. -s,@prefix@,$prefix,;t t
  7768. -s,@program_transform_name@,$program_transform_name,;t t
  7769. -s,@bindir@,$bindir,;t t
  7770. -s,@sbindir@,$sbindir,;t t
  7771. -s,@libexecdir@,$libexecdir,;t t
  7772. -s,@datadir@,$datadir,;t t
  7773. -s,@sysconfdir@,$sysconfdir,;t t
  7774. -s,@sharedstatedir@,$sharedstatedir,;t t
  7775. -s,@localstatedir@,$localstatedir,;t t
  7776. -s,@libdir@,$libdir,;t t
  7777. -s,@includedir@,$includedir,;t t
  7778. -s,@oldincludedir@,$oldincludedir,;t t
  7779. -s,@infodir@,$infodir,;t t
  7780. -s,@mandir@,$mandir,;t t
  7781. -s,@build_alias@,$build_alias,;t t
  7782. -s,@host_alias@,$host_alias,;t t
  7783. -s,@target_alias@,$target_alias,;t t
  7784. -s,@DEFS@,$DEFS,;t t
  7785. -s,@ECHO_C@,$ECHO_C,;t t
  7786. -s,@ECHO_N@,$ECHO_N,;t t
  7787. -s,@ECHO_T@,$ECHO_T,;t t
  7788. -s,@LIBS@,$LIBS,;t t
  7789. -s,@build@,$build,;t t
  7790. -s,@build_cpu@,$build_cpu,;t t
  7791. -s,@build_vendor@,$build_vendor,;t t
  7792. -s,@build_os@,$build_os,;t t
  7793. -s,@host@,$host,;t t
  7794. -s,@host_cpu@,$host_cpu,;t t
  7795. -s,@host_vendor@,$host_vendor,;t t
  7796. -s,@host_os@,$host_os,;t t
  7797. -s,@target@,$target,;t t
  7798. -s,@target_cpu@,$target_cpu,;t t
  7799. -s,@target_vendor@,$target_vendor,;t t
  7800. -s,@target_os@,$target_os,;t t
  7801. -s,@CC@,$CC,;t t
  7802. -s,@CFLAGS@,$CFLAGS,;t t
  7803. -s,@LDFLAGS@,$LDFLAGS,;t t
  7804. -s,@CPPFLAGS@,$CPPFLAGS,;t t
  7805. -s,@ac_ct_CC@,$ac_ct_CC,;t t
  7806. -s,@EXEEXT@,$EXEEXT,;t t
  7807. -s,@OBJEXT@,$OBJEXT,;t t
  7808. -s,@RANLIB@,$RANLIB,;t t
  7809. -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  7810. -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  7811. -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  7812. -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  7813. -s,@CPP@,$CPP,;t t
  7814. -s,@EGREP@,$EGREP,;t t
  7815. -s,@PCAP_CFLAGS@,$PCAP_CFLAGS,;t t
  7816. -s,@PCAPLIB@,$PCAPLIB,;t t
  7817. -s,@PKG_CONFIG@,$PKG_CONFIG,;t t
  7818. -s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
  7819. -s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
  7820. -s,@GLIB_LIBS@,$GLIB_LIBS,;t t
  7821. -s,@GTHREAD_CFLAGS@,$GTHREAD_CFLAGS,;t t
  7822. -s,@GTHREAD_LIBS@,$GTHREAD_LIBS,;t t
  7823. -s,@LNET_CFLAGS@,$LNET_CFLAGS,;t t
  7824. -s,@LNETLIB@,$LNETLIB,;t t
  7825. -s,@BUILD_SHARED@,$BUILD_SHARED,;t t
  7826. -s,@ICMPHEADER@,$ICMPHEADER,;t t
  7827. -s,@TCPSTATES@,$TCPSTATES,;t t
  7828. -s,@HAVE_BSD_UDPHDR@,$HAVE_BSD_UDPHDR,;t t
  7829. -s,@LIBNET_VER@,$LIBNET_VER,;t t
  7830. -s,@LIBOBJS@,$LIBOBJS,;t t
  7831. -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  7832. -CEOF
  7833. -
  7834. -_ACEOF
  7835. -
  7836. - cat >>$CONFIG_STATUS <<\_ACEOF
  7837. - # Split the substitutions into bite-sized pieces for seds with
  7838. - # small command number limits, like on Digital OSF/1 and HP-UX.
  7839. - ac_max_sed_lines=48
  7840. - ac_sed_frag=1 # Number of current file.
  7841. - ac_beg=1 # First line for current file.
  7842. - ac_end=$ac_max_sed_lines # Line after last line for current file.
  7843. - ac_more_lines=:
  7844. - ac_sed_cmds=
  7845. - while $ac_more_lines; do
  7846. - if test $ac_beg -gt 1; then
  7847. - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  7848. - else
  7849. - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  7850. - fi
  7851. - if test ! -s $tmp/subs.frag; then
  7852. - ac_more_lines=false
  7853. - else
  7854. - # The purpose of the label and of the branching condition is to
  7855. - # speed up the sed processing (if there are no `@' at all, there
  7856. - # is no need to browse any of the substitutions).
  7857. - # These are the two extra sed commands mentioned above.
  7858. - (echo ':t
  7859. - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  7860. - if test -z "$ac_sed_cmds"; then
  7861. - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  7862. - else
  7863. - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  7864. - fi
  7865. - ac_sed_frag=`expr $ac_sed_frag + 1`
  7866. - ac_beg=$ac_end
  7867. - ac_end=`expr $ac_end + $ac_max_sed_lines`
  7868. - fi
  7869. - done
  7870. - if test -z "$ac_sed_cmds"; then
  7871. - ac_sed_cmds=cat
  7872. +# Set up the scripts for CONFIG_HEADERS section.
  7873. +# No need to generate them if there are no CONFIG_HEADERS.
  7874. +# This happens for instance with `./config.status Makefile'.
  7875. +if test -n "$CONFIG_HEADERS"; then
  7876. +cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  7877. +BEGIN {
  7878. +_ACEOF
  7879. +
  7880. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  7881. +# here-document in config.status, that substitutes the proper values into
  7882. +# config.h.in to produce config.h.
  7883. +
  7884. +# Create a delimiter string that does not exist in confdefs.h, to ease
  7885. +# handling of long lines.
  7886. +ac_delim='%!_!# '
  7887. +for ac_last_try in false false :; do
  7888. + ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  7889. + if test -z "$ac_tt"; then
  7890. + break
  7891. + elif $ac_last_try; then
  7892. + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  7893. + else
  7894. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7895. fi
  7896. -fi # test -n "$CONFIG_FILES"
  7897. +done
  7898. +# For the awk script, D is an array of macro values keyed by name,
  7899. +# likewise P contains macro parameters if any. Preserve backslash
  7900. +# newline sequences.
  7901. +
  7902. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  7903. +sed -n '
  7904. +s/.\{148\}/&'"$ac_delim"'/g
  7905. +t rset
  7906. +:rset
  7907. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  7908. +t def
  7909. +d
  7910. +:def
  7911. +s/\\$//
  7912. +t bsnl
  7913. +s/["\\]/\\&/g
  7914. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7915. +D["\1"]=" \3"/p
  7916. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  7917. +d
  7918. +:bsnl
  7919. +s/["\\]/\\&/g
  7920. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7921. +D["\1"]=" \3\\\\\\n"\\/p
  7922. +t cont
  7923. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  7924. +t cont
  7925. +d
  7926. +:cont
  7927. +n
  7928. +s/.\{148\}/&'"$ac_delim"'/g
  7929. +t clear
  7930. +:clear
  7931. +s/\\$//
  7932. +t bsnlc
  7933. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  7934. +d
  7935. +:bsnlc
  7936. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  7937. +b cont
  7938. +' <confdefs.h | sed '
  7939. +s/'"$ac_delim"'/"\\\
  7940. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  7941. +
  7942. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7943. + for (key in D) D_is_set[key] = 1
  7944. + FS = ""
  7945. +}
  7946. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  7947. + line = \$ 0
  7948. + split(line, arg, " ")
  7949. + if (arg[1] == "#") {
  7950. + defundef = arg[2]
  7951. + mac1 = arg[3]
  7952. + } else {
  7953. + defundef = substr(arg[1], 2)
  7954. + mac1 = arg[2]
  7955. + }
  7956. + split(mac1, mac2, "(") #)
  7957. + macro = mac2[1]
  7958. + prefix = substr(line, 1, index(line, defundef) - 1)
  7959. + if (D_is_set[macro]) {
  7960. + # Preserve the white space surrounding the "#".
  7961. + print prefix "define", macro P[macro] D[macro]
  7962. + next
  7963. + } else {
  7964. + # Replace #undef with comments. This is necessary, for example,
  7965. + # in the case of _POSIX_SOURCE, which is predefined and required
  7966. + # on some systems where configure will not decide to define it.
  7967. + if (defundef == "undef") {
  7968. + print "/*", prefix defundef, macro, "*/"
  7969. + next
  7970. + }
  7971. + }
  7972. +}
  7973. +{ print }
  7974. +_ACAWK
  7975. _ACEOF
  7976. -cat >>$CONFIG_STATUS <<\_ACEOF
  7977. -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  7978. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  7979. - case $ac_file in
  7980. - - | *:- | *:-:* ) # input from stdin
  7981. - cat >$tmp/stdin
  7982. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  7983. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  7984. - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  7985. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  7986. - * ) ac_file_in=$ac_file.in ;;
  7987. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7988. + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  7989. +fi # test -n "$CONFIG_HEADERS"
  7990. +
  7991. +
  7992. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  7993. +shift
  7994. +for ac_tag
  7995. +do
  7996. + case $ac_tag in
  7997. + :[FHLC]) ac_mode=$ac_tag; continue;;
  7998. + esac
  7999. + case $ac_mode$ac_tag in
  8000. + :[FHL]*:*);;
  8001. + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  8002. + :[FH]-) ac_tag=-:-;;
  8003. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  8004. esac
  8005. + ac_save_IFS=$IFS
  8006. + IFS=:
  8007. + set x $ac_tag
  8008. + IFS=$ac_save_IFS
  8009. + shift
  8010. + ac_file=$1
  8011. + shift
  8012. +
  8013. + case $ac_mode in
  8014. + :L) ac_source=$1;;
  8015. + :[FH])
  8016. + ac_file_inputs=
  8017. + for ac_f
  8018. + do
  8019. + case $ac_f in
  8020. + -) ac_f="$ac_tmp/stdin";;
  8021. + *) # Look for the file first in the build tree, then in the source tree
  8022. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  8023. + # because $ac_f cannot contain `:'.
  8024. + test -f "$ac_f" ||
  8025. + case $ac_f in
  8026. + [\\/$]*) false;;
  8027. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  8028. + esac ||
  8029. + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  8030. + esac
  8031. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  8032. + as_fn_append ac_file_inputs " '$ac_f'"
  8033. + done
  8034. +
  8035. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  8036. + # use $as_me), people would be surprised to read:
  8037. + # /* config.h. Generated by config.status. */
  8038. + configure_input='Generated from '`
  8039. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  8040. + `' by configure.'
  8041. + if test x"$ac_file" != x-; then
  8042. + configure_input="$ac_file. $configure_input"
  8043. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  8044. +$as_echo "$as_me: creating $ac_file" >&6;}
  8045. + fi
  8046. + # Neutralize special characters interpreted by sed in replacement strings.
  8047. + case $configure_input in #(
  8048. + *\&* | *\|* | *\\* )
  8049. + ac_sed_conf_input=`$as_echo "$configure_input" |
  8050. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  8051. + *) ac_sed_conf_input=$configure_input;;
  8052. + esac
  8053. - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  8054. - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  8055. + case $ac_tag in
  8056. + *:-:* | *:-) cat >"$ac_tmp/stdin" \
  8057. + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  8058. + esac
  8059. + ;;
  8060. + esac
  8061. +
  8062. + ac_dir=`$as_dirname -- "$ac_file" ||
  8063. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8064. X"$ac_file" : 'X\(//\)[^/]' \| \
  8065. X"$ac_file" : 'X\(//\)$' \| \
  8066. - X"$ac_file" : 'X\(/\)' \| \
  8067. - . : '\(.\)' 2>/dev/null ||
  8068. -echo X"$ac_file" |
  8069. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8070. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8071. - /^X\(\/\/\)$/{ s//\1/; q; }
  8072. - /^X\(\/\).*/{ s//\1/; q; }
  8073. - s/.*/./; q'`
  8074. - { if $as_mkdir_p; then
  8075. - mkdir -p "$ac_dir"
  8076. - else
  8077. - as_dir="$ac_dir"
  8078. - as_dirs=
  8079. - while test ! -d "$as_dir"; do
  8080. - as_dirs="$as_dir $as_dirs"
  8081. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  8082. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8083. - X"$as_dir" : 'X\(//\)[^/]' \| \
  8084. - X"$as_dir" : 'X\(//\)$' \| \
  8085. - X"$as_dir" : 'X\(/\)' \| \
  8086. - . : '\(.\)' 2>/dev/null ||
  8087. -echo X"$as_dir" |
  8088. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8089. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8090. - /^X\(\/\/\)$/{ s//\1/; q; }
  8091. - /^X\(\/\).*/{ s//\1/; q; }
  8092. - s/.*/./; q'`
  8093. - done
  8094. - test ! -n "$as_dirs" || mkdir $as_dirs
  8095. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  8096. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  8097. - { (exit 1); exit 1; }; }; }
  8098. -
  8099. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  8100. +$as_echo X"$ac_file" |
  8101. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8102. + s//\1/
  8103. + q
  8104. + }
  8105. + /^X\(\/\/\)[^/].*/{
  8106. + s//\1/
  8107. + q
  8108. + }
  8109. + /^X\(\/\/\)$/{
  8110. + s//\1/
  8111. + q
  8112. + }
  8113. + /^X\(\/\).*/{
  8114. + s//\1/
  8115. + q
  8116. + }
  8117. + s/.*/./; q'`
  8118. + as_dir="$ac_dir"; as_fn_mkdir_p
  8119. ac_builddir=.
  8120. -if test "$ac_dir" != .; then
  8121. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  8122. - # A "../" for each directory in $ac_dir_suffix.
  8123. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  8124. -else
  8125. - ac_dir_suffix= ac_top_builddir=
  8126. -fi
  8127. +case "$ac_dir" in
  8128. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8129. +*)
  8130. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8131. + # A ".." for each directory in $ac_dir_suffix.
  8132. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8133. + case $ac_top_builddir_sub in
  8134. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8135. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8136. + esac ;;
  8137. +esac
  8138. +ac_abs_top_builddir=$ac_pwd
  8139. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8140. +# for backward compatibility:
  8141. +ac_top_builddir=$ac_top_build_prefix
  8142. case $srcdir in
  8143. - .) # No --srcdir option. We are building in place.
  8144. + .) # We are building in place.
  8145. ac_srcdir=.
  8146. - if test -z "$ac_top_builddir"; then
  8147. - ac_top_srcdir=.
  8148. - else
  8149. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  8150. - fi ;;
  8151. - [\\/]* | ?:[\\/]* ) # Absolute path.
  8152. + ac_top_srcdir=$ac_top_builddir_sub
  8153. + ac_abs_top_srcdir=$ac_pwd ;;
  8154. + [\\/]* | ?:[\\/]* ) # Absolute name.
  8155. ac_srcdir=$srcdir$ac_dir_suffix;
  8156. - ac_top_srcdir=$srcdir ;;
  8157. - *) # Relative path.
  8158. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  8159. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  8160. + ac_top_srcdir=$srcdir
  8161. + ac_abs_top_srcdir=$srcdir ;;
  8162. + *) # Relative name.
  8163. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8164. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  8165. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8166. esac
  8167. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8168. -# Do not use `cd foo && pwd` to compute absolute paths, because
  8169. -# the directories may not exist.
  8170. -case `pwd` in
  8171. -.) ac_abs_builddir="$ac_dir";;
  8172. -*)
  8173. - case "$ac_dir" in
  8174. - .) ac_abs_builddir=`pwd`;;
  8175. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  8176. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  8177. - esac;;
  8178. -esac
  8179. -case $ac_abs_builddir in
  8180. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  8181. -*)
  8182. - case ${ac_top_builddir}. in
  8183. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  8184. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  8185. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  8186. - esac;;
  8187. -esac
  8188. -case $ac_abs_builddir in
  8189. -.) ac_abs_srcdir=$ac_srcdir;;
  8190. -*)
  8191. - case $ac_srcdir in
  8192. - .) ac_abs_srcdir=$ac_abs_builddir;;
  8193. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  8194. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  8195. - esac;;
  8196. -esac
  8197. -case $ac_abs_builddir in
  8198. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  8199. -*)
  8200. - case $ac_top_srcdir in
  8201. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  8202. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  8203. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  8204. - esac;;
  8205. -esac
  8206. + case $ac_mode in
  8207. + :F)
  8208. + #
  8209. + # CONFIG_FILE
  8210. + #
  8211. case $INSTALL in
  8212. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  8213. - *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  8214. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  8215. esac
  8216. +_ACEOF
  8217. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  8218. - # use $as_me), people would be surprised to read:
  8219. - # /* config.h. Generated by config.status. */
  8220. - if test x"$ac_file" = x-; then
  8221. - configure_input=
  8222. - else
  8223. - configure_input="$ac_file. "
  8224. - fi
  8225. - configure_input=$configure_input"Generated from `echo $ac_file_in |
  8226. - sed 's,.*/,,'` by configure."
  8227. -
  8228. - # First look for the input files in the build tree, otherwise in the
  8229. - # src tree.
  8230. - ac_file_inputs=`IFS=:
  8231. - for f in $ac_file_in; do
  8232. - case $f in
  8233. - -) echo $tmp/stdin ;;
  8234. - [\\/$]*)
  8235. - # Absolute (can't be DOS-style, as IFS=:)
  8236. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8237. -echo "$as_me: error: cannot find input file: $f" >&2;}
  8238. - { (exit 1); exit 1; }; }
  8239. - echo "$f";;
  8240. - *) # Relative
  8241. - if test -f "$f"; then
  8242. - # Build tree
  8243. - echo "$f"
  8244. - elif test -f "$srcdir/$f"; then
  8245. - # Source tree
  8246. - echo "$srcdir/$f"
  8247. - else
  8248. - # /dev/null tree
  8249. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8250. -echo "$as_me: error: cannot find input file: $f" >&2;}
  8251. - { (exit 1); exit 1; }; }
  8252. - fi;;
  8253. - esac
  8254. - done` || { (exit 1); exit 1; }
  8255. -
  8256. - if test x"$ac_file" != x-; then
  8257. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  8258. -echo "$as_me: creating $ac_file" >&6;}
  8259. - rm -f "$ac_file"
  8260. - fi
  8261. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8262. +# If the template does not know about datarootdir, expand it.
  8263. +# FIXME: This hack should be removed a few years after 2.60.
  8264. +ac_datarootdir_hack=; ac_datarootdir_seen=
  8265. +ac_sed_dataroot='
  8266. +/datarootdir/ {
  8267. + p
  8268. + q
  8269. +}
  8270. +/@datadir@/p
  8271. +/@docdir@/p
  8272. +/@infodir@/p
  8273. +/@localedir@/p
  8274. +/@mandir@/p'
  8275. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  8276. +*datarootdir*) ac_datarootdir_seen=yes;;
  8277. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  8278. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  8279. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  8280. +_ACEOF
  8281. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8282. + ac_datarootdir_hack='
  8283. + s&@datadir@&$datadir&g
  8284. + s&@docdir@&$docdir&g
  8285. + s&@infodir@&$infodir&g
  8286. + s&@localedir@&$localedir&g
  8287. + s&@mandir@&$mandir&g
  8288. + s&\\\${datarootdir}&$datarootdir&g' ;;
  8289. +esac
  8290. _ACEOF
  8291. -cat >>$CONFIG_STATUS <<_ACEOF
  8292. - sed "$ac_vpsub
  8293. +
  8294. +# Neutralize VPATH when `$srcdir' = `.'.
  8295. +# Shell code in configure.ac might set extrasub.
  8296. +# FIXME: do we really want to maintain this feature?
  8297. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8298. +ac_sed_extra="$ac_vpsub
  8299. $extrasub
  8300. _ACEOF
  8301. -cat >>$CONFIG_STATUS <<\_ACEOF
  8302. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8303. :t
  8304. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8305. -s,@configure_input@,$configure_input,;t t
  8306. -s,@srcdir@,$ac_srcdir,;t t
  8307. -s,@abs_srcdir@,$ac_abs_srcdir,;t t
  8308. -s,@top_srcdir@,$ac_top_srcdir,;t t
  8309. -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  8310. -s,@builddir@,$ac_builddir,;t t
  8311. -s,@abs_builddir@,$ac_abs_builddir,;t t
  8312. -s,@top_builddir@,$ac_top_builddir,;t t
  8313. -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  8314. -s,@INSTALL@,$ac_INSTALL,;t t
  8315. -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  8316. - rm -f $tmp/stdin
  8317. - if test x"$ac_file" != x-; then
  8318. - mv $tmp/out $ac_file
  8319. - else
  8320. - cat $tmp/out
  8321. - rm -f $tmp/out
  8322. - fi
  8323. +s|@configure_input@|$ac_sed_conf_input|;t t
  8324. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  8325. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  8326. +s&@srcdir@&$ac_srcdir&;t t
  8327. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  8328. +s&@top_srcdir@&$ac_top_srcdir&;t t
  8329. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  8330. +s&@builddir@&$ac_builddir&;t t
  8331. +s&@abs_builddir@&$ac_abs_builddir&;t t
  8332. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  8333. +s&@INSTALL@&$ac_INSTALL&;t t
  8334. +$ac_datarootdir_hack
  8335. +"
  8336. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  8337. + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8338. +
  8339. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  8340. + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  8341. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  8342. + "$ac_tmp/out"`; test -z "$ac_out"; } &&
  8343. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8344. +which seems to be undefined. Please make sure it is defined" >&5
  8345. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8346. +which seems to be undefined. Please make sure it is defined" >&2;}
  8347. -done
  8348. -_ACEOF
  8349. -cat >>$CONFIG_STATUS <<\_ACEOF
  8350. -
  8351. -#
  8352. -# CONFIG_HEADER section.
  8353. -#
  8354. -
  8355. -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  8356. -# NAME is the cpp macro being defined and VALUE is the value it is being given.
  8357. -#
  8358. -# ac_d sets the value in "#define NAME VALUE" lines.
  8359. -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  8360. -ac_dB='[ ].*$,\1#\2'
  8361. -ac_dC=' '
  8362. -ac_dD=',;t'
  8363. -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  8364. -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  8365. -ac_uB='$,\1#\2define\3'
  8366. -ac_uC=' '
  8367. -ac_uD=',;t'
  8368. -
  8369. -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  8370. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  8371. + rm -f "$ac_tmp/stdin"
  8372. case $ac_file in
  8373. - - | *:- | *:-:* ) # input from stdin
  8374. - cat >$tmp/stdin
  8375. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8376. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8377. - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8378. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8379. - * ) ac_file_in=$ac_file.in ;;
  8380. - esac
  8381. -
  8382. - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  8383. -echo "$as_me: creating $ac_file" >&6;}
  8384. -
  8385. - # First look for the input files in the build tree, otherwise in the
  8386. - # src tree.
  8387. - ac_file_inputs=`IFS=:
  8388. - for f in $ac_file_in; do
  8389. - case $f in
  8390. - -) echo $tmp/stdin ;;
  8391. - [\\/$]*)
  8392. - # Absolute (can't be DOS-style, as IFS=:)
  8393. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8394. -echo "$as_me: error: cannot find input file: $f" >&2;}
  8395. - { (exit 1); exit 1; }; }
  8396. - # Do quote $f, to prevent DOS paths from being IFS'd.
  8397. - echo "$f";;
  8398. - *) # Relative
  8399. - if test -f "$f"; then
  8400. - # Build tree
  8401. - echo "$f"
  8402. - elif test -f "$srcdir/$f"; then
  8403. - # Source tree
  8404. - echo "$srcdir/$f"
  8405. - else
  8406. - # /dev/null tree
  8407. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8408. -echo "$as_me: error: cannot find input file: $f" >&2;}
  8409. - { (exit 1); exit 1; }; }
  8410. - fi;;
  8411. - esac
  8412. - done` || { (exit 1); exit 1; }
  8413. - # Remove the trailing spaces.
  8414. - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  8415. -
  8416. -_ACEOF
  8417. -
  8418. -# Transform confdefs.h into two sed scripts, `conftest.defines' and
  8419. -# `conftest.undefs', that substitutes the proper values into
  8420. -# config.h.in to produce config.h. The first handles `#define'
  8421. -# templates, and the second `#undef' templates.
  8422. -# And first: Protect against being on the right side of a sed subst in
  8423. -# config.status. Protect against being in an unquoted here document
  8424. -# in config.status.
  8425. -rm -f conftest.defines conftest.undefs
  8426. -# Using a here document instead of a string reduces the quoting nightmare.
  8427. -# Putting comments in sed scripts is not portable.
  8428. -#
  8429. -# `end' is used to avoid that the second main sed command (meant for
  8430. -# 0-ary CPP macros) applies to n-ary macro definitions.
  8431. -# See the Autoconf documentation for `clear'.
  8432. -cat >confdef2sed.sed <<\_ACEOF
  8433. -s/[\\&,]/\\&/g
  8434. -s,[\\$`],\\&,g
  8435. -t clear
  8436. -: clear
  8437. -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  8438. -t end
  8439. -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  8440. -: end
  8441. -_ACEOF
  8442. -# If some macros were called several times there might be several times
  8443. -# the same #defines, which is useless. Nevertheless, we may not want to
  8444. -# sort them, since we want the *last* AC-DEFINE to be honored.
  8445. -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  8446. -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  8447. -rm -f confdef2sed.sed
  8448. -
  8449. -# This sed command replaces #undef with comments. This is necessary, for
  8450. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  8451. -# on some systems where configure will not decide to define it.
  8452. -cat >>conftest.undefs <<\_ACEOF
  8453. -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  8454. -_ACEOF
  8455. -
  8456. -# Break up conftest.defines because some shells have a limit on the size
  8457. -# of here documents, and old seds have small limits too (100 cmds).
  8458. -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  8459. -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  8460. -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  8461. -echo ' :' >>$CONFIG_STATUS
  8462. -rm -f conftest.tail
  8463. -while grep . conftest.defines >/dev/null
  8464. -do
  8465. - # Write a limited-size here document to $tmp/defines.sed.
  8466. - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  8467. - # Speed up: don't consider the non `#define' lines.
  8468. - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  8469. - # Work around the forget-to-reset-the-flag bug.
  8470. - echo 't clr' >>$CONFIG_STATUS
  8471. - echo ': clr' >>$CONFIG_STATUS
  8472. - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  8473. - echo 'CEOF
  8474. - sed -f $tmp/defines.sed $tmp/in >$tmp/out
  8475. - rm -f $tmp/in
  8476. - mv $tmp/out $tmp/in
  8477. -' >>$CONFIG_STATUS
  8478. - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  8479. - rm -f conftest.defines
  8480. - mv conftest.tail conftest.defines
  8481. -done
  8482. -rm -f conftest.defines
  8483. -echo ' fi # grep' >>$CONFIG_STATUS
  8484. -echo >>$CONFIG_STATUS
  8485. -
  8486. -# Break up conftest.undefs because some shells have a limit on the size
  8487. -# of here documents, and old seds have small limits too (100 cmds).
  8488. -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  8489. -rm -f conftest.tail
  8490. -while grep . conftest.undefs >/dev/null
  8491. -do
  8492. - # Write a limited-size here document to $tmp/undefs.sed.
  8493. - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  8494. - # Speed up: don't consider the non `#undef'
  8495. - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  8496. - # Work around the forget-to-reset-the-flag bug.
  8497. - echo 't clr' >>$CONFIG_STATUS
  8498. - echo ': clr' >>$CONFIG_STATUS
  8499. - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  8500. - echo 'CEOF
  8501. - sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  8502. - rm -f $tmp/in
  8503. - mv $tmp/out $tmp/in
  8504. -' >>$CONFIG_STATUS
  8505. - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  8506. - rm -f conftest.undefs
  8507. - mv conftest.tail conftest.undefs
  8508. -done
  8509. -rm -f conftest.undefs
  8510. -
  8511. -cat >>$CONFIG_STATUS <<\_ACEOF
  8512. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  8513. - # use $as_me), people would be surprised to read:
  8514. - # /* config.h. Generated by config.status. */
  8515. - if test x"$ac_file" = x-; then
  8516. - echo "/* Generated by configure. */" >$tmp/config.h
  8517. - else
  8518. - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  8519. - fi
  8520. - cat $tmp/in >>$tmp/config.h
  8521. - rm -f $tmp/in
  8522. + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  8523. + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  8524. + esac \
  8525. + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8526. + ;;
  8527. + :H)
  8528. + #
  8529. + # CONFIG_HEADER
  8530. + #
  8531. if test x"$ac_file" != x-; then
  8532. - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  8533. - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  8534. -echo "$as_me: $ac_file is unchanged" >&6;}
  8535. + {
  8536. + $as_echo "/* $configure_input */" \
  8537. + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  8538. + } >"$ac_tmp/config.h" \
  8539. + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8540. + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  8541. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  8542. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  8543. else
  8544. - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  8545. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8546. - X"$ac_file" : 'X\(//\)[^/]' \| \
  8547. - X"$ac_file" : 'X\(//\)$' \| \
  8548. - X"$ac_file" : 'X\(/\)' \| \
  8549. - . : '\(.\)' 2>/dev/null ||
  8550. -echo X"$ac_file" |
  8551. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8552. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8553. - /^X\(\/\/\)$/{ s//\1/; q; }
  8554. - /^X\(\/\).*/{ s//\1/; q; }
  8555. - s/.*/./; q'`
  8556. - { if $as_mkdir_p; then
  8557. - mkdir -p "$ac_dir"
  8558. - else
  8559. - as_dir="$ac_dir"
  8560. - as_dirs=
  8561. - while test ! -d "$as_dir"; do
  8562. - as_dirs="$as_dir $as_dirs"
  8563. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  8564. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8565. - X"$as_dir" : 'X\(//\)[^/]' \| \
  8566. - X"$as_dir" : 'X\(//\)$' \| \
  8567. - X"$as_dir" : 'X\(/\)' \| \
  8568. - . : '\(.\)' 2>/dev/null ||
  8569. -echo X"$as_dir" |
  8570. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8571. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8572. - /^X\(\/\/\)$/{ s//\1/; q; }
  8573. - /^X\(\/\).*/{ s//\1/; q; }
  8574. - s/.*/./; q'`
  8575. - done
  8576. - test ! -n "$as_dirs" || mkdir $as_dirs
  8577. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  8578. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  8579. - { (exit 1); exit 1; }; }; }
  8580. -
  8581. - rm -f $ac_file
  8582. - mv $tmp/config.h $ac_file
  8583. + rm -f "$ac_file"
  8584. + mv "$ac_tmp/config.h" "$ac_file" \
  8585. + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8586. fi
  8587. else
  8588. - cat $tmp/config.h
  8589. - rm -f $tmp/config.h
  8590. + $as_echo "/* $configure_input */" \
  8591. + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  8592. + || as_fn_error $? "could not create -" "$LINENO" 5
  8593. fi
  8594. -done
  8595. -_ACEOF
  8596. + ;;
  8597. -cat >>$CONFIG_STATUS <<\_ACEOF
  8598. -{ (exit 0); exit 0; }
  8599. + esac
  8600. +
  8601. +done # for ac_tag
  8602. +
  8603. +
  8604. +as_fn_exit 0
  8605. _ACEOF
  8606. -chmod +x $CONFIG_STATUS
  8607. ac_clean_files=$ac_clean_files_save
  8608. +test $ac_write_fail = 0 ||
  8609. + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  8610. +
  8611. # configure is writing to config.log, and then calls config.status.
  8612. # config.status does its own redirection, appending to config.log.
  8613. @@ -5896,6 +6025,10 @@
  8614. exec 5>>config.log
  8615. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  8616. # would make configure fail if this is the last instruction.
  8617. - $ac_cs_success || { (exit 1); exit 1; }
  8618. + $ac_cs_success || as_fn_exit 1
  8619. +fi
  8620. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  8621. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  8622. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  8623. fi
  8624. diff -Nur libnids-1.23.orig/configure.in libnids-1.23/configure.in
  8625. --- libnids-1.23.orig/configure.in 2006-05-01 19:14:51.000000000 +0200
  8626. +++ libnids-1.23/configure.in 2011-03-11 21:07:15.000000000 +0100
  8627. @@ -41,7 +41,6 @@
  8628. AC_CHECK_FUNCS(gettimeofday)
  8629. dnl XXX - Solaris sux.
  8630. AC_CHECK_LIB(socket, socket)
  8631. -AC_CHECK_LIB(nsl, gethostbyname)
  8632. case "$target_cpu" in
  8633. alpha*|arm*|hp*|mips*|sparc*)
  8634. @@ -65,13 +64,13 @@
  8635. ;;
  8636. *)
  8637. AC_MSG_RESULT($withval)
  8638. - if test -f $withval/pcap.h -a -f $withval/libpcap.a; then
  8639. + if test -f $withval/include/pcap.h -a -f $withval/lib/libpcap.so; then
  8640. owd=`pwd`
  8641. if cd $withval; then withval=`pwd`; cd $owd; fi
  8642. - PCAP_CFLAGS="-I$withval -I$withval/bpf"
  8643. - PCAPLIB="-L$withval -lpcap"
  8644. + PCAP_CFLAGS="-I$withval/include -I$withval/include/bpf"
  8645. + PCAPLIB="-L$withval/lib -lpcap"
  8646. else
  8647. - AC_ERROR(pcap.h or libpcap.a not found in $withval)
  8648. + AC_ERROR(pcap.h or libpcap.so not found in $withval)
  8649. fi
  8650. ;;
  8651. esac ],
  8652. diff -Nur libnids-1.23.orig/src/config.h.in libnids-1.23/src/config.h.in
  8653. --- libnids-1.23.orig/src/config.h.in 2006-05-01 19:14:51.000000000 +0200
  8654. +++ libnids-1.23/src/config.h.in 2011-03-11 21:07:25.000000000 +0100
  8655. @@ -1,5 +1,8 @@
  8656. /* src/config.h.in. Generated from configure.in by autoheader. */
  8657. +/* Define if building universal (internal helper macro) */
  8658. +#undef AC_APPLE_UNIVERSAL_BUILD
  8659. +
  8660. /* Define to 1 if you have the `gettimeofday' function. */
  8661. #undef HAVE_GETTIMEOFDAY
  8662. @@ -9,9 +12,6 @@
  8663. /* Define to 1 if you have the `gthread-2.0' library (-lgthread-2.0). */
  8664. #undef HAVE_LIBGTHREAD_2_0
  8665. -/* Define to 1 if you have the `nsl' library (-lnsl). */
  8666. -#undef HAVE_LIBNSL
  8667. -
  8668. /* Define to 1 if you have the `socket' library (-lsocket). */
  8669. #undef HAVE_LIBSOCKET
  8670. @@ -60,6 +60,9 @@
  8671. /* Define to the one symbol short name of this package. */
  8672. #undef PACKAGE_TARNAME
  8673. +/* Define to the home page for this package. */
  8674. +#undef PACKAGE_URL
  8675. +
  8676. /* Define to the version of this package. */
  8677. #undef PACKAGE_VERSION
  8678. @@ -69,9 +72,17 @@
  8679. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  8680. #undef TIME_WITH_SYS_TIME
  8681. -/* Define to 1 if your processor stores words with the most significant byte
  8682. - first (like Motorola and SPARC, unlike Intel and VAX). */
  8683. -#undef WORDS_BIGENDIAN
  8684. +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
  8685. + significant byte first (like Motorola and SPARC, unlike Intel). */
  8686. +#if defined AC_APPLE_UNIVERSAL_BUILD
  8687. +# if defined __BIG_ENDIAN__
  8688. +# define WORDS_BIGENDIAN 1
  8689. +# endif
  8690. +#else
  8691. +# ifndef WORDS_BIGENDIAN
  8692. +# undef WORDS_BIGENDIAN
  8693. +# endif
  8694. +#endif
  8695. /* Define to empty if `const' does not conform to ANSI C. */
  8696. #undef const
  8697. diff -Nur libnids-1.23.orig/src/config.h.in~ libnids-1.23/src/config.h.in~
  8698. --- libnids-1.23.orig/src/config.h.in~ 1970-01-01 01:00:00.000000000 +0100
  8699. +++ libnids-1.23/src/config.h.in~ 2011-03-11 21:03:58.000000000 +0100
  8700. @@ -0,0 +1,94 @@
  8701. +/* src/config.h.in. Generated from configure.in by autoheader. */
  8702. +
  8703. +/* Define if building universal (internal helper macro) */
  8704. +#undef AC_APPLE_UNIVERSAL_BUILD
  8705. +
  8706. +/* Define to 1 if you have the `gettimeofday' function. */
  8707. +#undef HAVE_GETTIMEOFDAY
  8708. +
  8709. +/* Define to 1 if you have the <inttypes.h> header file. */
  8710. +#undef HAVE_INTTYPES_H
  8711. +
  8712. +/* Define to 1 if you have the `gthread-2.0' library (-lgthread-2.0). */
  8713. +#undef HAVE_LIBGTHREAD_2_0
  8714. +
  8715. +/* Define to 1 if you have the `socket' library (-lsocket). */
  8716. +#undef HAVE_LIBSOCKET
  8717. +
  8718. +/* Define to 1 if you have the <memory.h> header file. */
  8719. +#undef HAVE_MEMORY_H
  8720. +
  8721. +/* Define to 1 if you have the <stdint.h> header file. */
  8722. +#undef HAVE_STDINT_H
  8723. +
  8724. +/* Define to 1 if you have the <stdlib.h> header file. */
  8725. +#undef HAVE_STDLIB_H
  8726. +
  8727. +/* Define to 1 if you have the <strings.h> header file. */
  8728. +#undef HAVE_STRINGS_H
  8729. +
  8730. +/* Define to 1 if you have the <string.h> header file. */
  8731. +#undef HAVE_STRING_H
  8732. +
  8733. +/* Define to 1 if you have the <syslog.h> header file. */
  8734. +#undef HAVE_SYSLOG_H
  8735. +
  8736. +/* Define to 1 if you have the <sys/stat.h> header file. */
  8737. +#undef HAVE_SYS_STAT_H
  8738. +
  8739. +/* Define to 1 if you have the <sys/time.h> header file. */
  8740. +#undef HAVE_SYS_TIME_H
  8741. +
  8742. +/* Define to 1 if you have the <sys/types.h> header file. */
  8743. +#undef HAVE_SYS_TYPES_H
  8744. +
  8745. +/* Define to 1 if you have the <unistd.h> header file. */
  8746. +#undef HAVE_UNISTD_H
  8747. +
  8748. +/* if unaligned access fails */
  8749. +#undef LBL_ALIGN
  8750. +
  8751. +/* Define to the address where bug reports for this package should be sent. */
  8752. +#undef PACKAGE_BUGREPORT
  8753. +
  8754. +/* Define to the full name of this package. */
  8755. +#undef PACKAGE_NAME
  8756. +
  8757. +/* Define to the full name and version of this package. */
  8758. +#undef PACKAGE_STRING
  8759. +
  8760. +/* Define to the one symbol short name of this package. */
  8761. +#undef PACKAGE_TARNAME
  8762. +
  8763. +/* Define to the home page for this package. */
  8764. +#undef PACKAGE_URL
  8765. +
  8766. +/* Define to the version of this package. */
  8767. +#undef PACKAGE_VERSION
  8768. +
  8769. +/* Define to 1 if you have the ANSI C header files. */
  8770. +#undef STDC_HEADERS
  8771. +
  8772. +/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  8773. +#undef TIME_WITH_SYS_TIME
  8774. +
  8775. +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
  8776. + significant byte first (like Motorola and SPARC, unlike Intel). */
  8777. +#if defined AC_APPLE_UNIVERSAL_BUILD
  8778. +# if defined __BIG_ENDIAN__
  8779. +# define WORDS_BIGENDIAN 1
  8780. +# endif
  8781. +#else
  8782. +# ifndef WORDS_BIGENDIAN
  8783. +# undef WORDS_BIGENDIAN
  8784. +# endif
  8785. +#endif
  8786. +
  8787. +/* Define to empty if `const' does not conform to ANSI C. */
  8788. +#undef const
  8789. +
  8790. +/* Define to `__inline__' or `__inline' if that's what the C compiler
  8791. + calls it, or to nothing if 'inline' is not supported under any name. */
  8792. +#ifndef __cplusplus
  8793. +#undef inline
  8794. +#endif