configure 187 KB

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