Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

output.0 180KB

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