configure 167 KB

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