configure 161 KB

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