選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

output.1 156KB

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