output.1 157 KB

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