configure 191 KB

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